pub struct ForecastQueryClient { /* private fields */ }
Expand description
A client for the Amazon Forecast Query Service API.
Implementations§
Source§impl ForecastQueryClient
impl ForecastQueryClient
Sourcepub fn new(region: Region) -> ForecastQueryClient
pub fn new(region: Region) -> ForecastQueryClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region,
) -> ForecastQueryClientwhere
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> ForecastQueryClient
Trait Implementations§
Source§impl Clone for ForecastQueryClient
impl Clone for ForecastQueryClient
Source§fn clone(&self) -> ForecastQueryClient
fn clone(&self) -> ForecastQueryClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl ForecastQuery for ForecastQueryClient
impl ForecastQuery for ForecastQueryClient
Source§fn query_forecast<'life0, 'async_trait>(
&'life0 self,
input: QueryForecastRequest,
) -> Pin<Box<dyn Future<Output = Result<QueryForecastResponse, RusotoError<QueryForecastError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_forecast<'life0, 'async_trait>(
&'life0 self,
input: QueryForecastRequest,
) -> Pin<Box<dyn Future<Output = Result<QueryForecastResponse, RusotoError<QueryForecastError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a forecast for a single item, filtered by the supplied criteria.
The criteria is a key-value pair. The key is either itemid
(or the equivalent non-timestamp, non-target field) from the TARGETTIMESERIES
dataset, or one of the forecast dimensions specified as part of the FeaturizationConfig
object.
By default, QueryForecast
returns the complete date range for the filtered forecast. You can request a specific date range.
To get the full forecast, use the <a href="https://docs.aws.amazon.com/enus/forecast/latest/dg/API_CreateForecastExportJob.html">CreateForecastExportJob operation.
The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.