Struct aws_sdk_personalize::operation::update_campaign::builders::UpdateCampaignFluentBuilder
source · pub struct UpdateCampaignFluentBuilder { /* 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 UpdateCampaignFluentBuilder
impl UpdateCampaignFluentBuilder
sourcepub fn as_input(&self) -> &UpdateCampaignInputBuilder
pub fn as_input(&self) -> &UpdateCampaignInputBuilder
Access the UpdateCampaign as a reference.
sourcepub async fn send(
self
) -> Result<UpdateCampaignOutput, SdkError<UpdateCampaignError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateCampaignOutput, SdkError<UpdateCampaignError, 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<UpdateCampaignOutput, UpdateCampaignError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateCampaignOutput, UpdateCampaignError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_campaign_arn(&self) -> &Option<String>
pub fn get_campaign_arn(&self) -> &Option<String>
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 get_solution_version_arn(&self) -> &Option<String>
pub fn get_solution_version_arn(&self) -> &Option<String>
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. 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.
Trait Implementations§
source§impl Clone for UpdateCampaignFluentBuilder
impl Clone for UpdateCampaignFluentBuilder
source§fn clone(&self) -> UpdateCampaignFluentBuilder
fn clone(&self) -> UpdateCampaignFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more