pub struct CreateWhatIfForecastExport { /* private fields */ }Expand description
Fluent builder constructing a request to CreateWhatIfForecastExport.
Exports a forecast created by the CreateWhatIfForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket. The forecast file name will match the following conventions:
≈
The
You must specify a DataDestination object that includes an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see aws-forecast-iam-roles.
For more information, see howitworks-forecast.
To get a list of all your what-if forecast export jobs, use the ListWhatIfForecastExports operation.
The Status of the forecast export job must be ACTIVE before you can access the forecast in your Amazon S3 bucket. To get the status, use the DescribeWhatIfForecastExport operation.
Implementations§
source§impl CreateWhatIfForecastExport
impl CreateWhatIfForecastExport
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateWhatIfForecastExport, AwsResponseRetryClassifier>, SdkError<CreateWhatIfForecastExportError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateWhatIfForecastExport, AwsResponseRetryClassifier>, SdkError<CreateWhatIfForecastExportError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateWhatIfForecastExportOutput, SdkError<CreateWhatIfForecastExportError>>
pub async fn send(
self
) -> Result<CreateWhatIfForecastExportOutput, SdkError<CreateWhatIfForecastExportError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn what_if_forecast_export_name(self, input: impl Into<String>) -> Self
pub fn what_if_forecast_export_name(self, input: impl Into<String>) -> Self
The name of the what-if forecast to export.
sourcepub fn set_what_if_forecast_export_name(self, input: Option<String>) -> Self
pub fn set_what_if_forecast_export_name(self, input: Option<String>) -> Self
The name of the what-if forecast to export.
sourcepub fn what_if_forecast_arns(self, input: impl Into<String>) -> Self
pub fn what_if_forecast_arns(self, input: impl Into<String>) -> Self
Appends an item to WhatIfForecastArns.
To override the contents of this collection use set_what_if_forecast_arns.
The list of what-if forecast Amazon Resource Names (ARNs) to export.
sourcepub fn set_what_if_forecast_arns(self, input: Option<Vec<String>>) -> Self
pub fn set_what_if_forecast_arns(self, input: Option<Vec<String>>) -> Self
The list of what-if forecast Amazon Resource Names (ARNs) to export.
sourcepub fn destination(self, input: DataDestination) -> Self
pub fn destination(self, input: DataDestination) -> Self
The location where you want to save the forecast and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the location. The forecast must be exported to an Amazon S3 bucket.
If encryption is used, Destination must include an AWS Key Management Service (KMS) key. The IAM role must allow Amazon Forecast permission to access the key.
sourcepub fn set_destination(self, input: Option<DataDestination>) -> Self
pub fn set_destination(self, input: Option<DataDestination>) -> Self
The location where you want to save the forecast and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the location. The forecast must be exported to an Amazon S3 bucket.
If encryption is used, Destination must include an AWS Key Management Service (KMS) key. The IAM role must allow Amazon Forecast permission to access the key.
A list of tags to apply to the what if forecast.
sourcepub fn format(self, input: impl Into<String>) -> Self
pub fn format(self, input: impl Into<String>) -> Self
The format of the exported data, CSV or PARQUET.
sourcepub fn set_format(self, input: Option<String>) -> Self
pub fn set_format(self, input: Option<String>) -> Self
The format of the exported data, CSV or PARQUET.
Trait Implementations§
source§impl Clone for CreateWhatIfForecastExport
impl Clone for CreateWhatIfForecastExport
source§fn clone(&self) -> CreateWhatIfForecastExport
fn clone(&self) -> CreateWhatIfForecastExport
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more