Struct aws_sdk_evidently::input::UpdateFeatureInput
source · [−]#[non_exhaustive]pub struct UpdateFeatureInput {
pub project: Option<String>,
pub feature: Option<String>,
pub evaluation_strategy: Option<FeatureEvaluationStrategy>,
pub description: Option<String>,
pub add_or_update_variations: Option<Vec<VariationConfig>>,
pub remove_variations: Option<Vec<String>>,
pub default_variation: Option<String>,
pub entity_overrides: Option<HashMap<String, String>>,
}
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.project: Option<String>
The name or ARN of the project that contains the feature to be updated.
feature: Option<String>
The name of the feature to be updated.
evaluation_strategy: Option<FeatureEvaluationStrategy>
Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
description: Option<String>
An optional description of the feature.
add_or_update_variations: Option<Vec<VariationConfig>>
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
remove_variations: Option<Vec<String>>
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
default_variation: Option<String>
The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
entity_overrides: Option<HashMap<String, String>>
Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
Implementations
sourceimpl UpdateFeatureInput
impl UpdateFeatureInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateFeature, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateFeature, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<UpdateFeature
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateFeatureInput
sourceimpl UpdateFeatureInput
impl UpdateFeatureInput
sourcepub fn project(&self) -> Option<&str>
pub fn project(&self) -> Option<&str>
The name or ARN of the project that contains the feature to be updated.
sourcepub fn evaluation_strategy(&self) -> Option<&FeatureEvaluationStrategy>
pub fn evaluation_strategy(&self) -> Option<&FeatureEvaluationStrategy>
Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
An optional description of the feature.
sourcepub fn add_or_update_variations(&self) -> Option<&[VariationConfig]>
pub fn add_or_update_variations(&self) -> Option<&[VariationConfig]>
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
sourcepub fn remove_variations(&self) -> Option<&[String]>
pub fn remove_variations(&self) -> Option<&[String]>
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
sourcepub fn default_variation(&self) -> Option<&str>
pub fn default_variation(&self) -> Option<&str>
The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
sourcepub fn entity_overrides(&self) -> Option<&HashMap<String, String>>
pub fn entity_overrides(&self) -> Option<&HashMap<String, String>>
Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
Trait Implementations
sourceimpl Clone for UpdateFeatureInput
impl Clone for UpdateFeatureInput
sourcefn clone(&self) -> UpdateFeatureInput
fn clone(&self) -> UpdateFeatureInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpdateFeatureInput
impl Debug for UpdateFeatureInput
sourceimpl PartialEq<UpdateFeatureInput> for UpdateFeatureInput
impl PartialEq<UpdateFeatureInput> for UpdateFeatureInput
sourcefn eq(&self, other: &UpdateFeatureInput) -> bool
fn eq(&self, other: &UpdateFeatureInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateFeatureInput) -> bool
fn ne(&self, other: &UpdateFeatureInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for UpdateFeatureInput
Auto Trait Implementations
impl RefUnwindSafe for UpdateFeatureInput
impl Send for UpdateFeatureInput
impl Sync for UpdateFeatureInput
impl Unpin for UpdateFeatureInput
impl UnwindSafe for UpdateFeatureInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more