Struct aws_sdk_personalize::types::CampaignConfig
source · #[non_exhaustive]pub struct CampaignConfig {
pub item_exploration_config: Option<HashMap<String, String>>,
pub enable_metadata_with_recommendations: Option<bool>,
pub sync_with_latest_solution_version: Option<bool>,
}Expand description
The configuration details of a campaign.
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.item_exploration_config: Option<HashMap<String, String>>Specifies the exploration configuration hyperparameters, including explorationWeight and explorationItemAgeCutOff, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig data only if your solution uses the User-Personalization recipe.
enable_metadata_with_recommendations: Option<bool>Whether metadata with recommendations is enabled for the campaign. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response. For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sync_with_latest_solution_version: Option<bool>Whether the campaign automatically updates to use the latest solution version (trained model) of a solution. If you specify True, you must specify the ARN of your solution for the SolutionVersionArn parameter. It must be in SolutionArn/$LATEST format. The default is False and you must manually update the campaign to deploy the latest solution version.
For more information about automatic campaign updates, see Enabling automatic campaign updates.
Implementations§
source§impl CampaignConfig
impl CampaignConfig
sourcepub fn item_exploration_config(&self) -> Option<&HashMap<String, String>>
pub fn item_exploration_config(&self) -> Option<&HashMap<String, String>>
Specifies the exploration configuration hyperparameters, including explorationWeight and explorationItemAgeCutOff, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig data only if your solution uses the User-Personalization recipe.
sourcepub fn enable_metadata_with_recommendations(&self) -> Option<bool>
pub fn enable_metadata_with_recommendations(&self) -> Option<bool>
Whether metadata with recommendations is enabled for the campaign. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response. For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sourcepub fn sync_with_latest_solution_version(&self) -> Option<bool>
pub fn sync_with_latest_solution_version(&self) -> Option<bool>
Whether the campaign automatically updates to use the latest solution version (trained model) of a solution. If you specify True, you must specify the ARN of your solution for the SolutionVersionArn parameter. It must be in SolutionArn/$LATEST format. The default is False and you must manually update the campaign to deploy the latest solution version.
For more information about automatic campaign updates, see Enabling automatic campaign updates.
source§impl CampaignConfig
impl CampaignConfig
sourcepub fn builder() -> CampaignConfigBuilder
pub fn builder() -> CampaignConfigBuilder
Creates a new builder-style object to manufacture CampaignConfig.
Trait Implementations§
source§impl Clone for CampaignConfig
impl Clone for CampaignConfig
source§fn clone(&self) -> CampaignConfig
fn clone(&self) -> CampaignConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CampaignConfig
impl Debug for CampaignConfig
source§impl PartialEq for CampaignConfig
impl PartialEq for CampaignConfig
source§fn eq(&self, other: &CampaignConfig) -> bool
fn eq(&self, other: &CampaignConfig) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CampaignConfig
Auto Trait Implementations§
impl Freeze for CampaignConfig
impl RefUnwindSafe for CampaignConfig
impl Send for CampaignConfig
impl Sync for CampaignConfig
impl Unpin for CampaignConfig
impl UnwindSafe for CampaignConfig
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