Class: Aws::ForecastService::Types::Action
- Inherits:
-
Struct
- Object
- Struct
- Aws::ForecastService::Types::Action
- Defined in:
- gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/types.rb
Overview
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#attribute_name ⇒ String
The related time series that you are modifying.
-
#operation ⇒ String
The operation that is applied to the provided attribute.
-
#value ⇒ Float
The value that is applied for the chosen
Operation
.
Instance Attribute Details
#attribute_name ⇒ String
The related time series that you are modifying. This value is case insensitive.
46 47 48 49 50 51 52 |
# File 'gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/types.rb', line 46 class Action < Struct.new( :attribute_name, :operation, :value) SENSITIVE = [] include Aws::Structure end |
#operation ⇒ String
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
.
46 47 48 49 50 51 52 |
# File 'gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/types.rb', line 46 class Action < Struct.new( :attribute_name, :operation, :value) SENSITIVE = [] include Aws::Structure end |