PersonalizeEventsClient
Index > PersonalizeEvents > PersonalizeEventsClient
Auto-generated documentation for PersonalizeEvents type annotations stubs module types-aiobotocore-personalize-events.
PersonalizeEventsClient
Type annotations and code completion for session.client("personalize-events")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_personalize_events.client import PersonalizeEventsClient
session = Session()
async with session.client("personalize-events") as client:
client: PersonalizeEventsClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("personalize-events").exceptions
structure.
async with session.client("personalize-events") as client:
try:
do_something(client)
except (
client.ClientError,
client.InvalidInputException,
client.ResourceInUseException,
client.ResourceNotFoundException,
) as e:
print(e)
from types_aiobotocore_personalize_events.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("personalize-events").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("personalize-events").close
method.
boto3 documentation
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("personalize-events").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
put_events
Records user interaction event data.
Type annotations and code completion for session.client("personalize-events").put_events
method.
boto3 documentation
await def put_events(
self,
*,
trackingId: str,
sessionId: str,
eventList: Sequence[EventTypeDef], # (1)
userId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
kwargs: PutEventsRequestRequestTypeDef = { # (1)
"trackingId": ...,
"sessionId": ...,
"eventList": ...,
}
parent.put_events(**kwargs)
put_items
Adds one or more items to an Items dataset.
Type annotations and code completion for session.client("personalize-events").put_items
method.
boto3 documentation
await def put_items(
self,
*,
datasetArn: str,
items: Sequence[ItemTypeDef], # (1)
) -> EmptyResponseMetadataTypeDef: # (2)
...
kwargs: PutItemsRequestRequestTypeDef = { # (1)
"datasetArn": ...,
"items": ...,
}
parent.put_items(**kwargs)
put_users
Adds one or more users to a Users dataset.
Type annotations and code completion for session.client("personalize-events").put_users
method.
boto3 documentation
await def put_users(
self,
*,
datasetArn: str,
users: Sequence[UserTypeDef], # (1)
) -> EmptyResponseMetadataTypeDef: # (2)
...
kwargs: PutUsersRequestRequestTypeDef = { # (1)
"datasetArn": ...,
"users": ...,
}
parent.put_users(**kwargs)
__aenter__
Type annotations and code completion for session.client("personalize-events").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("personalize-events").__aexit__
method.
boto3 documentation