Skip to content
v2.278.0

ForecastConfigurationProperty Struct ​

The forecast configuration that is used in a line chart's display properties.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const forecastConfigurationProperty: quicksight.CfnAnalysis.ForecastConfigurationProperty = {
  forecastProperties: {
    lowerBoundary: 123,
    periodsBackward: 123,
    periodsForward: 123,
    predictionInterval: 123,
    seasonality: 123,
    upperBoundary: 123,
  },
  scenario: {
    whatIfPointScenario: {
      date: 'date',
      value: 123,
    },
    whatIfRangeScenario: {
      endDate: 'endDate',
      startDate: 'startDate',
      value: 123,
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

forecast_configuration_property = quicksight.CfnAnalysis.ForecastConfigurationProperty(
    forecast_properties=quicksight.CfnAnalysis.TimeBasedForecastPropertiesProperty(
        lower_boundary=123,
        periods_backward=123,
        periods_forward=123,
        prediction_interval=123,
        seasonality=123,
        upper_boundary=123
    ),
    scenario=quicksight.CfnAnalysis.ForecastScenarioProperty(
        what_if_point_scenario=quicksight.CfnAnalysis.WhatIfPointScenarioProperty(
            date="date",
            value=123
        ),
        what_if_range_scenario=quicksight.CfnAnalysis.WhatIfRangeScenarioProperty(
            end_date="endDate",
            start_date="startDate",
            value=123
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

ForecastConfigurationProperty forecastConfigurationProperty = ForecastConfigurationProperty.builder()
        .forecastProperties(TimeBasedForecastPropertiesProperty.builder()
                .lowerBoundary(123)
                .periodsBackward(123)
                .periodsForward(123)
                .predictionInterval(123)
                .seasonality(123)
                .upperBoundary(123)
                .build())
        .scenario(ForecastScenarioProperty.builder()
                .whatIfPointScenario(WhatIfPointScenarioProperty.builder()
                        .date("date")
                        .value(123)
                        .build())
                .whatIfRangeScenario(WhatIfRangeScenarioProperty.builder()
                        .endDate("endDate")
                        .startDate("startDate")
                        .value(123)
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var forecastConfigurationProperty = new ForecastConfigurationProperty {
    ForecastProperties = new TimeBasedForecastPropertiesProperty {
        LowerBoundary = 123,
        PeriodsBackward = 123,
        PeriodsForward = 123,
        PredictionInterval = 123,
        Seasonality = 123,
        UpperBoundary = 123
    },
    Scenario = new ForecastScenarioProperty {
        WhatIfPointScenario = new WhatIfPointScenarioProperty {
            Date = "date",
            Value = 123
        },
        WhatIfRangeScenario = new WhatIfRangeScenarioProperty {
            EndDate = "endDate",
            StartDate = "startDate",
            Value = 123
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

forecastConfigurationProperty := &ForecastConfigurationProperty{
	ForecastProperties: &TimeBasedForecastPropertiesProperty{
		LowerBoundary: jsii.Number(123),
		PeriodsBackward: jsii.Number(123),
		PeriodsForward: jsii.Number(123),
		PredictionInterval: jsii.Number(123),
		Seasonality: jsii.Number(123),
		UpperBoundary: jsii.Number(123),
	},
	Scenario: &ForecastScenarioProperty{
		WhatIfPointScenario: &WhatIfPointScenarioProperty{
			Date: jsii.String("date"),
			Value: jsii.Number(123),
		},
		WhatIfRangeScenario: &WhatIfRangeScenarioProperty{
			EndDate: jsii.String("endDate"),
			StartDate: jsii.String("startDate"),
			Value: jsii.Number(123),
		},
	},
}

Properties ​

forecastPropertiesoptionalIResolvable | CfnAnalysis.TimeBasedForecastPropertiesPropertyforecast_propertiesoptionaltyping.Union[IResolvable, TimeBasedForecastPropertiesProperty]forecastPropertiesoptionalIResolvableForecastPropertiesoptionalIResolvableForecastPropertiesoptionalinterface{} #
The forecast properties setup of a forecast in the line chart.
scenariooptionalIResolvable | CfnAnalysis.ForecastScenarioPropertyscenariooptionaltyping.Union[IResolvable, ForecastScenarioProperty]scenariooptionalIResolvableScenariooptionalIResolvableScenariooptionalinterface{} #
The forecast scenario of a forecast in the line chart.