

 Amazon Forecast is no longer available to new customers. Existing customers of Amazon Forecast can continue to use the service as normal. [Learn more"](https://aws.amazon.com/blogs/machine-learning/transition-your-amazon-forecast-usage-to-amazon-sagemaker-canvas/)

# Code examples for Forecast using AWS SDKs
<a name="service_code_examples"></a>

The following code examples show how to use Forecast with an AWS software development kit (SDK). 

*Actions* are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.

For a complete list of AWS SDK developer guides and code examples, see [Using Forecast with an AWS SDK](sdk-general-information-section.md). This topic also includes information about getting started and details about previous SDK versions.

**Contents**
+ [Basics](service_code_examples_basics.md)
  + [Actions](service_code_examples_actions.md)
    + [`CreateDataset`](example_forecast_CreateDataset_section.md)
    + [`CreateForecast`](example_forecast_CreateForecast_section.md)
    + [`DeleteDataset`](example_forecast_DeleteDataset_section.md)
    + [`DeleteForecast`](example_forecast_DeleteForecast_section.md)
    + [`DescribeForecast`](example_forecast_DescribeForecast_section.md)
    + [`ListDatasetGroups`](example_forecast_ListDatasetGroups_section.md)
    + [`ListForecasts`](example_forecast_ListForecasts_section.md)