Struct aws_sdk_personalize::operation::create_campaign::builders::CreateCampaignFluentBuilder
source · pub struct CreateCampaignFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCampaign
.
Creates a campaign that deploys a solution version. When a client calls the GetRecommendations and GetPersonalizedRanking APIs, a campaign is specified in the request.
Minimum Provisioned TPS and Auto-Scaling
A high minProvisionedTPS
will increase your bill. We recommend starting with 1 for minProvisionedTPS
(the default). Track your usage using Amazon CloudWatch metrics, and increase the minProvisionedTPS
as necessary.
A transaction is a single GetRecommendations
or GetPersonalizedRanking
call. Transactions per second (TPS) is the throughput and unit of billing for Amazon Personalize. The minimum provisioned TPS (minProvisionedTPS
) specifies the baseline throughput provisioned by Amazon Personalize, and thus, the minimum billing charge.
If your TPS increases beyond minProvisionedTPS
, Amazon Personalize auto-scales the provisioned capacity up and down, but never below minProvisionedTPS
. There's a short time delay while the capacity is increased that might cause loss of transactions.
The actual TPS used is calculated as the average requests/second within a 5-minute window. You pay for maximum of either the minimum provisioned TPS or the actual TPS. We recommend starting with a low minProvisionedTPS
, track your usage using Amazon CloudWatch metrics, and then increase the minProvisionedTPS
as necessary.
Status
A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
To get the campaign status, call DescribeCampaign.
Wait until the status
of the campaign is ACTIVE
before asking the campaign for recommendations.
Related APIs
Implementations§
source§impl CreateCampaignFluentBuilder
impl CreateCampaignFluentBuilder
sourcepub fn as_input(&self) -> &CreateCampaignInputBuilder
pub fn as_input(&self) -> &CreateCampaignInputBuilder
Access the CreateCampaign as a reference.
sourcepub async fn send(
self
) -> Result<CreateCampaignOutput, SdkError<CreateCampaignError, HttpResponse>>
pub async fn send( self ) -> Result<CreateCampaignOutput, SdkError<CreateCampaignError, 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<CreateCampaignOutput, CreateCampaignError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateCampaignOutput, CreateCampaignError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for the new campaign. The campaign name must be unique within your account.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name for the new campaign. The campaign name must be unique within your account.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A name for the new campaign. The campaign name must be unique within your account.
sourcepub fn solution_version_arn(self, input: impl Into<String>) -> Self
pub fn solution_version_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the solution version to deploy.
sourcepub fn set_solution_version_arn(self, input: Option<String>) -> Self
pub fn set_solution_version_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the solution version to deploy.
sourcepub fn get_solution_version_arn(&self) -> &Option<String>
pub fn get_solution_version_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the solution version to deploy.
sourcepub fn min_provisioned_tps(self, input: i32) -> Self
pub fn min_provisioned_tps(self, input: i32) -> Self
Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support. A high minProvisionedTPS
will increase your bill. We recommend starting with 1 for minProvisionedTPS
(the default). Track your usage using Amazon CloudWatch metrics, and increase the minProvisionedTPS
as necessary.
sourcepub fn set_min_provisioned_tps(self, input: Option<i32>) -> Self
pub fn set_min_provisioned_tps(self, input: Option<i32>) -> Self
Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support. A high minProvisionedTPS
will increase your bill. We recommend starting with 1 for minProvisionedTPS
(the default). Track your usage using Amazon CloudWatch metrics, and increase the minProvisionedTPS
as necessary.
sourcepub fn get_min_provisioned_tps(&self) -> &Option<i32>
pub fn get_min_provisioned_tps(&self) -> &Option<i32>
Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support. A high minProvisionedTPS
will increase your bill. We recommend starting with 1 for minProvisionedTPS
(the default). Track your usage using Amazon CloudWatch metrics, and increase the minProvisionedTPS
as necessary.
sourcepub fn campaign_config(self, input: CampaignConfig) -> Self
pub fn campaign_config(self, input: CampaignConfig) -> Self
The configuration details of a campaign.
sourcepub fn set_campaign_config(self, input: Option<CampaignConfig>) -> Self
pub fn set_campaign_config(self, input: Option<CampaignConfig>) -> Self
The configuration details of a campaign.
sourcepub fn get_campaign_config(&self) -> &Option<CampaignConfig>
pub fn get_campaign_config(&self) -> &Option<CampaignConfig>
The configuration details of a campaign.
A list of tags to apply to the campaign.
A list of tags to apply to the campaign.
Trait Implementations§
source§impl Clone for CreateCampaignFluentBuilder
impl Clone for CreateCampaignFluentBuilder
source§fn clone(&self) -> CreateCampaignFluentBuilder
fn clone(&self) -> CreateCampaignFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more