aws-sdk-bedrock 1.15.0 → 1.17.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 +527 -12
- data/lib/aws-sdk-bedrock/client_api.rb +350 -0
- data/lib/aws-sdk-bedrock/endpoints.rb +126 -0
- data/lib/aws-sdk-bedrock/plugins/endpoints.rb +18 -0
- data/lib/aws-sdk-bedrock/types.rb +757 -13
- data/lib/aws-sdk-bedrock.rb +2 -2
- data/sig/client.rbs +161 -2
- data/sig/types.rbs +210 -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: 2e08157418d6bffb781860dadaef516b880ca4ff99e9bfd12f8d044ddc68e6ab
|
4
|
+
data.tar.gz: 80885b2c4b6f8f650855110b002d9b6203d893c5567e469b34d01678a335c535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c199f8f19aae669646e374f9d8a2cff242ceba8d451a7f22654e923843e84cdb1e2373d0d624fb514d371ea43d7e40e1e55fef75d821297d1f49ee242c909a5
|
7
|
+
data.tar.gz: a28428563f87cfecd9107611fbf8c07bb9a86b21747512df2d9618c185b238d3c56a5f9cd6c0d6bb8a0a8a627fd3014988361b91add515d1c81731d35eeb6d44
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.17.0 (2024-08-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon Bedrock SDK updates for Inference Profile.
|
8
|
+
|
9
|
+
1.16.0 (2024-08-22)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* 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.
|
13
|
+
|
4
14
|
1.15.0 (2024-08-19)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.17.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,20 +1061,109 @@ module Aws::Bedrock
|
|
1023
1061
|
req.send_request(options)
|
1024
1062
|
end
|
1025
1063
|
|
1026
|
-
# Creates a job to
|
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 batch inference job to invoke a model on multiple prompts.
|
1027
1156
|
# Format your data according to [Format your inference data][1] and
|
1028
|
-
# upload it to an Amazon S3 bucket. For more information, see [
|
1029
|
-
# batch inference
|
1157
|
+
# upload it to an Amazon S3 bucket. For more information, see [Process
|
1158
|
+
# multiple prompts with batch inference][2].
|
1030
1159
|
#
|
1031
1160
|
# The response returns a `jobArn` that you can use to stop or get
|
1032
|
-
# details about the job.
|
1033
|
-
# a [GetModelCustomizationJob][3] request.
|
1161
|
+
# details about the job.
|
1034
1162
|
#
|
1035
1163
|
#
|
1036
1164
|
#
|
1037
|
-
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-
|
1038
|
-
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference
|
1039
|
-
# [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelCustomizationJob.html
|
1165
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data
|
1166
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html
|
1040
1167
|
#
|
1041
1168
|
# @option params [required, String] :job_name
|
1042
1169
|
# A name to give the batch inference job.
|
@@ -1304,6 +1431,35 @@ module Aws::Bedrock
|
|
1304
1431
|
req.send_request(options)
|
1305
1432
|
end
|
1306
1433
|
|
1434
|
+
# Deletes a custom model that you imported earlier. For more
|
1435
|
+
# information, see [Import a customized model][1] in the [Amazon Bedrock
|
1436
|
+
# User Guide][2].
|
1437
|
+
#
|
1438
|
+
#
|
1439
|
+
#
|
1440
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
1441
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
1442
|
+
#
|
1443
|
+
# @option params [required, String] :model_identifier
|
1444
|
+
# Name of the imported model to delete.
|
1445
|
+
#
|
1446
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1447
|
+
#
|
1448
|
+
# @example Request syntax with placeholder values
|
1449
|
+
#
|
1450
|
+
# resp = client.delete_imported_model({
|
1451
|
+
# model_identifier: "ImportedModelIdentifier", # required
|
1452
|
+
# })
|
1453
|
+
#
|
1454
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteImportedModel AWS API Documentation
|
1455
|
+
#
|
1456
|
+
# @overload delete_imported_model(params = {})
|
1457
|
+
# @param [Hash] params ({})
|
1458
|
+
def delete_imported_model(params = {}, options = {})
|
1459
|
+
req = build_request(:delete_imported_model, params)
|
1460
|
+
req.send_request(options)
|
1461
|
+
end
|
1462
|
+
|
1307
1463
|
# Delete the invocation logging.
|
1308
1464
|
#
|
1309
1465
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
@@ -1446,7 +1602,7 @@ module Aws::Bedrock
|
|
1446
1602
|
# @example Response structure
|
1447
1603
|
#
|
1448
1604
|
# resp.job_name #=> String
|
1449
|
-
# resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
1605
|
+
# resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped", "Deleting"
|
1450
1606
|
# resp.job_arn #=> String
|
1451
1607
|
# resp.job_description #=> String
|
1452
1608
|
# resp.role_arn #=> String
|
@@ -1621,6 +1777,94 @@ module Aws::Bedrock
|
|
1621
1777
|
req.send_request(options)
|
1622
1778
|
end
|
1623
1779
|
|
1780
|
+
# Gets properties associated with a customized model you imported.
|
1781
|
+
#
|
1782
|
+
# @option params [required, String] :model_identifier
|
1783
|
+
# Name or Amazon Resource Name (ARN) of the imported model.
|
1784
|
+
#
|
1785
|
+
# @return [Types::GetImportedModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1786
|
+
#
|
1787
|
+
# * {Types::GetImportedModelResponse#model_arn #model_arn} => String
|
1788
|
+
# * {Types::GetImportedModelResponse#model_name #model_name} => String
|
1789
|
+
# * {Types::GetImportedModelResponse#job_name #job_name} => String
|
1790
|
+
# * {Types::GetImportedModelResponse#job_arn #job_arn} => String
|
1791
|
+
# * {Types::GetImportedModelResponse#model_data_source #model_data_source} => Types::ModelDataSource
|
1792
|
+
# * {Types::GetImportedModelResponse#creation_time #creation_time} => Time
|
1793
|
+
# * {Types::GetImportedModelResponse#model_architecture #model_architecture} => String
|
1794
|
+
# * {Types::GetImportedModelResponse#model_kms_key_arn #model_kms_key_arn} => String
|
1795
|
+
#
|
1796
|
+
# @example Request syntax with placeholder values
|
1797
|
+
#
|
1798
|
+
# resp = client.get_imported_model({
|
1799
|
+
# model_identifier: "ImportedModelIdentifier", # required
|
1800
|
+
# })
|
1801
|
+
#
|
1802
|
+
# @example Response structure
|
1803
|
+
#
|
1804
|
+
# resp.model_arn #=> String
|
1805
|
+
# resp.model_name #=> String
|
1806
|
+
# resp.job_name #=> String
|
1807
|
+
# resp.job_arn #=> String
|
1808
|
+
# resp.model_data_source.s3_data_source.s3_uri #=> String
|
1809
|
+
# resp.creation_time #=> Time
|
1810
|
+
# resp.model_architecture #=> String
|
1811
|
+
# resp.model_kms_key_arn #=> String
|
1812
|
+
#
|
1813
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetImportedModel AWS API Documentation
|
1814
|
+
#
|
1815
|
+
# @overload get_imported_model(params = {})
|
1816
|
+
# @param [Hash] params ({})
|
1817
|
+
def get_imported_model(params = {}, options = {})
|
1818
|
+
req = build_request(:get_imported_model, params)
|
1819
|
+
req.send_request(options)
|
1820
|
+
end
|
1821
|
+
|
1822
|
+
# Gets information about an inference profile. For more information, see
|
1823
|
+
# the Amazon Bedrock User Guide.
|
1824
|
+
#
|
1825
|
+
# @option params [required, String] :inference_profile_identifier
|
1826
|
+
# The unique identifier of the inference profile.
|
1827
|
+
#
|
1828
|
+
# @return [Types::GetInferenceProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1829
|
+
#
|
1830
|
+
# * {Types::GetInferenceProfileResponse#inference_profile_name #inference_profile_name} => String
|
1831
|
+
# * {Types::GetInferenceProfileResponse#models #models} => Array<Types::InferenceProfileModel>
|
1832
|
+
# * {Types::GetInferenceProfileResponse#description #description} => String
|
1833
|
+
# * {Types::GetInferenceProfileResponse#created_at #created_at} => Time
|
1834
|
+
# * {Types::GetInferenceProfileResponse#updated_at #updated_at} => Time
|
1835
|
+
# * {Types::GetInferenceProfileResponse#inference_profile_arn #inference_profile_arn} => String
|
1836
|
+
# * {Types::GetInferenceProfileResponse#inference_profile_id #inference_profile_id} => String
|
1837
|
+
# * {Types::GetInferenceProfileResponse#status #status} => String
|
1838
|
+
# * {Types::GetInferenceProfileResponse#type #type} => String
|
1839
|
+
#
|
1840
|
+
# @example Request syntax with placeholder values
|
1841
|
+
#
|
1842
|
+
# resp = client.get_inference_profile({
|
1843
|
+
# inference_profile_identifier: "InferenceProfileIdentifier", # required
|
1844
|
+
# })
|
1845
|
+
#
|
1846
|
+
# @example Response structure
|
1847
|
+
#
|
1848
|
+
# resp.inference_profile_name #=> String
|
1849
|
+
# resp.models #=> Array
|
1850
|
+
# resp.models[0].model_arn #=> String
|
1851
|
+
# resp.description #=> String
|
1852
|
+
# resp.created_at #=> Time
|
1853
|
+
# resp.updated_at #=> Time
|
1854
|
+
# resp.inference_profile_arn #=> String
|
1855
|
+
# resp.inference_profile_id #=> String
|
1856
|
+
# resp.status #=> String, one of "ACTIVE"
|
1857
|
+
# resp.type #=> String, one of "SYSTEM_DEFINED"
|
1858
|
+
#
|
1859
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetInferenceProfile AWS API Documentation
|
1860
|
+
#
|
1861
|
+
# @overload get_inference_profile(params = {})
|
1862
|
+
# @param [Hash] params ({})
|
1863
|
+
def get_inference_profile(params = {}, options = {})
|
1864
|
+
req = build_request(:get_inference_profile, params)
|
1865
|
+
req.send_request(options)
|
1866
|
+
end
|
1867
|
+
|
1624
1868
|
# Retrieves information about a model copy job. For more information,
|
1625
1869
|
# see [Copy models to be used in other regions][1] in the [Amazon
|
1626
1870
|
# Bedrock User Guide][2].
|
@@ -1759,6 +2003,68 @@ module Aws::Bedrock
|
|
1759
2003
|
req.send_request(options)
|
1760
2004
|
end
|
1761
2005
|
|
2006
|
+
# Retrieves the properties associated with import model job, including
|
2007
|
+
# the status of the job. For more information, see [Import a customized
|
2008
|
+
# model][1] in the [Amazon Bedrock User Guide][2].
|
2009
|
+
#
|
2010
|
+
#
|
2011
|
+
#
|
2012
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
2013
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2014
|
+
#
|
2015
|
+
# @option params [required, String] :job_identifier
|
2016
|
+
# The identifier of the import job.
|
2017
|
+
#
|
2018
|
+
# @return [Types::GetModelImportJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2019
|
+
#
|
2020
|
+
# * {Types::GetModelImportJobResponse#job_arn #job_arn} => String
|
2021
|
+
# * {Types::GetModelImportJobResponse#job_name #job_name} => String
|
2022
|
+
# * {Types::GetModelImportJobResponse#imported_model_name #imported_model_name} => String
|
2023
|
+
# * {Types::GetModelImportJobResponse#imported_model_arn #imported_model_arn} => String
|
2024
|
+
# * {Types::GetModelImportJobResponse#role_arn #role_arn} => String
|
2025
|
+
# * {Types::GetModelImportJobResponse#model_data_source #model_data_source} => Types::ModelDataSource
|
2026
|
+
# * {Types::GetModelImportJobResponse#status #status} => String
|
2027
|
+
# * {Types::GetModelImportJobResponse#failure_message #failure_message} => String
|
2028
|
+
# * {Types::GetModelImportJobResponse#creation_time #creation_time} => Time
|
2029
|
+
# * {Types::GetModelImportJobResponse#last_modified_time #last_modified_time} => Time
|
2030
|
+
# * {Types::GetModelImportJobResponse#end_time #end_time} => Time
|
2031
|
+
# * {Types::GetModelImportJobResponse#vpc_config #vpc_config} => Types::VpcConfig
|
2032
|
+
# * {Types::GetModelImportJobResponse#imported_model_kms_key_arn #imported_model_kms_key_arn} => String
|
2033
|
+
#
|
2034
|
+
# @example Request syntax with placeholder values
|
2035
|
+
#
|
2036
|
+
# resp = client.get_model_import_job({
|
2037
|
+
# job_identifier: "ModelImportJobIdentifier", # required
|
2038
|
+
# })
|
2039
|
+
#
|
2040
|
+
# @example Response structure
|
2041
|
+
#
|
2042
|
+
# resp.job_arn #=> String
|
2043
|
+
# resp.job_name #=> String
|
2044
|
+
# resp.imported_model_name #=> String
|
2045
|
+
# resp.imported_model_arn #=> String
|
2046
|
+
# resp.role_arn #=> String
|
2047
|
+
# resp.model_data_source.s3_data_source.s3_uri #=> String
|
2048
|
+
# resp.status #=> String, one of "InProgress", "Completed", "Failed"
|
2049
|
+
# resp.failure_message #=> String
|
2050
|
+
# resp.creation_time #=> Time
|
2051
|
+
# resp.last_modified_time #=> Time
|
2052
|
+
# resp.end_time #=> Time
|
2053
|
+
# resp.vpc_config.subnet_ids #=> Array
|
2054
|
+
# resp.vpc_config.subnet_ids[0] #=> String
|
2055
|
+
# resp.vpc_config.security_group_ids #=> Array
|
2056
|
+
# resp.vpc_config.security_group_ids[0] #=> String
|
2057
|
+
# resp.imported_model_kms_key_arn #=> String
|
2058
|
+
#
|
2059
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelImportJob AWS API Documentation
|
2060
|
+
#
|
2061
|
+
# @overload get_model_import_job(params = {})
|
2062
|
+
# @param [Hash] params ({})
|
2063
|
+
def get_model_import_job(params = {}, options = {})
|
2064
|
+
req = build_request(:get_model_import_job, params)
|
2065
|
+
req.send_request(options)
|
2066
|
+
end
|
2067
|
+
|
1762
2068
|
# Gets details about a batch inference job. For more information, see
|
1763
2069
|
# [View details about a batch inference job][1]
|
1764
2070
|
#
|
@@ -2039,7 +2345,7 @@ module Aws::Bedrock
|
|
2039
2345
|
# resp = client.list_evaluation_jobs({
|
2040
2346
|
# creation_time_after: Time.now,
|
2041
2347
|
# creation_time_before: Time.now,
|
2042
|
-
# status_equals: "InProgress", # accepts InProgress, Completed, Failed, Stopping, Stopped
|
2348
|
+
# status_equals: "InProgress", # accepts InProgress, Completed, Failed, Stopping, Stopped, Deleting
|
2043
2349
|
# name_contains: "EvaluationJobName",
|
2044
2350
|
# max_results: 1,
|
2045
2351
|
# next_token: "PaginationToken",
|
@@ -2053,7 +2359,7 @@ module Aws::Bedrock
|
|
2053
2359
|
# resp.job_summaries #=> Array
|
2054
2360
|
# resp.job_summaries[0].job_arn #=> String
|
2055
2361
|
# resp.job_summaries[0].job_name #=> String
|
2056
|
-
# resp.job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
2362
|
+
# resp.job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped", "Deleting"
|
2057
2363
|
# resp.job_summaries[0].creation_time #=> Time
|
2058
2364
|
# resp.job_summaries[0].job_type #=> String, one of "Human", "Automated"
|
2059
2365
|
# resp.job_summaries[0].evaluation_task_types #=> Array
|
@@ -2203,6 +2509,132 @@ module Aws::Bedrock
|
|
2203
2509
|
req.send_request(options)
|
2204
2510
|
end
|
2205
2511
|
|
2512
|
+
# Returns a list of models you've imported. You can filter the results
|
2513
|
+
# to return based on one or more criteria. For more information, see
|
2514
|
+
# [Import a customized model][1] in the [Amazon Bedrock User Guide][2].
|
2515
|
+
#
|
2516
|
+
#
|
2517
|
+
#
|
2518
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
2519
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2520
|
+
#
|
2521
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
2522
|
+
# Return imported models that created before the specified time.
|
2523
|
+
#
|
2524
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
2525
|
+
# Return imported models that were created after the specified time.
|
2526
|
+
#
|
2527
|
+
# @option params [String] :name_contains
|
2528
|
+
# Return imported models only if the model name contains these
|
2529
|
+
# characters.
|
2530
|
+
#
|
2531
|
+
# @option params [Integer] :max_results
|
2532
|
+
# The maximum number of results to return in the response. If the total
|
2533
|
+
# number of results is greater than this value, use the token returned
|
2534
|
+
# in the response in the `nextToken` field when making another request
|
2535
|
+
# to return the next batch of results.
|
2536
|
+
#
|
2537
|
+
# @option params [String] :next_token
|
2538
|
+
# If the total number of results is greater than the `maxResults` value
|
2539
|
+
# provided in the request, enter the token returned in the `nextToken`
|
2540
|
+
# field in the response in this field to return the next batch of
|
2541
|
+
# results.
|
2542
|
+
#
|
2543
|
+
# @option params [String] :sort_by
|
2544
|
+
# The field to sort by in the returned list of imported models.
|
2545
|
+
#
|
2546
|
+
# @option params [String] :sort_order
|
2547
|
+
# Specifies whetehr to sort the results in ascending or descending
|
2548
|
+
# order.
|
2549
|
+
#
|
2550
|
+
# @return [Types::ListImportedModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2551
|
+
#
|
2552
|
+
# * {Types::ListImportedModelsResponse#next_token #next_token} => String
|
2553
|
+
# * {Types::ListImportedModelsResponse#model_summaries #model_summaries} => Array<Types::ImportedModelSummary>
|
2554
|
+
#
|
2555
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2556
|
+
#
|
2557
|
+
# @example Request syntax with placeholder values
|
2558
|
+
#
|
2559
|
+
# resp = client.list_imported_models({
|
2560
|
+
# creation_time_before: Time.now,
|
2561
|
+
# creation_time_after: Time.now,
|
2562
|
+
# name_contains: "ImportedModelName",
|
2563
|
+
# max_results: 1,
|
2564
|
+
# next_token: "PaginationToken",
|
2565
|
+
# sort_by: "CreationTime", # accepts CreationTime
|
2566
|
+
# sort_order: "Ascending", # accepts Ascending, Descending
|
2567
|
+
# })
|
2568
|
+
#
|
2569
|
+
# @example Response structure
|
2570
|
+
#
|
2571
|
+
# resp.next_token #=> String
|
2572
|
+
# resp.model_summaries #=> Array
|
2573
|
+
# resp.model_summaries[0].model_arn #=> String
|
2574
|
+
# resp.model_summaries[0].model_name #=> String
|
2575
|
+
# resp.model_summaries[0].creation_time #=> Time
|
2576
|
+
#
|
2577
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListImportedModels AWS API Documentation
|
2578
|
+
#
|
2579
|
+
# @overload list_imported_models(params = {})
|
2580
|
+
# @param [Hash] params ({})
|
2581
|
+
def list_imported_models(params = {}, options = {})
|
2582
|
+
req = build_request(:list_imported_models, params)
|
2583
|
+
req.send_request(options)
|
2584
|
+
end
|
2585
|
+
|
2586
|
+
# Returns a list of inference profiles that you can use.
|
2587
|
+
#
|
2588
|
+
# @option params [Integer] :max_results
|
2589
|
+
# The maximum number of results to return in the response. If the total
|
2590
|
+
# number of results is greater than this value, use the token returned
|
2591
|
+
# in the response in the `nextToken` field when making another request
|
2592
|
+
# to return the next batch of results.
|
2593
|
+
#
|
2594
|
+
# @option params [String] :next_token
|
2595
|
+
# If the total number of results is greater than the `maxResults` value
|
2596
|
+
# provided in the request, enter the token returned in the `nextToken`
|
2597
|
+
# field in the response in this field to return the next batch of
|
2598
|
+
# results.
|
2599
|
+
#
|
2600
|
+
# @return [Types::ListInferenceProfilesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2601
|
+
#
|
2602
|
+
# * {Types::ListInferenceProfilesResponse#inference_profile_summaries #inference_profile_summaries} => Array<Types::InferenceProfileSummary>
|
2603
|
+
# * {Types::ListInferenceProfilesResponse#next_token #next_token} => String
|
2604
|
+
#
|
2605
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2606
|
+
#
|
2607
|
+
# @example Request syntax with placeholder values
|
2608
|
+
#
|
2609
|
+
# resp = client.list_inference_profiles({
|
2610
|
+
# max_results: 1,
|
2611
|
+
# next_token: "PaginationToken",
|
2612
|
+
# })
|
2613
|
+
#
|
2614
|
+
# @example Response structure
|
2615
|
+
#
|
2616
|
+
# resp.inference_profile_summaries #=> Array
|
2617
|
+
# resp.inference_profile_summaries[0].inference_profile_name #=> String
|
2618
|
+
# resp.inference_profile_summaries[0].models #=> Array
|
2619
|
+
# resp.inference_profile_summaries[0].models[0].model_arn #=> String
|
2620
|
+
# resp.inference_profile_summaries[0].description #=> String
|
2621
|
+
# resp.inference_profile_summaries[0].created_at #=> Time
|
2622
|
+
# resp.inference_profile_summaries[0].updated_at #=> Time
|
2623
|
+
# resp.inference_profile_summaries[0].inference_profile_arn #=> String
|
2624
|
+
# resp.inference_profile_summaries[0].inference_profile_id #=> String
|
2625
|
+
# resp.inference_profile_summaries[0].status #=> String, one of "ACTIVE"
|
2626
|
+
# resp.inference_profile_summaries[0].type #=> String, one of "SYSTEM_DEFINED"
|
2627
|
+
# resp.next_token #=> String
|
2628
|
+
#
|
2629
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListInferenceProfiles AWS API Documentation
|
2630
|
+
#
|
2631
|
+
# @overload list_inference_profiles(params = {})
|
2632
|
+
# @param [Hash] params ({})
|
2633
|
+
def list_inference_profiles(params = {}, options = {})
|
2634
|
+
req = build_request(:list_inference_profiles, params)
|
2635
|
+
req.send_request(options)
|
2636
|
+
end
|
2637
|
+
|
2206
2638
|
# Returns a list of model copy jobs that you have submitted. You can
|
2207
2639
|
# filter the jobs to return based on one or more criteria. For more
|
2208
2640
|
# information, see [Copy models to be used in other regions][1] in the
|
@@ -2389,6 +2821,89 @@ module Aws::Bedrock
|
|
2389
2821
|
req.send_request(options)
|
2390
2822
|
end
|
2391
2823
|
|
2824
|
+
# Returns a list of import jobs you've submitted. You can filter the
|
2825
|
+
# results to return based on one or more criteria. For more information,
|
2826
|
+
# see [Import a customized model][1] in the [Amazon Bedrock User
|
2827
|
+
# Guide][2].
|
2828
|
+
#
|
2829
|
+
#
|
2830
|
+
#
|
2831
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
2832
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
2833
|
+
#
|
2834
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
2835
|
+
# Return import jobs that were created after the specified time.
|
2836
|
+
#
|
2837
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
2838
|
+
# Return import jobs that were created before the specified time.
|
2839
|
+
#
|
2840
|
+
# @option params [String] :status_equals
|
2841
|
+
# Return imported jobs with the specified status.
|
2842
|
+
#
|
2843
|
+
# @option params [String] :name_contains
|
2844
|
+
# Return imported jobs only if the job name contains these characters.
|
2845
|
+
#
|
2846
|
+
# @option params [Integer] :max_results
|
2847
|
+
# The maximum number of results to return in the response. If the total
|
2848
|
+
# number of results is greater than this value, use the token returned
|
2849
|
+
# in the response in the `nextToken` field when making another request
|
2850
|
+
# to return the next batch of results.
|
2851
|
+
#
|
2852
|
+
# @option params [String] :next_token
|
2853
|
+
# If the total number of results is greater than the `maxResults` value
|
2854
|
+
# provided in the request, enter the token returned in the `nextToken`
|
2855
|
+
# field in the response in this field to return the next batch of
|
2856
|
+
# results.
|
2857
|
+
#
|
2858
|
+
# @option params [String] :sort_by
|
2859
|
+
# The field to sort by in the returned list of imported jobs.
|
2860
|
+
#
|
2861
|
+
# @option params [String] :sort_order
|
2862
|
+
# Specifies whether to sort the results in ascending or descending
|
2863
|
+
# order.
|
2864
|
+
#
|
2865
|
+
# @return [Types::ListModelImportJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2866
|
+
#
|
2867
|
+
# * {Types::ListModelImportJobsResponse#next_token #next_token} => String
|
2868
|
+
# * {Types::ListModelImportJobsResponse#model_import_job_summaries #model_import_job_summaries} => Array<Types::ModelImportJobSummary>
|
2869
|
+
#
|
2870
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2871
|
+
#
|
2872
|
+
# @example Request syntax with placeholder values
|
2873
|
+
#
|
2874
|
+
# resp = client.list_model_import_jobs({
|
2875
|
+
# creation_time_after: Time.now,
|
2876
|
+
# creation_time_before: Time.now,
|
2877
|
+
# status_equals: "InProgress", # accepts InProgress, Completed, Failed
|
2878
|
+
# name_contains: "JobName",
|
2879
|
+
# max_results: 1,
|
2880
|
+
# next_token: "PaginationToken",
|
2881
|
+
# sort_by: "CreationTime", # accepts CreationTime
|
2882
|
+
# sort_order: "Ascending", # accepts Ascending, Descending
|
2883
|
+
# })
|
2884
|
+
#
|
2885
|
+
# @example Response structure
|
2886
|
+
#
|
2887
|
+
# resp.next_token #=> String
|
2888
|
+
# resp.model_import_job_summaries #=> Array
|
2889
|
+
# resp.model_import_job_summaries[0].job_arn #=> String
|
2890
|
+
# resp.model_import_job_summaries[0].job_name #=> String
|
2891
|
+
# resp.model_import_job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed"
|
2892
|
+
# resp.model_import_job_summaries[0].last_modified_time #=> Time
|
2893
|
+
# resp.model_import_job_summaries[0].creation_time #=> Time
|
2894
|
+
# resp.model_import_job_summaries[0].end_time #=> Time
|
2895
|
+
# resp.model_import_job_summaries[0].imported_model_arn #=> String
|
2896
|
+
# resp.model_import_job_summaries[0].imported_model_name #=> String
|
2897
|
+
#
|
2898
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelImportJobs AWS API Documentation
|
2899
|
+
#
|
2900
|
+
# @overload list_model_import_jobs(params = {})
|
2901
|
+
# @param [Hash] params ({})
|
2902
|
+
def list_model_import_jobs(params = {}, options = {})
|
2903
|
+
req = build_request(:list_model_import_jobs, params)
|
2904
|
+
req.send_request(options)
|
2905
|
+
end
|
2906
|
+
|
2392
2907
|
# Lists all batch inference jobs in the account. For more information,
|
2393
2908
|
# see [View details about a batch inference job][1].
|
2394
2909
|
#
|
@@ -3024,7 +3539,7 @@ module Aws::Bedrock
|
|
3024
3539
|
params: params,
|
3025
3540
|
config: config)
|
3026
3541
|
context[:gem_name] = 'aws-sdk-bedrock'
|
3027
|
-
context[:gem_version] = '1.
|
3542
|
+
context[:gem_version] = '1.17.0'
|
3028
3543
|
Seahorse::Client::Request.new(handlers, context)
|
3029
3544
|
end
|
3030
3545
|
|