forecastserviceiface

package
v0.0.0-...-7b44715 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package forecastserviceiface provides an interface to enable mocking the Amazon Forecast Service service client for testing your code.

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForecastServiceAPI

type ForecastServiceAPI interface {
	CreateAutoPredictor(*forecastservice.CreateAutoPredictorInput) (*forecastservice.CreateAutoPredictorOutput, error)
	CreateAutoPredictorWithContext(aws.Context, *forecastservice.CreateAutoPredictorInput, ...request.Option) (*forecastservice.CreateAutoPredictorOutput, error)
	CreateAutoPredictorRequest(*forecastservice.CreateAutoPredictorInput) (*request.Request, *forecastservice.CreateAutoPredictorOutput)

	CreateDataset(*forecastservice.CreateDatasetInput) (*forecastservice.CreateDatasetOutput, error)
	CreateDatasetWithContext(aws.Context, *forecastservice.CreateDatasetInput, ...request.Option) (*forecastservice.CreateDatasetOutput, error)
	CreateDatasetRequest(*forecastservice.CreateDatasetInput) (*request.Request, *forecastservice.CreateDatasetOutput)

	CreateDatasetGroup(*forecastservice.CreateDatasetGroupInput) (*forecastservice.CreateDatasetGroupOutput, error)
	CreateDatasetGroupWithContext(aws.Context, *forecastservice.CreateDatasetGroupInput, ...request.Option) (*forecastservice.CreateDatasetGroupOutput, error)
	CreateDatasetGroupRequest(*forecastservice.CreateDatasetGroupInput) (*request.Request, *forecastservice.CreateDatasetGroupOutput)

	CreateDatasetImportJob(*forecastservice.CreateDatasetImportJobInput) (*forecastservice.CreateDatasetImportJobOutput, error)
	CreateDatasetImportJobWithContext(aws.Context, *forecastservice.CreateDatasetImportJobInput, ...request.Option) (*forecastservice.CreateDatasetImportJobOutput, error)
	CreateDatasetImportJobRequest(*forecastservice.CreateDatasetImportJobInput) (*request.Request, *forecastservice.CreateDatasetImportJobOutput)

	CreateExplainability(*forecastservice.CreateExplainabilityInput) (*forecastservice.CreateExplainabilityOutput, error)
	CreateExplainabilityWithContext(aws.Context, *forecastservice.CreateExplainabilityInput, ...request.Option) (*forecastservice.CreateExplainabilityOutput, error)
	CreateExplainabilityRequest(*forecastservice.CreateExplainabilityInput) (*request.Request, *forecastservice.CreateExplainabilityOutput)

	CreateExplainabilityExport(*forecastservice.CreateExplainabilityExportInput) (*forecastservice.CreateExplainabilityExportOutput, error)
	CreateExplainabilityExportWithContext(aws.Context, *forecastservice.CreateExplainabilityExportInput, ...request.Option) (*forecastservice.CreateExplainabilityExportOutput, error)
	CreateExplainabilityExportRequest(*forecastservice.CreateExplainabilityExportInput) (*request.Request, *forecastservice.CreateExplainabilityExportOutput)

	CreateForecast(*forecastservice.CreateForecastInput) (*forecastservice.CreateForecastOutput, error)
	CreateForecastWithContext(aws.Context, *forecastservice.CreateForecastInput, ...request.Option) (*forecastservice.CreateForecastOutput, error)
	CreateForecastRequest(*forecastservice.CreateForecastInput) (*request.Request, *forecastservice.CreateForecastOutput)

	CreateForecastExportJob(*forecastservice.CreateForecastExportJobInput) (*forecastservice.CreateForecastExportJobOutput, error)
	CreateForecastExportJobWithContext(aws.Context, *forecastservice.CreateForecastExportJobInput, ...request.Option) (*forecastservice.CreateForecastExportJobOutput, error)
	CreateForecastExportJobRequest(*forecastservice.CreateForecastExportJobInput) (*request.Request, *forecastservice.CreateForecastExportJobOutput)

	CreateMonitor(*forecastservice.CreateMonitorInput) (*forecastservice.CreateMonitorOutput, error)
	CreateMonitorWithContext(aws.Context, *forecastservice.CreateMonitorInput, ...request.Option) (*forecastservice.CreateMonitorOutput, error)
	CreateMonitorRequest(*forecastservice.CreateMonitorInput) (*request.Request, *forecastservice.CreateMonitorOutput)

	CreatePredictor(*forecastservice.CreatePredictorInput) (*forecastservice.CreatePredictorOutput, error)
	CreatePredictorWithContext(aws.Context, *forecastservice.CreatePredictorInput, ...request.Option) (*forecastservice.CreatePredictorOutput, error)
	CreatePredictorRequest(*forecastservice.CreatePredictorInput) (*request.Request, *forecastservice.CreatePredictorOutput)

	CreatePredictorBacktestExportJob(*forecastservice.CreatePredictorBacktestExportJobInput) (*forecastservice.CreatePredictorBacktestExportJobOutput, error)
	CreatePredictorBacktestExportJobWithContext(aws.Context, *forecastservice.CreatePredictorBacktestExportJobInput, ...request.Option) (*forecastservice.CreatePredictorBacktestExportJobOutput, error)
	CreatePredictorBacktestExportJobRequest(*forecastservice.CreatePredictorBacktestExportJobInput) (*request.Request, *forecastservice.CreatePredictorBacktestExportJobOutput)

	CreateWhatIfAnalysis(*forecastservice.CreateWhatIfAnalysisInput) (*forecastservice.CreateWhatIfAnalysisOutput, error)
	CreateWhatIfAnalysisWithContext(aws.Context, *forecastservice.CreateWhatIfAnalysisInput, ...request.Option) (*forecastservice.CreateWhatIfAnalysisOutput, error)
	CreateWhatIfAnalysisRequest(*forecastservice.CreateWhatIfAnalysisInput) (*request.Request, *forecastservice.CreateWhatIfAnalysisOutput)

	CreateWhatIfForecast(*forecastservice.CreateWhatIfForecastInput) (*forecastservice.CreateWhatIfForecastOutput, error)
	CreateWhatIfForecastWithContext(aws.Context, *forecastservice.CreateWhatIfForecastInput, ...request.Option) (*forecastservice.CreateWhatIfForecastOutput, error)
	CreateWhatIfForecastRequest(*forecastservice.CreateWhatIfForecastInput) (*request.Request, *forecastservice.CreateWhatIfForecastOutput)

	CreateWhatIfForecastExport(*forecastservice.CreateWhatIfForecastExportInput) (*forecastservice.CreateWhatIfForecastExportOutput, error)
	CreateWhatIfForecastExportWithContext(aws.Context, *forecastservice.CreateWhatIfForecastExportInput, ...request.Option) (*forecastservice.CreateWhatIfForecastExportOutput, error)
	CreateWhatIfForecastExportRequest(*forecastservice.CreateWhatIfForecastExportInput) (*request.Request, *forecastservice.CreateWhatIfForecastExportOutput)

	DeleteDataset(*forecastservice.DeleteDatasetInput) (*forecastservice.DeleteDatasetOutput, error)
	DeleteDatasetWithContext(aws.Context, *forecastservice.DeleteDatasetInput, ...request.Option) (*forecastservice.DeleteDatasetOutput, error)
	DeleteDatasetRequest(*forecastservice.DeleteDatasetInput) (*request.Request, *forecastservice.DeleteDatasetOutput)

	DeleteDatasetGroup(*forecastservice.DeleteDatasetGroupInput) (*forecastservice.DeleteDatasetGroupOutput, error)
	DeleteDatasetGroupWithContext(aws.Context, *forecastservice.DeleteDatasetGroupInput, ...request.Option) (*forecastservice.DeleteDatasetGroupOutput, error)
	DeleteDatasetGroupRequest(*forecastservice.DeleteDatasetGroupInput) (*request.Request, *forecastservice.DeleteDatasetGroupOutput)

	DeleteDatasetImportJob(*forecastservice.DeleteDatasetImportJobInput) (*forecastservice.DeleteDatasetImportJobOutput, error)
	DeleteDatasetImportJobWithContext(aws.Context, *forecastservice.DeleteDatasetImportJobInput, ...request.Option) (*forecastservice.DeleteDatasetImportJobOutput, error)
	DeleteDatasetImportJobRequest(*forecastservice.DeleteDatasetImportJobInput) (*request.Request, *forecastservice.DeleteDatasetImportJobOutput)

	DeleteExplainability(*forecastservice.DeleteExplainabilityInput) (*forecastservice.DeleteExplainabilityOutput, error)
	DeleteExplainabilityWithContext(aws.Context, *forecastservice.DeleteExplainabilityInput, ...request.Option) (*forecastservice.DeleteExplainabilityOutput, error)
	DeleteExplainabilityRequest(*forecastservice.DeleteExplainabilityInput) (*request.Request, *forecastservice.DeleteExplainabilityOutput)

	DeleteExplainabilityExport(*forecastservice.DeleteExplainabilityExportInput) (*forecastservice.DeleteExplainabilityExportOutput, error)
	DeleteExplainabilityExportWithContext(aws.Context, *forecastservice.DeleteExplainabilityExportInput, ...request.Option) (*forecastservice.DeleteExplainabilityExportOutput, error)
	DeleteExplainabilityExportRequest(*forecastservice.DeleteExplainabilityExportInput) (*request.Request, *forecastservice.DeleteExplainabilityExportOutput)

	DeleteForecast(*forecastservice.DeleteForecastInput) (*forecastservice.DeleteForecastOutput, error)
	DeleteForecastWithContext(aws.Context, *forecastservice.DeleteForecastInput, ...request.Option) (*forecastservice.DeleteForecastOutput, error)
	DeleteForecastRequest(*forecastservice.DeleteForecastInput) (*request.Request, *forecastservice.DeleteForecastOutput)

	DeleteForecastExportJob(*forecastservice.DeleteForecastExportJobInput) (*forecastservice.DeleteForecastExportJobOutput, error)
	DeleteForecastExportJobWithContext(aws.Context, *forecastservice.DeleteForecastExportJobInput, ...request.Option) (*forecastservice.DeleteForecastExportJobOutput, error)
	DeleteForecastExportJobRequest(*forecastservice.DeleteForecastExportJobInput) (*request.Request, *forecastservice.DeleteForecastExportJobOutput)

	DeleteMonitor(*forecastservice.DeleteMonitorInput) (*forecastservice.DeleteMonitorOutput, error)
	DeleteMonitorWithContext(aws.Context, *forecastservice.DeleteMonitorInput, ...request.Option) (*forecastservice.DeleteMonitorOutput, error)
	DeleteMonitorRequest(*forecastservice.DeleteMonitorInput) (*request.Request, *forecastservice.DeleteMonitorOutput)

	DeletePredictor(*forecastservice.DeletePredictorInput) (*forecastservice.DeletePredictorOutput, error)
	DeletePredictorWithContext(aws.Context, *forecastservice.DeletePredictorInput, ...request.Option) (*forecastservice.DeletePredictorOutput, error)
	DeletePredictorRequest(*forecastservice.DeletePredictorInput) (*request.Request, *forecastservice.DeletePredictorOutput)

	DeletePredictorBacktestExportJob(*forecastservice.DeletePredictorBacktestExportJobInput) (*forecastservice.DeletePredictorBacktestExportJobOutput, error)
	DeletePredictorBacktestExportJobWithContext(aws.Context, *forecastservice.DeletePredictorBacktestExportJobInput, ...request.Option) (*forecastservice.DeletePredictorBacktestExportJobOutput, error)
	DeletePredictorBacktestExportJobRequest(*forecastservice.DeletePredictorBacktestExportJobInput) (*request.Request, *forecastservice.DeletePredictorBacktestExportJobOutput)

	DeleteResourceTree(*forecastservice.DeleteResourceTreeInput) (*forecastservice.DeleteResourceTreeOutput, error)
	DeleteResourceTreeWithContext(aws.Context, *forecastservice.DeleteResourceTreeInput, ...request.Option) (*forecastservice.DeleteResourceTreeOutput, error)
	DeleteResourceTreeRequest(*forecastservice.DeleteResourceTreeInput) (*request.Request, *forecastservice.DeleteResourceTreeOutput)

	DeleteWhatIfAnalysis(*forecastservice.DeleteWhatIfAnalysisInput) (*forecastservice.DeleteWhatIfAnalysisOutput, error)
	DeleteWhatIfAnalysisWithContext(aws.Context, *forecastservice.DeleteWhatIfAnalysisInput, ...request.Option) (*forecastservice.DeleteWhatIfAnalysisOutput, error)
	DeleteWhatIfAnalysisRequest(*forecastservice.DeleteWhatIfAnalysisInput) (*request.Request, *forecastservice.DeleteWhatIfAnalysisOutput)

	DeleteWhatIfForecast(*forecastservice.DeleteWhatIfForecastInput) (*forecastservice.DeleteWhatIfForecastOutput, error)
	DeleteWhatIfForecastWithContext(aws.Context, *forecastservice.DeleteWhatIfForecastInput, ...request.Option) (*forecastservice.DeleteWhatIfForecastOutput, error)
	DeleteWhatIfForecastRequest(*forecastservice.DeleteWhatIfForecastInput) (*request.Request, *forecastservice.DeleteWhatIfForecastOutput)

	DeleteWhatIfForecastExport(*forecastservice.DeleteWhatIfForecastExportInput) (*forecastservice.DeleteWhatIfForecastExportOutput, error)
	DeleteWhatIfForecastExportWithContext(aws.Context, *forecastservice.DeleteWhatIfForecastExportInput, ...request.Option) (*forecastservice.DeleteWhatIfForecastExportOutput, error)
	DeleteWhatIfForecastExportRequest(*forecastservice.DeleteWhatIfForecastExportInput) (*request.Request, *forecastservice.DeleteWhatIfForecastExportOutput)

	DescribeAutoPredictor(*forecastservice.DescribeAutoPredictorInput) (*forecastservice.DescribeAutoPredictorOutput, error)
	DescribeAutoPredictorWithContext(aws.Context, *forecastservice.DescribeAutoPredictorInput, ...request.Option) (*forecastservice.DescribeAutoPredictorOutput, error)
	DescribeAutoPredictorRequest(*forecastservice.DescribeAutoPredictorInput) (*request.Request, *forecastservice.DescribeAutoPredictorOutput)

	DescribeDataset(*forecastservice.DescribeDatasetInput) (*forecastservice.DescribeDatasetOutput, error)
	DescribeDatasetWithContext(aws.Context, *forecastservice.DescribeDatasetInput, ...request.Option) (*forecastservice.DescribeDatasetOutput, error)
	DescribeDatasetRequest(*forecastservice.DescribeDatasetInput) (*request.Request, *forecastservice.DescribeDatasetOutput)

	DescribeDatasetGroup(*forecastservice.DescribeDatasetGroupInput) (*forecastservice.DescribeDatasetGroupOutput, error)
	DescribeDatasetGroupWithContext(aws.Context, *forecastservice.DescribeDatasetGroupInput, ...request.Option) (*forecastservice.DescribeDatasetGroupOutput, error)
	DescribeDatasetGroupRequest(*forecastservice.DescribeDatasetGroupInput) (*request.Request, *forecastservice.DescribeDatasetGroupOutput)

	DescribeDatasetImportJob(*forecastservice.DescribeDatasetImportJobInput) (*forecastservice.DescribeDatasetImportJobOutput, error)
	DescribeDatasetImportJobWithContext(aws.Context, *forecastservice.DescribeDatasetImportJobInput, ...request.Option) (*forecastservice.DescribeDatasetImportJobOutput, error)
	DescribeDatasetImportJobRequest(*forecastservice.DescribeDatasetImportJobInput) (*request.Request, *forecastservice.DescribeDatasetImportJobOutput)

	DescribeExplainability(*forecastservice.DescribeExplainabilityInput) (*forecastservice.DescribeExplainabilityOutput, error)
	DescribeExplainabilityWithContext(aws.Context, *forecastservice.DescribeExplainabilityInput, ...request.Option) (*forecastservice.DescribeExplainabilityOutput, error)
	DescribeExplainabilityRequest(*forecastservice.DescribeExplainabilityInput) (*request.Request, *forecastservice.DescribeExplainabilityOutput)

	DescribeExplainabilityExport(*forecastservice.DescribeExplainabilityExportInput) (*forecastservice.DescribeExplainabilityExportOutput, error)
	DescribeExplainabilityExportWithContext(aws.Context, *forecastservice.DescribeExplainabilityExportInput, ...request.Option) (*forecastservice.DescribeExplainabilityExportOutput, error)
	DescribeExplainabilityExportRequest(*forecastservice.DescribeExplainabilityExportInput) (*request.Request, *forecastservice.DescribeExplainabilityExportOutput)

	DescribeForecast(*forecastservice.DescribeForecastInput) (*forecastservice.DescribeForecastOutput, error)
	DescribeForecastWithContext(aws.Context, *forecastservice.DescribeForecastInput, ...request.Option) (*forecastservice.DescribeForecastOutput, error)
	DescribeForecastRequest(*forecastservice.DescribeForecastInput) (*request.Request, *forecastservice.DescribeForecastOutput)

	DescribeForecastExportJob(*forecastservice.DescribeForecastExportJobInput) (*forecastservice.DescribeForecastExportJobOutput, error)
	DescribeForecastExportJobWithContext(aws.Context, *forecastservice.DescribeForecastExportJobInput, ...request.Option) (*forecastservice.DescribeForecastExportJobOutput, error)
	DescribeForecastExportJobRequest(*forecastservice.DescribeForecastExportJobInput) (*request.Request, *forecastservice.DescribeForecastExportJobOutput)

	DescribeMonitor(*forecastservice.DescribeMonitorInput) (*forecastservice.DescribeMonitorOutput, error)
	DescribeMonitorWithContext(aws.Context, *forecastservice.DescribeMonitorInput, ...request.Option) (*forecastservice.DescribeMonitorOutput, error)
	DescribeMonitorRequest(*forecastservice.DescribeMonitorInput) (*request.Request, *forecastservice.DescribeMonitorOutput)

	DescribePredictor(*forecastservice.DescribePredictorInput) (*forecastservice.DescribePredictorOutput, error)
	DescribePredictorWithContext(aws.Context, *forecastservice.DescribePredictorInput, ...request.Option) (*forecastservice.DescribePredictorOutput, error)
	DescribePredictorRequest(*forecastservice.DescribePredictorInput) (*request.Request, *forecastservice.DescribePredictorOutput)

	DescribePredictorBacktestExportJob(*forecastservice.DescribePredictorBacktestExportJobInput) (*forecastservice.DescribePredictorBacktestExportJobOutput, error)
	DescribePredictorBacktestExportJobWithContext(aws.Context, *forecastservice.DescribePredictorBacktestExportJobInput, ...request.Option) (*forecastservice.DescribePredictorBacktestExportJobOutput, error)
	DescribePredictorBacktestExportJobRequest(*forecastservice.DescribePredictorBacktestExportJobInput) (*request.Request, *forecastservice.DescribePredictorBacktestExportJobOutput)

	DescribeWhatIfAnalysis(*forecastservice.DescribeWhatIfAnalysisInput) (*forecastservice.DescribeWhatIfAnalysisOutput, error)
	DescribeWhatIfAnalysisWithContext(aws.Context, *forecastservice.DescribeWhatIfAnalysisInput, ...request.Option) (*forecastservice.DescribeWhatIfAnalysisOutput, error)
	DescribeWhatIfAnalysisRequest(*forecastservice.DescribeWhatIfAnalysisInput) (*request.Request, *forecastservice.DescribeWhatIfAnalysisOutput)

	DescribeWhatIfForecast(*forecastservice.DescribeWhatIfForecastInput) (*forecastservice.DescribeWhatIfForecastOutput, error)
	DescribeWhatIfForecastWithContext(aws.Context, *forecastservice.DescribeWhatIfForecastInput, ...request.Option) (*forecastservice.DescribeWhatIfForecastOutput, error)
	DescribeWhatIfForecastRequest(*forecastservice.DescribeWhatIfForecastInput) (*request.Request, *forecastservice.DescribeWhatIfForecastOutput)

	DescribeWhatIfForecastExport(*forecastservice.DescribeWhatIfForecastExportInput) (*forecastservice.DescribeWhatIfForecastExportOutput, error)
	DescribeWhatIfForecastExportWithContext(aws.Context, *forecastservice.DescribeWhatIfForecastExportInput, ...request.Option) (*forecastservice.DescribeWhatIfForecastExportOutput, error)
	DescribeWhatIfForecastExportRequest(*forecastservice.DescribeWhatIfForecastExportInput) (*request.Request, *forecastservice.DescribeWhatIfForecastExportOutput)

	GetAccuracyMetrics(*forecastservice.GetAccuracyMetricsInput) (*forecastservice.GetAccuracyMetricsOutput, error)
	GetAccuracyMetricsWithContext(aws.Context, *forecastservice.GetAccuracyMetricsInput, ...request.Option) (*forecastservice.GetAccuracyMetricsOutput, error)
	GetAccuracyMetricsRequest(*forecastservice.GetAccuracyMetricsInput) (*request.Request, *forecastservice.GetAccuracyMetricsOutput)

	ListDatasetGroups(*forecastservice.ListDatasetGroupsInput) (*forecastservice.ListDatasetGroupsOutput, error)
	ListDatasetGroupsWithContext(aws.Context, *forecastservice.ListDatasetGroupsInput, ...request.Option) (*forecastservice.ListDatasetGroupsOutput, error)
	ListDatasetGroupsRequest(*forecastservice.ListDatasetGroupsInput) (*request.Request, *forecastservice.ListDatasetGroupsOutput)

	ListDatasetGroupsPages(*forecastservice.ListDatasetGroupsInput, func(*forecastservice.ListDatasetGroupsOutput, bool) bool) error
	ListDatasetGroupsPagesWithContext(aws.Context, *forecastservice.ListDatasetGroupsInput, func(*forecastservice.ListDatasetGroupsOutput, bool) bool, ...request.Option) error

	ListDatasetImportJobs(*forecastservice.ListDatasetImportJobsInput) (*forecastservice.ListDatasetImportJobsOutput, error)
	ListDatasetImportJobsWithContext(aws.Context, *forecastservice.ListDatasetImportJobsInput, ...request.Option) (*forecastservice.ListDatasetImportJobsOutput, error)
	ListDatasetImportJobsRequest(*forecastservice.ListDatasetImportJobsInput) (*request.Request, *forecastservice.ListDatasetImportJobsOutput)

	ListDatasetImportJobsPages(*forecastservice.ListDatasetImportJobsInput, func(*forecastservice.ListDatasetImportJobsOutput, bool) bool) error
	ListDatasetImportJobsPagesWithContext(aws.Context, *forecastservice.ListDatasetImportJobsInput, func(*forecastservice.ListDatasetImportJobsOutput, bool) bool, ...request.Option) error

	ListDatasets(*forecastservice.ListDatasetsInput) (*forecastservice.ListDatasetsOutput, error)
	ListDatasetsWithContext(aws.Context, *forecastservice.ListDatasetsInput, ...request.Option) (*forecastservice.ListDatasetsOutput, error)
	ListDatasetsRequest(*forecastservice.ListDatasetsInput) (*request.Request, *forecastservice.ListDatasetsOutput)

	ListDatasetsPages(*forecastservice.ListDatasetsInput, func(*forecastservice.ListDatasetsOutput, bool) bool) error
	ListDatasetsPagesWithContext(aws.Context, *forecastservice.ListDatasetsInput, func(*forecastservice.ListDatasetsOutput, bool) bool, ...request.Option) error

	ListExplainabilities(*forecastservice.ListExplainabilitiesInput) (*forecastservice.ListExplainabilitiesOutput, error)
	ListExplainabilitiesWithContext(aws.Context, *forecastservice.ListExplainabilitiesInput, ...request.Option) (*forecastservice.ListExplainabilitiesOutput, error)
	ListExplainabilitiesRequest(*forecastservice.ListExplainabilitiesInput) (*request.Request, *forecastservice.ListExplainabilitiesOutput)

	ListExplainabilitiesPages(*forecastservice.ListExplainabilitiesInput, func(*forecastservice.ListExplainabilitiesOutput, bool) bool) error
	ListExplainabilitiesPagesWithContext(aws.Context, *forecastservice.ListExplainabilitiesInput, func(*forecastservice.ListExplainabilitiesOutput, bool) bool, ...request.Option) error

	ListExplainabilityExports(*forecastservice.ListExplainabilityExportsInput) (*forecastservice.ListExplainabilityExportsOutput, error)
	ListExplainabilityExportsWithContext(aws.Context, *forecastservice.ListExplainabilityExportsInput, ...request.Option) (*forecastservice.ListExplainabilityExportsOutput, error)
	ListExplainabilityExportsRequest(*forecastservice.ListExplainabilityExportsInput) (*request.Request, *forecastservice.ListExplainabilityExportsOutput)

	ListExplainabilityExportsPages(*forecastservice.ListExplainabilityExportsInput, func(*forecastservice.ListExplainabilityExportsOutput, bool) bool) error
	ListExplainabilityExportsPagesWithContext(aws.Context, *forecastservice.ListExplainabilityExportsInput, func(*forecastservice.ListExplainabilityExportsOutput, bool) bool, ...request.Option) error

	ListForecastExportJobs(*forecastservice.ListForecastExportJobsInput) (*forecastservice.ListForecastExportJobsOutput, error)
	ListForecastExportJobsWithContext(aws.Context, *forecastservice.ListForecastExportJobsInput, ...request.Option) (*forecastservice.ListForecastExportJobsOutput, error)
	ListForecastExportJobsRequest(*forecastservice.ListForecastExportJobsInput) (*request.Request, *forecastservice.ListForecastExportJobsOutput)

	ListForecastExportJobsPages(*forecastservice.ListForecastExportJobsInput, func(*forecastservice.ListForecastExportJobsOutput, bool) bool) error
	ListForecastExportJobsPagesWithContext(aws.Context, *forecastservice.ListForecastExportJobsInput, func(*forecastservice.ListForecastExportJobsOutput, bool) bool, ...request.Option) error

	ListForecasts(*forecastservice.ListForecastsInput) (*forecastservice.ListForecastsOutput, error)
	ListForecastsWithContext(aws.Context, *forecastservice.ListForecastsInput, ...request.Option) (*forecastservice.ListForecastsOutput, error)
	ListForecastsRequest(*forecastservice.ListForecastsInput) (*request.Request, *forecastservice.ListForecastsOutput)

	ListForecastsPages(*forecastservice.ListForecastsInput, func(*forecastservice.ListForecastsOutput, bool) bool) error
	ListForecastsPagesWithContext(aws.Context, *forecastservice.ListForecastsInput, func(*forecastservice.ListForecastsOutput, bool) bool, ...request.Option) error

	ListMonitorEvaluations(*forecastservice.ListMonitorEvaluationsInput) (*forecastservice.ListMonitorEvaluationsOutput, error)
	ListMonitorEvaluationsWithContext(aws.Context, *forecastservice.ListMonitorEvaluationsInput, ...request.Option) (*forecastservice.ListMonitorEvaluationsOutput, error)
	ListMonitorEvaluationsRequest(*forecastservice.ListMonitorEvaluationsInput) (*request.Request, *forecastservice.ListMonitorEvaluationsOutput)

	ListMonitorEvaluationsPages(*forecastservice.ListMonitorEvaluationsInput, func(*forecastservice.ListMonitorEvaluationsOutput, bool) bool) error
	ListMonitorEvaluationsPagesWithContext(aws.Context, *forecastservice.ListMonitorEvaluationsInput, func(*forecastservice.ListMonitorEvaluationsOutput, bool) bool, ...request.Option) error

	ListMonitors(*forecastservice.ListMonitorsInput) (*forecastservice.ListMonitorsOutput, error)
	ListMonitorsWithContext(aws.Context, *forecastservice.ListMonitorsInput, ...request.Option) (*forecastservice.ListMonitorsOutput, error)
	ListMonitorsRequest(*forecastservice.ListMonitorsInput) (*request.Request, *forecastservice.ListMonitorsOutput)

	ListMonitorsPages(*forecastservice.ListMonitorsInput, func(*forecastservice.ListMonitorsOutput, bool) bool) error
	ListMonitorsPagesWithContext(aws.Context, *forecastservice.ListMonitorsInput, func(*forecastservice.ListMonitorsOutput, bool) bool, ...request.Option) error

	ListPredictorBacktestExportJobs(*forecastservice.ListPredictorBacktestExportJobsInput) (*forecastservice.ListPredictorBacktestExportJobsOutput, error)
	ListPredictorBacktestExportJobsWithContext(aws.Context, *forecastservice.ListPredictorBacktestExportJobsInput, ...request.Option) (*forecastservice.ListPredictorBacktestExportJobsOutput, error)
	ListPredictorBacktestExportJobsRequest(*forecastservice.ListPredictorBacktestExportJobsInput) (*request.Request, *forecastservice.ListPredictorBacktestExportJobsOutput)

	ListPredictorBacktestExportJobsPages(*forecastservice.ListPredictorBacktestExportJobsInput, func(*forecastservice.ListPredictorBacktestExportJobsOutput, bool) bool) error
	ListPredictorBacktestExportJobsPagesWithContext(aws.Context, *forecastservice.ListPredictorBacktestExportJobsInput, func(*forecastservice.ListPredictorBacktestExportJobsOutput, bool) bool, ...request.Option) error

	ListPredictors(*forecastservice.ListPredictorsInput) (*forecastservice.ListPredictorsOutput, error)
	ListPredictorsWithContext(aws.Context, *forecastservice.ListPredictorsInput, ...request.Option) (*forecastservice.ListPredictorsOutput, error)
	ListPredictorsRequest(*forecastservice.ListPredictorsInput) (*request.Request, *forecastservice.ListPredictorsOutput)

	ListPredictorsPages(*forecastservice.ListPredictorsInput, func(*forecastservice.ListPredictorsOutput, bool) bool) error
	ListPredictorsPagesWithContext(aws.Context, *forecastservice.ListPredictorsInput, func(*forecastservice.ListPredictorsOutput, bool) bool, ...request.Option) error

	ListTagsForResource(*forecastservice.ListTagsForResourceInput) (*forecastservice.ListTagsForResourceOutput, error)
	ListTagsForResourceWithContext(aws.Context, *forecastservice.ListTagsForResourceInput, ...request.Option) (*forecastservice.ListTagsForResourceOutput, error)
	ListTagsForResourceRequest(*forecastservice.ListTagsForResourceInput) (*request.Request, *forecastservice.ListTagsForResourceOutput)

	ListWhatIfAnalyses(*forecastservice.ListWhatIfAnalysesInput) (*forecastservice.ListWhatIfAnalysesOutput, error)
	ListWhatIfAnalysesWithContext(aws.Context, *forecastservice.ListWhatIfAnalysesInput, ...request.Option) (*forecastservice.ListWhatIfAnalysesOutput, error)
	ListWhatIfAnalysesRequest(*forecastservice.ListWhatIfAnalysesInput) (*request.Request, *forecastservice.ListWhatIfAnalysesOutput)

	ListWhatIfAnalysesPages(*forecastservice.ListWhatIfAnalysesInput, func(*forecastservice.ListWhatIfAnalysesOutput, bool) bool) error
	ListWhatIfAnalysesPagesWithContext(aws.Context, *forecastservice.ListWhatIfAnalysesInput, func(*forecastservice.ListWhatIfAnalysesOutput, bool) bool, ...request.Option) error

	ListWhatIfForecastExports(*forecastservice.ListWhatIfForecastExportsInput) (*forecastservice.ListWhatIfForecastExportsOutput, error)
	ListWhatIfForecastExportsWithContext(aws.Context, *forecastservice.ListWhatIfForecastExportsInput, ...request.Option) (*forecastservice.ListWhatIfForecastExportsOutput, error)
	ListWhatIfForecastExportsRequest(*forecastservice.ListWhatIfForecastExportsInput) (*request.Request, *forecastservice.ListWhatIfForecastExportsOutput)

	ListWhatIfForecastExportsPages(*forecastservice.ListWhatIfForecastExportsInput, func(*forecastservice.ListWhatIfForecastExportsOutput, bool) bool) error
	ListWhatIfForecastExportsPagesWithContext(aws.Context, *forecastservice.ListWhatIfForecastExportsInput, func(*forecastservice.ListWhatIfForecastExportsOutput, bool) bool, ...request.Option) error

	ListWhatIfForecasts(*forecastservice.ListWhatIfForecastsInput) (*forecastservice.ListWhatIfForecastsOutput, error)
	ListWhatIfForecastsWithContext(aws.Context, *forecastservice.ListWhatIfForecastsInput, ...request.Option) (*forecastservice.ListWhatIfForecastsOutput, error)
	ListWhatIfForecastsRequest(*forecastservice.ListWhatIfForecastsInput) (*request.Request, *forecastservice.ListWhatIfForecastsOutput)

	ListWhatIfForecastsPages(*forecastservice.ListWhatIfForecastsInput, func(*forecastservice.ListWhatIfForecastsOutput, bool) bool) error
	ListWhatIfForecastsPagesWithContext(aws.Context, *forecastservice.ListWhatIfForecastsInput, func(*forecastservice.ListWhatIfForecastsOutput, bool) bool, ...request.Option) error

	ResumeResource(*forecastservice.ResumeResourceInput) (*forecastservice.ResumeResourceOutput, error)
	ResumeResourceWithContext(aws.Context, *forecastservice.ResumeResourceInput, ...request.Option) (*forecastservice.ResumeResourceOutput, error)
	ResumeResourceRequest(*forecastservice.ResumeResourceInput) (*request.Request, *forecastservice.ResumeResourceOutput)

	StopResource(*forecastservice.StopResourceInput) (*forecastservice.StopResourceOutput, error)
	StopResourceWithContext(aws.Context, *forecastservice.StopResourceInput, ...request.Option) (*forecastservice.StopResourceOutput, error)
	StopResourceRequest(*forecastservice.StopResourceInput) (*request.Request, *forecastservice.StopResourceOutput)

	TagResource(*forecastservice.TagResourceInput) (*forecastservice.TagResourceOutput, error)
	TagResourceWithContext(aws.Context, *forecastservice.TagResourceInput, ...request.Option) (*forecastservice.TagResourceOutput, error)
	TagResourceRequest(*forecastservice.TagResourceInput) (*request.Request, *forecastservice.TagResourceOutput)

	UntagResource(*forecastservice.UntagResourceInput) (*forecastservice.UntagResourceOutput, error)
	UntagResourceWithContext(aws.Context, *forecastservice.UntagResourceInput, ...request.Option) (*forecastservice.UntagResourceOutput, error)
	UntagResourceRequest(*forecastservice.UntagResourceInput) (*request.Request, *forecastservice.UntagResourceOutput)

	UpdateDatasetGroup(*forecastservice.UpdateDatasetGroupInput) (*forecastservice.UpdateDatasetGroupOutput, error)
	UpdateDatasetGroupWithContext(aws.Context, *forecastservice.UpdateDatasetGroupInput, ...request.Option) (*forecastservice.UpdateDatasetGroupOutput, error)
	UpdateDatasetGroupRequest(*forecastservice.UpdateDatasetGroupInput) (*request.Request, *forecastservice.UpdateDatasetGroupOutput)
}

ForecastServiceAPI provides an interface to enable mocking the forecastservice.ForecastService service client's API operation, paginators, and waiters. This make unit testing your code that calls out to the SDK's service client's calls easier.

The best way to use this interface is so the SDK's service client's calls can be stubbed out for unit testing your code with the SDK without needing to inject custom request handlers into the SDK's request pipeline.

// myFunc uses an SDK service client to make a request to
// Amazon Forecast Service.
func myFunc(svc forecastserviceiface.ForecastServiceAPI) bool {
    // Make svc.CreateAutoPredictor request
}

func main() {
    sess := session.New()
    svc := forecastservice.New(sess)

    myFunc(svc)
}

In your _test.go file:

// Define a mock struct to be used in your unit tests of myFunc.
type mockForecastServiceClient struct {
    forecastserviceiface.ForecastServiceAPI
}
func (m *mockForecastServiceClient) CreateAutoPredictor(input *forecastservice.CreateAutoPredictorInput) (*forecastservice.CreateAutoPredictorOutput, error) {
    // mock response/functionality
}

func TestMyFunc(t *testing.T) {
    // Setup Test
    mockSvc := &mockForecastServiceClient{}

    myfunc(mockSvc)

    // Verify myFunc's functionality
}

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters. Its suggested to use the pattern above for testing, or using tooling to generate mocks to satisfy the interfaces.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL