AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Exports a forecast created by the CreateForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket. The forecast file name will match the following conventions:

__

where the component is in Java SimpleDateFormat (yyyy-MM-ddTHH-mm-ssZ).

You must specify a DataDestination object that includes an 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 forecast export jobs, use the ListForecastExportJobs 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 DescribeForecastExportJob operation.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginCreateForecastExportJob and EndCreateForecastExportJob.

Namespace: Amazon.ForecastService
Assembly: AWSSDK.ForecastService.dll
Version: 3.x.y.z

Syntax

C#
public virtual Task<CreateForecastExportJobResponse> CreateForecastExportJobAsync(
         CreateForecastExportJobRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.ForecastService.Model.CreateForecastExportJobRequest

Container for the necessary parameters to execute the CreateForecastExportJob service method.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the CreateForecastExportJob service method, as returned by ForecastService.

Exceptions

ExceptionCondition
InvalidInputException We can't process the request because it includes an invalid value or a value that exceeds the valid range.
LimitExceededException The limit on the number of resources per account has been exceeded.
ResourceAlreadyExistsException There is already a resource with this name. Try again with a different name.
ResourceInUseException The specified resource is in use.
ResourceNotFoundException We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer

See Also