Action
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 CreateWhatIfForecast:TimeSeriesTransformations operation to define a subset of attribute items that are modified.
Contents
- AttributeName
-
The related time series that you are modifying. This value is case insensitive.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
^[a-zA-Z][a-zA-Z0-9_]*
Required: Yes
- Operation
-
The operation that is applied to the provided attribute. Operations include:
-
ADD
- addsValue
to all rows ofAttributeName
. -
SUBTRACT
- subtractsValue
from all rows ofAttributeName
. -
MULTIPLY
- multiplies all rows ofAttributeName
byValue
. -
DIVIDE
- divides all rows ofAttributeName
byValue
.
Type: String
Valid Values:
ADD | SUBTRACT | MULTIPLY | DIVIDE
Required: Yes
-
- Value
-
The value that is applied for the chosen
Operation
.Type: Double
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: