aws-sdk-bedrock 1.31.0 → 1.33.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 +463 -1
- data/lib/aws-sdk-bedrock/client_api.rb +324 -0
- data/lib/aws-sdk-bedrock/errors.rb +16 -0
- data/lib/aws-sdk-bedrock/types.rb +655 -8
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +147 -3
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +190 -0
- 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: 418f3a75dfac5bdc9207f01099f97bfe0fd8092c9a9e87719be1afde5d95c99a
|
4
|
+
data.tar.gz: eade76425ddc80094752736f5e7a784212923a160d39ec0917fae3a49d4ad334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca8d032e4566772d7b21d92370276dbc0f24688618b2d1cdbe12002f7a3b7bf42ab4ed0c1af86224e88c67fa4782a5e378e088a29cceeb35a04b9fc33700ffd
|
7
|
+
data.tar.gz: 561f8cc7c9aca3b860d9591cebd6dd4b52ab4bbaa5e7e5d625e45bba8a175ba6737f4d41908220b08447a79f1639d13efd5b811f1fdb385d8a21ef4896f0a290
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.33.0 (2025-01-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - With this release, Bedrock Evaluation will now support latency-optimized inference for foundation models.
|
8
|
+
|
9
|
+
1.32.0 (2024-12-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Introduced two APIs ListPromptRouters and GetPromptRouter for Intelligent Prompt Router feature. Add support for Bedrock Guardrails image content filter. New Bedrock Marketplace feature enabling a wider range of bedrock compatible models with self-hosted capability.
|
13
|
+
|
4
14
|
1.31.0 (2024-12-03)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.33.0
|
@@ -622,6 +622,9 @@ module Aws::Bedrock
|
|
622
622
|
# bedrock_model: {
|
623
623
|
# model_identifier: "EvaluationModelIdentifier", # required
|
624
624
|
# inference_params: "EvaluationModelInferenceParams",
|
625
|
+
# performance_config: {
|
626
|
+
# latency: "standard", # accepts standard, optimized
|
627
|
+
# },
|
625
628
|
# },
|
626
629
|
# },
|
627
630
|
# ],
|
@@ -978,6 +981,8 @@ module Aws::Bedrock
|
|
978
981
|
# type: "SEXUAL", # required, accepts SEXUAL, VIOLENCE, HATE, INSULTS, MISCONDUCT, PROMPT_ATTACK
|
979
982
|
# input_strength: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH
|
980
983
|
# output_strength: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH
|
984
|
+
# input_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
985
|
+
# output_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
981
986
|
# },
|
982
987
|
# ],
|
983
988
|
# },
|
@@ -1178,6 +1183,99 @@ module Aws::Bedrock
|
|
1178
1183
|
req.send_request(options)
|
1179
1184
|
end
|
1180
1185
|
|
1186
|
+
# Creates an endpoint for a model from Amazon Bedrock Marketplace. The
|
1187
|
+
# endpoint is hosted by Amazon SageMaker.
|
1188
|
+
#
|
1189
|
+
# @option params [required, String] :model_source_identifier
|
1190
|
+
# The ARN of the model from Amazon Bedrock Marketplace that you want to
|
1191
|
+
# deploy to the endpoint.
|
1192
|
+
#
|
1193
|
+
# @option params [required, Types::EndpointConfig] :endpoint_config
|
1194
|
+
# The configuration for the endpoint, including the number and type of
|
1195
|
+
# instances to use.
|
1196
|
+
#
|
1197
|
+
# @option params [Boolean] :accept_eula
|
1198
|
+
# Indicates whether you accept the end-user license agreement (EULA) for
|
1199
|
+
# the model. Set to `true` to accept the EULA.
|
1200
|
+
#
|
1201
|
+
# @option params [required, String] :endpoint_name
|
1202
|
+
# The name of the endpoint. This name must be unique within your Amazon
|
1203
|
+
# Web Services account and region.
|
1204
|
+
#
|
1205
|
+
# @option params [String] :client_request_token
|
1206
|
+
# A unique, case-sensitive identifier that you provide to ensure the
|
1207
|
+
# idempotency of the request. This token is listed as not required
|
1208
|
+
# because Amazon Web Services SDKs automatically generate it for you and
|
1209
|
+
# set this parameter. If you're not using the Amazon Web Services SDK
|
1210
|
+
# or the CLI, you must provide this token or the action will fail.
|
1211
|
+
#
|
1212
|
+
# **A suitable default value is auto-generated.** You should normally
|
1213
|
+
# not need to pass this option.**
|
1214
|
+
#
|
1215
|
+
# @option params [Array<Types::Tag>] :tags
|
1216
|
+
# An array of key-value pairs to apply to the underlying Amazon
|
1217
|
+
# SageMaker endpoint. You can use these tags to organize and identify
|
1218
|
+
# your Amazon Web Services resources.
|
1219
|
+
#
|
1220
|
+
# @return [Types::CreateMarketplaceModelEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1221
|
+
#
|
1222
|
+
# * {Types::CreateMarketplaceModelEndpointResponse#marketplace_model_endpoint #marketplace_model_endpoint} => Types::MarketplaceModelEndpoint
|
1223
|
+
#
|
1224
|
+
# @example Request syntax with placeholder values
|
1225
|
+
#
|
1226
|
+
# resp = client.create_marketplace_model_endpoint({
|
1227
|
+
# model_source_identifier: "ModelSourceIdentifier", # required
|
1228
|
+
# endpoint_config: { # required
|
1229
|
+
# sage_maker: {
|
1230
|
+
# initial_instance_count: 1, # required
|
1231
|
+
# instance_type: "InstanceType", # required
|
1232
|
+
# execution_role: "RoleArn", # required
|
1233
|
+
# kms_encryption_key: "KmsKeyId",
|
1234
|
+
# vpc: {
|
1235
|
+
# subnet_ids: ["SubnetId"], # required
|
1236
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
1237
|
+
# },
|
1238
|
+
# },
|
1239
|
+
# },
|
1240
|
+
# accept_eula: false,
|
1241
|
+
# endpoint_name: "EndpointName", # required
|
1242
|
+
# client_request_token: "IdempotencyToken",
|
1243
|
+
# tags: [
|
1244
|
+
# {
|
1245
|
+
# key: "TagKey", # required
|
1246
|
+
# value: "TagValue", # required
|
1247
|
+
# },
|
1248
|
+
# ],
|
1249
|
+
# })
|
1250
|
+
#
|
1251
|
+
# @example Response structure
|
1252
|
+
#
|
1253
|
+
# resp.marketplace_model_endpoint.endpoint_arn #=> String
|
1254
|
+
# resp.marketplace_model_endpoint.model_source_identifier #=> String
|
1255
|
+
# resp.marketplace_model_endpoint.status #=> String, one of "REGISTERED", "INCOMPATIBLE_ENDPOINT"
|
1256
|
+
# resp.marketplace_model_endpoint.status_message #=> String
|
1257
|
+
# resp.marketplace_model_endpoint.created_at #=> Time
|
1258
|
+
# resp.marketplace_model_endpoint.updated_at #=> Time
|
1259
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.initial_instance_count #=> Integer
|
1260
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.instance_type #=> String
|
1261
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.execution_role #=> String
|
1262
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.kms_encryption_key #=> String
|
1263
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.subnet_ids #=> Array
|
1264
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.subnet_ids[0] #=> String
|
1265
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.security_group_ids #=> Array
|
1266
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.security_group_ids[0] #=> String
|
1267
|
+
# resp.marketplace_model_endpoint.endpoint_status #=> String
|
1268
|
+
# resp.marketplace_model_endpoint.endpoint_status_message #=> String
|
1269
|
+
#
|
1270
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateMarketplaceModelEndpoint AWS API Documentation
|
1271
|
+
#
|
1272
|
+
# @overload create_marketplace_model_endpoint(params = {})
|
1273
|
+
# @param [Hash] params ({})
|
1274
|
+
def create_marketplace_model_endpoint(params = {}, options = {})
|
1275
|
+
req = build_request(:create_marketplace_model_endpoint, params)
|
1276
|
+
req.send_request(options)
|
1277
|
+
end
|
1278
|
+
|
1181
1279
|
# Copies a model to another region so that it can be used there. For
|
1182
1280
|
# more information, see [Copy models to be used in other regions][1] in
|
1183
1281
|
# the [Amazon Bedrock User Guide][2].
|
@@ -1892,6 +1990,28 @@ module Aws::Bedrock
|
|
1892
1990
|
req.send_request(options)
|
1893
1991
|
end
|
1894
1992
|
|
1993
|
+
# Deletes an endpoint for a model from Amazon Bedrock Marketplace.
|
1994
|
+
#
|
1995
|
+
# @option params [required, String] :endpoint_arn
|
1996
|
+
# The Amazon Resource Name (ARN) of the endpoint you want to delete.
|
1997
|
+
#
|
1998
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1999
|
+
#
|
2000
|
+
# @example Request syntax with placeholder values
|
2001
|
+
#
|
2002
|
+
# resp = client.delete_marketplace_model_endpoint({
|
2003
|
+
# endpoint_arn: "Arn", # required
|
2004
|
+
# })
|
2005
|
+
#
|
2006
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteMarketplaceModelEndpoint AWS API Documentation
|
2007
|
+
#
|
2008
|
+
# @overload delete_marketplace_model_endpoint(params = {})
|
2009
|
+
# @param [Hash] params ({})
|
2010
|
+
def delete_marketplace_model_endpoint(params = {}, options = {})
|
2011
|
+
req = build_request(:delete_marketplace_model_endpoint, params)
|
2012
|
+
req.send_request(options)
|
2013
|
+
end
|
2014
|
+
|
1895
2015
|
# Delete the invocation logging.
|
1896
2016
|
#
|
1897
2017
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
@@ -1934,6 +2054,30 @@ module Aws::Bedrock
|
|
1934
2054
|
req.send_request(options)
|
1935
2055
|
end
|
1936
2056
|
|
2057
|
+
# Deregisters an endpoint for a model from Amazon Bedrock Marketplace.
|
2058
|
+
# This operation removes the endpoint's association with Amazon Bedrock
|
2059
|
+
# but does not delete the underlying Amazon SageMaker endpoint.
|
2060
|
+
#
|
2061
|
+
# @option params [required, String] :endpoint_arn
|
2062
|
+
# The Amazon Resource Name (ARN) of the endpoint you want to deregister.
|
2063
|
+
#
|
2064
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2065
|
+
#
|
2066
|
+
# @example Request syntax with placeholder values
|
2067
|
+
#
|
2068
|
+
# resp = client.deregister_marketplace_model_endpoint({
|
2069
|
+
# endpoint_arn: "Arn", # required
|
2070
|
+
# })
|
2071
|
+
#
|
2072
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeregisterMarketplaceModelEndpoint AWS API Documentation
|
2073
|
+
#
|
2074
|
+
# @overload deregister_marketplace_model_endpoint(params = {})
|
2075
|
+
# @param [Hash] params ({})
|
2076
|
+
def deregister_marketplace_model_endpoint(params = {}, options = {})
|
2077
|
+
req = build_request(:deregister_marketplace_model_endpoint, params)
|
2078
|
+
req.send_request(options)
|
2079
|
+
end
|
2080
|
+
|
1937
2081
|
# Get the properties associated with a Amazon Bedrock custom model that
|
1938
2082
|
# you have created.For more information, see [Custom models][1] in the
|
1939
2083
|
# [Amazon Bedrock User Guide][2].
|
@@ -2080,6 +2224,7 @@ module Aws::Bedrock
|
|
2080
2224
|
# resp.inference_config.models #=> Array
|
2081
2225
|
# resp.inference_config.models[0].bedrock_model.model_identifier #=> String
|
2082
2226
|
# resp.inference_config.models[0].bedrock_model.inference_params #=> String
|
2227
|
+
# resp.inference_config.models[0].bedrock_model.performance_config.latency #=> String, one of "standard", "optimized"
|
2083
2228
|
# resp.inference_config.rag_configs #=> Array
|
2084
2229
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_id #=> String
|
2085
2230
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.number_of_results #=> Integer
|
@@ -2259,6 +2404,10 @@ module Aws::Bedrock
|
|
2259
2404
|
# resp.content_policy.filters[0].type #=> String, one of "SEXUAL", "VIOLENCE", "HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK"
|
2260
2405
|
# resp.content_policy.filters[0].input_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
2261
2406
|
# resp.content_policy.filters[0].output_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
2407
|
+
# resp.content_policy.filters[0].input_modalities #=> Array
|
2408
|
+
# resp.content_policy.filters[0].input_modalities[0] #=> String, one of "TEXT", "IMAGE"
|
2409
|
+
# resp.content_policy.filters[0].output_modalities #=> Array
|
2410
|
+
# resp.content_policy.filters[0].output_modalities[0] #=> String, one of "TEXT", "IMAGE"
|
2262
2411
|
# resp.word_policy.words #=> Array
|
2263
2412
|
# resp.word_policy.words[0].text #=> String
|
2264
2413
|
# resp.word_policy.managed_word_lists #=> Array
|
@@ -2388,6 +2537,51 @@ module Aws::Bedrock
|
|
2388
2537
|
req.send_request(options)
|
2389
2538
|
end
|
2390
2539
|
|
2540
|
+
# Retrieves details about a specific endpoint for a model from Amazon
|
2541
|
+
# Bedrock Marketplace.
|
2542
|
+
#
|
2543
|
+
# @option params [required, String] :endpoint_arn
|
2544
|
+
# The Amazon Resource Name (ARN) of the endpoint you want to get
|
2545
|
+
# information about.
|
2546
|
+
#
|
2547
|
+
# @return [Types::GetMarketplaceModelEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2548
|
+
#
|
2549
|
+
# * {Types::GetMarketplaceModelEndpointResponse#marketplace_model_endpoint #marketplace_model_endpoint} => Types::MarketplaceModelEndpoint
|
2550
|
+
#
|
2551
|
+
# @example Request syntax with placeholder values
|
2552
|
+
#
|
2553
|
+
# resp = client.get_marketplace_model_endpoint({
|
2554
|
+
# endpoint_arn: "Arn", # required
|
2555
|
+
# })
|
2556
|
+
#
|
2557
|
+
# @example Response structure
|
2558
|
+
#
|
2559
|
+
# resp.marketplace_model_endpoint.endpoint_arn #=> String
|
2560
|
+
# resp.marketplace_model_endpoint.model_source_identifier #=> String
|
2561
|
+
# resp.marketplace_model_endpoint.status #=> String, one of "REGISTERED", "INCOMPATIBLE_ENDPOINT"
|
2562
|
+
# resp.marketplace_model_endpoint.status_message #=> String
|
2563
|
+
# resp.marketplace_model_endpoint.created_at #=> Time
|
2564
|
+
# resp.marketplace_model_endpoint.updated_at #=> Time
|
2565
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.initial_instance_count #=> Integer
|
2566
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.instance_type #=> String
|
2567
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.execution_role #=> String
|
2568
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.kms_encryption_key #=> String
|
2569
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.subnet_ids #=> Array
|
2570
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.subnet_ids[0] #=> String
|
2571
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.security_group_ids #=> Array
|
2572
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.security_group_ids[0] #=> String
|
2573
|
+
# resp.marketplace_model_endpoint.endpoint_status #=> String
|
2574
|
+
# resp.marketplace_model_endpoint.endpoint_status_message #=> String
|
2575
|
+
#
|
2576
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetMarketplaceModelEndpoint AWS API Documentation
|
2577
|
+
#
|
2578
|
+
# @overload get_marketplace_model_endpoint(params = {})
|
2579
|
+
# @param [Hash] params ({})
|
2580
|
+
def get_marketplace_model_endpoint(params = {}, options = {})
|
2581
|
+
req = build_request(:get_marketplace_model_endpoint, params)
|
2582
|
+
req.send_request(options)
|
2583
|
+
end
|
2584
|
+
|
2391
2585
|
# Retrieves information about a model copy job. For more information,
|
2392
2586
|
# see [Copy models to be used in other regions][1] in the [Amazon
|
2393
2587
|
# Bedrock User Guide][2].
|
@@ -2703,6 +2897,53 @@ module Aws::Bedrock
|
|
2703
2897
|
req.send_request(options)
|
2704
2898
|
end
|
2705
2899
|
|
2900
|
+
# Retrieves details about a prompt router.
|
2901
|
+
#
|
2902
|
+
# @option params [required, String] :prompt_router_arn
|
2903
|
+
# The prompt router's ARN
|
2904
|
+
#
|
2905
|
+
# @return [Types::GetPromptRouterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2906
|
+
#
|
2907
|
+
# * {Types::GetPromptRouterResponse#prompt_router_name #prompt_router_name} => String
|
2908
|
+
# * {Types::GetPromptRouterResponse#routing_criteria #routing_criteria} => Types::RoutingCriteria
|
2909
|
+
# * {Types::GetPromptRouterResponse#description #description} => String
|
2910
|
+
# * {Types::GetPromptRouterResponse#created_at #created_at} => Time
|
2911
|
+
# * {Types::GetPromptRouterResponse#updated_at #updated_at} => Time
|
2912
|
+
# * {Types::GetPromptRouterResponse#prompt_router_arn #prompt_router_arn} => String
|
2913
|
+
# * {Types::GetPromptRouterResponse#models #models} => Array<Types::PromptRouterTargetModel>
|
2914
|
+
# * {Types::GetPromptRouterResponse#fallback_model #fallback_model} => Types::PromptRouterTargetModel
|
2915
|
+
# * {Types::GetPromptRouterResponse#status #status} => String
|
2916
|
+
# * {Types::GetPromptRouterResponse#type #type} => String
|
2917
|
+
#
|
2918
|
+
# @example Request syntax with placeholder values
|
2919
|
+
#
|
2920
|
+
# resp = client.get_prompt_router({
|
2921
|
+
# prompt_router_arn: "PromptRouterArn", # required
|
2922
|
+
# })
|
2923
|
+
#
|
2924
|
+
# @example Response structure
|
2925
|
+
#
|
2926
|
+
# resp.prompt_router_name #=> String
|
2927
|
+
# resp.routing_criteria.response_quality_difference #=> Float
|
2928
|
+
# resp.description #=> String
|
2929
|
+
# resp.created_at #=> Time
|
2930
|
+
# resp.updated_at #=> Time
|
2931
|
+
# resp.prompt_router_arn #=> String
|
2932
|
+
# resp.models #=> Array
|
2933
|
+
# resp.models[0].model_arn #=> String
|
2934
|
+
# resp.fallback_model.model_arn #=> String
|
2935
|
+
# resp.status #=> String, one of "AVAILABLE"
|
2936
|
+
# resp.type #=> String, one of "custom", "default"
|
2937
|
+
#
|
2938
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetPromptRouter AWS API Documentation
|
2939
|
+
#
|
2940
|
+
# @overload get_prompt_router(params = {})
|
2941
|
+
# @param [Hash] params ({})
|
2942
|
+
def get_prompt_router(params = {}, options = {})
|
2943
|
+
req = build_request(:get_prompt_router, params)
|
2944
|
+
req.send_request(options)
|
2945
|
+
end
|
2946
|
+
|
2706
2947
|
# Returns details for a Provisioned Throughput. For more information,
|
2707
2948
|
# see [Provisioned Throughput][1] in the [Amazon Bedrock User Guide][2].
|
2708
2949
|
#
|
@@ -3217,6 +3458,56 @@ module Aws::Bedrock
|
|
3217
3458
|
req.send_request(options)
|
3218
3459
|
end
|
3219
3460
|
|
3461
|
+
# Lists the endpoints for models from Amazon Bedrock Marketplace in your
|
3462
|
+
# Amazon Web Services account.
|
3463
|
+
#
|
3464
|
+
# @option params [Integer] :max_results
|
3465
|
+
# The maximum number of results to return in a single call. If more
|
3466
|
+
# results are available, the operation returns a `NextToken` value.
|
3467
|
+
#
|
3468
|
+
# @option params [String] :next_token
|
3469
|
+
# The token for the next set of results. You receive this token from a
|
3470
|
+
# previous `ListMarketplaceModelEndpoints` call.
|
3471
|
+
#
|
3472
|
+
# @option params [String] :model_source_equals
|
3473
|
+
# If specified, only endpoints for the given model source identifier are
|
3474
|
+
# returned.
|
3475
|
+
#
|
3476
|
+
# @return [Types::ListMarketplaceModelEndpointsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3477
|
+
#
|
3478
|
+
# * {Types::ListMarketplaceModelEndpointsResponse#marketplace_model_endpoints #marketplace_model_endpoints} => Array<Types::MarketplaceModelEndpointSummary>
|
3479
|
+
# * {Types::ListMarketplaceModelEndpointsResponse#next_token #next_token} => String
|
3480
|
+
#
|
3481
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3482
|
+
#
|
3483
|
+
# @example Request syntax with placeholder values
|
3484
|
+
#
|
3485
|
+
# resp = client.list_marketplace_model_endpoints({
|
3486
|
+
# max_results: 1,
|
3487
|
+
# next_token: "PaginationToken",
|
3488
|
+
# model_source_equals: "ModelSourceIdentifier",
|
3489
|
+
# })
|
3490
|
+
#
|
3491
|
+
# @example Response structure
|
3492
|
+
#
|
3493
|
+
# resp.marketplace_model_endpoints #=> Array
|
3494
|
+
# resp.marketplace_model_endpoints[0].endpoint_arn #=> String
|
3495
|
+
# resp.marketplace_model_endpoints[0].model_source_identifier #=> String
|
3496
|
+
# resp.marketplace_model_endpoints[0].status #=> String, one of "REGISTERED", "INCOMPATIBLE_ENDPOINT"
|
3497
|
+
# resp.marketplace_model_endpoints[0].status_message #=> String
|
3498
|
+
# resp.marketplace_model_endpoints[0].created_at #=> Time
|
3499
|
+
# resp.marketplace_model_endpoints[0].updated_at #=> Time
|
3500
|
+
# resp.next_token #=> String
|
3501
|
+
#
|
3502
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListMarketplaceModelEndpoints AWS API Documentation
|
3503
|
+
#
|
3504
|
+
# @overload list_marketplace_model_endpoints(params = {})
|
3505
|
+
# @param [Hash] params ({})
|
3506
|
+
def list_marketplace_model_endpoints(params = {}, options = {})
|
3507
|
+
req = build_request(:list_marketplace_model_endpoints, params)
|
3508
|
+
req.send_request(options)
|
3509
|
+
end
|
3510
|
+
|
3220
3511
|
# Returns a list of model copy jobs that you have submitted. You can
|
3221
3512
|
# filter the jobs to return based on one or more criteria. For more
|
3222
3513
|
# information, see [Copy models to be used in other regions][1] in the
|
@@ -3630,6 +3921,54 @@ module Aws::Bedrock
|
|
3630
3921
|
req.send_request(options)
|
3631
3922
|
end
|
3632
3923
|
|
3924
|
+
# Retrieves a list of prompt routers.
|
3925
|
+
#
|
3926
|
+
# @option params [Integer] :max_results
|
3927
|
+
# The maximum number of prompt routers to return in one page of results.
|
3928
|
+
#
|
3929
|
+
# @option params [String] :next_token
|
3930
|
+
# Specify the pagination token from a previous request to retrieve the
|
3931
|
+
# next page of results.
|
3932
|
+
#
|
3933
|
+
# @return [Types::ListPromptRoutersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3934
|
+
#
|
3935
|
+
# * {Types::ListPromptRoutersResponse#prompt_router_summaries #prompt_router_summaries} => Array<Types::PromptRouterSummary>
|
3936
|
+
# * {Types::ListPromptRoutersResponse#next_token #next_token} => String
|
3937
|
+
#
|
3938
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3939
|
+
#
|
3940
|
+
# @example Request syntax with placeholder values
|
3941
|
+
#
|
3942
|
+
# resp = client.list_prompt_routers({
|
3943
|
+
# max_results: 1,
|
3944
|
+
# next_token: "PaginationToken",
|
3945
|
+
# })
|
3946
|
+
#
|
3947
|
+
# @example Response structure
|
3948
|
+
#
|
3949
|
+
# resp.prompt_router_summaries #=> Array
|
3950
|
+
# resp.prompt_router_summaries[0].prompt_router_name #=> String
|
3951
|
+
# resp.prompt_router_summaries[0].routing_criteria.response_quality_difference #=> Float
|
3952
|
+
# resp.prompt_router_summaries[0].description #=> String
|
3953
|
+
# resp.prompt_router_summaries[0].created_at #=> Time
|
3954
|
+
# resp.prompt_router_summaries[0].updated_at #=> Time
|
3955
|
+
# resp.prompt_router_summaries[0].prompt_router_arn #=> String
|
3956
|
+
# resp.prompt_router_summaries[0].models #=> Array
|
3957
|
+
# resp.prompt_router_summaries[0].models[0].model_arn #=> String
|
3958
|
+
# resp.prompt_router_summaries[0].fallback_model.model_arn #=> String
|
3959
|
+
# resp.prompt_router_summaries[0].status #=> String, one of "AVAILABLE"
|
3960
|
+
# resp.prompt_router_summaries[0].type #=> String, one of "custom", "default"
|
3961
|
+
# resp.next_token #=> String
|
3962
|
+
#
|
3963
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListPromptRouters AWS API Documentation
|
3964
|
+
#
|
3965
|
+
# @overload list_prompt_routers(params = {})
|
3966
|
+
# @param [Hash] params ({})
|
3967
|
+
def list_prompt_routers(params = {}, options = {})
|
3968
|
+
req = build_request(:list_prompt_routers, params)
|
3969
|
+
req.send_request(options)
|
3970
|
+
end
|
3971
|
+
|
3633
3972
|
# Lists the Provisioned Throughputs in the account. For more
|
3634
3973
|
# information, see [Provisioned Throughput][1] in the [Amazon Bedrock
|
3635
3974
|
# User Guide][2].
|
@@ -3801,6 +4140,56 @@ module Aws::Bedrock
|
|
3801
4140
|
req.send_request(options)
|
3802
4141
|
end
|
3803
4142
|
|
4143
|
+
# Registers an existing Amazon SageMaker endpoint with Amazon Bedrock
|
4144
|
+
# Marketplace, allowing it to be used with Amazon Bedrock APIs.
|
4145
|
+
#
|
4146
|
+
# @option params [required, String] :endpoint_identifier
|
4147
|
+
# The ARN of the Amazon SageMaker endpoint you want to register with
|
4148
|
+
# Amazon Bedrock Marketplace.
|
4149
|
+
#
|
4150
|
+
# @option params [required, String] :model_source_identifier
|
4151
|
+
# The ARN of the model from Amazon Bedrock Marketplace that is deployed
|
4152
|
+
# on the endpoint.
|
4153
|
+
#
|
4154
|
+
# @return [Types::RegisterMarketplaceModelEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4155
|
+
#
|
4156
|
+
# * {Types::RegisterMarketplaceModelEndpointResponse#marketplace_model_endpoint #marketplace_model_endpoint} => Types::MarketplaceModelEndpoint
|
4157
|
+
#
|
4158
|
+
# @example Request syntax with placeholder values
|
4159
|
+
#
|
4160
|
+
# resp = client.register_marketplace_model_endpoint({
|
4161
|
+
# endpoint_identifier: "Arn", # required
|
4162
|
+
# model_source_identifier: "ModelSourceIdentifier", # required
|
4163
|
+
# })
|
4164
|
+
#
|
4165
|
+
# @example Response structure
|
4166
|
+
#
|
4167
|
+
# resp.marketplace_model_endpoint.endpoint_arn #=> String
|
4168
|
+
# resp.marketplace_model_endpoint.model_source_identifier #=> String
|
4169
|
+
# resp.marketplace_model_endpoint.status #=> String, one of "REGISTERED", "INCOMPATIBLE_ENDPOINT"
|
4170
|
+
# resp.marketplace_model_endpoint.status_message #=> String
|
4171
|
+
# resp.marketplace_model_endpoint.created_at #=> Time
|
4172
|
+
# resp.marketplace_model_endpoint.updated_at #=> Time
|
4173
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.initial_instance_count #=> Integer
|
4174
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.instance_type #=> String
|
4175
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.execution_role #=> String
|
4176
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.kms_encryption_key #=> String
|
4177
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.subnet_ids #=> Array
|
4178
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.subnet_ids[0] #=> String
|
4179
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.security_group_ids #=> Array
|
4180
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.security_group_ids[0] #=> String
|
4181
|
+
# resp.marketplace_model_endpoint.endpoint_status #=> String
|
4182
|
+
# resp.marketplace_model_endpoint.endpoint_status_message #=> String
|
4183
|
+
#
|
4184
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/RegisterMarketplaceModelEndpoint AWS API Documentation
|
4185
|
+
#
|
4186
|
+
# @overload register_marketplace_model_endpoint(params = {})
|
4187
|
+
# @param [Hash] params ({})
|
4188
|
+
def register_marketplace_model_endpoint(params = {}, options = {})
|
4189
|
+
req = build_request(:register_marketplace_model_endpoint, params)
|
4190
|
+
req.send_request(options)
|
4191
|
+
end
|
4192
|
+
|
3804
4193
|
# Stops an evaluation job that is current being created or running.
|
3805
4194
|
#
|
3806
4195
|
# @option params [required, String] :job_identifier
|
@@ -4049,6 +4438,8 @@ module Aws::Bedrock
|
|
4049
4438
|
# type: "SEXUAL", # required, accepts SEXUAL, VIOLENCE, HATE, INSULTS, MISCONDUCT, PROMPT_ATTACK
|
4050
4439
|
# input_strength: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH
|
4051
4440
|
# output_strength: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH
|
4441
|
+
# input_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
4442
|
+
# output_modalities: ["TEXT"], # accepts TEXT, IMAGE
|
4052
4443
|
# },
|
4053
4444
|
# ],
|
4054
4445
|
# },
|
@@ -4109,6 +4500,77 @@ module Aws::Bedrock
|
|
4109
4500
|
req.send_request(options)
|
4110
4501
|
end
|
4111
4502
|
|
4503
|
+
# Updates the configuration of an existing endpoint for a model from
|
4504
|
+
# Amazon Bedrock Marketplace.
|
4505
|
+
#
|
4506
|
+
# @option params [required, String] :endpoint_arn
|
4507
|
+
# The Amazon Resource Name (ARN) of the endpoint you want to update.
|
4508
|
+
#
|
4509
|
+
# @option params [required, Types::EndpointConfig] :endpoint_config
|
4510
|
+
# The new configuration for the endpoint, including the number and type
|
4511
|
+
# of instances to use.
|
4512
|
+
#
|
4513
|
+
# @option params [String] :client_request_token
|
4514
|
+
# A unique, case-sensitive identifier that you provide to ensure the
|
4515
|
+
# idempotency of the request. This token is listed as not required
|
4516
|
+
# because Amazon Web Services SDKs automatically generate it for you and
|
4517
|
+
# set this parameter. If you're not using the Amazon Web Services SDK
|
4518
|
+
# or the CLI, you must provide this token or the action will fail.
|
4519
|
+
#
|
4520
|
+
# **A suitable default value is auto-generated.** You should normally
|
4521
|
+
# not need to pass this option.**
|
4522
|
+
#
|
4523
|
+
# @return [Types::UpdateMarketplaceModelEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4524
|
+
#
|
4525
|
+
# * {Types::UpdateMarketplaceModelEndpointResponse#marketplace_model_endpoint #marketplace_model_endpoint} => Types::MarketplaceModelEndpoint
|
4526
|
+
#
|
4527
|
+
# @example Request syntax with placeholder values
|
4528
|
+
#
|
4529
|
+
# resp = client.update_marketplace_model_endpoint({
|
4530
|
+
# endpoint_arn: "Arn", # required
|
4531
|
+
# endpoint_config: { # required
|
4532
|
+
# sage_maker: {
|
4533
|
+
# initial_instance_count: 1, # required
|
4534
|
+
# instance_type: "InstanceType", # required
|
4535
|
+
# execution_role: "RoleArn", # required
|
4536
|
+
# kms_encryption_key: "KmsKeyId",
|
4537
|
+
# vpc: {
|
4538
|
+
# subnet_ids: ["SubnetId"], # required
|
4539
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
4540
|
+
# },
|
4541
|
+
# },
|
4542
|
+
# },
|
4543
|
+
# client_request_token: "IdempotencyToken",
|
4544
|
+
# })
|
4545
|
+
#
|
4546
|
+
# @example Response structure
|
4547
|
+
#
|
4548
|
+
# resp.marketplace_model_endpoint.endpoint_arn #=> String
|
4549
|
+
# resp.marketplace_model_endpoint.model_source_identifier #=> String
|
4550
|
+
# resp.marketplace_model_endpoint.status #=> String, one of "REGISTERED", "INCOMPATIBLE_ENDPOINT"
|
4551
|
+
# resp.marketplace_model_endpoint.status_message #=> String
|
4552
|
+
# resp.marketplace_model_endpoint.created_at #=> Time
|
4553
|
+
# resp.marketplace_model_endpoint.updated_at #=> Time
|
4554
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.initial_instance_count #=> Integer
|
4555
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.instance_type #=> String
|
4556
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.execution_role #=> String
|
4557
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.kms_encryption_key #=> String
|
4558
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.subnet_ids #=> Array
|
4559
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.subnet_ids[0] #=> String
|
4560
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.security_group_ids #=> Array
|
4561
|
+
# resp.marketplace_model_endpoint.endpoint_config.sage_maker.vpc.security_group_ids[0] #=> String
|
4562
|
+
# resp.marketplace_model_endpoint.endpoint_status #=> String
|
4563
|
+
# resp.marketplace_model_endpoint.endpoint_status_message #=> String
|
4564
|
+
#
|
4565
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateMarketplaceModelEndpoint AWS API Documentation
|
4566
|
+
#
|
4567
|
+
# @overload update_marketplace_model_endpoint(params = {})
|
4568
|
+
# @param [Hash] params ({})
|
4569
|
+
def update_marketplace_model_endpoint(params = {}, options = {})
|
4570
|
+
req = build_request(:update_marketplace_model_endpoint, params)
|
4571
|
+
req.send_request(options)
|
4572
|
+
end
|
4573
|
+
|
4112
4574
|
# Updates the name or associated model for a Provisioned Throughput. For
|
4113
4575
|
# more information, see [Provisioned Throughput][1] in the [Amazon
|
4114
4576
|
# Bedrock User Guide][2].
|
@@ -4175,7 +4637,7 @@ module Aws::Bedrock
|
|
4175
4637
|
tracer: tracer
|
4176
4638
|
)
|
4177
4639
|
context[:gem_name] = 'aws-sdk-bedrock'
|
4178
|
-
context[:gem_version] = '1.
|
4640
|
+
context[:gem_version] = '1.33.0'
|
4179
4641
|
Seahorse::Client::Request.new(handlers, context)
|
4180
4642
|
end
|
4181
4643
|
|