aws-sdk-bedrock 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +37 -24
- data/lib/aws-sdk-bedrock/client_api.rb +13 -0
- data/lib/aws-sdk-bedrock/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +3 -2
- data/lib/aws-sdk-bedrock/types.rb +91 -21
- data/lib/aws-sdk-bedrock.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be11326a282743af1543b3bbd62c123b7aa0763293433d38c676a5cf21b5a59c
|
4
|
+
data.tar.gz: f67032545cf9d9b41b072bc4c1cb5676b8cd154ccf099800fc1f43085df27a93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 100673cf17804afe4802700b2ec5ea768c722fda4c87868f57cbba43e60adbcdd82deb11a8212ab467121ada6f216ce271ec879d4505b8f0cf53d1c3289c1169
|
7
|
+
data.tar.gz: 074d8ea35c6e219b9df44417a6840faed21dd1fb6c67cb4c7b05a0723ab45273b79177ead57102d4979fc21e8796d77bd30d95cad012ea41a48fb69160f69f87
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.3.0 (2023-11-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for customization types, model life cycle status and minor versions/aliases for model identifiers.
|
8
|
+
|
4
9
|
1.2.0 (2023-11-22)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
@@ -395,8 +395,8 @@ module Aws::Bedrock
|
|
395
395
|
# custom model resource will be ready to use. Training data contains
|
396
396
|
# input and output text for each record in a JSONL format. Optionally,
|
397
397
|
# you can specify validation data in the same format as the training
|
398
|
-
# data. Bedrock returns validation loss metrics and output
|
399
|
-
# after the job completes.
|
398
|
+
# data. Amazon Bedrock returns validation loss metrics and output
|
399
|
+
# generations after the job completes.
|
400
400
|
#
|
401
401
|
# Model-customization jobs are asynchronous and the completion time
|
402
402
|
# depends on the base model and the training/validation data size. To
|
@@ -417,11 +417,12 @@ module Aws::Bedrock
|
|
417
417
|
# Enter a name for the custom model.
|
418
418
|
#
|
419
419
|
# @option params [required, String] :role_arn
|
420
|
-
# The Amazon Resource Name (ARN) of an IAM role that Bedrock can
|
421
|
-
# to perform tasks on your behalf. For example, during model
|
422
|
-
# Bedrock needs your permission to read input data from
|
423
|
-
# write model artifacts to an S3 bucket. To pass this role
|
424
|
-
# the caller of this API must have the `iam:PassRole`
|
420
|
+
# The Amazon Resource Name (ARN) of an IAM role that Amazon Bedrock can
|
421
|
+
# assume to perform tasks on your behalf. For example, during model
|
422
|
+
# training, Amazon Bedrock needs your permission to read input data from
|
423
|
+
# an S3 bucket, write model artifacts to an S3 bucket. To pass this role
|
424
|
+
# to Amazon Bedrock, the caller of this API must have the `iam:PassRole`
|
425
|
+
# permission.
|
425
426
|
#
|
426
427
|
# @option params [String] :client_request_token
|
427
428
|
# Unique token value that you can provide. The GetModelCustomizationJob
|
@@ -433,6 +434,9 @@ module Aws::Bedrock
|
|
433
434
|
# @option params [required, String] :base_model_identifier
|
434
435
|
# Name of the base model.
|
435
436
|
#
|
437
|
+
# @option params [String] :customization_type
|
438
|
+
# The customization type.
|
439
|
+
#
|
436
440
|
# @option params [String] :custom_model_kms_key_id
|
437
441
|
# The custom model is encrypted at rest using this key.
|
438
442
|
#
|
@@ -471,6 +475,7 @@ module Aws::Bedrock
|
|
471
475
|
# role_arn: "RoleArn", # required
|
472
476
|
# client_request_token: "IdempotencyToken",
|
473
477
|
# base_model_identifier: "BaseModelIdentifier", # required
|
478
|
+
# customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING
|
474
479
|
# custom_model_kms_key_id: "KmsKeyId",
|
475
480
|
# job_tags: [
|
476
481
|
# {
|
@@ -531,8 +536,8 @@ module Aws::Bedrock
|
|
531
536
|
#
|
532
537
|
# @option params [String] :client_request_token
|
533
538
|
# Unique token value that you can provide. If this token matches a
|
534
|
-
# previous request, Bedrock ignores the request, but does not
|
535
|
-
# error.
|
539
|
+
# previous request, Amazon Bedrock ignores the request, but does not
|
540
|
+
# return an error.
|
536
541
|
#
|
537
542
|
# **A suitable default value is auto-generated.** You should normally
|
538
543
|
# not need to pass this option.**
|
@@ -653,8 +658,8 @@ module Aws::Bedrock
|
|
653
658
|
req.send_request(options)
|
654
659
|
end
|
655
660
|
|
656
|
-
# Get the properties associated with a Bedrock custom model that
|
657
|
-
# have created.For more information, see [Custom models][1] in the
|
661
|
+
# Get the properties associated with a Amazon Bedrock custom model that
|
662
|
+
# you have created.For more information, see [Custom models][1] in the
|
658
663
|
# Bedrock User Guide.
|
659
664
|
#
|
660
665
|
#
|
@@ -671,6 +676,7 @@ module Aws::Bedrock
|
|
671
676
|
# * {Types::GetCustomModelResponse#job_name #job_name} => String
|
672
677
|
# * {Types::GetCustomModelResponse#job_arn #job_arn} => String
|
673
678
|
# * {Types::GetCustomModelResponse#base_model_arn #base_model_arn} => String
|
679
|
+
# * {Types::GetCustomModelResponse#customization_type #customization_type} => String
|
674
680
|
# * {Types::GetCustomModelResponse#model_kms_key_arn #model_kms_key_arn} => String
|
675
681
|
# * {Types::GetCustomModelResponse#hyper_parameters #hyper_parameters} => Hash<String,String>
|
676
682
|
# * {Types::GetCustomModelResponse#training_data_config #training_data_config} => Types::TrainingDataConfig
|
@@ -693,6 +699,7 @@ module Aws::Bedrock
|
|
693
699
|
# resp.job_name #=> String
|
694
700
|
# resp.job_arn #=> String
|
695
701
|
# resp.base_model_arn #=> String
|
702
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING"
|
696
703
|
# resp.model_kms_key_arn #=> String
|
697
704
|
# resp.hyper_parameters #=> Hash
|
698
705
|
# resp.hyper_parameters["String"] #=> String
|
@@ -714,7 +721,7 @@ module Aws::Bedrock
|
|
714
721
|
req.send_request(options)
|
715
722
|
end
|
716
723
|
|
717
|
-
# Get details about a Bedrock foundation model.
|
724
|
+
# Get details about a Amazon Bedrock foundation model.
|
718
725
|
#
|
719
726
|
# @option params [required, String] :model_identifier
|
720
727
|
# The model identifier.
|
@@ -741,9 +748,10 @@ module Aws::Bedrock
|
|
741
748
|
# resp.model_details.output_modalities[0] #=> String, one of "TEXT", "IMAGE", "EMBEDDING"
|
742
749
|
# resp.model_details.response_streaming_supported #=> Boolean
|
743
750
|
# resp.model_details.customizations_supported #=> Array
|
744
|
-
# resp.model_details.customizations_supported[0] #=> String, one of "FINE_TUNING"
|
751
|
+
# resp.model_details.customizations_supported[0] #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING"
|
745
752
|
# resp.model_details.inference_types_supported #=> Array
|
746
753
|
# resp.model_details.inference_types_supported[0] #=> String, one of "ON_DEMAND", "PROVISIONED"
|
754
|
+
# resp.model_details.model_lifecycle.status #=> String, one of "ACTIVE", "LEGACY"
|
747
755
|
#
|
748
756
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModel AWS API Documentation
|
749
757
|
#
|
@@ -783,6 +791,7 @@ module Aws::Bedrock
|
|
783
791
|
# * {Types::GetModelCustomizationJobResponse#training_data_config #training_data_config} => Types::TrainingDataConfig
|
784
792
|
# * {Types::GetModelCustomizationJobResponse#validation_data_config #validation_data_config} => Types::ValidationDataConfig
|
785
793
|
# * {Types::GetModelCustomizationJobResponse#output_data_config #output_data_config} => Types::OutputDataConfig
|
794
|
+
# * {Types::GetModelCustomizationJobResponse#customization_type #customization_type} => String
|
786
795
|
# * {Types::GetModelCustomizationJobResponse#output_model_kms_key_arn #output_model_kms_key_arn} => String
|
787
796
|
# * {Types::GetModelCustomizationJobResponse#training_metrics #training_metrics} => Types::TrainingMetrics
|
788
797
|
# * {Types::GetModelCustomizationJobResponse#validation_metrics #validation_metrics} => Array<Types::ValidatorMetric>
|
@@ -814,6 +823,7 @@ module Aws::Bedrock
|
|
814
823
|
# resp.validation_data_config.validators #=> Array
|
815
824
|
# resp.validation_data_config.validators[0].s3_uri #=> String
|
816
825
|
# resp.output_data_config.s3_uri #=> String
|
826
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING"
|
817
827
|
# resp.output_model_kms_key_arn #=> String
|
818
828
|
# resp.training_metrics.training_loss #=> Float
|
819
829
|
# resp.validation_metrics #=> Array
|
@@ -947,8 +957,8 @@ module Aws::Bedrock
|
|
947
957
|
# Maximum number of results to return in the response.
|
948
958
|
#
|
949
959
|
# @option params [String] :next_token
|
950
|
-
# Continuation token from the previous response, for Bedrock to
|
951
|
-
# next set of results.
|
960
|
+
# Continuation token from the previous response, for Amazon Bedrock to
|
961
|
+
# list the next set of results.
|
952
962
|
#
|
953
963
|
# @option params [String] :sort_by
|
954
964
|
# The field to sort by in the returned list of models.
|
@@ -986,6 +996,7 @@ module Aws::Bedrock
|
|
986
996
|
# resp.model_summaries[0].creation_time #=> Time
|
987
997
|
# resp.model_summaries[0].base_model_arn #=> String
|
988
998
|
# resp.model_summaries[0].base_model_name #=> String
|
999
|
+
# resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING"
|
989
1000
|
#
|
990
1001
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels AWS API Documentation
|
991
1002
|
#
|
@@ -996,7 +1007,7 @@ module Aws::Bedrock
|
|
996
1007
|
req.send_request(options)
|
997
1008
|
end
|
998
1009
|
|
999
|
-
# List of Bedrock foundation models that you can use. For more
|
1010
|
+
# List of Amazon Bedrock foundation models that you can use. For more
|
1000
1011
|
# information, see [Foundation models][1] in the Bedrock User Guide.
|
1001
1012
|
#
|
1002
1013
|
#
|
@@ -1004,7 +1015,7 @@ module Aws::Bedrock
|
|
1004
1015
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html
|
1005
1016
|
#
|
1006
1017
|
# @option params [String] :by_provider
|
1007
|
-
# A Bedrock model provider.
|
1018
|
+
# A Amazon Bedrock model provider.
|
1008
1019
|
#
|
1009
1020
|
# @option params [String] :by_customization_type
|
1010
1021
|
# List by customization type.
|
@@ -1023,7 +1034,7 @@ module Aws::Bedrock
|
|
1023
1034
|
#
|
1024
1035
|
# resp = client.list_foundation_models({
|
1025
1036
|
# by_provider: "Provider",
|
1026
|
-
# by_customization_type: "FINE_TUNING", # accepts FINE_TUNING
|
1037
|
+
# by_customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING
|
1027
1038
|
# by_output_modality: "TEXT", # accepts TEXT, IMAGE, EMBEDDING
|
1028
1039
|
# by_inference_type: "ON_DEMAND", # accepts ON_DEMAND, PROVISIONED
|
1029
1040
|
# })
|
@@ -1041,9 +1052,10 @@ module Aws::Bedrock
|
|
1041
1052
|
# resp.model_summaries[0].output_modalities[0] #=> String, one of "TEXT", "IMAGE", "EMBEDDING"
|
1042
1053
|
# resp.model_summaries[0].response_streaming_supported #=> Boolean
|
1043
1054
|
# resp.model_summaries[0].customizations_supported #=> Array
|
1044
|
-
# resp.model_summaries[0].customizations_supported[0] #=> String, one of "FINE_TUNING"
|
1055
|
+
# resp.model_summaries[0].customizations_supported[0] #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING"
|
1045
1056
|
# resp.model_summaries[0].inference_types_supported #=> Array
|
1046
1057
|
# resp.model_summaries[0].inference_types_supported[0] #=> String, one of "ON_DEMAND", "PROVISIONED"
|
1058
|
+
# resp.model_summaries[0].model_lifecycle.status #=> String, one of "ACTIVE", "LEGACY"
|
1047
1059
|
#
|
1048
1060
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListFoundationModels AWS API Documentation
|
1049
1061
|
#
|
@@ -1081,8 +1093,8 @@ module Aws::Bedrock
|
|
1081
1093
|
# Maximum number of results to return in the response.
|
1082
1094
|
#
|
1083
1095
|
# @option params [String] :next_token
|
1084
|
-
# Continuation token from the previous response, for Bedrock to
|
1085
|
-
# next set of results.
|
1096
|
+
# Continuation token from the previous response, for Amazon Bedrock to
|
1097
|
+
# list the next set of results.
|
1086
1098
|
#
|
1087
1099
|
# @option params [String] :sort_by
|
1088
1100
|
# The field to sort by in the returned list of jobs.
|
@@ -1123,6 +1135,7 @@ module Aws::Bedrock
|
|
1123
1135
|
# resp.model_customization_job_summaries[0].end_time #=> Time
|
1124
1136
|
# resp.model_customization_job_summaries[0].custom_model_arn #=> String
|
1125
1137
|
# resp.model_customization_job_summaries[0].custom_model_name #=> String
|
1138
|
+
# resp.model_customization_job_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING"
|
1126
1139
|
#
|
1127
1140
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCustomizationJobs AWS API Documentation
|
1128
1141
|
#
|
@@ -1162,8 +1175,8 @@ module Aws::Bedrock
|
|
1162
1175
|
# THe maximum number of results to return in the response.
|
1163
1176
|
#
|
1164
1177
|
# @option params [String] :next_token
|
1165
|
-
# Continuation token from the previous response, for Bedrock to
|
1166
|
-
# next set of results.
|
1178
|
+
# Continuation token from the previous response, for Amazon Bedrock to
|
1179
|
+
# list the next set of results.
|
1167
1180
|
#
|
1168
1181
|
# @option params [String] :sort_by
|
1169
1182
|
# The field to sort by in the returned list of provisioned capacities.
|
@@ -1436,7 +1449,7 @@ module Aws::Bedrock
|
|
1436
1449
|
params: params,
|
1437
1450
|
config: config)
|
1438
1451
|
context[:gem_name] = 'aws-sdk-bedrock'
|
1439
|
-
context[:gem_version] = '1.
|
1452
|
+
context[:gem_version] = '1.3.0'
|
1440
1453
|
Seahorse::Client::Request.new(handlers, context)
|
1441
1454
|
end
|
1442
1455
|
|
@@ -30,6 +30,7 @@ module Aws::Bedrock
|
|
30
30
|
CustomModelName = Shapes::StringShape.new(name: 'CustomModelName')
|
31
31
|
CustomModelSummary = Shapes::StructureShape.new(name: 'CustomModelSummary')
|
32
32
|
CustomModelSummaryList = Shapes::ListShape.new(name: 'CustomModelSummaryList')
|
33
|
+
CustomizationType = Shapes::StringShape.new(name: 'CustomizationType')
|
33
34
|
DeleteCustomModelRequest = Shapes::StructureShape.new(name: 'DeleteCustomModelRequest')
|
34
35
|
DeleteCustomModelResponse = Shapes::StructureShape.new(name: 'DeleteCustomModelResponse')
|
35
36
|
DeleteModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteModelInvocationLoggingConfigurationRequest')
|
@@ -40,6 +41,8 @@ module Aws::Bedrock
|
|
40
41
|
FineTuningJobStatus = Shapes::StringShape.new(name: 'FineTuningJobStatus')
|
41
42
|
FoundationModelArn = Shapes::StringShape.new(name: 'FoundationModelArn')
|
42
43
|
FoundationModelDetails = Shapes::StructureShape.new(name: 'FoundationModelDetails')
|
44
|
+
FoundationModelLifecycle = Shapes::StructureShape.new(name: 'FoundationModelLifecycle')
|
45
|
+
FoundationModelLifecycleStatus = Shapes::StringShape.new(name: 'FoundationModelLifecycleStatus')
|
43
46
|
FoundationModelSummary = Shapes::StructureShape.new(name: 'FoundationModelSummary')
|
44
47
|
FoundationModelSummaryList = Shapes::ListShape.new(name: 'FoundationModelSummaryList')
|
45
48
|
GetCustomModelRequest = Shapes::StructureShape.new(name: 'GetCustomModelRequest')
|
@@ -157,6 +160,7 @@ module Aws::Bedrock
|
|
157
160
|
CreateModelCustomizationJobRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
|
158
161
|
CreateModelCustomizationJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
|
159
162
|
CreateModelCustomizationJobRequest.add_member(:base_model_identifier, Shapes::ShapeRef.new(shape: BaseModelIdentifier, required: true, location_name: "baseModelIdentifier"))
|
163
|
+
CreateModelCustomizationJobRequest.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
|
160
164
|
CreateModelCustomizationJobRequest.add_member(:custom_model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "customModelKmsKeyId"))
|
161
165
|
CreateModelCustomizationJobRequest.add_member(:job_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "jobTags"))
|
162
166
|
CreateModelCustomizationJobRequest.add_member(:custom_model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "customModelTags"))
|
@@ -186,6 +190,7 @@ module Aws::Bedrock
|
|
186
190
|
CustomModelSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
187
191
|
CustomModelSummary.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
|
188
192
|
CustomModelSummary.add_member(:base_model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "baseModelName"))
|
193
|
+
CustomModelSummary.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
|
189
194
|
CustomModelSummary.struct_class = Types::CustomModelSummary
|
190
195
|
|
191
196
|
CustomModelSummaryList.member = Shapes::ShapeRef.new(shape: CustomModelSummary)
|
@@ -213,8 +218,12 @@ module Aws::Bedrock
|
|
213
218
|
FoundationModelDetails.add_member(:response_streaming_supported, Shapes::ShapeRef.new(shape: Boolean, location_name: "responseStreamingSupported"))
|
214
219
|
FoundationModelDetails.add_member(:customizations_supported, Shapes::ShapeRef.new(shape: ModelCustomizationList, location_name: "customizationsSupported"))
|
215
220
|
FoundationModelDetails.add_member(:inference_types_supported, Shapes::ShapeRef.new(shape: InferenceTypeList, location_name: "inferenceTypesSupported"))
|
221
|
+
FoundationModelDetails.add_member(:model_lifecycle, Shapes::ShapeRef.new(shape: FoundationModelLifecycle, location_name: "modelLifecycle"))
|
216
222
|
FoundationModelDetails.struct_class = Types::FoundationModelDetails
|
217
223
|
|
224
|
+
FoundationModelLifecycle.add_member(:status, Shapes::ShapeRef.new(shape: FoundationModelLifecycleStatus, required: true, location_name: "status"))
|
225
|
+
FoundationModelLifecycle.struct_class = Types::FoundationModelLifecycle
|
226
|
+
|
218
227
|
FoundationModelSummary.add_member(:model_arn, Shapes::ShapeRef.new(shape: FoundationModelArn, required: true, location_name: "modelArn"))
|
219
228
|
FoundationModelSummary.add_member(:model_id, Shapes::ShapeRef.new(shape: BedrockModelId, required: true, location_name: "modelId"))
|
220
229
|
FoundationModelSummary.add_member(:model_name, Shapes::ShapeRef.new(shape: BrandedName, location_name: "modelName"))
|
@@ -224,6 +233,7 @@ module Aws::Bedrock
|
|
224
233
|
FoundationModelSummary.add_member(:response_streaming_supported, Shapes::ShapeRef.new(shape: Boolean, location_name: "responseStreamingSupported"))
|
225
234
|
FoundationModelSummary.add_member(:customizations_supported, Shapes::ShapeRef.new(shape: ModelCustomizationList, location_name: "customizationsSupported"))
|
226
235
|
FoundationModelSummary.add_member(:inference_types_supported, Shapes::ShapeRef.new(shape: InferenceTypeList, location_name: "inferenceTypesSupported"))
|
236
|
+
FoundationModelSummary.add_member(:model_lifecycle, Shapes::ShapeRef.new(shape: FoundationModelLifecycle, location_name: "modelLifecycle"))
|
227
237
|
FoundationModelSummary.struct_class = Types::FoundationModelSummary
|
228
238
|
|
229
239
|
FoundationModelSummaryList.member = Shapes::ShapeRef.new(shape: FoundationModelSummary)
|
@@ -236,6 +246,7 @@ module Aws::Bedrock
|
|
236
246
|
GetCustomModelResponse.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "jobName"))
|
237
247
|
GetCustomModelResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn, required: true, location_name: "jobArn"))
|
238
248
|
GetCustomModelResponse.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
|
249
|
+
GetCustomModelResponse.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
|
239
250
|
GetCustomModelResponse.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
|
240
251
|
GetCustomModelResponse.add_member(:hyper_parameters, Shapes::ShapeRef.new(shape: ModelCustomizationHyperParameters, location_name: "hyperParameters"))
|
241
252
|
GetCustomModelResponse.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, required: true, location_name: "trainingDataConfig"))
|
@@ -271,6 +282,7 @@ module Aws::Bedrock
|
|
271
282
|
GetModelCustomizationJobResponse.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, required: true, location_name: "trainingDataConfig"))
|
272
283
|
GetModelCustomizationJobResponse.add_member(:validation_data_config, Shapes::ShapeRef.new(shape: ValidationDataConfig, required: true, location_name: "validationDataConfig"))
|
273
284
|
GetModelCustomizationJobResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "outputDataConfig"))
|
285
|
+
GetModelCustomizationJobResponse.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
|
274
286
|
GetModelCustomizationJobResponse.add_member(:output_model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "outputModelKmsKeyArn"))
|
275
287
|
GetModelCustomizationJobResponse.add_member(:training_metrics, Shapes::ShapeRef.new(shape: TrainingMetrics, location_name: "trainingMetrics"))
|
276
288
|
GetModelCustomizationJobResponse.add_member(:validation_metrics, Shapes::ShapeRef.new(shape: ValidationMetrics, location_name: "validationMetrics"))
|
@@ -385,6 +397,7 @@ module Aws::Bedrock
|
|
385
397
|
ModelCustomizationJobSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
386
398
|
ModelCustomizationJobSummary.add_member(:custom_model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, location_name: "customModelArn"))
|
387
399
|
ModelCustomizationJobSummary.add_member(:custom_model_name, Shapes::ShapeRef.new(shape: CustomModelName, location_name: "customModelName"))
|
400
|
+
ModelCustomizationJobSummary.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
|
388
401
|
ModelCustomizationJobSummary.struct_class = Types::ModelCustomizationJobSummary
|
389
402
|
|
390
403
|
ModelCustomizationList.member = Shapes::ShapeRef.new(shape: ModelCustomization)
|
@@ -32,7 +32,7 @@ module Aws::Bedrock
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://bedrock-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -25,16 +25,17 @@ module Aws::Bedrock
|
|
25
25
|
# @api private
|
26
26
|
class Handler < Seahorse::Client::Handler
|
27
27
|
def call(context)
|
28
|
-
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
28
|
unless context[:discovered_endpoint]
|
30
29
|
params = parameters_for_operation(context)
|
31
30
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
31
|
|
33
32
|
context.http_request.endpoint = endpoint.url
|
34
33
|
apply_endpoint_headers(context, endpoint.headers)
|
34
|
+
|
35
|
+
context[:endpoint_params] = params
|
36
|
+
context[:endpoint_properties] = endpoint.properties
|
35
37
|
end
|
36
38
|
|
37
|
-
context[:endpoint_params] = params
|
38
39
|
context[:auth_scheme] =
|
39
40
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
41
|
|
@@ -69,12 +69,12 @@ module Aws::Bedrock
|
|
69
69
|
# @return [String]
|
70
70
|
#
|
71
71
|
# @!attribute [rw] role_arn
|
72
|
-
# The Amazon Resource Name (ARN) of an IAM role that Bedrock
|
73
|
-
# assume to perform tasks on your behalf. For example, during
|
74
|
-
# training, Bedrock needs your permission to read input
|
75
|
-
# S3 bucket, write model artifacts to an S3 bucket. To
|
76
|
-
# to Bedrock, the caller of this API must have
|
77
|
-
# permission.
|
72
|
+
# The Amazon Resource Name (ARN) of an IAM role that Amazon Bedrock
|
73
|
+
# can assume to perform tasks on your behalf. For example, during
|
74
|
+
# model training, Amazon Bedrock needs your permission to read input
|
75
|
+
# data from an S3 bucket, write model artifacts to an S3 bucket. To
|
76
|
+
# pass this role to Amazon Bedrock, the caller of this API must have
|
77
|
+
# the `iam:PassRole` permission.
|
78
78
|
# @return [String]
|
79
79
|
#
|
80
80
|
# @!attribute [rw] client_request_token
|
@@ -89,6 +89,10 @@ module Aws::Bedrock
|
|
89
89
|
# Name of the base model.
|
90
90
|
# @return [String]
|
91
91
|
#
|
92
|
+
# @!attribute [rw] customization_type
|
93
|
+
# The customization type.
|
94
|
+
# @return [String]
|
95
|
+
#
|
92
96
|
# @!attribute [rw] custom_model_kms_key_id
|
93
97
|
# The custom model is encrypted at rest using this key.
|
94
98
|
# @return [String]
|
@@ -131,6 +135,7 @@ module Aws::Bedrock
|
|
131
135
|
:role_arn,
|
132
136
|
:client_request_token,
|
133
137
|
:base_model_identifier,
|
138
|
+
:customization_type,
|
134
139
|
:custom_model_kms_key_id,
|
135
140
|
:job_tags,
|
136
141
|
:custom_model_tags,
|
@@ -157,8 +162,8 @@ module Aws::Bedrock
|
|
157
162
|
|
158
163
|
# @!attribute [rw] client_request_token
|
159
164
|
# Unique token value that you can provide. If this token matches a
|
160
|
-
# previous request, Bedrock ignores the request, but does not
|
161
|
-
# an error.
|
165
|
+
# previous request, Amazon Bedrock ignores the request, but does not
|
166
|
+
# return an error.
|
162
167
|
#
|
163
168
|
# **A suitable default value is auto-generated.** You should normally
|
164
169
|
# not need to pass this option.
|
@@ -232,6 +237,16 @@ module Aws::Bedrock
|
|
232
237
|
# The base model name.
|
233
238
|
# @return [String]
|
234
239
|
#
|
240
|
+
# @!attribute [rw] customization_type
|
241
|
+
# Specifies whether to carry out continued pre-training of a model or
|
242
|
+
# whether to fine-tune it. For more information, see [Custom
|
243
|
+
# models][1].
|
244
|
+
#
|
245
|
+
#
|
246
|
+
#
|
247
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
248
|
+
# @return [String]
|
249
|
+
#
|
235
250
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomModelSummary AWS API Documentation
|
236
251
|
#
|
237
252
|
class CustomModelSummary < Struct.new(
|
@@ -239,7 +254,8 @@ module Aws::Bedrock
|
|
239
254
|
:model_name,
|
240
255
|
:creation_time,
|
241
256
|
:base_model_arn,
|
242
|
-
:base_model_name
|
257
|
+
:base_model_name,
|
258
|
+
:customization_type)
|
243
259
|
SENSITIVE = []
|
244
260
|
include Aws::Structure
|
245
261
|
end
|
@@ -324,6 +340,11 @@ module Aws::Bedrock
|
|
324
340
|
# The inference types that the model supports.
|
325
341
|
# @return [Array<String>]
|
326
342
|
#
|
343
|
+
# @!attribute [rw] model_lifecycle
|
344
|
+
# Contains details about whether a model version is available or
|
345
|
+
# deprecated
|
346
|
+
# @return [Types::FoundationModelLifecycle]
|
347
|
+
#
|
327
348
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/FoundationModelDetails AWS API Documentation
|
328
349
|
#
|
329
350
|
class FoundationModelDetails < Struct.new(
|
@@ -335,7 +356,23 @@ module Aws::Bedrock
|
|
335
356
|
:output_modalities,
|
336
357
|
:response_streaming_supported,
|
337
358
|
:customizations_supported,
|
338
|
-
:inference_types_supported
|
359
|
+
:inference_types_supported,
|
360
|
+
:model_lifecycle)
|
361
|
+
SENSITIVE = []
|
362
|
+
include Aws::Structure
|
363
|
+
end
|
364
|
+
|
365
|
+
# Details about whether a model version is available or deprecated.
|
366
|
+
#
|
367
|
+
# @!attribute [rw] status
|
368
|
+
# Specifies whether a model version is available (`ACTIVE`) or
|
369
|
+
# deprecated (`LEGACY`.
|
370
|
+
# @return [String]
|
371
|
+
#
|
372
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/FoundationModelLifecycle AWS API Documentation
|
373
|
+
#
|
374
|
+
class FoundationModelLifecycle < Struct.new(
|
375
|
+
:status)
|
339
376
|
SENSITIVE = []
|
340
377
|
include Aws::Structure
|
341
378
|
end
|
@@ -378,6 +415,11 @@ module Aws::Bedrock
|
|
378
415
|
# The inference types that the model supports.
|
379
416
|
# @return [Array<String>]
|
380
417
|
#
|
418
|
+
# @!attribute [rw] model_lifecycle
|
419
|
+
# Contains details about whether a model version is available or
|
420
|
+
# deprecated.
|
421
|
+
# @return [Types::FoundationModelLifecycle]
|
422
|
+
#
|
381
423
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/FoundationModelSummary AWS API Documentation
|
382
424
|
#
|
383
425
|
class FoundationModelSummary < Struct.new(
|
@@ -389,7 +431,8 @@ module Aws::Bedrock
|
|
389
431
|
:output_modalities,
|
390
432
|
:response_streaming_supported,
|
391
433
|
:customizations_supported,
|
392
|
-
:inference_types_supported
|
434
|
+
:inference_types_supported,
|
435
|
+
:model_lifecycle)
|
393
436
|
SENSITIVE = []
|
394
437
|
include Aws::Structure
|
395
438
|
end
|
@@ -426,6 +469,10 @@ module Aws::Bedrock
|
|
426
469
|
# ARN of the base model.
|
427
470
|
# @return [String]
|
428
471
|
#
|
472
|
+
# @!attribute [rw] customization_type
|
473
|
+
# The type of model customization.
|
474
|
+
# @return [String]
|
475
|
+
#
|
429
476
|
# @!attribute [rw] model_kms_key_arn
|
430
477
|
# The custom model is encrypted at rest using this key.
|
431
478
|
# @return [String]
|
@@ -466,6 +513,7 @@ module Aws::Bedrock
|
|
466
513
|
:job_name,
|
467
514
|
:job_arn,
|
468
515
|
:base_model_arn,
|
516
|
+
:customization_type,
|
469
517
|
:model_kms_key_arn,
|
470
518
|
:hyper_parameters,
|
471
519
|
:training_data_config,
|
@@ -566,7 +614,13 @@ module Aws::Bedrock
|
|
566
614
|
# @return [String]
|
567
615
|
#
|
568
616
|
# @!attribute [rw] hyper_parameters
|
569
|
-
# The hyperparameter values for the job.
|
617
|
+
# The hyperparameter values for the job. For information about
|
618
|
+
# hyperparameters for specific models, see [Guidelines for model
|
619
|
+
# customization][1].
|
620
|
+
#
|
621
|
+
#
|
622
|
+
#
|
623
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-guidelines.html
|
570
624
|
# @return [Hash<String,String>]
|
571
625
|
#
|
572
626
|
# @!attribute [rw] training_data_config
|
@@ -581,6 +635,10 @@ module Aws::Bedrock
|
|
581
635
|
# Output data configuration
|
582
636
|
# @return [Types::OutputDataConfig]
|
583
637
|
#
|
638
|
+
# @!attribute [rw] customization_type
|
639
|
+
# The type of model customization.
|
640
|
+
# @return [String]
|
641
|
+
#
|
584
642
|
# @!attribute [rw] output_model_kms_key_arn
|
585
643
|
# The custom model is encrypted at rest using this key.
|
586
644
|
# @return [String]
|
@@ -617,6 +675,7 @@ module Aws::Bedrock
|
|
617
675
|
:training_data_config,
|
618
676
|
:validation_data_config,
|
619
677
|
:output_data_config,
|
678
|
+
:customization_type,
|
620
679
|
:output_model_kms_key_arn,
|
621
680
|
:training_metrics,
|
622
681
|
:validation_metrics,
|
@@ -772,8 +831,8 @@ module Aws::Bedrock
|
|
772
831
|
# @return [Integer]
|
773
832
|
#
|
774
833
|
# @!attribute [rw] next_token
|
775
|
-
# Continuation token from the previous response, for Bedrock to
|
776
|
-
# the next set of results.
|
834
|
+
# Continuation token from the previous response, for Amazon Bedrock to
|
835
|
+
# list the next set of results.
|
777
836
|
# @return [String]
|
778
837
|
#
|
779
838
|
# @!attribute [rw] sort_by
|
@@ -819,7 +878,7 @@ module Aws::Bedrock
|
|
819
878
|
end
|
820
879
|
|
821
880
|
# @!attribute [rw] by_provider
|
822
|
-
# A Bedrock model provider.
|
881
|
+
# A Amazon Bedrock model provider.
|
823
882
|
# @return [String]
|
824
883
|
#
|
825
884
|
# @!attribute [rw] by_customization_type
|
@@ -846,7 +905,7 @@ module Aws::Bedrock
|
|
846
905
|
end
|
847
906
|
|
848
907
|
# @!attribute [rw] model_summaries
|
849
|
-
# A list of
|
908
|
+
# A list of Amazon Bedrock foundation models.
|
850
909
|
# @return [Array<Types::FoundationModelSummary>]
|
851
910
|
#
|
852
911
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListFoundationModelsResponse AWS API Documentation
|
@@ -879,8 +938,8 @@ module Aws::Bedrock
|
|
879
938
|
# @return [Integer]
|
880
939
|
#
|
881
940
|
# @!attribute [rw] next_token
|
882
|
-
# Continuation token from the previous response, for Bedrock to
|
883
|
-
# the next set of results.
|
941
|
+
# Continuation token from the previous response, for Amazon Bedrock to
|
942
|
+
# list the next set of results.
|
884
943
|
# @return [String]
|
885
944
|
#
|
886
945
|
# @!attribute [rw] sort_by
|
@@ -951,8 +1010,8 @@ module Aws::Bedrock
|
|
951
1010
|
# @return [Integer]
|
952
1011
|
#
|
953
1012
|
# @!attribute [rw] next_token
|
954
|
-
# Continuation token from the previous response, for Bedrock to
|
955
|
-
# the next set of results.
|
1013
|
+
# Continuation token from the previous response, for Amazon Bedrock to
|
1014
|
+
# list the next set of results.
|
956
1015
|
# @return [String]
|
957
1016
|
#
|
958
1017
|
# @!attribute [rw] sort_by
|
@@ -1094,6 +1153,16 @@ module Aws::Bedrock
|
|
1094
1153
|
# Name of the custom model.
|
1095
1154
|
# @return [String]
|
1096
1155
|
#
|
1156
|
+
# @!attribute [rw] customization_type
|
1157
|
+
# Specifies whether to carry out continued pre-training of a model or
|
1158
|
+
# whether to fine-tune it. For more information, see [Custom
|
1159
|
+
# models][1].
|
1160
|
+
#
|
1161
|
+
#
|
1162
|
+
#
|
1163
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
1164
|
+
# @return [String]
|
1165
|
+
#
|
1097
1166
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelCustomizationJobSummary AWS API Documentation
|
1098
1167
|
#
|
1099
1168
|
class ModelCustomizationJobSummary < Struct.new(
|
@@ -1105,7 +1174,8 @@ module Aws::Bedrock
|
|
1105
1174
|
:creation_time,
|
1106
1175
|
:end_time,
|
1107
1176
|
:custom_model_arn,
|
1108
|
-
:custom_model_name
|
1177
|
+
:custom_model_name,
|
1178
|
+
:customization_type)
|
1109
1179
|
SENSITIVE = []
|
1110
1180
|
include Aws::Structure
|
1111
1181
|
end
|
data/lib/aws-sdk-bedrock.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|