aws-sdk-bedrock 1.13.0 → 1.15.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 +594 -40
- data/lib/aws-sdk-bedrock/client_api.rb +288 -1
- data/lib/aws-sdk-bedrock/endpoints.rb +98 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +14 -0
- data/lib/aws-sdk-bedrock/types.rb +816 -19
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +143 -1
- data/sig/types.rbs +189 -0
- metadata +4 -4
@@ -428,7 +428,7 @@ module Aws::Bedrock
|
|
428
428
|
# API operation for creating and managing Amazon Bedrock automatic model
|
429
429
|
# evaluation jobs and model evaluation jobs that use human workers. To
|
430
430
|
# learn more about the requirements for creating a model evaluation job
|
431
|
-
# see, [Model
|
431
|
+
# see, [Model evaluation][1].
|
432
432
|
#
|
433
433
|
#
|
434
434
|
#
|
@@ -801,6 +801,78 @@ module Aws::Bedrock
|
|
801
801
|
req.send_request(options)
|
802
802
|
end
|
803
803
|
|
804
|
+
# Copies a model to another region so that it can be used there. For
|
805
|
+
# more information, see [Copy models to be used in other regions][1] in
|
806
|
+
# the [Amazon Bedrock User Guide][2].
|
807
|
+
#
|
808
|
+
#
|
809
|
+
#
|
810
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/copy-model.html
|
811
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
812
|
+
#
|
813
|
+
# @option params [required, String] :source_model_arn
|
814
|
+
# The Amazon Resource Name (ARN) of the model to be copied.
|
815
|
+
#
|
816
|
+
# @option params [required, String] :target_model_name
|
817
|
+
# A name for the copied model.
|
818
|
+
#
|
819
|
+
# @option params [String] :model_kms_key_id
|
820
|
+
# The ARN of the KMS key that you use to encrypt the model copy.
|
821
|
+
#
|
822
|
+
# @option params [Array<Types::Tag>] :target_model_tags
|
823
|
+
# Tags to associate with the target model. For more information, see
|
824
|
+
# [Tag resources][1] in the [Amazon Bedrock User Guide][2].
|
825
|
+
#
|
826
|
+
#
|
827
|
+
#
|
828
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
|
829
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
830
|
+
#
|
831
|
+
# @option params [String] :client_request_token
|
832
|
+
# A unique, case-sensitive identifier to ensure that the API request
|
833
|
+
# completes no more than one time. If this token matches a previous
|
834
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
835
|
+
# error. For more information, see [Ensuring idempotency][1].
|
836
|
+
#
|
837
|
+
# **A suitable default value is auto-generated.** You should normally
|
838
|
+
# not need to pass this option.**
|
839
|
+
#
|
840
|
+
#
|
841
|
+
#
|
842
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
843
|
+
#
|
844
|
+
# @return [Types::CreateModelCopyJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
845
|
+
#
|
846
|
+
# * {Types::CreateModelCopyJobResponse#job_arn #job_arn} => String
|
847
|
+
#
|
848
|
+
# @example Request syntax with placeholder values
|
849
|
+
#
|
850
|
+
# resp = client.create_model_copy_job({
|
851
|
+
# source_model_arn: "ModelArn", # required
|
852
|
+
# target_model_name: "CustomModelName", # required
|
853
|
+
# model_kms_key_id: "KmsKeyId",
|
854
|
+
# target_model_tags: [
|
855
|
+
# {
|
856
|
+
# key: "TagKey", # required
|
857
|
+
# value: "TagValue", # required
|
858
|
+
# },
|
859
|
+
# ],
|
860
|
+
# client_request_token: "IdempotencyToken",
|
861
|
+
# })
|
862
|
+
#
|
863
|
+
# @example Response structure
|
864
|
+
#
|
865
|
+
# resp.job_arn #=> String
|
866
|
+
#
|
867
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelCopyJob AWS API Documentation
|
868
|
+
#
|
869
|
+
# @overload create_model_copy_job(params = {})
|
870
|
+
# @param [Hash] params ({})
|
871
|
+
def create_model_copy_job(params = {}, options = {})
|
872
|
+
req = build_request(:create_model_copy_job, params)
|
873
|
+
req.send_request(options)
|
874
|
+
end
|
875
|
+
|
804
876
|
# Creates a fine-tuning job to customize a base model.
|
805
877
|
#
|
806
878
|
# You specify the base foundation model and the location of the training
|
@@ -817,13 +889,14 @@ module Aws::Bedrock
|
|
817
889
|
# monitor a job, use the `GetModelCustomizationJob` operation to
|
818
890
|
# retrieve the job status.
|
819
891
|
#
|
820
|
-
# For more information, see [Custom models][2] in the Amazon Bedrock
|
821
|
-
# User Guide.
|
892
|
+
# For more information, see [Custom models][2] in the [Amazon Bedrock
|
893
|
+
# User Guide][3].
|
822
894
|
#
|
823
895
|
#
|
824
896
|
#
|
825
897
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-prepare.html
|
826
898
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
899
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
827
900
|
#
|
828
901
|
# @option params [required, String] :job_name
|
829
902
|
# A name for the fine-tuning job.
|
@@ -950,15 +1023,124 @@ module Aws::Bedrock
|
|
950
1023
|
req.send_request(options)
|
951
1024
|
end
|
952
1025
|
|
1026
|
+
# Creates a job to invoke a model on multiple prompts (batch inference).
|
1027
|
+
# Format your data according to [Format your inference data][1] and
|
1028
|
+
# upload it to an Amazon S3 bucket. For more information, see [Create a
|
1029
|
+
# batch inference job][2].
|
1030
|
+
#
|
1031
|
+
# The response returns a `jobArn` that you can use to stop or get
|
1032
|
+
# details about the job. You can check the status of the job by sending
|
1033
|
+
# a [GetModelCustomizationJob][3] request.
|
1034
|
+
#
|
1035
|
+
#
|
1036
|
+
#
|
1037
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-prerq.html#batch-inference-data
|
1038
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-create.html
|
1039
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelCustomizationJob.html
|
1040
|
+
#
|
1041
|
+
# @option params [required, String] :job_name
|
1042
|
+
# A name to give the batch inference job.
|
1043
|
+
#
|
1044
|
+
# @option params [required, String] :role_arn
|
1045
|
+
# The Amazon Resource Name (ARN) of the service role with permissions to
|
1046
|
+
# carry out and manage batch inference. You can use the console to
|
1047
|
+
# create a default service role or follow the steps at [Create a service
|
1048
|
+
# role for batch inference][1].
|
1049
|
+
#
|
1050
|
+
#
|
1051
|
+
#
|
1052
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html
|
1053
|
+
#
|
1054
|
+
# @option params [String] :client_request_token
|
1055
|
+
# A unique, case-sensitive identifier to ensure that the API request
|
1056
|
+
# completes no more than one time. If this token matches a previous
|
1057
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
1058
|
+
# error. For more information, see [Ensuring idempotency][1].
|
1059
|
+
#
|
1060
|
+
# **A suitable default value is auto-generated.** You should normally
|
1061
|
+
# not need to pass this option.**
|
1062
|
+
#
|
1063
|
+
#
|
1064
|
+
#
|
1065
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
1066
|
+
#
|
1067
|
+
# @option params [required, String] :model_id
|
1068
|
+
# The unique identifier of the foundation model to use for the batch
|
1069
|
+
# inference job.
|
1070
|
+
#
|
1071
|
+
# @option params [required, Types::ModelInvocationJobInputDataConfig] :input_data_config
|
1072
|
+
# Details about the location of the input to the batch inference job.
|
1073
|
+
#
|
1074
|
+
# @option params [required, Types::ModelInvocationJobOutputDataConfig] :output_data_config
|
1075
|
+
# Details about the location of the output of the batch inference job.
|
1076
|
+
#
|
1077
|
+
# @option params [Integer] :timeout_duration_in_hours
|
1078
|
+
# The number of hours after which to force the batch inference job to
|
1079
|
+
# time out.
|
1080
|
+
#
|
1081
|
+
# @option params [Array<Types::Tag>] :tags
|
1082
|
+
# Any tags to associate with the batch inference job. For more
|
1083
|
+
# information, see [Tagging Amazon Bedrock resources][1].
|
1084
|
+
#
|
1085
|
+
#
|
1086
|
+
#
|
1087
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
|
1088
|
+
#
|
1089
|
+
# @return [Types::CreateModelInvocationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1090
|
+
#
|
1091
|
+
# * {Types::CreateModelInvocationJobResponse#job_arn #job_arn} => String
|
1092
|
+
#
|
1093
|
+
# @example Request syntax with placeholder values
|
1094
|
+
#
|
1095
|
+
# resp = client.create_model_invocation_job({
|
1096
|
+
# job_name: "ModelInvocationJobName", # required
|
1097
|
+
# role_arn: "RoleArn", # required
|
1098
|
+
# client_request_token: "ModelInvocationIdempotencyToken",
|
1099
|
+
# model_id: "ModelId", # required
|
1100
|
+
# input_data_config: { # required
|
1101
|
+
# s3_input_data_config: {
|
1102
|
+
# s3_input_format: "JSONL", # accepts JSONL
|
1103
|
+
# s3_uri: "S3Uri", # required
|
1104
|
+
# },
|
1105
|
+
# },
|
1106
|
+
# output_data_config: { # required
|
1107
|
+
# s3_output_data_config: {
|
1108
|
+
# s3_uri: "S3Uri", # required
|
1109
|
+
# s3_encryption_key_id: "KmsKeyId",
|
1110
|
+
# },
|
1111
|
+
# },
|
1112
|
+
# timeout_duration_in_hours: 1,
|
1113
|
+
# tags: [
|
1114
|
+
# {
|
1115
|
+
# key: "TagKey", # required
|
1116
|
+
# value: "TagValue", # required
|
1117
|
+
# },
|
1118
|
+
# ],
|
1119
|
+
# })
|
1120
|
+
#
|
1121
|
+
# @example Response structure
|
1122
|
+
#
|
1123
|
+
# resp.job_arn #=> String
|
1124
|
+
#
|
1125
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelInvocationJob AWS API Documentation
|
1126
|
+
#
|
1127
|
+
# @overload create_model_invocation_job(params = {})
|
1128
|
+
# @param [Hash] params ({})
|
1129
|
+
def create_model_invocation_job(params = {}, options = {})
|
1130
|
+
req = build_request(:create_model_invocation_job, params)
|
1131
|
+
req.send_request(options)
|
1132
|
+
end
|
1133
|
+
|
953
1134
|
# Creates dedicated throughput for a base or custom model with the model
|
954
1135
|
# units and for the duration that you specify. For pricing details, see
|
955
1136
|
# [Amazon Bedrock Pricing][1]. For more information, see [Provisioned
|
956
|
-
# Throughput][2] in the Amazon Bedrock User Guide.
|
1137
|
+
# Throughput][2] in the [Amazon Bedrock User Guide][3].
|
957
1138
|
#
|
958
1139
|
#
|
959
1140
|
#
|
960
1141
|
# [1]: http://aws.amazon.com/bedrock/pricing/
|
961
1142
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
1143
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
962
1144
|
#
|
963
1145
|
# @option params [String] :client_request_token
|
964
1146
|
# A unique, case-sensitive identifier to ensure that the API request
|
@@ -984,7 +1166,7 @@ module Aws::Bedrock
|
|
984
1166
|
# center][1] to request MUs.
|
985
1167
|
#
|
986
1168
|
# For model unit quotas, see [Provisioned Throughput quotas][2] in the
|
987
|
-
# Amazon Bedrock User Guide.
|
1169
|
+
# [Amazon Bedrock User Guide][3].
|
988
1170
|
#
|
989
1171
|
# For more information about what an MU specifies, contact your Amazon
|
990
1172
|
# Web Services account manager.
|
@@ -993,6 +1175,7 @@ module Aws::Bedrock
|
|
993
1175
|
#
|
994
1176
|
# [1]: https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase
|
995
1177
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html#prov-thru-quotas
|
1178
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
996
1179
|
#
|
997
1180
|
# @option params [required, String] :provisioned_model_name
|
998
1181
|
# The name for this Provisioned Throughput.
|
@@ -1001,12 +1184,13 @@ module Aws::Bedrock
|
|
1001
1184
|
# The Amazon Resource Name (ARN) or name of the model to associate with
|
1002
1185
|
# this Provisioned Throughput. For a list of models for which you can
|
1003
1186
|
# purchase Provisioned Throughput, see [Amazon Bedrock model IDs for
|
1004
|
-
# purchasing Provisioned Throughput][1] in the Amazon Bedrock User
|
1005
|
-
# Guide.
|
1187
|
+
# purchasing Provisioned Throughput][1] in the [Amazon Bedrock User
|
1188
|
+
# Guide][2].
|
1006
1189
|
#
|
1007
1190
|
#
|
1008
1191
|
#
|
1009
1192
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#prov-throughput-models
|
1193
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1010
1194
|
#
|
1011
1195
|
# @option params [String] :commitment_duration
|
1012
1196
|
# The commitment duration requested for the Provisioned Throughput.
|
@@ -1015,11 +1199,12 @@ module Aws::Bedrock
|
|
1015
1199
|
#
|
1016
1200
|
# Custom models support all levels of commitment. To see which base
|
1017
1201
|
# models support no commitment, see [Supported regions and models for
|
1018
|
-
# Provisioned Throughput][1] in the Amazon Bedrock User Guide
|
1202
|
+
# Provisioned Throughput][1] in the [Amazon Bedrock User Guide][2]
|
1019
1203
|
#
|
1020
1204
|
#
|
1021
1205
|
#
|
1022
1206
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/pt-supported.html
|
1207
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1023
1208
|
#
|
1024
1209
|
# @option params [Array<Types::Tag>] :tags
|
1025
1210
|
# Tags to associate with this Provisioned Throughput.
|
@@ -1058,11 +1243,12 @@ module Aws::Bedrock
|
|
1058
1243
|
end
|
1059
1244
|
|
1060
1245
|
# Deletes a custom model that you created earlier. For more information,
|
1061
|
-
# see [Custom models][1] in the Amazon Bedrock User Guide.
|
1246
|
+
# see [Custom models][1] in the [Amazon Bedrock User Guide][2].
|
1062
1247
|
#
|
1063
1248
|
#
|
1064
1249
|
#
|
1065
1250
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
1251
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1066
1252
|
#
|
1067
1253
|
# @option params [required, String] :model_identifier
|
1068
1254
|
# Name of the model to delete.
|
@@ -1133,11 +1319,12 @@ module Aws::Bedrock
|
|
1133
1319
|
|
1134
1320
|
# Deletes a Provisioned Throughput. You can't delete a Provisioned
|
1135
1321
|
# Throughput before the commitment term is over. For more information,
|
1136
|
-
# see [Provisioned Throughput][1] in the Amazon Bedrock User Guide.
|
1322
|
+
# see [Provisioned Throughput][1] in the [Amazon Bedrock User Guide][2].
|
1137
1323
|
#
|
1138
1324
|
#
|
1139
1325
|
#
|
1140
1326
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
1327
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1141
1328
|
#
|
1142
1329
|
# @option params [required, String] :provisioned_model_id
|
1143
1330
|
# The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
|
@@ -1161,11 +1348,12 @@ module Aws::Bedrock
|
|
1161
1348
|
|
1162
1349
|
# Get the properties associated with a Amazon Bedrock custom model that
|
1163
1350
|
# you have created.For more information, see [Custom models][1] in the
|
1164
|
-
# Amazon Bedrock User Guide.
|
1351
|
+
# [Amazon Bedrock User Guide][2].
|
1165
1352
|
#
|
1166
1353
|
#
|
1167
1354
|
#
|
1168
1355
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
1356
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1169
1357
|
#
|
1170
1358
|
# @option params [required, String] :model_identifier
|
1171
1359
|
# Name or Amazon Resource Name (ARN) of the custom model.
|
@@ -1224,11 +1412,11 @@ module Aws::Bedrock
|
|
1224
1412
|
|
1225
1413
|
# Retrieves the properties associated with a model evaluation job,
|
1226
1414
|
# including the status of the job. For more information, see [Model
|
1227
|
-
#
|
1415
|
+
# evaluation][1].
|
1228
1416
|
#
|
1229
1417
|
#
|
1230
1418
|
#
|
1231
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
1419
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation.html
|
1232
1420
|
#
|
1233
1421
|
# @option params [required, String] :job_identifier
|
1234
1422
|
# The Amazon Resource Name (ARN) of the model evaluation job.
|
@@ -1433,13 +1621,71 @@ module Aws::Bedrock
|
|
1433
1621
|
req.send_request(options)
|
1434
1622
|
end
|
1435
1623
|
|
1624
|
+
# Retrieves information about a model copy job. For more information,
|
1625
|
+
# see [Copy models to be used in other regions][1] in the [Amazon
|
1626
|
+
# Bedrock User Guide][2].
|
1627
|
+
#
|
1628
|
+
#
|
1629
|
+
#
|
1630
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/copy-model.html
|
1631
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1632
|
+
#
|
1633
|
+
# @option params [required, String] :job_arn
|
1634
|
+
# The Amazon Resource Name (ARN) of the model copy job.
|
1635
|
+
#
|
1636
|
+
# @return [Types::GetModelCopyJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1637
|
+
#
|
1638
|
+
# * {Types::GetModelCopyJobResponse#job_arn #job_arn} => String
|
1639
|
+
# * {Types::GetModelCopyJobResponse#status #status} => String
|
1640
|
+
# * {Types::GetModelCopyJobResponse#creation_time #creation_time} => Time
|
1641
|
+
# * {Types::GetModelCopyJobResponse#target_model_arn #target_model_arn} => String
|
1642
|
+
# * {Types::GetModelCopyJobResponse#target_model_name #target_model_name} => String
|
1643
|
+
# * {Types::GetModelCopyJobResponse#source_account_id #source_account_id} => String
|
1644
|
+
# * {Types::GetModelCopyJobResponse#source_model_arn #source_model_arn} => String
|
1645
|
+
# * {Types::GetModelCopyJobResponse#target_model_kms_key_arn #target_model_kms_key_arn} => String
|
1646
|
+
# * {Types::GetModelCopyJobResponse#target_model_tags #target_model_tags} => Array<Types::Tag>
|
1647
|
+
# * {Types::GetModelCopyJobResponse#failure_message #failure_message} => String
|
1648
|
+
# * {Types::GetModelCopyJobResponse#source_model_name #source_model_name} => String
|
1649
|
+
#
|
1650
|
+
# @example Request syntax with placeholder values
|
1651
|
+
#
|
1652
|
+
# resp = client.get_model_copy_job({
|
1653
|
+
# job_arn: "ModelCopyJobArn", # required
|
1654
|
+
# })
|
1655
|
+
#
|
1656
|
+
# @example Response structure
|
1657
|
+
#
|
1658
|
+
# resp.job_arn #=> String
|
1659
|
+
# resp.status #=> String, one of "InProgress", "Completed", "Failed"
|
1660
|
+
# resp.creation_time #=> Time
|
1661
|
+
# resp.target_model_arn #=> String
|
1662
|
+
# resp.target_model_name #=> String
|
1663
|
+
# resp.source_account_id #=> String
|
1664
|
+
# resp.source_model_arn #=> String
|
1665
|
+
# resp.target_model_kms_key_arn #=> String
|
1666
|
+
# resp.target_model_tags #=> Array
|
1667
|
+
# resp.target_model_tags[0].key #=> String
|
1668
|
+
# resp.target_model_tags[0].value #=> String
|
1669
|
+
# resp.failure_message #=> String
|
1670
|
+
# resp.source_model_name #=> String
|
1671
|
+
#
|
1672
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelCopyJob AWS API Documentation
|
1673
|
+
#
|
1674
|
+
# @overload get_model_copy_job(params = {})
|
1675
|
+
# @param [Hash] params ({})
|
1676
|
+
def get_model_copy_job(params = {}, options = {})
|
1677
|
+
req = build_request(:get_model_copy_job, params)
|
1678
|
+
req.send_request(options)
|
1679
|
+
end
|
1680
|
+
|
1436
1681
|
# Retrieves the properties associated with a model-customization job,
|
1437
1682
|
# including the status of the job. For more information, see [Custom
|
1438
|
-
# models][1] in the Amazon Bedrock User Guide.
|
1683
|
+
# models][1] in the [Amazon Bedrock User Guide][2].
|
1439
1684
|
#
|
1440
1685
|
#
|
1441
1686
|
#
|
1442
1687
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
1688
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1443
1689
|
#
|
1444
1690
|
# @option params [required, String] :job_identifier
|
1445
1691
|
# Identifier for the customization job.
|
@@ -1513,6 +1759,67 @@ module Aws::Bedrock
|
|
1513
1759
|
req.send_request(options)
|
1514
1760
|
end
|
1515
1761
|
|
1762
|
+
# Gets details about a batch inference job. For more information, see
|
1763
|
+
# [View details about a batch inference job][1]
|
1764
|
+
#
|
1765
|
+
#
|
1766
|
+
#
|
1767
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-view
|
1768
|
+
#
|
1769
|
+
# @option params [required, String] :job_identifier
|
1770
|
+
# The Amazon Resource Name (ARN) of the batch inference job.
|
1771
|
+
#
|
1772
|
+
# @return [Types::GetModelInvocationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1773
|
+
#
|
1774
|
+
# * {Types::GetModelInvocationJobResponse#job_arn #job_arn} => String
|
1775
|
+
# * {Types::GetModelInvocationJobResponse#job_name #job_name} => String
|
1776
|
+
# * {Types::GetModelInvocationJobResponse#model_id #model_id} => String
|
1777
|
+
# * {Types::GetModelInvocationJobResponse#client_request_token #client_request_token} => String
|
1778
|
+
# * {Types::GetModelInvocationJobResponse#role_arn #role_arn} => String
|
1779
|
+
# * {Types::GetModelInvocationJobResponse#status #status} => String
|
1780
|
+
# * {Types::GetModelInvocationJobResponse#message #message} => String
|
1781
|
+
# * {Types::GetModelInvocationJobResponse#submit_time #submit_time} => Time
|
1782
|
+
# * {Types::GetModelInvocationJobResponse#last_modified_time #last_modified_time} => Time
|
1783
|
+
# * {Types::GetModelInvocationJobResponse#end_time #end_time} => Time
|
1784
|
+
# * {Types::GetModelInvocationJobResponse#input_data_config #input_data_config} => Types::ModelInvocationJobInputDataConfig
|
1785
|
+
# * {Types::GetModelInvocationJobResponse#output_data_config #output_data_config} => Types::ModelInvocationJobOutputDataConfig
|
1786
|
+
# * {Types::GetModelInvocationJobResponse#timeout_duration_in_hours #timeout_duration_in_hours} => Integer
|
1787
|
+
# * {Types::GetModelInvocationJobResponse#job_expiration_time #job_expiration_time} => Time
|
1788
|
+
#
|
1789
|
+
# @example Request syntax with placeholder values
|
1790
|
+
#
|
1791
|
+
# resp = client.get_model_invocation_job({
|
1792
|
+
# job_identifier: "ModelInvocationJobIdentifier", # required
|
1793
|
+
# })
|
1794
|
+
#
|
1795
|
+
# @example Response structure
|
1796
|
+
#
|
1797
|
+
# resp.job_arn #=> String
|
1798
|
+
# resp.job_name #=> String
|
1799
|
+
# resp.model_id #=> String
|
1800
|
+
# resp.client_request_token #=> String
|
1801
|
+
# resp.role_arn #=> String
|
1802
|
+
# resp.status #=> String, one of "Submitted", "InProgress", "Completed", "Failed", "Stopping", "Stopped", "PartiallyCompleted", "Expired", "Validating", "Scheduled"
|
1803
|
+
# resp.message #=> String
|
1804
|
+
# resp.submit_time #=> Time
|
1805
|
+
# resp.last_modified_time #=> Time
|
1806
|
+
# resp.end_time #=> Time
|
1807
|
+
# resp.input_data_config.s3_input_data_config.s3_input_format #=> String, one of "JSONL"
|
1808
|
+
# resp.input_data_config.s3_input_data_config.s3_uri #=> String
|
1809
|
+
# resp.output_data_config.s3_output_data_config.s3_uri #=> String
|
1810
|
+
# resp.output_data_config.s3_output_data_config.s3_encryption_key_id #=> String
|
1811
|
+
# resp.timeout_duration_in_hours #=> Integer
|
1812
|
+
# resp.job_expiration_time #=> Time
|
1813
|
+
#
|
1814
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationJob AWS API Documentation
|
1815
|
+
#
|
1816
|
+
# @overload get_model_invocation_job(params = {})
|
1817
|
+
# @param [Hash] params ({})
|
1818
|
+
def get_model_invocation_job(params = {}, options = {})
|
1819
|
+
req = build_request(:get_model_invocation_job, params)
|
1820
|
+
req.send_request(options)
|
1821
|
+
end
|
1822
|
+
|
1516
1823
|
# Get the current configuration values for model invocation logging.
|
1517
1824
|
#
|
1518
1825
|
# @return [Types::GetModelInvocationLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -1541,11 +1848,12 @@ module Aws::Bedrock
|
|
1541
1848
|
end
|
1542
1849
|
|
1543
1850
|
# Returns details for a Provisioned Throughput. For more information,
|
1544
|
-
# see [Provisioned Throughput][1] in the Amazon Bedrock User Guide.
|
1851
|
+
# see [Provisioned Throughput][1] in the [Amazon Bedrock User Guide][2].
|
1545
1852
|
#
|
1546
1853
|
#
|
1547
1854
|
#
|
1548
1855
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
1856
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1549
1857
|
#
|
1550
1858
|
# @option params [required, String] :provisioned_model_id
|
1551
1859
|
# The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
|
@@ -1600,12 +1908,13 @@ module Aws::Bedrock
|
|
1600
1908
|
# Returns a list of the custom models that you have created with the
|
1601
1909
|
# `CreateModelCustomizationJob` operation.
|
1602
1910
|
#
|
1603
|
-
# For more information, see [Custom models][1] in the Amazon Bedrock
|
1604
|
-
# User Guide.
|
1911
|
+
# For more information, see [Custom models][1] in the [Amazon Bedrock
|
1912
|
+
# User Guide][2].
|
1605
1913
|
#
|
1606
1914
|
#
|
1607
1915
|
#
|
1608
1916
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
1917
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1609
1918
|
#
|
1610
1919
|
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
1611
1920
|
# Return custom models created before the specified time.
|
@@ -1625,11 +1934,16 @@ module Aws::Bedrock
|
|
1625
1934
|
# (ARN) matches this parameter.
|
1626
1935
|
#
|
1627
1936
|
# @option params [Integer] :max_results
|
1628
|
-
#
|
1937
|
+
# The maximum number of results to return in the response. If the total
|
1938
|
+
# number of results is greater than this value, use the token returned
|
1939
|
+
# in the response in the `nextToken` field when making another request
|
1940
|
+
# to return the next batch of results.
|
1629
1941
|
#
|
1630
1942
|
# @option params [String] :next_token
|
1631
|
-
#
|
1632
|
-
#
|
1943
|
+
# If the total number of results is greater than the `maxResults` value
|
1944
|
+
# provided in the request, enter the token returned in the `nextToken`
|
1945
|
+
# field in the response in this field to return the next batch of
|
1946
|
+
# results.
|
1633
1947
|
#
|
1634
1948
|
# @option params [String] :sort_by
|
1635
1949
|
# The field to sort by in the returned list of models.
|
@@ -1637,6 +1951,10 @@ module Aws::Bedrock
|
|
1637
1951
|
# @option params [String] :sort_order
|
1638
1952
|
# The sort order of the results.
|
1639
1953
|
#
|
1954
|
+
# @option params [Boolean] :is_owned
|
1955
|
+
# Return custom models depending on if the current account owns them
|
1956
|
+
# (`true`) or if they were shared with the current account (`false`).
|
1957
|
+
#
|
1640
1958
|
# @return [Types::ListCustomModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1641
1959
|
#
|
1642
1960
|
# * {Types::ListCustomModelsResponse#next_token #next_token} => String
|
@@ -1656,6 +1974,7 @@ module Aws::Bedrock
|
|
1656
1974
|
# next_token: "PaginationToken",
|
1657
1975
|
# sort_by: "CreationTime", # accepts CreationTime
|
1658
1976
|
# sort_order: "Ascending", # accepts Ascending, Descending
|
1977
|
+
# is_owned: false,
|
1659
1978
|
# })
|
1660
1979
|
#
|
1661
1980
|
# @example Response structure
|
@@ -1668,6 +1987,7 @@ module Aws::Bedrock
|
|
1668
1987
|
# resp.model_summaries[0].base_model_arn #=> String
|
1669
1988
|
# resp.model_summaries[0].base_model_name #=> String
|
1670
1989
|
# resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING"
|
1990
|
+
# resp.model_summaries[0].owner_account_id #=> String
|
1671
1991
|
#
|
1672
1992
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels AWS API Documentation
|
1673
1993
|
#
|
@@ -1752,35 +2072,38 @@ module Aws::Bedrock
|
|
1752
2072
|
|
1753
2073
|
# Lists Amazon Bedrock foundation models that you can use. You can
|
1754
2074
|
# filter the results with the request parameters. For more information,
|
1755
|
-
# see [Foundation models][1] in the Amazon Bedrock User Guide.
|
2075
|
+
# see [Foundation models][1] in the [Amazon Bedrock User Guide][2].
|
1756
2076
|
#
|
1757
2077
|
#
|
1758
2078
|
#
|
1759
2079
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html
|
2080
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1760
2081
|
#
|
1761
2082
|
# @option params [String] :by_provider
|
1762
2083
|
# Return models belonging to the model provider that you specify.
|
1763
2084
|
#
|
1764
2085
|
# @option params [String] :by_customization_type
|
1765
2086
|
# Return models that support the customization type that you specify.
|
1766
|
-
# For more information, see [Custom models][1] in the Amazon Bedrock
|
1767
|
-
# User Guide.
|
2087
|
+
# For more information, see [Custom models][1] in the [Amazon Bedrock
|
2088
|
+
# User Guide][2].
|
1768
2089
|
#
|
1769
2090
|
#
|
1770
2091
|
#
|
1771
2092
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
2093
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1772
2094
|
#
|
1773
2095
|
# @option params [String] :by_output_modality
|
1774
2096
|
# Return models that support the output modality that you specify.
|
1775
2097
|
#
|
1776
2098
|
# @option params [String] :by_inference_type
|
1777
2099
|
# Return models that support the inference type that you specify. For
|
1778
|
-
# more information, see [Provisioned Throughput][1] in the Amazon
|
1779
|
-
# Bedrock User Guide.
|
2100
|
+
# more information, see [Provisioned Throughput][1] in the [Amazon
|
2101
|
+
# Bedrock User Guide][2].
|
1780
2102
|
#
|
1781
2103
|
#
|
1782
2104
|
#
|
1783
2105
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
2106
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1784
2107
|
#
|
1785
2108
|
# @return [Types::ListFoundationModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1786
2109
|
#
|
@@ -1880,15 +2203,116 @@ module Aws::Bedrock
|
|
1880
2203
|
req.send_request(options)
|
1881
2204
|
end
|
1882
2205
|
|
2206
|
+
# Returns a list of model copy jobs that you have submitted. You can
|
2207
|
+
# filter the jobs to return based on one or more criteria. For more
|
2208
|
+
# information, see [Copy models to be used in other regions][1] in the
|
2209
|
+
# [Amazon Bedrock User Guide][2].
|
2210
|
+
#
|
2211
|
+
#
|
2212
|
+
#
|
2213
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/copy-model.html
|
2214
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2215
|
+
#
|
2216
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
2217
|
+
# Filters for model copy jobs created after the specified time.
|
2218
|
+
#
|
2219
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
2220
|
+
# Filters for model copy jobs created before the specified time.
|
2221
|
+
#
|
2222
|
+
# @option params [String] :status_equals
|
2223
|
+
# Filters for model copy jobs whose status matches the value that you
|
2224
|
+
# specify.
|
2225
|
+
#
|
2226
|
+
# @option params [String] :source_account_equals
|
2227
|
+
# Filters for model copy jobs in which the account that the source model
|
2228
|
+
# belongs to is equal to the value that you specify.
|
2229
|
+
#
|
2230
|
+
# @option params [String] :source_model_arn_equals
|
2231
|
+
# Filters for model copy jobs in which the Amazon Resource Name (ARN) of
|
2232
|
+
# the source model to is equal to the value that you specify.
|
2233
|
+
#
|
2234
|
+
# @option params [String] :target_model_name_contains
|
2235
|
+
# Filters for model copy jobs in which the name of the copied model
|
2236
|
+
# contains the string that you specify.
|
2237
|
+
#
|
2238
|
+
# @option params [Integer] :max_results
|
2239
|
+
# The maximum number of results to return in the response. If the total
|
2240
|
+
# number of results is greater than this value, use the token returned
|
2241
|
+
# in the response in the `nextToken` field when making another request
|
2242
|
+
# to return the next batch of results.
|
2243
|
+
#
|
2244
|
+
# @option params [String] :next_token
|
2245
|
+
# If the total number of results is greater than the `maxResults` value
|
2246
|
+
# provided in the request, enter the token returned in the `nextToken`
|
2247
|
+
# field in the response in this field to return the next batch of
|
2248
|
+
# results.
|
2249
|
+
#
|
2250
|
+
# @option params [String] :sort_by
|
2251
|
+
# The field to sort by in the returned list of model copy jobs.
|
2252
|
+
#
|
2253
|
+
# @option params [String] :sort_order
|
2254
|
+
# Specifies whether to sort the results in ascending or descending
|
2255
|
+
# order.
|
2256
|
+
#
|
2257
|
+
# @return [Types::ListModelCopyJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2258
|
+
#
|
2259
|
+
# * {Types::ListModelCopyJobsResponse#next_token #next_token} => String
|
2260
|
+
# * {Types::ListModelCopyJobsResponse#model_copy_job_summaries #model_copy_job_summaries} => Array<Types::ModelCopyJobSummary>
|
2261
|
+
#
|
2262
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2263
|
+
#
|
2264
|
+
# @example Request syntax with placeholder values
|
2265
|
+
#
|
2266
|
+
# resp = client.list_model_copy_jobs({
|
2267
|
+
# creation_time_after: Time.now,
|
2268
|
+
# creation_time_before: Time.now,
|
2269
|
+
# status_equals: "InProgress", # accepts InProgress, Completed, Failed
|
2270
|
+
# source_account_equals: "AccountId",
|
2271
|
+
# source_model_arn_equals: "ModelArn",
|
2272
|
+
# target_model_name_contains: "CustomModelName",
|
2273
|
+
# max_results: 1,
|
2274
|
+
# next_token: "PaginationToken",
|
2275
|
+
# sort_by: "CreationTime", # accepts CreationTime
|
2276
|
+
# sort_order: "Ascending", # accepts Ascending, Descending
|
2277
|
+
# })
|
2278
|
+
#
|
2279
|
+
# @example Response structure
|
2280
|
+
#
|
2281
|
+
# resp.next_token #=> String
|
2282
|
+
# resp.model_copy_job_summaries #=> Array
|
2283
|
+
# resp.model_copy_job_summaries[0].job_arn #=> String
|
2284
|
+
# resp.model_copy_job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed"
|
2285
|
+
# resp.model_copy_job_summaries[0].creation_time #=> Time
|
2286
|
+
# resp.model_copy_job_summaries[0].target_model_arn #=> String
|
2287
|
+
# resp.model_copy_job_summaries[0].target_model_name #=> String
|
2288
|
+
# resp.model_copy_job_summaries[0].source_account_id #=> String
|
2289
|
+
# resp.model_copy_job_summaries[0].source_model_arn #=> String
|
2290
|
+
# resp.model_copy_job_summaries[0].target_model_kms_key_arn #=> String
|
2291
|
+
# resp.model_copy_job_summaries[0].target_model_tags #=> Array
|
2292
|
+
# resp.model_copy_job_summaries[0].target_model_tags[0].key #=> String
|
2293
|
+
# resp.model_copy_job_summaries[0].target_model_tags[0].value #=> String
|
2294
|
+
# resp.model_copy_job_summaries[0].failure_message #=> String
|
2295
|
+
# resp.model_copy_job_summaries[0].source_model_name #=> String
|
2296
|
+
#
|
2297
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCopyJobs AWS API Documentation
|
2298
|
+
#
|
2299
|
+
# @overload list_model_copy_jobs(params = {})
|
2300
|
+
# @param [Hash] params ({})
|
2301
|
+
def list_model_copy_jobs(params = {}, options = {})
|
2302
|
+
req = build_request(:list_model_copy_jobs, params)
|
2303
|
+
req.send_request(options)
|
2304
|
+
end
|
2305
|
+
|
1883
2306
|
# Returns a list of model customization jobs that you have submitted.
|
1884
2307
|
# You can filter the jobs to return based on one or more criteria.
|
1885
2308
|
#
|
1886
|
-
# For more information, see [Custom models][1] in the Amazon Bedrock
|
1887
|
-
# User Guide.
|
2309
|
+
# For more information, see [Custom models][1] in the [Amazon Bedrock
|
2310
|
+
# User Guide][2].
|
1888
2311
|
#
|
1889
2312
|
#
|
1890
2313
|
#
|
1891
2314
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
2315
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1892
2316
|
#
|
1893
2317
|
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
1894
2318
|
# Return customization jobs created after the specified time.
|
@@ -1904,11 +2328,16 @@ module Aws::Bedrock
|
|
1904
2328
|
# characters.
|
1905
2329
|
#
|
1906
2330
|
# @option params [Integer] :max_results
|
1907
|
-
#
|
2331
|
+
# The maximum number of results to return in the response. If the total
|
2332
|
+
# number of results is greater than this value, use the token returned
|
2333
|
+
# in the response in the `nextToken` field when making another request
|
2334
|
+
# to return the next batch of results.
|
1908
2335
|
#
|
1909
2336
|
# @option params [String] :next_token
|
1910
|
-
#
|
1911
|
-
#
|
2337
|
+
# If the total number of results is greater than the `maxResults` value
|
2338
|
+
# provided in the request, enter the token returned in the `nextToken`
|
2339
|
+
# field in the response in this field to return the next batch of
|
2340
|
+
# results.
|
1912
2341
|
#
|
1913
2342
|
# @option params [String] :sort_by
|
1914
2343
|
# The field to sort by in the returned list of jobs.
|
@@ -1960,13 +2389,105 @@ module Aws::Bedrock
|
|
1960
2389
|
req.send_request(options)
|
1961
2390
|
end
|
1962
2391
|
|
2392
|
+
# Lists all batch inference jobs in the account. For more information,
|
2393
|
+
# see [View details about a batch inference job][1].
|
2394
|
+
#
|
2395
|
+
#
|
2396
|
+
#
|
2397
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-view
|
2398
|
+
#
|
2399
|
+
# @option params [Time,DateTime,Date,Integer,String] :submit_time_after
|
2400
|
+
# Specify a time to filter for batch inference jobs that were submitted
|
2401
|
+
# after the time you specify.
|
2402
|
+
#
|
2403
|
+
# @option params [Time,DateTime,Date,Integer,String] :submit_time_before
|
2404
|
+
# Specify a time to filter for batch inference jobs that were submitted
|
2405
|
+
# before the time you specify.
|
2406
|
+
#
|
2407
|
+
# @option params [String] :status_equals
|
2408
|
+
# Specify a status to filter for batch inference jobs whose statuses
|
2409
|
+
# match the string you specify.
|
2410
|
+
#
|
2411
|
+
# @option params [String] :name_contains
|
2412
|
+
# Specify a string to filter for batch inference jobs whose names
|
2413
|
+
# contain the string.
|
2414
|
+
#
|
2415
|
+
# @option params [Integer] :max_results
|
2416
|
+
# The maximum number of results to return. If there are more results
|
2417
|
+
# than the number that you specify, a `nextToken` value is returned. Use
|
2418
|
+
# the `nextToken` in a request to return the next batch of results.
|
2419
|
+
#
|
2420
|
+
# @option params [String] :next_token
|
2421
|
+
# If there were more results than the value you specified in the
|
2422
|
+
# `maxResults` field in a previous `ListModelInvocationJobs` request,
|
2423
|
+
# the response would have returned a `nextToken` value. To see the next
|
2424
|
+
# batch of results, send the `nextToken` value in another request.
|
2425
|
+
#
|
2426
|
+
# @option params [String] :sort_by
|
2427
|
+
# An attribute by which to sort the results.
|
2428
|
+
#
|
2429
|
+
# @option params [String] :sort_order
|
2430
|
+
# Specifies whether to sort the results by ascending or descending
|
2431
|
+
# order.
|
2432
|
+
#
|
2433
|
+
# @return [Types::ListModelInvocationJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2434
|
+
#
|
2435
|
+
# * {Types::ListModelInvocationJobsResponse#next_token #next_token} => String
|
2436
|
+
# * {Types::ListModelInvocationJobsResponse#invocation_job_summaries #invocation_job_summaries} => Array<Types::ModelInvocationJobSummary>
|
2437
|
+
#
|
2438
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2439
|
+
#
|
2440
|
+
# @example Request syntax with placeholder values
|
2441
|
+
#
|
2442
|
+
# resp = client.list_model_invocation_jobs({
|
2443
|
+
# submit_time_after: Time.now,
|
2444
|
+
# submit_time_before: Time.now,
|
2445
|
+
# status_equals: "Submitted", # accepts Submitted, InProgress, Completed, Failed, Stopping, Stopped, PartiallyCompleted, Expired, Validating, Scheduled
|
2446
|
+
# name_contains: "ModelInvocationJobName",
|
2447
|
+
# max_results: 1,
|
2448
|
+
# next_token: "PaginationToken",
|
2449
|
+
# sort_by: "CreationTime", # accepts CreationTime
|
2450
|
+
# sort_order: "Ascending", # accepts Ascending, Descending
|
2451
|
+
# })
|
2452
|
+
#
|
2453
|
+
# @example Response structure
|
2454
|
+
#
|
2455
|
+
# resp.next_token #=> String
|
2456
|
+
# resp.invocation_job_summaries #=> Array
|
2457
|
+
# resp.invocation_job_summaries[0].job_arn #=> String
|
2458
|
+
# resp.invocation_job_summaries[0].job_name #=> String
|
2459
|
+
# resp.invocation_job_summaries[0].model_id #=> String
|
2460
|
+
# resp.invocation_job_summaries[0].client_request_token #=> String
|
2461
|
+
# resp.invocation_job_summaries[0].role_arn #=> String
|
2462
|
+
# resp.invocation_job_summaries[0].status #=> String, one of "Submitted", "InProgress", "Completed", "Failed", "Stopping", "Stopped", "PartiallyCompleted", "Expired", "Validating", "Scheduled"
|
2463
|
+
# resp.invocation_job_summaries[0].message #=> String
|
2464
|
+
# resp.invocation_job_summaries[0].submit_time #=> Time
|
2465
|
+
# resp.invocation_job_summaries[0].last_modified_time #=> Time
|
2466
|
+
# resp.invocation_job_summaries[0].end_time #=> Time
|
2467
|
+
# resp.invocation_job_summaries[0].input_data_config.s3_input_data_config.s3_input_format #=> String, one of "JSONL"
|
2468
|
+
# resp.invocation_job_summaries[0].input_data_config.s3_input_data_config.s3_uri #=> String
|
2469
|
+
# resp.invocation_job_summaries[0].output_data_config.s3_output_data_config.s3_uri #=> String
|
2470
|
+
# resp.invocation_job_summaries[0].output_data_config.s3_output_data_config.s3_encryption_key_id #=> String
|
2471
|
+
# resp.invocation_job_summaries[0].timeout_duration_in_hours #=> Integer
|
2472
|
+
# resp.invocation_job_summaries[0].job_expiration_time #=> Time
|
2473
|
+
#
|
2474
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelInvocationJobs AWS API Documentation
|
2475
|
+
#
|
2476
|
+
# @overload list_model_invocation_jobs(params = {})
|
2477
|
+
# @param [Hash] params ({})
|
2478
|
+
def list_model_invocation_jobs(params = {}, options = {})
|
2479
|
+
req = build_request(:list_model_invocation_jobs, params)
|
2480
|
+
req.send_request(options)
|
2481
|
+
end
|
2482
|
+
|
1963
2483
|
# Lists the Provisioned Throughputs in the account. For more
|
1964
|
-
# information, see [Provisioned Throughput][1] in the Amazon Bedrock
|
1965
|
-
# User Guide.
|
2484
|
+
# information, see [Provisioned Throughput][1] in the [Amazon Bedrock
|
2485
|
+
# User Guide][2].
|
1966
2486
|
#
|
1967
2487
|
#
|
1968
2488
|
#
|
1969
2489
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
2490
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1970
2491
|
#
|
1971
2492
|
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
1972
2493
|
# A filter that returns Provisioned Throughputs created after the
|
@@ -2056,12 +2577,13 @@ module Aws::Bedrock
|
|
2056
2577
|
|
2057
2578
|
# List the tags associated with the specified resource.
|
2058
2579
|
#
|
2059
|
-
# For more information, see [Tagging resources][1] in the Amazon
|
2060
|
-
# User Guide.
|
2580
|
+
# For more information, see [Tagging resources][1] in the [Amazon
|
2581
|
+
# Bedrock User Guide][2].
|
2061
2582
|
#
|
2062
2583
|
#
|
2063
2584
|
#
|
2064
2585
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
|
2586
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2065
2587
|
#
|
2066
2588
|
# @option params [required, String] :resource_arn
|
2067
2589
|
# The Amazon Resource Name (ARN) of the resource.
|
@@ -2152,11 +2674,12 @@ module Aws::Bedrock
|
|
2152
2674
|
end
|
2153
2675
|
|
2154
2676
|
# Stops an active model customization job. For more information, see
|
2155
|
-
# [Custom models][1] in the Amazon Bedrock User Guide.
|
2677
|
+
# [Custom models][1] in the [Amazon Bedrock User Guide][2].
|
2156
2678
|
#
|
2157
2679
|
#
|
2158
2680
|
#
|
2159
2681
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
|
2682
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2160
2683
|
#
|
2161
2684
|
# @option params [required, String] :job_identifier
|
2162
2685
|
# Job identifier of the job to stop.
|
@@ -2178,12 +2701,41 @@ module Aws::Bedrock
|
|
2178
2701
|
req.send_request(options)
|
2179
2702
|
end
|
2180
2703
|
|
2704
|
+
# Stops a batch inference job. You're only charged for tokens that were
|
2705
|
+
# already processed. For more information, see [Stop a batch inference
|
2706
|
+
# job][1].
|
2707
|
+
#
|
2708
|
+
#
|
2709
|
+
#
|
2710
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-stop
|
2711
|
+
#
|
2712
|
+
# @option params [required, String] :job_identifier
|
2713
|
+
# The Amazon Resource Name (ARN) of the batch inference job to stop.
|
2714
|
+
#
|
2715
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2716
|
+
#
|
2717
|
+
# @example Request syntax with placeholder values
|
2718
|
+
#
|
2719
|
+
# resp = client.stop_model_invocation_job({
|
2720
|
+
# job_identifier: "ModelInvocationJobIdentifier", # required
|
2721
|
+
# })
|
2722
|
+
#
|
2723
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopModelInvocationJob AWS API Documentation
|
2724
|
+
#
|
2725
|
+
# @overload stop_model_invocation_job(params = {})
|
2726
|
+
# @param [Hash] params ({})
|
2727
|
+
def stop_model_invocation_job(params = {}, options = {})
|
2728
|
+
req = build_request(:stop_model_invocation_job, params)
|
2729
|
+
req.send_request(options)
|
2730
|
+
end
|
2731
|
+
|
2181
2732
|
# Associate tags with a resource. For more information, see [Tagging
|
2182
|
-
# resources][1] in the Amazon Bedrock User Guide.
|
2733
|
+
# resources][1] in the [Amazon Bedrock User Guide][2].
|
2183
2734
|
#
|
2184
2735
|
#
|
2185
2736
|
#
|
2186
2737
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
|
2738
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2187
2739
|
#
|
2188
2740
|
# @option params [required, String] :resource_arn
|
2189
2741
|
# The Amazon Resource Name (ARN) of the resource to tag.
|
@@ -2215,11 +2767,12 @@ module Aws::Bedrock
|
|
2215
2767
|
end
|
2216
2768
|
|
2217
2769
|
# Remove one or more tags from a resource. For more information, see
|
2218
|
-
# [Tagging resources][1] in the Amazon Bedrock User Guide.
|
2770
|
+
# [Tagging resources][1] in the [Amazon Bedrock User Guide][2].
|
2219
2771
|
#
|
2220
2772
|
#
|
2221
2773
|
#
|
2222
2774
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
|
2775
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2223
2776
|
#
|
2224
2777
|
# @option params [required, String] :resource_arn
|
2225
2778
|
# The Amazon Resource Name (ARN) of the resource to untag.
|
@@ -2411,12 +2964,13 @@ module Aws::Bedrock
|
|
2411
2964
|
end
|
2412
2965
|
|
2413
2966
|
# Updates the name or associated model for a Provisioned Throughput. For
|
2414
|
-
# more information, see [Provisioned Throughput][1] in the Amazon
|
2415
|
-
# Bedrock User Guide.
|
2967
|
+
# more information, see [Provisioned Throughput][1] in the [Amazon
|
2968
|
+
# Bedrock User Guide][2].
|
2416
2969
|
#
|
2417
2970
|
#
|
2418
2971
|
#
|
2419
2972
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
2973
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2420
2974
|
#
|
2421
2975
|
# @option params [required, String] :provisioned_model_id
|
2422
2976
|
# The Amazon Resource Name (ARN) or name of the Provisioned Throughput
|
@@ -2470,7 +3024,7 @@ module Aws::Bedrock
|
|
2470
3024
|
params: params,
|
2471
3025
|
config: config)
|
2472
3026
|
context[:gem_name] = 'aws-sdk-bedrock'
|
2473
|
-
context[:gem_version] = '1.
|
3027
|
+
context[:gem_version] = '1.15.0'
|
2474
3028
|
Seahorse::Client::Request.new(handlers, context)
|
2475
3029
|
end
|
2476
3030
|
|