Struct aws_sdk_personalize::client::fluent_builders::CreateCampaign [−][src]
pub struct CreateCampaign<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to CreateCampaign.
Creates a campaign by deploying 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 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
impl<C, M, R> CreateCampaign<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateCampaign<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateCampaignOutput, SdkError<CreateCampaignError>> where
R::Policy: SmithyRetryPolicy<CreateCampaignInputOperationOutputAlias, CreateCampaignOutput, CreateCampaignError, CreateCampaignInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateCampaignOutput, SdkError<CreateCampaignError>> where
R::Policy: SmithyRetryPolicy<CreateCampaignInputOperationOutputAlias, CreateCampaignOutput, CreateCampaignError, CreateCampaignInputOperationRetryAlias>,
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.
A name for the new campaign. The campaign name must be unique within your account.
A name for the new campaign. The campaign name must be unique within your account.
The Amazon Resource Name (ARN) of the solution version to deploy.
The Amazon Resource Name (ARN) of the solution version to deploy.
Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support.
Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support.
The configuration details of a campaign.
The configuration details of a campaign.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateCampaign<C, M, R>
impl<C, M, R> Send for CreateCampaign<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateCampaign<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateCampaign<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateCampaign<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more