aws-sdk-bedrock 1.47.0 → 1.49.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 +190 -10
- data/lib/aws-sdk-bedrock/client_api.rb +40 -6
- data/lib/aws-sdk-bedrock/types.rb +163 -17
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +32 -5
- data/sig/types.rbs +26 -7
- 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: d7b6ec3426343d251fbf8350973c9da8e1faa52a7e19ce001034a27c175da5a3
|
4
|
+
data.tar.gz: 4e2eb677fb8feed5cdecf95c684e89ac7c9992c00efab0262cb0516b61be0e5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88caf502af89364b828bc8ac07f70e842db21b81d8973f7ac874857ea70963d16b7440897b25677bb19bdb7053a8bf1d5f7a4850099336922c3a8c417054f668
|
7
|
+
data.tar.gz: 728112c087dd09b1c0bbd2283db6a70523a64f4d377273af0d46ecfd5277473add0a4e34ff3405e7a5c8e566cb675c2cfeeaeecdb377869af08b901c4d1cde72
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.49.0 (2025-06-17)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release of the SDK has the API and documentation for the createcustommodel API. This feature lets you copy a trained model into Amazon Bedrock for inference.
|
8
|
+
|
9
|
+
1.48.0 (2025-06-16)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release of the SDK has the API and documentation for the createcustommodel API. This feature lets you copy a Amazon SageMaker trained Amazon Nova model into Amazon Bedrock for inference.
|
13
|
+
|
4
14
|
1.47.0 (2025-06-02)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.49.0
|
@@ -537,6 +537,166 @@ module Aws::Bedrock
|
|
537
537
|
req.send_request(options)
|
538
538
|
end
|
539
539
|
|
540
|
+
# Creates a new custom model in Amazon Bedrock. After the model is
|
541
|
+
# active, you can use it for inference.
|
542
|
+
#
|
543
|
+
# To use the model for inference, you must purchase Provisioned
|
544
|
+
# Throughput for it. You can't use On-demand inference with these
|
545
|
+
# custom models. For more information about Provisioned Throughput, see
|
546
|
+
# [Provisioned Throughput][1].
|
547
|
+
#
|
548
|
+
# The model appears in `ListCustomModels` with a `customizationType` of
|
549
|
+
# `imported`. To track the status of the new model, you use the
|
550
|
+
# `GetCustomModel` API operation. The model can be in the following
|
551
|
+
# states:
|
552
|
+
#
|
553
|
+
# * `Creating` - Initial state during validation and registration
|
554
|
+
#
|
555
|
+
# * `Active` - Model is ready for use in inference
|
556
|
+
#
|
557
|
+
# * `Failed` - Creation process encountered an error
|
558
|
+
#
|
559
|
+
# **Related APIs**
|
560
|
+
#
|
561
|
+
# * [GetCustomModel][2]
|
562
|
+
#
|
563
|
+
# * [ListCustomModels][3]
|
564
|
+
#
|
565
|
+
# * [DeleteCustomModel][4]
|
566
|
+
#
|
567
|
+
#
|
568
|
+
#
|
569
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
570
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModel.html
|
571
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModels.html
|
572
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html
|
573
|
+
#
|
574
|
+
# @option params [required, String] :model_name
|
575
|
+
# A unique name for the custom model.
|
576
|
+
#
|
577
|
+
# @option params [required, Types::ModelDataSource] :model_source_config
|
578
|
+
# The data source for the model. The Amazon S3 URI in the model source
|
579
|
+
# must be for the Amazon-managed Amazon S3 bucket containing your model
|
580
|
+
# artifacts.
|
581
|
+
#
|
582
|
+
# @option params [String] :model_kms_key_arn
|
583
|
+
# The Amazon Resource Name (ARN) of the customer managed KMS key to
|
584
|
+
# encrypt the custom model. If you don't provide a KMS key, Amazon
|
585
|
+
# Bedrock uses an Amazon Web Services-managed KMS key to encrypt the
|
586
|
+
# model.
|
587
|
+
#
|
588
|
+
# If you provide a customer managed KMS key, your Amazon Bedrock service
|
589
|
+
# role must have permissions to use it. For more information see
|
590
|
+
# [Encryption of imported models][1].
|
591
|
+
#
|
592
|
+
#
|
593
|
+
#
|
594
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-import-model.html
|
595
|
+
#
|
596
|
+
# @option params [String] :role_arn
|
597
|
+
# The Amazon Resource Name (ARN) of an IAM service role that Amazon
|
598
|
+
# Bedrock assumes to perform tasks on your behalf. This role must have
|
599
|
+
# permissions to access the Amazon S3 bucket containing your model
|
600
|
+
# artifacts and the KMS key (if specified). For more information, see
|
601
|
+
# [Setting up an IAM service role for importing models][1] in the Amazon
|
602
|
+
# Bedrock User Guide.
|
603
|
+
#
|
604
|
+
#
|
605
|
+
#
|
606
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
|
607
|
+
#
|
608
|
+
# @option params [Array<Types::Tag>] :model_tags
|
609
|
+
# A list of key-value pairs to associate with the custom model resource.
|
610
|
+
# You can use these tags to organize and identify your resources.
|
611
|
+
#
|
612
|
+
# For more information, see [Tagging resources][1] in the [Amazon
|
613
|
+
# Bedrock User Guide][2].
|
614
|
+
#
|
615
|
+
#
|
616
|
+
#
|
617
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
|
618
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
619
|
+
#
|
620
|
+
# @option params [String] :client_request_token
|
621
|
+
# A unique, case-sensitive identifier to ensure that the API request
|
622
|
+
# completes no more than one time. If this token matches a previous
|
623
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
624
|
+
# error. For more information, see [Ensuring idempotency][1].
|
625
|
+
#
|
626
|
+
# **A suitable default value is auto-generated.** You should normally
|
627
|
+
# not need to pass this option.**
|
628
|
+
#
|
629
|
+
#
|
630
|
+
#
|
631
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
632
|
+
#
|
633
|
+
# @return [Types::CreateCustomModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
634
|
+
#
|
635
|
+
# * {Types::CreateCustomModelResponse#model_arn #model_arn} => String
|
636
|
+
#
|
637
|
+
#
|
638
|
+
# @example Example: Successful CreateCustomModel API call
|
639
|
+
#
|
640
|
+
# resp = client.create_custom_model({
|
641
|
+
# client_request_token: "foo",
|
642
|
+
# model_kms_key_arn: "arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
643
|
+
# model_name: "SampleModel",
|
644
|
+
# model_source_config: {
|
645
|
+
# s3_data_source: {
|
646
|
+
# s3_uri: "s3://my-bucket/folder",
|
647
|
+
# },
|
648
|
+
# },
|
649
|
+
# model_tags: [
|
650
|
+
# {
|
651
|
+
# key: "foo",
|
652
|
+
# value: "foo",
|
653
|
+
# },
|
654
|
+
# {
|
655
|
+
# key: "foo",
|
656
|
+
# value: "foo",
|
657
|
+
# },
|
658
|
+
# ],
|
659
|
+
# role_arn: "arn:aws:iam::123456789012:role/SampleRole",
|
660
|
+
# })
|
661
|
+
#
|
662
|
+
# resp.to_h outputs the following:
|
663
|
+
# {
|
664
|
+
# model_arn: "arn:aws:bedrock:us-east-1:123456789012:custom-model/imported/abcdef123456",
|
665
|
+
# }
|
666
|
+
#
|
667
|
+
# @example Request syntax with placeholder values
|
668
|
+
#
|
669
|
+
# resp = client.create_custom_model({
|
670
|
+
# model_name: "CustomModelName", # required
|
671
|
+
# model_source_config: { # required
|
672
|
+
# s3_data_source: {
|
673
|
+
# s3_uri: "S3Uri", # required
|
674
|
+
# },
|
675
|
+
# },
|
676
|
+
# model_kms_key_arn: "KmsKeyArn",
|
677
|
+
# role_arn: "RoleArn",
|
678
|
+
# model_tags: [
|
679
|
+
# {
|
680
|
+
# key: "TagKey", # required
|
681
|
+
# value: "TagValue", # required
|
682
|
+
# },
|
683
|
+
# ],
|
684
|
+
# client_request_token: "IdempotencyToken",
|
685
|
+
# })
|
686
|
+
#
|
687
|
+
# @example Response structure
|
688
|
+
#
|
689
|
+
# resp.model_arn #=> String
|
690
|
+
#
|
691
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModel AWS API Documentation
|
692
|
+
#
|
693
|
+
# @overload create_custom_model(params = {})
|
694
|
+
# @param [Hash] params ({})
|
695
|
+
def create_custom_model(params = {}, options = {})
|
696
|
+
req = build_request(:create_custom_model, params)
|
697
|
+
req.send_request(options)
|
698
|
+
end
|
699
|
+
|
540
700
|
# Creates an evaluation job.
|
541
701
|
#
|
542
702
|
# @option params [required, String] :job_name
|
@@ -1585,7 +1745,7 @@ module Aws::Bedrock
|
|
1585
1745
|
# role_arn: "RoleArn", # required
|
1586
1746
|
# client_request_token: "IdempotencyToken",
|
1587
1747
|
# base_model_identifier: "BaseModelIdentifier", # required
|
1588
|
-
# customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING, DISTILLATION
|
1748
|
+
# customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING, DISTILLATION, IMPORTED
|
1589
1749
|
# custom_model_kms_key_id: "KmsKeyId",
|
1590
1750
|
# job_tags: [
|
1591
1751
|
# {
|
@@ -2306,7 +2466,7 @@ module Aws::Bedrock
|
|
2306
2466
|
end
|
2307
2467
|
|
2308
2468
|
# Get the properties associated with a Amazon Bedrock custom model that
|
2309
|
-
# you have created.For more information, see [Custom models][1] in the
|
2469
|
+
# you have created. For more information, see [Custom models][1] in the
|
2310
2470
|
# [Amazon Bedrock User Guide][2].
|
2311
2471
|
#
|
2312
2472
|
#
|
@@ -2334,6 +2494,8 @@ module Aws::Bedrock
|
|
2334
2494
|
# * {Types::GetCustomModelResponse#validation_metrics #validation_metrics} => Array<Types::ValidatorMetric>
|
2335
2495
|
# * {Types::GetCustomModelResponse#creation_time #creation_time} => Time
|
2336
2496
|
# * {Types::GetCustomModelResponse#customization_config #customization_config} => Types::CustomizationConfig
|
2497
|
+
# * {Types::GetCustomModelResponse#model_status #model_status} => String
|
2498
|
+
# * {Types::GetCustomModelResponse#failure_message #failure_message} => String
|
2337
2499
|
#
|
2338
2500
|
# @example Request syntax with placeholder values
|
2339
2501
|
#
|
@@ -2348,7 +2510,7 @@ module Aws::Bedrock
|
|
2348
2510
|
# resp.job_name #=> String
|
2349
2511
|
# resp.job_arn #=> String
|
2350
2512
|
# resp.base_model_arn #=> String
|
2351
|
-
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
2513
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
2352
2514
|
# resp.model_kms_key_arn #=> String
|
2353
2515
|
# resp.hyper_parameters #=> Hash
|
2354
2516
|
# resp.hyper_parameters["String"] #=> String
|
@@ -2378,6 +2540,8 @@ module Aws::Bedrock
|
|
2378
2540
|
# resp.creation_time #=> Time
|
2379
2541
|
# resp.customization_config.distillation_config.teacher_model_config.teacher_model_identifier #=> String
|
2380
2542
|
# resp.customization_config.distillation_config.teacher_model_config.max_response_length_for_inference #=> Integer
|
2543
|
+
# resp.model_status #=> String, one of "Active", "Creating", "Failed"
|
2544
|
+
# resp.failure_message #=> String
|
2381
2545
|
#
|
2382
2546
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel AWS API Documentation
|
2383
2547
|
#
|
@@ -2931,8 +3095,8 @@ module Aws::Bedrock
|
|
2931
3095
|
# * {Types::GetModelCustomizationJobResponse#client_request_token #client_request_token} => String
|
2932
3096
|
# * {Types::GetModelCustomizationJobResponse#role_arn #role_arn} => String
|
2933
3097
|
# * {Types::GetModelCustomizationJobResponse#status #status} => String
|
2934
|
-
# * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
|
2935
3098
|
# * {Types::GetModelCustomizationJobResponse#status_details #status_details} => Types::StatusDetails
|
3099
|
+
# * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
|
2936
3100
|
# * {Types::GetModelCustomizationJobResponse#creation_time #creation_time} => Time
|
2937
3101
|
# * {Types::GetModelCustomizationJobResponse#last_modified_time #last_modified_time} => Time
|
2938
3102
|
# * {Types::GetModelCustomizationJobResponse#end_time #end_time} => Time
|
@@ -2963,7 +3127,6 @@ module Aws::Bedrock
|
|
2963
3127
|
# resp.client_request_token #=> String
|
2964
3128
|
# resp.role_arn #=> String
|
2965
3129
|
# resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
2966
|
-
# resp.failure_message #=> String
|
2967
3130
|
# resp.status_details.validation_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
2968
3131
|
# resp.status_details.validation_details.creation_time #=> Time
|
2969
3132
|
# resp.status_details.validation_details.last_modified_time #=> Time
|
@@ -2973,6 +3136,7 @@ module Aws::Bedrock
|
|
2973
3136
|
# resp.status_details.training_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
2974
3137
|
# resp.status_details.training_details.creation_time #=> Time
|
2975
3138
|
# resp.status_details.training_details.last_modified_time #=> Time
|
3139
|
+
# resp.failure_message #=> String
|
2976
3140
|
# resp.creation_time #=> Time
|
2977
3141
|
# resp.last_modified_time #=> Time
|
2978
3142
|
# resp.end_time #=> Time
|
@@ -2999,7 +3163,7 @@ module Aws::Bedrock
|
|
2999
3163
|
# resp.validation_data_config.validators #=> Array
|
3000
3164
|
# resp.validation_data_config.validators[0].s3_uri #=> String
|
3001
3165
|
# resp.output_data_config.s3_uri #=> String
|
3002
|
-
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
3166
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3003
3167
|
# resp.output_model_kms_key_arn #=> String
|
3004
3168
|
# resp.training_metrics.training_loss #=> Float
|
3005
3169
|
# resp.validation_metrics #=> Array
|
@@ -3333,6 +3497,20 @@ module Aws::Bedrock
|
|
3333
3497
|
# Return custom models depending on if the current account owns them
|
3334
3498
|
# (`true`) or if they were shared with the current account (`false`).
|
3335
3499
|
#
|
3500
|
+
# @option params [String] :model_status
|
3501
|
+
# The status of them model to filter results by. Possible values
|
3502
|
+
# include:
|
3503
|
+
#
|
3504
|
+
# * `Creating` - Include only models that are currently being created
|
3505
|
+
# and validated.
|
3506
|
+
#
|
3507
|
+
# * `Active` - Include only models that have been successfully created
|
3508
|
+
# and are ready for use.
|
3509
|
+
#
|
3510
|
+
# * `Failed` - Include only models where the creation process failed.
|
3511
|
+
#
|
3512
|
+
# If you don't specify a status, the API returns models in all states.
|
3513
|
+
#
|
3336
3514
|
# @return [Types::ListCustomModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3337
3515
|
#
|
3338
3516
|
# * {Types::ListCustomModelsResponse#next_token #next_token} => String
|
@@ -3353,6 +3531,7 @@ module Aws::Bedrock
|
|
3353
3531
|
# sort_by: "CreationTime", # accepts CreationTime
|
3354
3532
|
# sort_order: "Ascending", # accepts Ascending, Descending
|
3355
3533
|
# is_owned: false,
|
3534
|
+
# model_status: "Active", # accepts Active, Creating, Failed
|
3356
3535
|
# })
|
3357
3536
|
#
|
3358
3537
|
# @example Response structure
|
@@ -3364,8 +3543,9 @@ module Aws::Bedrock
|
|
3364
3543
|
# resp.model_summaries[0].creation_time #=> Time
|
3365
3544
|
# resp.model_summaries[0].base_model_arn #=> String
|
3366
3545
|
# resp.model_summaries[0].base_model_name #=> String
|
3367
|
-
# resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
3546
|
+
# resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3368
3547
|
# resp.model_summaries[0].owner_account_id #=> String
|
3548
|
+
# resp.model_summaries[0].model_status #=> String, one of "Active", "Creating", "Failed"
|
3369
3549
|
#
|
3370
3550
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels AWS API Documentation
|
3371
3551
|
#
|
@@ -3971,7 +4151,6 @@ module Aws::Bedrock
|
|
3971
4151
|
# resp.model_customization_job_summaries[0].base_model_arn #=> String
|
3972
4152
|
# resp.model_customization_job_summaries[0].job_name #=> String
|
3973
4153
|
# resp.model_customization_job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
3974
|
-
# resp.model_customization_job_summaries[0].last_modified_time #=> Time
|
3975
4154
|
# resp.model_customization_job_summaries[0].status_details.validation_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
3976
4155
|
# resp.model_customization_job_summaries[0].status_details.validation_details.creation_time #=> Time
|
3977
4156
|
# resp.model_customization_job_summaries[0].status_details.validation_details.last_modified_time #=> Time
|
@@ -3981,11 +4160,12 @@ module Aws::Bedrock
|
|
3981
4160
|
# resp.model_customization_job_summaries[0].status_details.training_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
3982
4161
|
# resp.model_customization_job_summaries[0].status_details.training_details.creation_time #=> Time
|
3983
4162
|
# resp.model_customization_job_summaries[0].status_details.training_details.last_modified_time #=> Time
|
4163
|
+
# resp.model_customization_job_summaries[0].last_modified_time #=> Time
|
3984
4164
|
# resp.model_customization_job_summaries[0].creation_time #=> Time
|
3985
4165
|
# resp.model_customization_job_summaries[0].end_time #=> Time
|
3986
4166
|
# resp.model_customization_job_summaries[0].custom_model_arn #=> String
|
3987
4167
|
# resp.model_customization_job_summaries[0].custom_model_name #=> String
|
3988
|
-
# resp.model_customization_job_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
4168
|
+
# resp.model_customization_job_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3989
4169
|
#
|
3990
4170
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCustomizationJobs AWS API Documentation
|
3991
4171
|
#
|
@@ -4985,7 +5165,7 @@ module Aws::Bedrock
|
|
4985
5165
|
tracer: tracer
|
4986
5166
|
)
|
4987
5167
|
context[:gem_name] = 'aws-sdk-bedrock'
|
4988
|
-
context[:gem_version] = '1.
|
5168
|
+
context[:gem_version] = '1.49.0'
|
4989
5169
|
Seahorse::Client::Request.new(handlers, context)
|
4990
5170
|
end
|
4991
5171
|
|
@@ -46,6 +46,8 @@ module Aws::Bedrock
|
|
46
46
|
CommitmentDuration = Shapes::StringShape.new(name: 'CommitmentDuration')
|
47
47
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
48
48
|
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
49
|
+
CreateCustomModelRequest = Shapes::StructureShape.new(name: 'CreateCustomModelRequest')
|
50
|
+
CreateCustomModelResponse = Shapes::StructureShape.new(name: 'CreateCustomModelResponse')
|
49
51
|
CreateEvaluationJobRequest = Shapes::StructureShape.new(name: 'CreateEvaluationJobRequest')
|
50
52
|
CreateEvaluationJobResponse = Shapes::StructureShape.new(name: 'CreateEvaluationJobResponse')
|
51
53
|
CreateGuardrailRequest = Shapes::StructureShape.new(name: 'CreateGuardrailRequest')
|
@@ -405,6 +407,7 @@ module Aws::Bedrock
|
|
405
407
|
ModelModalityList = Shapes::ListShape.new(name: 'ModelModalityList')
|
406
408
|
ModelName = Shapes::StringShape.new(name: 'ModelName')
|
407
409
|
ModelSourceIdentifier = Shapes::StringShape.new(name: 'ModelSourceIdentifier')
|
410
|
+
ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
|
408
411
|
NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
|
409
412
|
OrchestrationConfiguration = Shapes::StructureShape.new(name: 'OrchestrationConfiguration')
|
410
413
|
OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
|
@@ -587,6 +590,17 @@ module Aws::Bedrock
|
|
587
590
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
588
591
|
ConflictException.struct_class = Types::ConflictException
|
589
592
|
|
593
|
+
CreateCustomModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
|
594
|
+
CreateCustomModelRequest.add_member(:model_source_config, Shapes::ShapeRef.new(shape: ModelDataSource, required: true, location_name: "modelSourceConfig"))
|
595
|
+
CreateCustomModelRequest.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
|
596
|
+
CreateCustomModelRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
|
597
|
+
CreateCustomModelRequest.add_member(:model_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "modelTags"))
|
598
|
+
CreateCustomModelRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken" => true}))
|
599
|
+
CreateCustomModelRequest.struct_class = Types::CreateCustomModelRequest
|
600
|
+
|
601
|
+
CreateCustomModelResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "modelArn"))
|
602
|
+
CreateCustomModelResponse.struct_class = Types::CreateCustomModelResponse
|
603
|
+
|
590
604
|
CreateEvaluationJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: EvaluationJobName, required: true, location_name: "jobName"))
|
591
605
|
CreateEvaluationJobRequest.add_member(:job_description, Shapes::ShapeRef.new(shape: EvaluationJobDescription, location_name: "jobDescription"))
|
592
606
|
CreateEvaluationJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken", metadata: {"idempotencyToken" => true}))
|
@@ -755,6 +769,7 @@ module Aws::Bedrock
|
|
755
769
|
CustomModelSummary.add_member(:base_model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "baseModelName"))
|
756
770
|
CustomModelSummary.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
|
757
771
|
CustomModelSummary.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "ownerAccountId"))
|
772
|
+
CustomModelSummary.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "modelStatus"))
|
758
773
|
CustomModelSummary.struct_class = Types::CustomModelSummary
|
759
774
|
|
760
775
|
CustomModelSummaryList.member = Shapes::ShapeRef.new(shape: CustomModelSummary)
|
@@ -1011,18 +1026,20 @@ module Aws::Bedrock
|
|
1011
1026
|
GetCustomModelResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "modelArn"))
|
1012
1027
|
GetCustomModelResponse.add_member(:model_name, Shapes::ShapeRef.new(shape: CustomModelName, required: true, location_name: "modelName"))
|
1013
1028
|
GetCustomModelResponse.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "jobName"))
|
1014
|
-
GetCustomModelResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn,
|
1015
|
-
GetCustomModelResponse.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn,
|
1029
|
+
GetCustomModelResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelCustomizationJobArn, location_name: "jobArn"))
|
1030
|
+
GetCustomModelResponse.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, location_name: "baseModelArn"))
|
1016
1031
|
GetCustomModelResponse.add_member(:customization_type, Shapes::ShapeRef.new(shape: CustomizationType, location_name: "customizationType"))
|
1017
1032
|
GetCustomModelResponse.add_member(:model_kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "modelKmsKeyArn"))
|
1018
1033
|
GetCustomModelResponse.add_member(:hyper_parameters, Shapes::ShapeRef.new(shape: ModelCustomizationHyperParameters, location_name: "hyperParameters"))
|
1019
|
-
GetCustomModelResponse.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig,
|
1034
|
+
GetCustomModelResponse.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, location_name: "trainingDataConfig"))
|
1020
1035
|
GetCustomModelResponse.add_member(:validation_data_config, Shapes::ShapeRef.new(shape: ValidationDataConfig, location_name: "validationDataConfig"))
|
1021
|
-
GetCustomModelResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig,
|
1036
|
+
GetCustomModelResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "outputDataConfig"))
|
1022
1037
|
GetCustomModelResponse.add_member(:training_metrics, Shapes::ShapeRef.new(shape: TrainingMetrics, location_name: "trainingMetrics"))
|
1023
1038
|
GetCustomModelResponse.add_member(:validation_metrics, Shapes::ShapeRef.new(shape: ValidationMetrics, location_name: "validationMetrics"))
|
1024
1039
|
GetCustomModelResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
1025
1040
|
GetCustomModelResponse.add_member(:customization_config, Shapes::ShapeRef.new(shape: CustomizationConfig, location_name: "customizationConfig"))
|
1041
|
+
GetCustomModelResponse.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "modelStatus"))
|
1042
|
+
GetCustomModelResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
|
1026
1043
|
GetCustomModelResponse.struct_class = Types::GetCustomModelResponse
|
1027
1044
|
|
1028
1045
|
GetEvaluationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: EvaluationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
|
@@ -1136,8 +1153,8 @@ module Aws::Bedrock
|
|
1136
1153
|
GetModelCustomizationJobResponse.add_member(:client_request_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientRequestToken"))
|
1137
1154
|
GetModelCustomizationJobResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
|
1138
1155
|
GetModelCustomizationJobResponse.add_member(:status, Shapes::ShapeRef.new(shape: ModelCustomizationJobStatus, location_name: "status"))
|
1139
|
-
GetModelCustomizationJobResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
|
1140
1156
|
GetModelCustomizationJobResponse.add_member(:status_details, Shapes::ShapeRef.new(shape: StatusDetails, location_name: "statusDetails"))
|
1157
|
+
GetModelCustomizationJobResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "failureMessage"))
|
1141
1158
|
GetModelCustomizationJobResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
1142
1159
|
GetModelCustomizationJobResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
|
1143
1160
|
GetModelCustomizationJobResponse.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
@@ -1543,6 +1560,7 @@ module Aws::Bedrock
|
|
1543
1560
|
ListCustomModelsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortModelsBy, location: "querystring", location_name: "sortBy"))
|
1544
1561
|
ListCustomModelsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortOrder"))
|
1545
1562
|
ListCustomModelsRequest.add_member(:is_owned, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "isOwned"))
|
1563
|
+
ListCustomModelsRequest.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location: "querystring", location_name: "modelStatus"))
|
1546
1564
|
ListCustomModelsRequest.struct_class = Types::ListCustomModelsRequest
|
1547
1565
|
|
1548
1566
|
ListCustomModelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
@@ -1754,8 +1772,8 @@ module Aws::Bedrock
|
|
1754
1772
|
ModelCustomizationJobSummary.add_member(:base_model_arn, Shapes::ShapeRef.new(shape: ModelArn, required: true, location_name: "baseModelArn"))
|
1755
1773
|
ModelCustomizationJobSummary.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "jobName"))
|
1756
1774
|
ModelCustomizationJobSummary.add_member(:status, Shapes::ShapeRef.new(shape: ModelCustomizationJobStatus, required: true, location_name: "status"))
|
1757
|
-
ModelCustomizationJobSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
|
1758
1775
|
ModelCustomizationJobSummary.add_member(:status_details, Shapes::ShapeRef.new(shape: StatusDetails, location_name: "statusDetails"))
|
1776
|
+
ModelCustomizationJobSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
|
1759
1777
|
ModelCustomizationJobSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
|
1760
1778
|
ModelCustomizationJobSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
1761
1779
|
ModelCustomizationJobSummary.add_member(:custom_model_arn, Shapes::ShapeRef.new(shape: CustomModelArn, location_name: "customModelArn"))
|
@@ -2171,6 +2189,22 @@ module Aws::Bedrock
|
|
2171
2189
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2172
2190
|
end)
|
2173
2191
|
|
2192
|
+
api.add_operation(:create_custom_model, Seahorse::Model::Operation.new.tap do |o|
|
2193
|
+
o.name = "CreateCustomModel"
|
2194
|
+
o.http_method = "POST"
|
2195
|
+
o.http_request_uri = "/custom-models/create-custom-model"
|
2196
|
+
o.input = Shapes::ShapeRef.new(shape: CreateCustomModelRequest)
|
2197
|
+
o.output = Shapes::ShapeRef.new(shape: CreateCustomModelResponse)
|
2198
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2199
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2200
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
2201
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
2202
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
2203
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
2204
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
2205
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2206
|
+
end)
|
2207
|
+
|
2174
2208
|
api.add_operation(:create_evaluation_job, Seahorse::Model::Operation.new.tap do |o|
|
2175
2209
|
o.name = "CreateEvaluationJob"
|
2176
2210
|
o.http_method = "POST"
|
@@ -264,6 +264,97 @@ module Aws::Bedrock
|
|
264
264
|
include Aws::Structure
|
265
265
|
end
|
266
266
|
|
267
|
+
# @!attribute [rw] model_name
|
268
|
+
# A unique name for the custom model.
|
269
|
+
# @return [String]
|
270
|
+
#
|
271
|
+
# @!attribute [rw] model_source_config
|
272
|
+
# The data source for the model. The Amazon S3 URI in the model source
|
273
|
+
# must be for the Amazon-managed Amazon S3 bucket containing your
|
274
|
+
# model artifacts.
|
275
|
+
# @return [Types::ModelDataSource]
|
276
|
+
#
|
277
|
+
# @!attribute [rw] model_kms_key_arn
|
278
|
+
# The Amazon Resource Name (ARN) of the customer managed KMS key to
|
279
|
+
# encrypt the custom model. If you don't provide a KMS key, Amazon
|
280
|
+
# Bedrock uses an Amazon Web Services-managed KMS key to encrypt the
|
281
|
+
# model.
|
282
|
+
#
|
283
|
+
# If you provide a customer managed KMS key, your Amazon Bedrock
|
284
|
+
# service role must have permissions to use it. For more information
|
285
|
+
# see [Encryption of imported models][1].
|
286
|
+
#
|
287
|
+
#
|
288
|
+
#
|
289
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-import-model.html
|
290
|
+
# @return [String]
|
291
|
+
#
|
292
|
+
# @!attribute [rw] role_arn
|
293
|
+
# The Amazon Resource Name (ARN) of an IAM service role that Amazon
|
294
|
+
# Bedrock assumes to perform tasks on your behalf. This role must have
|
295
|
+
# permissions to access the Amazon S3 bucket containing your model
|
296
|
+
# artifacts and the KMS key (if specified). For more information, see
|
297
|
+
# [Setting up an IAM service role for importing models][1] in the
|
298
|
+
# Amazon Bedrock User Guide.
|
299
|
+
#
|
300
|
+
#
|
301
|
+
#
|
302
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
|
303
|
+
# @return [String]
|
304
|
+
#
|
305
|
+
# @!attribute [rw] model_tags
|
306
|
+
# A list of key-value pairs to associate with the custom model
|
307
|
+
# resource. You can use these tags to organize and identify your
|
308
|
+
# resources.
|
309
|
+
#
|
310
|
+
# For more information, see [Tagging resources][1] in the [Amazon
|
311
|
+
# Bedrock User Guide][2].
|
312
|
+
#
|
313
|
+
#
|
314
|
+
#
|
315
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
|
316
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
317
|
+
# @return [Array<Types::Tag>]
|
318
|
+
#
|
319
|
+
# @!attribute [rw] client_request_token
|
320
|
+
# A unique, case-sensitive identifier to ensure that the API request
|
321
|
+
# completes no more than one time. If this token matches a previous
|
322
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
323
|
+
# error. For more information, see [Ensuring idempotency][1].
|
324
|
+
#
|
325
|
+
# **A suitable default value is auto-generated.** You should normally
|
326
|
+
# not need to pass this option.
|
327
|
+
#
|
328
|
+
#
|
329
|
+
#
|
330
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
331
|
+
# @return [String]
|
332
|
+
#
|
333
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModelRequest AWS API Documentation
|
334
|
+
#
|
335
|
+
class CreateCustomModelRequest < Struct.new(
|
336
|
+
:model_name,
|
337
|
+
:model_source_config,
|
338
|
+
:model_kms_key_arn,
|
339
|
+
:role_arn,
|
340
|
+
:model_tags,
|
341
|
+
:client_request_token)
|
342
|
+
SENSITIVE = []
|
343
|
+
include Aws::Structure
|
344
|
+
end
|
345
|
+
|
346
|
+
# @!attribute [rw] model_arn
|
347
|
+
# The Amazon Resource Name (ARN) of the new custom model.
|
348
|
+
# @return [String]
|
349
|
+
#
|
350
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModelResponse AWS API Documentation
|
351
|
+
#
|
352
|
+
class CreateCustomModelResponse < Struct.new(
|
353
|
+
:model_arn)
|
354
|
+
SENSITIVE = []
|
355
|
+
include Aws::Structure
|
356
|
+
end
|
357
|
+
|
267
358
|
# @!attribute [rw] job_name
|
268
359
|
# A name for the evaluation job. Names must unique with your Amazon
|
269
360
|
# Web Services account, and your account's Amazon Web Services
|
@@ -1301,6 +1392,17 @@ module Aws::Bedrock
|
|
1301
1392
|
# The unique identifier of the account that owns the model.
|
1302
1393
|
# @return [String]
|
1303
1394
|
#
|
1395
|
+
# @!attribute [rw] model_status
|
1396
|
+
# The current status of the custom model. Possible values include:
|
1397
|
+
#
|
1398
|
+
# * `Creating` - The model is being created and validated.
|
1399
|
+
#
|
1400
|
+
# * `Active` - The model has been successfully created and is ready
|
1401
|
+
# for use.
|
1402
|
+
#
|
1403
|
+
# * `Failed` - The model creation process failed.
|
1404
|
+
# @return [String]
|
1405
|
+
#
|
1304
1406
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomModelSummary AWS API Documentation
|
1305
1407
|
#
|
1306
1408
|
class CustomModelSummary < Struct.new(
|
@@ -1310,7 +1412,8 @@ module Aws::Bedrock
|
|
1310
1412
|
:base_model_arn,
|
1311
1413
|
:base_model_name,
|
1312
1414
|
:customization_type,
|
1313
|
-
:owner_account_id
|
1415
|
+
:owner_account_id,
|
1416
|
+
:model_status)
|
1314
1417
|
SENSITIVE = []
|
1315
1418
|
include Aws::Structure
|
1316
1419
|
end
|
@@ -2408,7 +2511,13 @@ module Aws::Bedrock
|
|
2408
2511
|
# @return [String]
|
2409
2512
|
#
|
2410
2513
|
# @!attribute [rw] job_arn
|
2411
|
-
# Job Amazon Resource Name (ARN) associated with this model.
|
2514
|
+
# Job Amazon Resource Name (ARN) associated with this model. For
|
2515
|
+
# models that you create with the [CreateCustomModel][1] API
|
2516
|
+
# operation, this is `NULL`.
|
2517
|
+
#
|
2518
|
+
#
|
2519
|
+
#
|
2520
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModel.html
|
2412
2521
|
# @return [String]
|
2413
2522
|
#
|
2414
2523
|
# @!attribute [rw] base_model_arn
|
@@ -2460,6 +2569,24 @@ module Aws::Bedrock
|
|
2460
2569
|
# The customization configuration for the custom model.
|
2461
2570
|
# @return [Types::CustomizationConfig]
|
2462
2571
|
#
|
2572
|
+
# @!attribute [rw] model_status
|
2573
|
+
# The current status of the custom model. Possible values include:
|
2574
|
+
#
|
2575
|
+
# * `Creating` - The model is being created and validated.
|
2576
|
+
#
|
2577
|
+
# * `Active` - The model has been successfully created and is ready
|
2578
|
+
# for use.
|
2579
|
+
#
|
2580
|
+
# * `Failed` - The model creation process failed. Check the
|
2581
|
+
# `failureMessage` field for details.
|
2582
|
+
# @return [String]
|
2583
|
+
#
|
2584
|
+
# @!attribute [rw] failure_message
|
2585
|
+
# A failure message for any issues that occurred when creating the
|
2586
|
+
# custom model. This is included for only a failed CreateCustomModel
|
2587
|
+
# operation.
|
2588
|
+
# @return [String]
|
2589
|
+
#
|
2463
2590
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModelResponse AWS API Documentation
|
2464
2591
|
#
|
2465
2592
|
class GetCustomModelResponse < Struct.new(
|
@@ -2477,7 +2604,9 @@ module Aws::Bedrock
|
|
2477
2604
|
:training_metrics,
|
2478
2605
|
:validation_metrics,
|
2479
2606
|
:creation_time,
|
2480
|
-
:customization_config
|
2607
|
+
:customization_config,
|
2608
|
+
:model_status,
|
2609
|
+
:failure_message)
|
2481
2610
|
SENSITIVE = []
|
2482
2611
|
include Aws::Structure
|
2483
2612
|
end
|
@@ -3020,15 +3149,15 @@ module Aws::Bedrock
|
|
3020
3149
|
# failed.
|
3021
3150
|
# @return [String]
|
3022
3151
|
#
|
3023
|
-
# @!attribute [rw] failure_message
|
3024
|
-
# Information about why the job failed.
|
3025
|
-
# @return [String]
|
3026
|
-
#
|
3027
3152
|
# @!attribute [rw] status_details
|
3028
3153
|
# For a Distillation job, the details about the statuses of the
|
3029
3154
|
# sub-tasks of the customization job.
|
3030
3155
|
# @return [Types::StatusDetails]
|
3031
3156
|
#
|
3157
|
+
# @!attribute [rw] failure_message
|
3158
|
+
# Information about why the job failed.
|
3159
|
+
# @return [String]
|
3160
|
+
#
|
3032
3161
|
# @!attribute [rw] creation_time
|
3033
3162
|
# Time that the resource was created.
|
3034
3163
|
# @return [Time]
|
@@ -3101,8 +3230,8 @@ module Aws::Bedrock
|
|
3101
3230
|
:client_request_token,
|
3102
3231
|
:role_arn,
|
3103
3232
|
:status,
|
3104
|
-
:failure_message,
|
3105
3233
|
:status_details,
|
3234
|
+
:failure_message,
|
3106
3235
|
:creation_time,
|
3107
3236
|
:last_modified_time,
|
3108
3237
|
:end_time,
|
@@ -5507,6 +5636,22 @@ module Aws::Bedrock
|
|
5507
5636
|
# (`true`) or if they were shared with the current account (`false`).
|
5508
5637
|
# @return [Boolean]
|
5509
5638
|
#
|
5639
|
+
# @!attribute [rw] model_status
|
5640
|
+
# The status of them model to filter results by. Possible values
|
5641
|
+
# include:
|
5642
|
+
#
|
5643
|
+
# * `Creating` - Include only models that are currently being created
|
5644
|
+
# and validated.
|
5645
|
+
#
|
5646
|
+
# * `Active` - Include only models that have been successfully created
|
5647
|
+
# and are ready for use.
|
5648
|
+
#
|
5649
|
+
# * `Failed` - Include only models where the creation process failed.
|
5650
|
+
#
|
5651
|
+
# If you don't specify a status, the API returns models in all
|
5652
|
+
# states.
|
5653
|
+
# @return [String]
|
5654
|
+
#
|
5510
5655
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModelsRequest AWS API Documentation
|
5511
5656
|
#
|
5512
5657
|
class ListCustomModelsRequest < Struct.new(
|
@@ -5519,7 +5664,8 @@ module Aws::Bedrock
|
|
5519
5664
|
:next_token,
|
5520
5665
|
:sort_by,
|
5521
5666
|
:sort_order,
|
5522
|
-
:is_owned
|
5667
|
+
:is_owned,
|
5668
|
+
:model_status)
|
5523
5669
|
SENSITIVE = []
|
5524
5670
|
include Aws::Structure
|
5525
5671
|
end
|
@@ -6638,14 +6784,14 @@ module Aws::Bedrock
|
|
6638
6784
|
# Status of the customization job.
|
6639
6785
|
# @return [String]
|
6640
6786
|
#
|
6641
|
-
# @!attribute [rw] last_modified_time
|
6642
|
-
# Time that the customization job was last modified.
|
6643
|
-
# @return [Time]
|
6644
|
-
#
|
6645
6787
|
# @!attribute [rw] status_details
|
6646
6788
|
# Details about the status of the data processing sub-task of the job.
|
6647
6789
|
# @return [Types::StatusDetails]
|
6648
6790
|
#
|
6791
|
+
# @!attribute [rw] last_modified_time
|
6792
|
+
# Time that the customization job was last modified.
|
6793
|
+
# @return [Time]
|
6794
|
+
#
|
6649
6795
|
# @!attribute [rw] creation_time
|
6650
6796
|
# Creation time of the custom model.
|
6651
6797
|
# @return [Time]
|
@@ -6679,8 +6825,8 @@ module Aws::Bedrock
|
|
6679
6825
|
:base_model_arn,
|
6680
6826
|
:job_name,
|
6681
6827
|
:status,
|
6682
|
-
:last_modified_time,
|
6683
6828
|
:status_details,
|
6829
|
+
:last_modified_time,
|
6684
6830
|
:creation_time,
|
6685
6831
|
:end_time,
|
6686
6832
|
:custom_model_arn,
|
@@ -6690,14 +6836,14 @@ module Aws::Bedrock
|
|
6690
6836
|
include Aws::Structure
|
6691
6837
|
end
|
6692
6838
|
|
6693
|
-
#
|
6839
|
+
# The data source of the model to import.
|
6694
6840
|
#
|
6695
6841
|
# @note ModelDataSource is a union - when making an API calls you must set exactly one of the members.
|
6696
6842
|
#
|
6697
6843
|
# @note ModelDataSource is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ModelDataSource corresponding to the set member.
|
6698
6844
|
#
|
6699
6845
|
# @!attribute [rw] s3_data_source
|
6700
|
-
# The Amazon S3 data source of the
|
6846
|
+
# The Amazon S3 data source of the model to import.
|
6701
6847
|
# @return [Types::S3DataSource]
|
6702
6848
|
#
|
6703
6849
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelDataSource AWS API Documentation
|
@@ -7727,7 +7873,7 @@ module Aws::Bedrock
|
|
7727
7873
|
include Aws::Structure
|
7728
7874
|
end
|
7729
7875
|
|
7730
|
-
# The Amazon S3 data source of the
|
7876
|
+
# The Amazon S3 data source of the model to import.
|
7731
7877
|
#
|
7732
7878
|
# @!attribute [rw] s3_uri
|
7733
7879
|
# The URI of the Amazon S3 data source.
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -88,6 +88,30 @@ module Aws
|
|
88
88
|
) -> _BatchDeleteEvaluationJobResponseSuccess
|
89
89
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDeleteEvaluationJobResponseSuccess
|
90
90
|
|
91
|
+
interface _CreateCustomModelResponseSuccess
|
92
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomModelResponse]
|
93
|
+
def model_arn: () -> ::String
|
94
|
+
end
|
95
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_custom_model-instance_method
|
96
|
+
def create_custom_model: (
|
97
|
+
model_name: ::String,
|
98
|
+
model_source_config: {
|
99
|
+
s3_data_source: {
|
100
|
+
s3_uri: ::String
|
101
|
+
}?
|
102
|
+
},
|
103
|
+
?model_kms_key_arn: ::String,
|
104
|
+
?role_arn: ::String,
|
105
|
+
?model_tags: Array[
|
106
|
+
{
|
107
|
+
key: ::String,
|
108
|
+
value: ::String
|
109
|
+
},
|
110
|
+
],
|
111
|
+
?client_request_token: ::String
|
112
|
+
) -> _CreateCustomModelResponseSuccess
|
113
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelResponseSuccess
|
114
|
+
|
91
115
|
interface _CreateEvaluationJobResponseSuccess
|
92
116
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateEvaluationJobResponse]
|
93
117
|
def job_arn: () -> ::String
|
@@ -629,7 +653,7 @@ module Aws
|
|
629
653
|
role_arn: ::String,
|
630
654
|
?client_request_token: ::String,
|
631
655
|
base_model_identifier: ::String,
|
632
|
-
?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION"),
|
656
|
+
?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED"),
|
633
657
|
?custom_model_kms_key_id: ::String,
|
634
658
|
?job_tags: Array[
|
635
659
|
{
|
@@ -904,7 +928,7 @@ module Aws
|
|
904
928
|
def job_name: () -> ::String
|
905
929
|
def job_arn: () -> ::String
|
906
930
|
def base_model_arn: () -> ::String
|
907
|
-
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
931
|
+
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
908
932
|
def model_kms_key_arn: () -> ::String
|
909
933
|
def hyper_parameters: () -> ::Hash[::String, ::String]
|
910
934
|
def training_data_config: () -> Types::TrainingDataConfig
|
@@ -914,6 +938,8 @@ module Aws
|
|
914
938
|
def validation_metrics: () -> ::Array[Types::ValidatorMetric]
|
915
939
|
def creation_time: () -> ::Time
|
916
940
|
def customization_config: () -> Types::CustomizationConfig
|
941
|
+
def model_status: () -> ("Active" | "Creating" | "Failed")
|
942
|
+
def failure_message: () -> ::String
|
917
943
|
end
|
918
944
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_custom_model-instance_method
|
919
945
|
def get_custom_model: (
|
@@ -1059,8 +1085,8 @@ module Aws
|
|
1059
1085
|
def client_request_token: () -> ::String
|
1060
1086
|
def role_arn: () -> ::String
|
1061
1087
|
def status: () -> ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
|
1062
|
-
def failure_message: () -> ::String
|
1063
1088
|
def status_details: () -> Types::StatusDetails
|
1089
|
+
def failure_message: () -> ::String
|
1064
1090
|
def creation_time: () -> ::Time
|
1065
1091
|
def last_modified_time: () -> ::Time
|
1066
1092
|
def end_time: () -> ::Time
|
@@ -1069,7 +1095,7 @@ module Aws
|
|
1069
1095
|
def training_data_config: () -> Types::TrainingDataConfig
|
1070
1096
|
def validation_data_config: () -> Types::ValidationDataConfig
|
1071
1097
|
def output_data_config: () -> Types::OutputDataConfig
|
1072
|
-
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
1098
|
+
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
1073
1099
|
def output_model_kms_key_arn: () -> ::String
|
1074
1100
|
def training_metrics: () -> Types::TrainingMetrics
|
1075
1101
|
def validation_metrics: () -> ::Array[Types::ValidatorMetric]
|
@@ -1194,7 +1220,8 @@ module Aws
|
|
1194
1220
|
?next_token: ::String,
|
1195
1221
|
?sort_by: ("CreationTime"),
|
1196
1222
|
?sort_order: ("Ascending" | "Descending"),
|
1197
|
-
?is_owned: bool
|
1223
|
+
?is_owned: bool,
|
1224
|
+
?model_status: ("Active" | "Creating" | "Failed")
|
1198
1225
|
) -> _ListCustomModelsResponseSuccess
|
1199
1226
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomModelsResponseSuccess
|
1200
1227
|
|
data/sig/types.rbs
CHANGED
@@ -85,6 +85,21 @@ module Aws::Bedrock
|
|
85
85
|
SENSITIVE: []
|
86
86
|
end
|
87
87
|
|
88
|
+
class CreateCustomModelRequest
|
89
|
+
attr_accessor model_name: ::String
|
90
|
+
attr_accessor model_source_config: Types::ModelDataSource
|
91
|
+
attr_accessor model_kms_key_arn: ::String
|
92
|
+
attr_accessor role_arn: ::String
|
93
|
+
attr_accessor model_tags: ::Array[Types::Tag]
|
94
|
+
attr_accessor client_request_token: ::String
|
95
|
+
SENSITIVE: []
|
96
|
+
end
|
97
|
+
|
98
|
+
class CreateCustomModelResponse
|
99
|
+
attr_accessor model_arn: ::String
|
100
|
+
SENSITIVE: []
|
101
|
+
end
|
102
|
+
|
88
103
|
class CreateEvaluationJobRequest
|
89
104
|
attr_accessor job_name: ::String
|
90
105
|
attr_accessor job_description: ::String
|
@@ -192,7 +207,7 @@ module Aws::Bedrock
|
|
192
207
|
attr_accessor role_arn: ::String
|
193
208
|
attr_accessor client_request_token: ::String
|
194
209
|
attr_accessor base_model_identifier: ::String
|
195
|
-
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
210
|
+
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
196
211
|
attr_accessor custom_model_kms_key_id: ::String
|
197
212
|
attr_accessor job_tags: ::Array[Types::Tag]
|
198
213
|
attr_accessor custom_model_tags: ::Array[Types::Tag]
|
@@ -300,8 +315,9 @@ module Aws::Bedrock
|
|
300
315
|
attr_accessor creation_time: ::Time
|
301
316
|
attr_accessor base_model_arn: ::String
|
302
317
|
attr_accessor base_model_name: ::String
|
303
|
-
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
318
|
+
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
304
319
|
attr_accessor owner_account_id: ::String
|
320
|
+
attr_accessor model_status: ("Active" | "Creating" | "Failed")
|
305
321
|
SENSITIVE: []
|
306
322
|
end
|
307
323
|
|
@@ -648,7 +664,7 @@ module Aws::Bedrock
|
|
648
664
|
attr_accessor job_name: ::String
|
649
665
|
attr_accessor job_arn: ::String
|
650
666
|
attr_accessor base_model_arn: ::String
|
651
|
-
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
667
|
+
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
652
668
|
attr_accessor model_kms_key_arn: ::String
|
653
669
|
attr_accessor hyper_parameters: ::Hash[::String, ::String]
|
654
670
|
attr_accessor training_data_config: Types::TrainingDataConfig
|
@@ -658,6 +674,8 @@ module Aws::Bedrock
|
|
658
674
|
attr_accessor validation_metrics: ::Array[Types::ValidatorMetric]
|
659
675
|
attr_accessor creation_time: ::Time
|
660
676
|
attr_accessor customization_config: Types::CustomizationConfig
|
677
|
+
attr_accessor model_status: ("Active" | "Creating" | "Failed")
|
678
|
+
attr_accessor failure_message: ::String
|
661
679
|
SENSITIVE: []
|
662
680
|
end
|
663
681
|
|
@@ -803,8 +821,8 @@ module Aws::Bedrock
|
|
803
821
|
attr_accessor client_request_token: ::String
|
804
822
|
attr_accessor role_arn: ::String
|
805
823
|
attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
|
806
|
-
attr_accessor failure_message: ::String
|
807
824
|
attr_accessor status_details: Types::StatusDetails
|
825
|
+
attr_accessor failure_message: ::String
|
808
826
|
attr_accessor creation_time: ::Time
|
809
827
|
attr_accessor last_modified_time: ::Time
|
810
828
|
attr_accessor end_time: ::Time
|
@@ -813,7 +831,7 @@ module Aws::Bedrock
|
|
813
831
|
attr_accessor training_data_config: Types::TrainingDataConfig
|
814
832
|
attr_accessor validation_data_config: Types::ValidationDataConfig
|
815
833
|
attr_accessor output_data_config: Types::OutputDataConfig
|
816
|
-
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
834
|
+
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
817
835
|
attr_accessor output_model_kms_key_arn: ::String
|
818
836
|
attr_accessor training_metrics: Types::TrainingMetrics
|
819
837
|
attr_accessor validation_metrics: ::Array[Types::ValidatorMetric]
|
@@ -1279,6 +1297,7 @@ module Aws::Bedrock
|
|
1279
1297
|
attr_accessor sort_by: ("CreationTime")
|
1280
1298
|
attr_accessor sort_order: ("Ascending" | "Descending")
|
1281
1299
|
attr_accessor is_owned: bool
|
1300
|
+
attr_accessor model_status: ("Active" | "Creating" | "Failed")
|
1282
1301
|
SENSITIVE: []
|
1283
1302
|
end
|
1284
1303
|
|
@@ -1545,13 +1564,13 @@ module Aws::Bedrock
|
|
1545
1564
|
attr_accessor base_model_arn: ::String
|
1546
1565
|
attr_accessor job_name: ::String
|
1547
1566
|
attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
|
1548
|
-
attr_accessor last_modified_time: ::Time
|
1549
1567
|
attr_accessor status_details: Types::StatusDetails
|
1568
|
+
attr_accessor last_modified_time: ::Time
|
1550
1569
|
attr_accessor creation_time: ::Time
|
1551
1570
|
attr_accessor end_time: ::Time
|
1552
1571
|
attr_accessor custom_model_arn: ::String
|
1553
1572
|
attr_accessor custom_model_name: ::String
|
1554
|
-
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
1573
|
+
attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
1555
1574
|
SENSITIVE: []
|
1556
1575
|
end
|
1557
1576
|
|