#[non_exhaustive]pub struct CreateForecastInput {
pub forecast_name: Option<String>,
pub predictor_arn: Option<String>,
pub forecast_types: Option<Vec<String>>,
pub tags: Option<Vec<Tag>>,
pub time_series_selector: Option<TimeSeriesSelector>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.forecast_name: Option<String>A name for the forecast.
predictor_arn: Option<String>The Amazon Resource Name (ARN) of the predictor to use to generate the forecast.
forecast_types: Option<Vec<String>>The quantiles at which probabilistic forecasts are generated. You can currently specify up to 5 quantiles per forecast. Accepted values include 0.01 to 0.99 (increments of .01 only) and mean. The mean forecast is different from the median (0.50) when the distribution is not symmetric (for example, Beta and Negative Binomial).
The default quantiles are the quantiles you specified during predictor creation. If you didn't specify quantiles, the default values are ["0.1", "0.5", "0.9"].
The optional metadata that you apply to the forecast to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasawsas its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix ofawsdo not count against your tags per resource limit.
time_series_selector: Option<TimeSeriesSelector>Defines the set of time series that are used to create the forecasts in a TimeSeriesIdentifiers object.
The TimeSeriesIdentifiers object needs the following information:
-
DataSource -
Format -
Schema
Implementations§
source§impl CreateForecastInput
impl CreateForecastInput
sourcepub fn forecast_name(&self) -> Option<&str>
pub fn forecast_name(&self) -> Option<&str>
A name for the forecast.
sourcepub fn predictor_arn(&self) -> Option<&str>
pub fn predictor_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the predictor to use to generate the forecast.
sourcepub fn forecast_types(&self) -> &[String]
pub fn forecast_types(&self) -> &[String]
The quantiles at which probabilistic forecasts are generated. You can currently specify up to 5 quantiles per forecast. Accepted values include 0.01 to 0.99 (increments of .01 only) and mean. The mean forecast is different from the median (0.50) when the distribution is not symmetric (for example, Beta and Negative Binomial).
The default quantiles are the quantiles you specified during predictor creation. If you didn't specify quantiles, the default values are ["0.1", "0.5", "0.9"].
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .forecast_types.is_none().
The optional metadata that you apply to the forecast to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasawsas its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix ofawsdo not count against your tags per resource limit.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none().
sourcepub fn time_series_selector(&self) -> Option<&TimeSeriesSelector>
pub fn time_series_selector(&self) -> Option<&TimeSeriesSelector>
Defines the set of time series that are used to create the forecasts in a TimeSeriesIdentifiers object.
The TimeSeriesIdentifiers object needs the following information:
-
DataSource -
Format -
Schema
source§impl CreateForecastInput
impl CreateForecastInput
sourcepub fn builder() -> CreateForecastInputBuilder
pub fn builder() -> CreateForecastInputBuilder
Creates a new builder-style object to manufacture CreateForecastInput.
Trait Implementations§
source§impl Clone for CreateForecastInput
impl Clone for CreateForecastInput
source§fn clone(&self) -> CreateForecastInput
fn clone(&self) -> CreateForecastInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateForecastInput
impl Debug for CreateForecastInput
source§impl PartialEq for CreateForecastInput
impl PartialEq for CreateForecastInput
source§fn eq(&self, other: &CreateForecastInput) -> bool
fn eq(&self, other: &CreateForecastInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateForecastInput
Auto Trait Implementations§
impl Freeze for CreateForecastInput
impl RefUnwindSafe for CreateForecastInput
impl Send for CreateForecastInput
impl Sync for CreateForecastInput
impl Unpin for CreateForecastInput
impl UnwindSafe for CreateForecastInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more