@aws-sdk/client-forecast 3.31.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/Forecast.js +1 -1
- package/dist-cjs/Forecast.js.map +1 -0
- package/{dist/cjs → dist-cjs}/ForecastClient.js +14 -14
- package/dist-cjs/ForecastClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateDatasetCommand.js +5 -5
- package/dist-cjs/commands/CreateDatasetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateDatasetGroupCommand.js +5 -5
- package/dist-cjs/commands/CreateDatasetGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateDatasetImportJobCommand.js +5 -5
- package/dist-cjs/commands/CreateDatasetImportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateForecastCommand.js +5 -5
- package/dist-cjs/commands/CreateForecastCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateForecastExportJobCommand.js +5 -5
- package/dist-cjs/commands/CreateForecastExportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreatePredictorBacktestExportJobCommand.js +5 -5
- package/dist-cjs/commands/CreatePredictorBacktestExportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreatePredictorCommand.js +5 -5
- package/dist-cjs/commands/CreatePredictorCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteDatasetCommand.js +5 -5
- package/dist-cjs/commands/DeleteDatasetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteDatasetGroupCommand.js +5 -5
- package/dist-cjs/commands/DeleteDatasetGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteDatasetImportJobCommand.js +5 -5
- package/dist-cjs/commands/DeleteDatasetImportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteForecastCommand.js +5 -5
- package/dist-cjs/commands/DeleteForecastCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteForecastExportJobCommand.js +5 -5
- package/dist-cjs/commands/DeleteForecastExportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeletePredictorBacktestExportJobCommand.js +5 -5
- package/dist-cjs/commands/DeletePredictorBacktestExportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeletePredictorCommand.js +5 -5
- package/dist-cjs/commands/DeletePredictorCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteResourceTreeCommand.js +5 -5
- package/dist-cjs/commands/DeleteResourceTreeCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeDatasetCommand.js +5 -5
- package/dist-cjs/commands/DescribeDatasetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeDatasetGroupCommand.js +5 -5
- package/dist-cjs/commands/DescribeDatasetGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeDatasetImportJobCommand.js +5 -5
- package/dist-cjs/commands/DescribeDatasetImportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeForecastCommand.js +5 -5
- package/dist-cjs/commands/DescribeForecastCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeForecastExportJobCommand.js +5 -5
- package/dist-cjs/commands/DescribeForecastExportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribePredictorBacktestExportJobCommand.js +5 -5
- package/dist-cjs/commands/DescribePredictorBacktestExportJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribePredictorCommand.js +5 -5
- package/dist-cjs/commands/DescribePredictorCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAccuracyMetricsCommand.js +5 -5
- package/dist-cjs/commands/GetAccuracyMetricsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDatasetGroupsCommand.js +5 -5
- package/dist-cjs/commands/ListDatasetGroupsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDatasetImportJobsCommand.js +5 -5
- package/dist-cjs/commands/ListDatasetImportJobsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDatasetsCommand.js +5 -5
- package/dist-cjs/commands/ListDatasetsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListForecastExportJobsCommand.js +5 -5
- package/dist-cjs/commands/ListForecastExportJobsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListForecastsCommand.js +5 -5
- package/dist-cjs/commands/ListForecastsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListPredictorBacktestExportJobsCommand.js +5 -5
- package/dist-cjs/commands/ListPredictorBacktestExportJobsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListPredictorsCommand.js +5 -5
- package/dist-cjs/commands/ListPredictorsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StopResourceCommand.js +5 -5
- package/dist-cjs/commands/StopResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateDatasetGroupCommand.js +5 -5
- package/dist-cjs/commands/UpdateDatasetGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +50 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListDatasetGroupsPaginator.js +1 -1
- package/dist-cjs/pagination/ListDatasetGroupsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListDatasetImportJobsPaginator.js +1 -1
- package/dist-cjs/pagination/ListDatasetImportJobsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListDatasetsPaginator.js +1 -1
- package/dist-cjs/pagination/ListDatasetsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListForecastExportJobsPaginator.js +1 -1
- package/dist-cjs/pagination/ListForecastExportJobsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListForecastsPaginator.js +1 -1
- package/dist-cjs/pagination/ListForecastsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListPredictorBacktestExportJobsPaginator.js +1 -1
- package/dist-cjs/pagination/ListPredictorBacktestExportJobsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListPredictorsPaginator.js +1 -1
- package/dist-cjs/pagination/ListPredictorsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +193 -193
- package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/Forecast.js +2 -5
- package/dist-es/Forecast.js.map +1 -0
- package/{dist/es → dist-es}/ForecastClient.js +2 -10
- package/dist-es/ForecastClient.js.map +1 -0
- package/dist-es/commands/CreateDatasetCommand.js +40 -0
- package/{dist/es → dist-es}/commands/CreateDatasetCommand.js.map +1 -1
- package/{dist/es → dist-es}/commands/CreateDatasetGroupCommand.js +4 -38
- package/dist-es/commands/CreateDatasetGroupCommand.js.map +1 -0
- package/dist-es/commands/CreateDatasetImportJobCommand.js +40 -0
- package/dist-es/commands/CreateDatasetImportJobCommand.js.map +1 -0
- package/dist-es/commands/CreateForecastCommand.js +40 -0
- package/dist-es/commands/CreateForecastCommand.js.map +1 -0
- package/dist-es/commands/CreateForecastExportJobCommand.js +40 -0
- package/dist-es/commands/CreateForecastExportJobCommand.js.map +1 -0
- package/dist-es/commands/CreatePredictorBacktestExportJobCommand.js +40 -0
- package/dist-es/commands/CreatePredictorBacktestExportJobCommand.js.map +1 -0
- package/dist-es/commands/CreatePredictorCommand.js +40 -0
- package/dist-es/commands/CreatePredictorCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteDatasetCommand.js +4 -37
- package/dist-es/commands/DeleteDatasetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteDatasetGroupCommand.js +4 -32
- package/dist-es/commands/DeleteDatasetGroupCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteDatasetImportJobCommand.js +4 -31
- package/dist-es/commands/DeleteDatasetImportJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteForecastCommand.js +4 -33
- package/dist-es/commands/DeleteForecastCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteForecastExportJobCommand.js +4 -31
- package/dist-es/commands/DeleteForecastExportJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeletePredictorBacktestExportJobCommand.js +4 -29
- package/dist-es/commands/DeletePredictorBacktestExportJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeletePredictorCommand.js +4 -31
- package/dist-es/commands/DeletePredictorCommand.js.map +1 -0
- package/dist-es/commands/DeleteResourceTreeCommand.js +40 -0
- package/dist-es/commands/DeleteResourceTreeCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeDatasetCommand.js +4 -49
- package/dist-es/commands/DescribeDatasetCommand.js.map +1 -0
- package/dist-es/commands/DescribeDatasetGroupCommand.js +40 -0
- package/dist-es/commands/DescribeDatasetGroupCommand.js.map +1 -0
- package/dist-es/commands/DescribeDatasetImportJobCommand.js +40 -0
- package/dist-es/commands/DescribeDatasetImportJobCommand.js.map +1 -0
- package/dist-es/commands/DescribeForecastCommand.js +40 -0
- package/dist-es/commands/DescribeForecastCommand.js.map +1 -0
- package/dist-es/commands/DescribeForecastExportJobCommand.js +40 -0
- package/dist-es/commands/DescribeForecastExportJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribePredictorBacktestExportJobCommand.js +4 -53
- package/dist-es/commands/DescribePredictorBacktestExportJobCommand.js.map +1 -0
- package/dist-es/commands/DescribePredictorCommand.js +40 -0
- package/dist-es/commands/DescribePredictorCommand.js.map +1 -0
- package/dist-es/commands/GetAccuracyMetricsCommand.js +40 -0
- package/dist-es/commands/GetAccuracyMetricsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDatasetGroupsCommand.js +4 -32
- package/dist-es/commands/ListDatasetGroupsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDatasetImportJobsCommand.js +4 -32
- package/dist-es/commands/ListDatasetImportJobsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDatasetsCommand.js +4 -31
- package/dist-es/commands/ListDatasetsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListForecastExportJobsCommand.js +4 -32
- package/dist-es/commands/ListForecastExportJobsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListForecastsCommand.js +4 -33
- package/dist-es/commands/ListForecastsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListPredictorBacktestExportJobsCommand.js +4 -32
- package/dist-es/commands/ListPredictorBacktestExportJobsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListPredictorsCommand.js +4 -33
- package/dist-es/commands/ListPredictorsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/dist-es/commands/StopResourceCommand.js +40 -0
- package/dist-es/commands/StopResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateDatasetGroupCommand.js +4 -34
- package/dist-es/commands/UpdateDatasetGroupCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -306
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListDatasetGroupsPaginator.js +17 -29
- package/dist-es/pagination/ListDatasetGroupsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListDatasetImportJobsPaginator.js +17 -29
- package/dist-es/pagination/ListDatasetImportJobsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListDatasetsPaginator.js +17 -29
- package/dist-es/pagination/ListDatasetsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListForecastExportJobsPaginator.js +17 -29
- package/dist-es/pagination/ListForecastExportJobsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListForecastsPaginator.js +17 -29
- package/dist-es/pagination/ListForecastsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListPredictorBacktestExportJobsPaginator.js +17 -29
- package/dist-es/pagination/ListPredictorBacktestExportJobsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListPredictorsPaginator.js +17 -29
- package/dist-es/pagination/ListPredictorsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +649 -654
- package/dist-es/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/Forecast.d.ts +2 -2
- package/{dist/types → dist-types}/ForecastClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDatasetGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDatasetImportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateForecastCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateForecastExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreatePredictorBacktestExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreatePredictorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDatasetGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDatasetImportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteForecastCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteForecastExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeletePredictorBacktestExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeletePredictorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteResourceTreeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDatasetGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDatasetImportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeForecastCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeForecastExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribePredictorBacktestExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribePredictorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAccuracyMetricsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDatasetGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDatasetImportJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDatasetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListForecastExportJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListForecastsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPredictorBacktestExportJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPredictorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateDatasetGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDatasetGroupsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDatasetImportJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDatasetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListForecastExportJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListForecastsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPredictorBacktestExportJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPredictorsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Forecast.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/ForecastClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CreateDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDatasetGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDatasetImportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateForecastCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateForecastExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreatePredictorBacktestExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreatePredictorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDatasetGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDatasetImportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteForecastCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteForecastExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeletePredictorBacktestExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeletePredictorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteResourceTreeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeDatasetGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeDatasetImportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeForecastCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeForecastExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribePredictorBacktestExportJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribePredictorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetAccuracyMetricsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDatasetGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDatasetImportJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDatasetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListForecastExportJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListForecastsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListPredictorBacktestExportJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListPredictorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateDatasetGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDatasetGroupsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDatasetImportJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDatasetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListForecastExportJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListForecastsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPredictorBacktestExportJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPredictorsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{Forecast.ts → src/Forecast.ts} +3 -2
- package/{ForecastClient.ts → src/ForecastClient.ts} +58 -57
- package/{commands → src/commands}/CreateDatasetCommand.ts +8 -7
- package/{commands → src/commands}/CreateDatasetGroupCommand.ts +8 -7
- package/{commands → src/commands}/CreateDatasetImportJobCommand.ts +8 -7
- package/{commands → src/commands}/CreateForecastCommand.ts +8 -7
- package/{commands → src/commands}/CreateForecastExportJobCommand.ts +8 -7
- package/{commands → src/commands}/CreatePredictorBacktestExportJobCommand.ts +8 -7
- package/{commands → src/commands}/CreatePredictorCommand.ts +8 -7
- package/{commands → src/commands}/DeleteDatasetCommand.ts +8 -7
- package/{commands → src/commands}/DeleteDatasetGroupCommand.ts +8 -7
- package/{commands → src/commands}/DeleteDatasetImportJobCommand.ts +8 -7
- package/{commands → src/commands}/DeleteForecastCommand.ts +8 -7
- package/{commands → src/commands}/DeleteForecastExportJobCommand.ts +8 -7
- package/{commands → src/commands}/DeletePredictorBacktestExportJobCommand.ts +8 -7
- package/{commands → src/commands}/DeletePredictorCommand.ts +8 -7
- package/{commands → src/commands}/DeleteResourceTreeCommand.ts +8 -7
- package/{commands → src/commands}/DescribeDatasetCommand.ts +8 -7
- package/{commands → src/commands}/DescribeDatasetGroupCommand.ts +8 -7
- package/{commands → src/commands}/DescribeDatasetImportJobCommand.ts +8 -7
- package/{commands → src/commands}/DescribeForecastCommand.ts +8 -7
- package/{commands → src/commands}/DescribeForecastExportJobCommand.ts +8 -7
- package/{commands → src/commands}/DescribePredictorBacktestExportJobCommand.ts +11 -10
- package/{commands → src/commands}/DescribePredictorCommand.ts +8 -7
- package/{commands → src/commands}/GetAccuracyMetricsCommand.ts +8 -7
- package/{commands → src/commands}/ListDatasetGroupsCommand.ts +8 -7
- package/{commands → src/commands}/ListDatasetImportJobsCommand.ts +8 -7
- package/{commands → src/commands}/ListDatasetsCommand.ts +8 -7
- package/{commands → src/commands}/ListForecastExportJobsCommand.ts +8 -7
- package/{commands → src/commands}/ListForecastsCommand.ts +8 -7
- package/{commands → src/commands}/ListPredictorBacktestExportJobsCommand.ts +8 -7
- package/{commands → src/commands}/ListPredictorsCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/StopResourceCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateDatasetGroupCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListDatasetGroupsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListDatasetImportJobsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListDatasetsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListForecastExportJobsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListForecastsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListPredictorBacktestExportJobsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListPredictorsPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_json1_1.ts +57 -56
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/Forecast.js.map +0 -1
- package/dist/cjs/ForecastClient.js.map +0 -1
- package/dist/cjs/commands/CreateDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDatasetGroupCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDatasetImportJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateForecastCommand.js.map +0 -1
- package/dist/cjs/commands/CreateForecastExportJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreatePredictorBacktestExportJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreatePredictorCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDatasetGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDatasetImportJobCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteForecastCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteForecastExportJobCommand.js.map +0 -1
- package/dist/cjs/commands/DeletePredictorBacktestExportJobCommand.js.map +0 -1
- package/dist/cjs/commands/DeletePredictorCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteResourceTreeCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDatasetGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDatasetImportJobCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeForecastCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeForecastExportJobCommand.js.map +0 -1
- package/dist/cjs/commands/DescribePredictorBacktestExportJobCommand.js.map +0 -1
- package/dist/cjs/commands/DescribePredictorCommand.js.map +0 -1
- package/dist/cjs/commands/GetAccuracyMetricsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDatasetGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDatasetImportJobsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDatasetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListForecastExportJobsCommand.js.map +0 -1
- package/dist/cjs/commands/ListForecastsCommand.js.map +0 -1
- package/dist/cjs/commands/ListPredictorBacktestExportJobsCommand.js.map +0 -1
- package/dist/cjs/commands/ListPredictorsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StopResourceCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDatasetGroupCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -50
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/ListDatasetGroupsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListDatasetImportJobsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListDatasetsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListForecastExportJobsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListForecastsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPredictorBacktestExportJobsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPredictorsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Forecast.js.map +0 -1
- package/dist/es/ForecastClient.js.map +0 -1
- package/dist/es/commands/CreateDatasetCommand.js +0 -106
- package/dist/es/commands/CreateDatasetGroupCommand.js.map +0 -1
- package/dist/es/commands/CreateDatasetImportJobCommand.js +0 -84
- package/dist/es/commands/CreateDatasetImportJobCommand.js.map +0 -1
- package/dist/es/commands/CreateForecastCommand.js +0 -83
- package/dist/es/commands/CreateForecastCommand.js.map +0 -1
- package/dist/es/commands/CreateForecastExportJobCommand.js +0 -78
- package/dist/es/commands/CreateForecastExportJobCommand.js.map +0 -1
- package/dist/es/commands/CreatePredictorBacktestExportJobCommand.js +0 -79
- package/dist/es/commands/CreatePredictorBacktestExportJobCommand.js.map +0 -1
- package/dist/es/commands/CreatePredictorCommand.js +0 -126
- package/dist/es/commands/CreatePredictorCommand.js.map +0 -1
- package/dist/es/commands/DeleteDatasetCommand.js.map +0 -1
- package/dist/es/commands/DeleteDatasetGroupCommand.js.map +0 -1
- package/dist/es/commands/DeleteDatasetImportJobCommand.js.map +0 -1
- package/dist/es/commands/DeleteForecastCommand.js.map +0 -1
- package/dist/es/commands/DeleteForecastExportJobCommand.js.map +0 -1
- package/dist/es/commands/DeletePredictorBacktestExportJobCommand.js.map +0 -1
- package/dist/es/commands/DeletePredictorCommand.js.map +0 -1
- package/dist/es/commands/DeleteResourceTreeCommand.js +0 -96
- package/dist/es/commands/DeleteResourceTreeCommand.js.map +0 -1
- package/dist/es/commands/DescribeDatasetCommand.js.map +0 -1
- package/dist/es/commands/DescribeDatasetGroupCommand.js +0 -89
- package/dist/es/commands/DescribeDatasetGroupCommand.js.map +0 -1
- package/dist/es/commands/DescribeDatasetImportJobCommand.js +0 -99
- package/dist/es/commands/DescribeDatasetImportJobCommand.js.map +0 -1
- package/dist/es/commands/DescribeForecastCommand.js +0 -93
- package/dist/es/commands/DescribeForecastCommand.js.map +0 -1
- package/dist/es/commands/DescribeForecastExportJobCommand.js +0 -89
- package/dist/es/commands/DescribeForecastExportJobCommand.js.map +0 -1
- package/dist/es/commands/DescribePredictorBacktestExportJobCommand.js.map +0 -1
- package/dist/es/commands/DescribePredictorCommand.js +0 -99
- package/dist/es/commands/DescribePredictorCommand.js.map +0 -1
- package/dist/es/commands/GetAccuracyMetricsCommand.js +0 -82
- package/dist/es/commands/GetAccuracyMetricsCommand.js.map +0 -1
- package/dist/es/commands/ListDatasetGroupsCommand.js.map +0 -1
- package/dist/es/commands/ListDatasetImportJobsCommand.js.map +0 -1
- package/dist/es/commands/ListDatasetsCommand.js.map +0 -1
- package/dist/es/commands/ListForecastExportJobsCommand.js.map +0 -1
- package/dist/es/commands/ListForecastsCommand.js.map +0 -1
- package/dist/es/commands/ListPredictorBacktestExportJobsCommand.js.map +0 -1
- package/dist/es/commands/ListPredictorsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StopResourceCommand.js +0 -87
- package/dist/es/commands/StopResourceCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateDatasetGroupCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/ListDatasetGroupsPaginator.js.map +0 -1
- package/dist/es/pagination/ListDatasetImportJobsPaginator.js.map +0 -1
- package/dist/es/pagination/ListDatasetsPaginator.js.map +0 -1
- package/dist/es/pagination/ListForecastExportJobsPaginator.js.map +0 -1
- package/dist/es/pagination/ListForecastsPaginator.js.map +0 -1
- package/dist/es/pagination/ListPredictorBacktestExportJobsPaginator.js.map +0 -1
- package/dist/es/pagination/ListPredictorsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1CreateDatasetCommand = function (input, context)
|
|
|
9
9
|
"x-amz-target": "AmazonForecast.CreateDataset",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1CreateDatasetRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateDatasetGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateDatasetGroupCommand = function (input, cont
|
|
|
20
20
|
"x-amz-target": "AmazonForecast.CreateDatasetGroup",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateDatasetGroupRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateDatasetImportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateDatasetImportJobCommand = function (input,
|
|
|
31
31
|
"x-amz-target": "AmazonForecast.CreateDatasetImportJob",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateDatasetImportJobRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CreateForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreateForecastCommand = function (input, context)
|
|
|
42
42
|
"x-amz-target": "AmazonForecast.CreateForecast",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CreateForecastRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1CreateForecastExportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1CreateForecastExportJobCommand = function (input,
|
|
|
53
53
|
"x-amz-target": "AmazonForecast.CreateForecastExportJob",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1CreateForecastExportJobRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1CreatePredictorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1CreatePredictorCommand = function (input, context
|
|
|
64
64
|
"x-amz-target": "AmazonForecast.CreatePredictor",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1CreatePredictorRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1CreatePredictorBacktestExportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1CreatePredictorBacktestExportJobCommand = functio
|
|
|
75
75
|
"x-amz-target": "AmazonForecast.CreatePredictorBacktestExportJob",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1CreatePredictorBacktestExportJobRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DeleteDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DeleteDatasetCommand = function (input, context)
|
|
|
86
86
|
"x-amz-target": "AmazonForecast.DeleteDataset",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DeleteDatasetRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DeleteDatasetGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DeleteDatasetGroupCommand = function (input, cont
|
|
|
97
97
|
"x-amz-target": "AmazonForecast.DeleteDatasetGroup",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DeleteDatasetGroupRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DeleteDatasetImportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DeleteDatasetImportJobCommand = function (input,
|
|
|
108
108
|
"x-amz-target": "AmazonForecast.DeleteDatasetImportJob",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DeleteDatasetImportJobRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1DeleteForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DeleteForecastCommand = function (input, context)
|
|
|
119
119
|
"x-amz-target": "AmazonForecast.DeleteForecast",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1DeleteForecastRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1DeleteForecastExportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DeleteForecastExportJobCommand = function (input,
|
|
|
130
130
|
"x-amz-target": "AmazonForecast.DeleteForecastExportJob",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1DeleteForecastExportJobRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1DeletePredictorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1DeletePredictorCommand = function (input, context
|
|
|
141
141
|
"x-amz-target": "AmazonForecast.DeletePredictor",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1DeletePredictorRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1DeletePredictorBacktestExportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1DeletePredictorBacktestExportJobCommand = functio
|
|
|
152
152
|
"x-amz-target": "AmazonForecast.DeletePredictorBacktestExportJob",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1DeletePredictorBacktestExportJobRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1DeleteResourceTreeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1DeleteResourceTreeCommand = function (input, cont
|
|
|
163
163
|
"x-amz-target": "AmazonForecast.DeleteResourceTree",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1DeleteResourceTreeRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1DescribeDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1DescribeDatasetCommand = function (input, context
|
|
|
174
174
|
"x-amz-target": "AmazonForecast.DescribeDataset",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1DescribeDatasetRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1DescribeDatasetGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1DescribeDatasetGroupCommand = function (input, co
|
|
|
185
185
|
"x-amz-target": "AmazonForecast.DescribeDatasetGroup",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1DescribeDatasetGroupRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1DescribeDatasetImportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1DescribeDatasetImportJobCommand = function (input
|
|
|
196
196
|
"x-amz-target": "AmazonForecast.DescribeDatasetImportJob",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1DescribeDatasetImportJobRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1DescribeForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1DescribeForecastCommand = function (input, contex
|
|
|
207
207
|
"x-amz-target": "AmazonForecast.DescribeForecast",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1DescribeForecastRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1DescribeForecastExportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1DescribeForecastExportJobCommand = function (inpu
|
|
|
218
218
|
"x-amz-target": "AmazonForecast.DescribeForecastExportJob",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1DescribeForecastExportJobRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1DescribePredictorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1DescribePredictorCommand = function (input, conte
|
|
|
229
229
|
"x-amz-target": "AmazonForecast.DescribePredictor",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1DescribePredictorRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1DescribePredictorBacktestExportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1DescribePredictorBacktestExportJobCommand = funct
|
|
|
240
240
|
"x-amz-target": "AmazonForecast.DescribePredictorBacktestExportJob",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1DescribePredictorBacktestExportJobRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1GetAccuracyMetricsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1GetAccuracyMetricsCommand = function (input, cont
|
|
|
251
251
|
"x-amz-target": "AmazonForecast.GetAccuracyMetrics",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1GetAccuracyMetricsRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_1ListDatasetGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_1ListDatasetGroupsCommand = function (input, conte
|
|
|
262
262
|
"x-amz-target": "AmazonForecast.ListDatasetGroups",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_1ListDatasetGroupsRequest(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_1ListDatasetImportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_1ListDatasetImportJobsCommand = function (input, c
|
|
|
273
273
|
"x-amz-target": "AmazonForecast.ListDatasetImportJobs",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_1ListDatasetImportJobsRequest(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_1ListDatasetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_1ListDatasetsCommand = function (input, context) {
|
|
|
284
284
|
"x-amz-target": "AmazonForecast.ListDatasets",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_1ListDatasetsRequest(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_1ListForecastExportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_1ListForecastExportJobsCommand = function (input,
|
|
|
295
295
|
"x-amz-target": "AmazonForecast.ListForecastExportJobs",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_1ListForecastExportJobsRequest(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_1ListForecastsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_1ListForecastsCommand = function (input, context)
|
|
|
306
306
|
"x-amz-target": "AmazonForecast.ListForecasts",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_1ListForecastsRequest(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var serializeAws_json1_1ListPredictorBacktestExportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -317,7 +317,7 @@ export var serializeAws_json1_1ListPredictorBacktestExportJobsCommand = function
|
|
|
317
317
|
"x-amz-target": "AmazonForecast.ListPredictorBacktestExportJobs",
|
|
318
318
|
};
|
|
319
319
|
body = JSON.stringify(serializeAws_json1_1ListPredictorBacktestExportJobsRequest(input, context));
|
|
320
|
-
return [2
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
321
|
});
|
|
322
322
|
}); };
|
|
323
323
|
export var serializeAws_json1_1ListPredictorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -328,7 +328,7 @@ export var serializeAws_json1_1ListPredictorsCommand = function (input, context)
|
|
|
328
328
|
"x-amz-target": "AmazonForecast.ListPredictors",
|
|
329
329
|
};
|
|
330
330
|
body = JSON.stringify(serializeAws_json1_1ListPredictorsRequest(input, context));
|
|
331
|
-
return [2
|
|
331
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
332
332
|
});
|
|
333
333
|
}); };
|
|
334
334
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -339,7 +339,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
339
339
|
"x-amz-target": "AmazonForecast.ListTagsForResource",
|
|
340
340
|
};
|
|
341
341
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
342
|
-
return [2
|
|
342
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
343
343
|
});
|
|
344
344
|
}); };
|
|
345
345
|
export var serializeAws_json1_1StopResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -350,7 +350,7 @@ export var serializeAws_json1_1StopResourceCommand = function (input, context) {
|
|
|
350
350
|
"x-amz-target": "AmazonForecast.StopResource",
|
|
351
351
|
};
|
|
352
352
|
body = JSON.stringify(serializeAws_json1_1StopResourceRequest(input, context));
|
|
353
|
-
return [2
|
|
353
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
354
354
|
});
|
|
355
355
|
}); };
|
|
356
356
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -361,7 +361,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
361
361
|
"x-amz-target": "AmazonForecast.TagResource",
|
|
362
362
|
};
|
|
363
363
|
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
364
|
-
return [2
|
|
364
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
365
365
|
});
|
|
366
366
|
}); };
|
|
367
367
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -372,7 +372,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
372
372
|
"x-amz-target": "AmazonForecast.UntagResource",
|
|
373
373
|
};
|
|
374
374
|
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
375
|
-
return [2
|
|
375
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
376
376
|
});
|
|
377
377
|
}); };
|
|
378
378
|
export var serializeAws_json1_1UpdateDatasetGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -383,7 +383,7 @@ export var serializeAws_json1_1UpdateDatasetGroupCommand = function (input, cont
|
|
|
383
383
|
"x-amz-target": "AmazonForecast.UpdateDatasetGroup",
|
|
384
384
|
};
|
|
385
385
|
body = JSON.stringify(serializeAws_json1_1UpdateDatasetGroupRequest(input, context));
|
|
386
|
-
return [2
|
|
386
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
387
387
|
});
|
|
388
388
|
}); };
|
|
389
389
|
export var deserializeAws_json1_1CreateDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -392,15 +392,15 @@ export var deserializeAws_json1_1CreateDatasetCommand = function (output, contex
|
|
|
392
392
|
switch (_a.label) {
|
|
393
393
|
case 0:
|
|
394
394
|
if (output.statusCode >= 300) {
|
|
395
|
-
return [2
|
|
395
|
+
return [2, deserializeAws_json1_1CreateDatasetCommandError(output, context)];
|
|
396
396
|
}
|
|
397
|
-
return [4
|
|
397
|
+
return [4, parseBody(output.body, context)];
|
|
398
398
|
case 1:
|
|
399
399
|
data = _a.sent();
|
|
400
400
|
contents = {};
|
|
401
401
|
contents = deserializeAws_json1_1CreateDatasetResponse(data, context);
|
|
402
402
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
403
|
-
return [2
|
|
403
|
+
return [2, Promise.resolve(response)];
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
}); };
|
|
@@ -412,39 +412,39 @@ var deserializeAws_json1_1CreateDatasetCommandError = function (output, context)
|
|
|
412
412
|
case 0:
|
|
413
413
|
_a = [__assign({}, output)];
|
|
414
414
|
_f = {};
|
|
415
|
-
return [4
|
|
415
|
+
return [4, parseBody(output.body, context)];
|
|
416
416
|
case 1:
|
|
417
417
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
418
418
|
errorCode = "UnknownError";
|
|
419
419
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
420
|
_b = errorCode;
|
|
421
421
|
switch (_b) {
|
|
422
|
-
case "InvalidInputException": return [3
|
|
423
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
424
|
-
case "LimitExceededException": return [3
|
|
425
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
426
|
-
case "ResourceAlreadyExistsException": return [3
|
|
427
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3
|
|
422
|
+
case "InvalidInputException": return [3, 2];
|
|
423
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
424
|
+
case "LimitExceededException": return [3, 4];
|
|
425
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
426
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
427
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
428
428
|
}
|
|
429
|
-
return [3
|
|
429
|
+
return [3, 8];
|
|
430
430
|
case 2:
|
|
431
431
|
_c = [{}];
|
|
432
|
-
return [4
|
|
432
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
433
433
|
case 3:
|
|
434
434
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
435
|
-
return [3
|
|
435
|
+
return [3, 9];
|
|
436
436
|
case 4:
|
|
437
437
|
_d = [{}];
|
|
438
|
-
return [4
|
|
438
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
439
439
|
case 5:
|
|
440
440
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
441
|
-
return [3
|
|
441
|
+
return [3, 9];
|
|
442
442
|
case 6:
|
|
443
443
|
_e = [{}];
|
|
444
|
-
return [4
|
|
444
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
445
445
|
case 7:
|
|
446
446
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
447
|
-
return [3
|
|
447
|
+
return [3, 9];
|
|
448
448
|
case 8:
|
|
449
449
|
parsedBody = parsedOutput.body;
|
|
450
450
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -454,7 +454,7 @@ var deserializeAws_json1_1CreateDatasetCommandError = function (output, context)
|
|
|
454
454
|
message = response.message || response.Message || errorCode;
|
|
455
455
|
response.message = message;
|
|
456
456
|
delete response.Message;
|
|
457
|
-
return [2
|
|
457
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
}); };
|
|
@@ -464,15 +464,15 @@ export var deserializeAws_json1_1CreateDatasetGroupCommand = function (output, c
|
|
|
464
464
|
switch (_a.label) {
|
|
465
465
|
case 0:
|
|
466
466
|
if (output.statusCode >= 300) {
|
|
467
|
-
return [2
|
|
467
|
+
return [2, deserializeAws_json1_1CreateDatasetGroupCommandError(output, context)];
|
|
468
468
|
}
|
|
469
|
-
return [4
|
|
469
|
+
return [4, parseBody(output.body, context)];
|
|
470
470
|
case 1:
|
|
471
471
|
data = _a.sent();
|
|
472
472
|
contents = {};
|
|
473
473
|
contents = deserializeAws_json1_1CreateDatasetGroupResponse(data, context);
|
|
474
474
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
475
|
-
return [2
|
|
475
|
+
return [2, Promise.resolve(response)];
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
}); };
|
|
@@ -484,55 +484,55 @@ var deserializeAws_json1_1CreateDatasetGroupCommandError = function (output, con
|
|
|
484
484
|
case 0:
|
|
485
485
|
_a = [__assign({}, output)];
|
|
486
486
|
_h = {};
|
|
487
|
-
return [4
|
|
487
|
+
return [4, parseBody(output.body, context)];
|
|
488
488
|
case 1:
|
|
489
489
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
490
490
|
errorCode = "UnknownError";
|
|
491
491
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
492
492
|
_b = errorCode;
|
|
493
493
|
switch (_b) {
|
|
494
|
-
case "InvalidInputException": return [3
|
|
495
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
496
|
-
case "LimitExceededException": return [3
|
|
497
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
498
|
-
case "ResourceAlreadyExistsException": return [3
|
|
499
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3
|
|
500
|
-
case "ResourceInUseException": return [3
|
|
501
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
502
|
-
case "ResourceNotFoundException": return [3
|
|
503
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
494
|
+
case "InvalidInputException": return [3, 2];
|
|
495
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
496
|
+
case "LimitExceededException": return [3, 4];
|
|
497
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
498
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
499
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
500
|
+
case "ResourceInUseException": return [3, 8];
|
|
501
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
502
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
503
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
504
504
|
}
|
|
505
|
-
return [3
|
|
505
|
+
return [3, 12];
|
|
506
506
|
case 2:
|
|
507
507
|
_c = [{}];
|
|
508
|
-
return [4
|
|
508
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
509
509
|
case 3:
|
|
510
510
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
511
|
-
return [3
|
|
511
|
+
return [3, 13];
|
|
512
512
|
case 4:
|
|
513
513
|
_d = [{}];
|
|
514
|
-
return [4
|
|
514
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
515
515
|
case 5:
|
|
516
516
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
517
|
-
return [3
|
|
517
|
+
return [3, 13];
|
|
518
518
|
case 6:
|
|
519
519
|
_e = [{}];
|
|
520
|
-
return [4
|
|
520
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
521
521
|
case 7:
|
|
522
522
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
523
|
-
return [3
|
|
523
|
+
return [3, 13];
|
|
524
524
|
case 8:
|
|
525
525
|
_f = [{}];
|
|
526
|
-
return [4
|
|
526
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
527
527
|
case 9:
|
|
528
528
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
529
|
-
return [3
|
|
529
|
+
return [3, 13];
|
|
530
530
|
case 10:
|
|
531
531
|
_g = [{}];
|
|
532
|
-
return [4
|
|
532
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
533
533
|
case 11:
|
|
534
534
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
535
|
-
return [3
|
|
535
|
+
return [3, 13];
|
|
536
536
|
case 12:
|
|
537
537
|
parsedBody = parsedOutput.body;
|
|
538
538
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -542,7 +542,7 @@ var deserializeAws_json1_1CreateDatasetGroupCommandError = function (output, con
|
|
|
542
542
|
message = response.message || response.Message || errorCode;
|
|
543
543
|
response.message = message;
|
|
544
544
|
delete response.Message;
|
|
545
|
-
return [2
|
|
545
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
546
546
|
}
|
|
547
547
|
});
|
|
548
548
|
}); };
|
|
@@ -552,15 +552,15 @@ export var deserializeAws_json1_1CreateDatasetImportJobCommand = function (outpu
|
|
|
552
552
|
switch (_a.label) {
|
|
553
553
|
case 0:
|
|
554
554
|
if (output.statusCode >= 300) {
|
|
555
|
-
return [2
|
|
555
|
+
return [2, deserializeAws_json1_1CreateDatasetImportJobCommandError(output, context)];
|
|
556
556
|
}
|
|
557
|
-
return [4
|
|
557
|
+
return [4, parseBody(output.body, context)];
|
|
558
558
|
case 1:
|
|
559
559
|
data = _a.sent();
|
|
560
560
|
contents = {};
|
|
561
561
|
contents = deserializeAws_json1_1CreateDatasetImportJobResponse(data, context);
|
|
562
562
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
563
|
-
return [2
|
|
563
|
+
return [2, Promise.resolve(response)];
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
566
|
}); };
|
|
@@ -572,55 +572,55 @@ var deserializeAws_json1_1CreateDatasetImportJobCommandError = function (output,
|
|
|
572
572
|
case 0:
|
|
573
573
|
_a = [__assign({}, output)];
|
|
574
574
|
_h = {};
|
|
575
|
-
return [4
|
|
575
|
+
return [4, parseBody(output.body, context)];
|
|
576
576
|
case 1:
|
|
577
577
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
578
578
|
errorCode = "UnknownError";
|
|
579
579
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
580
580
|
_b = errorCode;
|
|
581
581
|
switch (_b) {
|
|
582
|
-
case "InvalidInputException": return [3
|
|
583
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
584
|
-
case "LimitExceededException": return [3
|
|
585
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
586
|
-
case "ResourceAlreadyExistsException": return [3
|
|
587
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3
|
|
588
|
-
case "ResourceInUseException": return [3
|
|
589
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
590
|
-
case "ResourceNotFoundException": return [3
|
|
591
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
582
|
+
case "InvalidInputException": return [3, 2];
|
|
583
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
584
|
+
case "LimitExceededException": return [3, 4];
|
|
585
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
586
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
587
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
588
|
+
case "ResourceInUseException": return [3, 8];
|
|
589
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
590
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
591
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
592
592
|
}
|
|
593
|
-
return [3
|
|
593
|
+
return [3, 12];
|
|
594
594
|
case 2:
|
|
595
595
|
_c = [{}];
|
|
596
|
-
return [4
|
|
596
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
597
597
|
case 3:
|
|
598
598
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
599
|
-
return [3
|
|
599
|
+
return [3, 13];
|
|
600
600
|
case 4:
|
|
601
601
|
_d = [{}];
|
|
602
|
-
return [4
|
|
602
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
603
603
|
case 5:
|
|
604
604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
605
|
-
return [3
|
|
605
|
+
return [3, 13];
|
|
606
606
|
case 6:
|
|
607
607
|
_e = [{}];
|
|
608
|
-
return [4
|
|
608
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
609
609
|
case 7:
|
|
610
610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
611
|
-
return [3
|
|
611
|
+
return [3, 13];
|
|
612
612
|
case 8:
|
|
613
613
|
_f = [{}];
|
|
614
|
-
return [4
|
|
614
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
615
615
|
case 9:
|
|
616
616
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
617
|
-
return [3
|
|
617
|
+
return [3, 13];
|
|
618
618
|
case 10:
|
|
619
619
|
_g = [{}];
|
|
620
|
-
return [4
|
|
620
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
621
621
|
case 11:
|
|
622
622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
623
|
-
return [3
|
|
623
|
+
return [3, 13];
|
|
624
624
|
case 12:
|
|
625
625
|
parsedBody = parsedOutput.body;
|
|
626
626
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -630,7 +630,7 @@ var deserializeAws_json1_1CreateDatasetImportJobCommandError = function (output,
|
|
|
630
630
|
message = response.message || response.Message || errorCode;
|
|
631
631
|
response.message = message;
|
|
632
632
|
delete response.Message;
|
|
633
|
-
return [2
|
|
633
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
634
634
|
}
|
|
635
635
|
});
|
|
636
636
|
}); };
|
|
@@ -640,15 +640,15 @@ export var deserializeAws_json1_1CreateForecastCommand = function (output, conte
|
|
|
640
640
|
switch (_a.label) {
|
|
641
641
|
case 0:
|
|
642
642
|
if (output.statusCode >= 300) {
|
|
643
|
-
return [2
|
|
643
|
+
return [2, deserializeAws_json1_1CreateForecastCommandError(output, context)];
|
|
644
644
|
}
|
|
645
|
-
return [4
|
|
645
|
+
return [4, parseBody(output.body, context)];
|
|
646
646
|
case 1:
|
|
647
647
|
data = _a.sent();
|
|
648
648
|
contents = {};
|
|
649
649
|
contents = deserializeAws_json1_1CreateForecastResponse(data, context);
|
|
650
650
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
651
|
-
return [2
|
|
651
|
+
return [2, Promise.resolve(response)];
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
654
|
}); };
|
|
@@ -660,55 +660,55 @@ var deserializeAws_json1_1CreateForecastCommandError = function (output, context
|
|
|
660
660
|
case 0:
|
|
661
661
|
_a = [__assign({}, output)];
|
|
662
662
|
_h = {};
|
|
663
|
-
return [4
|
|
663
|
+
return [4, parseBody(output.body, context)];
|
|
664
664
|
case 1:
|
|
665
665
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
666
666
|
errorCode = "UnknownError";
|
|
667
667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
668
|
_b = errorCode;
|
|
669
669
|
switch (_b) {
|
|
670
|
-
case "InvalidInputException": return [3
|
|
671
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
672
|
-
case "LimitExceededException": return [3
|
|
673
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
674
|
-
case "ResourceAlreadyExistsException": return [3
|
|
675
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3
|
|
676
|
-
case "ResourceInUseException": return [3
|
|
677
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
678
|
-
case "ResourceNotFoundException": return [3
|
|
679
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
670
|
+
case "InvalidInputException": return [3, 2];
|
|
671
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
672
|
+
case "LimitExceededException": return [3, 4];
|
|
673
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
674
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
675
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
676
|
+
case "ResourceInUseException": return [3, 8];
|
|
677
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
678
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
679
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
680
680
|
}
|
|
681
|
-
return [3
|
|
681
|
+
return [3, 12];
|
|
682
682
|
case 2:
|
|
683
683
|
_c = [{}];
|
|
684
|
-
return [4
|
|
684
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
685
685
|
case 3:
|
|
686
686
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
687
|
-
return [3
|
|
687
|
+
return [3, 13];
|
|
688
688
|
case 4:
|
|
689
689
|
_d = [{}];
|
|
690
|
-
return [4
|
|
690
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
691
691
|
case 5:
|
|
692
692
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
693
|
-
return [3
|
|
693
|
+
return [3, 13];
|
|
694
694
|
case 6:
|
|
695
695
|
_e = [{}];
|
|
696
|
-
return [4
|
|
696
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
697
697
|
case 7:
|
|
698
698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
699
|
-
return [3
|
|
699
|
+
return [3, 13];
|
|
700
700
|
case 8:
|
|
701
701
|
_f = [{}];
|
|
702
|
-
return [4
|
|
702
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
703
703
|
case 9:
|
|
704
704
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
705
|
-
return [3
|
|
705
|
+
return [3, 13];
|
|
706
706
|
case 10:
|
|
707
707
|
_g = [{}];
|
|
708
|
-
return [4
|
|
708
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
709
709
|
case 11:
|
|
710
710
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
711
|
-
return [3
|
|
711
|
+
return [3, 13];
|
|
712
712
|
case 12:
|
|
713
713
|
parsedBody = parsedOutput.body;
|
|
714
714
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -718,7 +718,7 @@ var deserializeAws_json1_1CreateForecastCommandError = function (output, context
|
|
|
718
718
|
message = response.message || response.Message || errorCode;
|
|
719
719
|
response.message = message;
|
|
720
720
|
delete response.Message;
|
|
721
|
-
return [2
|
|
721
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
724
|
}); };
|
|
@@ -728,15 +728,15 @@ export var deserializeAws_json1_1CreateForecastExportJobCommand = function (outp
|
|
|
728
728
|
switch (_a.label) {
|
|
729
729
|
case 0:
|
|
730
730
|
if (output.statusCode >= 300) {
|
|
731
|
-
return [2
|
|
731
|
+
return [2, deserializeAws_json1_1CreateForecastExportJobCommandError(output, context)];
|
|
732
732
|
}
|
|
733
|
-
return [4
|
|
733
|
+
return [4, parseBody(output.body, context)];
|
|
734
734
|
case 1:
|
|
735
735
|
data = _a.sent();
|
|
736
736
|
contents = {};
|
|
737
737
|
contents = deserializeAws_json1_1CreateForecastExportJobResponse(data, context);
|
|
738
738
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
739
|
-
return [2
|
|
739
|
+
return [2, Promise.resolve(response)];
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
742
|
}); };
|
|
@@ -748,55 +748,55 @@ var deserializeAws_json1_1CreateForecastExportJobCommandError = function (output
|
|
|
748
748
|
case 0:
|
|
749
749
|
_a = [__assign({}, output)];
|
|
750
750
|
_h = {};
|
|
751
|
-
return [4
|
|
751
|
+
return [4, parseBody(output.body, context)];
|
|
752
752
|
case 1:
|
|
753
753
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
754
754
|
errorCode = "UnknownError";
|
|
755
755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
756
|
_b = errorCode;
|
|
757
757
|
switch (_b) {
|
|
758
|
-
case "InvalidInputException": return [3
|
|
759
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
760
|
-
case "LimitExceededException": return [3
|
|
761
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
762
|
-
case "ResourceAlreadyExistsException": return [3
|
|
763
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3
|
|
764
|
-
case "ResourceInUseException": return [3
|
|
765
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
766
|
-
case "ResourceNotFoundException": return [3
|
|
767
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
758
|
+
case "InvalidInputException": return [3, 2];
|
|
759
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
760
|
+
case "LimitExceededException": return [3, 4];
|
|
761
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
762
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
763
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
764
|
+
case "ResourceInUseException": return [3, 8];
|
|
765
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
766
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
767
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
768
768
|
}
|
|
769
|
-
return [3
|
|
769
|
+
return [3, 12];
|
|
770
770
|
case 2:
|
|
771
771
|
_c = [{}];
|
|
772
|
-
return [4
|
|
772
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
773
773
|
case 3:
|
|
774
774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
775
|
-
return [3
|
|
775
|
+
return [3, 13];
|
|
776
776
|
case 4:
|
|
777
777
|
_d = [{}];
|
|
778
|
-
return [4
|
|
778
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
779
779
|
case 5:
|
|
780
780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
781
|
-
return [3
|
|
781
|
+
return [3, 13];
|
|
782
782
|
case 6:
|
|
783
783
|
_e = [{}];
|
|
784
|
-
return [4
|
|
784
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
785
785
|
case 7:
|
|
786
786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
787
|
-
return [3
|
|
787
|
+
return [3, 13];
|
|
788
788
|
case 8:
|
|
789
789
|
_f = [{}];
|
|
790
|
-
return [4
|
|
790
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
791
791
|
case 9:
|
|
792
792
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
793
|
-
return [3
|
|
793
|
+
return [3, 13];
|
|
794
794
|
case 10:
|
|
795
795
|
_g = [{}];
|
|
796
|
-
return [4
|
|
796
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
797
797
|
case 11:
|
|
798
798
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
799
|
-
return [3
|
|
799
|
+
return [3, 13];
|
|
800
800
|
case 12:
|
|
801
801
|
parsedBody = parsedOutput.body;
|
|
802
802
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -806,7 +806,7 @@ var deserializeAws_json1_1CreateForecastExportJobCommandError = function (output
|
|
|
806
806
|
message = response.message || response.Message || errorCode;
|
|
807
807
|
response.message = message;
|
|
808
808
|
delete response.Message;
|
|
809
|
-
return [2
|
|
809
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
812
|
}); };
|
|
@@ -816,15 +816,15 @@ export var deserializeAws_json1_1CreatePredictorCommand = function (output, cont
|
|
|
816
816
|
switch (_a.label) {
|
|
817
817
|
case 0:
|
|
818
818
|
if (output.statusCode >= 300) {
|
|
819
|
-
return [2
|
|
819
|
+
return [2, deserializeAws_json1_1CreatePredictorCommandError(output, context)];
|
|
820
820
|
}
|
|
821
|
-
return [4
|
|
821
|
+
return [4, parseBody(output.body, context)];
|
|
822
822
|
case 1:
|
|
823
823
|
data = _a.sent();
|
|
824
824
|
contents = {};
|
|
825
825
|
contents = deserializeAws_json1_1CreatePredictorResponse(data, context);
|
|
826
826
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
827
|
-
return [2
|
|
827
|
+
return [2, Promise.resolve(response)];
|
|
828
828
|
}
|
|
829
829
|
});
|
|
830
830
|
}); };
|
|
@@ -836,55 +836,55 @@ var deserializeAws_json1_1CreatePredictorCommandError = function (output, contex
|
|
|
836
836
|
case 0:
|
|
837
837
|
_a = [__assign({}, output)];
|
|
838
838
|
_h = {};
|
|
839
|
-
return [4
|
|
839
|
+
return [4, parseBody(output.body, context)];
|
|
840
840
|
case 1:
|
|
841
841
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
842
842
|
errorCode = "UnknownError";
|
|
843
843
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
844
|
_b = errorCode;
|
|
845
845
|
switch (_b) {
|
|
846
|
-
case "InvalidInputException": return [3
|
|
847
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
848
|
-
case "LimitExceededException": return [3
|
|
849
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
850
|
-
case "ResourceAlreadyExistsException": return [3
|
|
851
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3
|
|
852
|
-
case "ResourceInUseException": return [3
|
|
853
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
854
|
-
case "ResourceNotFoundException": return [3
|
|
855
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
846
|
+
case "InvalidInputException": return [3, 2];
|
|
847
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
848
|
+
case "LimitExceededException": return [3, 4];
|
|
849
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
850
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
851
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
852
|
+
case "ResourceInUseException": return [3, 8];
|
|
853
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
854
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
855
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
856
856
|
}
|
|
857
|
-
return [3
|
|
857
|
+
return [3, 12];
|
|
858
858
|
case 2:
|
|
859
859
|
_c = [{}];
|
|
860
|
-
return [4
|
|
860
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
861
861
|
case 3:
|
|
862
862
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
863
|
-
return [3
|
|
863
|
+
return [3, 13];
|
|
864
864
|
case 4:
|
|
865
865
|
_d = [{}];
|
|
866
|
-
return [4
|
|
866
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
867
867
|
case 5:
|
|
868
868
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
869
|
-
return [3
|
|
869
|
+
return [3, 13];
|
|
870
870
|
case 6:
|
|
871
871
|
_e = [{}];
|
|
872
|
-
return [4
|
|
872
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
873
873
|
case 7:
|
|
874
874
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
875
|
-
return [3
|
|
875
|
+
return [3, 13];
|
|
876
876
|
case 8:
|
|
877
877
|
_f = [{}];
|
|
878
|
-
return [4
|
|
878
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
879
879
|
case 9:
|
|
880
880
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
881
|
-
return [3
|
|
881
|
+
return [3, 13];
|
|
882
882
|
case 10:
|
|
883
883
|
_g = [{}];
|
|
884
|
-
return [4
|
|
884
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
885
885
|
case 11:
|
|
886
886
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
887
|
-
return [3
|
|
887
|
+
return [3, 13];
|
|
888
888
|
case 12:
|
|
889
889
|
parsedBody = parsedOutput.body;
|
|
890
890
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -894,7 +894,7 @@ var deserializeAws_json1_1CreatePredictorCommandError = function (output, contex
|
|
|
894
894
|
message = response.message || response.Message || errorCode;
|
|
895
895
|
response.message = message;
|
|
896
896
|
delete response.Message;
|
|
897
|
-
return [2
|
|
897
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
900
|
}); };
|
|
@@ -904,15 +904,15 @@ export var deserializeAws_json1_1CreatePredictorBacktestExportJobCommand = funct
|
|
|
904
904
|
switch (_a.label) {
|
|
905
905
|
case 0:
|
|
906
906
|
if (output.statusCode >= 300) {
|
|
907
|
-
return [2
|
|
907
|
+
return [2, deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError(output, context)];
|
|
908
908
|
}
|
|
909
|
-
return [4
|
|
909
|
+
return [4, parseBody(output.body, context)];
|
|
910
910
|
case 1:
|
|
911
911
|
data = _a.sent();
|
|
912
912
|
contents = {};
|
|
913
913
|
contents = deserializeAws_json1_1CreatePredictorBacktestExportJobResponse(data, context);
|
|
914
914
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
915
|
-
return [2
|
|
915
|
+
return [2, Promise.resolve(response)];
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
918
|
}); };
|
|
@@ -924,55 +924,55 @@ var deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = functio
|
|
|
924
924
|
case 0:
|
|
925
925
|
_a = [__assign({}, output)];
|
|
926
926
|
_h = {};
|
|
927
|
-
return [4
|
|
927
|
+
return [4, parseBody(output.body, context)];
|
|
928
928
|
case 1:
|
|
929
929
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
930
930
|
errorCode = "UnknownError";
|
|
931
931
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
932
|
_b = errorCode;
|
|
933
933
|
switch (_b) {
|
|
934
|
-
case "InvalidInputException": return [3
|
|
935
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
936
|
-
case "LimitExceededException": return [3
|
|
937
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
938
|
-
case "ResourceAlreadyExistsException": return [3
|
|
939
|
-
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3
|
|
940
|
-
case "ResourceInUseException": return [3
|
|
941
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
942
|
-
case "ResourceNotFoundException": return [3
|
|
943
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
934
|
+
case "InvalidInputException": return [3, 2];
|
|
935
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
936
|
+
case "LimitExceededException": return [3, 4];
|
|
937
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
938
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
939
|
+
case "com.amazonaws.forecast#ResourceAlreadyExistsException": return [3, 6];
|
|
940
|
+
case "ResourceInUseException": return [3, 8];
|
|
941
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 8];
|
|
942
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
943
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 10];
|
|
944
944
|
}
|
|
945
|
-
return [3
|
|
945
|
+
return [3, 12];
|
|
946
946
|
case 2:
|
|
947
947
|
_c = [{}];
|
|
948
|
-
return [4
|
|
948
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
949
949
|
case 3:
|
|
950
950
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
951
|
-
return [3
|
|
951
|
+
return [3, 13];
|
|
952
952
|
case 4:
|
|
953
953
|
_d = [{}];
|
|
954
|
-
return [4
|
|
954
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
955
955
|
case 5:
|
|
956
956
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
957
|
-
return [3
|
|
957
|
+
return [3, 13];
|
|
958
958
|
case 6:
|
|
959
959
|
_e = [{}];
|
|
960
|
-
return [4
|
|
960
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
961
961
|
case 7:
|
|
962
962
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
963
|
-
return [3
|
|
963
|
+
return [3, 13];
|
|
964
964
|
case 8:
|
|
965
965
|
_f = [{}];
|
|
966
|
-
return [4
|
|
966
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
967
967
|
case 9:
|
|
968
968
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
969
|
-
return [3
|
|
969
|
+
return [3, 13];
|
|
970
970
|
case 10:
|
|
971
971
|
_g = [{}];
|
|
972
|
-
return [4
|
|
972
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
973
973
|
case 11:
|
|
974
974
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
975
|
-
return [3
|
|
975
|
+
return [3, 13];
|
|
976
976
|
case 12:
|
|
977
977
|
parsedBody = parsedOutput.body;
|
|
978
978
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -982,7 +982,7 @@ var deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = functio
|
|
|
982
982
|
message = response.message || response.Message || errorCode;
|
|
983
983
|
response.message = message;
|
|
984
984
|
delete response.Message;
|
|
985
|
-
return [2
|
|
985
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
986
986
|
}
|
|
987
987
|
});
|
|
988
988
|
}); };
|
|
@@ -992,15 +992,15 @@ export var deserializeAws_json1_1DeleteDatasetCommand = function (output, contex
|
|
|
992
992
|
switch (_a.label) {
|
|
993
993
|
case 0:
|
|
994
994
|
if (output.statusCode >= 300) {
|
|
995
|
-
return [2
|
|
995
|
+
return [2, deserializeAws_json1_1DeleteDatasetCommandError(output, context)];
|
|
996
996
|
}
|
|
997
|
-
return [4
|
|
997
|
+
return [4, collectBody(output.body, context)];
|
|
998
998
|
case 1:
|
|
999
999
|
_a.sent();
|
|
1000
1000
|
response = {
|
|
1001
1001
|
$metadata: deserializeMetadata(output),
|
|
1002
1002
|
};
|
|
1003
|
-
return [2
|
|
1003
|
+
return [2, Promise.resolve(response)];
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
1006
|
}); };
|
|
@@ -1012,39 +1012,39 @@ var deserializeAws_json1_1DeleteDatasetCommandError = function (output, context)
|
|
|
1012
1012
|
case 0:
|
|
1013
1013
|
_a = [__assign({}, output)];
|
|
1014
1014
|
_f = {};
|
|
1015
|
-
return [4
|
|
1015
|
+
return [4, parseBody(output.body, context)];
|
|
1016
1016
|
case 1:
|
|
1017
1017
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1018
1018
|
errorCode = "UnknownError";
|
|
1019
1019
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
1020
|
_b = errorCode;
|
|
1021
1021
|
switch (_b) {
|
|
1022
|
-
case "InvalidInputException": return [3
|
|
1023
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1024
|
-
case "ResourceInUseException": return [3
|
|
1025
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
1026
|
-
case "ResourceNotFoundException": return [3
|
|
1027
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1022
|
+
case "InvalidInputException": return [3, 2];
|
|
1023
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1024
|
+
case "ResourceInUseException": return [3, 4];
|
|
1025
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1026
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1027
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1028
1028
|
}
|
|
1029
|
-
return [3
|
|
1029
|
+
return [3, 8];
|
|
1030
1030
|
case 2:
|
|
1031
1031
|
_c = [{}];
|
|
1032
|
-
return [4
|
|
1032
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1033
1033
|
case 3:
|
|
1034
1034
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1035
|
-
return [3
|
|
1035
|
+
return [3, 9];
|
|
1036
1036
|
case 4:
|
|
1037
1037
|
_d = [{}];
|
|
1038
|
-
return [4
|
|
1038
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1039
1039
|
case 5:
|
|
1040
1040
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1041
|
-
return [3
|
|
1041
|
+
return [3, 9];
|
|
1042
1042
|
case 6:
|
|
1043
1043
|
_e = [{}];
|
|
1044
|
-
return [4
|
|
1044
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1045
1045
|
case 7:
|
|
1046
1046
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1047
|
-
return [3
|
|
1047
|
+
return [3, 9];
|
|
1048
1048
|
case 8:
|
|
1049
1049
|
parsedBody = parsedOutput.body;
|
|
1050
1050
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1054,7 +1054,7 @@ var deserializeAws_json1_1DeleteDatasetCommandError = function (output, context)
|
|
|
1054
1054
|
message = response.message || response.Message || errorCode;
|
|
1055
1055
|
response.message = message;
|
|
1056
1056
|
delete response.Message;
|
|
1057
|
-
return [2
|
|
1057
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1058
1058
|
}
|
|
1059
1059
|
});
|
|
1060
1060
|
}); };
|
|
@@ -1064,15 +1064,15 @@ export var deserializeAws_json1_1DeleteDatasetGroupCommand = function (output, c
|
|
|
1064
1064
|
switch (_a.label) {
|
|
1065
1065
|
case 0:
|
|
1066
1066
|
if (output.statusCode >= 300) {
|
|
1067
|
-
return [2
|
|
1067
|
+
return [2, deserializeAws_json1_1DeleteDatasetGroupCommandError(output, context)];
|
|
1068
1068
|
}
|
|
1069
|
-
return [4
|
|
1069
|
+
return [4, collectBody(output.body, context)];
|
|
1070
1070
|
case 1:
|
|
1071
1071
|
_a.sent();
|
|
1072
1072
|
response = {
|
|
1073
1073
|
$metadata: deserializeMetadata(output),
|
|
1074
1074
|
};
|
|
1075
|
-
return [2
|
|
1075
|
+
return [2, Promise.resolve(response)];
|
|
1076
1076
|
}
|
|
1077
1077
|
});
|
|
1078
1078
|
}); };
|
|
@@ -1084,39 +1084,39 @@ var deserializeAws_json1_1DeleteDatasetGroupCommandError = function (output, con
|
|
|
1084
1084
|
case 0:
|
|
1085
1085
|
_a = [__assign({}, output)];
|
|
1086
1086
|
_f = {};
|
|
1087
|
-
return [4
|
|
1087
|
+
return [4, parseBody(output.body, context)];
|
|
1088
1088
|
case 1:
|
|
1089
1089
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1090
1090
|
errorCode = "UnknownError";
|
|
1091
1091
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1092
|
_b = errorCode;
|
|
1093
1093
|
switch (_b) {
|
|
1094
|
-
case "InvalidInputException": return [3
|
|
1095
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1096
|
-
case "ResourceInUseException": return [3
|
|
1097
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
1098
|
-
case "ResourceNotFoundException": return [3
|
|
1099
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1094
|
+
case "InvalidInputException": return [3, 2];
|
|
1095
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1096
|
+
case "ResourceInUseException": return [3, 4];
|
|
1097
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1098
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1099
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1100
1100
|
}
|
|
1101
|
-
return [3
|
|
1101
|
+
return [3, 8];
|
|
1102
1102
|
case 2:
|
|
1103
1103
|
_c = [{}];
|
|
1104
|
-
return [4
|
|
1104
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1105
1105
|
case 3:
|
|
1106
1106
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1107
|
-
return [3
|
|
1107
|
+
return [3, 9];
|
|
1108
1108
|
case 4:
|
|
1109
1109
|
_d = [{}];
|
|
1110
|
-
return [4
|
|
1110
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1111
1111
|
case 5:
|
|
1112
1112
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1113
|
-
return [3
|
|
1113
|
+
return [3, 9];
|
|
1114
1114
|
case 6:
|
|
1115
1115
|
_e = [{}];
|
|
1116
|
-
return [4
|
|
1116
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1117
1117
|
case 7:
|
|
1118
1118
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1119
|
-
return [3
|
|
1119
|
+
return [3, 9];
|
|
1120
1120
|
case 8:
|
|
1121
1121
|
parsedBody = parsedOutput.body;
|
|
1122
1122
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1126,7 +1126,7 @@ var deserializeAws_json1_1DeleteDatasetGroupCommandError = function (output, con
|
|
|
1126
1126
|
message = response.message || response.Message || errorCode;
|
|
1127
1127
|
response.message = message;
|
|
1128
1128
|
delete response.Message;
|
|
1129
|
-
return [2
|
|
1129
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1130
1130
|
}
|
|
1131
1131
|
});
|
|
1132
1132
|
}); };
|
|
@@ -1136,15 +1136,15 @@ export var deserializeAws_json1_1DeleteDatasetImportJobCommand = function (outpu
|
|
|
1136
1136
|
switch (_a.label) {
|
|
1137
1137
|
case 0:
|
|
1138
1138
|
if (output.statusCode >= 300) {
|
|
1139
|
-
return [2
|
|
1139
|
+
return [2, deserializeAws_json1_1DeleteDatasetImportJobCommandError(output, context)];
|
|
1140
1140
|
}
|
|
1141
|
-
return [4
|
|
1141
|
+
return [4, collectBody(output.body, context)];
|
|
1142
1142
|
case 1:
|
|
1143
1143
|
_a.sent();
|
|
1144
1144
|
response = {
|
|
1145
1145
|
$metadata: deserializeMetadata(output),
|
|
1146
1146
|
};
|
|
1147
|
-
return [2
|
|
1147
|
+
return [2, Promise.resolve(response)];
|
|
1148
1148
|
}
|
|
1149
1149
|
});
|
|
1150
1150
|
}); };
|
|
@@ -1156,39 +1156,39 @@ var deserializeAws_json1_1DeleteDatasetImportJobCommandError = function (output,
|
|
|
1156
1156
|
case 0:
|
|
1157
1157
|
_a = [__assign({}, output)];
|
|
1158
1158
|
_f = {};
|
|
1159
|
-
return [4
|
|
1159
|
+
return [4, parseBody(output.body, context)];
|
|
1160
1160
|
case 1:
|
|
1161
1161
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1162
1162
|
errorCode = "UnknownError";
|
|
1163
1163
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
1164
|
_b = errorCode;
|
|
1165
1165
|
switch (_b) {
|
|
1166
|
-
case "InvalidInputException": return [3
|
|
1167
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1168
|
-
case "ResourceInUseException": return [3
|
|
1169
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
1170
|
-
case "ResourceNotFoundException": return [3
|
|
1171
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1166
|
+
case "InvalidInputException": return [3, 2];
|
|
1167
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1168
|
+
case "ResourceInUseException": return [3, 4];
|
|
1169
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1170
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1171
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1172
1172
|
}
|
|
1173
|
-
return [3
|
|
1173
|
+
return [3, 8];
|
|
1174
1174
|
case 2:
|
|
1175
1175
|
_c = [{}];
|
|
1176
|
-
return [4
|
|
1176
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1177
1177
|
case 3:
|
|
1178
1178
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1179
|
-
return [3
|
|
1179
|
+
return [3, 9];
|
|
1180
1180
|
case 4:
|
|
1181
1181
|
_d = [{}];
|
|
1182
|
-
return [4
|
|
1182
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1183
1183
|
case 5:
|
|
1184
1184
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1185
|
-
return [3
|
|
1185
|
+
return [3, 9];
|
|
1186
1186
|
case 6:
|
|
1187
1187
|
_e = [{}];
|
|
1188
|
-
return [4
|
|
1188
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1189
1189
|
case 7:
|
|
1190
1190
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1191
|
-
return [3
|
|
1191
|
+
return [3, 9];
|
|
1192
1192
|
case 8:
|
|
1193
1193
|
parsedBody = parsedOutput.body;
|
|
1194
1194
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1198,7 +1198,7 @@ var deserializeAws_json1_1DeleteDatasetImportJobCommandError = function (output,
|
|
|
1198
1198
|
message = response.message || response.Message || errorCode;
|
|
1199
1199
|
response.message = message;
|
|
1200
1200
|
delete response.Message;
|
|
1201
|
-
return [2
|
|
1201
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1202
1202
|
}
|
|
1203
1203
|
});
|
|
1204
1204
|
}); };
|
|
@@ -1208,15 +1208,15 @@ export var deserializeAws_json1_1DeleteForecastCommand = function (output, conte
|
|
|
1208
1208
|
switch (_a.label) {
|
|
1209
1209
|
case 0:
|
|
1210
1210
|
if (output.statusCode >= 300) {
|
|
1211
|
-
return [2
|
|
1211
|
+
return [2, deserializeAws_json1_1DeleteForecastCommandError(output, context)];
|
|
1212
1212
|
}
|
|
1213
|
-
return [4
|
|
1213
|
+
return [4, collectBody(output.body, context)];
|
|
1214
1214
|
case 1:
|
|
1215
1215
|
_a.sent();
|
|
1216
1216
|
response = {
|
|
1217
1217
|
$metadata: deserializeMetadata(output),
|
|
1218
1218
|
};
|
|
1219
|
-
return [2
|
|
1219
|
+
return [2, Promise.resolve(response)];
|
|
1220
1220
|
}
|
|
1221
1221
|
});
|
|
1222
1222
|
}); };
|
|
@@ -1228,39 +1228,39 @@ var deserializeAws_json1_1DeleteForecastCommandError = function (output, context
|
|
|
1228
1228
|
case 0:
|
|
1229
1229
|
_a = [__assign({}, output)];
|
|
1230
1230
|
_f = {};
|
|
1231
|
-
return [4
|
|
1231
|
+
return [4, parseBody(output.body, context)];
|
|
1232
1232
|
case 1:
|
|
1233
1233
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1234
1234
|
errorCode = "UnknownError";
|
|
1235
1235
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1236
|
_b = errorCode;
|
|
1237
1237
|
switch (_b) {
|
|
1238
|
-
case "InvalidInputException": return [3
|
|
1239
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1240
|
-
case "ResourceInUseException": return [3
|
|
1241
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
1242
|
-
case "ResourceNotFoundException": return [3
|
|
1243
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1238
|
+
case "InvalidInputException": return [3, 2];
|
|
1239
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1240
|
+
case "ResourceInUseException": return [3, 4];
|
|
1241
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1242
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1243
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1244
1244
|
}
|
|
1245
|
-
return [3
|
|
1245
|
+
return [3, 8];
|
|
1246
1246
|
case 2:
|
|
1247
1247
|
_c = [{}];
|
|
1248
|
-
return [4
|
|
1248
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1249
1249
|
case 3:
|
|
1250
1250
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1251
|
-
return [3
|
|
1251
|
+
return [3, 9];
|
|
1252
1252
|
case 4:
|
|
1253
1253
|
_d = [{}];
|
|
1254
|
-
return [4
|
|
1254
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1255
1255
|
case 5:
|
|
1256
1256
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1257
|
-
return [3
|
|
1257
|
+
return [3, 9];
|
|
1258
1258
|
case 6:
|
|
1259
1259
|
_e = [{}];
|
|
1260
|
-
return [4
|
|
1260
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1261
1261
|
case 7:
|
|
1262
1262
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1263
|
-
return [3
|
|
1263
|
+
return [3, 9];
|
|
1264
1264
|
case 8:
|
|
1265
1265
|
parsedBody = parsedOutput.body;
|
|
1266
1266
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1270,7 +1270,7 @@ var deserializeAws_json1_1DeleteForecastCommandError = function (output, context
|
|
|
1270
1270
|
message = response.message || response.Message || errorCode;
|
|
1271
1271
|
response.message = message;
|
|
1272
1272
|
delete response.Message;
|
|
1273
|
-
return [2
|
|
1273
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1274
1274
|
}
|
|
1275
1275
|
});
|
|
1276
1276
|
}); };
|
|
@@ -1280,15 +1280,15 @@ export var deserializeAws_json1_1DeleteForecastExportJobCommand = function (outp
|
|
|
1280
1280
|
switch (_a.label) {
|
|
1281
1281
|
case 0:
|
|
1282
1282
|
if (output.statusCode >= 300) {
|
|
1283
|
-
return [2
|
|
1283
|
+
return [2, deserializeAws_json1_1DeleteForecastExportJobCommandError(output, context)];
|
|
1284
1284
|
}
|
|
1285
|
-
return [4
|
|
1285
|
+
return [4, collectBody(output.body, context)];
|
|
1286
1286
|
case 1:
|
|
1287
1287
|
_a.sent();
|
|
1288
1288
|
response = {
|
|
1289
1289
|
$metadata: deserializeMetadata(output),
|
|
1290
1290
|
};
|
|
1291
|
-
return [2
|
|
1291
|
+
return [2, Promise.resolve(response)];
|
|
1292
1292
|
}
|
|
1293
1293
|
});
|
|
1294
1294
|
}); };
|
|
@@ -1300,39 +1300,39 @@ var deserializeAws_json1_1DeleteForecastExportJobCommandError = function (output
|
|
|
1300
1300
|
case 0:
|
|
1301
1301
|
_a = [__assign({}, output)];
|
|
1302
1302
|
_f = {};
|
|
1303
|
-
return [4
|
|
1303
|
+
return [4, parseBody(output.body, context)];
|
|
1304
1304
|
case 1:
|
|
1305
1305
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1306
1306
|
errorCode = "UnknownError";
|
|
1307
1307
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
1308
|
_b = errorCode;
|
|
1309
1309
|
switch (_b) {
|
|
1310
|
-
case "InvalidInputException": return [3
|
|
1311
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1312
|
-
case "ResourceInUseException": return [3
|
|
1313
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
1314
|
-
case "ResourceNotFoundException": return [3
|
|
1315
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1310
|
+
case "InvalidInputException": return [3, 2];
|
|
1311
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1312
|
+
case "ResourceInUseException": return [3, 4];
|
|
1313
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1314
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1315
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1316
1316
|
}
|
|
1317
|
-
return [3
|
|
1317
|
+
return [3, 8];
|
|
1318
1318
|
case 2:
|
|
1319
1319
|
_c = [{}];
|
|
1320
|
-
return [4
|
|
1320
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1321
1321
|
case 3:
|
|
1322
1322
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1323
|
-
return [3
|
|
1323
|
+
return [3, 9];
|
|
1324
1324
|
case 4:
|
|
1325
1325
|
_d = [{}];
|
|
1326
|
-
return [4
|
|
1326
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1327
1327
|
case 5:
|
|
1328
1328
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1329
|
-
return [3
|
|
1329
|
+
return [3, 9];
|
|
1330
1330
|
case 6:
|
|
1331
1331
|
_e = [{}];
|
|
1332
|
-
return [4
|
|
1332
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1333
1333
|
case 7:
|
|
1334
1334
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1335
|
-
return [3
|
|
1335
|
+
return [3, 9];
|
|
1336
1336
|
case 8:
|
|
1337
1337
|
parsedBody = parsedOutput.body;
|
|
1338
1338
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1342,7 +1342,7 @@ var deserializeAws_json1_1DeleteForecastExportJobCommandError = function (output
|
|
|
1342
1342
|
message = response.message || response.Message || errorCode;
|
|
1343
1343
|
response.message = message;
|
|
1344
1344
|
delete response.Message;
|
|
1345
|
-
return [2
|
|
1345
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1346
1346
|
}
|
|
1347
1347
|
});
|
|
1348
1348
|
}); };
|
|
@@ -1352,15 +1352,15 @@ export var deserializeAws_json1_1DeletePredictorCommand = function (output, cont
|
|
|
1352
1352
|
switch (_a.label) {
|
|
1353
1353
|
case 0:
|
|
1354
1354
|
if (output.statusCode >= 300) {
|
|
1355
|
-
return [2
|
|
1355
|
+
return [2, deserializeAws_json1_1DeletePredictorCommandError(output, context)];
|
|
1356
1356
|
}
|
|
1357
|
-
return [4
|
|
1357
|
+
return [4, collectBody(output.body, context)];
|
|
1358
1358
|
case 1:
|
|
1359
1359
|
_a.sent();
|
|
1360
1360
|
response = {
|
|
1361
1361
|
$metadata: deserializeMetadata(output),
|
|
1362
1362
|
};
|
|
1363
|
-
return [2
|
|
1363
|
+
return [2, Promise.resolve(response)];
|
|
1364
1364
|
}
|
|
1365
1365
|
});
|
|
1366
1366
|
}); };
|
|
@@ -1372,39 +1372,39 @@ var deserializeAws_json1_1DeletePredictorCommandError = function (output, contex
|
|
|
1372
1372
|
case 0:
|
|
1373
1373
|
_a = [__assign({}, output)];
|
|
1374
1374
|
_f = {};
|
|
1375
|
-
return [4
|
|
1375
|
+
return [4, parseBody(output.body, context)];
|
|
1376
1376
|
case 1:
|
|
1377
1377
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1378
1378
|
errorCode = "UnknownError";
|
|
1379
1379
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1380
|
_b = errorCode;
|
|
1381
1381
|
switch (_b) {
|
|
1382
|
-
case "InvalidInputException": return [3
|
|
1383
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1384
|
-
case "ResourceInUseException": return [3
|
|
1385
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
1386
|
-
case "ResourceNotFoundException": return [3
|
|
1387
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1382
|
+
case "InvalidInputException": return [3, 2];
|
|
1383
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1384
|
+
case "ResourceInUseException": return [3, 4];
|
|
1385
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1386
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1387
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1388
1388
|
}
|
|
1389
|
-
return [3
|
|
1389
|
+
return [3, 8];
|
|
1390
1390
|
case 2:
|
|
1391
1391
|
_c = [{}];
|
|
1392
|
-
return [4
|
|
1392
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1393
1393
|
case 3:
|
|
1394
1394
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1395
|
-
return [3
|
|
1395
|
+
return [3, 9];
|
|
1396
1396
|
case 4:
|
|
1397
1397
|
_d = [{}];
|
|
1398
|
-
return [4
|
|
1398
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1399
1399
|
case 5:
|
|
1400
1400
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1401
|
-
return [3
|
|
1401
|
+
return [3, 9];
|
|
1402
1402
|
case 6:
|
|
1403
1403
|
_e = [{}];
|
|
1404
|
-
return [4
|
|
1404
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1405
1405
|
case 7:
|
|
1406
1406
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1407
|
-
return [3
|
|
1407
|
+
return [3, 9];
|
|
1408
1408
|
case 8:
|
|
1409
1409
|
parsedBody = parsedOutput.body;
|
|
1410
1410
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1414,7 +1414,7 @@ var deserializeAws_json1_1DeletePredictorCommandError = function (output, contex
|
|
|
1414
1414
|
message = response.message || response.Message || errorCode;
|
|
1415
1415
|
response.message = message;
|
|
1416
1416
|
delete response.Message;
|
|
1417
|
-
return [2
|
|
1417
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1418
1418
|
}
|
|
1419
1419
|
});
|
|
1420
1420
|
}); };
|
|
@@ -1424,15 +1424,15 @@ export var deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = funct
|
|
|
1424
1424
|
switch (_a.label) {
|
|
1425
1425
|
case 0:
|
|
1426
1426
|
if (output.statusCode >= 300) {
|
|
1427
|
-
return [2
|
|
1427
|
+
return [2, deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError(output, context)];
|
|
1428
1428
|
}
|
|
1429
|
-
return [4
|
|
1429
|
+
return [4, collectBody(output.body, context)];
|
|
1430
1430
|
case 1:
|
|
1431
1431
|
_a.sent();
|
|
1432
1432
|
response = {
|
|
1433
1433
|
$metadata: deserializeMetadata(output),
|
|
1434
1434
|
};
|
|
1435
|
-
return [2
|
|
1435
|
+
return [2, Promise.resolve(response)];
|
|
1436
1436
|
}
|
|
1437
1437
|
});
|
|
1438
1438
|
}); };
|
|
@@ -1444,39 +1444,39 @@ var deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = functio
|
|
|
1444
1444
|
case 0:
|
|
1445
1445
|
_a = [__assign({}, output)];
|
|
1446
1446
|
_f = {};
|
|
1447
|
-
return [4
|
|
1447
|
+
return [4, parseBody(output.body, context)];
|
|
1448
1448
|
case 1:
|
|
1449
1449
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1450
1450
|
errorCode = "UnknownError";
|
|
1451
1451
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
1452
|
_b = errorCode;
|
|
1453
1453
|
switch (_b) {
|
|
1454
|
-
case "InvalidInputException": return [3
|
|
1455
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1456
|
-
case "ResourceInUseException": return [3
|
|
1457
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
1458
|
-
case "ResourceNotFoundException": return [3
|
|
1459
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1454
|
+
case "InvalidInputException": return [3, 2];
|
|
1455
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1456
|
+
case "ResourceInUseException": return [3, 4];
|
|
1457
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1458
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1459
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1460
1460
|
}
|
|
1461
|
-
return [3
|
|
1461
|
+
return [3, 8];
|
|
1462
1462
|
case 2:
|
|
1463
1463
|
_c = [{}];
|
|
1464
|
-
return [4
|
|
1464
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1465
1465
|
case 3:
|
|
1466
1466
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1467
|
-
return [3
|
|
1467
|
+
return [3, 9];
|
|
1468
1468
|
case 4:
|
|
1469
1469
|
_d = [{}];
|
|
1470
|
-
return [4
|
|
1470
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1471
1471
|
case 5:
|
|
1472
1472
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1473
|
-
return [3
|
|
1473
|
+
return [3, 9];
|
|
1474
1474
|
case 6:
|
|
1475
1475
|
_e = [{}];
|
|
1476
|
-
return [4
|
|
1476
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1477
1477
|
case 7:
|
|
1478
1478
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1479
|
-
return [3
|
|
1479
|
+
return [3, 9];
|
|
1480
1480
|
case 8:
|
|
1481
1481
|
parsedBody = parsedOutput.body;
|
|
1482
1482
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1486,7 +1486,7 @@ var deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = functio
|
|
|
1486
1486
|
message = response.message || response.Message || errorCode;
|
|
1487
1487
|
response.message = message;
|
|
1488
1488
|
delete response.Message;
|
|
1489
|
-
return [2
|
|
1489
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1490
1490
|
}
|
|
1491
1491
|
});
|
|
1492
1492
|
}); };
|
|
@@ -1496,15 +1496,15 @@ export var deserializeAws_json1_1DeleteResourceTreeCommand = function (output, c
|
|
|
1496
1496
|
switch (_a.label) {
|
|
1497
1497
|
case 0:
|
|
1498
1498
|
if (output.statusCode >= 300) {
|
|
1499
|
-
return [2
|
|
1499
|
+
return [2, deserializeAws_json1_1DeleteResourceTreeCommandError(output, context)];
|
|
1500
1500
|
}
|
|
1501
|
-
return [4
|
|
1501
|
+
return [4, collectBody(output.body, context)];
|
|
1502
1502
|
case 1:
|
|
1503
1503
|
_a.sent();
|
|
1504
1504
|
response = {
|
|
1505
1505
|
$metadata: deserializeMetadata(output),
|
|
1506
1506
|
};
|
|
1507
|
-
return [2
|
|
1507
|
+
return [2, Promise.resolve(response)];
|
|
1508
1508
|
}
|
|
1509
1509
|
});
|
|
1510
1510
|
}); };
|
|
@@ -1516,39 +1516,39 @@ var deserializeAws_json1_1DeleteResourceTreeCommandError = function (output, con
|
|
|
1516
1516
|
case 0:
|
|
1517
1517
|
_a = [__assign({}, output)];
|
|
1518
1518
|
_f = {};
|
|
1519
|
-
return [4
|
|
1519
|
+
return [4, parseBody(output.body, context)];
|
|
1520
1520
|
case 1:
|
|
1521
1521
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1522
1522
|
errorCode = "UnknownError";
|
|
1523
1523
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
1524
|
_b = errorCode;
|
|
1525
1525
|
switch (_b) {
|
|
1526
|
-
case "InvalidInputException": return [3
|
|
1527
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1528
|
-
case "ResourceInUseException": return [3
|
|
1529
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
1530
|
-
case "ResourceNotFoundException": return [3
|
|
1531
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1526
|
+
case "InvalidInputException": return [3, 2];
|
|
1527
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1528
|
+
case "ResourceInUseException": return [3, 4];
|
|
1529
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
1530
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1531
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
1532
1532
|
}
|
|
1533
|
-
return [3
|
|
1533
|
+
return [3, 8];
|
|
1534
1534
|
case 2:
|
|
1535
1535
|
_c = [{}];
|
|
1536
|
-
return [4
|
|
1536
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1537
1537
|
case 3:
|
|
1538
1538
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1539
|
-
return [3
|
|
1539
|
+
return [3, 9];
|
|
1540
1540
|
case 4:
|
|
1541
1541
|
_d = [{}];
|
|
1542
|
-
return [4
|
|
1542
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1543
1543
|
case 5:
|
|
1544
1544
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1545
|
-
return [3
|
|
1545
|
+
return [3, 9];
|
|
1546
1546
|
case 6:
|
|
1547
1547
|
_e = [{}];
|
|
1548
|
-
return [4
|
|
1548
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1549
1549
|
case 7:
|
|
1550
1550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1551
|
-
return [3
|
|
1551
|
+
return [3, 9];
|
|
1552
1552
|
case 8:
|
|
1553
1553
|
parsedBody = parsedOutput.body;
|
|
1554
1554
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1558,7 +1558,7 @@ var deserializeAws_json1_1DeleteResourceTreeCommandError = function (output, con
|
|
|
1558
1558
|
message = response.message || response.Message || errorCode;
|
|
1559
1559
|
response.message = message;
|
|
1560
1560
|
delete response.Message;
|
|
1561
|
-
return [2
|
|
1561
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1562
1562
|
}
|
|
1563
1563
|
});
|
|
1564
1564
|
}); };
|
|
@@ -1568,15 +1568,15 @@ export var deserializeAws_json1_1DescribeDatasetCommand = function (output, cont
|
|
|
1568
1568
|
switch (_a.label) {
|
|
1569
1569
|
case 0:
|
|
1570
1570
|
if (output.statusCode >= 300) {
|
|
1571
|
-
return [2
|
|
1571
|
+
return [2, deserializeAws_json1_1DescribeDatasetCommandError(output, context)];
|
|
1572
1572
|
}
|
|
1573
|
-
return [4
|
|
1573
|
+
return [4, parseBody(output.body, context)];
|
|
1574
1574
|
case 1:
|
|
1575
1575
|
data = _a.sent();
|
|
1576
1576
|
contents = {};
|
|
1577
1577
|
contents = deserializeAws_json1_1DescribeDatasetResponse(data, context);
|
|
1578
1578
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1579
|
-
return [2
|
|
1579
|
+
return [2, Promise.resolve(response)];
|
|
1580
1580
|
}
|
|
1581
1581
|
});
|
|
1582
1582
|
}); };
|
|
@@ -1588,31 +1588,31 @@ var deserializeAws_json1_1DescribeDatasetCommandError = function (output, contex
|
|
|
1588
1588
|
case 0:
|
|
1589
1589
|
_a = [__assign({}, output)];
|
|
1590
1590
|
_e = {};
|
|
1591
|
-
return [4
|
|
1591
|
+
return [4, parseBody(output.body, context)];
|
|
1592
1592
|
case 1:
|
|
1593
1593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1594
1594
|
errorCode = "UnknownError";
|
|
1595
1595
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
1596
|
_b = errorCode;
|
|
1597
1597
|
switch (_b) {
|
|
1598
|
-
case "InvalidInputException": return [3
|
|
1599
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1600
|
-
case "ResourceNotFoundException": return [3
|
|
1601
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1598
|
+
case "InvalidInputException": return [3, 2];
|
|
1599
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1600
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1601
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1602
1602
|
}
|
|
1603
|
-
return [3
|
|
1603
|
+
return [3, 6];
|
|
1604
1604
|
case 2:
|
|
1605
1605
|
_c = [{}];
|
|
1606
|
-
return [4
|
|
1606
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1607
1607
|
case 3:
|
|
1608
1608
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1609
|
-
return [3
|
|
1609
|
+
return [3, 7];
|
|
1610
1610
|
case 4:
|
|
1611
1611
|
_d = [{}];
|
|
1612
|
-
return [4
|
|
1612
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1613
1613
|
case 5:
|
|
1614
1614
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1615
|
-
return [3
|
|
1615
|
+
return [3, 7];
|
|
1616
1616
|
case 6:
|
|
1617
1617
|
parsedBody = parsedOutput.body;
|
|
1618
1618
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1622,7 +1622,7 @@ var deserializeAws_json1_1DescribeDatasetCommandError = function (output, contex
|
|
|
1622
1622
|
message = response.message || response.Message || errorCode;
|
|
1623
1623
|
response.message = message;
|
|
1624
1624
|
delete response.Message;
|
|
1625
|
-
return [2
|
|
1625
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1626
1626
|
}
|
|
1627
1627
|
});
|
|
1628
1628
|
}); };
|
|
@@ -1632,15 +1632,15 @@ export var deserializeAws_json1_1DescribeDatasetGroupCommand = function (output,
|
|
|
1632
1632
|
switch (_a.label) {
|
|
1633
1633
|
case 0:
|
|
1634
1634
|
if (output.statusCode >= 300) {
|
|
1635
|
-
return [2
|
|
1635
|
+
return [2, deserializeAws_json1_1DescribeDatasetGroupCommandError(output, context)];
|
|
1636
1636
|
}
|
|
1637
|
-
return [4
|
|
1637
|
+
return [4, parseBody(output.body, context)];
|
|
1638
1638
|
case 1:
|
|
1639
1639
|
data = _a.sent();
|
|
1640
1640
|
contents = {};
|
|
1641
1641
|
contents = deserializeAws_json1_1DescribeDatasetGroupResponse(data, context);
|
|
1642
1642
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1643
|
-
return [2
|
|
1643
|
+
return [2, Promise.resolve(response)];
|
|
1644
1644
|
}
|
|
1645
1645
|
});
|
|
1646
1646
|
}); };
|
|
@@ -1652,31 +1652,31 @@ var deserializeAws_json1_1DescribeDatasetGroupCommandError = function (output, c
|
|
|
1652
1652
|
case 0:
|
|
1653
1653
|
_a = [__assign({}, output)];
|
|
1654
1654
|
_e = {};
|
|
1655
|
-
return [4
|
|
1655
|
+
return [4, parseBody(output.body, context)];
|
|
1656
1656
|
case 1:
|
|
1657
1657
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1658
1658
|
errorCode = "UnknownError";
|
|
1659
1659
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1660
|
_b = errorCode;
|
|
1661
1661
|
switch (_b) {
|
|
1662
|
-
case "InvalidInputException": return [3
|
|
1663
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1664
|
-
case "ResourceNotFoundException": return [3
|
|
1665
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1662
|
+
case "InvalidInputException": return [3, 2];
|
|
1663
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1664
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1665
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1666
1666
|
}
|
|
1667
|
-
return [3
|
|
1667
|
+
return [3, 6];
|
|
1668
1668
|
case 2:
|
|
1669
1669
|
_c = [{}];
|
|
1670
|
-
return [4
|
|
1670
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1671
1671
|
case 3:
|
|
1672
1672
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1673
|
-
return [3
|
|
1673
|
+
return [3, 7];
|
|
1674
1674
|
case 4:
|
|
1675
1675
|
_d = [{}];
|
|
1676
|
-
return [4
|
|
1676
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1677
1677
|
case 5:
|
|
1678
1678
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1679
|
-
return [3
|
|
1679
|
+
return [3, 7];
|
|
1680
1680
|
case 6:
|
|
1681
1681
|
parsedBody = parsedOutput.body;
|
|
1682
1682
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1686,7 +1686,7 @@ var deserializeAws_json1_1DescribeDatasetGroupCommandError = function (output, c
|
|
|
1686
1686
|
message = response.message || response.Message || errorCode;
|
|
1687
1687
|
response.message = message;
|
|
1688
1688
|
delete response.Message;
|
|
1689
|
-
return [2
|
|
1689
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
}); };
|
|
@@ -1696,15 +1696,15 @@ export var deserializeAws_json1_1DescribeDatasetImportJobCommand = function (out
|
|
|
1696
1696
|
switch (_a.label) {
|
|
1697
1697
|
case 0:
|
|
1698
1698
|
if (output.statusCode >= 300) {
|
|
1699
|
-
return [2
|
|
1699
|
+
return [2, deserializeAws_json1_1DescribeDatasetImportJobCommandError(output, context)];
|
|
1700
1700
|
}
|
|
1701
|
-
return [4
|
|
1701
|
+
return [4, parseBody(output.body, context)];
|
|
1702
1702
|
case 1:
|
|
1703
1703
|
data = _a.sent();
|
|
1704
1704
|
contents = {};
|
|
1705
1705
|
contents = deserializeAws_json1_1DescribeDatasetImportJobResponse(data, context);
|
|
1706
1706
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1707
|
-
return [2
|
|
1707
|
+
return [2, Promise.resolve(response)];
|
|
1708
1708
|
}
|
|
1709
1709
|
});
|
|
1710
1710
|
}); };
|
|
@@ -1716,31 +1716,31 @@ var deserializeAws_json1_1DescribeDatasetImportJobCommandError = function (outpu
|
|
|
1716
1716
|
case 0:
|
|
1717
1717
|
_a = [__assign({}, output)];
|
|
1718
1718
|
_e = {};
|
|
1719
|
-
return [4
|
|
1719
|
+
return [4, parseBody(output.body, context)];
|
|
1720
1720
|
case 1:
|
|
1721
1721
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1722
1722
|
errorCode = "UnknownError";
|
|
1723
1723
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
1724
|
_b = errorCode;
|
|
1725
1725
|
switch (_b) {
|
|
1726
|
-
case "InvalidInputException": return [3
|
|
1727
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1728
|
-
case "ResourceNotFoundException": return [3
|
|
1729
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1726
|
+
case "InvalidInputException": return [3, 2];
|
|
1727
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1728
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1729
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1730
1730
|
}
|
|
1731
|
-
return [3
|
|
1731
|
+
return [3, 6];
|
|
1732
1732
|
case 2:
|
|
1733
1733
|
_c = [{}];
|
|
1734
|
-
return [4
|
|
1734
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1735
1735
|
case 3:
|
|
1736
1736
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1737
|
-
return [3
|
|
1737
|
+
return [3, 7];
|
|
1738
1738
|
case 4:
|
|
1739
1739
|
_d = [{}];
|
|
1740
|
-
return [4
|
|
1740
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1741
1741
|
case 5:
|
|
1742
1742
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1743
|
-
return [3
|
|
1743
|
+
return [3, 7];
|
|
1744
1744
|
case 6:
|
|
1745
1745
|
parsedBody = parsedOutput.body;
|
|
1746
1746
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1750,7 +1750,7 @@ var deserializeAws_json1_1DescribeDatasetImportJobCommandError = function (outpu
|
|
|
1750
1750
|
message = response.message || response.Message || errorCode;
|
|
1751
1751
|
response.message = message;
|
|
1752
1752
|
delete response.Message;
|
|
1753
|
-
return [2
|
|
1753
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1754
1754
|
}
|
|
1755
1755
|
});
|
|
1756
1756
|
}); };
|
|
@@ -1760,15 +1760,15 @@ export var deserializeAws_json1_1DescribeForecastCommand = function (output, con
|
|
|
1760
1760
|
switch (_a.label) {
|
|
1761
1761
|
case 0:
|
|
1762
1762
|
if (output.statusCode >= 300) {
|
|
1763
|
-
return [2
|
|
1763
|
+
return [2, deserializeAws_json1_1DescribeForecastCommandError(output, context)];
|
|
1764
1764
|
}
|
|
1765
|
-
return [4
|
|
1765
|
+
return [4, parseBody(output.body, context)];
|
|
1766
1766
|
case 1:
|
|
1767
1767
|
data = _a.sent();
|
|
1768
1768
|
contents = {};
|
|
1769
1769
|
contents = deserializeAws_json1_1DescribeForecastResponse(data, context);
|
|
1770
1770
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1771
|
-
return [2
|
|
1771
|
+
return [2, Promise.resolve(response)];
|
|
1772
1772
|
}
|
|
1773
1773
|
});
|
|
1774
1774
|
}); };
|
|
@@ -1780,31 +1780,31 @@ var deserializeAws_json1_1DescribeForecastCommandError = function (output, conte
|
|
|
1780
1780
|
case 0:
|
|
1781
1781
|
_a = [__assign({}, output)];
|
|
1782
1782
|
_e = {};
|
|
1783
|
-
return [4
|
|
1783
|
+
return [4, parseBody(output.body, context)];
|
|
1784
1784
|
case 1:
|
|
1785
1785
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1786
1786
|
errorCode = "UnknownError";
|
|
1787
1787
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1788
1788
|
_b = errorCode;
|
|
1789
1789
|
switch (_b) {
|
|
1790
|
-
case "InvalidInputException": return [3
|
|
1791
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1792
|
-
case "ResourceNotFoundException": return [3
|
|
1793
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1790
|
+
case "InvalidInputException": return [3, 2];
|
|
1791
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1792
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1793
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1794
1794
|
}
|
|
1795
|
-
return [3
|
|
1795
|
+
return [3, 6];
|
|
1796
1796
|
case 2:
|
|
1797
1797
|
_c = [{}];
|
|
1798
|
-
return [4
|
|
1798
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1799
1799
|
case 3:
|
|
1800
1800
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1801
|
-
return [3
|
|
1801
|
+
return [3, 7];
|
|
1802
1802
|
case 4:
|
|
1803
1803
|
_d = [{}];
|
|
1804
|
-
return [4
|
|
1804
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1805
1805
|
case 5:
|
|
1806
1806
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1807
|
-
return [3
|
|
1807
|
+
return [3, 7];
|
|
1808
1808
|
case 6:
|
|
1809
1809
|
parsedBody = parsedOutput.body;
|
|
1810
1810
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1814,7 +1814,7 @@ var deserializeAws_json1_1DescribeForecastCommandError = function (output, conte
|
|
|
1814
1814
|
message = response.message || response.Message || errorCode;
|
|
1815
1815
|
response.message = message;
|
|
1816
1816
|
delete response.Message;
|
|
1817
|
-
return [2
|
|
1817
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1818
1818
|
}
|
|
1819
1819
|
});
|
|
1820
1820
|
}); };
|
|
@@ -1824,15 +1824,15 @@ export var deserializeAws_json1_1DescribeForecastExportJobCommand = function (ou
|
|
|
1824
1824
|
switch (_a.label) {
|
|
1825
1825
|
case 0:
|
|
1826
1826
|
if (output.statusCode >= 300) {
|
|
1827
|
-
return [2
|
|
1827
|
+
return [2, deserializeAws_json1_1DescribeForecastExportJobCommandError(output, context)];
|
|
1828
1828
|
}
|
|
1829
|
-
return [4
|
|
1829
|
+
return [4, parseBody(output.body, context)];
|
|
1830
1830
|
case 1:
|
|
1831
1831
|
data = _a.sent();
|
|
1832
1832
|
contents = {};
|
|
1833
1833
|
contents = deserializeAws_json1_1DescribeForecastExportJobResponse(data, context);
|
|
1834
1834
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1835
|
-
return [2
|
|
1835
|
+
return [2, Promise.resolve(response)];
|
|
1836
1836
|
}
|
|
1837
1837
|
});
|
|
1838
1838
|
}); };
|
|
@@ -1844,31 +1844,31 @@ var deserializeAws_json1_1DescribeForecastExportJobCommandError = function (outp
|
|
|
1844
1844
|
case 0:
|
|
1845
1845
|
_a = [__assign({}, output)];
|
|
1846
1846
|
_e = {};
|
|
1847
|
-
return [4
|
|
1847
|
+
return [4, parseBody(output.body, context)];
|
|
1848
1848
|
case 1:
|
|
1849
1849
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1850
1850
|
errorCode = "UnknownError";
|
|
1851
1851
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
1852
|
_b = errorCode;
|
|
1853
1853
|
switch (_b) {
|
|
1854
|
-
case "InvalidInputException": return [3
|
|
1855
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1856
|
-
case "ResourceNotFoundException": return [3
|
|
1857
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1854
|
+
case "InvalidInputException": return [3, 2];
|
|
1855
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1856
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1857
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1858
1858
|
}
|
|
1859
|
-
return [3
|
|
1859
|
+
return [3, 6];
|
|
1860
1860
|
case 2:
|
|
1861
1861
|
_c = [{}];
|
|
1862
|
-
return [4
|
|
1862
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1863
1863
|
case 3:
|
|
1864
1864
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1865
|
-
return [3
|
|
1865
|
+
return [3, 7];
|
|
1866
1866
|
case 4:
|
|
1867
1867
|
_d = [{}];
|
|
1868
|
-
return [4
|
|
1868
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1869
1869
|
case 5:
|
|
1870
1870
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1871
|
-
return [3
|
|
1871
|
+
return [3, 7];
|
|
1872
1872
|
case 6:
|
|
1873
1873
|
parsedBody = parsedOutput.body;
|
|
1874
1874
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1878,7 +1878,7 @@ var deserializeAws_json1_1DescribeForecastExportJobCommandError = function (outp
|
|
|
1878
1878
|
message = response.message || response.Message || errorCode;
|
|
1879
1879
|
response.message = message;
|
|
1880
1880
|
delete response.Message;
|
|
1881
|
-
return [2
|
|
1881
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1882
1882
|
}
|
|
1883
1883
|
});
|
|
1884
1884
|
}); };
|
|
@@ -1888,15 +1888,15 @@ export var deserializeAws_json1_1DescribePredictorCommand = function (output, co
|
|
|
1888
1888
|
switch (_a.label) {
|
|
1889
1889
|
case 0:
|
|
1890
1890
|
if (output.statusCode >= 300) {
|
|
1891
|
-
return [2
|
|
1891
|
+
return [2, deserializeAws_json1_1DescribePredictorCommandError(output, context)];
|
|
1892
1892
|
}
|
|
1893
|
-
return [4
|
|
1893
|
+
return [4, parseBody(output.body, context)];
|
|
1894
1894
|
case 1:
|
|
1895
1895
|
data = _a.sent();
|
|
1896
1896
|
contents = {};
|
|
1897
1897
|
contents = deserializeAws_json1_1DescribePredictorResponse(data, context);
|
|
1898
1898
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1899
|
-
return [2
|
|
1899
|
+
return [2, Promise.resolve(response)];
|
|
1900
1900
|
}
|
|
1901
1901
|
});
|
|
1902
1902
|
}); };
|
|
@@ -1908,31 +1908,31 @@ var deserializeAws_json1_1DescribePredictorCommandError = function (output, cont
|
|
|
1908
1908
|
case 0:
|
|
1909
1909
|
_a = [__assign({}, output)];
|
|
1910
1910
|
_e = {};
|
|
1911
|
-
return [4
|
|
1911
|
+
return [4, parseBody(output.body, context)];
|
|
1912
1912
|
case 1:
|
|
1913
1913
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1914
1914
|
errorCode = "UnknownError";
|
|
1915
1915
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
1916
|
_b = errorCode;
|
|
1917
1917
|
switch (_b) {
|
|
1918
|
-
case "InvalidInputException": return [3
|
|
1919
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1920
|
-
case "ResourceNotFoundException": return [3
|
|
1921
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1918
|
+
case "InvalidInputException": return [3, 2];
|
|
1919
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1920
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1921
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1922
1922
|
}
|
|
1923
|
-
return [3
|
|
1923
|
+
return [3, 6];
|
|
1924
1924
|
case 2:
|
|
1925
1925
|
_c = [{}];
|
|
1926
|
-
return [4
|
|
1926
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1927
1927
|
case 3:
|
|
1928
1928
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1929
|
-
return [3
|
|
1929
|
+
return [3, 7];
|
|
1930
1930
|
case 4:
|
|
1931
1931
|
_d = [{}];
|
|
1932
|
-
return [4
|
|
1932
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1933
1933
|
case 5:
|
|
1934
1934
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1935
|
-
return [3
|
|
1935
|
+
return [3, 7];
|
|
1936
1936
|
case 6:
|
|
1937
1937
|
parsedBody = parsedOutput.body;
|
|
1938
1938
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1942,7 +1942,7 @@ var deserializeAws_json1_1DescribePredictorCommandError = function (output, cont
|
|
|
1942
1942
|
message = response.message || response.Message || errorCode;
|
|
1943
1943
|
response.message = message;
|
|
1944
1944
|
delete response.Message;
|
|
1945
|
-
return [2
|
|
1945
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1946
1946
|
}
|
|
1947
1947
|
});
|
|
1948
1948
|
}); };
|
|
@@ -1952,15 +1952,15 @@ export var deserializeAws_json1_1DescribePredictorBacktestExportJobCommand = fun
|
|
|
1952
1952
|
switch (_a.label) {
|
|
1953
1953
|
case 0:
|
|
1954
1954
|
if (output.statusCode >= 300) {
|
|
1955
|
-
return [2
|
|
1955
|
+
return [2, deserializeAws_json1_1DescribePredictorBacktestExportJobCommandError(output, context)];
|
|
1956
1956
|
}
|
|
1957
|
-
return [4
|
|
1957
|
+
return [4, parseBody(output.body, context)];
|
|
1958
1958
|
case 1:
|
|
1959
1959
|
data = _a.sent();
|
|
1960
1960
|
contents = {};
|
|
1961
1961
|
contents = deserializeAws_json1_1DescribePredictorBacktestExportJobResponse(data, context);
|
|
1962
1962
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1963
|
-
return [2
|
|
1963
|
+
return [2, Promise.resolve(response)];
|
|
1964
1964
|
}
|
|
1965
1965
|
});
|
|
1966
1966
|
}); };
|
|
@@ -1972,31 +1972,31 @@ var deserializeAws_json1_1DescribePredictorBacktestExportJobCommandError = funct
|
|
|
1972
1972
|
case 0:
|
|
1973
1973
|
_a = [__assign({}, output)];
|
|
1974
1974
|
_e = {};
|
|
1975
|
-
return [4
|
|
1975
|
+
return [4, parseBody(output.body, context)];
|
|
1976
1976
|
case 1:
|
|
1977
1977
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1978
1978
|
errorCode = "UnknownError";
|
|
1979
1979
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
1980
|
_b = errorCode;
|
|
1981
1981
|
switch (_b) {
|
|
1982
|
-
case "InvalidInputException": return [3
|
|
1983
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
1984
|
-
case "ResourceNotFoundException": return [3
|
|
1985
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
1982
|
+
case "InvalidInputException": return [3, 2];
|
|
1983
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
1984
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1985
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
1986
1986
|
}
|
|
1987
|
-
return [3
|
|
1987
|
+
return [3, 6];
|
|
1988
1988
|
case 2:
|
|
1989
1989
|
_c = [{}];
|
|
1990
|
-
return [4
|
|
1990
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1991
1991
|
case 3:
|
|
1992
1992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1993
|
-
return [3
|
|
1993
|
+
return [3, 7];
|
|
1994
1994
|
case 4:
|
|
1995
1995
|
_d = [{}];
|
|
1996
|
-
return [4
|
|
1996
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1997
1997
|
case 5:
|
|
1998
1998
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1999
|
-
return [3
|
|
1999
|
+
return [3, 7];
|
|
2000
2000
|
case 6:
|
|
2001
2001
|
parsedBody = parsedOutput.body;
|
|
2002
2002
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2006,7 +2006,7 @@ var deserializeAws_json1_1DescribePredictorBacktestExportJobCommandError = funct
|
|
|
2006
2006
|
message = response.message || response.Message || errorCode;
|
|
2007
2007
|
response.message = message;
|
|
2008
2008
|
delete response.Message;
|
|
2009
|
-
return [2
|
|
2009
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
2012
2012
|
}); };
|
|
@@ -2016,15 +2016,15 @@ export var deserializeAws_json1_1GetAccuracyMetricsCommand = function (output, c
|
|
|
2016
2016
|
switch (_a.label) {
|
|
2017
2017
|
case 0:
|
|
2018
2018
|
if (output.statusCode >= 300) {
|
|
2019
|
-
return [2
|
|
2019
|
+
return [2, deserializeAws_json1_1GetAccuracyMetricsCommandError(output, context)];
|
|
2020
2020
|
}
|
|
2021
|
-
return [4
|
|
2021
|
+
return [4, parseBody(output.body, context)];
|
|
2022
2022
|
case 1:
|
|
2023
2023
|
data = _a.sent();
|
|
2024
2024
|
contents = {};
|
|
2025
2025
|
contents = deserializeAws_json1_1GetAccuracyMetricsResponse(data, context);
|
|
2026
2026
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2027
|
-
return [2
|
|
2027
|
+
return [2, Promise.resolve(response)];
|
|
2028
2028
|
}
|
|
2029
2029
|
});
|
|
2030
2030
|
}); };
|
|
@@ -2036,39 +2036,39 @@ var deserializeAws_json1_1GetAccuracyMetricsCommandError = function (output, con
|
|
|
2036
2036
|
case 0:
|
|
2037
2037
|
_a = [__assign({}, output)];
|
|
2038
2038
|
_f = {};
|
|
2039
|
-
return [4
|
|
2039
|
+
return [4, parseBody(output.body, context)];
|
|
2040
2040
|
case 1:
|
|
2041
2041
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2042
2042
|
errorCode = "UnknownError";
|
|
2043
2043
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
2044
|
_b = errorCode;
|
|
2045
2045
|
switch (_b) {
|
|
2046
|
-
case "InvalidInputException": return [3
|
|
2047
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2048
|
-
case "ResourceInUseException": return [3
|
|
2049
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
2050
|
-
case "ResourceNotFoundException": return [3
|
|
2051
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
2046
|
+
case "InvalidInputException": return [3, 2];
|
|
2047
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2048
|
+
case "ResourceInUseException": return [3, 4];
|
|
2049
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
2050
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2051
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
2052
2052
|
}
|
|
2053
|
-
return [3
|
|
2053
|
+
return [3, 8];
|
|
2054
2054
|
case 2:
|
|
2055
2055
|
_c = [{}];
|
|
2056
|
-
return [4
|
|
2056
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2057
2057
|
case 3:
|
|
2058
2058
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2059
|
-
return [3
|
|
2059
|
+
return [3, 9];
|
|
2060
2060
|
case 4:
|
|
2061
2061
|
_d = [{}];
|
|
2062
|
-
return [4
|
|
2062
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2063
2063
|
case 5:
|
|
2064
2064
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2065
|
-
return [3
|
|
2065
|
+
return [3, 9];
|
|
2066
2066
|
case 6:
|
|
2067
2067
|
_e = [{}];
|
|
2068
|
-
return [4
|
|
2068
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2069
2069
|
case 7:
|
|
2070
2070
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2071
|
-
return [3
|
|
2071
|
+
return [3, 9];
|
|
2072
2072
|
case 8:
|
|
2073
2073
|
parsedBody = parsedOutput.body;
|
|
2074
2074
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2078,7 +2078,7 @@ var deserializeAws_json1_1GetAccuracyMetricsCommandError = function (output, con
|
|
|
2078
2078
|
message = response.message || response.Message || errorCode;
|
|
2079
2079
|
response.message = message;
|
|
2080
2080
|
delete response.Message;
|
|
2081
|
-
return [2
|
|
2081
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2082
2082
|
}
|
|
2083
2083
|
});
|
|
2084
2084
|
}); };
|
|
@@ -2088,15 +2088,15 @@ export var deserializeAws_json1_1ListDatasetGroupsCommand = function (output, co
|
|
|
2088
2088
|
switch (_a.label) {
|
|
2089
2089
|
case 0:
|
|
2090
2090
|
if (output.statusCode >= 300) {
|
|
2091
|
-
return [2
|
|
2091
|
+
return [2, deserializeAws_json1_1ListDatasetGroupsCommandError(output, context)];
|
|
2092
2092
|
}
|
|
2093
|
-
return [4
|
|
2093
|
+
return [4, parseBody(output.body, context)];
|
|
2094
2094
|
case 1:
|
|
2095
2095
|
data = _a.sent();
|
|
2096
2096
|
contents = {};
|
|
2097
2097
|
contents = deserializeAws_json1_1ListDatasetGroupsResponse(data, context);
|
|
2098
2098
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2099
|
-
return [2
|
|
2099
|
+
return [2, Promise.resolve(response)];
|
|
2100
2100
|
}
|
|
2101
2101
|
});
|
|
2102
2102
|
}); };
|
|
@@ -2108,23 +2108,23 @@ var deserializeAws_json1_1ListDatasetGroupsCommandError = function (output, cont
|
|
|
2108
2108
|
case 0:
|
|
2109
2109
|
_a = [__assign({}, output)];
|
|
2110
2110
|
_d = {};
|
|
2111
|
-
return [4
|
|
2111
|
+
return [4, parseBody(output.body, context)];
|
|
2112
2112
|
case 1:
|
|
2113
2113
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
2114
2114
|
errorCode = "UnknownError";
|
|
2115
2115
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
2116
|
_b = errorCode;
|
|
2117
2117
|
switch (_b) {
|
|
2118
|
-
case "InvalidNextTokenException": return [3
|
|
2119
|
-
case "com.amazonaws.forecast#InvalidNextTokenException": return [3
|
|
2118
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2119
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 2];
|
|
2120
2120
|
}
|
|
2121
|
-
return [3
|
|
2121
|
+
return [3, 4];
|
|
2122
2122
|
case 2:
|
|
2123
2123
|
_c = [{}];
|
|
2124
|
-
return [4
|
|
2124
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2125
2125
|
case 3:
|
|
2126
2126
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2127
|
-
return [3
|
|
2127
|
+
return [3, 5];
|
|
2128
2128
|
case 4:
|
|
2129
2129
|
parsedBody = parsedOutput.body;
|
|
2130
2130
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2134,7 +2134,7 @@ var deserializeAws_json1_1ListDatasetGroupsCommandError = function (output, cont
|
|
|
2134
2134
|
message = response.message || response.Message || errorCode;
|
|
2135
2135
|
response.message = message;
|
|
2136
2136
|
delete response.Message;
|
|
2137
|
-
return [2
|
|
2137
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2138
2138
|
}
|
|
2139
2139
|
});
|
|
2140
2140
|
}); };
|
|
@@ -2144,15 +2144,15 @@ export var deserializeAws_json1_1ListDatasetImportJobsCommand = function (output
|
|
|
2144
2144
|
switch (_a.label) {
|
|
2145
2145
|
case 0:
|
|
2146
2146
|
if (output.statusCode >= 300) {
|
|
2147
|
-
return [2
|
|
2147
|
+
return [2, deserializeAws_json1_1ListDatasetImportJobsCommandError(output, context)];
|
|
2148
2148
|
}
|
|
2149
|
-
return [4
|
|
2149
|
+
return [4, parseBody(output.body, context)];
|
|
2150
2150
|
case 1:
|
|
2151
2151
|
data = _a.sent();
|
|
2152
2152
|
contents = {};
|
|
2153
2153
|
contents = deserializeAws_json1_1ListDatasetImportJobsResponse(data, context);
|
|
2154
2154
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2155
|
-
return [2
|
|
2155
|
+
return [2, Promise.resolve(response)];
|
|
2156
2156
|
}
|
|
2157
2157
|
});
|
|
2158
2158
|
}); };
|
|
@@ -2164,31 +2164,31 @@ var deserializeAws_json1_1ListDatasetImportJobsCommandError = function (output,
|
|
|
2164
2164
|
case 0:
|
|
2165
2165
|
_a = [__assign({}, output)];
|
|
2166
2166
|
_e = {};
|
|
2167
|
-
return [4
|
|
2167
|
+
return [4, parseBody(output.body, context)];
|
|
2168
2168
|
case 1:
|
|
2169
2169
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2170
2170
|
errorCode = "UnknownError";
|
|
2171
2171
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
2172
|
_b = errorCode;
|
|
2173
2173
|
switch (_b) {
|
|
2174
|
-
case "InvalidInputException": return [3
|
|
2175
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2176
|
-
case "InvalidNextTokenException": return [3
|
|
2177
|
-
case "com.amazonaws.forecast#InvalidNextTokenException": return [3
|
|
2174
|
+
case "InvalidInputException": return [3, 2];
|
|
2175
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2176
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
2177
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 4];
|
|
2178
2178
|
}
|
|
2179
|
-
return [3
|
|
2179
|
+
return [3, 6];
|
|
2180
2180
|
case 2:
|
|
2181
2181
|
_c = [{}];
|
|
2182
|
-
return [4
|
|
2182
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2183
2183
|
case 3:
|
|
2184
2184
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2185
|
-
return [3
|
|
2185
|
+
return [3, 7];
|
|
2186
2186
|
case 4:
|
|
2187
2187
|
_d = [{}];
|
|
2188
|
-
return [4
|
|
2188
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2189
2189
|
case 5:
|
|
2190
2190
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2191
|
-
return [3
|
|
2191
|
+
return [3, 7];
|
|
2192
2192
|
case 6:
|
|
2193
2193
|
parsedBody = parsedOutput.body;
|
|
2194
2194
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2198,7 +2198,7 @@ var deserializeAws_json1_1ListDatasetImportJobsCommandError = function (output,
|
|
|
2198
2198
|
message = response.message || response.Message || errorCode;
|
|
2199
2199
|
response.message = message;
|
|
2200
2200
|
delete response.Message;
|
|
2201
|
-
return [2
|
|
2201
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2202
2202
|
}
|
|
2203
2203
|
});
|
|
2204
2204
|
}); };
|
|
@@ -2208,15 +2208,15 @@ export var deserializeAws_json1_1ListDatasetsCommand = function (output, context
|
|
|
2208
2208
|
switch (_a.label) {
|
|
2209
2209
|
case 0:
|
|
2210
2210
|
if (output.statusCode >= 300) {
|
|
2211
|
-
return [2
|
|
2211
|
+
return [2, deserializeAws_json1_1ListDatasetsCommandError(output, context)];
|
|
2212
2212
|
}
|
|
2213
|
-
return [4
|
|
2213
|
+
return [4, parseBody(output.body, context)];
|
|
2214
2214
|
case 1:
|
|
2215
2215
|
data = _a.sent();
|
|
2216
2216
|
contents = {};
|
|
2217
2217
|
contents = deserializeAws_json1_1ListDatasetsResponse(data, context);
|
|
2218
2218
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2219
|
-
return [2
|
|
2219
|
+
return [2, Promise.resolve(response)];
|
|
2220
2220
|
}
|
|
2221
2221
|
});
|
|
2222
2222
|
}); };
|
|
@@ -2228,23 +2228,23 @@ var deserializeAws_json1_1ListDatasetsCommandError = function (output, context)
|
|
|
2228
2228
|
case 0:
|
|
2229
2229
|
_a = [__assign({}, output)];
|
|
2230
2230
|
_d = {};
|
|
2231
|
-
return [4
|
|
2231
|
+
return [4, parseBody(output.body, context)];
|
|
2232
2232
|
case 1:
|
|
2233
2233
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
2234
2234
|
errorCode = "UnknownError";
|
|
2235
2235
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2236
2236
|
_b = errorCode;
|
|
2237
2237
|
switch (_b) {
|
|
2238
|
-
case "InvalidNextTokenException": return [3
|
|
2239
|
-
case "com.amazonaws.forecast#InvalidNextTokenException": return [3
|
|
2238
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2239
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 2];
|
|
2240
2240
|
}
|
|
2241
|
-
return [3
|
|
2241
|
+
return [3, 4];
|
|
2242
2242
|
case 2:
|
|
2243
2243
|
_c = [{}];
|
|
2244
|
-
return [4
|
|
2244
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2245
2245
|
case 3:
|
|
2246
2246
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2247
|
-
return [3
|
|
2247
|
+
return [3, 5];
|
|
2248
2248
|
case 4:
|
|
2249
2249
|
parsedBody = parsedOutput.body;
|
|
2250
2250
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2254,7 +2254,7 @@ var deserializeAws_json1_1ListDatasetsCommandError = function (output, context)
|
|
|
2254
2254
|
message = response.message || response.Message || errorCode;
|
|
2255
2255
|
response.message = message;
|
|
2256
2256
|
delete response.Message;
|
|
2257
|
-
return [2
|
|
2257
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2258
2258
|
}
|
|
2259
2259
|
});
|
|
2260
2260
|
}); };
|
|
@@ -2264,15 +2264,15 @@ export var deserializeAws_json1_1ListForecastExportJobsCommand = function (outpu
|
|
|
2264
2264
|
switch (_a.label) {
|
|
2265
2265
|
case 0:
|
|
2266
2266
|
if (output.statusCode >= 300) {
|
|
2267
|
-
return [2
|
|
2267
|
+
return [2, deserializeAws_json1_1ListForecastExportJobsCommandError(output, context)];
|
|
2268
2268
|
}
|
|
2269
|
-
return [4
|
|
2269
|
+
return [4, parseBody(output.body, context)];
|
|
2270
2270
|
case 1:
|
|
2271
2271
|
data = _a.sent();
|
|
2272
2272
|
contents = {};
|
|
2273
2273
|
contents = deserializeAws_json1_1ListForecastExportJobsResponse(data, context);
|
|
2274
2274
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2275
|
-
return [2
|
|
2275
|
+
return [2, Promise.resolve(response)];
|
|
2276
2276
|
}
|
|
2277
2277
|
});
|
|
2278
2278
|
}); };
|
|
@@ -2284,31 +2284,31 @@ var deserializeAws_json1_1ListForecastExportJobsCommandError = function (output,
|
|
|
2284
2284
|
case 0:
|
|
2285
2285
|
_a = [__assign({}, output)];
|
|
2286
2286
|
_e = {};
|
|
2287
|
-
return [4
|
|
2287
|
+
return [4, parseBody(output.body, context)];
|
|
2288
2288
|
case 1:
|
|
2289
2289
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2290
2290
|
errorCode = "UnknownError";
|
|
2291
2291
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2292
2292
|
_b = errorCode;
|
|
2293
2293
|
switch (_b) {
|
|
2294
|
-
case "InvalidInputException": return [3
|
|
2295
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2296
|
-
case "InvalidNextTokenException": return [3
|
|
2297
|
-
case "com.amazonaws.forecast#InvalidNextTokenException": return [3
|
|
2294
|
+
case "InvalidInputException": return [3, 2];
|
|
2295
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2296
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
2297
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 4];
|
|
2298
2298
|
}
|
|
2299
|
-
return [3
|
|
2299
|
+
return [3, 6];
|
|
2300
2300
|
case 2:
|
|
2301
2301
|
_c = [{}];
|
|
2302
|
-
return [4
|
|
2302
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2303
2303
|
case 3:
|
|
2304
2304
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2305
|
-
return [3
|
|
2305
|
+
return [3, 7];
|
|
2306
2306
|
case 4:
|
|
2307
2307
|
_d = [{}];
|
|
2308
|
-
return [4
|
|
2308
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2309
2309
|
case 5:
|
|
2310
2310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2311
|
-
return [3
|
|
2311
|
+
return [3, 7];
|
|
2312
2312
|
case 6:
|
|
2313
2313
|
parsedBody = parsedOutput.body;
|
|
2314
2314
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2318,7 +2318,7 @@ var deserializeAws_json1_1ListForecastExportJobsCommandError = function (output,
|
|
|
2318
2318
|
message = response.message || response.Message || errorCode;
|
|
2319
2319
|
response.message = message;
|
|
2320
2320
|
delete response.Message;
|
|
2321
|
-
return [2
|
|
2321
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2322
2322
|
}
|
|
2323
2323
|
});
|
|
2324
2324
|
}); };
|
|
@@ -2328,15 +2328,15 @@ export var deserializeAws_json1_1ListForecastsCommand = function (output, contex
|
|
|
2328
2328
|
switch (_a.label) {
|
|
2329
2329
|
case 0:
|
|
2330
2330
|
if (output.statusCode >= 300) {
|
|
2331
|
-
return [2
|
|
2331
|
+
return [2, deserializeAws_json1_1ListForecastsCommandError(output, context)];
|
|
2332
2332
|
}
|
|
2333
|
-
return [4
|
|
2333
|
+
return [4, parseBody(output.body, context)];
|
|
2334
2334
|
case 1:
|
|
2335
2335
|
data = _a.sent();
|
|
2336
2336
|
contents = {};
|
|
2337
2337
|
contents = deserializeAws_json1_1ListForecastsResponse(data, context);
|
|
2338
2338
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2339
|
-
return [2
|
|
2339
|
+
return [2, Promise.resolve(response)];
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
2342
2342
|
}); };
|
|
@@ -2348,31 +2348,31 @@ var deserializeAws_json1_1ListForecastsCommandError = function (output, context)
|
|
|
2348
2348
|
case 0:
|
|
2349
2349
|
_a = [__assign({}, output)];
|
|
2350
2350
|
_e = {};
|
|
2351
|
-
return [4
|
|
2351
|
+
return [4, parseBody(output.body, context)];
|
|
2352
2352
|
case 1:
|
|
2353
2353
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2354
2354
|
errorCode = "UnknownError";
|
|
2355
2355
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
2356
|
_b = errorCode;
|
|
2357
2357
|
switch (_b) {
|
|
2358
|
-
case "InvalidInputException": return [3
|
|
2359
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2360
|
-
case "InvalidNextTokenException": return [3
|
|
2361
|
-
case "com.amazonaws.forecast#InvalidNextTokenException": return [3
|
|
2358
|
+
case "InvalidInputException": return [3, 2];
|
|
2359
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2360
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
2361
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 4];
|
|
2362
2362
|
}
|
|
2363
|
-
return [3
|
|
2363
|
+
return [3, 6];
|
|
2364
2364
|
case 2:
|
|
2365
2365
|
_c = [{}];
|
|
2366
|
-
return [4
|
|
2366
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2367
2367
|
case 3:
|
|
2368
2368
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2369
|
-
return [3
|
|
2369
|
+
return [3, 7];
|
|
2370
2370
|
case 4:
|
|
2371
2371
|
_d = [{}];
|
|
2372
|
-
return [4
|
|
2372
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2373
2373
|
case 5:
|
|
2374
2374
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2375
|
-
return [3
|
|
2375
|
+
return [3, 7];
|
|
2376
2376
|
case 6:
|
|
2377
2377
|
parsedBody = parsedOutput.body;
|
|
2378
2378
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2382,7 +2382,7 @@ var deserializeAws_json1_1ListForecastsCommandError = function (output, context)
|
|
|
2382
2382
|
message = response.message || response.Message || errorCode;
|
|
2383
2383
|
response.message = message;
|
|
2384
2384
|
delete response.Message;
|
|
2385
|
-
return [2
|
|
2385
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2386
2386
|
}
|
|
2387
2387
|
});
|
|
2388
2388
|
}); };
|
|
@@ -2392,15 +2392,15 @@ export var deserializeAws_json1_1ListPredictorBacktestExportJobsCommand = functi
|
|
|
2392
2392
|
switch (_a.label) {
|
|
2393
2393
|
case 0:
|
|
2394
2394
|
if (output.statusCode >= 300) {
|
|
2395
|
-
return [2
|
|
2395
|
+
return [2, deserializeAws_json1_1ListPredictorBacktestExportJobsCommandError(output, context)];
|
|
2396
2396
|
}
|
|
2397
|
-
return [4
|
|
2397
|
+
return [4, parseBody(output.body, context)];
|
|
2398
2398
|
case 1:
|
|
2399
2399
|
data = _a.sent();
|
|
2400
2400
|
contents = {};
|
|
2401
2401
|
contents = deserializeAws_json1_1ListPredictorBacktestExportJobsResponse(data, context);
|
|
2402
2402
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2403
|
-
return [2
|
|
2403
|
+
return [2, Promise.resolve(response)];
|
|
2404
2404
|
}
|
|
2405
2405
|
});
|
|
2406
2406
|
}); };
|
|
@@ -2412,31 +2412,31 @@ var deserializeAws_json1_1ListPredictorBacktestExportJobsCommandError = function
|
|
|
2412
2412
|
case 0:
|
|
2413
2413
|
_a = [__assign({}, output)];
|
|
2414
2414
|
_e = {};
|
|
2415
|
-
return [4
|
|
2415
|
+
return [4, parseBody(output.body, context)];
|
|
2416
2416
|
case 1:
|
|
2417
2417
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2418
2418
|
errorCode = "UnknownError";
|
|
2419
2419
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2420
2420
|
_b = errorCode;
|
|
2421
2421
|
switch (_b) {
|
|
2422
|
-
case "InvalidInputException": return [3
|
|
2423
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2424
|
-
case "InvalidNextTokenException": return [3
|
|
2425
|
-
case "com.amazonaws.forecast#InvalidNextTokenException": return [3
|
|
2422
|
+
case "InvalidInputException": return [3, 2];
|
|
2423
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2424
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
2425
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 4];
|
|
2426
2426
|
}
|
|
2427
|
-
return [3
|
|
2427
|
+
return [3, 6];
|
|
2428
2428
|
case 2:
|
|
2429
2429
|
_c = [{}];
|
|
2430
|
-
return [4
|
|
2430
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2431
2431
|
case 3:
|
|
2432
2432
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2433
|
-
return [3
|
|
2433
|
+
return [3, 7];
|
|
2434
2434
|
case 4:
|
|
2435
2435
|
_d = [{}];
|
|
2436
|
-
return [4
|
|
2436
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2437
2437
|
case 5:
|
|
2438
2438
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2439
|
-
return [3
|
|
2439
|
+
return [3, 7];
|
|
2440
2440
|
case 6:
|
|
2441
2441
|
parsedBody = parsedOutput.body;
|
|
2442
2442
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2446,7 +2446,7 @@ var deserializeAws_json1_1ListPredictorBacktestExportJobsCommandError = function
|
|
|
2446
2446
|
message = response.message || response.Message || errorCode;
|
|
2447
2447
|
response.message = message;
|
|
2448
2448
|
delete response.Message;
|
|
2449
|
-
return [2
|
|
2449
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2450
2450
|
}
|
|
2451
2451
|
});
|
|
2452
2452
|
}); };
|
|
@@ -2456,15 +2456,15 @@ export var deserializeAws_json1_1ListPredictorsCommand = function (output, conte
|
|
|
2456
2456
|
switch (_a.label) {
|
|
2457
2457
|
case 0:
|
|
2458
2458
|
if (output.statusCode >= 300) {
|
|
2459
|
-
return [2
|
|
2459
|
+
return [2, deserializeAws_json1_1ListPredictorsCommandError(output, context)];
|
|
2460
2460
|
}
|
|
2461
|
-
return [4
|
|
2461
|
+
return [4, parseBody(output.body, context)];
|
|
2462
2462
|
case 1:
|
|
2463
2463
|
data = _a.sent();
|
|
2464
2464
|
contents = {};
|
|
2465
2465
|
contents = deserializeAws_json1_1ListPredictorsResponse(data, context);
|
|
2466
2466
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2467
|
-
return [2
|
|
2467
|
+
return [2, Promise.resolve(response)];
|
|
2468
2468
|
}
|
|
2469
2469
|
});
|
|
2470
2470
|
}); };
|
|
@@ -2476,31 +2476,31 @@ var deserializeAws_json1_1ListPredictorsCommandError = function (output, context
|
|
|
2476
2476
|
case 0:
|
|
2477
2477
|
_a = [__assign({}, output)];
|
|
2478
2478
|
_e = {};
|
|
2479
|
-
return [4
|
|
2479
|
+
return [4, parseBody(output.body, context)];
|
|
2480
2480
|
case 1:
|
|
2481
2481
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2482
2482
|
errorCode = "UnknownError";
|
|
2483
2483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2484
2484
|
_b = errorCode;
|
|
2485
2485
|
switch (_b) {
|
|
2486
|
-
case "InvalidInputException": return [3
|
|
2487
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2488
|
-
case "InvalidNextTokenException": return [3
|
|
2489
|
-
case "com.amazonaws.forecast#InvalidNextTokenException": return [3
|
|
2486
|
+
case "InvalidInputException": return [3, 2];
|
|
2487
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2488
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
2489
|
+
case "com.amazonaws.forecast#InvalidNextTokenException": return [3, 4];
|
|
2490
2490
|
}
|
|
2491
|
-
return [3
|
|
2491
|
+
return [3, 6];
|
|
2492
2492
|
case 2:
|
|
2493
2493
|
_c = [{}];
|
|
2494
|
-
return [4
|
|
2494
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2495
2495
|
case 3:
|
|
2496
2496
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2497
|
-
return [3
|
|
2497
|
+
return [3, 7];
|
|
2498
2498
|
case 4:
|
|
2499
2499
|
_d = [{}];
|
|
2500
|
-
return [4
|
|
2500
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2501
2501
|
case 5:
|
|
2502
2502
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2503
|
-
return [3
|
|
2503
|
+
return [3, 7];
|
|
2504
2504
|
case 6:
|
|
2505
2505
|
parsedBody = parsedOutput.body;
|
|
2506
2506
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2510,7 +2510,7 @@ var deserializeAws_json1_1ListPredictorsCommandError = function (output, context
|
|
|
2510
2510
|
message = response.message || response.Message || errorCode;
|
|
2511
2511
|
response.message = message;
|
|
2512
2512
|
delete response.Message;
|
|
2513
|
-
return [2
|
|
2513
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2514
2514
|
}
|
|
2515
2515
|
});
|
|
2516
2516
|
}); };
|
|
@@ -2520,15 +2520,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
2520
2520
|
switch (_a.label) {
|
|
2521
2521
|
case 0:
|
|
2522
2522
|
if (output.statusCode >= 300) {
|
|
2523
|
-
return [2
|
|
2523
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
2524
2524
|
}
|
|
2525
|
-
return [4
|
|
2525
|
+
return [4, parseBody(output.body, context)];
|
|
2526
2526
|
case 1:
|
|
2527
2527
|
data = _a.sent();
|
|
2528
2528
|
contents = {};
|
|
2529
2529
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2530
2530
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2531
|
-
return [2
|
|
2531
|
+
return [2, Promise.resolve(response)];
|
|
2532
2532
|
}
|
|
2533
2533
|
});
|
|
2534
2534
|
}); };
|
|
@@ -2540,31 +2540,31 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2540
2540
|
case 0:
|
|
2541
2541
|
_a = [__assign({}, output)];
|
|
2542
2542
|
_e = {};
|
|
2543
|
-
return [4
|
|
2543
|
+
return [4, parseBody(output.body, context)];
|
|
2544
2544
|
case 1:
|
|
2545
2545
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2546
2546
|
errorCode = "UnknownError";
|
|
2547
2547
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2548
2548
|
_b = errorCode;
|
|
2549
2549
|
switch (_b) {
|
|
2550
|
-
case "InvalidInputException": return [3
|
|
2551
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2552
|
-
case "ResourceNotFoundException": return [3
|
|
2553
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
2550
|
+
case "InvalidInputException": return [3, 2];
|
|
2551
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2552
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2553
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
2554
2554
|
}
|
|
2555
|
-
return [3
|
|
2555
|
+
return [3, 6];
|
|
2556
2556
|
case 2:
|
|
2557
2557
|
_c = [{}];
|
|
2558
|
-
return [4
|
|
2558
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2559
2559
|
case 3:
|
|
2560
2560
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2561
|
-
return [3
|
|
2561
|
+
return [3, 7];
|
|
2562
2562
|
case 4:
|
|
2563
2563
|
_d = [{}];
|
|
2564
|
-
return [4
|
|
2564
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2565
2565
|
case 5:
|
|
2566
2566
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2567
|
-
return [3
|
|
2567
|
+
return [3, 7];
|
|
2568
2568
|
case 6:
|
|
2569
2569
|
parsedBody = parsedOutput.body;
|
|
2570
2570
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2574,7 +2574,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2574
2574
|
message = response.message || response.Message || errorCode;
|
|
2575
2575
|
response.message = message;
|
|
2576
2576
|
delete response.Message;
|
|
2577
|
-
return [2
|
|
2577
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2578
2578
|
}
|
|
2579
2579
|
});
|
|
2580
2580
|
}); };
|
|
@@ -2584,15 +2584,15 @@ export var deserializeAws_json1_1StopResourceCommand = function (output, context
|
|
|
2584
2584
|
switch (_a.label) {
|
|
2585
2585
|
case 0:
|
|
2586
2586
|
if (output.statusCode >= 300) {
|
|
2587
|
-
return [2
|
|
2587
|
+
return [2, deserializeAws_json1_1StopResourceCommandError(output, context)];
|
|
2588
2588
|
}
|
|
2589
|
-
return [4
|
|
2589
|
+
return [4, collectBody(output.body, context)];
|
|
2590
2590
|
case 1:
|
|
2591
2591
|
_a.sent();
|
|
2592
2592
|
response = {
|
|
2593
2593
|
$metadata: deserializeMetadata(output),
|
|
2594
2594
|
};
|
|
2595
|
-
return [2
|
|
2595
|
+
return [2, Promise.resolve(response)];
|
|
2596
2596
|
}
|
|
2597
2597
|
});
|
|
2598
2598
|
}); };
|
|
@@ -2604,39 +2604,39 @@ var deserializeAws_json1_1StopResourceCommandError = function (output, context)
|
|
|
2604
2604
|
case 0:
|
|
2605
2605
|
_a = [__assign({}, output)];
|
|
2606
2606
|
_f = {};
|
|
2607
|
-
return [4
|
|
2607
|
+
return [4, parseBody(output.body, context)];
|
|
2608
2608
|
case 1:
|
|
2609
2609
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2610
2610
|
errorCode = "UnknownError";
|
|
2611
2611
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
2612
|
_b = errorCode;
|
|
2613
2613
|
switch (_b) {
|
|
2614
|
-
case "InvalidInputException": return [3
|
|
2615
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2616
|
-
case "LimitExceededException": return [3
|
|
2617
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
2618
|
-
case "ResourceNotFoundException": return [3
|
|
2619
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
2614
|
+
case "InvalidInputException": return [3, 2];
|
|
2615
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2616
|
+
case "LimitExceededException": return [3, 4];
|
|
2617
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
2618
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2619
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
2620
2620
|
}
|
|
2621
|
-
return [3
|
|
2621
|
+
return [3, 8];
|
|
2622
2622
|
case 2:
|
|
2623
2623
|
_c = [{}];
|
|
2624
|
-
return [4
|
|
2624
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2625
2625
|
case 3:
|
|
2626
2626
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2627
|
-
return [3
|
|
2627
|
+
return [3, 9];
|
|
2628
2628
|
case 4:
|
|
2629
2629
|
_d = [{}];
|
|
2630
|
-
return [4
|
|
2630
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2631
2631
|
case 5:
|
|
2632
2632
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2633
|
-
return [3
|
|
2633
|
+
return [3, 9];
|
|
2634
2634
|
case 6:
|
|
2635
2635
|
_e = [{}];
|
|
2636
|
-
return [4
|
|
2636
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2637
2637
|
case 7:
|
|
2638
2638
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2639
|
-
return [3
|
|
2639
|
+
return [3, 9];
|
|
2640
2640
|
case 8:
|
|
2641
2641
|
parsedBody = parsedOutput.body;
|
|
2642
2642
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2646,7 +2646,7 @@ var deserializeAws_json1_1StopResourceCommandError = function (output, context)
|
|
|
2646
2646
|
message = response.message || response.Message || errorCode;
|
|
2647
2647
|
response.message = message;
|
|
2648
2648
|
delete response.Message;
|
|
2649
|
-
return [2
|
|
2649
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2650
2650
|
}
|
|
2651
2651
|
});
|
|
2652
2652
|
}); };
|
|
@@ -2656,15 +2656,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
2656
2656
|
switch (_a.label) {
|
|
2657
2657
|
case 0:
|
|
2658
2658
|
if (output.statusCode >= 300) {
|
|
2659
|
-
return [2
|
|
2659
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
2660
2660
|
}
|
|
2661
|
-
return [4
|
|
2661
|
+
return [4, parseBody(output.body, context)];
|
|
2662
2662
|
case 1:
|
|
2663
2663
|
data = _a.sent();
|
|
2664
2664
|
contents = {};
|
|
2665
2665
|
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2666
2666
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2667
|
-
return [2
|
|
2667
|
+
return [2, Promise.resolve(response)];
|
|
2668
2668
|
}
|
|
2669
2669
|
});
|
|
2670
2670
|
}); };
|
|
@@ -2676,39 +2676,39 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2676
2676
|
case 0:
|
|
2677
2677
|
_a = [__assign({}, output)];
|
|
2678
2678
|
_f = {};
|
|
2679
|
-
return [4
|
|
2679
|
+
return [4, parseBody(output.body, context)];
|
|
2680
2680
|
case 1:
|
|
2681
2681
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2682
2682
|
errorCode = "UnknownError";
|
|
2683
2683
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2684
2684
|
_b = errorCode;
|
|
2685
2685
|
switch (_b) {
|
|
2686
|
-
case "InvalidInputException": return [3
|
|
2687
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2688
|
-
case "LimitExceededException": return [3
|
|
2689
|
-
case "com.amazonaws.forecast#LimitExceededException": return [3
|
|
2690
|
-
case "ResourceNotFoundException": return [3
|
|
2691
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
2686
|
+
case "InvalidInputException": return [3, 2];
|
|
2687
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2688
|
+
case "LimitExceededException": return [3, 4];
|
|
2689
|
+
case "com.amazonaws.forecast#LimitExceededException": return [3, 4];
|
|
2690
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2691
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
2692
2692
|
}
|
|
2693
|
-
return [3
|
|
2693
|
+
return [3, 8];
|
|
2694
2694
|
case 2:
|
|
2695
2695
|
_c = [{}];
|
|
2696
|
-
return [4
|
|
2696
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2697
2697
|
case 3:
|
|
2698
2698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2699
|
-
return [3
|
|
2699
|
+
return [3, 9];
|
|
2700
2700
|
case 4:
|
|
2701
2701
|
_d = [{}];
|
|
2702
|
-
return [4
|
|
2702
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2703
2703
|
case 5:
|
|
2704
2704
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2705
|
-
return [3
|
|
2705
|
+
return [3, 9];
|
|
2706
2706
|
case 6:
|
|
2707
2707
|
_e = [{}];
|
|
2708
|
-
return [4
|
|
2708
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2709
2709
|
case 7:
|
|
2710
2710
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2711
|
-
return [3
|
|
2711
|
+
return [3, 9];
|
|
2712
2712
|
case 8:
|
|
2713
2713
|
parsedBody = parsedOutput.body;
|
|
2714
2714
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2718,7 +2718,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2718
2718
|
message = response.message || response.Message || errorCode;
|
|
2719
2719
|
response.message = message;
|
|
2720
2720
|
delete response.Message;
|
|
2721
|
-
return [2
|
|
2721
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2722
2722
|
}
|
|
2723
2723
|
});
|
|
2724
2724
|
}); };
|
|
@@ -2728,15 +2728,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
2728
2728
|
switch (_a.label) {
|
|
2729
2729
|
case 0:
|
|
2730
2730
|
if (output.statusCode >= 300) {
|
|
2731
|
-
return [2
|
|
2731
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
2732
2732
|
}
|
|
2733
|
-
return [4
|
|
2733
|
+
return [4, parseBody(output.body, context)];
|
|
2734
2734
|
case 1:
|
|
2735
2735
|
data = _a.sent();
|
|
2736
2736
|
contents = {};
|
|
2737
2737
|
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
2738
2738
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2739
|
-
return [2
|
|
2739
|
+
return [2, Promise.resolve(response)];
|
|
2740
2740
|
}
|
|
2741
2741
|
});
|
|
2742
2742
|
}); };
|
|
@@ -2748,31 +2748,31 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2748
2748
|
case 0:
|
|
2749
2749
|
_a = [__assign({}, output)];
|
|
2750
2750
|
_e = {};
|
|
2751
|
-
return [4
|
|
2751
|
+
return [4, parseBody(output.body, context)];
|
|
2752
2752
|
case 1:
|
|
2753
2753
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2754
2754
|
errorCode = "UnknownError";
|
|
2755
2755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
2756
|
_b = errorCode;
|
|
2757
2757
|
switch (_b) {
|
|
2758
|
-
case "InvalidInputException": return [3
|
|
2759
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2760
|
-
case "ResourceNotFoundException": return [3
|
|
2761
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
2758
|
+
case "InvalidInputException": return [3, 2];
|
|
2759
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2760
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2761
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 4];
|
|
2762
2762
|
}
|
|
2763
|
-
return [3
|
|
2763
|
+
return [3, 6];
|
|
2764
2764
|
case 2:
|
|
2765
2765
|
_c = [{}];
|
|
2766
|
-
return [4
|
|
2766
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2767
2767
|
case 3:
|
|
2768
2768
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2769
|
-
return [3
|
|
2769
|
+
return [3, 7];
|
|
2770
2770
|
case 4:
|
|
2771
2771
|
_d = [{}];
|
|
2772
|
-
return [4
|
|
2772
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2773
2773
|
case 5:
|
|
2774
2774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2775
|
-
return [3
|
|
2775
|
+
return [3, 7];
|
|
2776
2776
|
case 6:
|
|
2777
2777
|
parsedBody = parsedOutput.body;
|
|
2778
2778
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2782,7 +2782,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2782
2782
|
message = response.message || response.Message || errorCode;
|
|
2783
2783
|
response.message = message;
|
|
2784
2784
|
delete response.Message;
|
|
2785
|
-
return [2
|
|
2785
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2786
2786
|
}
|
|
2787
2787
|
});
|
|
2788
2788
|
}); };
|
|
@@ -2792,15 +2792,15 @@ export var deserializeAws_json1_1UpdateDatasetGroupCommand = function (output, c
|
|
|
2792
2792
|
switch (_a.label) {
|
|
2793
2793
|
case 0:
|
|
2794
2794
|
if (output.statusCode >= 300) {
|
|
2795
|
-
return [2
|
|
2795
|
+
return [2, deserializeAws_json1_1UpdateDatasetGroupCommandError(output, context)];
|
|
2796
2796
|
}
|
|
2797
|
-
return [4
|
|
2797
|
+
return [4, parseBody(output.body, context)];
|
|
2798
2798
|
case 1:
|
|
2799
2799
|
data = _a.sent();
|
|
2800
2800
|
contents = {};
|
|
2801
2801
|
contents = deserializeAws_json1_1UpdateDatasetGroupResponse(data, context);
|
|
2802
2802
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2803
|
-
return [2
|
|
2803
|
+
return [2, Promise.resolve(response)];
|
|
2804
2804
|
}
|
|
2805
2805
|
});
|
|
2806
2806
|
}); };
|
|
@@ -2812,39 +2812,39 @@ var deserializeAws_json1_1UpdateDatasetGroupCommandError = function (output, con
|
|
|
2812
2812
|
case 0:
|
|
2813
2813
|
_a = [__assign({}, output)];
|
|
2814
2814
|
_f = {};
|
|
2815
|
-
return [4
|
|
2815
|
+
return [4, parseBody(output.body, context)];
|
|
2816
2816
|
case 1:
|
|
2817
2817
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2818
2818
|
errorCode = "UnknownError";
|
|
2819
2819
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
2820
|
_b = errorCode;
|
|
2821
2821
|
switch (_b) {
|
|
2822
|
-
case "InvalidInputException": return [3
|
|
2823
|
-
case "com.amazonaws.forecast#InvalidInputException": return [3
|
|
2824
|
-
case "ResourceInUseException": return [3
|
|
2825
|
-
case "com.amazonaws.forecast#ResourceInUseException": return [3
|
|
2826
|
-
case "ResourceNotFoundException": return [3
|
|
2827
|
-
case "com.amazonaws.forecast#ResourceNotFoundException": return [3
|
|
2822
|
+
case "InvalidInputException": return [3, 2];
|
|
2823
|
+
case "com.amazonaws.forecast#InvalidInputException": return [3, 2];
|
|
2824
|
+
case "ResourceInUseException": return [3, 4];
|
|
2825
|
+
case "com.amazonaws.forecast#ResourceInUseException": return [3, 4];
|
|
2826
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2827
|
+
case "com.amazonaws.forecast#ResourceNotFoundException": return [3, 6];
|
|
2828
2828
|
}
|
|
2829
|
-
return [3
|
|
2829
|
+
return [3, 8];
|
|
2830
2830
|
case 2:
|
|
2831
2831
|
_c = [{}];
|
|
2832
|
-
return [4
|
|
2832
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2833
2833
|
case 3:
|
|
2834
2834
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2835
|
-
return [3
|
|
2835
|
+
return [3, 9];
|
|
2836
2836
|
case 4:
|
|
2837
2837
|
_d = [{}];
|
|
2838
|
-
return [4
|
|
2838
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2839
2839
|
case 5:
|
|
2840
2840
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2841
|
-
return [3
|
|
2841
|
+
return [3, 9];
|
|
2842
2842
|
case 6:
|
|
2843
2843
|
_e = [{}];
|
|
2844
|
-
return [4
|
|
2844
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2845
2845
|
case 7:
|
|
2846
2846
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2847
|
-
return [3
|
|
2847
|
+
return [3, 9];
|
|
2848
2848
|
case 8:
|
|
2849
2849
|
parsedBody = parsedOutput.body;
|
|
2850
2850
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2854,7 +2854,7 @@ var deserializeAws_json1_1UpdateDatasetGroupCommandError = function (output, con
|
|
|
2854
2854
|
message = response.message || response.Message || errorCode;
|
|
2855
2855
|
response.message = message;
|
|
2856
2856
|
delete response.Message;
|
|
2857
|
-
return [2
|
|
2857
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2858
2858
|
}
|
|
2859
2859
|
});
|
|
2860
2860
|
}); };
|
|
@@ -2864,7 +2864,7 @@ var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput
|
|
|
2864
2864
|
body = parsedOutput.body;
|
|
2865
2865
|
deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
2866
2866
|
contents = __assign({ name: "InvalidInputException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2867
|
-
return [2
|
|
2867
|
+
return [2, contents];
|
|
2868
2868
|
});
|
|
2869
2869
|
}); };
|
|
2870
2870
|
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2873,7 +2873,7 @@ var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOu
|
|
|
2873
2873
|
body = parsedOutput.body;
|
|
2874
2874
|
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
2875
2875
|
contents = __assign({ name: "InvalidNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2876
|
-
return [2
|
|
2876
|
+
return [2, contents];
|
|
2877
2877
|
});
|
|
2878
2878
|
}); };
|
|
2879
2879
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2882,7 +2882,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
2882
2882
|
body = parsedOutput.body;
|
|
2883
2883
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2884
2884
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2885
|
-
return [2
|
|
2885
|
+
return [2, contents];
|
|
2886
2886
|
});
|
|
2887
2887
|
}); };
|
|
2888
2888
|
var deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2891,7 +2891,7 @@ var deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = function (par
|
|
|
2891
2891
|
body = parsedOutput.body;
|
|
2892
2892
|
deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
2893
2893
|
contents = __assign({ name: "ResourceAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2894
|
-
return [2
|
|
2894
|
+
return [2, contents];
|
|
2895
2895
|
});
|
|
2896
2896
|
}); };
|
|
2897
2897
|
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2900,7 +2900,7 @@ var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutpu
|
|
|
2900
2900
|
body = parsedOutput.body;
|
|
2901
2901
|
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
2902
2902
|
contents = __assign({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2903
|
-
return [2
|
|
2903
|
+
return [2, contents];
|
|
2904
2904
|
});
|
|
2905
2905
|
}); };
|
|
2906
2906
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2909,7 +2909,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2909
2909
|
body = parsedOutput.body;
|
|
2910
2910
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2911
2911
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2912
|
-
return [2
|
|
2912
|
+
return [2, contents];
|
|
2913
2913
|
});
|
|
2914
2914
|
}); };
|
|
2915
2915
|
var serializeAws_json1_1ArnList = function (input, context) {
|
|
@@ -4278,7 +4278,6 @@ var deserializeMetadata = function (output) {
|
|
|
4278
4278
|
cfId: output.headers["x-amz-cf-id"],
|
|
4279
4279
|
});
|
|
4280
4280
|
};
|
|
4281
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4282
4281
|
var collectBody = function (streamBody, context) {
|
|
4283
4282
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4284
4283
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4286,7 +4285,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4286
4285
|
}
|
|
4287
4286
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4288
4287
|
};
|
|
4289
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4290
4288
|
var collectBodyString = function (streamBody, context) {
|
|
4291
4289
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4292
4290
|
};
|
|
@@ -4294,7 +4292,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4294
4292
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
4295
4293
|
return __generator(this, function (_c) {
|
|
4296
4294
|
switch (_c.label) {
|
|
4297
|
-
case 0: return [4
|
|
4295
|
+
case 0: return [4, context.endpoint()];
|
|
4298
4296
|
case 1:
|
|
4299
4297
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4300
4298
|
contents = {
|
|
@@ -4311,7 +4309,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4311
4309
|
if (body !== undefined) {
|
|
4312
4310
|
contents.body = body;
|
|
4313
4311
|
}
|
|
4314
|
-
return [2
|
|
4312
|
+
return [2, new __HttpRequest(contents)];
|
|
4315
4313
|
}
|
|
4316
4314
|
});
|
|
4317
4315
|
}); };
|
|
@@ -4323,9 +4321,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4323
4321
|
return {};
|
|
4324
4322
|
});
|
|
4325
4323
|
};
|
|
4326
|
-
/**
|
|
4327
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4328
|
-
*/
|
|
4329
4324
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4330
4325
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4331
4326
|
var sanitizeErrorCode = function (rawValue) {
|