aws-sdk-bedrock 1.14.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -425,6 +425,44 @@ module Aws::Bedrock
425
425
 
426
426
  # @!group API Operations
427
427
 
428
+ # Creates a batch deletion job. A model evaluation job can only be
429
+ # deleted if it has following status `FAILED`, `COMPLETED`, and
430
+ # `STOPPED`. You can request up to 25 model evaluation jobs be deleted
431
+ # in a single request.
432
+ #
433
+ # @option params [required, Array<String>] :job_identifiers
434
+ # An array of model evaluation job ARNs to be deleted.
435
+ #
436
+ # @return [Types::BatchDeleteEvaluationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
437
+ #
438
+ # * {Types::BatchDeleteEvaluationJobResponse#errors #errors} => Array&lt;Types::BatchDeleteEvaluationJobError&gt;
439
+ # * {Types::BatchDeleteEvaluationJobResponse#evaluation_jobs #evaluation_jobs} => Array&lt;Types::BatchDeleteEvaluationJobItem&gt;
440
+ #
441
+ # @example Request syntax with placeholder values
442
+ #
443
+ # resp = client.batch_delete_evaluation_job({
444
+ # job_identifiers: ["EvaluationJobIdentifier"], # required
445
+ # })
446
+ #
447
+ # @example Response structure
448
+ #
449
+ # resp.errors #=> Array
450
+ # resp.errors[0].job_identifier #=> String
451
+ # resp.errors[0].code #=> String
452
+ # resp.errors[0].message #=> String
453
+ # resp.evaluation_jobs #=> Array
454
+ # resp.evaluation_jobs[0].job_identifier #=> String
455
+ # resp.evaluation_jobs[0].job_status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped", "Deleting"
456
+ #
457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/BatchDeleteEvaluationJob AWS API Documentation
458
+ #
459
+ # @overload batch_delete_evaluation_job(params = {})
460
+ # @param [Hash] params ({})
461
+ def batch_delete_evaluation_job(params = {}, options = {})
462
+ req = build_request(:batch_delete_evaluation_job, params)
463
+ req.send_request(options)
464
+ end
465
+
428
466
  # API operation for creating and managing Amazon Bedrock automatic model
429
467
  # evaluation jobs and model evaluation jobs that use human workers. To
430
468
  # learn more about the requirements for creating a model evaluation job
@@ -1023,6 +1061,205 @@ module Aws::Bedrock
1023
1061
  req.send_request(options)
1024
1062
  end
1025
1063
 
1064
+ # Creates a model import job to import model that you have customized in
1065
+ # other environments, such as Amazon SageMaker. For more information,
1066
+ # see [Import a customized model][1]
1067
+ #
1068
+ #
1069
+ #
1070
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
1071
+ #
1072
+ # @option params [required, String] :job_name
1073
+ # The name of the import job.
1074
+ #
1075
+ # @option params [required, String] :imported_model_name
1076
+ # The name of the imported model.
1077
+ #
1078
+ # @option params [required, String] :role_arn
1079
+ # The Amazon Resource Name (ARN) of the model import job.
1080
+ #
1081
+ # @option params [required, Types::ModelDataSource] :model_data_source
1082
+ # The data source for the imported model.
1083
+ #
1084
+ # @option params [Array<Types::Tag>] :job_tags
1085
+ # Tags to attach to this import job.
1086
+ #
1087
+ # @option params [Array<Types::Tag>] :imported_model_tags
1088
+ # Tags to attach to the imported model.
1089
+ #
1090
+ # @option params [String] :client_request_token
1091
+ # A unique, case-sensitive identifier to ensure that the API request
1092
+ # completes no more than one time. If this token matches a previous
1093
+ # request, Amazon Bedrock ignores the request, but does not return an
1094
+ # error. For more information, see [Ensuring idempotency][1].
1095
+ #
1096
+ #
1097
+ #
1098
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
1099
+ #
1100
+ # @option params [Types::VpcConfig] :vpc_config
1101
+ # VPC configuration parameters for the private Virtual Private Cloud
1102
+ # (VPC) that contains the resources you are using for the import job.
1103
+ #
1104
+ # @option params [String] :imported_model_kms_key_id
1105
+ # The imported model is encrypted at rest using this key.
1106
+ #
1107
+ # @return [Types::CreateModelImportJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1108
+ #
1109
+ # * {Types::CreateModelImportJobResponse#job_arn #job_arn} => String
1110
+ #
1111
+ # @example Request syntax with placeholder values
1112
+ #
1113
+ # resp = client.create_model_import_job({
1114
+ # job_name: "JobName", # required
1115
+ # imported_model_name: "ImportedModelName", # required
1116
+ # role_arn: "RoleArn", # required
1117
+ # model_data_source: { # required
1118
+ # s3_data_source: {
1119
+ # s3_uri: "S3Uri", # required
1120
+ # },
1121
+ # },
1122
+ # job_tags: [
1123
+ # {
1124
+ # key: "TagKey", # required
1125
+ # value: "TagValue", # required
1126
+ # },
1127
+ # ],
1128
+ # imported_model_tags: [
1129
+ # {
1130
+ # key: "TagKey", # required
1131
+ # value: "TagValue", # required
1132
+ # },
1133
+ # ],
1134
+ # client_request_token: "IdempotencyToken",
1135
+ # vpc_config: {
1136
+ # subnet_ids: ["SubnetId"], # required
1137
+ # security_group_ids: ["SecurityGroupId"], # required
1138
+ # },
1139
+ # imported_model_kms_key_id: "KmsKeyId",
1140
+ # })
1141
+ #
1142
+ # @example Response structure
1143
+ #
1144
+ # resp.job_arn #=> String
1145
+ #
1146
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelImportJob AWS API Documentation
1147
+ #
1148
+ # @overload create_model_import_job(params = {})
1149
+ # @param [Hash] params ({})
1150
+ def create_model_import_job(params = {}, options = {})
1151
+ req = build_request(:create_model_import_job, params)
1152
+ req.send_request(options)
1153
+ end
1154
+
1155
+ # Creates a job to invoke a model on multiple prompts (batch inference).
1156
+ # Format your data according to [Format your inference data][1] and
1157
+ # upload it to an Amazon S3 bucket. For more information, see [Create a
1158
+ # batch inference job][2].
1159
+ #
1160
+ # The response returns a `jobArn` that you can use to stop or get
1161
+ # details about the job. You can check the status of the job by sending
1162
+ # a [GetModelCustomizationJob][3] request.
1163
+ #
1164
+ #
1165
+ #
1166
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-prerq.html#batch-inference-data
1167
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-create.html
1168
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelCustomizationJob.html
1169
+ #
1170
+ # @option params [required, String] :job_name
1171
+ # A name to give the batch inference job.
1172
+ #
1173
+ # @option params [required, String] :role_arn
1174
+ # The Amazon Resource Name (ARN) of the service role with permissions to
1175
+ # carry out and manage batch inference. You can use the console to
1176
+ # create a default service role or follow the steps at [Create a service
1177
+ # role for batch inference][1].
1178
+ #
1179
+ #
1180
+ #
1181
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html
1182
+ #
1183
+ # @option params [String] :client_request_token
1184
+ # A unique, case-sensitive identifier to ensure that the API request
1185
+ # completes no more than one time. If this token matches a previous
1186
+ # request, Amazon Bedrock ignores the request, but does not return an
1187
+ # error. For more information, see [Ensuring idempotency][1].
1188
+ #
1189
+ # **A suitable default value is auto-generated.** You should normally
1190
+ # not need to pass this option.**
1191
+ #
1192
+ #
1193
+ #
1194
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
1195
+ #
1196
+ # @option params [required, String] :model_id
1197
+ # The unique identifier of the foundation model to use for the batch
1198
+ # inference job.
1199
+ #
1200
+ # @option params [required, Types::ModelInvocationJobInputDataConfig] :input_data_config
1201
+ # Details about the location of the input to the batch inference job.
1202
+ #
1203
+ # @option params [required, Types::ModelInvocationJobOutputDataConfig] :output_data_config
1204
+ # Details about the location of the output of the batch inference job.
1205
+ #
1206
+ # @option params [Integer] :timeout_duration_in_hours
1207
+ # The number of hours after which to force the batch inference job to
1208
+ # time out.
1209
+ #
1210
+ # @option params [Array<Types::Tag>] :tags
1211
+ # Any tags to associate with the batch inference job. For more
1212
+ # information, see [Tagging Amazon Bedrock resources][1].
1213
+ #
1214
+ #
1215
+ #
1216
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
1217
+ #
1218
+ # @return [Types::CreateModelInvocationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1219
+ #
1220
+ # * {Types::CreateModelInvocationJobResponse#job_arn #job_arn} => String
1221
+ #
1222
+ # @example Request syntax with placeholder values
1223
+ #
1224
+ # resp = client.create_model_invocation_job({
1225
+ # job_name: "ModelInvocationJobName", # required
1226
+ # role_arn: "RoleArn", # required
1227
+ # client_request_token: "ModelInvocationIdempotencyToken",
1228
+ # model_id: "ModelId", # required
1229
+ # input_data_config: { # required
1230
+ # s3_input_data_config: {
1231
+ # s3_input_format: "JSONL", # accepts JSONL
1232
+ # s3_uri: "S3Uri", # required
1233
+ # },
1234
+ # },
1235
+ # output_data_config: { # required
1236
+ # s3_output_data_config: {
1237
+ # s3_uri: "S3Uri", # required
1238
+ # s3_encryption_key_id: "KmsKeyId",
1239
+ # },
1240
+ # },
1241
+ # timeout_duration_in_hours: 1,
1242
+ # tags: [
1243
+ # {
1244
+ # key: "TagKey", # required
1245
+ # value: "TagValue", # required
1246
+ # },
1247
+ # ],
1248
+ # })
1249
+ #
1250
+ # @example Response structure
1251
+ #
1252
+ # resp.job_arn #=> String
1253
+ #
1254
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelInvocationJob AWS API Documentation
1255
+ #
1256
+ # @overload create_model_invocation_job(params = {})
1257
+ # @param [Hash] params ({})
1258
+ def create_model_invocation_job(params = {}, options = {})
1259
+ req = build_request(:create_model_invocation_job, params)
1260
+ req.send_request(options)
1261
+ end
1262
+
1026
1263
  # Creates dedicated throughput for a base or custom model with the model
1027
1264
  # units and for the duration that you specify. For pricing details, see
1028
1265
  # [Amazon Bedrock Pricing][1]. For more information, see [Provisioned
@@ -1196,6 +1433,35 @@ module Aws::Bedrock
1196
1433
  req.send_request(options)
1197
1434
  end
1198
1435
 
1436
+ # Deletes a custom model that you imported earlier. For more
1437
+ # information, see [Import a customized model][1] in the [Amazon Bedrock
1438
+ # User Guide][2].
1439
+ #
1440
+ #
1441
+ #
1442
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
1443
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
1444
+ #
1445
+ # @option params [required, String] :model_identifier
1446
+ # Name of the imported model to delete.
1447
+ #
1448
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1449
+ #
1450
+ # @example Request syntax with placeholder values
1451
+ #
1452
+ # resp = client.delete_imported_model({
1453
+ # model_identifier: "ImportedModelIdentifier", # required
1454
+ # })
1455
+ #
1456
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteImportedModel AWS API Documentation
1457
+ #
1458
+ # @overload delete_imported_model(params = {})
1459
+ # @param [Hash] params ({})
1460
+ def delete_imported_model(params = {}, options = {})
1461
+ req = build_request(:delete_imported_model, params)
1462
+ req.send_request(options)
1463
+ end
1464
+
1199
1465
  # Delete the invocation logging.
1200
1466
  #
1201
1467
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
@@ -1338,7 +1604,7 @@ module Aws::Bedrock
1338
1604
  # @example Response structure
1339
1605
  #
1340
1606
  # resp.job_name #=> String
1341
- # resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
1607
+ # resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped", "Deleting"
1342
1608
  # resp.job_arn #=> String
1343
1609
  # resp.job_description #=> String
1344
1610
  # resp.role_arn #=> String
@@ -1513,6 +1779,48 @@ module Aws::Bedrock
1513
1779
  req.send_request(options)
1514
1780
  end
1515
1781
 
1782
+ # Gets properties associated with a customized model you imported.
1783
+ #
1784
+ # @option params [required, String] :model_identifier
1785
+ # Name or Amazon Resource Name (ARN) of the imported model.
1786
+ #
1787
+ # @return [Types::GetImportedModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1788
+ #
1789
+ # * {Types::GetImportedModelResponse#model_arn #model_arn} => String
1790
+ # * {Types::GetImportedModelResponse#model_name #model_name} => String
1791
+ # * {Types::GetImportedModelResponse#job_name #job_name} => String
1792
+ # * {Types::GetImportedModelResponse#job_arn #job_arn} => String
1793
+ # * {Types::GetImportedModelResponse#model_data_source #model_data_source} => Types::ModelDataSource
1794
+ # * {Types::GetImportedModelResponse#creation_time #creation_time} => Time
1795
+ # * {Types::GetImportedModelResponse#model_architecture #model_architecture} => String
1796
+ # * {Types::GetImportedModelResponse#model_kms_key_arn #model_kms_key_arn} => String
1797
+ #
1798
+ # @example Request syntax with placeholder values
1799
+ #
1800
+ # resp = client.get_imported_model({
1801
+ # model_identifier: "ImportedModelIdentifier", # required
1802
+ # })
1803
+ #
1804
+ # @example Response structure
1805
+ #
1806
+ # resp.model_arn #=> String
1807
+ # resp.model_name #=> String
1808
+ # resp.job_name #=> String
1809
+ # resp.job_arn #=> String
1810
+ # resp.model_data_source.s3_data_source.s3_uri #=> String
1811
+ # resp.creation_time #=> Time
1812
+ # resp.model_architecture #=> String
1813
+ # resp.model_kms_key_arn #=> String
1814
+ #
1815
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetImportedModel AWS API Documentation
1816
+ #
1817
+ # @overload get_imported_model(params = {})
1818
+ # @param [Hash] params ({})
1819
+ def get_imported_model(params = {}, options = {})
1820
+ req = build_request(:get_imported_model, params)
1821
+ req.send_request(options)
1822
+ end
1823
+
1516
1824
  # Retrieves information about a model copy job. For more information,
1517
1825
  # see [Copy models to be used in other regions][1] in the [Amazon
1518
1826
  # Bedrock User Guide][2].
@@ -1651,6 +1959,129 @@ module Aws::Bedrock
1651
1959
  req.send_request(options)
1652
1960
  end
1653
1961
 
1962
+ # Retrieves the properties associated with import model job, including
1963
+ # the status of the job. For more information, see [Import a customized
1964
+ # model][1] in the [Amazon Bedrock User Guide][2].
1965
+ #
1966
+ #
1967
+ #
1968
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
1969
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
1970
+ #
1971
+ # @option params [required, String] :job_identifier
1972
+ # The identifier of the import job.
1973
+ #
1974
+ # @return [Types::GetModelImportJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1975
+ #
1976
+ # * {Types::GetModelImportJobResponse#job_arn #job_arn} => String
1977
+ # * {Types::GetModelImportJobResponse#job_name #job_name} => String
1978
+ # * {Types::GetModelImportJobResponse#imported_model_name #imported_model_name} => String
1979
+ # * {Types::GetModelImportJobResponse#imported_model_arn #imported_model_arn} => String
1980
+ # * {Types::GetModelImportJobResponse#role_arn #role_arn} => String
1981
+ # * {Types::GetModelImportJobResponse#model_data_source #model_data_source} => Types::ModelDataSource
1982
+ # * {Types::GetModelImportJobResponse#status #status} => String
1983
+ # * {Types::GetModelImportJobResponse#failure_message #failure_message} => String
1984
+ # * {Types::GetModelImportJobResponse#creation_time #creation_time} => Time
1985
+ # * {Types::GetModelImportJobResponse#last_modified_time #last_modified_time} => Time
1986
+ # * {Types::GetModelImportJobResponse#end_time #end_time} => Time
1987
+ # * {Types::GetModelImportJobResponse#vpc_config #vpc_config} => Types::VpcConfig
1988
+ # * {Types::GetModelImportJobResponse#imported_model_kms_key_arn #imported_model_kms_key_arn} => String
1989
+ #
1990
+ # @example Request syntax with placeholder values
1991
+ #
1992
+ # resp = client.get_model_import_job({
1993
+ # job_identifier: "ModelImportJobIdentifier", # required
1994
+ # })
1995
+ #
1996
+ # @example Response structure
1997
+ #
1998
+ # resp.job_arn #=> String
1999
+ # resp.job_name #=> String
2000
+ # resp.imported_model_name #=> String
2001
+ # resp.imported_model_arn #=> String
2002
+ # resp.role_arn #=> String
2003
+ # resp.model_data_source.s3_data_source.s3_uri #=> String
2004
+ # resp.status #=> String, one of "InProgress", "Completed", "Failed"
2005
+ # resp.failure_message #=> String
2006
+ # resp.creation_time #=> Time
2007
+ # resp.last_modified_time #=> Time
2008
+ # resp.end_time #=> Time
2009
+ # resp.vpc_config.subnet_ids #=> Array
2010
+ # resp.vpc_config.subnet_ids[0] #=> String
2011
+ # resp.vpc_config.security_group_ids #=> Array
2012
+ # resp.vpc_config.security_group_ids[0] #=> String
2013
+ # resp.imported_model_kms_key_arn #=> String
2014
+ #
2015
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelImportJob AWS API Documentation
2016
+ #
2017
+ # @overload get_model_import_job(params = {})
2018
+ # @param [Hash] params ({})
2019
+ def get_model_import_job(params = {}, options = {})
2020
+ req = build_request(:get_model_import_job, params)
2021
+ req.send_request(options)
2022
+ end
2023
+
2024
+ # Gets details about a batch inference job. For more information, see
2025
+ # [View details about a batch inference job][1]
2026
+ #
2027
+ #
2028
+ #
2029
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-view
2030
+ #
2031
+ # @option params [required, String] :job_identifier
2032
+ # The Amazon Resource Name (ARN) of the batch inference job.
2033
+ #
2034
+ # @return [Types::GetModelInvocationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2035
+ #
2036
+ # * {Types::GetModelInvocationJobResponse#job_arn #job_arn} => String
2037
+ # * {Types::GetModelInvocationJobResponse#job_name #job_name} => String
2038
+ # * {Types::GetModelInvocationJobResponse#model_id #model_id} => String
2039
+ # * {Types::GetModelInvocationJobResponse#client_request_token #client_request_token} => String
2040
+ # * {Types::GetModelInvocationJobResponse#role_arn #role_arn} => String
2041
+ # * {Types::GetModelInvocationJobResponse#status #status} => String
2042
+ # * {Types::GetModelInvocationJobResponse#message #message} => String
2043
+ # * {Types::GetModelInvocationJobResponse#submit_time #submit_time} => Time
2044
+ # * {Types::GetModelInvocationJobResponse#last_modified_time #last_modified_time} => Time
2045
+ # * {Types::GetModelInvocationJobResponse#end_time #end_time} => Time
2046
+ # * {Types::GetModelInvocationJobResponse#input_data_config #input_data_config} => Types::ModelInvocationJobInputDataConfig
2047
+ # * {Types::GetModelInvocationJobResponse#output_data_config #output_data_config} => Types::ModelInvocationJobOutputDataConfig
2048
+ # * {Types::GetModelInvocationJobResponse#timeout_duration_in_hours #timeout_duration_in_hours} => Integer
2049
+ # * {Types::GetModelInvocationJobResponse#job_expiration_time #job_expiration_time} => Time
2050
+ #
2051
+ # @example Request syntax with placeholder values
2052
+ #
2053
+ # resp = client.get_model_invocation_job({
2054
+ # job_identifier: "ModelInvocationJobIdentifier", # required
2055
+ # })
2056
+ #
2057
+ # @example Response structure
2058
+ #
2059
+ # resp.job_arn #=> String
2060
+ # resp.job_name #=> String
2061
+ # resp.model_id #=> String
2062
+ # resp.client_request_token #=> String
2063
+ # resp.role_arn #=> String
2064
+ # resp.status #=> String, one of "Submitted", "InProgress", "Completed", "Failed", "Stopping", "Stopped", "PartiallyCompleted", "Expired", "Validating", "Scheduled"
2065
+ # resp.message #=> String
2066
+ # resp.submit_time #=> Time
2067
+ # resp.last_modified_time #=> Time
2068
+ # resp.end_time #=> Time
2069
+ # resp.input_data_config.s3_input_data_config.s3_input_format #=> String, one of "JSONL"
2070
+ # resp.input_data_config.s3_input_data_config.s3_uri #=> String
2071
+ # resp.output_data_config.s3_output_data_config.s3_uri #=> String
2072
+ # resp.output_data_config.s3_output_data_config.s3_encryption_key_id #=> String
2073
+ # resp.timeout_duration_in_hours #=> Integer
2074
+ # resp.job_expiration_time #=> Time
2075
+ #
2076
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationJob AWS API Documentation
2077
+ #
2078
+ # @overload get_model_invocation_job(params = {})
2079
+ # @param [Hash] params ({})
2080
+ def get_model_invocation_job(params = {}, options = {})
2081
+ req = build_request(:get_model_invocation_job, params)
2082
+ req.send_request(options)
2083
+ end
2084
+
1654
2085
  # Get the current configuration values for model invocation logging.
1655
2086
  #
1656
2087
  # @return [Types::GetModelInvocationLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1870,7 +2301,7 @@ module Aws::Bedrock
1870
2301
  # resp = client.list_evaluation_jobs({
1871
2302
  # creation_time_after: Time.now,
1872
2303
  # creation_time_before: Time.now,
1873
- # status_equals: "InProgress", # accepts InProgress, Completed, Failed, Stopping, Stopped
2304
+ # status_equals: "InProgress", # accepts InProgress, Completed, Failed, Stopping, Stopped, Deleting
1874
2305
  # name_contains: "EvaluationJobName",
1875
2306
  # max_results: 1,
1876
2307
  # next_token: "PaginationToken",
@@ -1884,7 +2315,7 @@ module Aws::Bedrock
1884
2315
  # resp.job_summaries #=> Array
1885
2316
  # resp.job_summaries[0].job_arn #=> String
1886
2317
  # resp.job_summaries[0].job_name #=> String
1887
- # resp.job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
2318
+ # resp.job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped", "Deleting"
1888
2319
  # resp.job_summaries[0].creation_time #=> Time
1889
2320
  # resp.job_summaries[0].job_type #=> String, one of "Human", "Automated"
1890
2321
  # resp.job_summaries[0].evaluation_task_types #=> Array
@@ -2034,6 +2465,80 @@ module Aws::Bedrock
2034
2465
  req.send_request(options)
2035
2466
  end
2036
2467
 
2468
+ # Returns a list of models you've imported. You can filter the results
2469
+ # to return based on one or more criteria. For more information, see
2470
+ # [Import a customized model][1] in the [Amazon Bedrock User Guide][2].
2471
+ #
2472
+ #
2473
+ #
2474
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
2475
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
2476
+ #
2477
+ # @option params [Time,DateTime,Date,Integer,String] :creation_time_before
2478
+ # Return imported models that created before the specified time.
2479
+ #
2480
+ # @option params [Time,DateTime,Date,Integer,String] :creation_time_after
2481
+ # Return imported models that were created after the specified time.
2482
+ #
2483
+ # @option params [String] :name_contains
2484
+ # Return imported models only if the model name contains these
2485
+ # characters.
2486
+ #
2487
+ # @option params [Integer] :max_results
2488
+ # The maximum number of results to return in the response. If the total
2489
+ # number of results is greater than this value, use the token returned
2490
+ # in the response in the `nextToken` field when making another request
2491
+ # to return the next batch of results.
2492
+ #
2493
+ # @option params [String] :next_token
2494
+ # If the total number of results is greater than the `maxResults` value
2495
+ # provided in the request, enter the token returned in the `nextToken`
2496
+ # field in the response in this field to return the next batch of
2497
+ # results.
2498
+ #
2499
+ # @option params [String] :sort_by
2500
+ # The field to sort by in the returned list of imported models.
2501
+ #
2502
+ # @option params [String] :sort_order
2503
+ # Specifies whetehr to sort the results in ascending or descending
2504
+ # order.
2505
+ #
2506
+ # @return [Types::ListImportedModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2507
+ #
2508
+ # * {Types::ListImportedModelsResponse#next_token #next_token} => String
2509
+ # * {Types::ListImportedModelsResponse#model_summaries #model_summaries} => Array&lt;Types::ImportedModelSummary&gt;
2510
+ #
2511
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2512
+ #
2513
+ # @example Request syntax with placeholder values
2514
+ #
2515
+ # resp = client.list_imported_models({
2516
+ # creation_time_before: Time.now,
2517
+ # creation_time_after: Time.now,
2518
+ # name_contains: "ImportedModelName",
2519
+ # max_results: 1,
2520
+ # next_token: "PaginationToken",
2521
+ # sort_by: "CreationTime", # accepts CreationTime
2522
+ # sort_order: "Ascending", # accepts Ascending, Descending
2523
+ # })
2524
+ #
2525
+ # @example Response structure
2526
+ #
2527
+ # resp.next_token #=> String
2528
+ # resp.model_summaries #=> Array
2529
+ # resp.model_summaries[0].model_arn #=> String
2530
+ # resp.model_summaries[0].model_name #=> String
2531
+ # resp.model_summaries[0].creation_time #=> Time
2532
+ #
2533
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListImportedModels AWS API Documentation
2534
+ #
2535
+ # @overload list_imported_models(params = {})
2536
+ # @param [Hash] params ({})
2537
+ def list_imported_models(params = {}, options = {})
2538
+ req = build_request(:list_imported_models, params)
2539
+ req.send_request(options)
2540
+ end
2541
+
2037
2542
  # Returns a list of model copy jobs that you have submitted. You can
2038
2543
  # filter the jobs to return based on one or more criteria. For more
2039
2544
  # information, see [Copy models to be used in other regions][1] in the
@@ -2220,6 +2725,180 @@ module Aws::Bedrock
2220
2725
  req.send_request(options)
2221
2726
  end
2222
2727
 
2728
+ # Returns a list of import jobs you've submitted. You can filter the
2729
+ # results to return based on one or more criteria. For more information,
2730
+ # see [Import a customized model][1] in the [Amazon Bedrock User
2731
+ # Guide][2].
2732
+ #
2733
+ #
2734
+ #
2735
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
2736
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
2737
+ #
2738
+ # @option params [Time,DateTime,Date,Integer,String] :creation_time_after
2739
+ # Return import jobs that were created after the specified time.
2740
+ #
2741
+ # @option params [Time,DateTime,Date,Integer,String] :creation_time_before
2742
+ # Return import jobs that were created before the specified time.
2743
+ #
2744
+ # @option params [String] :status_equals
2745
+ # Return imported jobs with the specified status.
2746
+ #
2747
+ # @option params [String] :name_contains
2748
+ # Return imported jobs only if the job name contains these characters.
2749
+ #
2750
+ # @option params [Integer] :max_results
2751
+ # The maximum number of results to return in the response. If the total
2752
+ # number of results is greater than this value, use the token returned
2753
+ # in the response in the `nextToken` field when making another request
2754
+ # to return the next batch of results.
2755
+ #
2756
+ # @option params [String] :next_token
2757
+ # If the total number of results is greater than the `maxResults` value
2758
+ # provided in the request, enter the token returned in the `nextToken`
2759
+ # field in the response in this field to return the next batch of
2760
+ # results.
2761
+ #
2762
+ # @option params [String] :sort_by
2763
+ # The field to sort by in the returned list of imported jobs.
2764
+ #
2765
+ # @option params [String] :sort_order
2766
+ # Specifies whether to sort the results in ascending or descending
2767
+ # order.
2768
+ #
2769
+ # @return [Types::ListModelImportJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2770
+ #
2771
+ # * {Types::ListModelImportJobsResponse#next_token #next_token} => String
2772
+ # * {Types::ListModelImportJobsResponse#model_import_job_summaries #model_import_job_summaries} => Array&lt;Types::ModelImportJobSummary&gt;
2773
+ #
2774
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2775
+ #
2776
+ # @example Request syntax with placeholder values
2777
+ #
2778
+ # resp = client.list_model_import_jobs({
2779
+ # creation_time_after: Time.now,
2780
+ # creation_time_before: Time.now,
2781
+ # status_equals: "InProgress", # accepts InProgress, Completed, Failed
2782
+ # name_contains: "JobName",
2783
+ # max_results: 1,
2784
+ # next_token: "PaginationToken",
2785
+ # sort_by: "CreationTime", # accepts CreationTime
2786
+ # sort_order: "Ascending", # accepts Ascending, Descending
2787
+ # })
2788
+ #
2789
+ # @example Response structure
2790
+ #
2791
+ # resp.next_token #=> String
2792
+ # resp.model_import_job_summaries #=> Array
2793
+ # resp.model_import_job_summaries[0].job_arn #=> String
2794
+ # resp.model_import_job_summaries[0].job_name #=> String
2795
+ # resp.model_import_job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed"
2796
+ # resp.model_import_job_summaries[0].last_modified_time #=> Time
2797
+ # resp.model_import_job_summaries[0].creation_time #=> Time
2798
+ # resp.model_import_job_summaries[0].end_time #=> Time
2799
+ # resp.model_import_job_summaries[0].imported_model_arn #=> String
2800
+ # resp.model_import_job_summaries[0].imported_model_name #=> String
2801
+ #
2802
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelImportJobs AWS API Documentation
2803
+ #
2804
+ # @overload list_model_import_jobs(params = {})
2805
+ # @param [Hash] params ({})
2806
+ def list_model_import_jobs(params = {}, options = {})
2807
+ req = build_request(:list_model_import_jobs, params)
2808
+ req.send_request(options)
2809
+ end
2810
+
2811
+ # Lists all batch inference jobs in the account. For more information,
2812
+ # see [View details about a batch inference job][1].
2813
+ #
2814
+ #
2815
+ #
2816
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-view
2817
+ #
2818
+ # @option params [Time,DateTime,Date,Integer,String] :submit_time_after
2819
+ # Specify a time to filter for batch inference jobs that were submitted
2820
+ # after the time you specify.
2821
+ #
2822
+ # @option params [Time,DateTime,Date,Integer,String] :submit_time_before
2823
+ # Specify a time to filter for batch inference jobs that were submitted
2824
+ # before the time you specify.
2825
+ #
2826
+ # @option params [String] :status_equals
2827
+ # Specify a status to filter for batch inference jobs whose statuses
2828
+ # match the string you specify.
2829
+ #
2830
+ # @option params [String] :name_contains
2831
+ # Specify a string to filter for batch inference jobs whose names
2832
+ # contain the string.
2833
+ #
2834
+ # @option params [Integer] :max_results
2835
+ # The maximum number of results to return. If there are more results
2836
+ # than the number that you specify, a `nextToken` value is returned. Use
2837
+ # the `nextToken` in a request to return the next batch of results.
2838
+ #
2839
+ # @option params [String] :next_token
2840
+ # If there were more results than the value you specified in the
2841
+ # `maxResults` field in a previous `ListModelInvocationJobs` request,
2842
+ # the response would have returned a `nextToken` value. To see the next
2843
+ # batch of results, send the `nextToken` value in another request.
2844
+ #
2845
+ # @option params [String] :sort_by
2846
+ # An attribute by which to sort the results.
2847
+ #
2848
+ # @option params [String] :sort_order
2849
+ # Specifies whether to sort the results by ascending or descending
2850
+ # order.
2851
+ #
2852
+ # @return [Types::ListModelInvocationJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2853
+ #
2854
+ # * {Types::ListModelInvocationJobsResponse#next_token #next_token} => String
2855
+ # * {Types::ListModelInvocationJobsResponse#invocation_job_summaries #invocation_job_summaries} => Array&lt;Types::ModelInvocationJobSummary&gt;
2856
+ #
2857
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2858
+ #
2859
+ # @example Request syntax with placeholder values
2860
+ #
2861
+ # resp = client.list_model_invocation_jobs({
2862
+ # submit_time_after: Time.now,
2863
+ # submit_time_before: Time.now,
2864
+ # status_equals: "Submitted", # accepts Submitted, InProgress, Completed, Failed, Stopping, Stopped, PartiallyCompleted, Expired, Validating, Scheduled
2865
+ # name_contains: "ModelInvocationJobName",
2866
+ # max_results: 1,
2867
+ # next_token: "PaginationToken",
2868
+ # sort_by: "CreationTime", # accepts CreationTime
2869
+ # sort_order: "Ascending", # accepts Ascending, Descending
2870
+ # })
2871
+ #
2872
+ # @example Response structure
2873
+ #
2874
+ # resp.next_token #=> String
2875
+ # resp.invocation_job_summaries #=> Array
2876
+ # resp.invocation_job_summaries[0].job_arn #=> String
2877
+ # resp.invocation_job_summaries[0].job_name #=> String
2878
+ # resp.invocation_job_summaries[0].model_id #=> String
2879
+ # resp.invocation_job_summaries[0].client_request_token #=> String
2880
+ # resp.invocation_job_summaries[0].role_arn #=> String
2881
+ # resp.invocation_job_summaries[0].status #=> String, one of "Submitted", "InProgress", "Completed", "Failed", "Stopping", "Stopped", "PartiallyCompleted", "Expired", "Validating", "Scheduled"
2882
+ # resp.invocation_job_summaries[0].message #=> String
2883
+ # resp.invocation_job_summaries[0].submit_time #=> Time
2884
+ # resp.invocation_job_summaries[0].last_modified_time #=> Time
2885
+ # resp.invocation_job_summaries[0].end_time #=> Time
2886
+ # resp.invocation_job_summaries[0].input_data_config.s3_input_data_config.s3_input_format #=> String, one of "JSONL"
2887
+ # resp.invocation_job_summaries[0].input_data_config.s3_input_data_config.s3_uri #=> String
2888
+ # resp.invocation_job_summaries[0].output_data_config.s3_output_data_config.s3_uri #=> String
2889
+ # resp.invocation_job_summaries[0].output_data_config.s3_output_data_config.s3_encryption_key_id #=> String
2890
+ # resp.invocation_job_summaries[0].timeout_duration_in_hours #=> Integer
2891
+ # resp.invocation_job_summaries[0].job_expiration_time #=> Time
2892
+ #
2893
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelInvocationJobs AWS API Documentation
2894
+ #
2895
+ # @overload list_model_invocation_jobs(params = {})
2896
+ # @param [Hash] params ({})
2897
+ def list_model_invocation_jobs(params = {}, options = {})
2898
+ req = build_request(:list_model_invocation_jobs, params)
2899
+ req.send_request(options)
2900
+ end
2901
+
2223
2902
  # Lists the Provisioned Throughputs in the account. For more
2224
2903
  # information, see [Provisioned Throughput][1] in the [Amazon Bedrock
2225
2904
  # User Guide][2].
@@ -2441,6 +3120,34 @@ module Aws::Bedrock
2441
3120
  req.send_request(options)
2442
3121
  end
2443
3122
 
3123
+ # Stops a batch inference job. You're only charged for tokens that were
3124
+ # already processed. For more information, see [Stop a batch inference
3125
+ # job][1].
3126
+ #
3127
+ #
3128
+ #
3129
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-stop
3130
+ #
3131
+ # @option params [required, String] :job_identifier
3132
+ # The Amazon Resource Name (ARN) of the batch inference job to stop.
3133
+ #
3134
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3135
+ #
3136
+ # @example Request syntax with placeholder values
3137
+ #
3138
+ # resp = client.stop_model_invocation_job({
3139
+ # job_identifier: "ModelInvocationJobIdentifier", # required
3140
+ # })
3141
+ #
3142
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopModelInvocationJob AWS API Documentation
3143
+ #
3144
+ # @overload stop_model_invocation_job(params = {})
3145
+ # @param [Hash] params ({})
3146
+ def stop_model_invocation_job(params = {}, options = {})
3147
+ req = build_request(:stop_model_invocation_job, params)
3148
+ req.send_request(options)
3149
+ end
3150
+
2444
3151
  # Associate tags with a resource. For more information, see [Tagging
2445
3152
  # resources][1] in the [Amazon Bedrock User Guide][2].
2446
3153
  #
@@ -2736,7 +3443,7 @@ module Aws::Bedrock
2736
3443
  params: params,
2737
3444
  config: config)
2738
3445
  context[:gem_name] = 'aws-sdk-bedrock'
2739
- context[:gem_version] = '1.14.0'
3446
+ context[:gem_version] = '1.16.0'
2740
3447
  Seahorse::Client::Request.new(handlers, context)
2741
3448
  end
2742
3449