aws-sdk-bedrock 1.86.0 → 1.87.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: 0e3f19ef53a1a30204d7784c1c4a377557b0d8a79cfef8dbc8e3ba4539d3c7aa
4
- data.tar.gz: a91995b1f2ab6835f6574e678584808ccb3ae4983a7536353e0cde66ad745cc3
3
+ metadata.gz: f4331367c0c04e458baaa64dfef49573c008d98c3c0d299c4cb6dc195589f1d0
4
+ data.tar.gz: e6afb797d786450dbf1acf9e886ce84bac61f2c42287390bf0505514f2287f31
5
5
  SHA512:
6
- metadata.gz: a2eb80aeadd90a2bdf5e60ac8b7cf3902335f4fb63337b23a4dd9da23a897c328ffbf5b7fbdd268a3e296b5b251b55599557c09fe61e667759666939422734a6
7
- data.tar.gz: a5dbbf2ba46d15e8f3f2817472d658546ecd2af13186ac38c4ac76c9fb8748c6a8bb89d84a0ccf4f6a22b5e400b73712efd35acd4a009d19690c78838ab7a9e3
6
+ metadata.gz: 2802dbd980b08865b6be6c1d1c7558f0812db04b13f5b0dec536f6a08cd59ba41d6d51e4f803198e6adf3f083917a3bcfd00112217bbed56dd526415616e928d
7
+ data.tar.gz: de4b340e360d9438899ace91f588bfa0dbbb23f5c948ceb3e857a24e4a680b9a211e51ac8ff8a831763816e675d5caae389a2e61ae4463957486335db8d1da4b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.87.0 (2026-05-28)
5
+ ------------------
6
+
7
+ * Feature - Add support for ModelPackageArn in Bedrock's CreateCustomModel API
8
+
4
9
  1.86.0 (2026-05-22)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.86.0
1
+ 1.87.0
@@ -476,10 +476,11 @@ module Aws::Bedrock
476
476
 
477
477
  # @!group API Operations
478
478
 
479
- # Batch delete the specified advanced prompt optimization jobs.
479
+ # Deletes one or more advanced prompt optimization jobs.
480
480
  #
481
481
  # @option params [required, Array<String>] :job_identifiers
482
- # List of advanced prompt optimization job identifiers to delete.
482
+ # A list of advanced prompt optimization job identifiers (ARNs or IDs)
483
+ # to delete.
483
484
  #
484
485
  # @return [Types::BatchDeleteAdvancedPromptOptimizationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
485
486
  #
@@ -610,34 +611,43 @@ module Aws::Bedrock
610
611
  req.send_request(options)
611
612
  end
612
613
 
613
- # Creates an asynchronous batch job for advanced prompt optimization.
614
+ # Creates an advanced prompt optimization job. The job optimizes your
615
+ # prompt templates for specific models using your evaluation dataset and
616
+ # criteria.
614
617
  #
615
618
  # @option params [required, String] :job_name
616
- # Name of the advanced prompt optimization job.
619
+ # A name for the advanced prompt optimization job.
617
620
  #
618
621
  # @option params [String] :job_description
619
- # Description of the advanced prompt optimization job.
622
+ # A description of the advanced prompt optimization job.
620
623
  #
621
624
  # @option params [String] :client_token
622
- # Idempotency token for the request.
625
+ # A unique, case-sensitive identifier to ensure that the API request
626
+ # completes no more than one time. If this token matches a previous
627
+ # request, Amazon Bedrock ignores the request but does not return an
628
+ # error.
623
629
  #
624
630
  # **A suitable default value is auto-generated.** You should normally
625
631
  # not need to pass this option.**
626
632
  #
627
633
  # @option params [required, Types::AdvancedPromptOptimizationInputConfig] :input_config
628
- # Input data configuration for the advanced prompt optimization job.
634
+ # Specifies the S3 location of your JSONL input file containing prompt
635
+ # templates and evaluation samples.
629
636
  #
630
637
  # @option params [required, Types::AdvancedPromptOptimizationOutputConfig] :output_config
631
- # Output data configuration for the advanced prompt optimization job.
638
+ # Specifies the S3 location where optimization results will be stored.
632
639
  #
633
640
  # @option params [String] :encryption_key_arn
634
- # KMS key ARN for encrypting output data.
641
+ # The Amazon Resource Name (ARN) of the KMS key used for encrypting the
642
+ # output data. If not specified, the output is encrypted with an
643
+ # Amazon-owned KMS key.
635
644
  #
636
645
  # @option params [Array<Types::Tag>] :tags
637
- # Tags to associate with the job.
646
+ # Tags to associate with the advanced prompt optimization job.
638
647
  #
639
648
  # @option params [required, Array<Types::ModelConfiguration>] :model_configurations
640
- # Model configurations for advanced prompt optimization.
649
+ # A list of model configurations specifying the target models for prompt
650
+ # optimization. You can specify up to 5 models.
641
651
  #
642
652
  # @return [Types::CreateAdvancedPromptOptimizationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
643
653
  #
@@ -981,6 +991,16 @@ module Aws::Bedrock
981
991
  # Creates a new custom model in Amazon Bedrock. After the model is
982
992
  # active, you can use it for inference.
983
993
  #
994
+ # You can provide the model data source in one of the following ways:
995
+ #
996
+ # * `customModelDataSource` — Specify a SageMaker AI model package ARN.
997
+ # Amazon Bedrock resolves the model package to retrieve the model
998
+ # artifacts. This is the preferred method for new SageMaker AI
999
+ # training outputs.
1000
+ #
1001
+ # * `modelSourceConfig` — Specify an Amazon S3 URI pointing to the
1002
+ # Amazon-managed Amazon S3 bucket containing your model artifacts.
1003
+ #
984
1004
  # To use the model for inference, you must purchase Provisioned
985
1005
  # Throughput for it. You can't use On-demand inference with these
986
1006
  # custom models. For more information about Provisioned Throughput, see
@@ -1015,11 +1035,20 @@ module Aws::Bedrock
1015
1035
  # @option params [required, String] :model_name
1016
1036
  # A unique name for the custom model.
1017
1037
  #
1018
- # @option params [required, Types::ModelDataSource] :model_source_config
1038
+ # @option params [Types::ModelDataSource] :model_source_config
1019
1039
  # The data source for the model. The Amazon S3 URI in the model source
1020
1040
  # must be for the Amazon-managed Amazon S3 bucket containing your model
1021
1041
  # artifacts.
1022
1042
  #
1043
+ # @option params [Types::CustomModelDataSource] :custom_model_data_source
1044
+ # The data source for the custom model. Use this field to specify a
1045
+ # SageMaker AI model package ARN as the source for your custom model.
1046
+ # Amazon Bedrock resolves the model package to retrieve the model
1047
+ # artifacts.
1048
+ #
1049
+ # You can specify either `customModelDataSource` or `modelSourceConfig`,
1050
+ # but not both.
1051
+ #
1023
1052
  # @option params [String] :model_kms_key_arn
1024
1053
  # The Amazon Resource Name (ARN) of the customer managed KMS key to
1025
1054
  # encrypt the custom model. If you don't provide a KMS key, Amazon
@@ -1042,6 +1071,11 @@ module Aws::Bedrock
1042
1071
  # [Setting up an IAM service role for importing models][1] in the Amazon
1043
1072
  # Bedrock User Guide.
1044
1073
  #
1074
+ # This field is required when you use `modelSourceConfig` with an Amazon
1075
+ # S3 data source. It is not required when you use
1076
+ # `customModelDataSource` with a model package ARN, because Amazon
1077
+ # Bedrock uses its own credentials to access the model artifacts.
1078
+ #
1045
1079
  #
1046
1080
  #
1047
1081
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
@@ -1109,11 +1143,16 @@ module Aws::Bedrock
1109
1143
  #
1110
1144
  # resp = client.create_custom_model({
1111
1145
  # model_name: "CustomModelName", # required
1112
- # model_source_config: { # required
1146
+ # model_source_config: {
1113
1147
  # s3_data_source: {
1114
1148
  # s3_uri: "S3Uri", # required
1115
1149
  # },
1116
1150
  # },
1151
+ # custom_model_data_source: {
1152
+ # model_package_arn_data_source: {
1153
+ # model_package_arn: "ModelPackageArn", # required
1154
+ # },
1155
+ # },
1117
1156
  # model_kms_key_arn: "KmsKeyArn",
1118
1157
  # role_arn: "RoleArn",
1119
1158
  # model_tags: [
@@ -3390,11 +3429,10 @@ module Aws::Bedrock
3390
3429
  req.send_request(options)
3391
3430
  end
3392
3431
 
3393
- # Retrieves the details and status of an advanced prompt optimization
3394
- # job.
3432
+ # Gets information about an advanced prompt optimization job.
3395
3433
  #
3396
3434
  # @option params [required, String] :job_identifier
3397
- # ARN or ID of the advanced prompt optimization job.
3435
+ # The ARN or ID of the advanced prompt optimization job.
3398
3436
  #
3399
3437
  # @return [Types::GetAdvancedPromptOptimizationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3400
3438
  #
@@ -5278,19 +5316,21 @@ module Aws::Bedrock
5278
5316
  req.send_request(options)
5279
5317
  end
5280
5318
 
5281
- # Lists all advanced prompt optimization jobs for the account.
5319
+ # Lists the advanced prompt optimization jobs in your account.
5282
5320
  #
5283
5321
  # @option params [Integer] :max_results
5284
- # Maximum number of results to return.
5322
+ # The maximum number of results to return in the response.
5285
5323
  #
5286
5324
  # @option params [String] :next_token
5287
- # Pagination token for the next page of results.
5325
+ # If the total number of results is greater than the `maxResults` value
5326
+ # provided in the request, use this token in a subsequent request to get
5327
+ # the next set of results.
5288
5328
  #
5289
5329
  # @option params [String] :sort_by
5290
- # Field to sort by in the returned list of jobs.
5330
+ # The field to sort the results by.
5291
5331
  #
5292
5332
  # @option params [String] :sort_order
5293
- # Sort order for the results.
5333
+ # The sort order for the results.
5294
5334
  #
5295
5335
  # @return [Types::ListAdvancedPromptOptimizationJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5296
5336
  #
@@ -7410,10 +7450,10 @@ module Aws::Bedrock
7410
7450
  req.send_request(options)
7411
7451
  end
7412
7452
 
7413
- # Stops an in-progress advanced prompt optimization job.
7453
+ # Stops an advanced prompt optimization job that is in progress.
7414
7454
  #
7415
7455
  # @option params [required, String] :job_identifier
7416
- # ARN or ID of the advanced prompt optimization job to stop.
7456
+ # The ARN or ID of the advanced prompt optimization job to stop.
7417
7457
  #
7418
7458
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
7419
7459
  #
@@ -8244,7 +8284,7 @@ module Aws::Bedrock
8244
8284
  tracer: tracer
8245
8285
  )
8246
8286
  context[:gem_name] = 'aws-sdk-bedrock'
8247
- context[:gem_version] = '1.86.0'
8287
+ context[:gem_version] = '1.87.0'
8248
8288
  Seahorse::Client::Request.new(handlers, context)
8249
8289
  end
8250
8290
 
@@ -296,6 +296,7 @@ module Aws::Bedrock
296
296
  CustomMetricEvaluatorModelConfig = Shapes::StructureShape.new(name: 'CustomMetricEvaluatorModelConfig')
297
297
  CustomMetricInstructions = Shapes::StringShape.new(name: 'CustomMetricInstructions')
298
298
  CustomModelArn = Shapes::StringShape.new(name: 'CustomModelArn')
299
+ CustomModelDataSource = Shapes::UnionShape.new(name: 'CustomModelDataSource')
299
300
  CustomModelDeploymentArn = Shapes::StringShape.new(name: 'CustomModelDeploymentArn')
300
301
  CustomModelDeploymentDescription = Shapes::StringShape.new(name: 'CustomModelDeploymentDescription')
301
302
  CustomModelDeploymentIdentifier = Shapes::StringShape.new(name: 'CustomModelDeploymentIdentifier')
@@ -733,6 +734,8 @@ module Aws::Bedrock
733
734
  ModelModality = Shapes::StringShape.new(name: 'ModelModality')
734
735
  ModelModalityList = Shapes::ListShape.new(name: 'ModelModalityList')
735
736
  ModelName = Shapes::StringShape.new(name: 'ModelName')
737
+ ModelPackageArn = Shapes::StringShape.new(name: 'ModelPackageArn')
738
+ ModelPackageArnDataSource = Shapes::StructureShape.new(name: 'ModelPackageArnDataSource')
736
739
  ModelSourceIdentifier = Shapes::StringShape.new(name: 'ModelSourceIdentifier')
737
740
  ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
738
741
  NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
@@ -1673,7 +1676,8 @@ module Aws::Bedrock
1673
1676
  CreateCustomModelDeploymentResponse.struct_class = Types::CreateCustomModelDeploymentResponse
1674
1677
 
1675
1678
  CreateCustomModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
1676
- CreateCustomModelRequest.add_member(:model_source_config, Shapes::ShapeRef.new(shape: ModelDataSource, required: true, location_name: "modelSourceConfig"))
1679
+ CreateCustomModelRequest.add_member(:model_source_config, Shapes::ShapeRef.new(shape: ModelDataSource, location_name: "modelSourceConfig"))
1680
+ CreateCustomModelRequest.add_member(:custom_model_data_source, Shapes::ShapeRef.new(shape: CustomModelDataSource, location_name: "customModelDataSource"))
1677
1681
  CreateCustomModelRequest.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
1678
1682
  CreateCustomModelRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
1679
1683
  CreateCustomModelRequest.add_member(:model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "modelTags"))
@@ -1853,6 +1857,12 @@ module Aws::Bedrock
1853
1857
  CustomMetricEvaluatorModelConfig.add_member(:bedrock_evaluator_models, Shapes::ShapeRef.new(shape: CustomMetricBedrockEvaluatorModels, required: true, location_name: "bedrockEvaluatorModels"))
1854
1858
  CustomMetricEvaluatorModelConfig.struct_class = Types::CustomMetricEvaluatorModelConfig
1855
1859
 
1860
+ CustomModelDataSource.add_member(:model_package_arn_data_source, Shapes::ShapeRef.new(shape: ModelPackageArnDataSource, location_name: "modelPackageArnDataSource"))
1861
+ CustomModelDataSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1862
+ CustomModelDataSource.add_member_subclass(:model_package_arn_data_source, Types::CustomModelDataSource::ModelPackageArnDataSource)
1863
+ CustomModelDataSource.add_member_subclass(:unknown, Types::CustomModelDataSource::Unknown)
1864
+ CustomModelDataSource.struct_class = Types::CustomModelDataSource
1865
+
1856
1866
  CustomModelDeploymentSummary.add_member(:custom_model_deployment_arn, Shapes::ShapeRef.new(shape: CustomModelDeploymentArn, required: true, location_name: "customModelDeploymentArn"))
1857
1867
  CustomModelDeploymentSummary.add_member(:custom_model_deployment_name, Shapes::ShapeRef.new(shape: ModelDeploymentName, required: true, location_name: "customModelDeploymentName"))
1858
1868
  CustomModelDeploymentSummary.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "modelArn"))
@@ -3311,6 +3321,9 @@ module Aws::Bedrock
3311
3321
 
3312
3322
  ModelModalityList.member = Shapes::ShapeRef.new(shape: ModelModality)
3313
3323
 
3324
+ ModelPackageArnDataSource.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: ModelPackageArn, required: true, location_name: "modelPackageArn"))
3325
+ ModelPackageArnDataSource.struct_class = Types::ModelPackageArnDataSource
3326
+
3314
3327
  Offer.add_member(:offer_id, Shapes::ShapeRef.new(shape: OfferId, location_name: "offerId"))
3315
3328
  Offer.add_member(:offer_token, Shapes::ShapeRef.new(shape: OfferToken, required: true, location_name: "offerToken"))
3316
3329
  Offer.add_member(:term_details, Shapes::ShapeRef.new(shape: TermDetails, required: true, location_name: "termDetails"))
@@ -122,10 +122,12 @@ module Aws::Bedrock
122
122
  include Aws::Structure
123
123
  end
124
124
 
125
- # Input data configuration for the advanced prompt optimization job.
125
+ # Contains the input data configuration for an advanced prompt
126
+ # optimization job.
126
127
  #
127
128
  # @!attribute [rw] s3_uri
128
- # S3 URI of the input JSONL file.
129
+ # The S3 URI of the JSONL input file containing prompt templates and
130
+ # evaluation samples.
129
131
  # @return [String]
130
132
  #
131
133
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AdvancedPromptOptimizationInputConfig AWS API Documentation
@@ -136,26 +138,26 @@ module Aws::Bedrock
136
138
  include Aws::Structure
137
139
  end
138
140
 
139
- # Summary of an advanced prompt optimization job.
141
+ # Contains a summary of an advanced prompt optimization job.
140
142
  #
141
143
  # @!attribute [rw] job_arn
142
- # ARN of the advanced prompt optimization job.
144
+ # The Amazon Resource Name (ARN) of the job.
143
145
  # @return [String]
144
146
  #
145
147
  # @!attribute [rw] job_name
146
- # Name of the advanced prompt optimization job.
148
+ # The name of the job.
147
149
  # @return [String]
148
150
  #
149
151
  # @!attribute [rw] job_status
150
- # Status of the advanced prompt optimization job.
152
+ # The status of the job.
151
153
  # @return [String]
152
154
  #
153
155
  # @!attribute [rw] creation_time
154
- # Creation time of the advanced prompt optimization job.
156
+ # The time at which the job was created.
155
157
  # @return [Time]
156
158
  #
157
159
  # @!attribute [rw] last_modified_time
158
- # Last modified time of the advanced prompt optimization job.
160
+ # The time at which the job was last modified.
159
161
  # @return [Time]
160
162
  #
161
163
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AdvancedPromptOptimizationJobSummary AWS API Documentation
@@ -170,10 +172,11 @@ module Aws::Bedrock
170
172
  include Aws::Structure
171
173
  end
172
174
 
173
- # Output data configuration for the advanced prompt optimization job.
175
+ # Contains the output data configuration for an advanced prompt
176
+ # optimization job.
174
177
  #
175
178
  # @!attribute [rw] s3_uri
176
- # S3 URI prefix for the output location.
179
+ # The S3 URI prefix where the optimization results will be written.
177
180
  # @return [String]
178
181
  #
179
182
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AdvancedPromptOptimizationOutputConfig AWS API Documentation
@@ -2696,18 +2699,19 @@ module Aws::Bedrock
2696
2699
  class Unknown < AutomatedReasoningPolicyWorkflowTypeContent; end
2697
2700
  end
2698
2701
 
2699
- # Batch deletion error for an advanced prompt optimization job.
2702
+ # Contains information about an error that occurred when deleting an
2703
+ # advanced prompt optimization job.
2700
2704
  #
2701
2705
  # @!attribute [rw] job_identifier
2702
- # Identifier of the job that failed to delete.
2706
+ # The identifier of the job that could not be deleted.
2703
2707
  # @return [String]
2704
2708
  #
2705
2709
  # @!attribute [rw] code
2706
- # Error code for the deletion failure.
2710
+ # The error code for the deletion failure.
2707
2711
  # @return [String]
2708
2712
  #
2709
2713
  # @!attribute [rw] message
2710
- # Error message describing the deletion failure.
2714
+ # A message describing the error.
2711
2715
  # @return [String]
2712
2716
  #
2713
2717
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteAdvancedPromptOptimizationJobError AWS API Documentation
@@ -2720,14 +2724,15 @@ module Aws::Bedrock
2720
2724
  include Aws::Structure
2721
2725
  end
2722
2726
 
2723
- # Successfully deleted advanced prompt optimization job.
2727
+ # Contains information about a successfully deleted advanced prompt
2728
+ # optimization job.
2724
2729
  #
2725
2730
  # @!attribute [rw] job_identifier
2726
- # Identifier of the deleted job.
2731
+ # The identifier of the deleted job.
2727
2732
  # @return [String]
2728
2733
  #
2729
2734
  # @!attribute [rw] job_status
2730
- # Status of the deleted job.
2735
+ # The status of the deleted job.
2731
2736
  # @return [String]
2732
2737
  #
2733
2738
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteAdvancedPromptOptimizationJobItem AWS API Documentation
@@ -2742,7 +2747,8 @@ module Aws::Bedrock
2742
2747
  # Batch Delete Advanced Prompt Optimization Jobs Request
2743
2748
  #
2744
2749
  # @!attribute [rw] job_identifiers
2745
- # List of advanced prompt optimization job identifiers to delete.
2750
+ # A list of advanced prompt optimization job identifiers (ARNs or IDs)
2751
+ # to delete.
2746
2752
  # @return [Array<String>]
2747
2753
  #
2748
2754
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteAdvancedPromptOptimizationJobRequest AWS API Documentation
@@ -2756,11 +2762,11 @@ module Aws::Bedrock
2756
2762
  # Batch Delete Advanced Prompt Optimization Jobs Response
2757
2763
  #
2758
2764
  # @!attribute [rw] errors
2759
- # List of errors encountered during batch deletion.
2765
+ # A list of errors encountered during batch deletion.
2760
2766
  # @return [Array<Types::BatchDeleteAdvancedPromptOptimizationJobError>]
2761
2767
  #
2762
2768
  # @!attribute [rw] advanced_prompt_optimization_jobs
2763
- # List of successfully deleted advanced prompt optimization jobs.
2769
+ # A list of successfully deleted advanced prompt optimization jobs.
2764
2770
  # @return [Array<Types::BatchDeleteAdvancedPromptOptimizationJobItem>]
2765
2771
  #
2766
2772
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteAdvancedPromptOptimizationJobResponse AWS API Documentation
@@ -2954,38 +2960,45 @@ module Aws::Bedrock
2954
2960
  # Create Advanced Prompt Optimization Job Request
2955
2961
  #
2956
2962
  # @!attribute [rw] job_name
2957
- # Name of the advanced prompt optimization job.
2963
+ # A name for the advanced prompt optimization job.
2958
2964
  # @return [String]
2959
2965
  #
2960
2966
  # @!attribute [rw] job_description
2961
- # Description of the advanced prompt optimization job.
2967
+ # A description of the advanced prompt optimization job.
2962
2968
  # @return [String]
2963
2969
  #
2964
2970
  # @!attribute [rw] client_token
2965
- # Idempotency token for the request.
2971
+ # A unique, case-sensitive identifier to ensure that the API request
2972
+ # completes no more than one time. If this token matches a previous
2973
+ # request, Amazon Bedrock ignores the request but does not return an
2974
+ # error.
2966
2975
  #
2967
2976
  # **A suitable default value is auto-generated.** You should normally
2968
2977
  # not need to pass this option.
2969
2978
  # @return [String]
2970
2979
  #
2971
2980
  # @!attribute [rw] input_config
2972
- # Input data configuration for the advanced prompt optimization job.
2981
+ # Specifies the S3 location of your JSONL input file containing prompt
2982
+ # templates and evaluation samples.
2973
2983
  # @return [Types::AdvancedPromptOptimizationInputConfig]
2974
2984
  #
2975
2985
  # @!attribute [rw] output_config
2976
- # Output data configuration for the advanced prompt optimization job.
2986
+ # Specifies the S3 location where optimization results will be stored.
2977
2987
  # @return [Types::AdvancedPromptOptimizationOutputConfig]
2978
2988
  #
2979
2989
  # @!attribute [rw] encryption_key_arn
2980
- # KMS key ARN for encrypting output data.
2990
+ # The Amazon Resource Name (ARN) of the KMS key used for encrypting
2991
+ # the output data. If not specified, the output is encrypted with an
2992
+ # Amazon-owned KMS key.
2981
2993
  # @return [String]
2982
2994
  #
2983
2995
  # @!attribute [rw] tags
2984
- # Tags to associate with the job.
2996
+ # Tags to associate with the advanced prompt optimization job.
2985
2997
  # @return [Array<Types::Tag>]
2986
2998
  #
2987
2999
  # @!attribute [rw] model_configurations
2988
- # Model configurations for advanced prompt optimization.
3000
+ # A list of model configurations specifying the target models for
3001
+ # prompt optimization. You can specify up to 5 models.
2989
3002
  # @return [Array<Types::ModelConfiguration>]
2990
3003
  #
2991
3004
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAdvancedPromptOptimizationJobRequest AWS API Documentation
@@ -3006,7 +3019,8 @@ module Aws::Bedrock
3006
3019
  # Create Advanced Prompt Optimization Job Response
3007
3020
  #
3008
3021
  # @!attribute [rw] job_arn
3009
- # ARN of the created advanced prompt optimization job.
3022
+ # The Amazon Resource Name (ARN) of the created advanced prompt
3023
+ # optimization job.
3010
3024
  # @return [String]
3011
3025
  #
3012
3026
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAdvancedPromptOptimizationJobResponse AWS API Documentation
@@ -3368,6 +3382,16 @@ module Aws::Bedrock
3368
3382
  # model artifacts.
3369
3383
  # @return [Types::ModelDataSource]
3370
3384
  #
3385
+ # @!attribute [rw] custom_model_data_source
3386
+ # The data source for the custom model. Use this field to specify a
3387
+ # SageMaker AI model package ARN as the source for your custom model.
3388
+ # Amazon Bedrock resolves the model package to retrieve the model
3389
+ # artifacts.
3390
+ #
3391
+ # You can specify either `customModelDataSource` or
3392
+ # `modelSourceConfig`, but not both.
3393
+ # @return [Types::CustomModelDataSource]
3394
+ #
3371
3395
  # @!attribute [rw] model_kms_key_arn
3372
3396
  # The Amazon Resource Name (ARN) of the customer managed KMS key to
3373
3397
  # encrypt the custom model. If you don't provide a KMS key, Amazon
@@ -3391,6 +3415,11 @@ module Aws::Bedrock
3391
3415
  # [Setting up an IAM service role for importing models][1] in the
3392
3416
  # Amazon Bedrock User Guide.
3393
3417
  #
3418
+ # This field is required when you use `modelSourceConfig` with an
3419
+ # Amazon S3 data source. It is not required when you use
3420
+ # `customModelDataSource` with a model package ARN, because Amazon
3421
+ # Bedrock uses its own credentials to access the model artifacts.
3422
+ #
3394
3423
  #
3395
3424
  #
3396
3425
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
@@ -3429,6 +3458,7 @@ module Aws::Bedrock
3429
3458
  class CreateCustomModelRequest < Struct.new(
3430
3459
  :model_name,
3431
3460
  :model_source_config,
3461
+ :custom_model_data_source,
3432
3462
  :model_kms_key_arn,
3433
3463
  :role_arn,
3434
3464
  :model_tags,
@@ -4490,6 +4520,35 @@ module Aws::Bedrock
4490
4520
  include Aws::Structure
4491
4521
  end
4492
4522
 
4523
+ # The data source for a custom model. This is a union type that supports
4524
+ # the following member:
4525
+ #
4526
+ # * `modelPackageArnDataSource` — Specifies a SageMaker AI model package
4527
+ # as the data source.
4528
+ #
4529
+ # ^
4530
+ #
4531
+ # @note CustomModelDataSource is a union - when making an API calls you must set exactly one of the members.
4532
+ #
4533
+ # @!attribute [rw] model_package_arn_data_source
4534
+ # A SageMaker AI model package ARN as the data source for the custom
4535
+ # model. When you specify a model package ARN, Amazon Bedrock resolves
4536
+ # the model package to retrieve the model artifacts.
4537
+ # @return [Types::ModelPackageArnDataSource]
4538
+ #
4539
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomModelDataSource AWS API Documentation
4540
+ #
4541
+ class CustomModelDataSource < Struct.new(
4542
+ :model_package_arn_data_source,
4543
+ :unknown)
4544
+ SENSITIVE = []
4545
+ include Aws::Structure
4546
+ include Aws::Structure::Union
4547
+
4548
+ class ModelPackageArnDataSource < CustomModelDataSource; end
4549
+ class Unknown < CustomModelDataSource; end
4550
+ end
4551
+
4493
4552
  # Contains summary information about a custom model deployment,
4494
4553
  # including its ARN, name, status, and associated custom model.
4495
4554
  #
@@ -5946,7 +6005,7 @@ module Aws::Bedrock
5946
6005
  # Get Advanced Prompt Optimization Job Request
5947
6006
  #
5948
6007
  # @!attribute [rw] job_identifier
5949
- # ARN or ID of the advanced prompt optimization job.
6008
+ # The ARN or ID of the advanced prompt optimization job.
5950
6009
  # @return [String]
5951
6010
  #
5952
6011
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAdvancedPromptOptimizationJobRequest AWS API Documentation
@@ -5960,47 +6019,50 @@ module Aws::Bedrock
5960
6019
  # Get Advanced Prompt Optimization Job Response
5961
6020
  #
5962
6021
  # @!attribute [rw] job_arn
5963
- # ARN of the advanced prompt optimization job.
6022
+ # The Amazon Resource Name (ARN) of the advanced prompt optimization
6023
+ # job.
5964
6024
  # @return [String]
5965
6025
  #
5966
6026
  # @!attribute [rw] job_name
5967
- # Name of the advanced prompt optimization job.
6027
+ # The name of the advanced prompt optimization job.
5968
6028
  # @return [String]
5969
6029
  #
5970
6030
  # @!attribute [rw] job_description
5971
- # Description of the advanced prompt optimization job.
6031
+ # The description of the advanced prompt optimization job.
5972
6032
  # @return [String]
5973
6033
  #
5974
6034
  # @!attribute [rw] job_status
5975
- # Status of the advanced prompt optimization job.
6035
+ # The status of the advanced prompt optimization job.
5976
6036
  # @return [String]
5977
6037
  #
5978
6038
  # @!attribute [rw] input_config
5979
- # Input data configuration for the advanced prompt optimization job.
6039
+ # The input data configuration for the optimization job.
5980
6040
  # @return [Types::AdvancedPromptOptimizationInputConfig]
5981
6041
  #
5982
6042
  # @!attribute [rw] output_config
5983
- # Output data configuration for the advanced prompt optimization job.
6043
+ # The output data configuration for the optimization job.
5984
6044
  # @return [Types::AdvancedPromptOptimizationOutputConfig]
5985
6045
  #
5986
6046
  # @!attribute [rw] encryption_key_arn
5987
- # KMS key ARN used for encrypting output data.
6047
+ # The Amazon Resource Name (ARN) of the KMS key used to encrypt the
6048
+ # output data.
5988
6049
  # @return [String]
5989
6050
  #
5990
6051
  # @!attribute [rw] creation_time
5991
- # Creation time of the advanced prompt optimization job.
6052
+ # The time at which the advanced prompt optimization job was created.
5992
6053
  # @return [Time]
5993
6054
  #
5994
6055
  # @!attribute [rw] last_modified_time
5995
- # Last modified time of the advanced prompt optimization job.
6056
+ # The time at which the advanced prompt optimization job was last
6057
+ # modified.
5996
6058
  # @return [Time]
5997
6059
  #
5998
6060
  # @!attribute [rw] failure_message
5999
- # Failure message if the advanced prompt optimization job failed.
6061
+ # If the job failed, a message describing the reason for the failure.
6000
6062
  # @return [String]
6001
6063
  #
6002
6064
  # @!attribute [rw] model_configurations
6003
- # Model configurations for advanced prompt optimization.
6065
+ # The model configurations used in the optimization job.
6004
6066
  # @return [Array<Types::ModelConfiguration>]
6005
6067
  #
6006
6068
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAdvancedPromptOptimizationJobResponse AWS API Documentation
@@ -9618,22 +9680,36 @@ module Aws::Bedrock
9618
9680
  include Aws::Structure
9619
9681
  end
9620
9682
 
9621
- # Inference configuration for a model.
9683
+ # Base inference parameters to pass to a model. For more information,
9684
+ # see [Inference parameters for foundation models][1].
9685
+ #
9686
+ #
9687
+ #
9688
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html
9622
9689
  #
9623
9690
  # @!attribute [rw] max_tokens
9624
- # The maximum number of tokens to generate.
9691
+ # The maximum number of tokens to allow in the generated response. The
9692
+ # default value is the maximum allowed value for the model that you
9693
+ # are using.
9625
9694
  # @return [Integer]
9626
9695
  #
9627
9696
  # @!attribute [rw] temperature
9628
- # The temperature for sampling.
9697
+ # The likelihood of the model selecting higher-probability options
9698
+ # while generating a response. A lower value makes the model more
9699
+ # likely to choose higher-probability options, while a higher value
9700
+ # makes the model more likely to choose lower-probability options.
9629
9701
  # @return [Float]
9630
9702
  #
9631
9703
  # @!attribute [rw] top_p
9632
- # The top-p value for nucleus sampling.
9704
+ # The percentage of most-likely candidates that the model considers
9705
+ # for the next token. For example, if you choose a value of 0.8 for
9706
+ # `topP`, the model selects from the top 80% of the probability
9707
+ # distribution of tokens that could be next in the sequence.
9633
9708
  # @return [Float]
9634
9709
  #
9635
9710
  # @!attribute [rw] stop_sequences
9636
- # Stop sequences that end generation.
9711
+ # A list of stop sequences. A stop sequence is a sequence of
9712
+ # characters that causes the model to stop generating the response.
9637
9713
  # @return [Array<String>]
9638
9714
  #
9639
9715
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InferenceConfiguration AWS API Documentation
@@ -9996,19 +10072,21 @@ module Aws::Bedrock
9996
10072
  # List Advanced Prompt Optimization Jobs Request
9997
10073
  #
9998
10074
  # @!attribute [rw] max_results
9999
- # Maximum number of results to return.
10075
+ # The maximum number of results to return in the response.
10000
10076
  # @return [Integer]
10001
10077
  #
10002
10078
  # @!attribute [rw] next_token
10003
- # Pagination token for the next page of results.
10079
+ # If the total number of results is greater than the `maxResults`
10080
+ # value provided in the request, use this token in a subsequent
10081
+ # request to get the next set of results.
10004
10082
  # @return [String]
10005
10083
  #
10006
10084
  # @!attribute [rw] sort_by
10007
- # Field to sort by in the returned list of jobs.
10085
+ # The field to sort the results by.
10008
10086
  # @return [String]
10009
10087
  #
10010
10088
  # @!attribute [rw] sort_order
10011
- # Sort order for the results.
10089
+ # The sort order for the results.
10012
10090
  # @return [String]
10013
10091
  #
10014
10092
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAdvancedPromptOptimizationJobsRequest AWS API Documentation
@@ -10025,11 +10103,13 @@ module Aws::Bedrock
10025
10103
  # List Advanced Prompt Optimization Jobs Response
10026
10104
  #
10027
10105
  # @!attribute [rw] job_summaries
10028
- # List of advanced prompt optimization job summaries.
10106
+ # A list of advanced prompt optimization job summaries.
10029
10107
  # @return [Array<Types::AdvancedPromptOptimizationJobSummary>]
10030
10108
  #
10031
10109
  # @!attribute [rw] next_token
10032
- # Pagination token for the next page of results.
10110
+ # If the total number of results is greater than the `maxResults`
10111
+ # value provided in the request, use this token in a subsequent
10112
+ # request to get the next set of results.
10033
10113
  # @return [String]
10034
10114
  #
10035
10115
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAdvancedPromptOptimizationJobsResponse AWS API Documentation
@@ -11521,18 +11601,22 @@ module Aws::Bedrock
11521
11601
  include Aws::Structure
11522
11602
  end
11523
11603
 
11524
- # Configuration for a model used in advanced prompt optimization.
11604
+ # Contains the configuration for a model used in an advanced prompt
11605
+ # optimization job, including the model ID and inference parameters.
11525
11606
  #
11526
11607
  # @!attribute [rw] model_id
11527
- # The model ID.
11608
+ # The ID of the model to use for optimization.
11528
11609
  # @return [String]
11529
11610
  #
11530
11611
  # @!attribute [rw] inference_config
11531
- # Inference configuration for the model.
11612
+ # The inference configuration for the model, including parameters such
11613
+ # as maximum tokens, temperature, and top-p.
11532
11614
  # @return [Types::InferenceConfiguration]
11533
11615
  #
11534
11616
  # @!attribute [rw] additional_model_request_fields
11535
- # Additional model request fields.
11617
+ # Additional model request fields. Use this to pass model-specific
11618
+ # parameters that are not included in the standard inference
11619
+ # configuration.
11536
11620
  # @return [Hash<String,Hash,Array,String,Numeric,Boolean>]
11537
11621
  #
11538
11622
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelConfiguration AWS API Documentation
@@ -12064,6 +12148,27 @@ module Aws::Bedrock
12064
12148
  include Aws::Structure
12065
12149
  end
12066
12150
 
12151
+ # Contains the Amazon Resource Name (ARN) of a SageMaker AI model
12152
+ # package to use as the data source for a custom model.
12153
+ #
12154
+ # @!attribute [rw] model_package_arn
12155
+ # The Amazon Resource Name (ARN) of the SageMaker AI model package.
12156
+ # The ARN must be for a model package of `restricted` type.
12157
+ #
12158
+ # To use a model package ARN, you must have the
12159
+ # `sagemaker:DescribeModelPackage` and
12160
+ # `sagemaker:AccessModelPackageData` permissions on the model package
12161
+ # resource.
12162
+ # @return [String]
12163
+ #
12164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelPackageArnDataSource AWS API Documentation
12165
+ #
12166
+ class ModelPackageArnDataSource < Struct.new(
12167
+ :model_package_arn)
12168
+ SENSITIVE = []
12169
+ include Aws::Structure
12170
+ end
12171
+
12067
12172
  # An offer dictates usage terms for the model.
12068
12173
  #
12069
12174
  # @!attribute [rw] offer_id
@@ -13293,7 +13398,7 @@ module Aws::Bedrock
13293
13398
  # Stop Advanced Prompt Optimization Job Request
13294
13399
  #
13295
13400
  # @!attribute [rw] job_identifier
13296
- # ARN or ID of the advanced prompt optimization job to stop.
13401
+ # The ARN or ID of the advanced prompt optimization job to stop.
13297
13402
  # @return [String]
13298
13403
  #
13299
13404
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopAdvancedPromptOptimizationJobRequest AWS API Documentation
@@ -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.86.0'
58
+ GEM_VERSION = '1.87.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -220,11 +220,16 @@ module Aws
220
220
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_custom_model-instance_method
221
221
  def create_custom_model: (
222
222
  model_name: ::String,
223
- model_source_config: {
223
+ ?model_source_config: {
224
224
  s3_data_source: {
225
225
  s3_uri: ::String
226
226
  }?
227
227
  },
228
+ ?custom_model_data_source: {
229
+ model_package_arn_data_source: {
230
+ model_package_arn: ::String
231
+ }?
232
+ },
228
233
  ?model_kms_key_arn: ::String,
229
234
  ?role_arn: ::String,
230
235
  ?model_tags: Array[
data/sig/types.rbs CHANGED
@@ -973,6 +973,7 @@ module Aws::Bedrock
973
973
  class CreateCustomModelRequest
974
974
  attr_accessor model_name: ::String
975
975
  attr_accessor model_source_config: Types::ModelDataSource
976
+ attr_accessor custom_model_data_source: Types::CustomModelDataSource
976
977
  attr_accessor model_kms_key_arn: ::String
977
978
  attr_accessor role_arn: ::String
978
979
  attr_accessor model_tags: ::Array[Types::Tag]
@@ -1207,6 +1208,17 @@ module Aws::Bedrock
1207
1208
  SENSITIVE: []
1208
1209
  end
1209
1210
 
1211
+ class CustomModelDataSource
1212
+ attr_accessor model_package_arn_data_source: Types::ModelPackageArnDataSource
1213
+ attr_accessor unknown: untyped
1214
+ SENSITIVE: []
1215
+
1216
+ class ModelPackageArnDataSource < CustomModelDataSource
1217
+ end
1218
+ class Unknown < CustomModelDataSource
1219
+ end
1220
+ end
1221
+
1210
1222
  class CustomModelDeploymentSummary
1211
1223
  attr_accessor custom_model_deployment_arn: ::String
1212
1224
  attr_accessor custom_model_deployment_name: ::String
@@ -3052,6 +3064,11 @@ module Aws::Bedrock
3052
3064
  SENSITIVE: [:message]
3053
3065
  end
3054
3066
 
3067
+ class ModelPackageArnDataSource
3068
+ attr_accessor model_package_arn: ::String
3069
+ SENSITIVE: []
3070
+ end
3071
+
3055
3072
  class Offer
3056
3073
  attr_accessor offer_id: ::String
3057
3074
  attr_accessor offer_token: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.86.0
4
+ version: 1.87.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services