Skip to content

Commit 9f6bfaf

Browse files
This release contains 2 changes. 1: DeleteScope/GetScope/UpdateScope operations now return 404 instead of 500 when the resource does not exist. 2: Expected string format for clientToken fields of CreateMonitorInput/CreateScopeInput/UpdateMonitorInput have been updated to be an UUID based string.
This release adds support for ListStatements API to filter statements by ClusterIdentifier, WorkgroupName, and Database. Doc-only update for CloudTrail. You can now perform an exact match or rate limit aggregation against the web request's JA4 fingerprint. IVS Real-Time now offers customers the ability to merge fragmented recordings in the event of a participant disconnect. Added a new ModifyEndpointEncryptionMode API for managing endpoint encryption settings. This releases adds support for Custom Prompt Router
1 parent 7f32844 commit 9f6bfaf

File tree

77 files changed

+4255
-934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4255
-934
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.520
1+
1.11.521

generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockClient.h

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,32 @@ namespace Bedrock
390390
return SubmitAsync(&BedrockClient::CreateModelInvocationJob, request, handler, context);
391391
}
392392

393+
/**
394+
* <p>Creates a prompt router that manages the routing of requests between multiple
395+
* foundation models based on the routing criteria.</p><p><h3>See Also:</h3> <a
396+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreatePromptRouter">AWS
397+
* API Reference</a></p>
398+
*/
399+
virtual Model::CreatePromptRouterOutcome CreatePromptRouter(const Model::CreatePromptRouterRequest& request) const;
400+
401+
/**
402+
* A Callable wrapper for CreatePromptRouter that returns a future to the operation so that it can be executed in parallel to other requests.
403+
*/
404+
template<typename CreatePromptRouterRequestT = Model::CreatePromptRouterRequest>
405+
Model::CreatePromptRouterOutcomeCallable CreatePromptRouterCallable(const CreatePromptRouterRequestT& request) const
406+
{
407+
return SubmitCallable(&BedrockClient::CreatePromptRouter, request);
408+
}
409+
410+
/**
411+
* An Async wrapper for CreatePromptRouter that queues the request into a thread executor and triggers associated callback when operation has finished.
412+
*/
413+
template<typename CreatePromptRouterRequestT = Model::CreatePromptRouterRequest>
414+
void CreatePromptRouterAsync(const CreatePromptRouterRequestT& request, const CreatePromptRouterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
415+
{
416+
return SubmitAsync(&BedrockClient::CreatePromptRouter, request, handler, context);
417+
}
418+
393419
/**
394420
* <p>Creates dedicated throughput for a base or custom model with the model units
395421
* and for the duration that you specify. For pricing details, see <a
@@ -590,6 +616,32 @@ namespace Bedrock
590616
return SubmitAsync(&BedrockClient::DeleteModelInvocationLoggingConfiguration, request, handler, context);
591617
}
592618

619+
/**
620+
* <p>Deletes a specified prompt router. This action cannot be
621+
* undone.</p><p><h3>See Also:</h3> <a
622+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeletePromptRouter">AWS
623+
* API Reference</a></p>
624+
*/
625+
virtual Model::DeletePromptRouterOutcome DeletePromptRouter(const Model::DeletePromptRouterRequest& request) const;
626+
627+
/**
628+
* A Callable wrapper for DeletePromptRouter that returns a future to the operation so that it can be executed in parallel to other requests.
629+
*/
630+
template<typename DeletePromptRouterRequestT = Model::DeletePromptRouterRequest>
631+
Model::DeletePromptRouterOutcomeCallable DeletePromptRouterCallable(const DeletePromptRouterRequestT& request) const
632+
{
633+
return SubmitCallable(&BedrockClient::DeletePromptRouter, request);
634+
}
635+
636+
/**
637+
* An Async wrapper for DeletePromptRouter that queues the request into a thread executor and triggers associated callback when operation has finished.
638+
*/
639+
template<typename DeletePromptRouterRequestT = Model::DeletePromptRouterRequest>
640+
void DeletePromptRouterAsync(const DeletePromptRouterRequestT& request, const DeletePromptRouterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
641+
{
642+
return SubmitAsync(&BedrockClient::DeletePromptRouter, request, handler, context);
643+
}
644+
593645
/**
594646
* <p>Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput
595647
* before the commitment term is over. For more information, see <a

generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockServiceClientModel.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@
2828
#include <aws/bedrock/model/CreateModelCustomizationJobResult.h>
2929
#include <aws/bedrock/model/CreateModelImportJobResult.h>
3030
#include <aws/bedrock/model/CreateModelInvocationJobResult.h>
31+
#include <aws/bedrock/model/CreatePromptRouterResult.h>
3132
#include <aws/bedrock/model/CreateProvisionedModelThroughputResult.h>
3233
#include <aws/bedrock/model/DeleteCustomModelResult.h>
3334
#include <aws/bedrock/model/DeleteGuardrailResult.h>
3435
#include <aws/bedrock/model/DeleteImportedModelResult.h>
3536
#include <aws/bedrock/model/DeleteInferenceProfileResult.h>
3637
#include <aws/bedrock/model/DeleteMarketplaceModelEndpointResult.h>
3738
#include <aws/bedrock/model/DeleteModelInvocationLoggingConfigurationResult.h>
39+
#include <aws/bedrock/model/DeletePromptRouterResult.h>
3840
#include <aws/bedrock/model/DeleteProvisionedModelThroughputResult.h>
3941
#include <aws/bedrock/model/DeregisterMarketplaceModelEndpointResult.h>
4042
#include <aws/bedrock/model/GetCustomModelResult.h>
@@ -140,13 +142,15 @@ namespace Aws
140142
class CreateModelCustomizationJobRequest;
141143
class CreateModelImportJobRequest;
142144
class CreateModelInvocationJobRequest;
145+
class CreatePromptRouterRequest;
143146
class CreateProvisionedModelThroughputRequest;
144147
class DeleteCustomModelRequest;
145148
class DeleteGuardrailRequest;
146149
class DeleteImportedModelRequest;
147150
class DeleteInferenceProfileRequest;
148151
class DeleteMarketplaceModelEndpointRequest;
149152
class DeleteModelInvocationLoggingConfigurationRequest;
153+
class DeletePromptRouterRequest;
150154
class DeleteProvisionedModelThroughputRequest;
151155
class DeregisterMarketplaceModelEndpointRequest;
152156
class GetCustomModelRequest;
@@ -200,13 +204,15 @@ namespace Aws
200204
typedef Aws::Utils::Outcome<CreateModelCustomizationJobResult, BedrockError> CreateModelCustomizationJobOutcome;
201205
typedef Aws::Utils::Outcome<CreateModelImportJobResult, BedrockError> CreateModelImportJobOutcome;
202206
typedef Aws::Utils::Outcome<CreateModelInvocationJobResult, BedrockError> CreateModelInvocationJobOutcome;
207+
typedef Aws::Utils::Outcome<CreatePromptRouterResult, BedrockError> CreatePromptRouterOutcome;
203208
typedef Aws::Utils::Outcome<CreateProvisionedModelThroughputResult, BedrockError> CreateProvisionedModelThroughputOutcome;
204209
typedef Aws::Utils::Outcome<DeleteCustomModelResult, BedrockError> DeleteCustomModelOutcome;
205210
typedef Aws::Utils::Outcome<DeleteGuardrailResult, BedrockError> DeleteGuardrailOutcome;
206211
typedef Aws::Utils::Outcome<DeleteImportedModelResult, BedrockError> DeleteImportedModelOutcome;
207212
typedef Aws::Utils::Outcome<DeleteInferenceProfileResult, BedrockError> DeleteInferenceProfileOutcome;
208213
typedef Aws::Utils::Outcome<DeleteMarketplaceModelEndpointResult, BedrockError> DeleteMarketplaceModelEndpointOutcome;
209214
typedef Aws::Utils::Outcome<DeleteModelInvocationLoggingConfigurationResult, BedrockError> DeleteModelInvocationLoggingConfigurationOutcome;
215+
typedef Aws::Utils::Outcome<DeletePromptRouterResult, BedrockError> DeletePromptRouterOutcome;
210216
typedef Aws::Utils::Outcome<DeleteProvisionedModelThroughputResult, BedrockError> DeleteProvisionedModelThroughputOutcome;
211217
typedef Aws::Utils::Outcome<DeregisterMarketplaceModelEndpointResult, BedrockError> DeregisterMarketplaceModelEndpointOutcome;
212218
typedef Aws::Utils::Outcome<GetCustomModelResult, BedrockError> GetCustomModelOutcome;
@@ -260,13 +266,15 @@ namespace Aws
260266
typedef std::future<CreateModelCustomizationJobOutcome> CreateModelCustomizationJobOutcomeCallable;
261267
typedef std::future<CreateModelImportJobOutcome> CreateModelImportJobOutcomeCallable;
262268
typedef std::future<CreateModelInvocationJobOutcome> CreateModelInvocationJobOutcomeCallable;
269+
typedef std::future<CreatePromptRouterOutcome> CreatePromptRouterOutcomeCallable;
263270
typedef std::future<CreateProvisionedModelThroughputOutcome> CreateProvisionedModelThroughputOutcomeCallable;
264271
typedef std::future<DeleteCustomModelOutcome> DeleteCustomModelOutcomeCallable;
265272
typedef std::future<DeleteGuardrailOutcome> DeleteGuardrailOutcomeCallable;
266273
typedef std::future<DeleteImportedModelOutcome> DeleteImportedModelOutcomeCallable;
267274
typedef std::future<DeleteInferenceProfileOutcome> DeleteInferenceProfileOutcomeCallable;
268275
typedef std::future<DeleteMarketplaceModelEndpointOutcome> DeleteMarketplaceModelEndpointOutcomeCallable;
269276
typedef std::future<DeleteModelInvocationLoggingConfigurationOutcome> DeleteModelInvocationLoggingConfigurationOutcomeCallable;
277+
typedef std::future<DeletePromptRouterOutcome> DeletePromptRouterOutcomeCallable;
270278
typedef std::future<DeleteProvisionedModelThroughputOutcome> DeleteProvisionedModelThroughputOutcomeCallable;
271279
typedef std::future<DeregisterMarketplaceModelEndpointOutcome> DeregisterMarketplaceModelEndpointOutcomeCallable;
272280
typedef std::future<GetCustomModelOutcome> GetCustomModelOutcomeCallable;
@@ -323,13 +331,15 @@ namespace Aws
323331
typedef std::function<void(const BedrockClient*, const Model::CreateModelCustomizationJobRequest&, const Model::CreateModelCustomizationJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateModelCustomizationJobResponseReceivedHandler;
324332
typedef std::function<void(const BedrockClient*, const Model::CreateModelImportJobRequest&, const Model::CreateModelImportJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateModelImportJobResponseReceivedHandler;
325333
typedef std::function<void(const BedrockClient*, const Model::CreateModelInvocationJobRequest&, const Model::CreateModelInvocationJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateModelInvocationJobResponseReceivedHandler;
334+
typedef std::function<void(const BedrockClient*, const Model::CreatePromptRouterRequest&, const Model::CreatePromptRouterOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreatePromptRouterResponseReceivedHandler;
326335
typedef std::function<void(const BedrockClient*, const Model::CreateProvisionedModelThroughputRequest&, const Model::CreateProvisionedModelThroughputOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateProvisionedModelThroughputResponseReceivedHandler;
327336
typedef std::function<void(const BedrockClient*, const Model::DeleteCustomModelRequest&, const Model::DeleteCustomModelOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteCustomModelResponseReceivedHandler;
328337
typedef std::function<void(const BedrockClient*, const Model::DeleteGuardrailRequest&, const Model::DeleteGuardrailOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteGuardrailResponseReceivedHandler;
329338
typedef std::function<void(const BedrockClient*, const Model::DeleteImportedModelRequest&, const Model::DeleteImportedModelOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteImportedModelResponseReceivedHandler;
330339
typedef std::function<void(const BedrockClient*, const Model::DeleteInferenceProfileRequest&, const Model::DeleteInferenceProfileOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteInferenceProfileResponseReceivedHandler;
331340
typedef std::function<void(const BedrockClient*, const Model::DeleteMarketplaceModelEndpointRequest&, const Model::DeleteMarketplaceModelEndpointOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteMarketplaceModelEndpointResponseReceivedHandler;
332341
typedef std::function<void(const BedrockClient*, const Model::DeleteModelInvocationLoggingConfigurationRequest&, const Model::DeleteModelInvocationLoggingConfigurationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteModelInvocationLoggingConfigurationResponseReceivedHandler;
342+
typedef std::function<void(const BedrockClient*, const Model::DeletePromptRouterRequest&, const Model::DeletePromptRouterOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeletePromptRouterResponseReceivedHandler;
333343
typedef std::function<void(const BedrockClient*, const Model::DeleteProvisionedModelThroughputRequest&, const Model::DeleteProvisionedModelThroughputOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteProvisionedModelThroughputResponseReceivedHandler;
334344
typedef std::function<void(const BedrockClient*, const Model::DeregisterMarketplaceModelEndpointRequest&, const Model::DeregisterMarketplaceModelEndpointOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeregisterMarketplaceModelEndpointResponseReceivedHandler;
335345
typedef std::function<void(const BedrockClient*, const Model::GetCustomModelRequest&, const Model::GetCustomModelOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetCustomModelResponseReceivedHandler;

0 commit comments

Comments
 (0)