Struct aws_sdk_forecast::model::Action
source · #[non_exhaustive]pub struct Action { /* private fields */ }Expand description
Defines the modifications that you are making to an attribute for a what-if forecast. For example, you can use this operation to create a what-if forecast that investigates a 10% off sale on all shoes. To do this, you specify "AttributeName": "shoes", "Operation": "MULTIPLY", and "Value": "0.90". Pair this operation with the TimeSeriesCondition operation within the CreateWhatIfForecastRequest$TimeSeriesTransformations operation to define a subset of attribute items that are modified.
Implementations§
source§impl Action
impl Action
sourcepub fn attribute_name(&self) -> Option<&str>
pub fn attribute_name(&self) -> Option<&str>
The related time series that you are modifying. This value is case insensitive.
sourcepub fn operation(&self) -> Option<&Operation>
pub fn operation(&self) -> Option<&Operation>
The operation that is applied to the provided attribute. Operations include:
-
ADD- addsValueto all rows ofAttributeName. -
SUBTRACT- subtractsValuefrom all rows ofAttributeName. -
MULTIPLY- multiplies all rows ofAttributeNamebyValue. -
DIVIDE- divides all rows ofAttributeNamebyValue.