aws-sdk-bedrock 1.46.0 → 1.53.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 +35 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +484 -10
- data/lib/aws-sdk-bedrock/client_api.rb +309 -7
- data/lib/aws-sdk-bedrock/types.rb +846 -22
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +184 -9
- data/sig/types.rbs +219 -7
- metadata +4 -4
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -88,6 +88,30 @@ module Aws
|
|
88
88
|
) -> _BatchDeleteEvaluationJobResponseSuccess
|
89
89
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDeleteEvaluationJobResponseSuccess
|
90
90
|
|
91
|
+
interface _CreateCustomModelResponseSuccess
|
92
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomModelResponse]
|
93
|
+
def model_arn: () -> ::String
|
94
|
+
end
|
95
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_custom_model-instance_method
|
96
|
+
def create_custom_model: (
|
97
|
+
model_name: ::String,
|
98
|
+
model_source_config: {
|
99
|
+
s3_data_source: {
|
100
|
+
s3_uri: ::String
|
101
|
+
}?
|
102
|
+
},
|
103
|
+
?model_kms_key_arn: ::String,
|
104
|
+
?role_arn: ::String,
|
105
|
+
?model_tags: Array[
|
106
|
+
{
|
107
|
+
key: ::String,
|
108
|
+
value: ::String
|
109
|
+
},
|
110
|
+
],
|
111
|
+
?client_request_token: ::String
|
112
|
+
) -> _CreateCustomModelResponseSuccess
|
113
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelResponseSuccess
|
114
|
+
|
91
115
|
interface _CreateEvaluationJobResponseSuccess
|
92
116
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateEvaluationJobResponse]
|
93
117
|
def job_arn: () -> ::String
|
@@ -266,6 +290,42 @@ module Aws
|
|
266
290
|
or_all: Array[
|
267
291
|
untyped,
|
268
292
|
]?
|
293
|
+
}?,
|
294
|
+
implicit_filter_configuration: {
|
295
|
+
metadata_attributes: Array[
|
296
|
+
{
|
297
|
+
key: ::String,
|
298
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
|
299
|
+
description: ::String
|
300
|
+
},
|
301
|
+
],
|
302
|
+
model_arn: ::String
|
303
|
+
}?,
|
304
|
+
reranking_configuration: {
|
305
|
+
type: ("BEDROCK_RERANKING_MODEL"),
|
306
|
+
bedrock_reranking_configuration: {
|
307
|
+
model_configuration: {
|
308
|
+
model_arn: ::String,
|
309
|
+
additional_model_request_fields: Hash[::String, {
|
310
|
+
}]?
|
311
|
+
},
|
312
|
+
number_of_reranked_results: ::Integer?,
|
313
|
+
metadata_configuration: {
|
314
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
315
|
+
selective_mode_configuration: {
|
316
|
+
fields_to_include: Array[
|
317
|
+
{
|
318
|
+
field_name: ::String
|
319
|
+
},
|
320
|
+
]?,
|
321
|
+
fields_to_exclude: Array[
|
322
|
+
{
|
323
|
+
field_name: ::String
|
324
|
+
},
|
325
|
+
]?
|
326
|
+
}?
|
327
|
+
}?
|
328
|
+
}?
|
269
329
|
}?
|
270
330
|
}
|
271
331
|
}
|
@@ -341,6 +401,42 @@ module Aws
|
|
341
401
|
or_all: Array[
|
342
402
|
untyped,
|
343
403
|
]?
|
404
|
+
}?,
|
405
|
+
implicit_filter_configuration: {
|
406
|
+
metadata_attributes: Array[
|
407
|
+
{
|
408
|
+
key: ::String,
|
409
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
|
410
|
+
description: ::String
|
411
|
+
},
|
412
|
+
],
|
413
|
+
model_arn: ::String
|
414
|
+
}?,
|
415
|
+
reranking_configuration: {
|
416
|
+
type: ("BEDROCK_RERANKING_MODEL"),
|
417
|
+
bedrock_reranking_configuration: {
|
418
|
+
model_configuration: {
|
419
|
+
model_arn: ::String,
|
420
|
+
additional_model_request_fields: Hash[::String, {
|
421
|
+
}]?
|
422
|
+
},
|
423
|
+
number_of_reranked_results: ::Integer?,
|
424
|
+
metadata_configuration: {
|
425
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
426
|
+
selective_mode_configuration: {
|
427
|
+
fields_to_include: Array[
|
428
|
+
{
|
429
|
+
field_name: ::String
|
430
|
+
},
|
431
|
+
]?,
|
432
|
+
fields_to_exclude: Array[
|
433
|
+
{
|
434
|
+
field_name: ::String
|
435
|
+
},
|
436
|
+
]?
|
437
|
+
}?
|
438
|
+
}?
|
439
|
+
}?
|
344
440
|
}?
|
345
441
|
}
|
346
442
|
}?,
|
@@ -423,6 +519,17 @@ module Aws
|
|
423
519
|
) -> _CreateEvaluationJobResponseSuccess
|
424
520
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEvaluationJobResponseSuccess
|
425
521
|
|
522
|
+
interface _CreateFoundationModelAgreementResponseSuccess
|
523
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateFoundationModelAgreementResponse]
|
524
|
+
def model_id: () -> ::String
|
525
|
+
end
|
526
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_foundation_model_agreement-instance_method
|
527
|
+
def create_foundation_model_agreement: (
|
528
|
+
offer_token: ::String,
|
529
|
+
model_id: ::String
|
530
|
+
) -> _CreateFoundationModelAgreementResponseSuccess
|
531
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFoundationModelAgreementResponseSuccess
|
532
|
+
|
426
533
|
interface _CreateGuardrailResponseSuccess
|
427
534
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateGuardrailResponse]
|
428
535
|
def guardrail_id: () -> ::String
|
@@ -446,7 +553,10 @@ module Aws
|
|
446
553
|
input_enabled: bool?,
|
447
554
|
output_enabled: bool?
|
448
555
|
},
|
449
|
-
]
|
556
|
+
],
|
557
|
+
tier_config: {
|
558
|
+
tier_name: ("CLASSIC" | "STANDARD")
|
559
|
+
}?
|
450
560
|
},
|
451
561
|
?content_policy_config: {
|
452
562
|
filters_config: Array[
|
@@ -461,7 +571,10 @@ module Aws
|
|
461
571
|
input_enabled: bool?,
|
462
572
|
output_enabled: bool?
|
463
573
|
},
|
464
|
-
]
|
574
|
+
],
|
575
|
+
tier_config: {
|
576
|
+
tier_name: ("CLASSIC" | "STANDARD")
|
577
|
+
}?
|
465
578
|
},
|
466
579
|
?word_policy_config: {
|
467
580
|
words_config: Array[
|
@@ -629,7 +742,7 @@ module Aws
|
|
629
742
|
role_arn: ::String,
|
630
743
|
?client_request_token: ::String,
|
631
744
|
base_model_identifier: ::String,
|
632
|
-
?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION"),
|
745
|
+
?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED"),
|
633
746
|
?custom_model_kms_key_id: ::String,
|
634
747
|
?job_tags: Array[
|
635
748
|
{
|
@@ -825,6 +938,15 @@ module Aws
|
|
825
938
|
) -> _DeleteCustomModelResponseSuccess
|
826
939
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelResponseSuccess
|
827
940
|
|
941
|
+
interface _DeleteFoundationModelAgreementResponseSuccess
|
942
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFoundationModelAgreementResponse]
|
943
|
+
end
|
944
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_foundation_model_agreement-instance_method
|
945
|
+
def delete_foundation_model_agreement: (
|
946
|
+
model_id: ::String
|
947
|
+
) -> _DeleteFoundationModelAgreementResponseSuccess
|
948
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteFoundationModelAgreementResponseSuccess
|
949
|
+
|
828
950
|
interface _DeleteGuardrailResponseSuccess
|
829
951
|
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteGuardrailResponse]
|
830
952
|
end
|
@@ -904,7 +1026,7 @@ module Aws
|
|
904
1026
|
def job_name: () -> ::String
|
905
1027
|
def job_arn: () -> ::String
|
906
1028
|
def base_model_arn: () -> ::String
|
907
|
-
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
1029
|
+
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
908
1030
|
def model_kms_key_arn: () -> ::String
|
909
1031
|
def hyper_parameters: () -> ::Hash[::String, ::String]
|
910
1032
|
def training_data_config: () -> Types::TrainingDataConfig
|
@@ -914,6 +1036,8 @@ module Aws
|
|
914
1036
|
def validation_metrics: () -> ::Array[Types::ValidatorMetric]
|
915
1037
|
def creation_time: () -> ::Time
|
916
1038
|
def customization_config: () -> Types::CustomizationConfig
|
1039
|
+
def model_status: () -> ("Active" | "Creating" | "Failed")
|
1040
|
+
def failure_message: () -> ::String
|
917
1041
|
end
|
918
1042
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_custom_model-instance_method
|
919
1043
|
def get_custom_model: (
|
@@ -954,6 +1078,20 @@ module Aws
|
|
954
1078
|
) -> _GetFoundationModelResponseSuccess
|
955
1079
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFoundationModelResponseSuccess
|
956
1080
|
|
1081
|
+
interface _GetFoundationModelAvailabilityResponseSuccess
|
1082
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetFoundationModelAvailabilityResponse]
|
1083
|
+
def model_id: () -> ::String
|
1084
|
+
def agreement_availability: () -> Types::AgreementAvailability
|
1085
|
+
def authorization_status: () -> ("AUTHORIZED" | "NOT_AUTHORIZED")
|
1086
|
+
def entitlement_availability: () -> ("AVAILABLE" | "NOT_AVAILABLE")
|
1087
|
+
def region_availability: () -> ("AVAILABLE" | "NOT_AVAILABLE")
|
1088
|
+
end
|
1089
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_foundation_model_availability-instance_method
|
1090
|
+
def get_foundation_model_availability: (
|
1091
|
+
model_id: ::String
|
1092
|
+
) -> _GetFoundationModelAvailabilityResponseSuccess
|
1093
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFoundationModelAvailabilityResponseSuccess
|
1094
|
+
|
957
1095
|
interface _GetGuardrailResponseSuccess
|
958
1096
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetGuardrailResponse]
|
959
1097
|
def name: () -> ::String
|
@@ -1059,8 +1197,8 @@ module Aws
|
|
1059
1197
|
def client_request_token: () -> ::String
|
1060
1198
|
def role_arn: () -> ::String
|
1061
1199
|
def status: () -> ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
|
1062
|
-
def failure_message: () -> ::String
|
1063
1200
|
def status_details: () -> Types::StatusDetails
|
1201
|
+
def failure_message: () -> ::String
|
1064
1202
|
def creation_time: () -> ::Time
|
1065
1203
|
def last_modified_time: () -> ::Time
|
1066
1204
|
def end_time: () -> ::Time
|
@@ -1069,7 +1207,7 @@ module Aws
|
|
1069
1207
|
def training_data_config: () -> Types::TrainingDataConfig
|
1070
1208
|
def validation_data_config: () -> Types::ValidationDataConfig
|
1071
1209
|
def output_data_config: () -> Types::OutputDataConfig
|
1072
|
-
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
|
1210
|
+
def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
|
1073
1211
|
def output_model_kms_key_arn: () -> ::String
|
1074
1212
|
def training_metrics: () -> Types::TrainingMetrics
|
1075
1213
|
def validation_metrics: () -> ::Array[Types::ValidatorMetric]
|
@@ -1178,6 +1316,15 @@ module Aws
|
|
1178
1316
|
) -> _GetProvisionedModelThroughputResponseSuccess
|
1179
1317
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedModelThroughputResponseSuccess
|
1180
1318
|
|
1319
|
+
interface _GetUseCaseForModelAccessResponseSuccess
|
1320
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetUseCaseForModelAccessResponse]
|
1321
|
+
def form_data: () -> ::String
|
1322
|
+
end
|
1323
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_use_case_for_model_access-instance_method
|
1324
|
+
def get_use_case_for_model_access: (
|
1325
|
+
) -> _GetUseCaseForModelAccessResponseSuccess
|
1326
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetUseCaseForModelAccessResponseSuccess
|
1327
|
+
|
1181
1328
|
interface _ListCustomModelsResponseSuccess
|
1182
1329
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelsResponse]
|
1183
1330
|
def next_token: () -> ::String
|
@@ -1194,7 +1341,8 @@ module Aws
|
|
1194
1341
|
?next_token: ::String,
|
1195
1342
|
?sort_by: ("CreationTime"),
|
1196
1343
|
?sort_order: ("Ascending" | "Descending"),
|
1197
|
-
?is_owned: bool
|
1344
|
+
?is_owned: bool,
|
1345
|
+
?model_status: ("Active" | "Creating" | "Failed")
|
1198
1346
|
) -> _ListCustomModelsResponseSuccess
|
1199
1347
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomModelsResponseSuccess
|
1200
1348
|
|
@@ -1217,6 +1365,18 @@ module Aws
|
|
1217
1365
|
) -> _ListEvaluationJobsResponseSuccess
|
1218
1366
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEvaluationJobsResponseSuccess
|
1219
1367
|
|
1368
|
+
interface _ListFoundationModelAgreementOffersResponseSuccess
|
1369
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListFoundationModelAgreementOffersResponse]
|
1370
|
+
def model_id: () -> ::String
|
1371
|
+
def offers: () -> ::Array[Types::Offer]
|
1372
|
+
end
|
1373
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_foundation_model_agreement_offers-instance_method
|
1374
|
+
def list_foundation_model_agreement_offers: (
|
1375
|
+
model_id: ::String,
|
1376
|
+
?offer_type: ("ALL" | "PUBLIC")
|
1377
|
+
) -> _ListFoundationModelAgreementOffersResponseSuccess
|
1378
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFoundationModelAgreementOffersResponseSuccess
|
1379
|
+
|
1220
1380
|
interface _ListFoundationModelsResponseSuccess
|
1221
1381
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListFoundationModelsResponse]
|
1222
1382
|
def model_summaries: () -> ::Array[Types::FoundationModelSummary]
|
@@ -1428,6 +1588,15 @@ module Aws
|
|
1428
1588
|
) -> _PutModelInvocationLoggingConfigurationResponseSuccess
|
1429
1589
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutModelInvocationLoggingConfigurationResponseSuccess
|
1430
1590
|
|
1591
|
+
interface _PutUseCaseForModelAccessResponseSuccess
|
1592
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutUseCaseForModelAccessResponse]
|
1593
|
+
end
|
1594
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#put_use_case_for_model_access-instance_method
|
1595
|
+
def put_use_case_for_model_access: (
|
1596
|
+
form_data: ::String
|
1597
|
+
) -> _PutUseCaseForModelAccessResponseSuccess
|
1598
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutUseCaseForModelAccessResponseSuccess
|
1599
|
+
|
1431
1600
|
interface _RegisterMarketplaceModelEndpointResponseSuccess
|
1432
1601
|
include ::Seahorse::Client::_ResponseSuccess[Types::RegisterMarketplaceModelEndpointResponse]
|
1433
1602
|
def marketplace_model_endpoint: () -> Types::MarketplaceModelEndpoint
|
@@ -1515,7 +1684,10 @@ module Aws
|
|
1515
1684
|
input_enabled: bool?,
|
1516
1685
|
output_enabled: bool?
|
1517
1686
|
},
|
1518
|
-
]
|
1687
|
+
],
|
1688
|
+
tier_config: {
|
1689
|
+
tier_name: ("CLASSIC" | "STANDARD")
|
1690
|
+
}?
|
1519
1691
|
},
|
1520
1692
|
?content_policy_config: {
|
1521
1693
|
filters_config: Array[
|
@@ -1530,7 +1702,10 @@ module Aws
|
|
1530
1702
|
input_enabled: bool?,
|
1531
1703
|
output_enabled: bool?
|
1532
1704
|
},
|
1533
|
-
]
|
1705
|
+
],
|
1706
|
+
tier_config: {
|
1707
|
+
tier_name: ("CLASSIC" | "STANDARD")
|
1708
|
+
}?
|
1534
1709
|
},
|
1535
1710
|
?word_policy_config: {
|
1536
1711
|
words_config: Array[
|