Struct aws_sdk_personalize::operation::create_recommender::builders::CreateRecommenderFluentBuilder
source · pub struct CreateRecommenderFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRecommender
.
Creates a recommender with the recipe (a Domain dataset group use case) you specify. You create recommenders for a Domain dataset group and specify the recommender's Amazon Resource Name (ARN) when you make a GetRecommendations request.
Minimum recommendation requests per second
A high minRecommendationRequestsPerSecond
will increase your bill. We recommend starting with 1 for minRecommendationRequestsPerSecond
(the default). Track your usage using Amazon CloudWatch metrics, and increase the minRecommendationRequestsPerSecond
as necessary.
When you create a recommender, you can configure the recommender's minimum recommendation requests per second. The minimum recommendation requests per second (minRecommendationRequestsPerSecond
) specifies the baseline recommendation request throughput provisioned by Amazon Personalize. The default minRecommendationRequestsPerSecond is 1
. A recommendation request is a single GetRecommendations
operation. Request throughput is measured in requests per second and Amazon Personalize uses your requests per second to derive your requests per hour and the price of your recommender usage.
If your requests per second increases beyond minRecommendationRequestsPerSecond
, Amazon Personalize auto-scales the provisioned capacity up and down, but never below minRecommendationRequestsPerSecond
. There's a short time delay while the capacity is increased that might cause loss of requests.
Your bill is the greater of either the minimum requests per hour (based on minRecommendationRequestsPerSecond) or the actual number of requests. The actual request throughput used is calculated as the average requests/second within a one-hour window. We recommend starting with the default minRecommendationRequestsPerSecond
, track your usage using Amazon CloudWatch metrics, and then increase the minRecommendationRequestsPerSecond
as necessary.
Status
A recommender can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE
-
DELETE PENDING > DELETE IN_PROGRESS
To get the recommender status, call DescribeRecommender.
Wait until the status
of the recommender is ACTIVE
before asking the recommender for recommendations.
Related APIs
Implementations§
source§impl CreateRecommenderFluentBuilder
impl CreateRecommenderFluentBuilder
sourcepub fn as_input(&self) -> &CreateRecommenderInputBuilder
pub fn as_input(&self) -> &CreateRecommenderInputBuilder
Access the CreateRecommender as a reference.
sourcepub async fn send(
self
) -> Result<CreateRecommenderOutput, SdkError<CreateRecommenderError, HttpResponse>>
pub async fn send( self ) -> Result<CreateRecommenderOutput, SdkError<CreateRecommenderError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateRecommenderOutput, CreateRecommenderError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateRecommenderOutput, CreateRecommenderError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn dataset_group_arn(self, input: impl Into<String>) -> Self
pub fn dataset_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the destination domain dataset group for the recommender.
sourcepub fn set_dataset_group_arn(self, input: Option<String>) -> Self
pub fn set_dataset_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the destination domain dataset group for the recommender.
sourcepub fn get_dataset_group_arn(&self) -> &Option<String>
pub fn get_dataset_group_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the destination domain dataset group for the recommender.
sourcepub fn recipe_arn(self, input: impl Into<String>) -> Self
pub fn recipe_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the recipe that the recommender will use. For a recommender, a recipe is a Domain dataset group use case. Only Domain dataset group use cases can be used to create a recommender. For information about use cases see Choosing recommender use cases.
sourcepub fn set_recipe_arn(self, input: Option<String>) -> Self
pub fn set_recipe_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the recipe that the recommender will use. For a recommender, a recipe is a Domain dataset group use case. Only Domain dataset group use cases can be used to create a recommender. For information about use cases see Choosing recommender use cases.
sourcepub fn get_recipe_arn(&self) -> &Option<String>
pub fn get_recipe_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the recipe that the recommender will use. For a recommender, a recipe is a Domain dataset group use case. Only Domain dataset group use cases can be used to create a recommender. For information about use cases see Choosing recommender use cases.
sourcepub fn recommender_config(self, input: RecommenderConfig) -> Self
pub fn recommender_config(self, input: RecommenderConfig) -> Self
The configuration details of the recommender.
sourcepub fn set_recommender_config(self, input: Option<RecommenderConfig>) -> Self
pub fn set_recommender_config(self, input: Option<RecommenderConfig>) -> Self
The configuration details of the recommender.
sourcepub fn get_recommender_config(&self) -> &Option<RecommenderConfig>
pub fn get_recommender_config(&self) -> &Option<RecommenderConfig>
The configuration details of the recommender.
A list of tags to apply to the recommender.
A list of tags to apply to the recommender.
Trait Implementations§
source§impl Clone for CreateRecommenderFluentBuilder
impl Clone for CreateRecommenderFluentBuilder
source§fn clone(&self) -> CreateRecommenderFluentBuilder
fn clone(&self) -> CreateRecommenderFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more