aws-sdk-bedrock 1.86.0 → 1.88.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +78 -27
- data/lib/aws-sdk-bedrock/client_api.rb +25 -1
- data/lib/aws-sdk-bedrock/types.rb +193 -57
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +19 -3
- data/sig/types.rbs +29 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3580fa914665d1d9840b701f0e297881daf038e3761c4cf698ac8a18e8fee1a6
|
|
4
|
+
data.tar.gz: 4127f6bb34a89421a6879f76889b289535944fb7eda70f3ff9af9ccb849ef2ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7979a88caf9166147ac7af18c38a5455d8fb814d81314a39609bf8e2df82de13a839529ef03f5f638f7ed2a9d22b3421c967d50d158acb3bf5a3c4d3cfc3a1ae
|
|
7
|
+
data.tar.gz: ddb507e6e199d1501aa06d2141045a7e96c593483f35e29b8382932f454041cd72fced20044d62ea59db5b833fbaa6e19a712290ecc433a324401fba1a5a7d07
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.88.0 (2026-05-29)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Automated Reasoning checks - Added two build workflows for policies. Iterative Refine Policy uses AI to update policy definitions based on test results and feedback. Resolve Policy Ambiguities consolidates ambiguous variables in Automated Reasoning policies, a common source of ambiguous validation.
|
|
8
|
+
|
|
9
|
+
1.87.0 (2026-05-28)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Add support for ModelPackageArn in Bedrock's CreateCustomModel API
|
|
13
|
+
|
|
4
14
|
1.86.0 (2026-05-22)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.88.0
|
|
@@ -476,10 +476,11 @@ module Aws::Bedrock
|
|
|
476
476
|
|
|
477
477
|
# @!group API Operations
|
|
478
478
|
|
|
479
|
-
#
|
|
479
|
+
# Deletes one or more advanced prompt optimization jobs.
|
|
480
480
|
#
|
|
481
481
|
# @option params [required, Array<String>] :job_identifiers
|
|
482
|
-
#
|
|
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
|
|
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
|
-
#
|
|
619
|
+
# A name for the advanced prompt optimization job.
|
|
617
620
|
#
|
|
618
621
|
# @option params [String] :job_description
|
|
619
|
-
#
|
|
622
|
+
# A description of the advanced prompt optimization job.
|
|
620
623
|
#
|
|
621
624
|
# @option params [String] :client_token
|
|
622
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
638
|
+
# Specifies the S3 location where optimization results will be stored.
|
|
632
639
|
#
|
|
633
640
|
# @option params [String] :encryption_key_arn
|
|
634
|
-
# KMS key
|
|
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
|
-
#
|
|
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 [
|
|
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: {
|
|
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
|
-
#
|
|
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
|
#
|
|
@@ -3610,7 +3648,7 @@ module Aws::Bedrock
|
|
|
3610
3648
|
# resp.policy_arn #=> String
|
|
3611
3649
|
# resp.build_workflow_id #=> String
|
|
3612
3650
|
# resp.status #=> String, one of "SCHEDULED", "CANCEL_REQUESTED", "PREPROCESSING", "BUILDING", "TESTING", "COMPLETED", "FAILED", "CANCELLED"
|
|
3613
|
-
# resp.build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY", "GENERATE_FIDELITY_REPORT", "GENERATE_POLICY_SCENARIOS"
|
|
3651
|
+
# resp.build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY", "GENERATE_FIDELITY_REPORT", "GENERATE_POLICY_SCENARIOS", "RESOLVE_POLICY_AMBIGUITIES", "ITERATIVELY_REFINE_POLICY"
|
|
3614
3652
|
# resp.document_name #=> String
|
|
3615
3653
|
# resp.document_content_type #=> String, one of "pdf", "txt"
|
|
3616
3654
|
# resp.document_description #=> String
|
|
@@ -5278,19 +5316,21 @@ module Aws::Bedrock
|
|
|
5278
5316
|
req.send_request(options)
|
|
5279
5317
|
end
|
|
5280
5318
|
|
|
5281
|
-
# Lists
|
|
5319
|
+
# Lists the advanced prompt optimization jobs in your account.
|
|
5282
5320
|
#
|
|
5283
5321
|
# @option params [Integer] :max_results
|
|
5284
|
-
#
|
|
5322
|
+
# The maximum number of results to return in the response.
|
|
5285
5323
|
#
|
|
5286
5324
|
# @option params [String] :next_token
|
|
5287
|
-
#
|
|
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
|
-
#
|
|
5330
|
+
# The field to sort the results by.
|
|
5291
5331
|
#
|
|
5292
5332
|
# @option params [String] :sort_order
|
|
5293
|
-
#
|
|
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
|
#
|
|
@@ -5415,7 +5455,7 @@ module Aws::Bedrock
|
|
|
5415
5455
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].policy_arn #=> String
|
|
5416
5456
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].build_workflow_id #=> String
|
|
5417
5457
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].status #=> String, one of "SCHEDULED", "CANCEL_REQUESTED", "PREPROCESSING", "BUILDING", "TESTING", "COMPLETED", "FAILED", "CANCELLED"
|
|
5418
|
-
# resp.automated_reasoning_policy_build_workflow_summaries[0].build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY", "GENERATE_FIDELITY_REPORT", "GENERATE_POLICY_SCENARIOS"
|
|
5458
|
+
# resp.automated_reasoning_policy_build_workflow_summaries[0].build_workflow_type #=> String, one of "INGEST_CONTENT", "REFINE_POLICY", "IMPORT_POLICY", "GENERATE_FIDELITY_REPORT", "GENERATE_POLICY_SCENARIOS", "RESOLVE_POLICY_AMBIGUITIES", "ITERATIVELY_REFINE_POLICY"
|
|
5419
5459
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].created_at #=> Time
|
|
5420
5460
|
# resp.automated_reasoning_policy_build_workflow_summaries[0].updated_at #=> Time
|
|
5421
5461
|
# resp.next_token #=> String
|
|
@@ -7212,7 +7252,7 @@ module Aws::Bedrock
|
|
|
7212
7252
|
#
|
|
7213
7253
|
# resp = client.start_automated_reasoning_policy_build_workflow({
|
|
7214
7254
|
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
|
7215
|
-
# build_workflow_type: "INGEST_CONTENT", # required, accepts INGEST_CONTENT, REFINE_POLICY, IMPORT_POLICY, GENERATE_FIDELITY_REPORT, GENERATE_POLICY_SCENARIOS
|
|
7255
|
+
# build_workflow_type: "INGEST_CONTENT", # required, accepts INGEST_CONTENT, REFINE_POLICY, IMPORT_POLICY, GENERATE_FIDELITY_REPORT, GENERATE_POLICY_SCENARIOS, RESOLVE_POLICY_AMBIGUITIES, ITERATIVELY_REFINE_POLICY
|
|
7216
7256
|
# client_request_token: "IdempotencyToken",
|
|
7217
7257
|
# source_content: { # required
|
|
7218
7258
|
# policy_definition: {
|
|
@@ -7341,6 +7381,17 @@ module Aws::Bedrock
|
|
|
7341
7381
|
# },
|
|
7342
7382
|
# ],
|
|
7343
7383
|
# },
|
|
7384
|
+
# iterative_refinement_content: {
|
|
7385
|
+
# documents: [ # required
|
|
7386
|
+
# {
|
|
7387
|
+
# document: "data", # required
|
|
7388
|
+
# document_content_type: "pdf", # required, accepts pdf, txt
|
|
7389
|
+
# document_name: "AutomatedReasoningPolicyBuildDocumentName", # required
|
|
7390
|
+
# document_description: "AutomatedReasoningPolicyBuildDocumentDescription",
|
|
7391
|
+
# },
|
|
7392
|
+
# ],
|
|
7393
|
+
# feedback: "AutomatedReasoningPolicyBuildFeedback",
|
|
7394
|
+
# },
|
|
7344
7395
|
# },
|
|
7345
7396
|
# },
|
|
7346
7397
|
# })
|
|
@@ -7410,10 +7461,10 @@ module Aws::Bedrock
|
|
|
7410
7461
|
req.send_request(options)
|
|
7411
7462
|
end
|
|
7412
7463
|
|
|
7413
|
-
# Stops an
|
|
7464
|
+
# Stops an advanced prompt optimization job that is in progress.
|
|
7414
7465
|
#
|
|
7415
7466
|
# @option params [required, String] :job_identifier
|
|
7416
|
-
# ARN or ID of the advanced prompt optimization job to stop.
|
|
7467
|
+
# The ARN or ID of the advanced prompt optimization job to stop.
|
|
7417
7468
|
#
|
|
7418
7469
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
7419
7470
|
#
|
|
@@ -8244,7 +8295,7 @@ module Aws::Bedrock
|
|
|
8244
8295
|
tracer: tracer
|
|
8245
8296
|
)
|
|
8246
8297
|
context[:gem_name] = 'aws-sdk-bedrock'
|
|
8247
|
-
context[:gem_version] = '1.
|
|
8298
|
+
context[:gem_version] = '1.88.0'
|
|
8248
8299
|
Seahorse::Client::Request.new(handlers, context)
|
|
8249
8300
|
end
|
|
8250
8301
|
|
|
@@ -100,6 +100,7 @@ module Aws::Bedrock
|
|
|
100
100
|
AutomatedReasoningPolicyBuildDocumentContentType = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildDocumentContentType')
|
|
101
101
|
AutomatedReasoningPolicyBuildDocumentDescription = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildDocumentDescription')
|
|
102
102
|
AutomatedReasoningPolicyBuildDocumentName = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildDocumentName')
|
|
103
|
+
AutomatedReasoningPolicyBuildFeedback = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyBuildFeedback')
|
|
103
104
|
AutomatedReasoningPolicyBuildLog = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyBuildLog')
|
|
104
105
|
AutomatedReasoningPolicyBuildLogEntry = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyBuildLogEntry')
|
|
105
106
|
AutomatedReasoningPolicyBuildLogEntryList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyBuildLogEntryList')
|
|
@@ -175,6 +176,8 @@ module Aws::Bedrock
|
|
|
175
176
|
AutomatedReasoningPolicyHash = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyHash')
|
|
176
177
|
AutomatedReasoningPolicyId = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyId')
|
|
177
178
|
AutomatedReasoningPolicyIngestContentAnnotation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyIngestContentAnnotation')
|
|
179
|
+
AutomatedReasoningPolicyIterativeRefinementContent = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyIterativeRefinementContent')
|
|
180
|
+
AutomatedReasoningPolicyIterativeRefinementDocumentList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyIterativeRefinementDocumentList')
|
|
178
181
|
AutomatedReasoningPolicyJustificationList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyJustificationList')
|
|
179
182
|
AutomatedReasoningPolicyJustificationText = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyJustificationText')
|
|
180
183
|
AutomatedReasoningPolicyLineNumberList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyLineNumberList')
|
|
@@ -296,6 +299,7 @@ module Aws::Bedrock
|
|
|
296
299
|
CustomMetricEvaluatorModelConfig = Shapes::StructureShape.new(name: 'CustomMetricEvaluatorModelConfig')
|
|
297
300
|
CustomMetricInstructions = Shapes::StringShape.new(name: 'CustomMetricInstructions')
|
|
298
301
|
CustomModelArn = Shapes::StringShape.new(name: 'CustomModelArn')
|
|
302
|
+
CustomModelDataSource = Shapes::UnionShape.new(name: 'CustomModelDataSource')
|
|
299
303
|
CustomModelDeploymentArn = Shapes::StringShape.new(name: 'CustomModelDeploymentArn')
|
|
300
304
|
CustomModelDeploymentDescription = Shapes::StringShape.new(name: 'CustomModelDeploymentDescription')
|
|
301
305
|
CustomModelDeploymentIdentifier = Shapes::StringShape.new(name: 'CustomModelDeploymentIdentifier')
|
|
@@ -733,6 +737,8 @@ module Aws::Bedrock
|
|
|
733
737
|
ModelModality = Shapes::StringShape.new(name: 'ModelModality')
|
|
734
738
|
ModelModalityList = Shapes::ListShape.new(name: 'ModelModalityList')
|
|
735
739
|
ModelName = Shapes::StringShape.new(name: 'ModelName')
|
|
740
|
+
ModelPackageArn = Shapes::StringShape.new(name: 'ModelPackageArn')
|
|
741
|
+
ModelPackageArnDataSource = Shapes::StructureShape.new(name: 'ModelPackageArnDataSource')
|
|
736
742
|
ModelSourceIdentifier = Shapes::StringShape.new(name: 'ModelSourceIdentifier')
|
|
737
743
|
ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
|
|
738
744
|
NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
|
|
@@ -1363,6 +1369,12 @@ module Aws::Bedrock
|
|
|
1363
1369
|
AutomatedReasoningPolicyIngestContentAnnotation.add_member(:content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotationIngestContent, required: true, location_name: "content"))
|
|
1364
1370
|
AutomatedReasoningPolicyIngestContentAnnotation.struct_class = Types::AutomatedReasoningPolicyIngestContentAnnotation
|
|
1365
1371
|
|
|
1372
|
+
AutomatedReasoningPolicyIterativeRefinementContent.add_member(:documents, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyIterativeRefinementDocumentList, required: true, location_name: "documents"))
|
|
1373
|
+
AutomatedReasoningPolicyIterativeRefinementContent.add_member(:feedback, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildFeedback, location_name: "feedback"))
|
|
1374
|
+
AutomatedReasoningPolicyIterativeRefinementContent.struct_class = Types::AutomatedReasoningPolicyIterativeRefinementContent
|
|
1375
|
+
|
|
1376
|
+
AutomatedReasoningPolicyIterativeRefinementDocumentList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildWorkflowDocument)
|
|
1377
|
+
|
|
1366
1378
|
AutomatedReasoningPolicyJustificationList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyJustificationText)
|
|
1367
1379
|
|
|
1368
1380
|
AutomatedReasoningPolicyLineNumberList.member = Shapes::ShapeRef.new(shape: Integer)
|
|
@@ -1535,10 +1547,12 @@ module Aws::Bedrock
|
|
|
1535
1547
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:documents, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildWorkflowDocumentList, location_name: "documents"))
|
|
1536
1548
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:policy_repair_assets, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildWorkflowRepairContent, location_name: "policyRepairAssets"))
|
|
1537
1549
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:generate_fidelity_report_content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyGenerateFidelityReportContent, location_name: "generateFidelityReportContent"))
|
|
1550
|
+
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:iterative_refinement_content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyIterativeRefinementContent, location_name: "iterativeRefinementContent"))
|
|
1538
1551
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1539
1552
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:documents, Types::AutomatedReasoningPolicyWorkflowTypeContent::Documents)
|
|
1540
1553
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:policy_repair_assets, Types::AutomatedReasoningPolicyWorkflowTypeContent::PolicyRepairAssets)
|
|
1541
1554
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:generate_fidelity_report_content, Types::AutomatedReasoningPolicyWorkflowTypeContent::GenerateFidelityReportContent)
|
|
1555
|
+
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:iterative_refinement_content, Types::AutomatedReasoningPolicyWorkflowTypeContent::IterativeRefinementContent)
|
|
1542
1556
|
AutomatedReasoningPolicyWorkflowTypeContent.add_member_subclass(:unknown, Types::AutomatedReasoningPolicyWorkflowTypeContent::Unknown)
|
|
1543
1557
|
AutomatedReasoningPolicyWorkflowTypeContent.struct_class = Types::AutomatedReasoningPolicyWorkflowTypeContent
|
|
1544
1558
|
|
|
@@ -1673,7 +1687,8 @@ module Aws::Bedrock
|
|
|
1673
1687
|
CreateCustomModelDeploymentResponse.struct_class = Types::CreateCustomModelDeploymentResponse
|
|
1674
1688
|
|
|
1675
1689
|
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,
|
|
1690
|
+
CreateCustomModelRequest.add_member(:model_source_config, Shapes::ShapeRef.new(shape: ModelDataSource, location_name: "modelSourceConfig"))
|
|
1691
|
+
CreateCustomModelRequest.add_member(:custom_model_data_source, Shapes::ShapeRef.new(shape: CustomModelDataSource, location_name: "customModelDataSource"))
|
|
1677
1692
|
CreateCustomModelRequest.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
|
|
1678
1693
|
CreateCustomModelRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
|
|
1679
1694
|
CreateCustomModelRequest.add_member(:model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "modelTags"))
|
|
@@ -1853,6 +1868,12 @@ module Aws::Bedrock
|
|
|
1853
1868
|
CustomMetricEvaluatorModelConfig.add_member(:bedrock_evaluator_models, Shapes::ShapeRef.new(shape: CustomMetricBedrockEvaluatorModels, required: true, location_name: "bedrockEvaluatorModels"))
|
|
1854
1869
|
CustomMetricEvaluatorModelConfig.struct_class = Types::CustomMetricEvaluatorModelConfig
|
|
1855
1870
|
|
|
1871
|
+
CustomModelDataSource.add_member(:model_package_arn_data_source, Shapes::ShapeRef.new(shape: ModelPackageArnDataSource, location_name: "modelPackageArnDataSource"))
|
|
1872
|
+
CustomModelDataSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1873
|
+
CustomModelDataSource.add_member_subclass(:model_package_arn_data_source, Types::CustomModelDataSource::ModelPackageArnDataSource)
|
|
1874
|
+
CustomModelDataSource.add_member_subclass(:unknown, Types::CustomModelDataSource::Unknown)
|
|
1875
|
+
CustomModelDataSource.struct_class = Types::CustomModelDataSource
|
|
1876
|
+
|
|
1856
1877
|
CustomModelDeploymentSummary.add_member(:custom_model_deployment_arn, Shapes::ShapeRef.new(shape: CustomModelDeploymentArn, required: true, location_name: "customModelDeploymentArn"))
|
|
1857
1878
|
CustomModelDeploymentSummary.add_member(:custom_model_deployment_name, Shapes::ShapeRef.new(shape: ModelDeploymentName, required: true, location_name: "customModelDeploymentName"))
|
|
1858
1879
|
CustomModelDeploymentSummary.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "modelArn"))
|
|
@@ -3311,6 +3332,9 @@ module Aws::Bedrock
|
|
|
3311
3332
|
|
|
3312
3333
|
ModelModalityList.member = Shapes::ShapeRef.new(shape: ModelModality)
|
|
3313
3334
|
|
|
3335
|
+
ModelPackageArnDataSource.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: ModelPackageArn, required: true, location_name: "modelPackageArn"))
|
|
3336
|
+
ModelPackageArnDataSource.struct_class = Types::ModelPackageArnDataSource
|
|
3337
|
+
|
|
3314
3338
|
Offer.add_member(:offer_id, Shapes::ShapeRef.new(shape: OfferId, location_name: "offerId"))
|
|
3315
3339
|
Offer.add_member(:offer_token, Shapes::ShapeRef.new(shape: OfferToken, required: true, location_name: "offerToken"))
|
|
3316
3340
|
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
|
-
#
|
|
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
|
|
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
|
-
#
|
|
141
|
+
# Contains a summary of an advanced prompt optimization job.
|
|
140
142
|
#
|
|
141
143
|
# @!attribute [rw] job_arn
|
|
142
|
-
# ARN of the
|
|
144
|
+
# The Amazon Resource Name (ARN) of the job.
|
|
143
145
|
# @return [String]
|
|
144
146
|
#
|
|
145
147
|
# @!attribute [rw] job_name
|
|
146
|
-
#
|
|
148
|
+
# The name of the job.
|
|
147
149
|
# @return [String]
|
|
148
150
|
#
|
|
149
151
|
# @!attribute [rw] job_status
|
|
150
|
-
#
|
|
152
|
+
# The status of the job.
|
|
151
153
|
# @return [String]
|
|
152
154
|
#
|
|
153
155
|
# @!attribute [rw] creation_time
|
|
154
|
-
#
|
|
156
|
+
# The time at which the job was created.
|
|
155
157
|
# @return [Time]
|
|
156
158
|
#
|
|
157
159
|
# @!attribute [rw] last_modified_time
|
|
158
|
-
#
|
|
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
|
-
#
|
|
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
|
|
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
|
|
@@ -1950,6 +1953,29 @@ module Aws::Bedrock
|
|
|
1950
1953
|
include Aws::Structure
|
|
1951
1954
|
end
|
|
1952
1955
|
|
|
1956
|
+
# Configuration for an iterative policy refinement workflow, including
|
|
1957
|
+
# source documents to process and optional feedback to guide the
|
|
1958
|
+
# refinement.
|
|
1959
|
+
#
|
|
1960
|
+
# @!attribute [rw] documents
|
|
1961
|
+
# Source documents used for iterative policy refinement. These
|
|
1962
|
+
# documents provide context for refining the policy definition.
|
|
1963
|
+
# @return [Array<Types::AutomatedReasoningPolicyBuildWorkflowDocument>]
|
|
1964
|
+
#
|
|
1965
|
+
# @!attribute [rw] feedback
|
|
1966
|
+
# Optional feedback to guide the iterative refinement workflow.
|
|
1967
|
+
# Provide specific instructions or constraints for policy refinement.
|
|
1968
|
+
# @return [String]
|
|
1969
|
+
#
|
|
1970
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyIterativeRefinementContent AWS API Documentation
|
|
1971
|
+
#
|
|
1972
|
+
class AutomatedReasoningPolicyIterativeRefinementContent < Struct.new(
|
|
1973
|
+
:documents,
|
|
1974
|
+
:feedback)
|
|
1975
|
+
SENSITIVE = [:feedback]
|
|
1976
|
+
include Aws::Structure
|
|
1977
|
+
end
|
|
1978
|
+
|
|
1953
1979
|
# A container for various mutation operations that can be applied to an
|
|
1954
1980
|
# Automated Reasoning policy, including adding, updating, and deleting
|
|
1955
1981
|
# policy elements.
|
|
@@ -2679,12 +2705,19 @@ module Aws::Bedrock
|
|
|
2679
2705
|
# report to update with a new policy definition.
|
|
2680
2706
|
# @return [Types::AutomatedReasoningPolicyGenerateFidelityReportContent]
|
|
2681
2707
|
#
|
|
2708
|
+
# @!attribute [rw] iterative_refinement_content
|
|
2709
|
+
# Content configuration to start an iterative policy refinement
|
|
2710
|
+
# workflow that uses generative AI to automatically make changes to
|
|
2711
|
+
# the policy based on test results and the optional feedback provided.
|
|
2712
|
+
# @return [Types::AutomatedReasoningPolicyIterativeRefinementContent]
|
|
2713
|
+
#
|
|
2682
2714
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyWorkflowTypeContent AWS API Documentation
|
|
2683
2715
|
#
|
|
2684
2716
|
class AutomatedReasoningPolicyWorkflowTypeContent < Struct.new(
|
|
2685
2717
|
:documents,
|
|
2686
2718
|
:policy_repair_assets,
|
|
2687
2719
|
:generate_fidelity_report_content,
|
|
2720
|
+
:iterative_refinement_content,
|
|
2688
2721
|
:unknown)
|
|
2689
2722
|
SENSITIVE = []
|
|
2690
2723
|
include Aws::Structure
|
|
@@ -2693,21 +2726,23 @@ module Aws::Bedrock
|
|
|
2693
2726
|
class Documents < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2694
2727
|
class PolicyRepairAssets < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2695
2728
|
class GenerateFidelityReportContent < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2729
|
+
class IterativeRefinementContent < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2696
2730
|
class Unknown < AutomatedReasoningPolicyWorkflowTypeContent; end
|
|
2697
2731
|
end
|
|
2698
2732
|
|
|
2699
|
-
#
|
|
2733
|
+
# Contains information about an error that occurred when deleting an
|
|
2734
|
+
# advanced prompt optimization job.
|
|
2700
2735
|
#
|
|
2701
2736
|
# @!attribute [rw] job_identifier
|
|
2702
|
-
#
|
|
2737
|
+
# The identifier of the job that could not be deleted.
|
|
2703
2738
|
# @return [String]
|
|
2704
2739
|
#
|
|
2705
2740
|
# @!attribute [rw] code
|
|
2706
|
-
#
|
|
2741
|
+
# The error code for the deletion failure.
|
|
2707
2742
|
# @return [String]
|
|
2708
2743
|
#
|
|
2709
2744
|
# @!attribute [rw] message
|
|
2710
|
-
#
|
|
2745
|
+
# A message describing the error.
|
|
2711
2746
|
# @return [String]
|
|
2712
2747
|
#
|
|
2713
2748
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteAdvancedPromptOptimizationJobError AWS API Documentation
|
|
@@ -2720,14 +2755,15 @@ module Aws::Bedrock
|
|
|
2720
2755
|
include Aws::Structure
|
|
2721
2756
|
end
|
|
2722
2757
|
|
|
2723
|
-
#
|
|
2758
|
+
# Contains information about a successfully deleted advanced prompt
|
|
2759
|
+
# optimization job.
|
|
2724
2760
|
#
|
|
2725
2761
|
# @!attribute [rw] job_identifier
|
|
2726
|
-
#
|
|
2762
|
+
# The identifier of the deleted job.
|
|
2727
2763
|
# @return [String]
|
|
2728
2764
|
#
|
|
2729
2765
|
# @!attribute [rw] job_status
|
|
2730
|
-
#
|
|
2766
|
+
# The status of the deleted job.
|
|
2731
2767
|
# @return [String]
|
|
2732
2768
|
#
|
|
2733
2769
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteAdvancedPromptOptimizationJobItem AWS API Documentation
|
|
@@ -2742,7 +2778,8 @@ module Aws::Bedrock
|
|
|
2742
2778
|
# Batch Delete Advanced Prompt Optimization Jobs Request
|
|
2743
2779
|
#
|
|
2744
2780
|
# @!attribute [rw] job_identifiers
|
|
2745
|
-
#
|
|
2781
|
+
# A list of advanced prompt optimization job identifiers (ARNs or IDs)
|
|
2782
|
+
# to delete.
|
|
2746
2783
|
# @return [Array<String>]
|
|
2747
2784
|
#
|
|
2748
2785
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteAdvancedPromptOptimizationJobRequest AWS API Documentation
|
|
@@ -2756,11 +2793,11 @@ module Aws::Bedrock
|
|
|
2756
2793
|
# Batch Delete Advanced Prompt Optimization Jobs Response
|
|
2757
2794
|
#
|
|
2758
2795
|
# @!attribute [rw] errors
|
|
2759
|
-
#
|
|
2796
|
+
# A list of errors encountered during batch deletion.
|
|
2760
2797
|
# @return [Array<Types::BatchDeleteAdvancedPromptOptimizationJobError>]
|
|
2761
2798
|
#
|
|
2762
2799
|
# @!attribute [rw] advanced_prompt_optimization_jobs
|
|
2763
|
-
#
|
|
2800
|
+
# A list of successfully deleted advanced prompt optimization jobs.
|
|
2764
2801
|
# @return [Array<Types::BatchDeleteAdvancedPromptOptimizationJobItem>]
|
|
2765
2802
|
#
|
|
2766
2803
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteAdvancedPromptOptimizationJobResponse AWS API Documentation
|
|
@@ -2954,38 +2991,45 @@ module Aws::Bedrock
|
|
|
2954
2991
|
# Create Advanced Prompt Optimization Job Request
|
|
2955
2992
|
#
|
|
2956
2993
|
# @!attribute [rw] job_name
|
|
2957
|
-
#
|
|
2994
|
+
# A name for the advanced prompt optimization job.
|
|
2958
2995
|
# @return [String]
|
|
2959
2996
|
#
|
|
2960
2997
|
# @!attribute [rw] job_description
|
|
2961
|
-
#
|
|
2998
|
+
# A description of the advanced prompt optimization job.
|
|
2962
2999
|
# @return [String]
|
|
2963
3000
|
#
|
|
2964
3001
|
# @!attribute [rw] client_token
|
|
2965
|
-
#
|
|
3002
|
+
# A unique, case-sensitive identifier to ensure that the API request
|
|
3003
|
+
# completes no more than one time. If this token matches a previous
|
|
3004
|
+
# request, Amazon Bedrock ignores the request but does not return an
|
|
3005
|
+
# error.
|
|
2966
3006
|
#
|
|
2967
3007
|
# **A suitable default value is auto-generated.** You should normally
|
|
2968
3008
|
# not need to pass this option.
|
|
2969
3009
|
# @return [String]
|
|
2970
3010
|
#
|
|
2971
3011
|
# @!attribute [rw] input_config
|
|
2972
|
-
#
|
|
3012
|
+
# Specifies the S3 location of your JSONL input file containing prompt
|
|
3013
|
+
# templates and evaluation samples.
|
|
2973
3014
|
# @return [Types::AdvancedPromptOptimizationInputConfig]
|
|
2974
3015
|
#
|
|
2975
3016
|
# @!attribute [rw] output_config
|
|
2976
|
-
#
|
|
3017
|
+
# Specifies the S3 location where optimization results will be stored.
|
|
2977
3018
|
# @return [Types::AdvancedPromptOptimizationOutputConfig]
|
|
2978
3019
|
#
|
|
2979
3020
|
# @!attribute [rw] encryption_key_arn
|
|
2980
|
-
# KMS key
|
|
3021
|
+
# The Amazon Resource Name (ARN) of the KMS key used for encrypting
|
|
3022
|
+
# the output data. If not specified, the output is encrypted with an
|
|
3023
|
+
# Amazon-owned KMS key.
|
|
2981
3024
|
# @return [String]
|
|
2982
3025
|
#
|
|
2983
3026
|
# @!attribute [rw] tags
|
|
2984
|
-
# Tags to associate with the job.
|
|
3027
|
+
# Tags to associate with the advanced prompt optimization job.
|
|
2985
3028
|
# @return [Array<Types::Tag>]
|
|
2986
3029
|
#
|
|
2987
3030
|
# @!attribute [rw] model_configurations
|
|
2988
|
-
#
|
|
3031
|
+
# A list of model configurations specifying the target models for
|
|
3032
|
+
# prompt optimization. You can specify up to 5 models.
|
|
2989
3033
|
# @return [Array<Types::ModelConfiguration>]
|
|
2990
3034
|
#
|
|
2991
3035
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAdvancedPromptOptimizationJobRequest AWS API Documentation
|
|
@@ -3006,7 +3050,8 @@ module Aws::Bedrock
|
|
|
3006
3050
|
# Create Advanced Prompt Optimization Job Response
|
|
3007
3051
|
#
|
|
3008
3052
|
# @!attribute [rw] job_arn
|
|
3009
|
-
# ARN of the created advanced prompt
|
|
3053
|
+
# The Amazon Resource Name (ARN) of the created advanced prompt
|
|
3054
|
+
# optimization job.
|
|
3010
3055
|
# @return [String]
|
|
3011
3056
|
#
|
|
3012
3057
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAdvancedPromptOptimizationJobResponse AWS API Documentation
|
|
@@ -3368,6 +3413,16 @@ module Aws::Bedrock
|
|
|
3368
3413
|
# model artifacts.
|
|
3369
3414
|
# @return [Types::ModelDataSource]
|
|
3370
3415
|
#
|
|
3416
|
+
# @!attribute [rw] custom_model_data_source
|
|
3417
|
+
# The data source for the custom model. Use this field to specify a
|
|
3418
|
+
# SageMaker AI model package ARN as the source for your custom model.
|
|
3419
|
+
# Amazon Bedrock resolves the model package to retrieve the model
|
|
3420
|
+
# artifacts.
|
|
3421
|
+
#
|
|
3422
|
+
# You can specify either `customModelDataSource` or
|
|
3423
|
+
# `modelSourceConfig`, but not both.
|
|
3424
|
+
# @return [Types::CustomModelDataSource]
|
|
3425
|
+
#
|
|
3371
3426
|
# @!attribute [rw] model_kms_key_arn
|
|
3372
3427
|
# The Amazon Resource Name (ARN) of the customer managed KMS key to
|
|
3373
3428
|
# encrypt the custom model. If you don't provide a KMS key, Amazon
|
|
@@ -3391,6 +3446,11 @@ module Aws::Bedrock
|
|
|
3391
3446
|
# [Setting up an IAM service role for importing models][1] in the
|
|
3392
3447
|
# Amazon Bedrock User Guide.
|
|
3393
3448
|
#
|
|
3449
|
+
# This field is required when you use `modelSourceConfig` with an
|
|
3450
|
+
# Amazon S3 data source. It is not required when you use
|
|
3451
|
+
# `customModelDataSource` with a model package ARN, because Amazon
|
|
3452
|
+
# Bedrock uses its own credentials to access the model artifacts.
|
|
3453
|
+
#
|
|
3394
3454
|
#
|
|
3395
3455
|
#
|
|
3396
3456
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
|
|
@@ -3429,6 +3489,7 @@ module Aws::Bedrock
|
|
|
3429
3489
|
class CreateCustomModelRequest < Struct.new(
|
|
3430
3490
|
:model_name,
|
|
3431
3491
|
:model_source_config,
|
|
3492
|
+
:custom_model_data_source,
|
|
3432
3493
|
:model_kms_key_arn,
|
|
3433
3494
|
:role_arn,
|
|
3434
3495
|
:model_tags,
|
|
@@ -4490,6 +4551,35 @@ module Aws::Bedrock
|
|
|
4490
4551
|
include Aws::Structure
|
|
4491
4552
|
end
|
|
4492
4553
|
|
|
4554
|
+
# The data source for a custom model. This is a union type that supports
|
|
4555
|
+
# the following member:
|
|
4556
|
+
#
|
|
4557
|
+
# * `modelPackageArnDataSource` — Specifies a SageMaker AI model package
|
|
4558
|
+
# as the data source.
|
|
4559
|
+
#
|
|
4560
|
+
# ^
|
|
4561
|
+
#
|
|
4562
|
+
# @note CustomModelDataSource is a union - when making an API calls you must set exactly one of the members.
|
|
4563
|
+
#
|
|
4564
|
+
# @!attribute [rw] model_package_arn_data_source
|
|
4565
|
+
# A SageMaker AI model package ARN as the data source for the custom
|
|
4566
|
+
# model. When you specify a model package ARN, Amazon Bedrock resolves
|
|
4567
|
+
# the model package to retrieve the model artifacts.
|
|
4568
|
+
# @return [Types::ModelPackageArnDataSource]
|
|
4569
|
+
#
|
|
4570
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomModelDataSource AWS API Documentation
|
|
4571
|
+
#
|
|
4572
|
+
class CustomModelDataSource < Struct.new(
|
|
4573
|
+
:model_package_arn_data_source,
|
|
4574
|
+
:unknown)
|
|
4575
|
+
SENSITIVE = []
|
|
4576
|
+
include Aws::Structure
|
|
4577
|
+
include Aws::Structure::Union
|
|
4578
|
+
|
|
4579
|
+
class ModelPackageArnDataSource < CustomModelDataSource; end
|
|
4580
|
+
class Unknown < CustomModelDataSource; end
|
|
4581
|
+
end
|
|
4582
|
+
|
|
4493
4583
|
# Contains summary information about a custom model deployment,
|
|
4494
4584
|
# including its ARN, name, status, and associated custom model.
|
|
4495
4585
|
#
|
|
@@ -5946,7 +6036,7 @@ module Aws::Bedrock
|
|
|
5946
6036
|
# Get Advanced Prompt Optimization Job Request
|
|
5947
6037
|
#
|
|
5948
6038
|
# @!attribute [rw] job_identifier
|
|
5949
|
-
# ARN or ID of the advanced prompt optimization job.
|
|
6039
|
+
# The ARN or ID of the advanced prompt optimization job.
|
|
5950
6040
|
# @return [String]
|
|
5951
6041
|
#
|
|
5952
6042
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAdvancedPromptOptimizationJobRequest AWS API Documentation
|
|
@@ -5960,47 +6050,50 @@ module Aws::Bedrock
|
|
|
5960
6050
|
# Get Advanced Prompt Optimization Job Response
|
|
5961
6051
|
#
|
|
5962
6052
|
# @!attribute [rw] job_arn
|
|
5963
|
-
# ARN of the advanced prompt optimization
|
|
6053
|
+
# The Amazon Resource Name (ARN) of the advanced prompt optimization
|
|
6054
|
+
# job.
|
|
5964
6055
|
# @return [String]
|
|
5965
6056
|
#
|
|
5966
6057
|
# @!attribute [rw] job_name
|
|
5967
|
-
#
|
|
6058
|
+
# The name of the advanced prompt optimization job.
|
|
5968
6059
|
# @return [String]
|
|
5969
6060
|
#
|
|
5970
6061
|
# @!attribute [rw] job_description
|
|
5971
|
-
#
|
|
6062
|
+
# The description of the advanced prompt optimization job.
|
|
5972
6063
|
# @return [String]
|
|
5973
6064
|
#
|
|
5974
6065
|
# @!attribute [rw] job_status
|
|
5975
|
-
#
|
|
6066
|
+
# The status of the advanced prompt optimization job.
|
|
5976
6067
|
# @return [String]
|
|
5977
6068
|
#
|
|
5978
6069
|
# @!attribute [rw] input_config
|
|
5979
|
-
#
|
|
6070
|
+
# The input data configuration for the optimization job.
|
|
5980
6071
|
# @return [Types::AdvancedPromptOptimizationInputConfig]
|
|
5981
6072
|
#
|
|
5982
6073
|
# @!attribute [rw] output_config
|
|
5983
|
-
#
|
|
6074
|
+
# The output data configuration for the optimization job.
|
|
5984
6075
|
# @return [Types::AdvancedPromptOptimizationOutputConfig]
|
|
5985
6076
|
#
|
|
5986
6077
|
# @!attribute [rw] encryption_key_arn
|
|
5987
|
-
# KMS key
|
|
6078
|
+
# The Amazon Resource Name (ARN) of the KMS key used to encrypt the
|
|
6079
|
+
# output data.
|
|
5988
6080
|
# @return [String]
|
|
5989
6081
|
#
|
|
5990
6082
|
# @!attribute [rw] creation_time
|
|
5991
|
-
#
|
|
6083
|
+
# The time at which the advanced prompt optimization job was created.
|
|
5992
6084
|
# @return [Time]
|
|
5993
6085
|
#
|
|
5994
6086
|
# @!attribute [rw] last_modified_time
|
|
5995
|
-
#
|
|
6087
|
+
# The time at which the advanced prompt optimization job was last
|
|
6088
|
+
# modified.
|
|
5996
6089
|
# @return [Time]
|
|
5997
6090
|
#
|
|
5998
6091
|
# @!attribute [rw] failure_message
|
|
5999
|
-
#
|
|
6092
|
+
# If the job failed, a message describing the reason for the failure.
|
|
6000
6093
|
# @return [String]
|
|
6001
6094
|
#
|
|
6002
6095
|
# @!attribute [rw] model_configurations
|
|
6003
|
-
#
|
|
6096
|
+
# The model configurations used in the optimization job.
|
|
6004
6097
|
# @return [Array<Types::ModelConfiguration>]
|
|
6005
6098
|
#
|
|
6006
6099
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAdvancedPromptOptimizationJobResponse AWS API Documentation
|
|
@@ -9618,22 +9711,36 @@ module Aws::Bedrock
|
|
|
9618
9711
|
include Aws::Structure
|
|
9619
9712
|
end
|
|
9620
9713
|
|
|
9621
|
-
#
|
|
9714
|
+
# Base inference parameters to pass to a model. For more information,
|
|
9715
|
+
# see [Inference parameters for foundation models][1].
|
|
9716
|
+
#
|
|
9717
|
+
#
|
|
9718
|
+
#
|
|
9719
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html
|
|
9622
9720
|
#
|
|
9623
9721
|
# @!attribute [rw] max_tokens
|
|
9624
|
-
# The maximum number of tokens to
|
|
9722
|
+
# The maximum number of tokens to allow in the generated response. The
|
|
9723
|
+
# default value is the maximum allowed value for the model that you
|
|
9724
|
+
# are using.
|
|
9625
9725
|
# @return [Integer]
|
|
9626
9726
|
#
|
|
9627
9727
|
# @!attribute [rw] temperature
|
|
9628
|
-
# The
|
|
9728
|
+
# The likelihood of the model selecting higher-probability options
|
|
9729
|
+
# while generating a response. A lower value makes the model more
|
|
9730
|
+
# likely to choose higher-probability options, while a higher value
|
|
9731
|
+
# makes the model more likely to choose lower-probability options.
|
|
9629
9732
|
# @return [Float]
|
|
9630
9733
|
#
|
|
9631
9734
|
# @!attribute [rw] top_p
|
|
9632
|
-
# The
|
|
9735
|
+
# The percentage of most-likely candidates that the model considers
|
|
9736
|
+
# for the next token. For example, if you choose a value of 0.8 for
|
|
9737
|
+
# `topP`, the model selects from the top 80% of the probability
|
|
9738
|
+
# distribution of tokens that could be next in the sequence.
|
|
9633
9739
|
# @return [Float]
|
|
9634
9740
|
#
|
|
9635
9741
|
# @!attribute [rw] stop_sequences
|
|
9636
|
-
#
|
|
9742
|
+
# A list of stop sequences. A stop sequence is a sequence of
|
|
9743
|
+
# characters that causes the model to stop generating the response.
|
|
9637
9744
|
# @return [Array<String>]
|
|
9638
9745
|
#
|
|
9639
9746
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InferenceConfiguration AWS API Documentation
|
|
@@ -9996,19 +10103,21 @@ module Aws::Bedrock
|
|
|
9996
10103
|
# List Advanced Prompt Optimization Jobs Request
|
|
9997
10104
|
#
|
|
9998
10105
|
# @!attribute [rw] max_results
|
|
9999
|
-
#
|
|
10106
|
+
# The maximum number of results to return in the response.
|
|
10000
10107
|
# @return [Integer]
|
|
10001
10108
|
#
|
|
10002
10109
|
# @!attribute [rw] next_token
|
|
10003
|
-
#
|
|
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.
|
|
10004
10113
|
# @return [String]
|
|
10005
10114
|
#
|
|
10006
10115
|
# @!attribute [rw] sort_by
|
|
10007
|
-
#
|
|
10116
|
+
# The field to sort the results by.
|
|
10008
10117
|
# @return [String]
|
|
10009
10118
|
#
|
|
10010
10119
|
# @!attribute [rw] sort_order
|
|
10011
|
-
#
|
|
10120
|
+
# The sort order for the results.
|
|
10012
10121
|
# @return [String]
|
|
10013
10122
|
#
|
|
10014
10123
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAdvancedPromptOptimizationJobsRequest AWS API Documentation
|
|
@@ -10025,11 +10134,13 @@ module Aws::Bedrock
|
|
|
10025
10134
|
# List Advanced Prompt Optimization Jobs Response
|
|
10026
10135
|
#
|
|
10027
10136
|
# @!attribute [rw] job_summaries
|
|
10028
|
-
#
|
|
10137
|
+
# A list of advanced prompt optimization job summaries.
|
|
10029
10138
|
# @return [Array<Types::AdvancedPromptOptimizationJobSummary>]
|
|
10030
10139
|
#
|
|
10031
10140
|
# @!attribute [rw] next_token
|
|
10032
|
-
#
|
|
10141
|
+
# If the total number of results is greater than the `maxResults`
|
|
10142
|
+
# value provided in the request, use this token in a subsequent
|
|
10143
|
+
# request to get the next set of results.
|
|
10033
10144
|
# @return [String]
|
|
10034
10145
|
#
|
|
10035
10146
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAdvancedPromptOptimizationJobsResponse AWS API Documentation
|
|
@@ -11521,18 +11632,22 @@ module Aws::Bedrock
|
|
|
11521
11632
|
include Aws::Structure
|
|
11522
11633
|
end
|
|
11523
11634
|
|
|
11524
|
-
#
|
|
11635
|
+
# Contains the configuration for a model used in an advanced prompt
|
|
11636
|
+
# optimization job, including the model ID and inference parameters.
|
|
11525
11637
|
#
|
|
11526
11638
|
# @!attribute [rw] model_id
|
|
11527
|
-
# The model
|
|
11639
|
+
# The ID of the model to use for optimization.
|
|
11528
11640
|
# @return [String]
|
|
11529
11641
|
#
|
|
11530
11642
|
# @!attribute [rw] inference_config
|
|
11531
|
-
#
|
|
11643
|
+
# The inference configuration for the model, including parameters such
|
|
11644
|
+
# as maximum tokens, temperature, and top-p.
|
|
11532
11645
|
# @return [Types::InferenceConfiguration]
|
|
11533
11646
|
#
|
|
11534
11647
|
# @!attribute [rw] additional_model_request_fields
|
|
11535
|
-
# Additional model request fields.
|
|
11648
|
+
# Additional model request fields. Use this to pass model-specific
|
|
11649
|
+
# parameters that are not included in the standard inference
|
|
11650
|
+
# configuration.
|
|
11536
11651
|
# @return [Hash<String,Hash,Array,String,Numeric,Boolean>]
|
|
11537
11652
|
#
|
|
11538
11653
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelConfiguration AWS API Documentation
|
|
@@ -12064,6 +12179,27 @@ module Aws::Bedrock
|
|
|
12064
12179
|
include Aws::Structure
|
|
12065
12180
|
end
|
|
12066
12181
|
|
|
12182
|
+
# Contains the Amazon Resource Name (ARN) of a SageMaker AI model
|
|
12183
|
+
# package to use as the data source for a custom model.
|
|
12184
|
+
#
|
|
12185
|
+
# @!attribute [rw] model_package_arn
|
|
12186
|
+
# The Amazon Resource Name (ARN) of the SageMaker AI model package.
|
|
12187
|
+
# The ARN must be for a model package of `restricted` type.
|
|
12188
|
+
#
|
|
12189
|
+
# To use a model package ARN, you must have the
|
|
12190
|
+
# `sagemaker:DescribeModelPackage` and
|
|
12191
|
+
# `sagemaker:AccessModelPackageData` permissions on the model package
|
|
12192
|
+
# resource.
|
|
12193
|
+
# @return [String]
|
|
12194
|
+
#
|
|
12195
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelPackageArnDataSource AWS API Documentation
|
|
12196
|
+
#
|
|
12197
|
+
class ModelPackageArnDataSource < Struct.new(
|
|
12198
|
+
:model_package_arn)
|
|
12199
|
+
SENSITIVE = []
|
|
12200
|
+
include Aws::Structure
|
|
12201
|
+
end
|
|
12202
|
+
|
|
12067
12203
|
# An offer dictates usage terms for the model.
|
|
12068
12204
|
#
|
|
12069
12205
|
# @!attribute [rw] offer_id
|
|
@@ -13293,7 +13429,7 @@ module Aws::Bedrock
|
|
|
13293
13429
|
# Stop Advanced Prompt Optimization Job Request
|
|
13294
13430
|
#
|
|
13295
13431
|
# @!attribute [rw] job_identifier
|
|
13296
|
-
# ARN or ID of the advanced prompt optimization job to stop.
|
|
13432
|
+
# The ARN or ID of the advanced prompt optimization job to stop.
|
|
13297
13433
|
# @return [String]
|
|
13298
13434
|
#
|
|
13299
13435
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopAdvancedPromptOptimizationJobRequest AWS API Documentation
|
data/lib/aws-sdk-bedrock.rb
CHANGED
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[
|
|
@@ -978,7 +983,7 @@ module Aws
|
|
|
978
983
|
def policy_arn: () -> ::String
|
|
979
984
|
def build_workflow_id: () -> ::String
|
|
980
985
|
def status: () -> ("SCHEDULED" | "CANCEL_REQUESTED" | "PREPROCESSING" | "BUILDING" | "TESTING" | "COMPLETED" | "FAILED" | "CANCELLED")
|
|
981
|
-
def build_workflow_type: () -> ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS")
|
|
986
|
+
def build_workflow_type: () -> ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS" | "RESOLVE_POLICY_AMBIGUITIES" | "ITERATIVELY_REFINE_POLICY")
|
|
982
987
|
def document_name: () -> ::String
|
|
983
988
|
def document_content_type: () -> ("pdf" | "txt")
|
|
984
989
|
def document_description: () -> ::String
|
|
@@ -1807,7 +1812,7 @@ module Aws
|
|
|
1807
1812
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#start_automated_reasoning_policy_build_workflow-instance_method
|
|
1808
1813
|
def start_automated_reasoning_policy_build_workflow: (
|
|
1809
1814
|
policy_arn: ::String,
|
|
1810
|
-
build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS"),
|
|
1815
|
+
build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS" | "RESOLVE_POLICY_AMBIGUITIES" | "ITERATIVELY_REFINE_POLICY"),
|
|
1811
1816
|
?client_request_token: ::String,
|
|
1812
1817
|
source_content: {
|
|
1813
1818
|
policy_definition: Params::automated_reasoning_policy_definition?,
|
|
@@ -1834,6 +1839,17 @@ module Aws
|
|
|
1834
1839
|
document_description: ::String?
|
|
1835
1840
|
}
|
|
1836
1841
|
]?
|
|
1842
|
+
}?,
|
|
1843
|
+
iterative_refinement_content: {
|
|
1844
|
+
documents: Array[
|
|
1845
|
+
{
|
|
1846
|
+
document: ::String,
|
|
1847
|
+
document_content_type: ("pdf" | "txt"),
|
|
1848
|
+
document_name: ::String,
|
|
1849
|
+
document_description: ::String?
|
|
1850
|
+
}
|
|
1851
|
+
],
|
|
1852
|
+
feedback: ::String?
|
|
1837
1853
|
}?
|
|
1838
1854
|
}?
|
|
1839
1855
|
}
|
data/sig/types.rbs
CHANGED
|
@@ -428,7 +428,7 @@ module Aws::Bedrock
|
|
|
428
428
|
attr_accessor policy_arn: ::String
|
|
429
429
|
attr_accessor build_workflow_id: ::String
|
|
430
430
|
attr_accessor status: ("SCHEDULED" | "CANCEL_REQUESTED" | "PREPROCESSING" | "BUILDING" | "TESTING" | "COMPLETED" | "FAILED" | "CANCELLED")
|
|
431
|
-
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS")
|
|
431
|
+
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS" | "RESOLVE_POLICY_AMBIGUITIES" | "ITERATIVELY_REFINE_POLICY")
|
|
432
432
|
attr_accessor created_at: ::Time
|
|
433
433
|
attr_accessor updated_at: ::Time
|
|
434
434
|
SENSITIVE: []
|
|
@@ -582,6 +582,12 @@ module Aws::Bedrock
|
|
|
582
582
|
SENSITIVE: [:content]
|
|
583
583
|
end
|
|
584
584
|
|
|
585
|
+
class AutomatedReasoningPolicyIterativeRefinementContent
|
|
586
|
+
attr_accessor documents: ::Array[Types::AutomatedReasoningPolicyBuildWorkflowDocument]
|
|
587
|
+
attr_accessor feedback: ::String
|
|
588
|
+
SENSITIVE: [:feedback]
|
|
589
|
+
end
|
|
590
|
+
|
|
585
591
|
class AutomatedReasoningPolicyMutation
|
|
586
592
|
attr_accessor add_type: Types::AutomatedReasoningPolicyAddTypeMutation
|
|
587
593
|
attr_accessor update_type: Types::AutomatedReasoningPolicyUpdateTypeMutation
|
|
@@ -790,6 +796,7 @@ module Aws::Bedrock
|
|
|
790
796
|
attr_accessor documents: ::Array[Types::AutomatedReasoningPolicyBuildWorkflowDocument]
|
|
791
797
|
attr_accessor policy_repair_assets: Types::AutomatedReasoningPolicyBuildWorkflowRepairContent
|
|
792
798
|
attr_accessor generate_fidelity_report_content: Types::AutomatedReasoningPolicyGenerateFidelityReportContent
|
|
799
|
+
attr_accessor iterative_refinement_content: Types::AutomatedReasoningPolicyIterativeRefinementContent
|
|
793
800
|
attr_accessor unknown: untyped
|
|
794
801
|
SENSITIVE: []
|
|
795
802
|
|
|
@@ -799,6 +806,8 @@ module Aws::Bedrock
|
|
|
799
806
|
end
|
|
800
807
|
class GenerateFidelityReportContent < AutomatedReasoningPolicyWorkflowTypeContent
|
|
801
808
|
end
|
|
809
|
+
class IterativeRefinementContent < AutomatedReasoningPolicyWorkflowTypeContent
|
|
810
|
+
end
|
|
802
811
|
class Unknown < AutomatedReasoningPolicyWorkflowTypeContent
|
|
803
812
|
end
|
|
804
813
|
end
|
|
@@ -973,6 +982,7 @@ module Aws::Bedrock
|
|
|
973
982
|
class CreateCustomModelRequest
|
|
974
983
|
attr_accessor model_name: ::String
|
|
975
984
|
attr_accessor model_source_config: Types::ModelDataSource
|
|
985
|
+
attr_accessor custom_model_data_source: Types::CustomModelDataSource
|
|
976
986
|
attr_accessor model_kms_key_arn: ::String
|
|
977
987
|
attr_accessor role_arn: ::String
|
|
978
988
|
attr_accessor model_tags: ::Array[Types::Tag]
|
|
@@ -1207,6 +1217,17 @@ module Aws::Bedrock
|
|
|
1207
1217
|
SENSITIVE: []
|
|
1208
1218
|
end
|
|
1209
1219
|
|
|
1220
|
+
class CustomModelDataSource
|
|
1221
|
+
attr_accessor model_package_arn_data_source: Types::ModelPackageArnDataSource
|
|
1222
|
+
attr_accessor unknown: untyped
|
|
1223
|
+
SENSITIVE: []
|
|
1224
|
+
|
|
1225
|
+
class ModelPackageArnDataSource < CustomModelDataSource
|
|
1226
|
+
end
|
|
1227
|
+
class Unknown < CustomModelDataSource
|
|
1228
|
+
end
|
|
1229
|
+
end
|
|
1230
|
+
|
|
1210
1231
|
class CustomModelDeploymentSummary
|
|
1211
1232
|
attr_accessor custom_model_deployment_arn: ::String
|
|
1212
1233
|
attr_accessor custom_model_deployment_name: ::String
|
|
@@ -1705,7 +1726,7 @@ module Aws::Bedrock
|
|
|
1705
1726
|
attr_accessor policy_arn: ::String
|
|
1706
1727
|
attr_accessor build_workflow_id: ::String
|
|
1707
1728
|
attr_accessor status: ("SCHEDULED" | "CANCEL_REQUESTED" | "PREPROCESSING" | "BUILDING" | "TESTING" | "COMPLETED" | "FAILED" | "CANCELLED")
|
|
1708
|
-
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS")
|
|
1729
|
+
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS" | "RESOLVE_POLICY_AMBIGUITIES" | "ITERATIVELY_REFINE_POLICY")
|
|
1709
1730
|
attr_accessor document_name: ::String
|
|
1710
1731
|
attr_accessor document_content_type: ("pdf" | "txt")
|
|
1711
1732
|
attr_accessor document_description: ::String
|
|
@@ -3052,6 +3073,11 @@ module Aws::Bedrock
|
|
|
3052
3073
|
SENSITIVE: [:message]
|
|
3053
3074
|
end
|
|
3054
3075
|
|
|
3076
|
+
class ModelPackageArnDataSource
|
|
3077
|
+
attr_accessor model_package_arn: ::String
|
|
3078
|
+
SENSITIVE: []
|
|
3079
|
+
end
|
|
3080
|
+
|
|
3055
3081
|
class Offer
|
|
3056
3082
|
attr_accessor offer_id: ::String
|
|
3057
3083
|
attr_accessor offer_token: ::String
|
|
@@ -3385,7 +3411,7 @@ module Aws::Bedrock
|
|
|
3385
3411
|
|
|
3386
3412
|
class StartAutomatedReasoningPolicyBuildWorkflowRequest
|
|
3387
3413
|
attr_accessor policy_arn: ::String
|
|
3388
|
-
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS")
|
|
3414
|
+
attr_accessor build_workflow_type: ("INGEST_CONTENT" | "REFINE_POLICY" | "IMPORT_POLICY" | "GENERATE_FIDELITY_REPORT" | "GENERATE_POLICY_SCENARIOS" | "RESOLVE_POLICY_AMBIGUITIES" | "ITERATIVELY_REFINE_POLICY")
|
|
3389
3415
|
attr_accessor client_request_token: ::String
|
|
3390
3416
|
attr_accessor source_content: Types::AutomatedReasoningPolicyBuildWorkflowSource
|
|
3391
3417
|
SENSITIVE: []
|