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