import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Forecast extends PolicyStatement { public servicePrefix = 'forecast' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to create an auto predictor
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreateAutoPredictor.html
     */ public toCreateAutoPredictor ( ) { return this . to ( 'CreateAutoPredictor' ) ; } /**
     * Grants permission to create a dataset
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreateDataset.html
     */ public toCreateDataset ( ) { return this . to ( 'CreateDataset' ) ; } /**
     * Grants permission to create a dataset group
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetGroup.html
     */ public toCreateDatasetGroup ( ) { return this . to ( 'CreateDatasetGroup' ) ; } /**
     * Grants permission to create a dataset import job
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetImportJob.html
     */ public toCreateDatasetImportJob ( ) { return this . to ( 'CreateDatasetImportJob' ) ; } /**
     * Grants permission to create an explainability
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreateExplainability.html
     */ public toCreateExplainability ( ) { return this . to ( 'CreateExplainability' ) ; } /**
     * Grants permission to create an explainability export using an explainability resource
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreateExplainabilityExport.html
     */ public toCreateExplainabilityExport ( ) { return this . to ( 'CreateExplainabilityExport' ) ; } /**
     * Grants permission to create a forecast
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreateForecast.html
     */ public toCreateForecast ( ) { return this . to ( 'CreateForecast' ) ; } /**
     * Grants permission to create a forecast export job using a forecast resource
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreateForecastExportJob.html
     */ public toCreateForecastExportJob ( ) { return this . to ( 'CreateForecastExportJob' ) ; } /**
     * Grants permission to create a predictor
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreatePredictor.html
     */ public toCreatePredictor ( ) { return this . to ( 'CreatePredictor' ) ; } /**
     * Grants permission to create a predictor backtest export job using a predictor
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_CreatePredictorBacktestExportJob.html
     */ public toCreatePredictorBacktestExportJob ( ) { return this . to ( 'CreatePredictorBacktestExportJob' ) ; } /**
     * Grants permission to delete a dataset
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeleteDataset.html
     */ public toDeleteDataset ( ) { return this . to ( 'DeleteDataset' ) ; } /**
     * Grants permission to delete a dataset group
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeleteDatasetGroup.html
     */ public toDeleteDatasetGroup ( ) { return this . to ( 'DeleteDatasetGroup' ) ; } /**
     * Grants permission to delete a dataset import job
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeleteDatasetImportJob.html
     */ public toDeleteDatasetImportJob ( ) { return this . to ( 'DeleteDatasetImportJob' ) ; } /**
     * Grants permission to delete an explainability
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeleteExplainability.html
     */ public toDeleteExplainability ( ) { return this . to ( 'DeleteExplainability' ) ; } /**
     * Grants permission to delete an explainability export
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeleteExplainabilityExport.html
     */ public toDeleteExplainabilityExport ( ) { return this . to ( 'DeleteExplainabilityExport' ) ; } /**
     * Grants permission to delete a forecast
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeleteForecast.html
     */ public toDeleteForecast ( ) { return this . to ( 'DeleteForecast' ) ; } /**
     * Grants permission to delete a forecast export job
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeleteForecastExportJob.html
     */ public toDeleteForecastExportJob ( ) { return this . to ( 'DeleteForecastExportJob' ) ; } /**
     * Grants permission to delete a predictor
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeletePredictor.html
     */ public toDeletePredictor ( ) { return this . to ( 'DeletePredictor' ) ; } /**
     * Grants permission to delete a predictor backtest export job
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeletePredictorBacktestExportJob.html
     */ public toDeletePredictorBacktestExportJob ( ) { return this . to ( 'DeletePredictorBacktestExportJob' ) ; } /**
     * Grants permission to delete a resource and its child resources
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DeleteResourceTree.html
     */ public toDeleteResourceTree ( ) { return this . to ( 'DeleteResourceTree' ) ; } /**
     * Grants permission to describe an auto predictor
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeAutoPredictor.html
     */ public toDescribeAutoPredictor ( ) { return this . to ( 'DescribeAutoPredictor' ) ; } /**
     * Grants permission to describe a dataset
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeDataset.html
     */ public toDescribeDataset ( ) { return this . to ( 'DescribeDataset' ) ; } /**
     * Grants permission to describe a dataset group
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetGroup.html
     */ public toDescribeDatasetGroup ( ) { return this . to ( 'DescribeDatasetGroup' ) ; } /**
     * Grants permission to describe a dataset import job
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetImportJob.html
     */ public toDescribeDatasetImportJob ( ) { return this . to ( 'DescribeDatasetImportJob' ) ; } /**
     * Grants permission to describe an explainability export
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeExplainabilityExport.html
     */ public toDescribeExplainabilityExport ( ) { return this . to ( 'DescribeExplainabilityExport' ) ; } /**
     * Grants permission to describe an explainability
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeExplainability.html
     */ public toDescribeExplainablity ( ) { return this . to ( 'DescribeExplainablity' ) ; } /**
     * Grants permission to describe a forecast
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeForecast.html
     */ public toDescribeForecast ( ) { return this . to ( 'DescribeForecast' ) ; } /**
     * Grants permission to describe a forecast export job
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeForecastExportJob.html
     */ public toDescribeForecastExportJob ( ) { return this . to ( 'DescribeForecastExportJob' ) ; } /**
     * Grants permission to describe a predictor
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribePredictor.html
     */ public toDescribePredictor ( ) { return this . to ( 'DescribePredictor' ) ; } /**
     * Grants permission to describe a predictor backtest export job
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_DescribePredictorBacktestExportJob.html
     */ public toDescribePredictorBacktestExportJob ( ) { return this . to ( 'DescribePredictorBacktestExportJob' ) ; } /**
     * Grants permission to get the Accuracy Metrics for a predictor
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_GetAccuracyMetrics.html
     */ public toGetAccuracyMetrics ( ) { return this . to ( 'GetAccuracyMetrics' ) ; } /**
     * Grants permission to list all the dataset groups
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListDatasetGroups.html
     */ public toListDatasetGroups ( ) { return this . to ( 'ListDatasetGroups' ) ; } /**
     * Grants permission to list all the dataset import jobs
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListDatasetImportJobs.html
     */ public toListDatasetImportJobs ( ) { return this . to ( 'ListDatasetImportJobs' ) ; } /**
     * Grants permission to list all the datasets
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListDatasets.html
     */ public toListDatasets ( ) { return this . to ( 'ListDatasets' ) ; } /**
     * Grants permission to list all the explainabilities
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListExplainabilities.html
     */ public toListExplainabilities ( ) { return this . to ( 'ListExplainabilities' ) ; } /**
     * Grants permission to list all the explainability exports
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListExplainabilityExports.html
     */ public toListExplainabilityExports ( ) { return this . to ( 'ListExplainabilityExports' ) ; } /**
     * Grants permission to list all the forecast export jobs
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListForecastExportJobs.html
     */ public toListForecastExportJobs ( ) { return this . to ( 'ListForecastExportJobs' ) ; } /**
     * Grants permission to list all the forecasts
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListForecasts.html
     */ public toListForecasts ( ) { return this . to ( 'ListForecasts' ) ; } /**
     * Grants permission to list all the predictor backtest export jobs
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListPredictorBacktestExportJobs.html
     */ public toListPredictorBacktestExportJobs ( ) { return this . to ( 'ListPredictorBacktestExportJobs' ) ; } /**
     * Grants permission to list all the predictors
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListPredictors.html
     */ public toListPredictors ( ) { return this . to ( 'ListPredictors' ) ; } /**
     * Grants permission to list the tags for an Amazon Forecast resource
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_ListTagsForResource.html
     */ public toListTagsForResource ( ) { return this . to ( 'ListTagsForResource' ) ; } /**
     * Grants permission to retrieve a forecast for a single item
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_forecastquery_QueryForecast.html
     */ public toQueryForecast ( ) { return this . to ( 'QueryForecast' ) ; } /**
     * Grants permission to stop Amazon Forecast resource jobs
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_StopResource.html
     */ public toStopResource ( ) { return this . to ( 'StopResource' ) ; } /**
     * Grants permission to associate the specified tags to a resource
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_TagResource.html
     */ public toTagResource ( ) { return this . to ( 'TagResource' ) ; } /**
     * Grants permission to delete the specified tags for a resource
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_UntagResource.html
     */ public toUntagResource ( ) { return this . to ( 'UntagResource' ) ; } /**
     * Grants permission to update a dataset group
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/forecast/latest/dg/API_UpdateDatasetGroup.html
     */ public toUpdateDatasetGroup ( ) { return this . to ( 'UpdateDatasetGroup' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'CreateAutoPredictor' , 'CreateDataset' , 'CreateDatasetGroup' , 'CreateDatasetImportJob' , 'CreateExplainability' , 'CreateExplainabilityExport' , 'CreateForecast' , 'CreateForecastExportJob' , 'CreatePredictor' , 'CreatePredictorBacktestExportJob' , 'DeleteDataset' , 'DeleteDatasetGroup' , 'DeleteDatasetImportJob' , 'DeleteExplainability' , 'DeleteExplainabilityExport' , 'DeleteForecast' , 'DeleteForecastExportJob' , 'DeletePredictor' , 'DeletePredictorBacktestExportJob' , 'DeleteResourceTree' , 'StopResource' , 'UpdateDatasetGroup' ] , Read : [ 'DescribeAutoPredictor' , 'DescribeDataset' , 'DescribeDatasetGroup' , 'DescribeDatasetImportJob' , 'DescribeExplainabilityExport' , 'DescribeExplainablity' , 'DescribeForecast' , 'DescribeForecastExportJob' , 'DescribePredictor' , 'DescribePredictorBacktestExportJob' , 'GetAccuracyMetrics' , 'ListDatasetGroups' , 'ListDatasetImportJobs' , 'ListDatasets' , 'ListExplainabilities' , 'ListExplainabilityExports' , 'ListForecastExportJobs' , 'ListForecasts' , 'ListPredictorBacktestExportJobs' , 'ListPredictors' , 'ListTagsForResource' , 'QueryForecast' ] , Tagging : [ 'TagResource' , 'UntagResource' ] } ; param resourceId param account param region param partition public onDataset ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:dataset/${ resourceId }` ) ; } param resourceId param account param region param partition public onDatasetGroup ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:dataset-group/${ resourceId }` ) ; } param resourceId param account param region param partition public onDatasetImportJob ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:dataset-import-job/${ resourceId }` ) ; } param resourceId param partition public onAlgorithm ( resourceId , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:::algorithm/${ resourceId }` ) ; } param resourceId param account param region param partition public onPredictor ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:predictor/${ resourceId }` ) ; } param resourceId param account param region param partition public onPredictorBacktestExportJob ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:predictor-backtest-export-job/${ resourceId }` ) ; } param resourceId param account param region param partition public onForecast ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:forecast/${ resourceId }` ) ; } param resourceId param account param region param partition public onForecastExport ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:forecast-export-job/${ resourceId }` ) ; } param resourceId param account param region param partition public onExplainability ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:explainability/${ resourceId }` ) ; } param resourceId param account param region param partition public onExplainabilityExport ( resourceId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:forecast:${ region || '*' }:${ account || '*' }:explainability-export/${ resourceId }` ) ; } }