Typed dictionaries#
Index > ForecastQueryService > Typed dictionaries
Auto-generated documentation for ForecastQueryService type annotations stubs module mypy-boto3-forecastquery.
DataPointTypeDef#
# DataPointTypeDef usage example
from mypy_boto3_forecastquery.type_defs import DataPointTypeDef
def get_value() -> DataPointTypeDef:
return {
"Timestamp": ...,
}
# DataPointTypeDef definition
class DataPointTypeDef(TypedDict):
Timestamp: NotRequired[str],
Value: NotRequired[float],
QueryForecastRequestRequestTypeDef#
# QueryForecastRequestRequestTypeDef usage example
from mypy_boto3_forecastquery.type_defs import QueryForecastRequestRequestTypeDef
def get_value() -> QueryForecastRequestRequestTypeDef:
return {
"ForecastArn": ...,
"Filters": ...,
}
# QueryForecastRequestRequestTypeDef definition
class QueryForecastRequestRequestTypeDef(TypedDict):
ForecastArn: str,
Filters: Mapping[str, str],
StartDate: NotRequired[str],
EndDate: NotRequired[str],
NextToken: NotRequired[str],
QueryWhatIfForecastRequestRequestTypeDef#
# QueryWhatIfForecastRequestRequestTypeDef usage example
from mypy_boto3_forecastquery.type_defs import QueryWhatIfForecastRequestRequestTypeDef
def get_value() -> QueryWhatIfForecastRequestRequestTypeDef:
return {
"WhatIfForecastArn": ...,
"Filters": ...,
}
# QueryWhatIfForecastRequestRequestTypeDef definition
class QueryWhatIfForecastRequestRequestTypeDef(TypedDict):
WhatIfForecastArn: str,
Filters: Mapping[str, str],
StartDate: NotRequired[str],
EndDate: NotRequired[str],
NextToken: NotRequired[str],
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef usage example
from mypy_boto3_forecastquery.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
"HostId": ...,
"HTTPStatusCode": ...,
"HTTPHeaders": ...,
"RetryAttempts": ...,
}
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
ForecastTypeDef#
# ForecastTypeDef usage example
from mypy_boto3_forecastquery.type_defs import ForecastTypeDef
def get_value() -> ForecastTypeDef:
return {
"Predictions": ...,
}
# ForecastTypeDef definition
class ForecastTypeDef(TypedDict):
Predictions: NotRequired[Dict[str, List[DataPointTypeDef]]], # (1)
- See DataPointTypeDef
QueryForecastResponseTypeDef#
# QueryForecastResponseTypeDef usage example
from mypy_boto3_forecastquery.type_defs import QueryForecastResponseTypeDef
def get_value() -> QueryForecastResponseTypeDef:
return {
"Forecast": ...,
"ResponseMetadata": ...,
}
# QueryForecastResponseTypeDef definition
class QueryForecastResponseTypeDef(TypedDict):
Forecast: ForecastTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
QueryWhatIfForecastResponseTypeDef#
# QueryWhatIfForecastResponseTypeDef usage example
from mypy_boto3_forecastquery.type_defs import QueryWhatIfForecastResponseTypeDef
def get_value() -> QueryWhatIfForecastResponseTypeDef:
return {
"Forecast": ...,
"ResponseMetadata": ...,
}
# QueryWhatIfForecastResponseTypeDef definition
class QueryWhatIfForecastResponseTypeDef(TypedDict):
Forecast: ForecastTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)