ServerlessApplicationRepositoryClient#
Index > ServerlessApplicationRepository > ServerlessApplicationRepositoryClient
Auto-generated documentation for ServerlessApplicationRepository type annotations stubs module mypy-boto3-serverlessrepo.
ServerlessApplicationRepositoryClient#
Type annotations and code completion for boto3.client("serverlessrepo")
.
boto3 documentation
# ServerlessApplicationRepositoryClient usage example
from boto3.session import Session
from mypy_boto3_serverlessrepo.client import ServerlessApplicationRepositoryClient
def get_serverlessrepo_client() -> ServerlessApplicationRepositoryClient:
return Session().client("serverlessrepo")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("serverlessrepo").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("serverlessrepo")
try:
do_something(client)
except (
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.ForbiddenException,
client.exceptions.InternalServerErrorException,
client.exceptions.NotFoundException,
client.exceptions.TooManyRequestsException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_serverlessrepo.client import Exceptions
def handle_error(exc: Exce