| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Forecast.Types.Action
Description
Documentation
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.
See: newAction smart constructor.
Constructors
| Action' | |
Fields
| |
Instances
| FromJSON Action Source # | |
| ToJSON Action Source # | |
Defined in Amazonka.Forecast.Types.Action | |
| Generic Action Source # | |
| Read Action Source # | |
| Show Action Source # | |
| NFData Action Source # | |
Defined in Amazonka.Forecast.Types.Action | |
| Eq Action Source # | |
| Hashable Action Source # | |
Defined in Amazonka.Forecast.Types.Action | |
| type Rep Action Source # | |
Defined in Amazonka.Forecast.Types.Action type Rep Action = D1 ('MetaData "Action" "Amazonka.Forecast.Types.Action" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "Action'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Operation) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)))) | |
Create a value of Action with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attributeName:Action', action_attributeName - The related time series that you are modifying. This value is case
insensitive.
$sel:operation:Action', action_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.
$sel:value:Action', action_value - The value that is applied for the chosen Operation.
action_attributeName :: Lens' Action Text Source #
The related time series that you are modifying. This value is case insensitive.
action_operation :: Lens' Action Operation Source #
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.