Struct aws_sdk_personalize::types::Campaign
source · #[non_exhaustive]pub struct Campaign {
pub name: Option<String>,
pub campaign_arn: Option<String>,
pub solution_version_arn: Option<String>,
pub min_provisioned_tps: Option<i32>,
pub campaign_config: Option<CampaignConfig>,
pub status: Option<String>,
pub failure_reason: Option<String>,
pub creation_date_time: Option<DateTime>,
pub last_updated_date_time: Option<DateTime>,
pub latest_campaign_update: Option<CampaignUpdateSummary>,
}Expand description
An object that describes the deployment of a solution version. For more information on campaigns, see CreateCampaign.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>The name of the campaign.
campaign_arn: Option<String>The Amazon Resource Name (ARN) of the campaign.
solution_version_arn: Option<String>The Amazon Resource Name (ARN) of the solution version the campaign uses.
min_provisioned_tps: Option<i32>Specifies the requested minimum provisioned transactions (recommendations) per second. 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.
campaign_config: Option<CampaignConfig>The configuration details of a campaign.
status: Option<String>The status of the campaign.
A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
failure_reason: Option<String>If a campaign fails, the reason behind the failure.
creation_date_time: Option<DateTime>The date and time (in Unix format) that the campaign was created.
last_updated_date_time: Option<DateTime>The date and time (in Unix format) that the campaign was last updated.
latest_campaign_update: Option<CampaignUpdateSummary>Provides a summary of the properties of a campaign update. For a complete listing, call the DescribeCampaign API.
Implementations§
source§impl Campaign
impl Campaign
sourcepub fn campaign_arn(&self) -> Option<&str>
pub fn campaign_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the campaign.
sourcepub fn solution_version_arn(&self) -> Option<&str>
pub fn solution_version_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the solution version the campaign uses.
sourcepub fn min_provisioned_tps(&self) -> Option<i32>
pub fn min_provisioned_tps(&self) -> Option<i32>
Specifies the requested minimum provisioned transactions (recommendations) per second. 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) -> Option<&CampaignConfig>
pub fn campaign_config(&self) -> Option<&CampaignConfig>
The configuration details of a campaign.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The status of the campaign.
A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
sourcepub fn failure_reason(&self) -> Option<&str>
pub fn failure_reason(&self) -> Option<&str>
If a campaign fails, the reason behind the failure.
sourcepub fn creation_date_time(&self) -> Option<&DateTime>
pub fn creation_date_time(&self) -> Option<&DateTime>
The date and time (in Unix format) that the campaign was created.
sourcepub fn last_updated_date_time(&self) -> Option<&DateTime>
pub fn last_updated_date_time(&self) -> Option<&DateTime>
The date and time (in Unix format) that the campaign was last updated.
sourcepub fn latest_campaign_update(&self) -> Option<&CampaignUpdateSummary>
pub fn latest_campaign_update(&self) -> Option<&CampaignUpdateSummary>
Provides a summary of the properties of a campaign update. For a complete listing, call the DescribeCampaign API.
Trait Implementations§
source§impl PartialEq for Campaign
impl PartialEq for Campaign
impl StructuralPartialEq for Campaign
Auto Trait Implementations§
impl Freeze for Campaign
impl RefUnwindSafe for Campaign
impl Send for Campaign
impl Sync for Campaign
impl Unpin for Campaign
impl UnwindSafe for Campaign
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more