Skip to content

Type definitions#

Index > ForecastQueryService > Type definitions

Auto-generated documentation for ForecastQueryService type annotations stubs module mypy-boto3-forecastquery.

DataPointTypeDef#

# DataPointTypeDef definition

class DataPointTypeDef(TypedDict):
    Timestamp: NotRequired[str],
    Value: NotRequired[float],

QueryForecastRequestRequestTypeDef#

# QueryForecastRequestRequestTypeDef definition

class QueryForecastRequestRequestTypeDef(TypedDict):
    ForecastArn: str,
    Filters: Mapping[str, str],
    StartDate: NotRequired[str],
    EndDate: NotRequired[str],
    NextToken: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

QueryWhatIfForecastRequestRequestTypeDef#

# QueryWhatIfForecastRequestRequestTypeDef definition

class QueryWhatIfForecastRequestRequestTypeDef(TypedDict):
    WhatIfForecastArn: str,
    Filters: Mapping[str, str],
    StartDate: NotRequired[str],
    EndDate: NotRequired[str],
    NextToken: NotRequired[str],

ForecastTypeDef#

# ForecastTypeDef definition

class ForecastTypeDef(TypedDict):
    Predictions: NotRequired[Dict[str, List[DataPointTypeDef]]],  # (1)
  1. See DataPointTypeDef

QueryForecastResponseTypeDef#

# QueryForecastResponseTypeDef definition

class QueryForecastResponseTypeDef(TypedDict):
    Forecast: ForecastTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ForecastTypeDef
  2. See ResponseMetadataTypeDef

QueryWhatIfForecastResponseTypeDef#

# QueryWhatIfForecastResponseTypeDef definition

class QueryWhatIfForecastResponseTypeDef(TypedDict):
    Forecast: ForecastTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ForecastTypeDef
  2. See ResponseMetadataTypeDef