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
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.
client = boto3.client("personalize-events")
try:
do_something(client)
except (
client.ClientError,
client.InvalidInputException,
client.ResourceInUseException,
client.ResourceNotFoundException,
) as e:
print(e)
from mypy_boto3_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 boto3.client("personalize-events").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.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 boto3.client("personalize-events").generate_presigned_url
method.
boto3 documentation
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 boto3.client("personalize-events").put_events
method.
boto3 documentation
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 boto3.client("personalize-events").put_items
method.
boto3 documentation
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 boto3.client("personalize-events").put_users
method.
boto3 documentation
def put_users(
self,
*,
datasetArn: str,
users: Sequence[UserTypeDef], # (1)
) -> EmptyResponseMetadataTypeDef: # (2)
...