pub struct PersonalizeRuntimeClient { /* private fields */ }Expand description
A client for the Amazon Personalize Runtime API.
Implementations§
Source§impl PersonalizeRuntimeClient
impl PersonalizeRuntimeClient
Sourcepub fn new(region: Region) -> PersonalizeRuntimeClient
pub fn new(region: Region) -> PersonalizeRuntimeClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region,
) -> PersonalizeRuntimeClientwhere
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client( client: Client, region: Region, ) -> PersonalizeRuntimeClient
Trait Implementations§
Source§impl Clone for PersonalizeRuntimeClient
impl Clone for PersonalizeRuntimeClient
Source§fn clone(&self) -> PersonalizeRuntimeClient
fn clone(&self) -> PersonalizeRuntimeClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PersonalizeRuntime for PersonalizeRuntimeClient
impl PersonalizeRuntime for PersonalizeRuntimeClient
Source§fn get_personalized_ranking<'life0, 'async_trait>(
&'life0 self,
input: GetPersonalizedRankingRequest,
) -> Pin<Box<dyn Future<Output = Result<GetPersonalizedRankingResponse, RusotoError<GetPersonalizedRankingError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_personalized_ranking<'life0, 'async_trait>(
&'life0 self,
input: GetPersonalizedRankingRequest,
) -> Pin<Box<dyn Future<Output = Result<GetPersonalizedRankingResponse, RusotoError<GetPersonalizedRankingError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Re-ranks a list of recommended items for the given user. The first item in the list is deemed the most likely item to be of interest to the user.
The solution backing the campaign must have been created using a recipe of type PERSONALIZED_RANKING.
Source§fn get_recommendations<'life0, 'async_trait>(
&'life0 self,
input: GetRecommendationsRequest,
) -> Pin<Box<dyn Future<Output = Result<GetRecommendationsResponse, RusotoError<GetRecommendationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_recommendations<'life0, 'async_trait>(
&'life0 self,
input: GetRecommendationsRequest,
) -> Pin<Box<dyn Future<Output = Result<GetRecommendationsResponse, RusotoError<GetRecommendationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns a list of recommended items. The required input depends on the recipe type used to create the solution backing the campaign, as follows:
-
RELATEDITEMS -
itemIdrequired,userIdnot used -
USERPERSONALIZATION -
itemIdoptional,userIdrequired
Campaigns that are backed by a solution created using a recipe of type PERSONALIZED_RANKING use the API.