aws-sdk-bedrock 1.46.0 → 1.52.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 +30 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +380 -10
- data/lib/aws-sdk-bedrock/client_api.rb +247 -6
- data/lib/aws-sdk-bedrock/types.rb +609 -21
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +112 -9
- data/sig/types.rbs +160 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae20fa3d3957875282be41d1e011f62189d2ae1524021a06d23d514ade0bd55a
|
4
|
+
data.tar.gz: 5f457d933a6d94f5429c96da436fc82a95956ae4b942b34b6eff4393bcf24fb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b28788b72bea6c4bfe2d594fe190263092c4b5cb5b26d50e03faa8518d0473859ffc9b24fe55c376915c976b66b12f48862eb476091fb79a1aaf18b494e4529d
|
7
|
+
data.tar.gz: 9ff361e643a2429d6419d09f26dba829374b501148786e9b5ff6c551b9d2fec298bbb2f45cb2afb5d5bd186c4eabaa24f8eabf146b966b8c6b88f48b41ab8a39
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,36 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.52.0 (2025-06-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - We are making ListFoundationModelAgreementOffers, DeleteFoundationModelAgreement, CreateFoundationModelAgreement, GetFoundationModelAvailability, PutUseCaseForModelAccess and GetUseCaseForModelAccess APIs public, previously they were console.
|
8
|
+
|
9
|
+
1.51.0 (2025-06-20)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add support for tiers in Content Filters and Denied Topics for Amazon Bedrock Guardrails.
|
13
|
+
|
14
|
+
1.50.0 (2025-06-19)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* 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.
|
18
|
+
|
19
|
+
1.49.0 (2025-06-17)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* 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.
|
23
|
+
|
24
|
+
1.48.0 (2025-06-16)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* 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.
|
28
|
+
|
29
|
+
1.47.0 (2025-06-02)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
33
|
+
|
4
34
|
1.46.0 (2025-05-13)
|
5
35
|
------------------
|
6
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.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
|
@@ -960,6 +1120,38 @@ module Aws::Bedrock
|
|
960
1120
|
req.send_request(options)
|
961
1121
|
end
|
962
1122
|
|
1123
|
+
# Request a model access agreement for the specified model.
|
1124
|
+
#
|
1125
|
+
# @option params [required, String] :offer_token
|
1126
|
+
# An offer token encapsulates the information for an offer.
|
1127
|
+
#
|
1128
|
+
# @option params [required, String] :model_id
|
1129
|
+
# Model Id of the model for the access request.
|
1130
|
+
#
|
1131
|
+
# @return [Types::CreateFoundationModelAgreementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1132
|
+
#
|
1133
|
+
# * {Types::CreateFoundationModelAgreementResponse#model_id #model_id} => String
|
1134
|
+
#
|
1135
|
+
# @example Request syntax with placeholder values
|
1136
|
+
#
|
1137
|
+
# resp = client.create_foundation_model_agreement({
|
1138
|
+
# offer_token: "OfferToken", # required
|
1139
|
+
# model_id: "BedrockModelId", # required
|
1140
|
+
# })
|
1141
|
+
#
|
1142
|
+
# @example Response structure
|
1143
|
+
#
|
1144
|
+
# resp.model_id #=> String
|
1145
|
+
#
|
1146
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateFoundationModelAgreement AWS API Documentation
|
1147
|
+
#
|
1148
|
+
# @overload create_foundation_model_agreement(params = {})
|
1149
|
+
# @param [Hash] params ({})
|
1150
|
+
def create_foundation_model_agreement(params = {}, options = {})
|
1151
|
+
req = build_request(:create_foundation_model_agreement, params)
|
1152
|
+
req.send_request(options)
|
1153
|
+
end
|
1154
|
+
|
963
1155
|
# Creates a guardrail to block topics and to implement safeguards for
|
964
1156
|
# your generative AI applications.
|
965
1157
|
#
|
@@ -1078,6 +1270,9 @@ module Aws::Bedrock
|
|
1078
1270
|
# output_enabled: false,
|
1079
1271
|
# },
|
1080
1272
|
# ],
|
1273
|
+
# tier_config: {
|
1274
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
1275
|
+
# },
|
1081
1276
|
# },
|
1082
1277
|
# content_policy_config: {
|
1083
1278
|
# filters_config: [ # required
|
@@ -1093,6 +1288,9 @@ module Aws::Bedrock
|
|
1093
1288
|
# output_enabled: false,
|
1094
1289
|
# },
|
1095
1290
|
# ],
|
1291
|
+
# tier_config: {
|
1292
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
1293
|
+
# },
|
1096
1294
|
# },
|
1097
1295
|
# word_policy_config: {
|
1098
1296
|
# words_config: [
|
@@ -1585,7 +1783,7 @@ module Aws::Bedrock
|
|
1585
1783
|
# role_arn: "RoleArn", # required
|
1586
1784
|
# client_request_token: "IdempotencyToken",
|
1587
1785
|
# base_model_identifier: "BaseModelIdentifier", # required
|
1588
|
-
# customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING, DISTILLATION
|
1786
|
+
# customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING, DISTILLATION, IMPORTED
|
1589
1787
|
# custom_model_kms_key_id: "KmsKeyId",
|
1590
1788
|
# job_tags: [
|
1591
1789
|
# {
|
@@ -2103,6 +2301,28 @@ module Aws::Bedrock
|
|
2103
2301
|
req.send_request(options)
|
2104
2302
|
end
|
2105
2303
|
|
2304
|
+
# Delete the model access agreement for the specified model.
|
2305
|
+
#
|
2306
|
+
# @option params [required, String] :model_id
|
2307
|
+
# Model Id of the model access to delete.
|
2308
|
+
#
|
2309
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2310
|
+
#
|
2311
|
+
# @example Request syntax with placeholder values
|
2312
|
+
#
|
2313
|
+
# resp = client.delete_foundation_model_agreement({
|
2314
|
+
# model_id: "BedrockModelId", # required
|
2315
|
+
# })
|
2316
|
+
#
|
2317
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteFoundationModelAgreement AWS API Documentation
|
2318
|
+
#
|
2319
|
+
# @overload delete_foundation_model_agreement(params = {})
|
2320
|
+
# @param [Hash] params ({})
|
2321
|
+
def delete_foundation_model_agreement(params = {}, options = {})
|
2322
|
+
req = build_request(:delete_foundation_model_agreement, params)
|
2323
|
+
req.send_request(options)
|
2324
|
+
end
|
2325
|
+
|
2106
2326
|
# Deletes a guardrail.
|
2107
2327
|
#
|
2108
2328
|
# * To delete a guardrail, only specify the ARN of the guardrail in the
|
@@ -2306,7 +2526,7 @@ module Aws::Bedrock
|
|
2306
2526
|
end
|
2307
2527
|
|
2308
2528
|
# Get the properties associated with a Amazon Bedrock custom model that
|
2309
|
-
# you have created.For more information, see [Custom models][1] in the
|
2529
|
+
# you have created. For more information, see [Custom models][1] in the
|
2310
2530
|
# [Amazon Bedrock User Guide][2].
|
2311
2531
|
#
|
2312
2532
|
#
|
@@ -2334,6 +2554,8 @@ module Aws::Bedrock
|
|
2334
2554
|
# * {Types::GetCustomModelResponse#validation_metrics #validation_metrics} => Array<Types::ValidatorMetric>
|
2335
2555
|
# * {Types::GetCustomModelResponse#creation_time #creation_time} => Time
|
2336
2556
|
# * {Types::GetCustomModelResponse#customization_config #customization_config} => Types::CustomizationConfig
|
2557
|
+
# * {Types::GetCustomModelResponse#model_status #model_status} => String
|
2558
|
+
# * {Types::GetCustomModelResponse#failure_message #failure_message} => String
|
2337
2559
|
#
|
2338
2560
|
# @example Request syntax with placeholder values
|
2339
2561
|
#
|
@@ -2348,7 +2570,7 @@ module Aws::Bedrock
|
|
2348
2570
|
# resp.job_name #=> String
|
2349
2571
|
# resp.job_arn #=> String
|
2350
2572
|
# resp.base_model_arn #=> String
|
2351
|
-
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
2573
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
2352
2574
|
# resp.model_kms_key_arn #=> String
|
2353
2575
|
# resp.hyper_parameters #=> Hash
|
2354
2576
|
# resp.hyper_parameters["String"] #=> String
|
@@ -2378,6 +2600,8 @@ module Aws::Bedrock
|
|
2378
2600
|
# resp.creation_time #=> Time
|
2379
2601
|
# resp.customization_config.distillation_config.teacher_model_config.teacher_model_identifier #=> String
|
2380
2602
|
# resp.customization_config.distillation_config.teacher_model_config.max_response_length_for_inference #=> Integer
|
2603
|
+
# resp.model_status #=> String, one of "Active", "Creating", "Failed"
|
2604
|
+
# resp.failure_message #=> String
|
2381
2605
|
#
|
2382
2606
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel AWS API Documentation
|
2383
2607
|
#
|
@@ -2585,6 +2809,43 @@ module Aws::Bedrock
|
|
2585
2809
|
req.send_request(options)
|
2586
2810
|
end
|
2587
2811
|
|
2812
|
+
# Get information about the Foundation model availability.
|
2813
|
+
#
|
2814
|
+
# @option params [required, String] :model_id
|
2815
|
+
# The model Id of the foundation model.
|
2816
|
+
#
|
2817
|
+
# @return [Types::GetFoundationModelAvailabilityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2818
|
+
#
|
2819
|
+
# * {Types::GetFoundationModelAvailabilityResponse#model_id #model_id} => String
|
2820
|
+
# * {Types::GetFoundationModelAvailabilityResponse#agreement_availability #agreement_availability} => Types::AgreementAvailability
|
2821
|
+
# * {Types::GetFoundationModelAvailabilityResponse#authorization_status #authorization_status} => String
|
2822
|
+
# * {Types::GetFoundationModelAvailabilityResponse#entitlement_availability #entitlement_availability} => String
|
2823
|
+
# * {Types::GetFoundationModelAvailabilityResponse#region_availability #region_availability} => String
|
2824
|
+
#
|
2825
|
+
# @example Request syntax with placeholder values
|
2826
|
+
#
|
2827
|
+
# resp = client.get_foundation_model_availability({
|
2828
|
+
# model_id: "BedrockModelId", # required
|
2829
|
+
# })
|
2830
|
+
#
|
2831
|
+
# @example Response structure
|
2832
|
+
#
|
2833
|
+
# resp.model_id #=> String
|
2834
|
+
# resp.agreement_availability.status #=> String, one of "AVAILABLE", "PENDING", "NOT_AVAILABLE", "ERROR"
|
2835
|
+
# resp.agreement_availability.error_message #=> String
|
2836
|
+
# resp.authorization_status #=> String, one of "AUTHORIZED", "NOT_AUTHORIZED"
|
2837
|
+
# resp.entitlement_availability #=> String, one of "AVAILABLE", "NOT_AVAILABLE"
|
2838
|
+
# resp.region_availability #=> String, one of "AVAILABLE", "NOT_AVAILABLE"
|
2839
|
+
#
|
2840
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModelAvailability AWS API Documentation
|
2841
|
+
#
|
2842
|
+
# @overload get_foundation_model_availability(params = {})
|
2843
|
+
# @param [Hash] params ({})
|
2844
|
+
def get_foundation_model_availability(params = {}, options = {})
|
2845
|
+
req = build_request(:get_foundation_model_availability, params)
|
2846
|
+
req.send_request(options)
|
2847
|
+
end
|
2848
|
+
|
2588
2849
|
# Gets details about a guardrail. If you don't specify a version, the
|
2589
2850
|
# response returns details for the `DRAFT` version.
|
2590
2851
|
#
|
@@ -2644,6 +2905,7 @@ module Aws::Bedrock
|
|
2644
2905
|
# resp.topic_policy.topics[0].output_action #=> String, one of "BLOCK", "NONE"
|
2645
2906
|
# resp.topic_policy.topics[0].input_enabled #=> Boolean
|
2646
2907
|
# resp.topic_policy.topics[0].output_enabled #=> Boolean
|
2908
|
+
# resp.topic_policy.tier.tier_name #=> String, one of "CLASSIC", "STANDARD"
|
2647
2909
|
# resp.content_policy.filters #=> Array
|
2648
2910
|
# resp.content_policy.filters[0].type #=> String, one of "SEXUAL", "VIOLENCE", "HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK"
|
2649
2911
|
# resp.content_policy.filters[0].input_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
@@ -2656,6 +2918,7 @@ module Aws::Bedrock
|
|
2656
2918
|
# resp.content_policy.filters[0].output_action #=> String, one of "BLOCK", "NONE"
|
2657
2919
|
# resp.content_policy.filters[0].input_enabled #=> Boolean
|
2658
2920
|
# resp.content_policy.filters[0].output_enabled #=> Boolean
|
2921
|
+
# resp.content_policy.tier.tier_name #=> String, one of "CLASSIC", "STANDARD"
|
2659
2922
|
# resp.word_policy.words #=> Array
|
2660
2923
|
# resp.word_policy.words[0].text #=> String
|
2661
2924
|
# resp.word_policy.words[0].input_action #=> String, one of "BLOCK", "NONE"
|
@@ -2931,8 +3194,8 @@ module Aws::Bedrock
|
|
2931
3194
|
# * {Types::GetModelCustomizationJobResponse#client_request_token #client_request_token} => String
|
2932
3195
|
# * {Types::GetModelCustomizationJobResponse#role_arn #role_arn} => String
|
2933
3196
|
# * {Types::GetModelCustomizationJobResponse#status #status} => String
|
2934
|
-
# * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
|
2935
3197
|
# * {Types::GetModelCustomizationJobResponse#status_details #status_details} => Types::StatusDetails
|
3198
|
+
# * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
|
2936
3199
|
# * {Types::GetModelCustomizationJobResponse#creation_time #creation_time} => Time
|
2937
3200
|
# * {Types::GetModelCustomizationJobResponse#last_modified_time #last_modified_time} => Time
|
2938
3201
|
# * {Types::GetModelCustomizationJobResponse#end_time #end_time} => Time
|
@@ -2963,7 +3226,6 @@ module Aws::Bedrock
|
|
2963
3226
|
# resp.client_request_token #=> String
|
2964
3227
|
# resp.role_arn #=> String
|
2965
3228
|
# resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
2966
|
-
# resp.failure_message #=> String
|
2967
3229
|
# resp.status_details.validation_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
2968
3230
|
# resp.status_details.validation_details.creation_time #=> Time
|
2969
3231
|
# resp.status_details.validation_details.last_modified_time #=> Time
|
@@ -2973,6 +3235,7 @@ module Aws::Bedrock
|
|
2973
3235
|
# resp.status_details.training_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
2974
3236
|
# resp.status_details.training_details.creation_time #=> Time
|
2975
3237
|
# resp.status_details.training_details.last_modified_time #=> Time
|
3238
|
+
# resp.failure_message #=> String
|
2976
3239
|
# resp.creation_time #=> Time
|
2977
3240
|
# resp.last_modified_time #=> Time
|
2978
3241
|
# resp.end_time #=> Time
|
@@ -2999,7 +3262,7 @@ module Aws::Bedrock
|
|
2999
3262
|
# resp.validation_data_config.validators #=> Array
|
3000
3263
|
# resp.validation_data_config.validators[0].s3_uri #=> String
|
3001
3264
|
# resp.output_data_config.s3_uri #=> String
|
3002
|
-
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
3265
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3003
3266
|
# resp.output_model_kms_key_arn #=> String
|
3004
3267
|
# resp.training_metrics.training_loss #=> Float
|
3005
3268
|
# resp.validation_metrics #=> Array
|
@@ -3283,6 +3546,25 @@ module Aws::Bedrock
|
|
3283
3546
|
req.send_request(options)
|
3284
3547
|
end
|
3285
3548
|
|
3549
|
+
# Get usecase for model access.
|
3550
|
+
#
|
3551
|
+
# @return [Types::GetUseCaseForModelAccessResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3552
|
+
#
|
3553
|
+
# * {Types::GetUseCaseForModelAccessResponse#form_data #form_data} => String
|
3554
|
+
#
|
3555
|
+
# @example Response structure
|
3556
|
+
#
|
3557
|
+
# resp.form_data #=> String
|
3558
|
+
#
|
3559
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetUseCaseForModelAccess AWS API Documentation
|
3560
|
+
#
|
3561
|
+
# @overload get_use_case_for_model_access(params = {})
|
3562
|
+
# @param [Hash] params ({})
|
3563
|
+
def get_use_case_for_model_access(params = {}, options = {})
|
3564
|
+
req = build_request(:get_use_case_for_model_access, params)
|
3565
|
+
req.send_request(options)
|
3566
|
+
end
|
3567
|
+
|
3286
3568
|
# Returns a list of the custom models that you have created with the
|
3287
3569
|
# `CreateModelCustomizationJob` operation.
|
3288
3570
|
#
|
@@ -3333,6 +3615,20 @@ module Aws::Bedrock
|
|
3333
3615
|
# Return custom models depending on if the current account owns them
|
3334
3616
|
# (`true`) or if they were shared with the current account (`false`).
|
3335
3617
|
#
|
3618
|
+
# @option params [String] :model_status
|
3619
|
+
# The status of them model to filter results by. Possible values
|
3620
|
+
# include:
|
3621
|
+
#
|
3622
|
+
# * `Creating` - Include only models that are currently being created
|
3623
|
+
# and validated.
|
3624
|
+
#
|
3625
|
+
# * `Active` - Include only models that have been successfully created
|
3626
|
+
# and are ready for use.
|
3627
|
+
#
|
3628
|
+
# * `Failed` - Include only models where the creation process failed.
|
3629
|
+
#
|
3630
|
+
# If you don't specify a status, the API returns models in all states.
|
3631
|
+
#
|
3336
3632
|
# @return [Types::ListCustomModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3337
3633
|
#
|
3338
3634
|
# * {Types::ListCustomModelsResponse#next_token #next_token} => String
|
@@ -3353,6 +3649,7 @@ module Aws::Bedrock
|
|
3353
3649
|
# sort_by: "CreationTime", # accepts CreationTime
|
3354
3650
|
# sort_order: "Ascending", # accepts Ascending, Descending
|
3355
3651
|
# is_owned: false,
|
3652
|
+
# model_status: "Active", # accepts Active, Creating, Failed
|
3356
3653
|
# })
|
3357
3654
|
#
|
3358
3655
|
# @example Response structure
|
@@ -3364,8 +3661,9 @@ module Aws::Bedrock
|
|
3364
3661
|
# resp.model_summaries[0].creation_time #=> Time
|
3365
3662
|
# resp.model_summaries[0].base_model_arn #=> String
|
3366
3663
|
# resp.model_summaries[0].base_model_name #=> String
|
3367
|
-
# resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
3664
|
+
# resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3368
3665
|
# resp.model_summaries[0].owner_account_id #=> String
|
3666
|
+
# resp.model_summaries[0].model_status #=> String, one of "Active", "Creating", "Failed"
|
3369
3667
|
#
|
3370
3668
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels AWS API Documentation
|
3371
3669
|
#
|
@@ -3469,6 +3767,50 @@ module Aws::Bedrock
|
|
3469
3767
|
req.send_request(options)
|
3470
3768
|
end
|
3471
3769
|
|
3770
|
+
# Get the offers associated with the specified model.
|
3771
|
+
#
|
3772
|
+
# @option params [required, String] :model_id
|
3773
|
+
# Model Id of the foundation model.
|
3774
|
+
#
|
3775
|
+
# @option params [String] :offer_type
|
3776
|
+
# Type of offer associated with the model.
|
3777
|
+
#
|
3778
|
+
# @return [Types::ListFoundationModelAgreementOffersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3779
|
+
#
|
3780
|
+
# * {Types::ListFoundationModelAgreementOffersResponse#model_id #model_id} => String
|
3781
|
+
# * {Types::ListFoundationModelAgreementOffersResponse#offers #offers} => Array<Types::Offer>
|
3782
|
+
#
|
3783
|
+
# @example Request syntax with placeholder values
|
3784
|
+
#
|
3785
|
+
# resp = client.list_foundation_model_agreement_offers({
|
3786
|
+
# model_id: "BedrockModelId", # required
|
3787
|
+
# offer_type: "ALL", # accepts ALL, PUBLIC
|
3788
|
+
# })
|
3789
|
+
#
|
3790
|
+
# @example Response structure
|
3791
|
+
#
|
3792
|
+
# resp.model_id #=> String
|
3793
|
+
# resp.offers #=> Array
|
3794
|
+
# resp.offers[0].offer_id #=> String
|
3795
|
+
# resp.offers[0].offer_token #=> String
|
3796
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card #=> Array
|
3797
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].dimension #=> String
|
3798
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].price #=> String
|
3799
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].description #=> String
|
3800
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].unit #=> String
|
3801
|
+
# resp.offers[0].term_details.legal_term.url #=> String
|
3802
|
+
# resp.offers[0].term_details.support_term.refund_policy_description #=> String
|
3803
|
+
# resp.offers[0].term_details.validity_term.agreement_duration #=> String
|
3804
|
+
#
|
3805
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListFoundationModelAgreementOffers AWS API Documentation
|
3806
|
+
#
|
3807
|
+
# @overload list_foundation_model_agreement_offers(params = {})
|
3808
|
+
# @param [Hash] params ({})
|
3809
|
+
def list_foundation_model_agreement_offers(params = {}, options = {})
|
3810
|
+
req = build_request(:list_foundation_model_agreement_offers, params)
|
3811
|
+
req.send_request(options)
|
3812
|
+
end
|
3813
|
+
|
3472
3814
|
# Lists Amazon Bedrock foundation models that you can use. You can
|
3473
3815
|
# filter the results with the request parameters. For more information,
|
3474
3816
|
# see [Foundation models][1] in the [Amazon Bedrock User Guide][2].
|
@@ -3971,7 +4313,6 @@ module Aws::Bedrock
|
|
3971
4313
|
# resp.model_customization_job_summaries[0].base_model_arn #=> String
|
3972
4314
|
# resp.model_customization_job_summaries[0].job_name #=> String
|
3973
4315
|
# 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
4316
|
# resp.model_customization_job_summaries[0].status_details.validation_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
3976
4317
|
# resp.model_customization_job_summaries[0].status_details.validation_details.creation_time #=> Time
|
3977
4318
|
# resp.model_customization_job_summaries[0].status_details.validation_details.last_modified_time #=> Time
|
@@ -3981,11 +4322,12 @@ module Aws::Bedrock
|
|
3981
4322
|
# resp.model_customization_job_summaries[0].status_details.training_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
3982
4323
|
# resp.model_customization_job_summaries[0].status_details.training_details.creation_time #=> Time
|
3983
4324
|
# resp.model_customization_job_summaries[0].status_details.training_details.last_modified_time #=> Time
|
4325
|
+
# resp.model_customization_job_summaries[0].last_modified_time #=> Time
|
3984
4326
|
# resp.model_customization_job_summaries[0].creation_time #=> Time
|
3985
4327
|
# resp.model_customization_job_summaries[0].end_time #=> Time
|
3986
4328
|
# resp.model_customization_job_summaries[0].custom_model_arn #=> String
|
3987
4329
|
# 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"
|
4330
|
+
# resp.model_customization_job_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3989
4331
|
#
|
3990
4332
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCustomizationJobs AWS API Documentation
|
3991
4333
|
#
|
@@ -4447,6 +4789,28 @@ module Aws::Bedrock
|
|
4447
4789
|
req.send_request(options)
|
4448
4790
|
end
|
4449
4791
|
|
4792
|
+
# Put usecase for model access.
|
4793
|
+
#
|
4794
|
+
# @option params [required, String, StringIO, File] :form_data
|
4795
|
+
# Put customer profile Request.
|
4796
|
+
#
|
4797
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4798
|
+
#
|
4799
|
+
# @example Request syntax with placeholder values
|
4800
|
+
#
|
4801
|
+
# resp = client.put_use_case_for_model_access({
|
4802
|
+
# form_data: "data", # required
|
4803
|
+
# })
|
4804
|
+
#
|
4805
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutUseCaseForModelAccess AWS API Documentation
|
4806
|
+
#
|
4807
|
+
# @overload put_use_case_for_model_access(params = {})
|
4808
|
+
# @param [Hash] params ({})
|
4809
|
+
def put_use_case_for_model_access(params = {}, options = {})
|
4810
|
+
req = build_request(:put_use_case_for_model_access, params)
|
4811
|
+
req.send_request(options)
|
4812
|
+
end
|
4813
|
+
|
4450
4814
|
# Registers an existing Amazon SageMaker endpoint with Amazon Bedrock
|
4451
4815
|
# Marketplace, allowing it to be used with Amazon Bedrock APIs.
|
4452
4816
|
#
|
@@ -4754,6 +5118,9 @@ module Aws::Bedrock
|
|
4754
5118
|
# output_enabled: false,
|
4755
5119
|
# },
|
4756
5120
|
# ],
|
5121
|
+
# tier_config: {
|
5122
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
5123
|
+
# },
|
4757
5124
|
# },
|
4758
5125
|
# content_policy_config: {
|
4759
5126
|
# filters_config: [ # required
|
@@ -4769,6 +5136,9 @@ module Aws::Bedrock
|
|
4769
5136
|
# output_enabled: false,
|
4770
5137
|
# },
|
4771
5138
|
# ],
|
5139
|
+
# tier_config: {
|
5140
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
5141
|
+
# },
|
4772
5142
|
# },
|
4773
5143
|
# word_policy_config: {
|
4774
5144
|
# words_config: [
|
@@ -4985,7 +5355,7 @@ module Aws::Bedrock
|
|
4985
5355
|
tracer: tracer
|
4986
5356
|
)
|
4987
5357
|
context[:gem_name] = 'aws-sdk-bedrock'
|
4988
|
-
context[:gem_version] = '1.
|
5358
|
+
context[:gem_version] = '1.52.0'
|
4989
5359
|
Seahorse::Client::Request.new(handlers, context)
|
4990
5360
|
end
|
4991
5361
|
|