aws-sdk-bedrock 1.15.0 → 1.16.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +423 -4
- data/lib/aws-sdk-bedrock/client_api.rb +264 -0
- 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 +567 -2
- data/lib/aws-sdk-bedrock.rb +2 -2
- data/sig/client.rbs +131 -2
- data/sig/types.rbs +162 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57d0abcb518e38e48c7fa930e859fec48d3a5dd44e89de3b7b47144793ebceab
|
4
|
+
data.tar.gz: 23af13d3c9e0cfa6028737a318577147d067964853f478c0c43f23fb70998e26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f21b5d871c3eadd8a2e798fe35094678168c26ba5d568aff90b78005e5531c3581a82a53d05613b3609925156ea546496b6e0dc9d2203028a4a2c3590b689934
|
7
|
+
data.tar.gz: 15c3e7a001d7ecd8970d76e5984cf1f00f80cd14468d0d4f7c871a57bc227599579b510afdd785f897907599d0b15ac904888c5e23d1e6a919d2fa9391134722
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.16.0 (2024-08-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon Bedrock Evaluation BatchDeleteEvaluationJob API allows customers to delete evaluation jobs under terminated evaluation job statuses - Stopped, Failed, or Completed. Customers can submit a batch of 25 evaluation jobs to be deleted at once.
|
8
|
+
|
4
9
|
1.15.0 (2024-08-19)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.0
|
@@ -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<Types::BatchDeleteEvaluationJobError>
|
439
|
+
# * {Types::BatchDeleteEvaluationJobResponse#evaluation_jobs #evaluation_jobs} => Array<Types::BatchDeleteEvaluationJobItem>
|
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,97 @@ 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
|
+
|
1026
1155
|
# Creates a job to invoke a model on multiple prompts (batch inference).
|
1027
1156
|
# Format your data according to [Format your inference data][1] and
|
1028
1157
|
# upload it to an Amazon S3 bucket. For more information, see [Create a
|
@@ -1304,6 +1433,35 @@ module Aws::Bedrock
|
|
1304
1433
|
req.send_request(options)
|
1305
1434
|
end
|
1306
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
|
+
|
1307
1465
|
# Delete the invocation logging.
|
1308
1466
|
#
|
1309
1467
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
@@ -1446,7 +1604,7 @@ module Aws::Bedrock
|
|
1446
1604
|
# @example Response structure
|
1447
1605
|
#
|
1448
1606
|
# resp.job_name #=> String
|
1449
|
-
# resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
1607
|
+
# resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped", "Deleting"
|
1450
1608
|
# resp.job_arn #=> String
|
1451
1609
|
# resp.job_description #=> String
|
1452
1610
|
# resp.role_arn #=> String
|
@@ -1621,6 +1779,48 @@ module Aws::Bedrock
|
|
1621
1779
|
req.send_request(options)
|
1622
1780
|
end
|
1623
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
|
+
|
1624
1824
|
# Retrieves information about a model copy job. For more information,
|
1625
1825
|
# see [Copy models to be used in other regions][1] in the [Amazon
|
1626
1826
|
# Bedrock User Guide][2].
|
@@ -1759,6 +1959,68 @@ module Aws::Bedrock
|
|
1759
1959
|
req.send_request(options)
|
1760
1960
|
end
|
1761
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
|
+
|
1762
2024
|
# Gets details about a batch inference job. For more information, see
|
1763
2025
|
# [View details about a batch inference job][1]
|
1764
2026
|
#
|
@@ -2039,7 +2301,7 @@ module Aws::Bedrock
|
|
2039
2301
|
# resp = client.list_evaluation_jobs({
|
2040
2302
|
# creation_time_after: Time.now,
|
2041
2303
|
# creation_time_before: Time.now,
|
2042
|
-
# status_equals: "InProgress", # accepts InProgress, Completed, Failed, Stopping, Stopped
|
2304
|
+
# status_equals: "InProgress", # accepts InProgress, Completed, Failed, Stopping, Stopped, Deleting
|
2043
2305
|
# name_contains: "EvaluationJobName",
|
2044
2306
|
# max_results: 1,
|
2045
2307
|
# next_token: "PaginationToken",
|
@@ -2053,7 +2315,7 @@ module Aws::Bedrock
|
|
2053
2315
|
# resp.job_summaries #=> Array
|
2054
2316
|
# resp.job_summaries[0].job_arn #=> String
|
2055
2317
|
# resp.job_summaries[0].job_name #=> String
|
2056
|
-
# 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"
|
2057
2319
|
# resp.job_summaries[0].creation_time #=> Time
|
2058
2320
|
# resp.job_summaries[0].job_type #=> String, one of "Human", "Automated"
|
2059
2321
|
# resp.job_summaries[0].evaluation_task_types #=> Array
|
@@ -2203,6 +2465,80 @@ module Aws::Bedrock
|
|
2203
2465
|
req.send_request(options)
|
2204
2466
|
end
|
2205
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<Types::ImportedModelSummary>
|
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
|
+
|
2206
2542
|
# Returns a list of model copy jobs that you have submitted. You can
|
2207
2543
|
# filter the jobs to return based on one or more criteria. For more
|
2208
2544
|
# information, see [Copy models to be used in other regions][1] in the
|
@@ -2389,6 +2725,89 @@ module Aws::Bedrock
|
|
2389
2725
|
req.send_request(options)
|
2390
2726
|
end
|
2391
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<Types::ModelImportJobSummary>
|
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
|
+
|
2392
2811
|
# Lists all batch inference jobs in the account. For more information,
|
2393
2812
|
# see [View details about a batch inference job][1].
|
2394
2813
|
#
|
@@ -3024,7 +3443,7 @@ module Aws::Bedrock
|
|
3024
3443
|
params: params,
|
3025
3444
|
config: config)
|
3026
3445
|
context[:gem_name] = 'aws-sdk-bedrock'
|
3027
|
-
context[:gem_version] = '1.
|
3446
|
+
context[:gem_version] = '1.16.0'
|
3028
3447
|
Seahorse::Client::Request.new(handlers, context)
|
3029
3448
|
end
|
3030
3449
|
|