aws-sdk-bedrock 1.52.0 → 1.54.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 +387 -1
- data/lib/aws-sdk-bedrock/client_api.rb +191 -1
- data/lib/aws-sdk-bedrock/types.rb +510 -1
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +136 -0
- data/sig/types.rbs +128 -0
- metadata +1 -1
data/sig/client.rbs
CHANGED
@@ -112,6 +112,25 @@ module Aws
|
|
112
112
|
) -> _CreateCustomModelResponseSuccess
|
113
113
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelResponseSuccess
|
114
114
|
|
115
|
+
interface _CreateCustomModelDeploymentResponseSuccess
|
116
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomModelDeploymentResponse]
|
117
|
+
def custom_model_deployment_arn: () -> ::String
|
118
|
+
end
|
119
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_custom_model_deployment-instance_method
|
120
|
+
def create_custom_model_deployment: (
|
121
|
+
model_deployment_name: ::String,
|
122
|
+
model_arn: ::String,
|
123
|
+
?description: ::String,
|
124
|
+
?tags: Array[
|
125
|
+
{
|
126
|
+
key: ::String,
|
127
|
+
value: ::String
|
128
|
+
},
|
129
|
+
],
|
130
|
+
?client_request_token: ::String
|
131
|
+
) -> _CreateCustomModelDeploymentResponseSuccess
|
132
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelDeploymentResponseSuccess
|
133
|
+
|
115
134
|
interface _CreateEvaluationJobResponseSuccess
|
116
135
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateEvaluationJobResponse]
|
117
136
|
def job_arn: () -> ::String
|
@@ -290,6 +309,42 @@ module Aws
|
|
290
309
|
or_all: Array[
|
291
310
|
untyped,
|
292
311
|
]?
|
312
|
+
}?,
|
313
|
+
implicit_filter_configuration: {
|
314
|
+
metadata_attributes: Array[
|
315
|
+
{
|
316
|
+
key: ::String,
|
317
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
|
318
|
+
description: ::String
|
319
|
+
},
|
320
|
+
],
|
321
|
+
model_arn: ::String
|
322
|
+
}?,
|
323
|
+
reranking_configuration: {
|
324
|
+
type: ("BEDROCK_RERANKING_MODEL"),
|
325
|
+
bedrock_reranking_configuration: {
|
326
|
+
model_configuration: {
|
327
|
+
model_arn: ::String,
|
328
|
+
additional_model_request_fields: Hash[::String, {
|
329
|
+
}]?
|
330
|
+
},
|
331
|
+
number_of_reranked_results: ::Integer?,
|
332
|
+
metadata_configuration: {
|
333
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
334
|
+
selective_mode_configuration: {
|
335
|
+
fields_to_include: Array[
|
336
|
+
{
|
337
|
+
field_name: ::String
|
338
|
+
},
|
339
|
+
]?,
|
340
|
+
fields_to_exclude: Array[
|
341
|
+
{
|
342
|
+
field_name: ::String
|
343
|
+
},
|
344
|
+
]?
|
345
|
+
}?
|
346
|
+
}?
|
347
|
+
}?
|
293
348
|
}?
|
294
349
|
}
|
295
350
|
}
|
@@ -365,6 +420,42 @@ module Aws
|
|
365
420
|
or_all: Array[
|
366
421
|
untyped,
|
367
422
|
]?
|
423
|
+
}?,
|
424
|
+
implicit_filter_configuration: {
|
425
|
+
metadata_attributes: Array[
|
426
|
+
{
|
427
|
+
key: ::String,
|
428
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
|
429
|
+
description: ::String
|
430
|
+
},
|
431
|
+
],
|
432
|
+
model_arn: ::String
|
433
|
+
}?,
|
434
|
+
reranking_configuration: {
|
435
|
+
type: ("BEDROCK_RERANKING_MODEL"),
|
436
|
+
bedrock_reranking_configuration: {
|
437
|
+
model_configuration: {
|
438
|
+
model_arn: ::String,
|
439
|
+
additional_model_request_fields: Hash[::String, {
|
440
|
+
}]?
|
441
|
+
},
|
442
|
+
number_of_reranked_results: ::Integer?,
|
443
|
+
metadata_configuration: {
|
444
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
445
|
+
selective_mode_configuration: {
|
446
|
+
fields_to_include: Array[
|
447
|
+
{
|
448
|
+
field_name: ::String
|
449
|
+
},
|
450
|
+
]?,
|
451
|
+
fields_to_exclude: Array[
|
452
|
+
{
|
453
|
+
field_name: ::String
|
454
|
+
},
|
455
|
+
]?
|
456
|
+
}?
|
457
|
+
}?
|
458
|
+
}?
|
368
459
|
}?
|
369
460
|
}
|
370
461
|
}?,
|
@@ -866,6 +957,15 @@ module Aws
|
|
866
957
|
) -> _DeleteCustomModelResponseSuccess
|
867
958
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelResponseSuccess
|
868
959
|
|
960
|
+
interface _DeleteCustomModelDeploymentResponseSuccess
|
961
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCustomModelDeploymentResponse]
|
962
|
+
end
|
963
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_custom_model_deployment-instance_method
|
964
|
+
def delete_custom_model_deployment: (
|
965
|
+
custom_model_deployment_identifier: ::String
|
966
|
+
) -> _DeleteCustomModelDeploymentResponseSuccess
|
967
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelDeploymentResponseSuccess
|
968
|
+
|
869
969
|
interface _DeleteFoundationModelAgreementResponseSuccess
|
870
970
|
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFoundationModelAgreementResponse]
|
871
971
|
end
|
@@ -973,6 +1073,23 @@ module Aws
|
|
973
1073
|
) -> _GetCustomModelResponseSuccess
|
974
1074
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCustomModelResponseSuccess
|
975
1075
|
|
1076
|
+
interface _GetCustomModelDeploymentResponseSuccess
|
1077
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetCustomModelDeploymentResponse]
|
1078
|
+
def custom_model_deployment_arn: () -> ::String
|
1079
|
+
def model_deployment_name: () -> ::String
|
1080
|
+
def model_arn: () -> ::String
|
1081
|
+
def created_at: () -> ::Time
|
1082
|
+
def status: () -> ("Creating" | "Active" | "Failed")
|
1083
|
+
def description: () -> ::String
|
1084
|
+
def failure_message: () -> ::String
|
1085
|
+
def last_updated_at: () -> ::Time
|
1086
|
+
end
|
1087
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_custom_model_deployment-instance_method
|
1088
|
+
def get_custom_model_deployment: (
|
1089
|
+
custom_model_deployment_identifier: ::String
|
1090
|
+
) -> _GetCustomModelDeploymentResponseSuccess
|
1091
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCustomModelDeploymentResponseSuccess
|
1092
|
+
|
976
1093
|
interface _GetEvaluationJobResponseSuccess
|
977
1094
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetEvaluationJobResponse]
|
978
1095
|
def job_name: () -> ::String
|
@@ -1253,6 +1370,25 @@ module Aws
|
|
1253
1370
|
) -> _GetUseCaseForModelAccessResponseSuccess
|
1254
1371
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetUseCaseForModelAccessResponseSuccess
|
1255
1372
|
|
1373
|
+
interface _ListCustomModelDeploymentsResponseSuccess
|
1374
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelDeploymentsResponse]
|
1375
|
+
def next_token: () -> ::String
|
1376
|
+
def model_deployment_summaries: () -> ::Array[Types::CustomModelDeploymentSummary]
|
1377
|
+
end
|
1378
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_custom_model_deployments-instance_method
|
1379
|
+
def list_custom_model_deployments: (
|
1380
|
+
?created_before: ::Time,
|
1381
|
+
?created_after: ::Time,
|
1382
|
+
?name_contains: ::String,
|
1383
|
+
?max_results: ::Integer,
|
1384
|
+
?next_token: ::String,
|
1385
|
+
?sort_by: ("CreationTime"),
|
1386
|
+
?sort_order: ("Ascending" | "Descending"),
|
1387
|
+
?status_equals: ("Creating" | "Active" | "Failed"),
|
1388
|
+
?model_arn_equals: ::String
|
1389
|
+
) -> _ListCustomModelDeploymentsResponseSuccess
|
1390
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomModelDeploymentsResponseSuccess
|
1391
|
+
|
1256
1392
|
interface _ListCustomModelsResponseSuccess
|
1257
1393
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelsResponse]
|
1258
1394
|
def next_token: () -> ::String
|
data/sig/types.rbs
CHANGED
@@ -91,6 +91,20 @@ module Aws::Bedrock
|
|
91
91
|
SENSITIVE: []
|
92
92
|
end
|
93
93
|
|
94
|
+
class CreateCustomModelDeploymentRequest
|
95
|
+
attr_accessor model_deployment_name: ::String
|
96
|
+
attr_accessor model_arn: ::String
|
97
|
+
attr_accessor description: ::String
|
98
|
+
attr_accessor tags: ::Array[Types::Tag]
|
99
|
+
attr_accessor client_request_token: ::String
|
100
|
+
SENSITIVE: []
|
101
|
+
end
|
102
|
+
|
103
|
+
class CreateCustomModelDeploymentResponse
|
104
|
+
attr_accessor custom_model_deployment_arn: ::String
|
105
|
+
SENSITIVE: []
|
106
|
+
end
|
107
|
+
|
94
108
|
class CreateCustomModelRequest
|
95
109
|
attr_accessor model_name: ::String
|
96
110
|
attr_accessor model_source_config: Types::ModelDataSource
|
@@ -326,6 +340,17 @@ module Aws::Bedrock
|
|
326
340
|
SENSITIVE: []
|
327
341
|
end
|
328
342
|
|
343
|
+
class CustomModelDeploymentSummary
|
344
|
+
attr_accessor custom_model_deployment_arn: ::String
|
345
|
+
attr_accessor custom_model_deployment_name: ::String
|
346
|
+
attr_accessor model_arn: ::String
|
347
|
+
attr_accessor created_at: ::Time
|
348
|
+
attr_accessor status: ("Creating" | "Active" | "Failed")
|
349
|
+
attr_accessor last_updated_at: ::Time
|
350
|
+
attr_accessor failure_message: ::String
|
351
|
+
SENSITIVE: []
|
352
|
+
end
|
353
|
+
|
329
354
|
class CustomModelSummary
|
330
355
|
attr_accessor model_arn: ::String
|
331
356
|
attr_accessor model_name: ::String
|
@@ -362,6 +387,14 @@ module Aws::Bedrock
|
|
362
387
|
SENSITIVE: []
|
363
388
|
end
|
364
389
|
|
390
|
+
class DeleteCustomModelDeploymentRequest
|
391
|
+
attr_accessor custom_model_deployment_identifier: ::String
|
392
|
+
SENSITIVE: []
|
393
|
+
end
|
394
|
+
|
395
|
+
class DeleteCustomModelDeploymentResponse < Aws::EmptyStructure
|
396
|
+
end
|
397
|
+
|
365
398
|
class DeleteCustomModelRequest
|
366
399
|
attr_accessor model_identifier: ::String
|
367
400
|
SENSITIVE: []
|
@@ -639,6 +672,11 @@ module Aws::Bedrock
|
|
639
672
|
SENSITIVE: []
|
640
673
|
end
|
641
674
|
|
675
|
+
class FieldForReranking
|
676
|
+
attr_accessor field_name: ::String
|
677
|
+
SENSITIVE: []
|
678
|
+
end
|
679
|
+
|
642
680
|
class FilterAttribute
|
643
681
|
attr_accessor key: ::String
|
644
682
|
attr_accessor value: untyped
|
@@ -686,6 +724,23 @@ module Aws::Bedrock
|
|
686
724
|
SENSITIVE: []
|
687
725
|
end
|
688
726
|
|
727
|
+
class GetCustomModelDeploymentRequest
|
728
|
+
attr_accessor custom_model_deployment_identifier: ::String
|
729
|
+
SENSITIVE: []
|
730
|
+
end
|
731
|
+
|
732
|
+
class GetCustomModelDeploymentResponse
|
733
|
+
attr_accessor custom_model_deployment_arn: ::String
|
734
|
+
attr_accessor model_deployment_name: ::String
|
735
|
+
attr_accessor model_arn: ::String
|
736
|
+
attr_accessor created_at: ::Time
|
737
|
+
attr_accessor status: ("Creating" | "Active" | "Failed")
|
738
|
+
attr_accessor description: ::String
|
739
|
+
attr_accessor failure_message: ::String
|
740
|
+
attr_accessor last_updated_at: ::Time
|
741
|
+
SENSITIVE: []
|
742
|
+
end
|
743
|
+
|
689
744
|
class GetCustomModelRequest
|
690
745
|
attr_accessor model_identifier: ::String
|
691
746
|
SENSITIVE: []
|
@@ -1264,6 +1319,12 @@ module Aws::Bedrock
|
|
1264
1319
|
SENSITIVE: [:instructions]
|
1265
1320
|
end
|
1266
1321
|
|
1322
|
+
class ImplicitFilterConfiguration
|
1323
|
+
attr_accessor metadata_attributes: ::Array[Types::MetadataAttributeSchema]
|
1324
|
+
attr_accessor model_arn: ::String
|
1325
|
+
SENSITIVE: []
|
1326
|
+
end
|
1327
|
+
|
1267
1328
|
class ImportedModelSummary
|
1268
1329
|
attr_accessor model_arn: ::String
|
1269
1330
|
attr_accessor model_name: ::String
|
@@ -1362,6 +1423,8 @@ module Aws::Bedrock
|
|
1362
1423
|
attr_accessor number_of_results: ::Integer
|
1363
1424
|
attr_accessor override_search_type: ("HYBRID" | "SEMANTIC")
|
1364
1425
|
attr_accessor filter: Types::RetrievalFilter
|
1426
|
+
attr_accessor implicit_filter_configuration: Types::ImplicitFilterConfiguration
|
1427
|
+
attr_accessor reranking_configuration: Types::VectorSearchRerankingConfiguration
|
1365
1428
|
SENSITIVE: [:filter]
|
1366
1429
|
end
|
1367
1430
|
|
@@ -1370,6 +1433,25 @@ module Aws::Bedrock
|
|
1370
1433
|
SENSITIVE: []
|
1371
1434
|
end
|
1372
1435
|
|
1436
|
+
class ListCustomModelDeploymentsRequest
|
1437
|
+
attr_accessor created_before: ::Time
|
1438
|
+
attr_accessor created_after: ::Time
|
1439
|
+
attr_accessor name_contains: ::String
|
1440
|
+
attr_accessor max_results: ::Integer
|
1441
|
+
attr_accessor next_token: ::String
|
1442
|
+
attr_accessor sort_by: ("CreationTime")
|
1443
|
+
attr_accessor sort_order: ("Ascending" | "Descending")
|
1444
|
+
attr_accessor status_equals: ("Creating" | "Active" | "Failed")
|
1445
|
+
attr_accessor model_arn_equals: ::String
|
1446
|
+
SENSITIVE: []
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
class ListCustomModelDeploymentsResponse
|
1450
|
+
attr_accessor next_token: ::String
|
1451
|
+
attr_accessor model_deployment_summaries: ::Array[Types::CustomModelDeploymentSummary]
|
1452
|
+
SENSITIVE: []
|
1453
|
+
end
|
1454
|
+
|
1373
1455
|
class ListCustomModelsRequest
|
1374
1456
|
attr_accessor creation_time_before: ::Time
|
1375
1457
|
attr_accessor creation_time_after: ::Time
|
@@ -1640,6 +1722,19 @@ module Aws::Bedrock
|
|
1640
1722
|
SENSITIVE: []
|
1641
1723
|
end
|
1642
1724
|
|
1725
|
+
class MetadataAttributeSchema
|
1726
|
+
attr_accessor key: ::String
|
1727
|
+
attr_accessor type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
1728
|
+
attr_accessor description: ::String
|
1729
|
+
SENSITIVE: []
|
1730
|
+
end
|
1731
|
+
|
1732
|
+
class MetadataConfigurationForReranking
|
1733
|
+
attr_accessor selection_mode: ("SELECTIVE" | "ALL")
|
1734
|
+
attr_accessor selective_mode_configuration: Types::RerankingMetadataSelectiveModeConfiguration
|
1735
|
+
SENSITIVE: []
|
1736
|
+
end
|
1737
|
+
|
1643
1738
|
class ModelCopyJobSummary
|
1644
1739
|
attr_accessor job_arn: ::String
|
1645
1740
|
attr_accessor status: ("InProgress" | "Completed" | "Failed")
|
@@ -1907,6 +2002,20 @@ module Aws::Bedrock
|
|
1907
2002
|
end
|
1908
2003
|
end
|
1909
2004
|
|
2005
|
+
class RerankingMetadataSelectiveModeConfiguration
|
2006
|
+
attr_accessor fields_to_include: ::Array[Types::FieldForReranking]
|
2007
|
+
attr_accessor fields_to_exclude: ::Array[Types::FieldForReranking]
|
2008
|
+
attr_accessor unknown: untyped
|
2009
|
+
SENSITIVE: [:fields_to_include, :fields_to_exclude]
|
2010
|
+
|
2011
|
+
class FieldsToInclude < RerankingMetadataSelectiveModeConfiguration
|
2012
|
+
end
|
2013
|
+
class FieldsToExclude < RerankingMetadataSelectiveModeConfiguration
|
2014
|
+
end
|
2015
|
+
class Unknown < RerankingMetadataSelectiveModeConfiguration
|
2016
|
+
end
|
2017
|
+
end
|
2018
|
+
|
1910
2019
|
class ResourceNotFoundException
|
1911
2020
|
attr_accessor message: ::String
|
1912
2021
|
SENSITIVE: []
|
@@ -2201,6 +2310,25 @@ module Aws::Bedrock
|
|
2201
2310
|
SENSITIVE: []
|
2202
2311
|
end
|
2203
2312
|
|
2313
|
+
class VectorSearchBedrockRerankingConfiguration
|
2314
|
+
attr_accessor model_configuration: Types::VectorSearchBedrockRerankingModelConfiguration
|
2315
|
+
attr_accessor number_of_reranked_results: ::Integer
|
2316
|
+
attr_accessor metadata_configuration: Types::MetadataConfigurationForReranking
|
2317
|
+
SENSITIVE: []
|
2318
|
+
end
|
2319
|
+
|
2320
|
+
class VectorSearchBedrockRerankingModelConfiguration
|
2321
|
+
attr_accessor model_arn: ::String
|
2322
|
+
attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
|
2323
|
+
SENSITIVE: []
|
2324
|
+
end
|
2325
|
+
|
2326
|
+
class VectorSearchRerankingConfiguration
|
2327
|
+
attr_accessor type: ("BEDROCK_RERANKING_MODEL")
|
2328
|
+
attr_accessor bedrock_reranking_configuration: Types::VectorSearchBedrockRerankingConfiguration
|
2329
|
+
SENSITIVE: []
|
2330
|
+
end
|
2331
|
+
|
2204
2332
|
class VpcConfig
|
2205
2333
|
attr_accessor subnet_ids: ::Array[::String]
|
2206
2334
|
attr_accessor security_group_ids: ::Array[::String]
|