Struct aws_sdk_personalize::client::fluent_builders::UpdateCampaign
source · pub struct UpdateCampaign { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateCampaign
.
Updates a campaign by either deploying a new solution or changing the value of the campaign's minProvisionedTPS
parameter.
To update a campaign, the campaign status must be ACTIVE or CREATE FAILED. Check the campaign status using the DescribeCampaign operation.
You can still get recommendations from a campaign while an update is in progress. The campaign will use the previous solution version and campaign configuration to generate recommendations until the latest campaign update status is Active
.
For more information on campaigns, see CreateCampaign.
Implementations§
source§impl UpdateCampaign
impl UpdateCampaign
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateCampaign, AwsResponseRetryClassifier>, SdkError<UpdateCampaignError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateCampaign, AwsResponseRetryClassifier>, SdkError<UpdateCampaignError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateCampaignOutput, SdkError<UpdateCampaignError>>
pub async fn send(
self
) -> Result<UpdateCampaignOutput, SdkError<UpdateCampaignError>>
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 campaign_arn(self, input: impl Into<String>) -> Self
pub fn campaign_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the campaign.
sourcepub fn set_campaign_arn(self, input: Option<String>) -> Self
pub fn set_campaign_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the campaign.
sourcepub fn solution_version_arn(self, input: impl Into<String>) -> Self
pub fn solution_version_arn(self, input: impl Into<String>) -> Self
The ARN of a new 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 ARN of a new 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.
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.
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.
Trait Implementations§
source§impl Clone for UpdateCampaign
impl Clone for UpdateCampaign
source§fn clone(&self) -> UpdateCampaign
fn clone(&self) -> UpdateCampaign
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more