aws-sdk-bedrock 1.30.0 → 1.31.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 +150 -18
- data/lib/aws-sdk-bedrock/client_api.rb +67 -3
- data/lib/aws-sdk-bedrock/types.rb +350 -8
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +40 -7
- data/sig/types.rbs +79 -8
- metadata +2 -2
@@ -671,6 +671,10 @@ module Aws::Bedrock
|
|
671
671
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-model-customization.html
|
672
672
|
# @return [Types::VpcConfig]
|
673
673
|
#
|
674
|
+
# @!attribute [rw] customization_config
|
675
|
+
# The customization configuration for the model customization job.
|
676
|
+
# @return [Types::CustomizationConfig]
|
677
|
+
#
|
674
678
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelCustomizationJobRequest AWS API Documentation
|
675
679
|
#
|
676
680
|
class CreateModelCustomizationJobRequest < Struct.new(
|
@@ -687,7 +691,8 @@ module Aws::Bedrock
|
|
687
691
|
:validation_data_config,
|
688
692
|
:output_data_config,
|
689
693
|
:hyper_parameters,
|
690
|
-
:vpc_config
|
694
|
+
:vpc_config,
|
695
|
+
:customization_config)
|
691
696
|
SENSITIVE = []
|
692
697
|
include Aws::Structure
|
693
698
|
end
|
@@ -825,7 +830,7 @@ module Aws::Bedrock
|
|
825
830
|
#
|
826
831
|
#
|
827
832
|
#
|
828
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
833
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc
|
829
834
|
# @return [Types::VpcConfig]
|
830
835
|
#
|
831
836
|
# @!attribute [rw] timeout_duration_in_hours
|
@@ -1018,6 +1023,29 @@ module Aws::Bedrock
|
|
1018
1023
|
include Aws::Structure
|
1019
1024
|
end
|
1020
1025
|
|
1026
|
+
# A model customization configuration
|
1027
|
+
#
|
1028
|
+
# @note CustomizationConfig is a union - when making an API calls you must set exactly one of the members.
|
1029
|
+
#
|
1030
|
+
# @note CustomizationConfig is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of CustomizationConfig corresponding to the set member.
|
1031
|
+
#
|
1032
|
+
# @!attribute [rw] distillation_config
|
1033
|
+
# The distillation configuration for the custom model.
|
1034
|
+
# @return [Types::DistillationConfig]
|
1035
|
+
#
|
1036
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomizationConfig AWS API Documentation
|
1037
|
+
#
|
1038
|
+
class CustomizationConfig < Struct.new(
|
1039
|
+
:distillation_config,
|
1040
|
+
:unknown)
|
1041
|
+
SENSITIVE = []
|
1042
|
+
include Aws::Structure
|
1043
|
+
include Aws::Structure::Union
|
1044
|
+
|
1045
|
+
class DistillationConfig < CustomizationConfig; end
|
1046
|
+
class Unknown < CustomizationConfig; end
|
1047
|
+
end
|
1048
|
+
|
1021
1049
|
# @!attribute [rw] model_identifier
|
1022
1050
|
# Name of the model to delete.
|
1023
1051
|
# @return [String]
|
@@ -1116,6 +1144,21 @@ module Aws::Bedrock
|
|
1116
1144
|
#
|
1117
1145
|
class DeleteProvisionedModelThroughputResponse < Aws::EmptyStructure; end
|
1118
1146
|
|
1147
|
+
# Settings for distilling a foundation model into a smaller and more
|
1148
|
+
# efficient model.
|
1149
|
+
#
|
1150
|
+
# @!attribute [rw] teacher_model_config
|
1151
|
+
# The teacher model configuration.
|
1152
|
+
# @return [Types::TeacherModelConfig]
|
1153
|
+
#
|
1154
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DistillationConfig AWS API Documentation
|
1155
|
+
#
|
1156
|
+
class DistillationConfig < Struct.new(
|
1157
|
+
:teacher_model_config)
|
1158
|
+
SENSITIVE = []
|
1159
|
+
include Aws::Structure
|
1160
|
+
end
|
1161
|
+
|
1119
1162
|
# Contains the ARN of the Amazon Bedrock model or [inference profile][1]
|
1120
1163
|
# specified in your evaluation job. Each Amazon Bedrock model supports
|
1121
1164
|
# different `inferenceParams`. To learn more about supported inference
|
@@ -1811,6 +1854,10 @@ module Aws::Bedrock
|
|
1811
1854
|
# Creation time of the model.
|
1812
1855
|
# @return [Time]
|
1813
1856
|
#
|
1857
|
+
# @!attribute [rw] customization_config
|
1858
|
+
# The customization configuration for the custom model.
|
1859
|
+
# @return [Types::CustomizationConfig]
|
1860
|
+
#
|
1814
1861
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModelResponse AWS API Documentation
|
1815
1862
|
#
|
1816
1863
|
class GetCustomModelResponse < Struct.new(
|
@@ -1827,7 +1874,8 @@ module Aws::Bedrock
|
|
1827
1874
|
:output_data_config,
|
1828
1875
|
:training_metrics,
|
1829
1876
|
:validation_metrics,
|
1830
|
-
:creation_time
|
1877
|
+
:creation_time,
|
1878
|
+
:customization_config)
|
1831
1879
|
SENSITIVE = []
|
1832
1880
|
include Aws::Structure
|
1833
1881
|
end
|
@@ -2394,6 +2442,10 @@ module Aws::Bedrock
|
|
2394
2442
|
# VPC configuration for the custom model job.
|
2395
2443
|
# @return [Types::VpcConfig]
|
2396
2444
|
#
|
2445
|
+
# @!attribute [rw] customization_config
|
2446
|
+
# The customization configuration for the model customization job.
|
2447
|
+
# @return [Types::CustomizationConfig]
|
2448
|
+
#
|
2397
2449
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelCustomizationJobResponse AWS API Documentation
|
2398
2450
|
#
|
2399
2451
|
class GetModelCustomizationJobResponse < Struct.new(
|
@@ -2417,7 +2469,8 @@ module Aws::Bedrock
|
|
2417
2469
|
:output_model_kms_key_arn,
|
2418
2470
|
:training_metrics,
|
2419
2471
|
:validation_metrics,
|
2420
|
-
:vpc_config
|
2472
|
+
:vpc_config,
|
2473
|
+
:customization_config)
|
2421
2474
|
SENSITIVE = []
|
2422
2475
|
include Aws::Structure
|
2423
2476
|
end
|
@@ -2560,6 +2613,55 @@ module Aws::Bedrock
|
|
2560
2613
|
#
|
2561
2614
|
# @!attribute [rw] status
|
2562
2615
|
# The status of the batch inference job.
|
2616
|
+
#
|
2617
|
+
# The following statuses are possible:
|
2618
|
+
#
|
2619
|
+
# * Submitted – This job has been submitted to a queue for validation.
|
2620
|
+
#
|
2621
|
+
# * Validating – This job is being validated for the requirements
|
2622
|
+
# described in [Format and upload your batch inference data][1]. The
|
2623
|
+
# criteria include the following:
|
2624
|
+
#
|
2625
|
+
# * Your IAM service role has access to the Amazon S3 buckets
|
2626
|
+
# containing your files.
|
2627
|
+
#
|
2628
|
+
# * Your files are .jsonl files and each individual record is a JSON
|
2629
|
+
# object in the correct format. Note that validation doesn't
|
2630
|
+
# check if the `modelInput` value matches the request body for the
|
2631
|
+
# model.
|
2632
|
+
#
|
2633
|
+
# * Your files fulfill the requirements for file size and number of
|
2634
|
+
# records. For more information, see [Quotas for Amazon
|
2635
|
+
# Bedrock][2].
|
2636
|
+
# * Scheduled – This job has been validated and is now in a queue. The
|
2637
|
+
# job will automatically start when it reaches its turn.
|
2638
|
+
#
|
2639
|
+
# * Expired – This job timed out because it was scheduled but didn't
|
2640
|
+
# begin before the set timeout duration. Submit a new job request.
|
2641
|
+
#
|
2642
|
+
# * InProgress – This job has begun. You can start viewing the results
|
2643
|
+
# in the output S3 location.
|
2644
|
+
#
|
2645
|
+
# * Completed – This job has successfully completed. View the output
|
2646
|
+
# files in the output S3 location.
|
2647
|
+
#
|
2648
|
+
# * PartiallyCompleted – This job has partially completed. Not all of
|
2649
|
+
# your records could be processed in time. View the output files in
|
2650
|
+
# the output S3 location.
|
2651
|
+
#
|
2652
|
+
# * Failed – This job has failed. Check the failure message for any
|
2653
|
+
# further details. For further assistance, reach out to the [Amazon
|
2654
|
+
# Web Services Support Center][3].
|
2655
|
+
#
|
2656
|
+
# * Stopped – This job was stopped by a user.
|
2657
|
+
#
|
2658
|
+
# * Stopping – This job is being stopped by a user.
|
2659
|
+
#
|
2660
|
+
#
|
2661
|
+
#
|
2662
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html
|
2663
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html
|
2664
|
+
# [3]: https://console.aws.amazon.com/support/home/
|
2563
2665
|
# @return [String]
|
2564
2666
|
#
|
2565
2667
|
# @!attribute [rw] message
|
@@ -2594,7 +2696,7 @@ module Aws::Bedrock
|
|
2594
2696
|
#
|
2595
2697
|
#
|
2596
2698
|
#
|
2597
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
2699
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc
|
2598
2700
|
# @return [Types::VpcConfig]
|
2599
2701
|
#
|
2600
2702
|
# @!attribute [rw] timeout_duration_in_hours
|
@@ -3880,6 +3982,54 @@ module Aws::Bedrock
|
|
3880
3982
|
include Aws::Structure
|
3881
3983
|
end
|
3882
3984
|
|
3985
|
+
# A storage location for invocation logs.
|
3986
|
+
#
|
3987
|
+
# @note InvocationLogSource is a union - when making an API calls you must set exactly one of the members.
|
3988
|
+
#
|
3989
|
+
# @note InvocationLogSource is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of InvocationLogSource corresponding to the set member.
|
3990
|
+
#
|
3991
|
+
# @!attribute [rw] s3_uri
|
3992
|
+
# The URI of an invocation log in a bucket.
|
3993
|
+
# @return [String]
|
3994
|
+
#
|
3995
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InvocationLogSource AWS API Documentation
|
3996
|
+
#
|
3997
|
+
class InvocationLogSource < Struct.new(
|
3998
|
+
:s3_uri,
|
3999
|
+
:unknown)
|
4000
|
+
SENSITIVE = []
|
4001
|
+
include Aws::Structure
|
4002
|
+
include Aws::Structure::Union
|
4003
|
+
|
4004
|
+
class S3Uri < InvocationLogSource; end
|
4005
|
+
class Unknown < InvocationLogSource; end
|
4006
|
+
end
|
4007
|
+
|
4008
|
+
# Settings for using invocation logs to customize a model.
|
4009
|
+
#
|
4010
|
+
# @!attribute [rw] use_prompt_response
|
4011
|
+
# Whether to use the model's response for training, or just the
|
4012
|
+
# prompt. The default value is `False`.
|
4013
|
+
# @return [Boolean]
|
4014
|
+
#
|
4015
|
+
# @!attribute [rw] invocation_log_source
|
4016
|
+
# The source of the invocation logs.
|
4017
|
+
# @return [Types::InvocationLogSource]
|
4018
|
+
#
|
4019
|
+
# @!attribute [rw] request_metadata_filters
|
4020
|
+
# Rules for filtering invocation logs based on request metadata.
|
4021
|
+
# @return [Types::RequestMetadataFilters]
|
4022
|
+
#
|
4023
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/InvocationLogsConfig AWS API Documentation
|
4024
|
+
#
|
4025
|
+
class InvocationLogsConfig < Struct.new(
|
4026
|
+
:use_prompt_response,
|
4027
|
+
:invocation_log_source,
|
4028
|
+
:request_metadata_filters)
|
4029
|
+
SENSITIVE = []
|
4030
|
+
include Aws::Structure
|
4031
|
+
end
|
4032
|
+
|
3883
4033
|
# Contains configuration details of the inference for knowledge base
|
3884
4034
|
# retrieval and response generation.
|
3885
4035
|
#
|
@@ -4655,6 +4805,55 @@ module Aws::Bedrock
|
|
4655
4805
|
# @!attribute [rw] status_equals
|
4656
4806
|
# Specify a status to filter for batch inference jobs whose statuses
|
4657
4807
|
# match the string you specify.
|
4808
|
+
#
|
4809
|
+
# The following statuses are possible:
|
4810
|
+
#
|
4811
|
+
# * Submitted – This job has been submitted to a queue for validation.
|
4812
|
+
#
|
4813
|
+
# * Validating – This job is being validated for the requirements
|
4814
|
+
# described in [Format and upload your batch inference data][1]. The
|
4815
|
+
# criteria include the following:
|
4816
|
+
#
|
4817
|
+
# * Your IAM service role has access to the Amazon S3 buckets
|
4818
|
+
# containing your files.
|
4819
|
+
#
|
4820
|
+
# * Your files are .jsonl files and each individual record is a JSON
|
4821
|
+
# object in the correct format. Note that validation doesn't
|
4822
|
+
# check if the `modelInput` value matches the request body for the
|
4823
|
+
# model.
|
4824
|
+
#
|
4825
|
+
# * Your files fulfill the requirements for file size and number of
|
4826
|
+
# records. For more information, see [Quotas for Amazon
|
4827
|
+
# Bedrock][2].
|
4828
|
+
# * Scheduled – This job has been validated and is now in a queue. The
|
4829
|
+
# job will automatically start when it reaches its turn.
|
4830
|
+
#
|
4831
|
+
# * Expired – This job timed out because it was scheduled but didn't
|
4832
|
+
# begin before the set timeout duration. Submit a new job request.
|
4833
|
+
#
|
4834
|
+
# * InProgress – This job has begun. You can start viewing the results
|
4835
|
+
# in the output S3 location.
|
4836
|
+
#
|
4837
|
+
# * Completed – This job has successfully completed. View the output
|
4838
|
+
# files in the output S3 location.
|
4839
|
+
#
|
4840
|
+
# * PartiallyCompleted – This job has partially completed. Not all of
|
4841
|
+
# your records could be processed in time. View the output files in
|
4842
|
+
# the output S3 location.
|
4843
|
+
#
|
4844
|
+
# * Failed – This job has failed. Check the failure message for any
|
4845
|
+
# further details. For further assistance, reach out to the [Amazon
|
4846
|
+
# Web Services Support Center][3].
|
4847
|
+
#
|
4848
|
+
# * Stopped – This job was stopped by a user.
|
4849
|
+
#
|
4850
|
+
# * Stopping – This job is being stopped by a user.
|
4851
|
+
#
|
4852
|
+
#
|
4853
|
+
#
|
4854
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html
|
4855
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html
|
4856
|
+
# [3]: https://console.aws.amazon.com/support/home/
|
4658
4857
|
# @return [String]
|
4659
4858
|
#
|
4660
4859
|
# @!attribute [rw] name_contains
|
@@ -4852,6 +5051,10 @@ module Aws::Bedrock
|
|
4852
5051
|
# Set to include embeddings data in the log delivery.
|
4853
5052
|
# @return [Boolean]
|
4854
5053
|
#
|
5054
|
+
# @!attribute [rw] video_data_delivery_enabled
|
5055
|
+
# Set to include video data in the log delivery.
|
5056
|
+
# @return [Boolean]
|
5057
|
+
#
|
4855
5058
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/LoggingConfig AWS API Documentation
|
4856
5059
|
#
|
4857
5060
|
class LoggingConfig < Struct.new(
|
@@ -4859,7 +5062,8 @@ module Aws::Bedrock
|
|
4859
5062
|
:s3_config,
|
4860
5063
|
:text_data_delivery_enabled,
|
4861
5064
|
:image_data_delivery_enabled,
|
4862
|
-
:embedding_data_delivery_enabled
|
5065
|
+
:embedding_data_delivery_enabled,
|
5066
|
+
:video_data_delivery_enabled)
|
4863
5067
|
SENSITIVE = []
|
4864
5068
|
include Aws::Structure
|
4865
5069
|
end
|
@@ -5214,6 +5418,55 @@ module Aws::Bedrock
|
|
5214
5418
|
#
|
5215
5419
|
# @!attribute [rw] status
|
5216
5420
|
# The status of the batch inference job.
|
5421
|
+
#
|
5422
|
+
# The following statuses are possible:
|
5423
|
+
#
|
5424
|
+
# * Submitted – This job has been submitted to a queue for validation.
|
5425
|
+
#
|
5426
|
+
# * Validating – This job is being validated for the requirements
|
5427
|
+
# described in [Format and upload your batch inference data][1]. The
|
5428
|
+
# criteria include the following:
|
5429
|
+
#
|
5430
|
+
# * Your IAM service role has access to the Amazon S3 buckets
|
5431
|
+
# containing your files.
|
5432
|
+
#
|
5433
|
+
# * Your files are .jsonl files and each individual record is a JSON
|
5434
|
+
# object in the correct format. Note that validation doesn't
|
5435
|
+
# check if the `modelInput` value matches the request body for the
|
5436
|
+
# model.
|
5437
|
+
#
|
5438
|
+
# * Your files fulfill the requirements for file size and number of
|
5439
|
+
# records. For more information, see [Quotas for Amazon
|
5440
|
+
# Bedrock][2].
|
5441
|
+
# * Scheduled – This job has been validated and is now in a queue. The
|
5442
|
+
# job will automatically start when it reaches its turn.
|
5443
|
+
#
|
5444
|
+
# * Expired – This job timed out because it was scheduled but didn't
|
5445
|
+
# begin before the set timeout duration. Submit a new job request.
|
5446
|
+
#
|
5447
|
+
# * InProgress – This job has begun. You can start viewing the results
|
5448
|
+
# in the output S3 location.
|
5449
|
+
#
|
5450
|
+
# * Completed – This job has successfully completed. View the output
|
5451
|
+
# files in the output S3 location.
|
5452
|
+
#
|
5453
|
+
# * PartiallyCompleted – This job has partially completed. Not all of
|
5454
|
+
# your records could be processed in time. View the output files in
|
5455
|
+
# the output S3 location.
|
5456
|
+
#
|
5457
|
+
# * Failed – This job has failed. Check the failure message for any
|
5458
|
+
# further details. For further assistance, reach out to the [Amazon
|
5459
|
+
# Web Services Support Center][3].
|
5460
|
+
#
|
5461
|
+
# * Stopped – This job was stopped by a user.
|
5462
|
+
#
|
5463
|
+
# * Stopping – This job is being stopped by a user.
|
5464
|
+
#
|
5465
|
+
#
|
5466
|
+
#
|
5467
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html
|
5468
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html
|
5469
|
+
# [3]: https://console.aws.amazon.com/support/home/
|
5217
5470
|
# @return [String]
|
5218
5471
|
#
|
5219
5472
|
# @!attribute [rw] message
|
@@ -5248,7 +5501,7 @@ module Aws::Bedrock
|
|
5248
5501
|
#
|
5249
5502
|
#
|
5250
5503
|
#
|
5251
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
5504
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc
|
5252
5505
|
# @return [Types::VpcConfig]
|
5253
5506
|
#
|
5254
5507
|
# @!attribute [rw] timeout_duration_in_hours
|
@@ -5480,6 +5733,70 @@ module Aws::Bedrock
|
|
5480
5733
|
class Unknown < RAGConfig; end
|
5481
5734
|
end
|
5482
5735
|
|
5736
|
+
# A mapping of a metadata key to a value that it should or should not
|
5737
|
+
# equal.
|
5738
|
+
#
|
5739
|
+
# @!attribute [rw] equals
|
5740
|
+
# Include results where the key equals the value.
|
5741
|
+
# @return [Hash<String,String>]
|
5742
|
+
#
|
5743
|
+
# @!attribute [rw] not_equals
|
5744
|
+
# Include results where the key does not equal the value.
|
5745
|
+
# @return [Hash<String,String>]
|
5746
|
+
#
|
5747
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/RequestMetadataBaseFilters AWS API Documentation
|
5748
|
+
#
|
5749
|
+
class RequestMetadataBaseFilters < Struct.new(
|
5750
|
+
:equals,
|
5751
|
+
:not_equals)
|
5752
|
+
SENSITIVE = [:equals, :not_equals]
|
5753
|
+
include Aws::Structure
|
5754
|
+
end
|
5755
|
+
|
5756
|
+
# Rules for filtering invocation logs. A filter can be a mapping of a
|
5757
|
+
# metadata key to a value that it should or should not equal (a base
|
5758
|
+
# filter), or a list of base filters that are all applied with `AND` or
|
5759
|
+
# `OR` logical operators
|
5760
|
+
#
|
5761
|
+
# @note RequestMetadataFilters is a union - when making an API calls you must set exactly one of the members.
|
5762
|
+
#
|
5763
|
+
# @note RequestMetadataFilters is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RequestMetadataFilters corresponding to the set member.
|
5764
|
+
#
|
5765
|
+
# @!attribute [rw] equals
|
5766
|
+
# Include results where the key equals the value.
|
5767
|
+
# @return [Hash<String,String>]
|
5768
|
+
#
|
5769
|
+
# @!attribute [rw] not_equals
|
5770
|
+
# Include results where the key does not equal the value.
|
5771
|
+
# @return [Hash<String,String>]
|
5772
|
+
#
|
5773
|
+
# @!attribute [rw] and_all
|
5774
|
+
# Include results where all of the based filters match.
|
5775
|
+
# @return [Array<Types::RequestMetadataBaseFilters>]
|
5776
|
+
#
|
5777
|
+
# @!attribute [rw] or_all
|
5778
|
+
# Include results where any of the base filters match.
|
5779
|
+
# @return [Array<Types::RequestMetadataBaseFilters>]
|
5780
|
+
#
|
5781
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/RequestMetadataFilters AWS API Documentation
|
5782
|
+
#
|
5783
|
+
class RequestMetadataFilters < Struct.new(
|
5784
|
+
:equals,
|
5785
|
+
:not_equals,
|
5786
|
+
:and_all,
|
5787
|
+
:or_all,
|
5788
|
+
:unknown)
|
5789
|
+
SENSITIVE = [:equals, :not_equals]
|
5790
|
+
include Aws::Structure
|
5791
|
+
include Aws::Structure::Union
|
5792
|
+
|
5793
|
+
class Equals < RequestMetadataFilters; end
|
5794
|
+
class NotEquals < RequestMetadataFilters; end
|
5795
|
+
class AndAll < RequestMetadataFilters; end
|
5796
|
+
class OrAll < RequestMetadataFilters; end
|
5797
|
+
class Unknown < RequestMetadataFilters; end
|
5798
|
+
end
|
5799
|
+
|
5483
5800
|
# The specified resource Amazon Resource Name (ARN) was not found. Check
|
5484
5801
|
# the Amazon Resource Name (ARN) and try your request again.
|
5485
5802
|
#
|
@@ -5869,6 +6186,26 @@ module Aws::Bedrock
|
|
5869
6186
|
#
|
5870
6187
|
class TagResourceResponse < Aws::EmptyStructure; end
|
5871
6188
|
|
6189
|
+
# Details about a teacher model used for model customization.
|
6190
|
+
#
|
6191
|
+
# @!attribute [rw] teacher_model_identifier
|
6192
|
+
# The identifier of the teacher model.
|
6193
|
+
# @return [String]
|
6194
|
+
#
|
6195
|
+
# @!attribute [rw] max_response_length_for_inference
|
6196
|
+
# The maximum number of tokens requested when the customization job
|
6197
|
+
# invokes the teacher model.
|
6198
|
+
# @return [Integer]
|
6199
|
+
#
|
6200
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/TeacherModelConfig AWS API Documentation
|
6201
|
+
#
|
6202
|
+
class TeacherModelConfig < Struct.new(
|
6203
|
+
:teacher_model_identifier,
|
6204
|
+
:max_response_length_for_inference)
|
6205
|
+
SENSITIVE = []
|
6206
|
+
include Aws::Structure
|
6207
|
+
end
|
6208
|
+
|
5872
6209
|
# The configuration details for text generation using a language model
|
5873
6210
|
# via the `RetrieveAndGenerate` function.
|
5874
6211
|
#
|
@@ -5953,10 +6290,15 @@ module Aws::Bedrock
|
|
5953
6290
|
# The S3 URI where the training data is stored.
|
5954
6291
|
# @return [String]
|
5955
6292
|
#
|
6293
|
+
# @!attribute [rw] invocation_logs_config
|
6294
|
+
# Settings for using invocation logs to customize a model.
|
6295
|
+
# @return [Types::InvocationLogsConfig]
|
6296
|
+
#
|
5956
6297
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/TrainingDataConfig AWS API Documentation
|
5957
6298
|
#
|
5958
6299
|
class TrainingDataConfig < Struct.new(
|
5959
|
-
:s3_uri
|
6300
|
+
:s3_uri,
|
6301
|
+
:invocation_logs_config)
|
5960
6302
|
SENSITIVE = []
|
5961
6303
|
include Aws::Structure
|
5962
6304
|
end
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -525,7 +525,7 @@ module Aws
|
|
525
525
|
role_arn: ::String,
|
526
526
|
?client_request_token: ::String,
|
527
527
|
base_model_identifier: ::String,
|
528
|
-
?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING"),
|
528
|
+
?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION"),
|
529
529
|
?custom_model_kms_key_id: ::String,
|
530
530
|
?job_tags: Array[
|
531
531
|
{
|
@@ -540,7 +540,29 @@ module Aws
|
|
540
540
|
},
|
541
541
|
],
|
542
542
|
training_data_config: {
|
543
|
-
s3_uri: ::String
|
543
|
+
s3_uri: ::String?,
|
544
|
+
invocation_logs_config: {
|
545
|
+
use_prompt_response: bool?,
|
546
|
+
invocation_log_source: {
|
547
|
+
s3_uri: ::String?
|
548
|
+
},
|
549
|
+
request_metadata_filters: {
|
550
|
+
equals: Hash[::String, ::String]?,
|
551
|
+
not_equals: Hash[::String, ::String]?,
|
552
|
+
and_all: Array[
|
553
|
+
{
|
554
|
+
equals: Hash[::String, ::String]?,
|
555
|
+
not_equals: Hash[::String, ::String]?
|
556
|
+
},
|
557
|
+
]?,
|
558
|
+
or_all: Array[
|
559
|
+
{
|
560
|
+
equals: Hash[::String, ::String]?,
|
561
|
+
not_equals: Hash[::String, ::String]?
|
562
|
+
},
|
563
|
+
]?
|
564
|
+
}?
|
565
|
+
}?
|
544
566
|
},
|
545
567
|
?validation_data_config: {
|
546
568
|
validators: Array[
|
@@ -552,10 +574,18 @@ module Aws
|
|
552
574
|
output_data_config: {
|
553
575
|
s3_uri: ::String
|
554
576
|
},
|
555
|
-
hyper_parameters: Hash[::String, ::String],
|
577
|
+
?hyper_parameters: Hash[::String, ::String],
|
556
578
|
?vpc_config: {
|
557
579
|
subnet_ids: Array[::String],
|
558
580
|
security_group_ids: Array[::String]
|
581
|
+
},
|
582
|
+
?customization_config: {
|
583
|
+
distillation_config: {
|
584
|
+
teacher_model_config: {
|
585
|
+
teacher_model_identifier: ::String,
|
586
|
+
max_response_length_for_inference: ::Integer?
|
587
|
+
}
|
588
|
+
}?
|
559
589
|
}
|
560
590
|
) -> _CreateModelCustomizationJobResponseSuccess
|
561
591
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateModelCustomizationJobResponseSuccess
|
@@ -714,7 +744,7 @@ module Aws
|
|
714
744
|
def job_name: () -> ::String
|
715
745
|
def job_arn: () -> ::String
|
716
746
|
def base_model_arn: () -> ::String
|
717
|
-
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING")
|
747
|
+
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
718
748
|
def model_kms_key_arn: () -> ::String
|
719
749
|
def hyper_parameters: () -> ::Hash[::String, ::String]
|
720
750
|
def training_data_config: () -> Types::TrainingDataConfig
|
@@ -723,6 +753,7 @@ module Aws
|
|
723
753
|
def training_metrics: () -> Types::TrainingMetrics
|
724
754
|
def validation_metrics: () -> ::Array[Types::ValidatorMetric]
|
725
755
|
def creation_time: () -> ::Time
|
756
|
+
def customization_config: () -> Types::CustomizationConfig
|
726
757
|
end
|
727
758
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_custom_model-instance_method
|
728
759
|
def get_custom_model: (
|
@@ -865,11 +896,12 @@ module Aws
|
|
865
896
|
def training_data_config: () -> Types::TrainingDataConfig
|
866
897
|
def validation_data_config: () -> Types::ValidationDataConfig
|
867
898
|
def output_data_config: () -> Types::OutputDataConfig
|
868
|
-
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING")
|
899
|
+
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
869
900
|
def output_model_kms_key_arn: () -> ::String
|
870
901
|
def training_metrics: () -> Types::TrainingMetrics
|
871
902
|
def validation_metrics: () -> ::Array[Types::ValidatorMetric]
|
872
903
|
def vpc_config: () -> Types::VpcConfig
|
904
|
+
def customization_config: () -> Types::CustomizationConfig
|
873
905
|
end
|
874
906
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_model_customization_job-instance_method
|
875
907
|
def get_model_customization_job: (
|
@@ -1000,7 +1032,7 @@ module Aws
|
|
1000
1032
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_foundation_models-instance_method
|
1001
1033
|
def list_foundation_models: (
|
1002
1034
|
?by_provider: ::String,
|
1003
|
-
?by_customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING"),
|
1035
|
+
?by_customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION"),
|
1004
1036
|
?by_output_modality: ("TEXT" | "IMAGE" | "EMBEDDING"),
|
1005
1037
|
?by_inference_type: ("ON_DEMAND" | "PROVISIONED")
|
1006
1038
|
) -> _ListFoundationModelsResponseSuccess
|
@@ -1172,7 +1204,8 @@ module Aws
|
|
1172
1204
|
}?,
|
1173
1205
|
text_data_delivery_enabled: bool?,
|
1174
1206
|
image_data_delivery_enabled: bool?,
|
1175
|
-
embedding_data_delivery_enabled: bool
|
1207
|
+
embedding_data_delivery_enabled: bool?,
|
1208
|
+
video_data_delivery_enabled: bool?
|
1176
1209
|
}
|
1177
1210
|
) -> _PutModelInvocationLoggingConfigurationResponseSuccess
|
1178
1211
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutModelInvocationLoggingConfigurationResponseSuccess
|