-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Bedrock and Bedrock Agents (#7597)
- Loading branch information
1 parent
636d508
commit f58a575
Showing
16 changed files
with
3,435 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .models import bedrock_backends # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""Exceptions raised by the bedrock service.""" | ||
|
||
from moto.core.exceptions import JsonRESTError | ||
|
||
# Bedrock.Client.exceptions.ResourceNotFoundException | ||
|
||
|
||
class BedrockClientError(JsonRESTError): | ||
code = 400 | ||
|
||
|
||
class ResourceNotFoundException(BedrockClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("ResourceNotFoundException", f"{msg}") | ||
|
||
|
||
class ResourceInUseException(BedrockClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("ResourceInUseException", f"{msg}") | ||
|
||
|
||
class ValidationException(BedrockClientError): | ||
def __init__(self, msg: str): | ||
super().__init__( | ||
"ValidationException", | ||
"Input validation failed. Check your request parameters and retry the request.", | ||
f"{msg}", | ||
) | ||
|
||
|
||
class TooManyTagsException(BedrockClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("TooManyTagsException", f"{msg}") |
Oops, something went wrong.