PersonalizeEventsClient#
Index > PersonalizeEvents > PersonalizeEventsClient
Auto-generated documentation for PersonalizeEvents type annotations stubs module mypy-boto3-personalize-events.
PersonalizeEventsClient#
Type annotations and code completion for boto3.client("personalize-events")
.
boto3 documentation
# PersonalizeEventsClient usage example
from boto3.session import Session
from mypy_boto3_personalize_events.client import PersonalizeEventsClient
def get_personalize-events_client() -> PersonalizeEventsClient:
return Session().client("personalize-events")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("personalize-events").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("personalize-events")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.InvalidInputException,
client.exceptions.ResourceInUseException,
client.exceptions.ResourceNotFoundException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_personalize_events.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("personalize-events").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("personalize-events").generate_presigned_url
method.