Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- defaultService :: Service
- _InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidInputException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
- data DataPoint = DataPoint' {}
- newDataPoint :: DataPoint
- dataPoint_value :: Lens' DataPoint (Maybe Double)
- dataPoint_timestamp :: Lens' DataPoint (Maybe Text)
- data Forecast = Forecast' {
- predictions :: Maybe (HashMap Text [DataPoint])
- newForecast :: Forecast
- forecast_predictions :: Lens' Forecast (Maybe (HashMap Text [DataPoint]))
Service Configuration
defaultService :: Service Source #
API version 2018-06-26
of the Amazon Forecast Query Service SDK configuration.
Errors
_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The token is not valid. Tokens expire after 24 hours.
_InvalidInputException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The value is invalid or is too long.
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
We can't find that resource. Check the information that you've provided and try again.
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The limit on the number of requests per second has been exceeded.
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified resource is in use.
DataPoint
The forecast value for a specific date. Part of the Forecast object.
See: newDataPoint
smart constructor.
Instances
Eq DataPoint Source # | |
Read DataPoint Source # | |
Show DataPoint Source # | |
Generic DataPoint Source # | |
NFData DataPoint Source # | |
Defined in Amazonka.ForecastQuery.Types.DataPoint | |
Hashable DataPoint Source # | |
Defined in Amazonka.ForecastQuery.Types.DataPoint | |
FromJSON DataPoint Source # | |
type Rep DataPoint Source # | |
Defined in Amazonka.ForecastQuery.Types.DataPoint type Rep DataPoint = D1 ('MetaData "DataPoint" "Amazonka.ForecastQuery.Types.DataPoint" "libZSservicesZSamazonka-forecastqueryZSamazonka-forecastquery" 'False) (C1 ('MetaCons "DataPoint'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newDataPoint :: DataPoint Source #
Create a value of DataPoint
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:value:DataPoint'
, dataPoint_value
- The forecast value.
$sel:timestamp:DataPoint'
, dataPoint_timestamp
- The timestamp of the specific forecast.
Forecast
Provides information about a forecast. Returned as part of the QueryForecast response.
See: newForecast
smart constructor.
Forecast' | |
|
Instances
Eq Forecast Source # | |
Read Forecast Source # | |
Show Forecast Source # | |
Generic Forecast Source # | |
NFData Forecast Source # | |
Defined in Amazonka.ForecastQuery.Types.Forecast | |
Hashable Forecast Source # | |
Defined in Amazonka.ForecastQuery.Types.Forecast | |
FromJSON Forecast Source # | |
type Rep Forecast Source # | |
Defined in Amazonka.ForecastQuery.Types.Forecast type Rep Forecast = D1 ('MetaData "Forecast" "Amazonka.ForecastQuery.Types.Forecast" "libZSservicesZSamazonka-forecastqueryZSamazonka-forecastquery" 'False) (C1 ('MetaCons "Forecast'" 'PrefixI 'True) (S1 ('MetaSel ('Just "predictions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text [DataPoint]))))) |
newForecast :: Forecast Source #
Create a value of Forecast
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:predictions:Forecast'
, forecast_predictions
- The forecast.
The string of the string-to-array map is one of the following values:
- p10
- p50
- p90