Create What If Forecast
forecastservice_create_what_if_forecast | R Documentation |
A what-if forecast is a forecast that is created from a modified version of the baseline forecast¶
Description¶
A what-if forecast is a forecast that is created from a modified version of the baseline forecast. Each what-if forecast incorporates either a replacement dataset or a set of transformations to the original dataset.
Usage¶
forecastservice_create_what_if_forecast(WhatIfForecastName,
WhatIfAnalysisArn, TimeSeriesTransformations,
TimeSeriesReplacementsDataSource, Tags)
Arguments¶
WhatIfForecastName
[required] The name of the what-if forecast. Names must be unique within each what-if analysis.
WhatIfAnalysisArn
[required] The Amazon Resource Name (ARN) of the what-if analysis.
TimeSeriesTransformations
The transformations that are applied to the baseline time series. Each transformation contains an action and a set of conditions. An action is applied only when all conditions are met. If no conditions are provided, the action is applied to all items.
TimeSeriesReplacementsDataSource
The replacement time series dataset, which contains the rows that you want to change in the related time series dataset. A replacement time series does not need to contain all rows that are in the baseline related time series. Include only the rows (measure-dimension combinations) that you want to include in the what-if forecast.
This dataset is merged with the original time series to create a transformed dataset that is used for the what-if analysis.
This dataset should contain the items to modify (such as item_id or workforce_type), any relevant dimensions, the timestamp column, and at least one of the related time series columns. This file should not contain duplicate timestamps for the same time series.
Timestamps and item_ids not included in this dataset are not included in the what-if analysis.
Tags
A list of tags to apply to the what if forecast.
Value¶
A list with the following syntax:
Request syntax¶
svc$create_what_if_forecast(
WhatIfForecastName = "string",
WhatIfAnalysisArn = "string",
TimeSeriesTransformations = list(
list(
Action = list(
AttributeName = "string",
Operation = "ADD"|"SUBTRACT"|"MULTIPLY"|"DIVIDE",
Value = 123.0
),
TimeSeriesConditions = list(
list(
AttributeName = "string",
AttributeValue = "string",
Condition = "EQUALS"|"NOT_EQUALS"|"LESS_THAN"|"GREATER_THAN"
)
)
)
),
TimeSeriesReplacementsDataSource = list(
S3Config = list(
Path = "string",
RoleArn = "string",
KMSKeyArn = "string"
),
Schema = list(
Attributes = list(
list(
AttributeName = "string",
AttributeType = "string"|"integer"|"float"|"timestamp"|"geolocation"
)
)
),
Format = "string",
TimestampFormat = "string"
),
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)