aws-sdk-bedrock 1.16.0 → 1.17.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: 57d0abcb518e38e48c7fa930e859fec48d3a5dd44e89de3b7b47144793ebceab
4
- data.tar.gz: 23af13d3c9e0cfa6028737a318577147d067964853f478c0c43f23fb70998e26
3
+ metadata.gz: 2e08157418d6bffb781860dadaef516b880ca4ff99e9bfd12f8d044ddc68e6ab
4
+ data.tar.gz: 80885b2c4b6f8f650855110b002d9b6203d893c5567e469b34d01678a335c535
5
5
  SHA512:
6
- metadata.gz: f21b5d871c3eadd8a2e798fe35094678168c26ba5d568aff90b78005e5531c3581a82a53d05613b3609925156ea546496b6e0dc9d2203028a4a2c3590b689934
7
- data.tar.gz: 15c3e7a001d7ecd8970d76e5984cf1f00f80cd14468d0d4f7c871a57bc227599579b510afdd785f897907599d0b15ac904888c5e23d1e6a919d2fa9391134722
6
+ metadata.gz: 9c199f8f19aae669646e374f9d8a2cff242ceba8d451a7f22654e923843e84cdb1e2373d0d624fb514d371ea43d7e40e1e55fef75d821297d1f49ee242c909a5
7
+ data.tar.gz: a28428563f87cfecd9107611fbf8c07bb9a86b21747512df2d9618c185b238d3c56a5f9cd6c0d6bb8a0a8a627fd3014988361b91add515d1c81731d35eeb6d44
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.17.0 (2024-08-27)
5
+ ------------------
6
+
7
+ * Feature - Amazon Bedrock SDK updates for Inference Profile.
8
+
4
9
  1.16.0 (2024-08-22)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.16.0
1
+ 1.17.0
@@ -1152,20 +1152,18 @@ module Aws::Bedrock
1152
1152
  req.send_request(options)
1153
1153
  end
1154
1154
 
1155
- # Creates a job to invoke a model on multiple prompts (batch inference).
1155
+ # Creates a batch inference job to invoke a model on multiple prompts.
1156
1156
  # Format your data according to [Format your inference data][1] and
1157
- # upload it to an Amazon S3 bucket. For more information, see [Create a
1158
- # batch inference job][2].
1157
+ # upload it to an Amazon S3 bucket. For more information, see [Process
1158
+ # multiple prompts with batch inference][2].
1159
1159
  #
1160
1160
  # The response returns a `jobArn` that you can use to stop or get
1161
- # details about the job. You can check the status of the job by sending
1162
- # a [GetModelCustomizationJob][3] request.
1161
+ # details about the job.
1163
1162
  #
1164
1163
  #
1165
1164
  #
1166
- # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-prerq.html#batch-inference-data
1167
- # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-create.html
1168
- # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelCustomizationJob.html
1165
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data
1166
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html
1169
1167
  #
1170
1168
  # @option params [required, String] :job_name
1171
1169
  # A name to give the batch inference job.
@@ -1821,6 +1819,52 @@ module Aws::Bedrock
1821
1819
  req.send_request(options)
1822
1820
  end
1823
1821
 
1822
+ # Gets information about an inference profile. For more information, see
1823
+ # the Amazon Bedrock User Guide.
1824
+ #
1825
+ # @option params [required, String] :inference_profile_identifier
1826
+ # The unique identifier of the inference profile.
1827
+ #
1828
+ # @return [Types::GetInferenceProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1829
+ #
1830
+ # * {Types::GetInferenceProfileResponse#inference_profile_name #inference_profile_name} => String
1831
+ # * {Types::GetInferenceProfileResponse#models #models} => Array<Types::InferenceProfileModel>
1832
+ # * {Types::GetInferenceProfileResponse#description #description} => String
1833
+ # * {Types::GetInferenceProfileResponse#created_at #created_at} => Time
1834
+ # * {Types::GetInferenceProfileResponse#updated_at #updated_at} => Time
1835
+ # * {Types::GetInferenceProfileResponse#inference_profile_arn #inference_profile_arn} => String
1836
+ # * {Types::GetInferenceProfileResponse#inference_profile_id #inference_profile_id} => String
1837
+ # * {Types::GetInferenceProfileResponse#status #status} => String
1838
+ # * {Types::GetInferenceProfileResponse#type #type} => String
1839
+ #
1840
+ # @example Request syntax with placeholder values
1841
+ #
1842
+ # resp = client.get_inference_profile({
1843
+ # inference_profile_identifier: "InferenceProfileIdentifier", # required
1844
+ # })
1845
+ #
1846
+ # @example Response structure
1847
+ #
1848
+ # resp.inference_profile_name #=> String
1849
+ # resp.models #=> Array
1850
+ # resp.models[0].model_arn #=> String
1851
+ # resp.description #=> String
1852
+ # resp.created_at #=> Time
1853
+ # resp.updated_at #=> Time
1854
+ # resp.inference_profile_arn #=> String
1855
+ # resp.inference_profile_id #=> String
1856
+ # resp.status #=> String, one of "ACTIVE"
1857
+ # resp.type #=> String, one of "SYSTEM_DEFINED"
1858
+ #
1859
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetInferenceProfile AWS API Documentation
1860
+ #
1861
+ # @overload get_inference_profile(params = {})
1862
+ # @param [Hash] params ({})
1863
+ def get_inference_profile(params = {}, options = {})
1864
+ req = build_request(:get_inference_profile, params)
1865
+ req.send_request(options)
1866
+ end
1867
+
1824
1868
  # Retrieves information about a model copy job. For more information,
1825
1869
  # see [Copy models to be used in other regions][1] in the [Amazon
1826
1870
  # Bedrock User Guide][2].
@@ -2539,6 +2583,58 @@ module Aws::Bedrock
2539
2583
  req.send_request(options)
2540
2584
  end
2541
2585
 
2586
+ # Returns a list of inference profiles that you can use.
2587
+ #
2588
+ # @option params [Integer] :max_results
2589
+ # The maximum number of results to return in the response. If the total
2590
+ # number of results is greater than this value, use the token returned
2591
+ # in the response in the `nextToken` field when making another request
2592
+ # to return the next batch of results.
2593
+ #
2594
+ # @option params [String] :next_token
2595
+ # If the total number of results is greater than the `maxResults` value
2596
+ # provided in the request, enter the token returned in the `nextToken`
2597
+ # field in the response in this field to return the next batch of
2598
+ # results.
2599
+ #
2600
+ # @return [Types::ListInferenceProfilesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2601
+ #
2602
+ # * {Types::ListInferenceProfilesResponse#inference_profile_summaries #inference_profile_summaries} => Array<Types::InferenceProfileSummary>
2603
+ # * {Types::ListInferenceProfilesResponse#next_token #next_token} => String
2604
+ #
2605
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2606
+ #
2607
+ # @example Request syntax with placeholder values
2608
+ #
2609
+ # resp = client.list_inference_profiles({
2610
+ # max_results: 1,
2611
+ # next_token: "PaginationToken",
2612
+ # })
2613
+ #
2614
+ # @example Response structure
2615
+ #
2616
+ # resp.inference_profile_summaries #=> Array
2617
+ # resp.inference_profile_summaries[0].inference_profile_name #=> String
2618
+ # resp.inference_profile_summaries[0].models #=> Array
2619
+ # resp.inference_profile_summaries[0].models[0].model_arn #=> String
2620
+ # resp.inference_profile_summaries[0].description #=> String
2621
+ # resp.inference_profile_summaries[0].created_at #=> Time
2622
+ # resp.inference_profile_summaries[0].updated_at #=> Time
2623
+ # resp.inference_profile_summaries[0].inference_profile_arn #=> String
2624
+ # resp.inference_profile_summaries[0].inference_profile_id #=> String
2625
+ # resp.inference_profile_summaries[0].status #=> String, one of "ACTIVE"
2626
+ # resp.inference_profile_summaries[0].type #=> String, one of "SYSTEM_DEFINED"
2627
+ # resp.next_token #=> String
2628
+ #
2629
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListInferenceProfiles AWS API Documentation
2630
+ #
2631
+ # @overload list_inference_profiles(params = {})
2632
+ # @param [Hash] params ({})
2633
+ def list_inference_profiles(params = {}, options = {})
2634
+ req = build_request(:list_inference_profiles, params)
2635
+ req.send_request(options)
2636
+ end
2637
+
2542
2638
  # Returns a list of model copy jobs that you have submitted. You can
2543
2639
  # filter the jobs to return based on one or more criteria. For more
2544
2640
  # information, see [Copy models to be used in other regions][1] in the
@@ -3443,7 +3539,7 @@ module Aws::Bedrock
3443
3539
  params: params,
3444
3540
  config: config)
3445
3541
  context[:gem_name] = 'aws-sdk-bedrock'
3446
- context[:gem_version] = '1.16.0'
3542
+ context[:gem_version] = '1.17.0'
3447
3543
  Seahorse::Client::Request.new(handlers, context)
3448
3544
  end
3449
3545
 
@@ -109,6 +109,8 @@ module Aws::Bedrock
109
109
  GetGuardrailResponse = Shapes::StructureShape.new(name: 'GetGuardrailResponse')
110
110
  GetImportedModelRequest = Shapes::StructureShape.new(name: 'GetImportedModelRequest')
111
111
  GetImportedModelResponse = Shapes::StructureShape.new(name: 'GetImportedModelResponse')
112
+ GetInferenceProfileRequest = Shapes::StructureShape.new(name: 'GetInferenceProfileRequest')
113
+ GetInferenceProfileResponse = Shapes::StructureShape.new(name: 'GetInferenceProfileResponse')
112
114
  GetModelCopyJobRequest = Shapes::StructureShape.new(name: 'GetModelCopyJobRequest')
113
115
  GetModelCopyJobResponse = Shapes::StructureShape.new(name: 'GetModelCopyJobResponse')
114
116
  GetModelCustomizationJobRequest = Shapes::StructureShape.new(name: 'GetModelCustomizationJobRequest')
@@ -207,6 +209,17 @@ module Aws::Bedrock
207
209
  ImportedModelName = Shapes::StringShape.new(name: 'ImportedModelName')
208
210
  ImportedModelSummary = Shapes::StructureShape.new(name: 'ImportedModelSummary')
209
211
  ImportedModelSummaryList = Shapes::ListShape.new(name: 'ImportedModelSummaryList')
212
+ InferenceProfileArn = Shapes::StringShape.new(name: 'InferenceProfileArn')
213
+ InferenceProfileDescription = Shapes::StringShape.new(name: 'InferenceProfileDescription')
214
+ InferenceProfileId = Shapes::StringShape.new(name: 'InferenceProfileId')
215
+ InferenceProfileIdentifier = Shapes::StringShape.new(name: 'InferenceProfileIdentifier')
216
+ InferenceProfileModel = Shapes::StructureShape.new(name: 'InferenceProfileModel')
217
+ InferenceProfileModels = Shapes::ListShape.new(name: 'InferenceProfileModels')
218
+ InferenceProfileName = Shapes::StringShape.new(name: 'InferenceProfileName')
219
+ InferenceProfileStatus = Shapes::StringShape.new(name: 'InferenceProfileStatus')
220
+ InferenceProfileSummaries = Shapes::ListShape.new(name: 'InferenceProfileSummaries')
221
+ InferenceProfileSummary = Shapes::StructureShape.new(name: 'InferenceProfileSummary')
222
+ InferenceProfileType = Shapes::StringShape.new(name: 'InferenceProfileType')
210
223
  InferenceType = Shapes::StringShape.new(name: 'InferenceType')
211
224
  InferenceTypeList = Shapes::ListShape.new(name: 'InferenceTypeList')
212
225
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -224,6 +237,8 @@ module Aws::Bedrock
224
237
  ListGuardrailsResponse = Shapes::StructureShape.new(name: 'ListGuardrailsResponse')
225
238
  ListImportedModelsRequest = Shapes::StructureShape.new(name: 'ListImportedModelsRequest')
226
239
  ListImportedModelsResponse = Shapes::StructureShape.new(name: 'ListImportedModelsResponse')
240
+ ListInferenceProfilesRequest = Shapes::StructureShape.new(name: 'ListInferenceProfilesRequest')
241
+ ListInferenceProfilesResponse = Shapes::StructureShape.new(name: 'ListInferenceProfilesResponse')
227
242
  ListModelCopyJobsRequest = Shapes::StructureShape.new(name: 'ListModelCopyJobsRequest')
228
243
  ListModelCopyJobsResponse = Shapes::StructureShape.new(name: 'ListModelCopyJobsResponse')
229
244
  ListModelCustomizationJobsRequest = Shapes::StructureShape.new(name: 'ListModelCustomizationJobsRequest')
@@ -696,6 +711,20 @@ module Aws::Bedrock
696
711
  GetImportedModelResponse.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
697
712
  GetImportedModelResponse.struct_class = Types::GetImportedModelResponse
698
713
 
714
+ GetInferenceProfileRequest.add_member(:inference_profile_identifier, Shapes::ShapeRef.new(shape: InferenceProfileIdentifier, required: true, location: "uri", location_name: "inferenceProfileIdentifier"))
715
+ GetInferenceProfileRequest.struct_class = Types::GetInferenceProfileRequest
716
+
717
+ GetInferenceProfileResponse.add_member(:inference_profile_name, Shapes::ShapeRef.new(shape: InferenceProfileName, required: true, location_name: "inferenceProfileName"))
718
+ GetInferenceProfileResponse.add_member(:models, Shapes::ShapeRef.new(shape: InferenceProfileModels, required: true, location_name: "models"))
719
+ GetInferenceProfileResponse.add_member(:description, Shapes::ShapeRef.new(shape: InferenceProfileDescription, location_name: "description"))
720
+ GetInferenceProfileResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
721
+ GetInferenceProfileResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
722
+ GetInferenceProfileResponse.add_member(:inference_profile_arn, Shapes::ShapeRef.new(shape: InferenceProfileArn, required: true, location_name: "inferenceProfileArn"))
723
+ GetInferenceProfileResponse.add_member(:inference_profile_id, Shapes::ShapeRef.new(shape: InferenceProfileId, required: true, location_name: "inferenceProfileId"))
724
+ GetInferenceProfileResponse.add_member(:status, Shapes::ShapeRef.new(shape: InferenceProfileStatus, required: true, location_name: "status"))
725
+ GetInferenceProfileResponse.add_member(:type, Shapes::ShapeRef.new(shape: InferenceProfileType, required: true, location_name: "type"))
726
+ GetInferenceProfileResponse.struct_class = Types::GetInferenceProfileResponse
727
+
699
728
  GetModelCopyJobRequest.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCopyJobArn, required: true, location: "uri", location_name: "jobArn"))
700
729
  GetModelCopyJobRequest.struct_class = Types::GetModelCopyJobRequest
701
730
 
@@ -963,6 +992,24 @@ module Aws::Bedrock
963
992
 
964
993
  ImportedModelSummaryList.member = Shapes::ShapeRef.new(shape: ImportedModelSummary)
965
994
 
995
+ InferenceProfileModel.add_member(:model_arn, Shapes::ShapeRef.new(shape: FoundationModelArn, location_name: "modelArn"))
996
+ InferenceProfileModel.struct_class = Types::InferenceProfileModel
997
+
998
+ InferenceProfileModels.member = Shapes::ShapeRef.new(shape: InferenceProfileModel)
999
+
1000
+ InferenceProfileSummaries.member = Shapes::ShapeRef.new(shape: InferenceProfileSummary)
1001
+
1002
+ InferenceProfileSummary.add_member(:inference_profile_name, Shapes::ShapeRef.new(shape: InferenceProfileName, required: true, location_name: "inferenceProfileName"))
1003
+ InferenceProfileSummary.add_member(:models, Shapes::ShapeRef.new(shape: InferenceProfileModels, required: true, location_name: "models"))
1004
+ InferenceProfileSummary.add_member(:description, Shapes::ShapeRef.new(shape: InferenceProfileDescription, location_name: "description"))
1005
+ InferenceProfileSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
1006
+ InferenceProfileSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
1007
+ InferenceProfileSummary.add_member(:inference_profile_arn, Shapes::ShapeRef.new(shape: InferenceProfileArn, required: true, location_name: "inferenceProfileArn"))
1008
+ InferenceProfileSummary.add_member(:inference_profile_id, Shapes::ShapeRef.new(shape: InferenceProfileId, required: true, location_name: "inferenceProfileId"))
1009
+ InferenceProfileSummary.add_member(:status, Shapes::ShapeRef.new(shape: InferenceProfileStatus, required: true, location_name: "status"))
1010
+ InferenceProfileSummary.add_member(:type, Shapes::ShapeRef.new(shape: InferenceProfileType, required: true, location_name: "type"))
1011
+ InferenceProfileSummary.struct_class = Types::InferenceProfileSummary
1012
+
966
1013
  InferenceTypeList.member = Shapes::ShapeRef.new(shape: InferenceType)
967
1014
 
968
1015
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
@@ -1029,6 +1076,14 @@ module Aws::Bedrock
1029
1076
  ListImportedModelsResponse.add_member(:model_summaries, Shapes::ShapeRef.new(shape: ImportedModelSummaryList, location_name: "modelSummaries"))
1030
1077
  ListImportedModelsResponse.struct_class = Types::ListImportedModelsResponse
1031
1078
 
1079
+ ListInferenceProfilesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1080
+ ListInferenceProfilesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
1081
+ ListInferenceProfilesRequest.struct_class = Types::ListInferenceProfilesRequest
1082
+
1083
+ ListInferenceProfilesResponse.add_member(:inference_profile_summaries, Shapes::ShapeRef.new(shape: InferenceProfileSummaries, location_name: "inferenceProfileSummaries"))
1084
+ ListInferenceProfilesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
1085
+ ListInferenceProfilesResponse.struct_class = Types::ListInferenceProfilesResponse
1086
+
1032
1087
  ListModelCopyJobsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeAfter"))
1033
1088
  ListModelCopyJobsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "creationTimeBefore"))
1034
1089
  ListModelCopyJobsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: ModelCopyJobStatus, location: "querystring", location_name: "statusEquals"))
@@ -1627,6 +1682,19 @@ module Aws::Bedrock
1627
1682
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1628
1683
  end)
1629
1684
 
1685
+ api.add_operation(:get_inference_profile, Seahorse::Model::Operation.new.tap do |o|
1686
+ o.name = "GetInferenceProfile"
1687
+ o.http_method = "GET"
1688
+ o.http_request_uri = "/inference-profiles/{inferenceProfileIdentifier}"
1689
+ o.input = Shapes::ShapeRef.new(shape: GetInferenceProfileRequest)
1690
+ o.output = Shapes::ShapeRef.new(shape: GetInferenceProfileResponse)
1691
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1692
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1693
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1694
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1695
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1696
+ end)
1697
+
1630
1698
  api.add_operation(:get_model_copy_job, Seahorse::Model::Operation.new.tap do |o|
1631
1699
  o.name = "GetModelCopyJob"
1632
1700
  o.http_method = "GET"
@@ -1788,6 +1856,24 @@ module Aws::Bedrock
1788
1856
  )
1789
1857
  end)
1790
1858
 
1859
+ api.add_operation(:list_inference_profiles, Seahorse::Model::Operation.new.tap do |o|
1860
+ o.name = "ListInferenceProfiles"
1861
+ o.http_method = "GET"
1862
+ o.http_request_uri = "/inference-profiles"
1863
+ o.input = Shapes::ShapeRef.new(shape: ListInferenceProfilesRequest)
1864
+ o.output = Shapes::ShapeRef.new(shape: ListInferenceProfilesResponse)
1865
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1866
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1867
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1868
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1869
+ o[:pager] = Aws::Pager.new(
1870
+ limit_key: "max_results",
1871
+ tokens: {
1872
+ "next_token" => "next_token"
1873
+ }
1874
+ )
1875
+ end)
1876
+
1791
1877
  api.add_operation(:list_model_copy_jobs, Seahorse::Model::Operation.new.tap do |o|
1792
1878
  o.name = "ListModelCopyJobs"
1793
1879
  o.http_method = "GET"
@@ -278,6 +278,20 @@ module Aws::Bedrock
278
278
  end
279
279
  end
280
280
 
281
+ class GetInferenceProfile
282
+ def self.build(context)
283
+ unless context.config.regional_endpoint
284
+ endpoint = context.config.endpoint.to_s
285
+ end
286
+ Aws::Bedrock::EndpointParameters.new(
287
+ region: context.config.region,
288
+ use_dual_stack: context.config.use_dualstack_endpoint,
289
+ use_fips: context.config.use_fips_endpoint,
290
+ endpoint: endpoint,
291
+ )
292
+ end
293
+ end
294
+
281
295
  class GetModelCopyJob
282
296
  def self.build(context)
283
297
  unless context.config.regional_endpoint
@@ -432,6 +446,20 @@ module Aws::Bedrock
432
446
  end
433
447
  end
434
448
 
449
+ class ListInferenceProfiles
450
+ def self.build(context)
451
+ unless context.config.regional_endpoint
452
+ endpoint = context.config.endpoint.to_s
453
+ end
454
+ Aws::Bedrock::EndpointParameters.new(
455
+ region: context.config.region,
456
+ use_dual_stack: context.config.use_dualstack_endpoint,
457
+ use_fips: context.config.use_fips_endpoint,
458
+ endpoint: endpoint,
459
+ )
460
+ end
461
+ end
462
+
435
463
  class ListModelCopyJobs
436
464
  def self.build(context)
437
465
  unless context.config.regional_endpoint
@@ -96,6 +96,8 @@ module Aws::Bedrock
96
96
  Aws::Bedrock::Endpoints::GetGuardrail.build(context)
97
97
  when :get_imported_model
98
98
  Aws::Bedrock::Endpoints::GetImportedModel.build(context)
99
+ when :get_inference_profile
100
+ Aws::Bedrock::Endpoints::GetInferenceProfile.build(context)
99
101
  when :get_model_copy_job
100
102
  Aws::Bedrock::Endpoints::GetModelCopyJob.build(context)
101
103
  when :get_model_customization_job
@@ -118,6 +120,8 @@ module Aws::Bedrock
118
120
  Aws::Bedrock::Endpoints::ListGuardrails.build(context)
119
121
  when :list_imported_models
120
122
  Aws::Bedrock::Endpoints::ListImportedModels.build(context)
123
+ when :list_inference_profiles
124
+ Aws::Bedrock::Endpoints::ListInferenceProfiles.build(context)
121
125
  when :list_model_copy_jobs
122
126
  Aws::Bedrock::Endpoints::ListModelCopyJobs.build(context)
123
127
  when :list_model_customization_jobs
@@ -1731,6 +1731,72 @@ module Aws::Bedrock
1731
1731
  include Aws::Structure
1732
1732
  end
1733
1733
 
1734
+ # @!attribute [rw] inference_profile_identifier
1735
+ # The unique identifier of the inference profile.
1736
+ # @return [String]
1737
+ #
1738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetInferenceProfileRequest AWS API Documentation
1739
+ #
1740
+ class GetInferenceProfileRequest < Struct.new(
1741
+ :inference_profile_identifier)
1742
+ SENSITIVE = []
1743
+ include Aws::Structure
1744
+ end
1745
+
1746
+ # @!attribute [rw] inference_profile_name
1747
+ # The name of the inference profile.
1748
+ # @return [String]
1749
+ #
1750
+ # @!attribute [rw] models
1751
+ # A list of information about each model in the inference profile.
1752
+ # @return [Array<Types::InferenceProfileModel>]
1753
+ #
1754
+ # @!attribute [rw] description
1755
+ # The description of the inference profile.
1756
+ # @return [String]
1757
+ #
1758
+ # @!attribute [rw] created_at
1759
+ # The time at which the inference profile was created.
1760
+ # @return [Time]
1761
+ #
1762
+ # @!attribute [rw] updated_at
1763
+ # The time at which the inference profile was last updated.
1764
+ # @return [Time]
1765
+ #
1766
+ # @!attribute [rw] inference_profile_arn
1767
+ # The Amazon Resource Name (ARN) of the inference profile.
1768
+ # @return [String]
1769
+ #
1770
+ # @!attribute [rw] inference_profile_id
1771
+ # The unique identifier of the inference profile.
1772
+ # @return [String]
1773
+ #
1774
+ # @!attribute [rw] status
1775
+ # The status of the inference profile. `ACTIVE` means that the
1776
+ # inference profile is available to use.
1777
+ # @return [String]
1778
+ #
1779
+ # @!attribute [rw] type
1780
+ # The type of the inference profile. `SYSTEM_DEFINED` means that the
1781
+ # inference profile is defined by Amazon Bedrock.
1782
+ # @return [String]
1783
+ #
1784
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetInferenceProfileResponse AWS API Documentation
1785
+ #
1786
+ class GetInferenceProfileResponse < Struct.new(
1787
+ :inference_profile_name,
1788
+ :models,
1789
+ :description,
1790
+ :created_at,
1791
+ :updated_at,
1792
+ :inference_profile_arn,
1793
+ :inference_profile_id,
1794
+ :status,
1795
+ :type)
1796
+ SENSITIVE = []
1797
+ include Aws::Structure
1798
+ end
1799
+
1734
1800
  # @!attribute [rw] job_arn
1735
1801
  # The Amazon Resource Name (ARN) of the model copy job.
1736
1802
  # @return [String]
@@ -3251,6 +3317,76 @@ module Aws::Bedrock
3251
3317
  include Aws::Structure
3252
3318
  end
3253
3319
 
3320
+ # Contains information about a model.
3321
+ #
3322
+ # @!attribute [rw] model_arn
3323
+ # The Amazon Resource Name (ARN) of the model.
3324
+ # @return [String]
3325
+ #
3326
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InferenceProfileModel AWS API Documentation
3327
+ #
3328
+ class InferenceProfileModel < Struct.new(
3329
+ :model_arn)
3330
+ SENSITIVE = []
3331
+ include Aws::Structure
3332
+ end
3333
+
3334
+ # Contains information about an inference profile.
3335
+ #
3336
+ # @!attribute [rw] inference_profile_name
3337
+ # The name of the inference profile.
3338
+ # @return [String]
3339
+ #
3340
+ # @!attribute [rw] models
3341
+ # A list of information about each model in the inference profile.
3342
+ # @return [Array<Types::InferenceProfileModel>]
3343
+ #
3344
+ # @!attribute [rw] description
3345
+ # The description of the inference profile.
3346
+ # @return [String]
3347
+ #
3348
+ # @!attribute [rw] created_at
3349
+ # The time at which the inference profile was created.
3350
+ # @return [Time]
3351
+ #
3352
+ # @!attribute [rw] updated_at
3353
+ # The time at which the inference profile was last updated.
3354
+ # @return [Time]
3355
+ #
3356
+ # @!attribute [rw] inference_profile_arn
3357
+ # The Amazon Resource Name (ARN) of the inference profile.
3358
+ # @return [String]
3359
+ #
3360
+ # @!attribute [rw] inference_profile_id
3361
+ # The unique identifier of the inference profile.
3362
+ # @return [String]
3363
+ #
3364
+ # @!attribute [rw] status
3365
+ # The status of the inference profile. `ACTIVE` means that the
3366
+ # inference profile is available to use.
3367
+ # @return [String]
3368
+ #
3369
+ # @!attribute [rw] type
3370
+ # The type of the inference profile. `SYSTEM_DEFINED` means that the
3371
+ # inference profile is defined by Amazon Bedrock.
3372
+ # @return [String]
3373
+ #
3374
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InferenceProfileSummary AWS API Documentation
3375
+ #
3376
+ class InferenceProfileSummary < Struct.new(
3377
+ :inference_profile_name,
3378
+ :models,
3379
+ :description,
3380
+ :created_at,
3381
+ :updated_at,
3382
+ :inference_profile_arn,
3383
+ :inference_profile_id,
3384
+ :status,
3385
+ :type)
3386
+ SENSITIVE = []
3387
+ include Aws::Structure
3388
+ end
3389
+
3254
3390
  # An internal server error occurred. Retry your request.
3255
3391
  #
3256
3392
  # @!attribute [rw] message
@@ -3585,6 +3721,49 @@ module Aws::Bedrock
3585
3721
  include Aws::Structure
3586
3722
  end
3587
3723
 
3724
+ # @!attribute [rw] max_results
3725
+ # The maximum number of results to return in the response. If the
3726
+ # total number of results is greater than this value, use the token
3727
+ # returned in the response in the `nextToken` field when making
3728
+ # another request to return the next batch of results.
3729
+ # @return [Integer]
3730
+ #
3731
+ # @!attribute [rw] next_token
3732
+ # If the total number of results is greater than the `maxResults`
3733
+ # value provided in the request, enter the token returned in the
3734
+ # `nextToken` field in the response in this field to return the next
3735
+ # batch of results.
3736
+ # @return [String]
3737
+ #
3738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListInferenceProfilesRequest AWS API Documentation
3739
+ #
3740
+ class ListInferenceProfilesRequest < Struct.new(
3741
+ :max_results,
3742
+ :next_token)
3743
+ SENSITIVE = []
3744
+ include Aws::Structure
3745
+ end
3746
+
3747
+ # @!attribute [rw] inference_profile_summaries
3748
+ # A list of information about each inference profile that you can use.
3749
+ # @return [Array<Types::InferenceProfileSummary>]
3750
+ #
3751
+ # @!attribute [rw] next_token
3752
+ # If the total number of results is greater than the `maxResults`
3753
+ # value provided in the request, use this token when making another
3754
+ # request in the `nextToken` field to return the next batch of
3755
+ # results.
3756
+ # @return [String]
3757
+ #
3758
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListInferenceProfilesResponse AWS API Documentation
3759
+ #
3760
+ class ListInferenceProfilesResponse < Struct.new(
3761
+ :inference_profile_summaries,
3762
+ :next_token)
3763
+ SENSITIVE = []
3764
+ include Aws::Structure
3765
+ end
3766
+
3588
3767
  # @!attribute [rw] creation_time_after
3589
3768
  # Filters for model copy jobs created after the specified time.
3590
3769
  # @return [Time]
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-bedrock/customizations'
53
53
  # @!group service
54
54
  module Aws::Bedrock
55
55
 
56
- GEM_VERSION = '1.16.0'
56
+ GEM_VERSION = '1.17.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -547,6 +547,24 @@ module Aws
547
547
  ) -> _GetImportedModelResponseSuccess
548
548
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetImportedModelResponseSuccess
549
549
 
550
+ interface _GetInferenceProfileResponseSuccess
551
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetInferenceProfileResponse]
552
+ def inference_profile_name: () -> ::String
553
+ def models: () -> ::Array[Types::InferenceProfileModel]
554
+ def description: () -> ::String
555
+ def created_at: () -> ::Time
556
+ def updated_at: () -> ::Time
557
+ def inference_profile_arn: () -> ::String
558
+ def inference_profile_id: () -> ::String
559
+ def status: () -> ("ACTIVE")
560
+ def type: () -> ("SYSTEM_DEFINED")
561
+ end
562
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_inference_profile-instance_method
563
+ def get_inference_profile: (
564
+ inference_profile_identifier: ::String
565
+ ) -> _GetInferenceProfileResponseSuccess
566
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetInferenceProfileResponseSuccess
567
+
550
568
  interface _GetModelCopyJobResponseSuccess
551
569
  include ::Seahorse::Client::_ResponseSuccess[Types::GetModelCopyJobResponse]
552
570
  def job_arn: () -> ::String
@@ -754,6 +772,18 @@ module Aws
754
772
  ) -> _ListImportedModelsResponseSuccess
755
773
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListImportedModelsResponseSuccess
756
774
 
775
+ interface _ListInferenceProfilesResponseSuccess
776
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListInferenceProfilesResponse]
777
+ def inference_profile_summaries: () -> ::Array[Types::InferenceProfileSummary]
778
+ def next_token: () -> ::String
779
+ end
780
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_inference_profiles-instance_method
781
+ def list_inference_profiles: (
782
+ ?max_results: ::Integer,
783
+ ?next_token: ::String
784
+ ) -> _ListInferenceProfilesResponseSuccess
785
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListInferenceProfilesResponseSuccess
786
+
757
787
  interface _ListModelCopyJobsResponseSuccess
758
788
  include ::Seahorse::Client::_ResponseSuccess[Types::ListModelCopyJobsResponse]
759
789
  def next_token: () -> ::String
data/sig/types.rbs CHANGED
@@ -461,6 +461,24 @@ module Aws::Bedrock
461
461
  SENSITIVE: []
462
462
  end
463
463
 
464
+ class GetInferenceProfileRequest
465
+ attr_accessor inference_profile_identifier: ::String
466
+ SENSITIVE: []
467
+ end
468
+
469
+ class GetInferenceProfileResponse
470
+ attr_accessor inference_profile_name: ::String
471
+ attr_accessor models: ::Array[Types::InferenceProfileModel]
472
+ attr_accessor description: ::String
473
+ attr_accessor created_at: ::Time
474
+ attr_accessor updated_at: ::Time
475
+ attr_accessor inference_profile_arn: ::String
476
+ attr_accessor inference_profile_id: ::String
477
+ attr_accessor status: ("ACTIVE")
478
+ attr_accessor type: ("SYSTEM_DEFINED")
479
+ SENSITIVE: []
480
+ end
481
+
464
482
  class GetModelCopyJobRequest
465
483
  attr_accessor job_arn: ::String
466
484
  SENSITIVE: []
@@ -769,6 +787,24 @@ module Aws::Bedrock
769
787
  SENSITIVE: []
770
788
  end
771
789
 
790
+ class InferenceProfileModel
791
+ attr_accessor model_arn: ::String
792
+ SENSITIVE: []
793
+ end
794
+
795
+ class InferenceProfileSummary
796
+ attr_accessor inference_profile_name: ::String
797
+ attr_accessor models: ::Array[Types::InferenceProfileModel]
798
+ attr_accessor description: ::String
799
+ attr_accessor created_at: ::Time
800
+ attr_accessor updated_at: ::Time
801
+ attr_accessor inference_profile_arn: ::String
802
+ attr_accessor inference_profile_id: ::String
803
+ attr_accessor status: ("ACTIVE")
804
+ attr_accessor type: ("SYSTEM_DEFINED")
805
+ SENSITIVE: []
806
+ end
807
+
772
808
  class InternalServerException
773
809
  attr_accessor message: ::String
774
810
  SENSITIVE: []
@@ -855,6 +891,18 @@ module Aws::Bedrock
855
891
  SENSITIVE: []
856
892
  end
857
893
 
894
+ class ListInferenceProfilesRequest
895
+ attr_accessor max_results: ::Integer
896
+ attr_accessor next_token: ::String
897
+ SENSITIVE: []
898
+ end
899
+
900
+ class ListInferenceProfilesResponse
901
+ attr_accessor inference_profile_summaries: ::Array[Types::InferenceProfileSummary]
902
+ attr_accessor next_token: ::String
903
+ SENSITIVE: []
904
+ end
905
+
858
906
  class ListModelCopyJobsRequest
859
907
  attr_accessor creation_time_after: ::Time
860
908
  attr_accessor creation_time_before: ::Time
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.16.0
4
+ version: 1.17.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: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core