@aws-sdk/client-machine-learning 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/MachineLearning.js +1 -2
- package/{dist/cjs → dist-cjs}/MachineLearningClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/AddTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateBatchPredictionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateDataSourceFromRDSCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateDataSourceFromRedshiftCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateDataSourceFromS3Command.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateEvaluationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateMLModelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateRealtimeEndpointCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteBatchPredictionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteDataSourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteEvaluationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteMLModelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteRealtimeEndpointCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeBatchPredictionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeDataSourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeEvaluationsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeMLModelsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetBatchPredictionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetDataSourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetEvaluationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetMLModelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PredictCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateBatchPredictionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateDataSourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateEvaluationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateMLModelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/DescribeBatchPredictionsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/DescribeDataSourcesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/DescribeEvaluationsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/DescribeMLModelsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/cjs → dist-cjs}/waiters/waitForBatchPredictionAvailable.js +10 -11
- package/{dist/cjs → dist-cjs}/waiters/waitForDataSourceAvailable.js +10 -11
- package/{dist/cjs → dist-cjs}/waiters/waitForEvaluationAvailable.js +10 -11
- package/{dist/cjs → dist-cjs}/waiters/waitForMLModelAvailable.js +10 -11
- package/{dist/es → dist-es}/MachineLearning.js +2 -7
- package/{dist/es → dist-es}/MachineLearningClient.js +2 -12
- package/{dist/es → dist-es}/commands/AddTagsCommand.js +4 -32
- package/dist-es/commands/CreateBatchPredictionCommand.js +39 -0
- package/dist-es/commands/CreateDataSourceFromRDSCommand.js +39 -0
- package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +39 -0
- package/dist-es/commands/CreateDataSourceFromS3Command.js +39 -0
- package/dist-es/commands/CreateEvaluationCommand.js +39 -0
- package/dist-es/commands/CreateMLModelCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CreateRealtimeEndpointCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteBatchPredictionCommand.js +4 -35
- package/{dist/es → dist-es}/commands/DeleteDataSourceCommand.js +4 -33
- package/{dist/es → dist-es}/commands/DeleteEvaluationCommand.js +4 -35
- package/{dist/es → dist-es}/commands/DeleteMLModelCommand.js +4 -35
- package/{dist/es → dist-es}/commands/DeleteRealtimeEndpointCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteTagsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeBatchPredictionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeDataSourcesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeEvaluationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeMLModelsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeTagsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetBatchPredictionCommand.js +4 -31
- package/{dist/es → dist-es}/commands/GetDataSourceCommand.js +4 -33
- package/{dist/es → dist-es}/commands/GetEvaluationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetMLModelCommand.js +4 -32
- package/{dist/es → dist-es}/commands/PredictCommand.js +4 -33
- package/{dist/es → dist-es}/commands/UpdateBatchPredictionCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateDataSourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateEvaluationCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateMLModelCommand.js +4 -31
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -244
- package/{dist/es → dist-es}/pagination/DescribeBatchPredictionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/DescribeDataSourcesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/DescribeEvaluationsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/DescribeMLModelsPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +546 -552
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/waiters/waitForBatchPredictionAvailable.js +10 -20
- package/{dist/es → dist-es}/waiters/waitForDataSourceAvailable.js +10 -20
- package/{dist/es → dist-es}/waiters/waitForEvaluationAvailable.js +10 -20
- package/{dist/es → dist-es}/waiters/waitForMLModelAvailable.js +10 -20
- package/{dist/types → dist-types}/MachineLearning.d.ts +2 -2
- package/{dist/types → dist-types}/MachineLearningClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AddTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateBatchPredictionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDataSourceFromRDSCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDataSourceFromRedshiftCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDataSourceFromS3Command.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateEvaluationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateMLModelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateRealtimeEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteBatchPredictionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDataSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteEvaluationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteMLModelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteRealtimeEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeBatchPredictionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDataSourcesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeEvaluationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeMLModelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetBatchPredictionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetDataSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetEvaluationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetMLModelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PredictCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateBatchPredictionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateDataSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateEvaluationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateMLModelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → 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/DescribeBatchPredictionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeDataSourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeEvaluationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeMLModelsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.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 → dist-types}/runtimeConfig.d.ts +2 -1
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/MachineLearning.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/MachineLearningClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/AddTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateBatchPredictionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDataSourceFromRDSCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDataSourceFromRedshiftCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDataSourceFromS3Command.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateEvaluationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateMLModelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateRealtimeEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteBatchPredictionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDataSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteEvaluationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteMLModelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRealtimeEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeBatchPredictionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeDataSourcesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeEvaluationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeMLModelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetBatchPredictionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetDataSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetEvaluationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetMLModelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PredictCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateBatchPredictionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateDataSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateEvaluationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateMLModelCommand.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/DescribeBatchPredictionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeDataSourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeEvaluationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeMLModelsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.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 +2 -1
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/waiters/waitForBatchPredictionAvailable.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/waiters/waitForDataSourceAvailable.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/waiters/waitForEvaluationAvailable.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/waiters/waitForMLModelAvailable.d.ts +2 -2
- package/{dist/types → dist-types}/waiters/waitForBatchPredictionAvailable.d.ts +2 -2
- package/{dist/types → dist-types}/waiters/waitForDataSourceAvailable.d.ts +2 -2
- package/{dist/types → dist-types}/waiters/waitForEvaluationAvailable.d.ts +2 -2
- package/{dist/types → dist-types}/waiters/waitForMLModelAvailable.d.ts +2 -2
- package/package.json +54 -51
- package/MachineLearning.ts +0 -1149
- package/MachineLearningClient.ts +0 -353
- package/commands/AddTagsCommand.ts +0 -93
- package/commands/CreateBatchPredictionCommand.ts +0 -105
- package/commands/CreateDataSourceFromRDSCommand.ts +0 -105
- package/commands/CreateDataSourceFromRedshiftCommand.ts +0 -131
- package/commands/CreateDataSourceFromS3Command.ts +0 -124
- package/commands/CreateEvaluationCommand.ts +0 -105
- package/commands/CreateMLModelCommand.ts +0 -113
- package/commands/CreateRealtimeEndpointCommand.ts +0 -94
- package/commands/DeleteBatchPredictionCommand.ts +0 -99
- package/commands/DeleteDataSourceCommand.ts +0 -97
- package/commands/DeleteEvaluationCommand.ts +0 -99
- package/commands/DeleteMLModelCommand.ts +0 -99
- package/commands/DeleteRealtimeEndpointCommand.ts +0 -94
- package/commands/DeleteTagsCommand.ts +0 -95
- package/commands/DescribeBatchPredictionsCommand.ts +0 -94
- package/commands/DescribeDataSourcesCommand.ts +0 -94
- package/commands/DescribeEvaluationsCommand.ts +0 -94
- package/commands/DescribeMLModelsCommand.ts +0 -94
- package/commands/DescribeTagsCommand.ts +0 -94
- package/commands/GetBatchPredictionCommand.ts +0 -95
- package/commands/GetDataSourceCommand.ts +0 -97
- package/commands/GetEvaluationCommand.ts +0 -94
- package/commands/GetMLModelCommand.ts +0 -96
- package/commands/PredictCommand.ts +0 -96
- package/commands/UpdateBatchPredictionCommand.ts +0 -95
- package/commands/UpdateDataSourceCommand.ts +0 -95
- package/commands/UpdateEvaluationCommand.ts +0 -95
- package/commands/UpdateMLModelCommand.ts +0 -95
- package/dist/cjs/MachineLearning.js.map +0 -1
- package/dist/cjs/MachineLearningClient.js.map +0 -1
- package/dist/cjs/commands/AddTagsCommand.js.map +0 -1
- package/dist/cjs/commands/CreateBatchPredictionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSourceFromRDSCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSourceFromRedshiftCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSourceFromS3Command.js.map +0 -1
- package/dist/cjs/commands/CreateEvaluationCommand.js.map +0 -1
- package/dist/cjs/commands/CreateMLModelCommand.js.map +0 -1
- package/dist/cjs/commands/CreateRealtimeEndpointCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteBatchPredictionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDataSourceCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteEvaluationCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteMLModelCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRealtimeEndpointCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteTagsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeBatchPredictionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDataSourcesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeEvaluationsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeMLModelsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeTagsCommand.js.map +0 -1
- package/dist/cjs/commands/GetBatchPredictionCommand.js.map +0 -1
- package/dist/cjs/commands/GetDataSourceCommand.js.map +0 -1
- package/dist/cjs/commands/GetEvaluationCommand.js.map +0 -1
- package/dist/cjs/commands/GetMLModelCommand.js.map +0 -1
- package/dist/cjs/commands/PredictCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateBatchPredictionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDataSourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateEvaluationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateMLModelCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/DescribeBatchPredictionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeDataSourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeEvaluationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeMLModelsPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.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/cjs/waiters/waitForBatchPredictionAvailable.js.map +0 -1
- package/dist/cjs/waiters/waitForDataSourceAvailable.js.map +0 -1
- package/dist/cjs/waiters/waitForEvaluationAvailable.js.map +0 -1
- package/dist/cjs/waiters/waitForMLModelAvailable.js.map +0 -1
- package/dist/es/MachineLearning.js.map +0 -1
- package/dist/es/MachineLearningClient.js.map +0 -1
- package/dist/es/commands/AddTagsCommand.js.map +0 -1
- package/dist/es/commands/CreateBatchPredictionCommand.js +0 -76
- package/dist/es/commands/CreateBatchPredictionCommand.js.map +0 -1
- package/dist/es/commands/CreateDataSourceFromRDSCommand.js +0 -76
- package/dist/es/commands/CreateDataSourceFromRDSCommand.js.map +0 -1
- package/dist/es/commands/CreateDataSourceFromRedshiftCommand.js +0 -97
- package/dist/es/commands/CreateDataSourceFromRedshiftCommand.js.map +0 -1
- package/dist/es/commands/CreateDataSourceFromS3Command.js +0 -95
- package/dist/es/commands/CreateDataSourceFromS3Command.js.map +0 -1
- package/dist/es/commands/CreateEvaluationCommand.js +0 -76
- package/dist/es/commands/CreateEvaluationCommand.js.map +0 -1
- package/dist/es/commands/CreateMLModelCommand.js +0 -84
- package/dist/es/commands/CreateMLModelCommand.js.map +0 -1
- package/dist/es/commands/CreateRealtimeEndpointCommand.js.map +0 -1
- package/dist/es/commands/DeleteBatchPredictionCommand.js.map +0 -1
- package/dist/es/commands/DeleteDataSourceCommand.js.map +0 -1
- package/dist/es/commands/DeleteEvaluationCommand.js.map +0 -1
- package/dist/es/commands/DeleteMLModelCommand.js.map +0 -1
- package/dist/es/commands/DeleteRealtimeEndpointCommand.js.map +0 -1
- package/dist/es/commands/DeleteTagsCommand.js.map +0 -1
- package/dist/es/commands/DescribeBatchPredictionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeDataSourcesCommand.js.map +0 -1
- package/dist/es/commands/DescribeEvaluationsCommand.js.map +0 -1
- package/dist/es/commands/DescribeMLModelsCommand.js.map +0 -1
- package/dist/es/commands/DescribeTagsCommand.js.map +0 -1
- package/dist/es/commands/GetBatchPredictionCommand.js.map +0 -1
- package/dist/es/commands/GetDataSourceCommand.js.map +0 -1
- package/dist/es/commands/GetEvaluationCommand.js.map +0 -1
- package/dist/es/commands/GetMLModelCommand.js.map +0 -1
- package/dist/es/commands/PredictCommand.js.map +0 -1
- package/dist/es/commands/UpdateBatchPredictionCommand.js.map +0 -1
- package/dist/es/commands/UpdateDataSourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateEvaluationCommand.js.map +0 -1
- package/dist/es/commands/UpdateMLModelCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -41
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- 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 -93
- package/dist/es/pagination/DescribeBatchPredictionsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeDataSourcesPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeEvaluationsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeMLModelsPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.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
- package/dist/es/waiters/waitForBatchPredictionAvailable.js.map +0 -1
- package/dist/es/waiters/waitForDataSourceAvailable.js.map +0 -1
- package/dist/es/waiters/waitForEvaluationAvailable.js.map +0 -1
- package/dist/es/waiters/waitForMLModelAvailable.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -4066
- package/pagination/DescribeBatchPredictionsPaginator.ts +0 -58
- package/pagination/DescribeDataSourcesPaginator.ts +0 -58
- package/pagination/DescribeEvaluationsPaginator.ts +0 -58
- package/pagination/DescribeMLModelsPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -3957
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
- package/waiters/waitForBatchPredictionAvailable.ts +0 -74
- package/waiters/waitForDataSourceAvailable.ts +0 -71
- package/waiters/waitForEvaluationAvailable.ts +0 -71
- package/waiters/waitForMLModelAvailable.ts +0 -71
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1AddTagsCommand = function (input, context) { retu
|
|
|
9
9
|
"x-amz-target": "AmazonML_20141212.AddTags",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1AddTagsInput(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateBatchPredictionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateBatchPredictionCommand = function (input, c
|
|
|
20
20
|
"x-amz-target": "AmazonML_20141212.CreateBatchPrediction",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateBatchPredictionInput(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateDataSourceFromRDSCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateDataSourceFromRDSCommand = function (input,
|
|
|
31
31
|
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromRDS",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateDataSourceFromRDSInput(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CreateDataSourceFromRedshiftCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreateDataSourceFromRedshiftCommand = function (i
|
|
|
42
42
|
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromRedshift",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CreateDataSourceFromRedshiftInput(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1CreateDataSourceFromS3Command = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1CreateDataSourceFromS3Command = function (input,
|
|
|
53
53
|
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromS3",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1CreateDataSourceFromS3Input(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1CreateEvaluationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1CreateEvaluationCommand = function (input, contex
|
|
|
64
64
|
"x-amz-target": "AmazonML_20141212.CreateEvaluation",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1CreateEvaluationInput(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1CreateMLModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1CreateMLModelCommand = function (input, context)
|
|
|
75
75
|
"x-amz-target": "AmazonML_20141212.CreateMLModel",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1CreateMLModelInput(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1CreateRealtimeEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1CreateRealtimeEndpointCommand = function (input,
|
|
|
86
86
|
"x-amz-target": "AmazonML_20141212.CreateRealtimeEndpoint",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1CreateRealtimeEndpointInput(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DeleteBatchPredictionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DeleteBatchPredictionCommand = function (input, c
|
|
|
97
97
|
"x-amz-target": "AmazonML_20141212.DeleteBatchPrediction",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DeleteBatchPredictionInput(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DeleteDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DeleteDataSourceCommand = function (input, contex
|
|
|
108
108
|
"x-amz-target": "AmazonML_20141212.DeleteDataSource",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DeleteDataSourceInput(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1DeleteEvaluationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DeleteEvaluationCommand = function (input, contex
|
|
|
119
119
|
"x-amz-target": "AmazonML_20141212.DeleteEvaluation",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1DeleteEvaluationInput(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1DeleteMLModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DeleteMLModelCommand = function (input, context)
|
|
|
130
130
|
"x-amz-target": "AmazonML_20141212.DeleteMLModel",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1DeleteMLModelInput(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1DeleteRealtimeEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1DeleteRealtimeEndpointCommand = function (input,
|
|
|
141
141
|
"x-amz-target": "AmazonML_20141212.DeleteRealtimeEndpoint",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1DeleteRealtimeEndpointInput(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1DeleteTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1DeleteTagsCommand = function (input, context) { r
|
|
|
152
152
|
"x-amz-target": "AmazonML_20141212.DeleteTags",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1DeleteTagsInput(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1DescribeBatchPredictionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1DescribeBatchPredictionsCommand = function (input
|
|
|
163
163
|
"x-amz-target": "AmazonML_20141212.DescribeBatchPredictions",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1DescribeBatchPredictionsInput(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1DescribeDataSourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1DescribeDataSourcesCommand = function (input, con
|
|
|
174
174
|
"x-amz-target": "AmazonML_20141212.DescribeDataSources",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1DescribeDataSourcesInput(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1DescribeEvaluationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1DescribeEvaluationsCommand = function (input, con
|
|
|
185
185
|
"x-amz-target": "AmazonML_20141212.DescribeEvaluations",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1DescribeEvaluationsInput(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1DescribeMLModelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1DescribeMLModelsCommand = function (input, contex
|
|
|
196
196
|
"x-amz-target": "AmazonML_20141212.DescribeMLModels",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1DescribeMLModelsInput(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1DescribeTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1DescribeTagsCommand = function (input, context) {
|
|
|
207
207
|
"x-amz-target": "AmazonML_20141212.DescribeTags",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1DescribeTagsInput(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1GetBatchPredictionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1GetBatchPredictionCommand = function (input, cont
|
|
|
218
218
|
"x-amz-target": "AmazonML_20141212.GetBatchPrediction",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1GetBatchPredictionInput(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1GetDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1GetDataSourceCommand = function (input, context)
|
|
|
229
229
|
"x-amz-target": "AmazonML_20141212.GetDataSource",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1GetDataSourceInput(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1GetEvaluationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1GetEvaluationCommand = function (input, context)
|
|
|
240
240
|
"x-amz-target": "AmazonML_20141212.GetEvaluation",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1GetEvaluationInput(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1GetMLModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1GetMLModelCommand = function (input, context) { r
|
|
|
251
251
|
"x-amz-target": "AmazonML_20141212.GetMLModel",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1GetMLModelInput(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_1PredictCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_1PredictCommand = function (input, context) { retu
|
|
|
262
262
|
"x-amz-target": "AmazonML_20141212.Predict",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_1PredictInput(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_1UpdateBatchPredictionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_1UpdateBatchPredictionCommand = function (input, c
|
|
|
273
273
|
"x-amz-target": "AmazonML_20141212.UpdateBatchPrediction",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_1UpdateBatchPredictionInput(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_1UpdateDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_1UpdateDataSourceCommand = function (input, contex
|
|
|
284
284
|
"x-amz-target": "AmazonML_20141212.UpdateDataSource",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_1UpdateDataSourceInput(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_1UpdateEvaluationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_1UpdateEvaluationCommand = function (input, contex
|
|
|
295
295
|
"x-amz-target": "AmazonML_20141212.UpdateEvaluation",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_1UpdateEvaluationInput(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_1UpdateMLModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_1UpdateMLModelCommand = function (input, context)
|
|
|
306
306
|
"x-amz-target": "AmazonML_20141212.UpdateMLModel",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_1UpdateMLModelInput(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var deserializeAws_json1_1AddTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -315,15 +315,15 @@ export var deserializeAws_json1_1AddTagsCommand = function (output, context) { r
|
|
|
315
315
|
switch (_a.label) {
|
|
316
316
|
case 0:
|
|
317
317
|
if (output.statusCode >= 300) {
|
|
318
|
-
return [2
|
|
318
|
+
return [2, deserializeAws_json1_1AddTagsCommandError(output, context)];
|
|
319
319
|
}
|
|
320
|
-
return [4
|
|
320
|
+
return [4, parseBody(output.body, context)];
|
|
321
321
|
case 1:
|
|
322
322
|
data = _a.sent();
|
|
323
323
|
contents = {};
|
|
324
324
|
contents = deserializeAws_json1_1AddTagsOutput(data, context);
|
|
325
325
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
326
|
-
return [2
|
|
326
|
+
return [2, Promise.resolve(response)];
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
}); };
|
|
@@ -335,55 +335,55 @@ var deserializeAws_json1_1AddTagsCommandError = function (output, context) { ret
|
|
|
335
335
|
case 0:
|
|
336
336
|
_a = [__assign({}, output)];
|
|
337
337
|
_h = {};
|
|
338
|
-
return [4
|
|
338
|
+
return [4, parseBody(output.body, context)];
|
|
339
339
|
case 1:
|
|
340
340
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
341
341
|
errorCode = "UnknownError";
|
|
342
342
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
343
|
_b = errorCode;
|
|
344
344
|
switch (_b) {
|
|
345
|
-
case "InternalServerException": return [3
|
|
346
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
347
|
-
case "InvalidInputException": return [3
|
|
348
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
349
|
-
case "InvalidTagException": return [3
|
|
350
|
-
case "com.amazonaws.machinelearning#InvalidTagException": return [3
|
|
351
|
-
case "ResourceNotFoundException": return [3
|
|
352
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
353
|
-
case "TagLimitExceededException": return [3
|
|
354
|
-
case "com.amazonaws.machinelearning#TagLimitExceededException": return [3
|
|
345
|
+
case "InternalServerException": return [3, 2];
|
|
346
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
347
|
+
case "InvalidInputException": return [3, 4];
|
|
348
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
349
|
+
case "InvalidTagException": return [3, 6];
|
|
350
|
+
case "com.amazonaws.machinelearning#InvalidTagException": return [3, 6];
|
|
351
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
352
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 8];
|
|
353
|
+
case "TagLimitExceededException": return [3, 10];
|
|
354
|
+
case "com.amazonaws.machinelearning#TagLimitExceededException": return [3, 10];
|
|
355
355
|
}
|
|
356
|
-
return [3
|
|
356
|
+
return [3, 12];
|
|
357
357
|
case 2:
|
|
358
358
|
_c = [{}];
|
|
359
|
-
return [4
|
|
359
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
360
360
|
case 3:
|
|
361
361
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
362
|
-
return [3
|
|
362
|
+
return [3, 13];
|
|
363
363
|
case 4:
|
|
364
364
|
_d = [{}];
|
|
365
|
-
return [4
|
|
365
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
366
366
|
case 5:
|
|
367
367
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
368
|
-
return [3
|
|
368
|
+
return [3, 13];
|
|
369
369
|
case 6:
|
|
370
370
|
_e = [{}];
|
|
371
|
-
return [4
|
|
371
|
+
return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
372
372
|
case 7:
|
|
373
373
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
374
|
-
return [3
|
|
374
|
+
return [3, 13];
|
|
375
375
|
case 8:
|
|
376
376
|
_f = [{}];
|
|
377
|
-
return [4
|
|
377
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
378
378
|
case 9:
|
|
379
379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
380
|
-
return [3
|
|
380
|
+
return [3, 13];
|
|
381
381
|
case 10:
|
|
382
382
|
_g = [{}];
|
|
383
|
-
return [4
|
|
383
|
+
return [4, deserializeAws_json1_1TagLimitExceededExceptionResponse(parsedOutput, context)];
|
|
384
384
|
case 11:
|
|
385
385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
386
|
-
return [3
|
|
386
|
+
return [3, 13];
|
|
387
387
|
case 12:
|
|
388
388
|
parsedBody = parsedOutput.body;
|
|
389
389
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -393,7 +393,7 @@ var deserializeAws_json1_1AddTagsCommandError = function (output, context) { ret
|
|
|
393
393
|
message = response.message || response.Message || errorCode;
|
|
394
394
|
response.message = message;
|
|
395
395
|
delete response.Message;
|
|
396
|
-
return [2
|
|
396
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
399
|
}); };
|
|
@@ -403,15 +403,15 @@ export var deserializeAws_json1_1CreateBatchPredictionCommand = function (output
|
|
|
403
403
|
switch (_a.label) {
|
|
404
404
|
case 0:
|
|
405
405
|
if (output.statusCode >= 300) {
|
|
406
|
-
return [2
|
|
406
|
+
return [2, deserializeAws_json1_1CreateBatchPredictionCommandError(output, context)];
|
|
407
407
|
}
|
|
408
|
-
return [4
|
|
408
|
+
return [4, parseBody(output.body, context)];
|
|
409
409
|
case 1:
|
|
410
410
|
data = _a.sent();
|
|
411
411
|
contents = {};
|
|
412
412
|
contents = deserializeAws_json1_1CreateBatchPredictionOutput(data, context);
|
|
413
413
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
414
|
-
return [2
|
|
414
|
+
return [2, Promise.resolve(response)];
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
417
|
}); };
|
|
@@ -423,39 +423,39 @@ var deserializeAws_json1_1CreateBatchPredictionCommandError = function (output,
|
|
|
423
423
|
case 0:
|
|
424
424
|
_a = [__assign({}, output)];
|
|
425
425
|
_f = {};
|
|
426
|
-
return [4
|
|
426
|
+
return [4, parseBody(output.body, context)];
|
|
427
427
|
case 1:
|
|
428
428
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
429
429
|
errorCode = "UnknownError";
|
|
430
430
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
431
|
_b = errorCode;
|
|
432
432
|
switch (_b) {
|
|
433
|
-
case "IdempotentParameterMismatchException": return [3
|
|
434
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3
|
|
435
|
-
case "InternalServerException": return [3
|
|
436
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
437
|
-
case "InvalidInputException": return [3
|
|
438
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
433
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
434
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3, 2];
|
|
435
|
+
case "InternalServerException": return [3, 4];
|
|
436
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 4];
|
|
437
|
+
case "InvalidInputException": return [3, 6];
|
|
438
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 6];
|
|
439
439
|
}
|
|
440
|
-
return [3
|
|
440
|
+
return [3, 8];
|
|
441
441
|
case 2:
|
|
442
442
|
_c = [{}];
|
|
443
|
-
return [4
|
|
443
|
+
return [4, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
444
444
|
case 3:
|
|
445
445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
446
|
-
return [3
|
|
446
|
+
return [3, 9];
|
|
447
447
|
case 4:
|
|
448
448
|
_d = [{}];
|
|
449
|
-
return [4
|
|
449
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
450
450
|
case 5:
|
|
451
451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
452
|
-
return [3
|
|
452
|
+
return [3, 9];
|
|
453
453
|
case 6:
|
|
454
454
|
_e = [{}];
|
|
455
|
-
return [4
|
|
455
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
456
456
|
case 7:
|
|
457
457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
458
|
-
return [3
|
|
458
|
+
return [3, 9];
|
|
459
459
|
case 8:
|
|
460
460
|
parsedBody = parsedOutput.body;
|
|
461
461
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -465,7 +465,7 @@ var deserializeAws_json1_1CreateBatchPredictionCommandError = function (output,
|
|
|
465
465
|
message = response.message || response.Message || errorCode;
|
|
466
466
|
response.message = message;
|
|
467
467
|
delete response.Message;
|
|
468
|
-
return [2
|
|
468
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
471
|
}); };
|
|
@@ -475,15 +475,15 @@ export var deserializeAws_json1_1CreateDataSourceFromRDSCommand = function (outp
|
|
|
475
475
|
switch (_a.label) {
|
|
476
476
|
case 0:
|
|
477
477
|
if (output.statusCode >= 300) {
|
|
478
|
-
return [2
|
|
478
|
+
return [2, deserializeAws_json1_1CreateDataSourceFromRDSCommandError(output, context)];
|
|
479
479
|
}
|
|
480
|
-
return [4
|
|
480
|
+
return [4, parseBody(output.body, context)];
|
|
481
481
|
case 1:
|
|
482
482
|
data = _a.sent();
|
|
483
483
|
contents = {};
|
|
484
484
|
contents = deserializeAws_json1_1CreateDataSourceFromRDSOutput(data, context);
|
|
485
485
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
486
|
-
return [2
|
|
486
|
+
return [2, Promise.resolve(response)];
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
489
|
}); };
|
|
@@ -495,39 +495,39 @@ var deserializeAws_json1_1CreateDataSourceFromRDSCommandError = function (output
|
|
|
495
495
|
case 0:
|
|
496
496
|
_a = [__assign({}, output)];
|
|
497
497
|
_f = {};
|
|
498
|
-
return [4
|
|
498
|
+
return [4, parseBody(output.body, context)];
|
|
499
499
|
case 1:
|
|
500
500
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
501
501
|
errorCode = "UnknownError";
|
|
502
502
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
503
|
_b = errorCode;
|
|
504
504
|
switch (_b) {
|
|
505
|
-
case "IdempotentParameterMismatchException": return [3
|
|
506
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3
|
|
507
|
-
case "InternalServerException": return [3
|
|
508
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
509
|
-
case "InvalidInputException": return [3
|
|
510
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
505
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
506
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3, 2];
|
|
507
|
+
case "InternalServerException": return [3, 4];
|
|
508
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 4];
|
|
509
|
+
case "InvalidInputException": return [3, 6];
|
|
510
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 6];
|
|
511
511
|
}
|
|
512
|
-
return [3
|
|
512
|
+
return [3, 8];
|
|
513
513
|
case 2:
|
|
514
514
|
_c = [{}];
|
|
515
|
-
return [4
|
|
515
|
+
return [4, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
516
516
|
case 3:
|
|
517
517
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
518
|
-
return [3
|
|
518
|
+
return [3, 9];
|
|
519
519
|
case 4:
|
|
520
520
|
_d = [{}];
|
|
521
|
-
return [4
|
|
521
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
522
522
|
case 5:
|
|
523
523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
524
|
-
return [3
|
|
524
|
+
return [3, 9];
|
|
525
525
|
case 6:
|
|
526
526
|
_e = [{}];
|
|
527
|
-
return [4
|
|
527
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
528
528
|
case 7:
|
|
529
529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
530
|
-
return [3
|
|
530
|
+
return [3, 9];
|
|
531
531
|
case 8:
|
|
532
532
|
parsedBody = parsedOutput.body;
|
|
533
533
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -537,7 +537,7 @@ var deserializeAws_json1_1CreateDataSourceFromRDSCommandError = function (output
|
|
|
537
537
|
message = response.message || response.Message || errorCode;
|
|
538
538
|
response.message = message;
|
|
539
539
|
delete response.Message;
|
|
540
|
-
return [2
|
|
540
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
543
|
}); };
|
|
@@ -547,15 +547,15 @@ export var deserializeAws_json1_1CreateDataSourceFromRedshiftCommand = function
|
|
|
547
547
|
switch (_a.label) {
|
|
548
548
|
case 0:
|
|
549
549
|
if (output.statusCode >= 300) {
|
|
550
|
-
return [2
|
|
550
|
+
return [2, deserializeAws_json1_1CreateDataSourceFromRedshiftCommandError(output, context)];
|
|
551
551
|
}
|
|
552
|
-
return [4
|
|
552
|
+
return [4, parseBody(output.body, context)];
|
|
553
553
|
case 1:
|
|
554
554
|
data = _a.sent();
|
|
555
555
|
contents = {};
|
|
556
556
|
contents = deserializeAws_json1_1CreateDataSourceFromRedshiftOutput(data, context);
|
|
557
557
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
558
|
-
return [2
|
|
558
|
+
return [2, Promise.resolve(response)];
|
|
559
559
|
}
|
|
560
560
|
});
|
|
561
561
|
}); };
|
|
@@ -567,39 +567,39 @@ var deserializeAws_json1_1CreateDataSourceFromRedshiftCommandError = function (o
|
|
|
567
567
|
case 0:
|
|
568
568
|
_a = [__assign({}, output)];
|
|
569
569
|
_f = {};
|
|
570
|
-
return [4
|
|
570
|
+
return [4, parseBody(output.body, context)];
|
|
571
571
|
case 1:
|
|
572
572
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
573
573
|
errorCode = "UnknownError";
|
|
574
574
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
575
|
_b = errorCode;
|
|
576
576
|
switch (_b) {
|
|
577
|
-
case "IdempotentParameterMismatchException": return [3
|
|
578
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3
|
|
579
|
-
case "InternalServerException": return [3
|
|
580
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
581
|
-
case "InvalidInputException": return [3
|
|
582
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
577
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
578
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3, 2];
|
|
579
|
+
case "InternalServerException": return [3, 4];
|
|
580
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 4];
|
|
581
|
+
case "InvalidInputException": return [3, 6];
|
|
582
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 6];
|
|
583
583
|
}
|
|
584
|
-
return [3
|
|
584
|
+
return [3, 8];
|
|
585
585
|
case 2:
|
|
586
586
|
_c = [{}];
|
|
587
|
-
return [4
|
|
587
|
+
return [4, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
588
588
|
case 3:
|
|
589
589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
590
|
-
return [3
|
|
590
|
+
return [3, 9];
|
|
591
591
|
case 4:
|
|
592
592
|
_d = [{}];
|
|
593
|
-
return [4
|
|
593
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
594
594
|
case 5:
|
|
595
595
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
596
|
-
return [3
|
|
596
|
+
return [3, 9];
|
|
597
597
|
case 6:
|
|
598
598
|
_e = [{}];
|
|
599
|
-
return [4
|
|
599
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
600
600
|
case 7:
|
|
601
601
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
602
|
-
return [3
|
|
602
|
+
return [3, 9];
|
|
603
603
|
case 8:
|
|
604
604
|
parsedBody = parsedOutput.body;
|
|
605
605
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -609,7 +609,7 @@ var deserializeAws_json1_1CreateDataSourceFromRedshiftCommandError = function (o
|
|
|
609
609
|
message = response.message || response.Message || errorCode;
|
|
610
610
|
response.message = message;
|
|
611
611
|
delete response.Message;
|
|
612
|
-
return [2
|
|
612
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
613
613
|
}
|
|
614
614
|
});
|
|
615
615
|
}); };
|
|
@@ -619,15 +619,15 @@ export var deserializeAws_json1_1CreateDataSourceFromS3Command = function (outpu
|
|
|
619
619
|
switch (_a.label) {
|
|
620
620
|
case 0:
|
|
621
621
|
if (output.statusCode >= 300) {
|
|
622
|
-
return [2
|
|
622
|
+
return [2, deserializeAws_json1_1CreateDataSourceFromS3CommandError(output, context)];
|
|
623
623
|
}
|
|
624
|
-
return [4
|
|
624
|
+
return [4, parseBody(output.body, context)];
|
|
625
625
|
case 1:
|
|
626
626
|
data = _a.sent();
|
|
627
627
|
contents = {};
|
|
628
628
|
contents = deserializeAws_json1_1CreateDataSourceFromS3Output(data, context);
|
|
629
629
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
630
|
-
return [2
|
|
630
|
+
return [2, Promise.resolve(response)];
|
|
631
631
|
}
|
|
632
632
|
});
|
|
633
633
|
}); };
|
|
@@ -639,39 +639,39 @@ var deserializeAws_json1_1CreateDataSourceFromS3CommandError = function (output,
|
|
|
639
639
|
case 0:
|
|
640
640
|
_a = [__assign({}, output)];
|
|
641
641
|
_f = {};
|
|
642
|
-
return [4
|
|
642
|
+
return [4, parseBody(output.body, context)];
|
|
643
643
|
case 1:
|
|
644
644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
645
645
|
errorCode = "UnknownError";
|
|
646
646
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
647
|
_b = errorCode;
|
|
648
648
|
switch (_b) {
|
|
649
|
-
case "IdempotentParameterMismatchException": return [3
|
|
650
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3
|
|
651
|
-
case "InternalServerException": return [3
|
|
652
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
653
|
-
case "InvalidInputException": return [3
|
|
654
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
649
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
650
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3, 2];
|
|
651
|
+
case "InternalServerException": return [3, 4];
|
|
652
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 4];
|
|
653
|
+
case "InvalidInputException": return [3, 6];
|
|
654
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 6];
|
|
655
655
|
}
|
|
656
|
-
return [3
|
|
656
|
+
return [3, 8];
|
|
657
657
|
case 2:
|
|
658
658
|
_c = [{}];
|
|
659
|
-
return [4
|
|
659
|
+
return [4, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
660
660
|
case 3:
|
|
661
661
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
662
|
-
return [3
|
|
662
|
+
return [3, 9];
|
|
663
663
|
case 4:
|
|
664
664
|
_d = [{}];
|
|
665
|
-
return [4
|
|
665
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
666
666
|
case 5:
|
|
667
667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
668
|
-
return [3
|
|
668
|
+
return [3, 9];
|
|
669
669
|
case 6:
|
|
670
670
|
_e = [{}];
|
|
671
|
-
return [4
|
|
671
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
672
672
|
case 7:
|
|
673
673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
674
|
-
return [3
|
|
674
|
+
return [3, 9];
|
|
675
675
|
case 8:
|
|
676
676
|
parsedBody = parsedOutput.body;
|
|
677
677
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -681,7 +681,7 @@ var deserializeAws_json1_1CreateDataSourceFromS3CommandError = function (output,
|
|
|
681
681
|
message = response.message || response.Message || errorCode;
|
|
682
682
|
response.message = message;
|
|
683
683
|
delete response.Message;
|
|
684
|
-
return [2
|
|
684
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
687
|
}); };
|
|
@@ -691,15 +691,15 @@ export var deserializeAws_json1_1CreateEvaluationCommand = function (output, con
|
|
|
691
691
|
switch (_a.label) {
|
|
692
692
|
case 0:
|
|
693
693
|
if (output.statusCode >= 300) {
|
|
694
|
-
return [2
|
|
694
|
+
return [2, deserializeAws_json1_1CreateEvaluationCommandError(output, context)];
|
|
695
695
|
}
|
|
696
|
-
return [4
|
|
696
|
+
return [4, parseBody(output.body, context)];
|
|
697
697
|
case 1:
|
|
698
698
|
data = _a.sent();
|
|
699
699
|
contents = {};
|
|
700
700
|
contents = deserializeAws_json1_1CreateEvaluationOutput(data, context);
|
|
701
701
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
702
|
-
return [2
|
|
702
|
+
return [2, Promise.resolve(response)];
|
|
703
703
|
}
|
|
704
704
|
});
|
|
705
705
|
}); };
|
|
@@ -711,39 +711,39 @@ var deserializeAws_json1_1CreateEvaluationCommandError = function (output, conte
|
|
|
711
711
|
case 0:
|
|
712
712
|
_a = [__assign({}, output)];
|
|
713
713
|
_f = {};
|
|
714
|
-
return [4
|
|
714
|
+
return [4, parseBody(output.body, context)];
|
|
715
715
|
case 1:
|
|
716
716
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
717
717
|
errorCode = "UnknownError";
|
|
718
718
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
719
|
_b = errorCode;
|
|
720
720
|
switch (_b) {
|
|
721
|
-
case "IdempotentParameterMismatchException": return [3
|
|
722
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3
|
|
723
|
-
case "InternalServerException": return [3
|
|
724
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
725
|
-
case "InvalidInputException": return [3
|
|
726
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
721
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
722
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3, 2];
|
|
723
|
+
case "InternalServerException": return [3, 4];
|
|
724
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 4];
|
|
725
|
+
case "InvalidInputException": return [3, 6];
|
|
726
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 6];
|
|
727
727
|
}
|
|
728
|
-
return [3
|
|
728
|
+
return [3, 8];
|
|
729
729
|
case 2:
|
|
730
730
|
_c = [{}];
|
|
731
|
-
return [4
|
|
731
|
+
return [4, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
732
732
|
case 3:
|
|
733
733
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
734
|
-
return [3
|
|
734
|
+
return [3, 9];
|
|
735
735
|
case 4:
|
|
736
736
|
_d = [{}];
|
|
737
|
-
return [4
|
|
737
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
738
738
|
case 5:
|
|
739
739
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
740
|
-
return [3
|
|
740
|
+
return [3, 9];
|
|
741
741
|
case 6:
|
|
742
742
|
_e = [{}];
|
|
743
|
-
return [4
|
|
743
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
744
744
|
case 7:
|
|
745
745
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
746
|
-
return [3
|
|
746
|
+
return [3, 9];
|
|
747
747
|
case 8:
|
|
748
748
|
parsedBody = parsedOutput.body;
|
|
749
749
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -753,7 +753,7 @@ var deserializeAws_json1_1CreateEvaluationCommandError = function (output, conte
|
|
|
753
753
|
message = response.message || response.Message || errorCode;
|
|
754
754
|
response.message = message;
|
|
755
755
|
delete response.Message;
|
|
756
|
-
return [2
|
|
756
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
757
757
|
}
|
|
758
758
|
});
|
|
759
759
|
}); };
|
|
@@ -763,15 +763,15 @@ export var deserializeAws_json1_1CreateMLModelCommand = function (output, contex
|
|
|
763
763
|
switch (_a.label) {
|
|
764
764
|
case 0:
|
|
765
765
|
if (output.statusCode >= 300) {
|
|
766
|
-
return [2
|
|
766
|
+
return [2, deserializeAws_json1_1CreateMLModelCommandError(output, context)];
|
|
767
767
|
}
|
|
768
|
-
return [4
|
|
768
|
+
return [4, parseBody(output.body, context)];
|
|
769
769
|
case 1:
|
|
770
770
|
data = _a.sent();
|
|
771
771
|
contents = {};
|
|
772
772
|
contents = deserializeAws_json1_1CreateMLModelOutput(data, context);
|
|
773
773
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
774
|
-
return [2
|
|
774
|
+
return [2, Promise.resolve(response)];
|
|
775
775
|
}
|
|
776
776
|
});
|
|
777
777
|
}); };
|
|
@@ -783,39 +783,39 @@ var deserializeAws_json1_1CreateMLModelCommandError = function (output, context)
|
|
|
783
783
|
case 0:
|
|
784
784
|
_a = [__assign({}, output)];
|
|
785
785
|
_f = {};
|
|
786
|
-
return [4
|
|
786
|
+
return [4, parseBody(output.body, context)];
|
|
787
787
|
case 1:
|
|
788
788
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
789
789
|
errorCode = "UnknownError";
|
|
790
790
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
791
|
_b = errorCode;
|
|
792
792
|
switch (_b) {
|
|
793
|
-
case "IdempotentParameterMismatchException": return [3
|
|
794
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3
|
|
795
|
-
case "InternalServerException": return [3
|
|
796
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
797
|
-
case "InvalidInputException": return [3
|
|
798
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
793
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
794
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException": return [3, 2];
|
|
795
|
+
case "InternalServerException": return [3, 4];
|
|
796
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 4];
|
|
797
|
+
case "InvalidInputException": return [3, 6];
|
|
798
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 6];
|
|
799
799
|
}
|
|
800
|
-
return [3
|
|
800
|
+
return [3, 8];
|
|
801
801
|
case 2:
|
|
802
802
|
_c = [{}];
|
|
803
|
-
return [4
|
|
803
|
+
return [4, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
804
804
|
case 3:
|
|
805
805
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
806
|
-
return [3
|
|
806
|
+
return [3, 9];
|
|
807
807
|
case 4:
|
|
808
808
|
_d = [{}];
|
|
809
|
-
return [4
|
|
809
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
810
810
|
case 5:
|
|
811
811
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
812
|
-
return [3
|
|
812
|
+
return [3, 9];
|
|
813
813
|
case 6:
|
|
814
814
|
_e = [{}];
|
|
815
|
-
return [4
|
|
815
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
816
816
|
case 7:
|
|
817
817
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
818
|
-
return [3
|
|
818
|
+
return [3, 9];
|
|
819
819
|
case 8:
|
|
820
820
|
parsedBody = parsedOutput.body;
|
|
821
821
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -825,7 +825,7 @@ var deserializeAws_json1_1CreateMLModelCommandError = function (output, context)
|
|
|
825
825
|
message = response.message || response.Message || errorCode;
|
|
826
826
|
response.message = message;
|
|
827
827
|
delete response.Message;
|
|
828
|
-
return [2
|
|
828
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
831
|
}); };
|
|
@@ -835,15 +835,15 @@ export var deserializeAws_json1_1CreateRealtimeEndpointCommand = function (outpu
|
|
|
835
835
|
switch (_a.label) {
|
|
836
836
|
case 0:
|
|
837
837
|
if (output.statusCode >= 300) {
|
|
838
|
-
return [2
|
|
838
|
+
return [2, deserializeAws_json1_1CreateRealtimeEndpointCommandError(output, context)];
|
|
839
839
|
}
|
|
840
|
-
return [4
|
|
840
|
+
return [4, parseBody(output.body, context)];
|
|
841
841
|
case 1:
|
|
842
842
|
data = _a.sent();
|
|
843
843
|
contents = {};
|
|
844
844
|
contents = deserializeAws_json1_1CreateRealtimeEndpointOutput(data, context);
|
|
845
845
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
846
|
-
return [2
|
|
846
|
+
return [2, Promise.resolve(response)];
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
}); };
|
|
@@ -855,39 +855,39 @@ var deserializeAws_json1_1CreateRealtimeEndpointCommandError = function (output,
|
|
|
855
855
|
case 0:
|
|
856
856
|
_a = [__assign({}, output)];
|
|
857
857
|
_f = {};
|
|
858
|
-
return [4
|
|
858
|
+
return [4, parseBody(output.body, context)];
|
|
859
859
|
case 1:
|
|
860
860
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
861
861
|
errorCode = "UnknownError";
|
|
862
862
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
863
|
_b = errorCode;
|
|
864
864
|
switch (_b) {
|
|
865
|
-
case "InternalServerException": return [3
|
|
866
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
867
|
-
case "InvalidInputException": return [3
|
|
868
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
869
|
-
case "ResourceNotFoundException": return [3
|
|
870
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
865
|
+
case "InternalServerException": return [3, 2];
|
|
866
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
867
|
+
case "InvalidInputException": return [3, 4];
|
|
868
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
869
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
870
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
871
871
|
}
|
|
872
|
-
return [3
|
|
872
|
+
return [3, 8];
|
|
873
873
|
case 2:
|
|
874
874
|
_c = [{}];
|
|
875
|
-
return [4
|
|
875
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
876
876
|
case 3:
|
|
877
877
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
878
|
-
return [3
|
|
878
|
+
return [3, 9];
|
|
879
879
|
case 4:
|
|
880
880
|
_d = [{}];
|
|
881
|
-
return [4
|
|
881
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
882
882
|
case 5:
|
|
883
883
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
884
|
-
return [3
|
|
884
|
+
return [3, 9];
|
|
885
885
|
case 6:
|
|
886
886
|
_e = [{}];
|
|
887
|
-
return [4
|
|
887
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
888
888
|
case 7:
|
|
889
889
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
890
|
-
return [3
|
|
890
|
+
return [3, 9];
|
|
891
891
|
case 8:
|
|
892
892
|
parsedBody = parsedOutput.body;
|
|
893
893
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -897,7 +897,7 @@ var deserializeAws_json1_1CreateRealtimeEndpointCommandError = function (output,
|
|
|
897
897
|
message = response.message || response.Message || errorCode;
|
|
898
898
|
response.message = message;
|
|
899
899
|
delete response.Message;
|
|
900
|
-
return [2
|
|
900
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
901
901
|
}
|
|
902
902
|
});
|
|
903
903
|
}); };
|
|
@@ -907,15 +907,15 @@ export var deserializeAws_json1_1DeleteBatchPredictionCommand = function (output
|
|
|
907
907
|
switch (_a.label) {
|
|
908
908
|
case 0:
|
|
909
909
|
if (output.statusCode >= 300) {
|
|
910
|
-
return [2
|
|
910
|
+
return [2, deserializeAws_json1_1DeleteBatchPredictionCommandError(output, context)];
|
|
911
911
|
}
|
|
912
|
-
return [4
|
|
912
|
+
return [4, parseBody(output.body, context)];
|
|
913
913
|
case 1:
|
|
914
914
|
data = _a.sent();
|
|
915
915
|
contents = {};
|
|
916
916
|
contents = deserializeAws_json1_1DeleteBatchPredictionOutput(data, context);
|
|
917
917
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
918
|
-
return [2
|
|
918
|
+
return [2, Promise.resolve(response)];
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
}); };
|
|
@@ -927,39 +927,39 @@ var deserializeAws_json1_1DeleteBatchPredictionCommandError = function (output,
|
|
|
927
927
|
case 0:
|
|
928
928
|
_a = [__assign({}, output)];
|
|
929
929
|
_f = {};
|
|
930
|
-
return [4
|
|
930
|
+
return [4, parseBody(output.body, context)];
|
|
931
931
|
case 1:
|
|
932
932
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
933
933
|
errorCode = "UnknownError";
|
|
934
934
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
935
|
_b = errorCode;
|
|
936
936
|
switch (_b) {
|
|
937
|
-
case "InternalServerException": return [3
|
|
938
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
939
|
-
case "InvalidInputException": return [3
|
|
940
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
941
|
-
case "ResourceNotFoundException": return [3
|
|
942
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
937
|
+
case "InternalServerException": return [3, 2];
|
|
938
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
939
|
+
case "InvalidInputException": return [3, 4];
|
|
940
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
941
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
942
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
943
943
|
}
|
|
944
|
-
return [3
|
|
944
|
+
return [3, 8];
|
|
945
945
|
case 2:
|
|
946
946
|
_c = [{}];
|
|
947
|
-
return [4
|
|
947
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
948
948
|
case 3:
|
|
949
949
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
950
|
-
return [3
|
|
950
|
+
return [3, 9];
|
|
951
951
|
case 4:
|
|
952
952
|
_d = [{}];
|
|
953
|
-
return [4
|
|
953
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
954
954
|
case 5:
|
|
955
955
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
956
|
-
return [3
|
|
956
|
+
return [3, 9];
|
|
957
957
|
case 6:
|
|
958
958
|
_e = [{}];
|
|
959
|
-
return [4
|
|
959
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
960
960
|
case 7:
|
|
961
961
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
962
|
-
return [3
|
|
962
|
+
return [3, 9];
|
|
963
963
|
case 8:
|
|
964
964
|
parsedBody = parsedOutput.body;
|
|
965
965
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -969,7 +969,7 @@ var deserializeAws_json1_1DeleteBatchPredictionCommandError = function (output,
|
|
|
969
969
|
message = response.message || response.Message || errorCode;
|
|
970
970
|
response.message = message;
|
|
971
971
|
delete response.Message;
|
|
972
|
-
return [2
|
|
972
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
973
973
|
}
|
|
974
974
|
});
|
|
975
975
|
}); };
|
|
@@ -979,15 +979,15 @@ export var deserializeAws_json1_1DeleteDataSourceCommand = function (output, con
|
|
|
979
979
|
switch (_a.label) {
|
|
980
980
|
case 0:
|
|
981
981
|
if (output.statusCode >= 300) {
|
|
982
|
-
return [2
|
|
982
|
+
return [2, deserializeAws_json1_1DeleteDataSourceCommandError(output, context)];
|
|
983
983
|
}
|
|
984
|
-
return [4
|
|
984
|
+
return [4, parseBody(output.body, context)];
|
|
985
985
|
case 1:
|
|
986
986
|
data = _a.sent();
|
|
987
987
|
contents = {};
|
|
988
988
|
contents = deserializeAws_json1_1DeleteDataSourceOutput(data, context);
|
|
989
989
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
990
|
-
return [2
|
|
990
|
+
return [2, Promise.resolve(response)];
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
993
|
}); };
|
|
@@ -999,39 +999,39 @@ var deserializeAws_json1_1DeleteDataSourceCommandError = function (output, conte
|
|
|
999
999
|
case 0:
|
|
1000
1000
|
_a = [__assign({}, output)];
|
|
1001
1001
|
_f = {};
|
|
1002
|
-
return [4
|
|
1002
|
+
return [4, parseBody(output.body, context)];
|
|
1003
1003
|
case 1:
|
|
1004
1004
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1005
1005
|
errorCode = "UnknownError";
|
|
1006
1006
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
1007
|
_b = errorCode;
|
|
1008
1008
|
switch (_b) {
|
|
1009
|
-
case "InternalServerException": return [3
|
|
1010
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1011
|
-
case "InvalidInputException": return [3
|
|
1012
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1013
|
-
case "ResourceNotFoundException": return [3
|
|
1014
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1009
|
+
case "InternalServerException": return [3, 2];
|
|
1010
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1011
|
+
case "InvalidInputException": return [3, 4];
|
|
1012
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1013
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1014
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1015
1015
|
}
|
|
1016
|
-
return [3
|
|
1016
|
+
return [3, 8];
|
|
1017
1017
|
case 2:
|
|
1018
1018
|
_c = [{}];
|
|
1019
|
-
return [4
|
|
1019
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1020
1020
|
case 3:
|
|
1021
1021
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1022
|
-
return [3
|
|
1022
|
+
return [3, 9];
|
|
1023
1023
|
case 4:
|
|
1024
1024
|
_d = [{}];
|
|
1025
|
-
return [4
|
|
1025
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1026
1026
|
case 5:
|
|
1027
1027
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1028
|
-
return [3
|
|
1028
|
+
return [3, 9];
|
|
1029
1029
|
case 6:
|
|
1030
1030
|
_e = [{}];
|
|
1031
|
-
return [4
|
|
1031
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1032
1032
|
case 7:
|
|
1033
1033
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1034
|
-
return [3
|
|
1034
|
+
return [3, 9];
|
|
1035
1035
|
case 8:
|
|
1036
1036
|
parsedBody = parsedOutput.body;
|
|
1037
1037
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1041,7 +1041,7 @@ var deserializeAws_json1_1DeleteDataSourceCommandError = function (output, conte
|
|
|
1041
1041
|
message = response.message || response.Message || errorCode;
|
|
1042
1042
|
response.message = message;
|
|
1043
1043
|
delete response.Message;
|
|
1044
|
-
return [2
|
|
1044
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
1047
|
}); };
|
|
@@ -1051,15 +1051,15 @@ export var deserializeAws_json1_1DeleteEvaluationCommand = function (output, con
|
|
|
1051
1051
|
switch (_a.label) {
|
|
1052
1052
|
case 0:
|
|
1053
1053
|
if (output.statusCode >= 300) {
|
|
1054
|
-
return [2
|
|
1054
|
+
return [2, deserializeAws_json1_1DeleteEvaluationCommandError(output, context)];
|
|
1055
1055
|
}
|
|
1056
|
-
return [4
|
|
1056
|
+
return [4, parseBody(output.body, context)];
|
|
1057
1057
|
case 1:
|
|
1058
1058
|
data = _a.sent();
|
|
1059
1059
|
contents = {};
|
|
1060
1060
|
contents = deserializeAws_json1_1DeleteEvaluationOutput(data, context);
|
|
1061
1061
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1062
|
-
return [2
|
|
1062
|
+
return [2, Promise.resolve(response)];
|
|
1063
1063
|
}
|
|
1064
1064
|
});
|
|
1065
1065
|
}); };
|
|
@@ -1071,39 +1071,39 @@ var deserializeAws_json1_1DeleteEvaluationCommandError = function (output, conte
|
|
|
1071
1071
|
case 0:
|
|
1072
1072
|
_a = [__assign({}, output)];
|
|
1073
1073
|
_f = {};
|
|
1074
|
-
return [4
|
|
1074
|
+
return [4, parseBody(output.body, context)];
|
|
1075
1075
|
case 1:
|
|
1076
1076
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1077
1077
|
errorCode = "UnknownError";
|
|
1078
1078
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
_b = errorCode;
|
|
1080
1080
|
switch (_b) {
|
|
1081
|
-
case "InternalServerException": return [3
|
|
1082
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1083
|
-
case "InvalidInputException": return [3
|
|
1084
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1085
|
-
case "ResourceNotFoundException": return [3
|
|
1086
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1081
|
+
case "InternalServerException": return [3, 2];
|
|
1082
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1083
|
+
case "InvalidInputException": return [3, 4];
|
|
1084
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1085
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1086
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1087
1087
|
}
|
|
1088
|
-
return [3
|
|
1088
|
+
return [3, 8];
|
|
1089
1089
|
case 2:
|
|
1090
1090
|
_c = [{}];
|
|
1091
|
-
return [4
|
|
1091
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1092
1092
|
case 3:
|
|
1093
1093
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1094
|
-
return [3
|
|
1094
|
+
return [3, 9];
|
|
1095
1095
|
case 4:
|
|
1096
1096
|
_d = [{}];
|
|
1097
|
-
return [4
|
|
1097
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1098
1098
|
case 5:
|
|
1099
1099
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1100
|
-
return [3
|
|
1100
|
+
return [3, 9];
|
|
1101
1101
|
case 6:
|
|
1102
1102
|
_e = [{}];
|
|
1103
|
-
return [4
|
|
1103
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1104
1104
|
case 7:
|
|
1105
1105
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1106
|
-
return [3
|
|
1106
|
+
return [3, 9];
|
|
1107
1107
|
case 8:
|
|
1108
1108
|
parsedBody = parsedOutput.body;
|
|
1109
1109
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1113,7 +1113,7 @@ var deserializeAws_json1_1DeleteEvaluationCommandError = function (output, conte
|
|
|
1113
1113
|
message = response.message || response.Message || errorCode;
|
|
1114
1114
|
response.message = message;
|
|
1115
1115
|
delete response.Message;
|
|
1116
|
-
return [2
|
|
1116
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
1119
1119
|
}); };
|
|
@@ -1123,15 +1123,15 @@ export var deserializeAws_json1_1DeleteMLModelCommand = function (output, contex
|
|
|
1123
1123
|
switch (_a.label) {
|
|
1124
1124
|
case 0:
|
|
1125
1125
|
if (output.statusCode >= 300) {
|
|
1126
|
-
return [2
|
|
1126
|
+
return [2, deserializeAws_json1_1DeleteMLModelCommandError(output, context)];
|
|
1127
1127
|
}
|
|
1128
|
-
return [4
|
|
1128
|
+
return [4, parseBody(output.body, context)];
|
|
1129
1129
|
case 1:
|
|
1130
1130
|
data = _a.sent();
|
|
1131
1131
|
contents = {};
|
|
1132
1132
|
contents = deserializeAws_json1_1DeleteMLModelOutput(data, context);
|
|
1133
1133
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1134
|
-
return [2
|
|
1134
|
+
return [2, Promise.resolve(response)];
|
|
1135
1135
|
}
|
|
1136
1136
|
});
|
|
1137
1137
|
}); };
|
|
@@ -1143,39 +1143,39 @@ var deserializeAws_json1_1DeleteMLModelCommandError = function (output, context)
|
|
|
1143
1143
|
case 0:
|
|
1144
1144
|
_a = [__assign({}, output)];
|
|
1145
1145
|
_f = {};
|
|
1146
|
-
return [4
|
|
1146
|
+
return [4, parseBody(output.body, context)];
|
|
1147
1147
|
case 1:
|
|
1148
1148
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1149
1149
|
errorCode = "UnknownError";
|
|
1150
1150
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1151
|
_b = errorCode;
|
|
1152
1152
|
switch (_b) {
|
|
1153
|
-
case "InternalServerException": return [3
|
|
1154
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1155
|
-
case "InvalidInputException": return [3
|
|
1156
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1157
|
-
case "ResourceNotFoundException": return [3
|
|
1158
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1153
|
+
case "InternalServerException": return [3, 2];
|
|
1154
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1155
|
+
case "InvalidInputException": return [3, 4];
|
|
1156
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1157
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1158
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1159
1159
|
}
|
|
1160
|
-
return [3
|
|
1160
|
+
return [3, 8];
|
|
1161
1161
|
case 2:
|
|
1162
1162
|
_c = [{}];
|
|
1163
|
-
return [4
|
|
1163
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1164
1164
|
case 3:
|
|
1165
1165
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1166
|
-
return [3
|
|
1166
|
+
return [3, 9];
|
|
1167
1167
|
case 4:
|
|
1168
1168
|
_d = [{}];
|
|
1169
|
-
return [4
|
|
1169
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1170
1170
|
case 5:
|
|
1171
1171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1172
|
-
return [3
|
|
1172
|
+
return [3, 9];
|
|
1173
1173
|
case 6:
|
|
1174
1174
|
_e = [{}];
|
|
1175
|
-
return [4
|
|
1175
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1176
1176
|
case 7:
|
|
1177
1177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1178
|
-
return [3
|
|
1178
|
+
return [3, 9];
|
|
1179
1179
|
case 8:
|
|
1180
1180
|
parsedBody = parsedOutput.body;
|
|
1181
1181
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1185,7 +1185,7 @@ var deserializeAws_json1_1DeleteMLModelCommandError = function (output, context)
|
|
|
1185
1185
|
message = response.message || response.Message || errorCode;
|
|
1186
1186
|
response.message = message;
|
|
1187
1187
|
delete response.Message;
|
|
1188
|
-
return [2
|
|
1188
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1189
1189
|
}
|
|
1190
1190
|
});
|
|
1191
1191
|
}); };
|
|
@@ -1195,15 +1195,15 @@ export var deserializeAws_json1_1DeleteRealtimeEndpointCommand = function (outpu
|
|
|
1195
1195
|
switch (_a.label) {
|
|
1196
1196
|
case 0:
|
|
1197
1197
|
if (output.statusCode >= 300) {
|
|
1198
|
-
return [2
|
|
1198
|
+
return [2, deserializeAws_json1_1DeleteRealtimeEndpointCommandError(output, context)];
|
|
1199
1199
|
}
|
|
1200
|
-
return [4
|
|
1200
|
+
return [4, parseBody(output.body, context)];
|
|
1201
1201
|
case 1:
|
|
1202
1202
|
data = _a.sent();
|
|
1203
1203
|
contents = {};
|
|
1204
1204
|
contents = deserializeAws_json1_1DeleteRealtimeEndpointOutput(data, context);
|
|
1205
1205
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1206
|
-
return [2
|
|
1206
|
+
return [2, Promise.resolve(response)];
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
1209
|
}); };
|
|
@@ -1215,39 +1215,39 @@ var deserializeAws_json1_1DeleteRealtimeEndpointCommandError = function (output,
|
|
|
1215
1215
|
case 0:
|
|
1216
1216
|
_a = [__assign({}, output)];
|
|
1217
1217
|
_f = {};
|
|
1218
|
-
return [4
|
|
1218
|
+
return [4, parseBody(output.body, context)];
|
|
1219
1219
|
case 1:
|
|
1220
1220
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1221
1221
|
errorCode = "UnknownError";
|
|
1222
1222
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1223
1223
|
_b = errorCode;
|
|
1224
1224
|
switch (_b) {
|
|
1225
|
-
case "InternalServerException": return [3
|
|
1226
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1227
|
-
case "InvalidInputException": return [3
|
|
1228
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1229
|
-
case "ResourceNotFoundException": return [3
|
|
1230
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1225
|
+
case "InternalServerException": return [3, 2];
|
|
1226
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1227
|
+
case "InvalidInputException": return [3, 4];
|
|
1228
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1229
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1230
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1231
1231
|
}
|
|
1232
|
-
return [3
|
|
1232
|
+
return [3, 8];
|
|
1233
1233
|
case 2:
|
|
1234
1234
|
_c = [{}];
|
|
1235
|
-
return [4
|
|
1235
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1236
1236
|
case 3:
|
|
1237
1237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1238
|
-
return [3
|
|
1238
|
+
return [3, 9];
|
|
1239
1239
|
case 4:
|
|
1240
1240
|
_d = [{}];
|
|
1241
|
-
return [4
|
|
1241
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1242
1242
|
case 5:
|
|
1243
1243
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1244
|
-
return [3
|
|
1244
|
+
return [3, 9];
|
|
1245
1245
|
case 6:
|
|
1246
1246
|
_e = [{}];
|
|
1247
|
-
return [4
|
|
1247
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1248
1248
|
case 7:
|
|
1249
1249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1250
|
-
return [3
|
|
1250
|
+
return [3, 9];
|
|
1251
1251
|
case 8:
|
|
1252
1252
|
parsedBody = parsedOutput.body;
|
|
1253
1253
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1257,7 +1257,7 @@ var deserializeAws_json1_1DeleteRealtimeEndpointCommandError = function (output,
|
|
|
1257
1257
|
message = response.message || response.Message || errorCode;
|
|
1258
1258
|
response.message = message;
|
|
1259
1259
|
delete response.Message;
|
|
1260
|
-
return [2
|
|
1260
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1261
1261
|
}
|
|
1262
1262
|
});
|
|
1263
1263
|
}); };
|
|
@@ -1267,15 +1267,15 @@ export var deserializeAws_json1_1DeleteTagsCommand = function (output, context)
|
|
|
1267
1267
|
switch (_a.label) {
|
|
1268
1268
|
case 0:
|
|
1269
1269
|
if (output.statusCode >= 300) {
|
|
1270
|
-
return [2
|
|
1270
|
+
return [2, deserializeAws_json1_1DeleteTagsCommandError(output, context)];
|
|
1271
1271
|
}
|
|
1272
|
-
return [4
|
|
1272
|
+
return [4, parseBody(output.body, context)];
|
|
1273
1273
|
case 1:
|
|
1274
1274
|
data = _a.sent();
|
|
1275
1275
|
contents = {};
|
|
1276
1276
|
contents = deserializeAws_json1_1DeleteTagsOutput(data, context);
|
|
1277
1277
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1278
|
-
return [2
|
|
1278
|
+
return [2, Promise.resolve(response)];
|
|
1279
1279
|
}
|
|
1280
1280
|
});
|
|
1281
1281
|
}); };
|
|
@@ -1287,47 +1287,47 @@ var deserializeAws_json1_1DeleteTagsCommandError = function (output, context) {
|
|
|
1287
1287
|
case 0:
|
|
1288
1288
|
_a = [__assign({}, output)];
|
|
1289
1289
|
_g = {};
|
|
1290
|
-
return [4
|
|
1290
|
+
return [4, parseBody(output.body, context)];
|
|
1291
1291
|
case 1:
|
|
1292
1292
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1293
1293
|
errorCode = "UnknownError";
|
|
1294
1294
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
1295
|
_b = errorCode;
|
|
1296
1296
|
switch (_b) {
|
|
1297
|
-
case "InternalServerException": return [3
|
|
1298
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1299
|
-
case "InvalidInputException": return [3
|
|
1300
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1301
|
-
case "InvalidTagException": return [3
|
|
1302
|
-
case "com.amazonaws.machinelearning#InvalidTagException": return [3
|
|
1303
|
-
case "ResourceNotFoundException": return [3
|
|
1304
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1297
|
+
case "InternalServerException": return [3, 2];
|
|
1298
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1299
|
+
case "InvalidInputException": return [3, 4];
|
|
1300
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1301
|
+
case "InvalidTagException": return [3, 6];
|
|
1302
|
+
case "com.amazonaws.machinelearning#InvalidTagException": return [3, 6];
|
|
1303
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1304
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 8];
|
|
1305
1305
|
}
|
|
1306
|
-
return [3
|
|
1306
|
+
return [3, 10];
|
|
1307
1307
|
case 2:
|
|
1308
1308
|
_c = [{}];
|
|
1309
|
-
return [4
|
|
1309
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1310
1310
|
case 3:
|
|
1311
1311
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1312
|
-
return [3
|
|
1312
|
+
return [3, 11];
|
|
1313
1313
|
case 4:
|
|
1314
1314
|
_d = [{}];
|
|
1315
|
-
return [4
|
|
1315
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1316
1316
|
case 5:
|
|
1317
1317
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1318
|
-
return [3
|
|
1318
|
+
return [3, 11];
|
|
1319
1319
|
case 6:
|
|
1320
1320
|
_e = [{}];
|
|
1321
|
-
return [4
|
|
1321
|
+
return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
1322
1322
|
case 7:
|
|
1323
1323
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1324
|
-
return [3
|
|
1324
|
+
return [3, 11];
|
|
1325
1325
|
case 8:
|
|
1326
1326
|
_f = [{}];
|
|
1327
|
-
return [4
|
|
1327
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1328
1328
|
case 9:
|
|
1329
1329
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1330
|
-
return [3
|
|
1330
|
+
return [3, 11];
|
|
1331
1331
|
case 10:
|
|
1332
1332
|
parsedBody = parsedOutput.body;
|
|
1333
1333
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1337,7 +1337,7 @@ var deserializeAws_json1_1DeleteTagsCommandError = function (output, context) {
|
|
|
1337
1337
|
message = response.message || response.Message || errorCode;
|
|
1338
1338
|
response.message = message;
|
|
1339
1339
|
delete response.Message;
|
|
1340
|
-
return [2
|
|
1340
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1341
1341
|
}
|
|
1342
1342
|
});
|
|
1343
1343
|
}); };
|
|
@@ -1347,15 +1347,15 @@ export var deserializeAws_json1_1DescribeBatchPredictionsCommand = function (out
|
|
|
1347
1347
|
switch (_a.label) {
|
|
1348
1348
|
case 0:
|
|
1349
1349
|
if (output.statusCode >= 300) {
|
|
1350
|
-
return [2
|
|
1350
|
+
return [2, deserializeAws_json1_1DescribeBatchPredictionsCommandError(output, context)];
|
|
1351
1351
|
}
|
|
1352
|
-
return [4
|
|
1352
|
+
return [4, parseBody(output.body, context)];
|
|
1353
1353
|
case 1:
|
|
1354
1354
|
data = _a.sent();
|
|
1355
1355
|
contents = {};
|
|
1356
1356
|
contents = deserializeAws_json1_1DescribeBatchPredictionsOutput(data, context);
|
|
1357
1357
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1358
|
-
return [2
|
|
1358
|
+
return [2, Promise.resolve(response)];
|
|
1359
1359
|
}
|
|
1360
1360
|
});
|
|
1361
1361
|
}); };
|
|
@@ -1367,31 +1367,31 @@ var deserializeAws_json1_1DescribeBatchPredictionsCommandError = function (outpu
|
|
|
1367
1367
|
case 0:
|
|
1368
1368
|
_a = [__assign({}, output)];
|
|
1369
1369
|
_e = {};
|
|
1370
|
-
return [4
|
|
1370
|
+
return [4, parseBody(output.body, context)];
|
|
1371
1371
|
case 1:
|
|
1372
1372
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1373
1373
|
errorCode = "UnknownError";
|
|
1374
1374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
1375
|
_b = errorCode;
|
|
1376
1376
|
switch (_b) {
|
|
1377
|
-
case "InternalServerException": return [3
|
|
1378
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1379
|
-
case "InvalidInputException": return [3
|
|
1380
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1377
|
+
case "InternalServerException": return [3, 2];
|
|
1378
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1379
|
+
case "InvalidInputException": return [3, 4];
|
|
1380
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1381
1381
|
}
|
|
1382
|
-
return [3
|
|
1382
|
+
return [3, 6];
|
|
1383
1383
|
case 2:
|
|
1384
1384
|
_c = [{}];
|
|
1385
|
-
return [4
|
|
1385
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1386
1386
|
case 3:
|
|
1387
1387
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1388
|
-
return [3
|
|
1388
|
+
return [3, 7];
|
|
1389
1389
|
case 4:
|
|
1390
1390
|
_d = [{}];
|
|
1391
|
-
return [4
|
|
1391
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1392
1392
|
case 5:
|
|
1393
1393
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1394
|
-
return [3
|
|
1394
|
+
return [3, 7];
|
|
1395
1395
|
case 6:
|
|
1396
1396
|
parsedBody = parsedOutput.body;
|
|
1397
1397
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1401,7 +1401,7 @@ var deserializeAws_json1_1DescribeBatchPredictionsCommandError = function (outpu
|
|
|
1401
1401
|
message = response.message || response.Message || errorCode;
|
|
1402
1402
|
response.message = message;
|
|
1403
1403
|
delete response.Message;
|
|
1404
|
-
return [2
|
|
1404
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1405
1405
|
}
|
|
1406
1406
|
});
|
|
1407
1407
|
}); };
|
|
@@ -1411,15 +1411,15 @@ export var deserializeAws_json1_1DescribeDataSourcesCommand = function (output,
|
|
|
1411
1411
|
switch (_a.label) {
|
|
1412
1412
|
case 0:
|
|
1413
1413
|
if (output.statusCode >= 300) {
|
|
1414
|
-
return [2
|
|
1414
|
+
return [2, deserializeAws_json1_1DescribeDataSourcesCommandError(output, context)];
|
|
1415
1415
|
}
|
|
1416
|
-
return [4
|
|
1416
|
+
return [4, parseBody(output.body, context)];
|
|
1417
1417
|
case 1:
|
|
1418
1418
|
data = _a.sent();
|
|
1419
1419
|
contents = {};
|
|
1420
1420
|
contents = deserializeAws_json1_1DescribeDataSourcesOutput(data, context);
|
|
1421
1421
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1422
|
-
return [2
|
|
1422
|
+
return [2, Promise.resolve(response)];
|
|
1423
1423
|
}
|
|
1424
1424
|
});
|
|
1425
1425
|
}); };
|
|
@@ -1431,31 +1431,31 @@ var deserializeAws_json1_1DescribeDataSourcesCommandError = function (output, co
|
|
|
1431
1431
|
case 0:
|
|
1432
1432
|
_a = [__assign({}, output)];
|
|
1433
1433
|
_e = {};
|
|
1434
|
-
return [4
|
|
1434
|
+
return [4, parseBody(output.body, context)];
|
|
1435
1435
|
case 1:
|
|
1436
1436
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1437
1437
|
errorCode = "UnknownError";
|
|
1438
1438
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1439
1439
|
_b = errorCode;
|
|
1440
1440
|
switch (_b) {
|
|
1441
|
-
case "InternalServerException": return [3
|
|
1442
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1443
|
-
case "InvalidInputException": return [3
|
|
1444
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1441
|
+
case "InternalServerException": return [3, 2];
|
|
1442
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1443
|
+
case "InvalidInputException": return [3, 4];
|
|
1444
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1445
1445
|
}
|
|
1446
|
-
return [3
|
|
1446
|
+
return [3, 6];
|
|
1447
1447
|
case 2:
|
|
1448
1448
|
_c = [{}];
|
|
1449
|
-
return [4
|
|
1449
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1450
1450
|
case 3:
|
|
1451
1451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1452
|
-
return [3
|
|
1452
|
+
return [3, 7];
|
|
1453
1453
|
case 4:
|
|
1454
1454
|
_d = [{}];
|
|
1455
|
-
return [4
|
|
1455
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1456
1456
|
case 5:
|
|
1457
1457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1458
|
-
return [3
|
|
1458
|
+
return [3, 7];
|
|
1459
1459
|
case 6:
|
|
1460
1460
|
parsedBody = parsedOutput.body;
|
|
1461
1461
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1465,7 +1465,7 @@ var deserializeAws_json1_1DescribeDataSourcesCommandError = function (output, co
|
|
|
1465
1465
|
message = response.message || response.Message || errorCode;
|
|
1466
1466
|
response.message = message;
|
|
1467
1467
|
delete response.Message;
|
|
1468
|
-
return [2
|
|
1468
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
1471
|
}); };
|
|
@@ -1475,15 +1475,15 @@ export var deserializeAws_json1_1DescribeEvaluationsCommand = function (output,
|
|
|
1475
1475
|
switch (_a.label) {
|
|
1476
1476
|
case 0:
|
|
1477
1477
|
if (output.statusCode >= 300) {
|
|
1478
|
-
return [2
|
|
1478
|
+
return [2, deserializeAws_json1_1DescribeEvaluationsCommandError(output, context)];
|
|
1479
1479
|
}
|
|
1480
|
-
return [4
|
|
1480
|
+
return [4, parseBody(output.body, context)];
|
|
1481
1481
|
case 1:
|
|
1482
1482
|
data = _a.sent();
|
|
1483
1483
|
contents = {};
|
|
1484
1484
|
contents = deserializeAws_json1_1DescribeEvaluationsOutput(data, context);
|
|
1485
1485
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1486
|
-
return [2
|
|
1486
|
+
return [2, Promise.resolve(response)];
|
|
1487
1487
|
}
|
|
1488
1488
|
});
|
|
1489
1489
|
}); };
|
|
@@ -1495,31 +1495,31 @@ var deserializeAws_json1_1DescribeEvaluationsCommandError = function (output, co
|
|
|
1495
1495
|
case 0:
|
|
1496
1496
|
_a = [__assign({}, output)];
|
|
1497
1497
|
_e = {};
|
|
1498
|
-
return [4
|
|
1498
|
+
return [4, parseBody(output.body, context)];
|
|
1499
1499
|
case 1:
|
|
1500
1500
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1501
1501
|
errorCode = "UnknownError";
|
|
1502
1502
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
1503
|
_b = errorCode;
|
|
1504
1504
|
switch (_b) {
|
|
1505
|
-
case "InternalServerException": return [3
|
|
1506
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1507
|
-
case "InvalidInputException": return [3
|
|
1508
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1505
|
+
case "InternalServerException": return [3, 2];
|
|
1506
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1507
|
+
case "InvalidInputException": return [3, 4];
|
|
1508
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1509
1509
|
}
|
|
1510
|
-
return [3
|
|
1510
|
+
return [3, 6];
|
|
1511
1511
|
case 2:
|
|
1512
1512
|
_c = [{}];
|
|
1513
|
-
return [4
|
|
1513
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1514
1514
|
case 3:
|
|
1515
1515
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1516
|
-
return [3
|
|
1516
|
+
return [3, 7];
|
|
1517
1517
|
case 4:
|
|
1518
1518
|
_d = [{}];
|
|
1519
|
-
return [4
|
|
1519
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1520
1520
|
case 5:
|
|
1521
1521
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1522
|
-
return [3
|
|
1522
|
+
return [3, 7];
|
|
1523
1523
|
case 6:
|
|
1524
1524
|
parsedBody = parsedOutput.body;
|
|
1525
1525
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1529,7 +1529,7 @@ var deserializeAws_json1_1DescribeEvaluationsCommandError = function (output, co
|
|
|
1529
1529
|
message = response.message || response.Message || errorCode;
|
|
1530
1530
|
response.message = message;
|
|
1531
1531
|
delete response.Message;
|
|
1532
|
-
return [2
|
|
1532
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1533
1533
|
}
|
|
1534
1534
|
});
|
|
1535
1535
|
}); };
|
|
@@ -1539,15 +1539,15 @@ export var deserializeAws_json1_1DescribeMLModelsCommand = function (output, con
|
|
|
1539
1539
|
switch (_a.label) {
|
|
1540
1540
|
case 0:
|
|
1541
1541
|
if (output.statusCode >= 300) {
|
|
1542
|
-
return [2
|
|
1542
|
+
return [2, deserializeAws_json1_1DescribeMLModelsCommandError(output, context)];
|
|
1543
1543
|
}
|
|
1544
|
-
return [4
|
|
1544
|
+
return [4, parseBody(output.body, context)];
|
|
1545
1545
|
case 1:
|
|
1546
1546
|
data = _a.sent();
|
|
1547
1547
|
contents = {};
|
|
1548
1548
|
contents = deserializeAws_json1_1DescribeMLModelsOutput(data, context);
|
|
1549
1549
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1550
|
-
return [2
|
|
1550
|
+
return [2, Promise.resolve(response)];
|
|
1551
1551
|
}
|
|
1552
1552
|
});
|
|
1553
1553
|
}); };
|
|
@@ -1559,31 +1559,31 @@ var deserializeAws_json1_1DescribeMLModelsCommandError = function (output, conte
|
|
|
1559
1559
|
case 0:
|
|
1560
1560
|
_a = [__assign({}, output)];
|
|
1561
1561
|
_e = {};
|
|
1562
|
-
return [4
|
|
1562
|
+
return [4, parseBody(output.body, context)];
|
|
1563
1563
|
case 1:
|
|
1564
1564
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1565
1565
|
errorCode = "UnknownError";
|
|
1566
1566
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1567
|
_b = errorCode;
|
|
1568
1568
|
switch (_b) {
|
|
1569
|
-
case "InternalServerException": return [3
|
|
1570
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1571
|
-
case "InvalidInputException": return [3
|
|
1572
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1569
|
+
case "InternalServerException": return [3, 2];
|
|
1570
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1571
|
+
case "InvalidInputException": return [3, 4];
|
|
1572
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1573
1573
|
}
|
|
1574
|
-
return [3
|
|
1574
|
+
return [3, 6];
|
|
1575
1575
|
case 2:
|
|
1576
1576
|
_c = [{}];
|
|
1577
|
-
return [4
|
|
1577
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1578
1578
|
case 3:
|
|
1579
1579
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1580
|
-
return [3
|
|
1580
|
+
return [3, 7];
|
|
1581
1581
|
case 4:
|
|
1582
1582
|
_d = [{}];
|
|
1583
|
-
return [4
|
|
1583
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1584
1584
|
case 5:
|
|
1585
1585
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1586
|
-
return [3
|
|
1586
|
+
return [3, 7];
|
|
1587
1587
|
case 6:
|
|
1588
1588
|
parsedBody = parsedOutput.body;
|
|
1589
1589
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1593,7 +1593,7 @@ var deserializeAws_json1_1DescribeMLModelsCommandError = function (output, conte
|
|
|
1593
1593
|
message = response.message || response.Message || errorCode;
|
|
1594
1594
|
response.message = message;
|
|
1595
1595
|
delete response.Message;
|
|
1596
|
-
return [2
|
|
1596
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1597
1597
|
}
|
|
1598
1598
|
});
|
|
1599
1599
|
}); };
|
|
@@ -1603,15 +1603,15 @@ export var deserializeAws_json1_1DescribeTagsCommand = function (output, context
|
|
|
1603
1603
|
switch (_a.label) {
|
|
1604
1604
|
case 0:
|
|
1605
1605
|
if (output.statusCode >= 300) {
|
|
1606
|
-
return [2
|
|
1606
|
+
return [2, deserializeAws_json1_1DescribeTagsCommandError(output, context)];
|
|
1607
1607
|
}
|
|
1608
|
-
return [4
|
|
1608
|
+
return [4, parseBody(output.body, context)];
|
|
1609
1609
|
case 1:
|
|
1610
1610
|
data = _a.sent();
|
|
1611
1611
|
contents = {};
|
|
1612
1612
|
contents = deserializeAws_json1_1DescribeTagsOutput(data, context);
|
|
1613
1613
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1614
|
-
return [2
|
|
1614
|
+
return [2, Promise.resolve(response)];
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
1617
1617
|
}); };
|
|
@@ -1623,39 +1623,39 @@ var deserializeAws_json1_1DescribeTagsCommandError = function (output, context)
|
|
|
1623
1623
|
case 0:
|
|
1624
1624
|
_a = [__assign({}, output)];
|
|
1625
1625
|
_f = {};
|
|
1626
|
-
return [4
|
|
1626
|
+
return [4, parseBody(output.body, context)];
|
|
1627
1627
|
case 1:
|
|
1628
1628
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1629
1629
|
errorCode = "UnknownError";
|
|
1630
1630
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
1631
|
_b = errorCode;
|
|
1632
1632
|
switch (_b) {
|
|
1633
|
-
case "InternalServerException": return [3
|
|
1634
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1635
|
-
case "InvalidInputException": return [3
|
|
1636
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1637
|
-
case "ResourceNotFoundException": return [3
|
|
1638
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1633
|
+
case "InternalServerException": return [3, 2];
|
|
1634
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1635
|
+
case "InvalidInputException": return [3, 4];
|
|
1636
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1637
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1638
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1639
1639
|
}
|
|
1640
|
-
return [3
|
|
1640
|
+
return [3, 8];
|
|
1641
1641
|
case 2:
|
|
1642
1642
|
_c = [{}];
|
|
1643
|
-
return [4
|
|
1643
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1644
1644
|
case 3:
|
|
1645
1645
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1646
|
-
return [3
|
|
1646
|
+
return [3, 9];
|
|
1647
1647
|
case 4:
|
|
1648
1648
|
_d = [{}];
|
|
1649
|
-
return [4
|
|
1649
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1650
1650
|
case 5:
|
|
1651
1651
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1652
|
-
return [3
|
|
1652
|
+
return [3, 9];
|
|
1653
1653
|
case 6:
|
|
1654
1654
|
_e = [{}];
|
|
1655
|
-
return [4
|
|
1655
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1656
1656
|
case 7:
|
|
1657
1657
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1658
|
-
return [3
|
|
1658
|
+
return [3, 9];
|
|
1659
1659
|
case 8:
|
|
1660
1660
|
parsedBody = parsedOutput.body;
|
|
1661
1661
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1665,7 +1665,7 @@ var deserializeAws_json1_1DescribeTagsCommandError = function (output, context)
|
|
|
1665
1665
|
message = response.message || response.Message || errorCode;
|
|
1666
1666
|
response.message = message;
|
|
1667
1667
|
delete response.Message;
|
|
1668
|
-
return [2
|
|
1668
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
}); };
|
|
@@ -1675,15 +1675,15 @@ export var deserializeAws_json1_1GetBatchPredictionCommand = function (output, c
|
|
|
1675
1675
|
switch (_a.label) {
|
|
1676
1676
|
case 0:
|
|
1677
1677
|
if (output.statusCode >= 300) {
|
|
1678
|
-
return [2
|
|
1678
|
+
return [2, deserializeAws_json1_1GetBatchPredictionCommandError(output, context)];
|
|
1679
1679
|
}
|
|
1680
|
-
return [4
|
|
1680
|
+
return [4, parseBody(output.body, context)];
|
|
1681
1681
|
case 1:
|
|
1682
1682
|
data = _a.sent();
|
|
1683
1683
|
contents = {};
|
|
1684
1684
|
contents = deserializeAws_json1_1GetBatchPredictionOutput(data, context);
|
|
1685
1685
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1686
|
-
return [2
|
|
1686
|
+
return [2, Promise.resolve(response)];
|
|
1687
1687
|
}
|
|
1688
1688
|
});
|
|
1689
1689
|
}); };
|
|
@@ -1695,39 +1695,39 @@ var deserializeAws_json1_1GetBatchPredictionCommandError = function (output, con
|
|
|
1695
1695
|
case 0:
|
|
1696
1696
|
_a = [__assign({}, output)];
|
|
1697
1697
|
_f = {};
|
|
1698
|
-
return [4
|
|
1698
|
+
return [4, parseBody(output.body, context)];
|
|
1699
1699
|
case 1:
|
|
1700
1700
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1701
1701
|
errorCode = "UnknownError";
|
|
1702
1702
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
1703
|
_b = errorCode;
|
|
1704
1704
|
switch (_b) {
|
|
1705
|
-
case "InternalServerException": return [3
|
|
1706
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1707
|
-
case "InvalidInputException": return [3
|
|
1708
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1709
|
-
case "ResourceNotFoundException": return [3
|
|
1710
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1705
|
+
case "InternalServerException": return [3, 2];
|
|
1706
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1707
|
+
case "InvalidInputException": return [3, 4];
|
|
1708
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1709
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1710
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1711
1711
|
}
|
|
1712
|
-
return [3
|
|
1712
|
+
return [3, 8];
|
|
1713
1713
|
case 2:
|
|
1714
1714
|
_c = [{}];
|
|
1715
|
-
return [4
|
|
1715
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1716
1716
|
case 3:
|
|
1717
1717
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1718
|
-
return [3
|
|
1718
|
+
return [3, 9];
|
|
1719
1719
|
case 4:
|
|
1720
1720
|
_d = [{}];
|
|
1721
|
-
return [4
|
|
1721
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1722
1722
|
case 5:
|
|
1723
1723
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1724
|
-
return [3
|
|
1724
|
+
return [3, 9];
|
|
1725
1725
|
case 6:
|
|
1726
1726
|
_e = [{}];
|
|
1727
|
-
return [4
|
|
1727
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1728
1728
|
case 7:
|
|
1729
1729
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1730
|
-
return [3
|
|
1730
|
+
return [3, 9];
|
|
1731
1731
|
case 8:
|
|
1732
1732
|
parsedBody = parsedOutput.body;
|
|
1733
1733
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1737,7 +1737,7 @@ var deserializeAws_json1_1GetBatchPredictionCommandError = function (output, con
|
|
|
1737
1737
|
message = response.message || response.Message || errorCode;
|
|
1738
1738
|
response.message = message;
|
|
1739
1739
|
delete response.Message;
|
|
1740
|
-
return [2
|
|
1740
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
1743
|
}); };
|
|
@@ -1747,15 +1747,15 @@ export var deserializeAws_json1_1GetDataSourceCommand = function (output, contex
|
|
|
1747
1747
|
switch (_a.label) {
|
|
1748
1748
|
case 0:
|
|
1749
1749
|
if (output.statusCode >= 300) {
|
|
1750
|
-
return [2
|
|
1750
|
+
return [2, deserializeAws_json1_1GetDataSourceCommandError(output, context)];
|
|
1751
1751
|
}
|
|
1752
|
-
return [4
|
|
1752
|
+
return [4, parseBody(output.body, context)];
|
|
1753
1753
|
case 1:
|
|
1754
1754
|
data = _a.sent();
|
|
1755
1755
|
contents = {};
|
|
1756
1756
|
contents = deserializeAws_json1_1GetDataSourceOutput(data, context);
|
|
1757
1757
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1758
|
-
return [2
|
|
1758
|
+
return [2, Promise.resolve(response)];
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
1761
|
}); };
|
|
@@ -1767,39 +1767,39 @@ var deserializeAws_json1_1GetDataSourceCommandError = function (output, context)
|
|
|
1767
1767
|
case 0:
|
|
1768
1768
|
_a = [__assign({}, output)];
|
|
1769
1769
|
_f = {};
|
|
1770
|
-
return [4
|
|
1770
|
+
return [4, parseBody(output.body, context)];
|
|
1771
1771
|
case 1:
|
|
1772
1772
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1773
1773
|
errorCode = "UnknownError";
|
|
1774
1774
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
1775
|
_b = errorCode;
|
|
1776
1776
|
switch (_b) {
|
|
1777
|
-
case "InternalServerException": return [3
|
|
1778
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1779
|
-
case "InvalidInputException": return [3
|
|
1780
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1781
|
-
case "ResourceNotFoundException": return [3
|
|
1782
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1777
|
+
case "InternalServerException": return [3, 2];
|
|
1778
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1779
|
+
case "InvalidInputException": return [3, 4];
|
|
1780
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1781
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1782
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1783
1783
|
}
|
|
1784
|
-
return [3
|
|
1784
|
+
return [3, 8];
|
|
1785
1785
|
case 2:
|
|
1786
1786
|
_c = [{}];
|
|
1787
|
-
return [4
|
|
1787
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1788
1788
|
case 3:
|
|
1789
1789
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1790
|
-
return [3
|
|
1790
|
+
return [3, 9];
|
|
1791
1791
|
case 4:
|
|
1792
1792
|
_d = [{}];
|
|
1793
|
-
return [4
|
|
1793
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1794
1794
|
case 5:
|
|
1795
1795
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1796
|
-
return [3
|
|
1796
|
+
return [3, 9];
|
|
1797
1797
|
case 6:
|
|
1798
1798
|
_e = [{}];
|
|
1799
|
-
return [4
|
|
1799
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1800
1800
|
case 7:
|
|
1801
1801
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1802
|
-
return [3
|
|
1802
|
+
return [3, 9];
|
|
1803
1803
|
case 8:
|
|
1804
1804
|
parsedBody = parsedOutput.body;
|
|
1805
1805
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1809,7 +1809,7 @@ var deserializeAws_json1_1GetDataSourceCommandError = function (output, context)
|
|
|
1809
1809
|
message = response.message || response.Message || errorCode;
|
|
1810
1810
|
response.message = message;
|
|
1811
1811
|
delete response.Message;
|
|
1812
|
-
return [2
|
|
1812
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1813
1813
|
}
|
|
1814
1814
|
});
|
|
1815
1815
|
}); };
|
|
@@ -1819,15 +1819,15 @@ export var deserializeAws_json1_1GetEvaluationCommand = function (output, contex
|
|
|
1819
1819
|
switch (_a.label) {
|
|
1820
1820
|
case 0:
|
|
1821
1821
|
if (output.statusCode >= 300) {
|
|
1822
|
-
return [2
|
|
1822
|
+
return [2, deserializeAws_json1_1GetEvaluationCommandError(output, context)];
|
|
1823
1823
|
}
|
|
1824
|
-
return [4
|
|
1824
|
+
return [4, parseBody(output.body, context)];
|
|
1825
1825
|
case 1:
|
|
1826
1826
|
data = _a.sent();
|
|
1827
1827
|
contents = {};
|
|
1828
1828
|
contents = deserializeAws_json1_1GetEvaluationOutput(data, context);
|
|
1829
1829
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1830
|
-
return [2
|
|
1830
|
+
return [2, Promise.resolve(response)];
|
|
1831
1831
|
}
|
|
1832
1832
|
});
|
|
1833
1833
|
}); };
|
|
@@ -1839,39 +1839,39 @@ var deserializeAws_json1_1GetEvaluationCommandError = function (output, context)
|
|
|
1839
1839
|
case 0:
|
|
1840
1840
|
_a = [__assign({}, output)];
|
|
1841
1841
|
_f = {};
|
|
1842
|
-
return [4
|
|
1842
|
+
return [4, parseBody(output.body, context)];
|
|
1843
1843
|
case 1:
|
|
1844
1844
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1845
1845
|
errorCode = "UnknownError";
|
|
1846
1846
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
1847
|
_b = errorCode;
|
|
1848
1848
|
switch (_b) {
|
|
1849
|
-
case "InternalServerException": return [3
|
|
1850
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1851
|
-
case "InvalidInputException": return [3
|
|
1852
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1853
|
-
case "ResourceNotFoundException": return [3
|
|
1854
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1849
|
+
case "InternalServerException": return [3, 2];
|
|
1850
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1851
|
+
case "InvalidInputException": return [3, 4];
|
|
1852
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1853
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1854
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1855
1855
|
}
|
|
1856
|
-
return [3
|
|
1856
|
+
return [3, 8];
|
|
1857
1857
|
case 2:
|
|
1858
1858
|
_c = [{}];
|
|
1859
|
-
return [4
|
|
1859
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1860
1860
|
case 3:
|
|
1861
1861
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1862
|
-
return [3
|
|
1862
|
+
return [3, 9];
|
|
1863
1863
|
case 4:
|
|
1864
1864
|
_d = [{}];
|
|
1865
|
-
return [4
|
|
1865
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1866
1866
|
case 5:
|
|
1867
1867
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1868
|
-
return [3
|
|
1868
|
+
return [3, 9];
|
|
1869
1869
|
case 6:
|
|
1870
1870
|
_e = [{}];
|
|
1871
|
-
return [4
|
|
1871
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1872
1872
|
case 7:
|
|
1873
1873
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1874
|
-
return [3
|
|
1874
|
+
return [3, 9];
|
|
1875
1875
|
case 8:
|
|
1876
1876
|
parsedBody = parsedOutput.body;
|
|
1877
1877
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1881,7 +1881,7 @@ var deserializeAws_json1_1GetEvaluationCommandError = function (output, context)
|
|
|
1881
1881
|
message = response.message || response.Message || errorCode;
|
|
1882
1882
|
response.message = message;
|
|
1883
1883
|
delete response.Message;
|
|
1884
|
-
return [2
|
|
1884
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1885
1885
|
}
|
|
1886
1886
|
});
|
|
1887
1887
|
}); };
|
|
@@ -1891,15 +1891,15 @@ export var deserializeAws_json1_1GetMLModelCommand = function (output, context)
|
|
|
1891
1891
|
switch (_a.label) {
|
|
1892
1892
|
case 0:
|
|
1893
1893
|
if (output.statusCode >= 300) {
|
|
1894
|
-
return [2
|
|
1894
|
+
return [2, deserializeAws_json1_1GetMLModelCommandError(output, context)];
|
|
1895
1895
|
}
|
|
1896
|
-
return [4
|
|
1896
|
+
return [4, parseBody(output.body, context)];
|
|
1897
1897
|
case 1:
|
|
1898
1898
|
data = _a.sent();
|
|
1899
1899
|
contents = {};
|
|
1900
1900
|
contents = deserializeAws_json1_1GetMLModelOutput(data, context);
|
|
1901
1901
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1902
|
-
return [2
|
|
1902
|
+
return [2, Promise.resolve(response)];
|
|
1903
1903
|
}
|
|
1904
1904
|
});
|
|
1905
1905
|
}); };
|
|
@@ -1911,39 +1911,39 @@ var deserializeAws_json1_1GetMLModelCommandError = function (output, context) {
|
|
|
1911
1911
|
case 0:
|
|
1912
1912
|
_a = [__assign({}, output)];
|
|
1913
1913
|
_f = {};
|
|
1914
|
-
return [4
|
|
1914
|
+
return [4, parseBody(output.body, context)];
|
|
1915
1915
|
case 1:
|
|
1916
1916
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1917
1917
|
errorCode = "UnknownError";
|
|
1918
1918
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
1919
|
_b = errorCode;
|
|
1920
1920
|
switch (_b) {
|
|
1921
|
-
case "InternalServerException": return [3
|
|
1922
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1923
|
-
case "InvalidInputException": return [3
|
|
1924
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1925
|
-
case "ResourceNotFoundException": return [3
|
|
1926
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1921
|
+
case "InternalServerException": return [3, 2];
|
|
1922
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1923
|
+
case "InvalidInputException": return [3, 4];
|
|
1924
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1925
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1926
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
1927
1927
|
}
|
|
1928
|
-
return [3
|
|
1928
|
+
return [3, 8];
|
|
1929
1929
|
case 2:
|
|
1930
1930
|
_c = [{}];
|
|
1931
|
-
return [4
|
|
1931
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1932
1932
|
case 3:
|
|
1933
1933
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1934
|
-
return [3
|
|
1934
|
+
return [3, 9];
|
|
1935
1935
|
case 4:
|
|
1936
1936
|
_d = [{}];
|
|
1937
|
-
return [4
|
|
1937
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1938
1938
|
case 5:
|
|
1939
1939
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1940
|
-
return [3
|
|
1940
|
+
return [3, 9];
|
|
1941
1941
|
case 6:
|
|
1942
1942
|
_e = [{}];
|
|
1943
|
-
return [4
|
|
1943
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1944
1944
|
case 7:
|
|
1945
1945
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1946
|
-
return [3
|
|
1946
|
+
return [3, 9];
|
|
1947
1947
|
case 8:
|
|
1948
1948
|
parsedBody = parsedOutput.body;
|
|
1949
1949
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1953,7 +1953,7 @@ var deserializeAws_json1_1GetMLModelCommandError = function (output, context) {
|
|
|
1953
1953
|
message = response.message || response.Message || errorCode;
|
|
1954
1954
|
response.message = message;
|
|
1955
1955
|
delete response.Message;
|
|
1956
|
-
return [2
|
|
1956
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1957
1957
|
}
|
|
1958
1958
|
});
|
|
1959
1959
|
}); };
|
|
@@ -1963,15 +1963,15 @@ export var deserializeAws_json1_1PredictCommand = function (output, context) { r
|
|
|
1963
1963
|
switch (_a.label) {
|
|
1964
1964
|
case 0:
|
|
1965
1965
|
if (output.statusCode >= 300) {
|
|
1966
|
-
return [2
|
|
1966
|
+
return [2, deserializeAws_json1_1PredictCommandError(output, context)];
|
|
1967
1967
|
}
|
|
1968
|
-
return [4
|
|
1968
|
+
return [4, parseBody(output.body, context)];
|
|
1969
1969
|
case 1:
|
|
1970
1970
|
data = _a.sent();
|
|
1971
1971
|
contents = {};
|
|
1972
1972
|
contents = deserializeAws_json1_1PredictOutput(data, context);
|
|
1973
1973
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1974
|
-
return [2
|
|
1974
|
+
return [2, Promise.resolve(response)];
|
|
1975
1975
|
}
|
|
1976
1976
|
});
|
|
1977
1977
|
}); };
|
|
@@ -1983,55 +1983,55 @@ var deserializeAws_json1_1PredictCommandError = function (output, context) { ret
|
|
|
1983
1983
|
case 0:
|
|
1984
1984
|
_a = [__assign({}, output)];
|
|
1985
1985
|
_h = {};
|
|
1986
|
-
return [4
|
|
1986
|
+
return [4, parseBody(output.body, context)];
|
|
1987
1987
|
case 1:
|
|
1988
1988
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1989
1989
|
errorCode = "UnknownError";
|
|
1990
1990
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
1991
|
_b = errorCode;
|
|
1992
1992
|
switch (_b) {
|
|
1993
|
-
case "InternalServerException": return [3
|
|
1994
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
1995
|
-
case "InvalidInputException": return [3
|
|
1996
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
1997
|
-
case "LimitExceededException": return [3
|
|
1998
|
-
case "com.amazonaws.machinelearning#LimitExceededException": return [3
|
|
1999
|
-
case "PredictorNotMountedException": return [3
|
|
2000
|
-
case "com.amazonaws.machinelearning#PredictorNotMountedException": return [3
|
|
2001
|
-
case "ResourceNotFoundException": return [3
|
|
2002
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
1993
|
+
case "InternalServerException": return [3, 2];
|
|
1994
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
1995
|
+
case "InvalidInputException": return [3, 4];
|
|
1996
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
1997
|
+
case "LimitExceededException": return [3, 6];
|
|
1998
|
+
case "com.amazonaws.machinelearning#LimitExceededException": return [3, 6];
|
|
1999
|
+
case "PredictorNotMountedException": return [3, 8];
|
|
2000
|
+
case "com.amazonaws.machinelearning#PredictorNotMountedException": return [3, 8];
|
|
2001
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2002
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 10];
|
|
2003
2003
|
}
|
|
2004
|
-
return [3
|
|
2004
|
+
return [3, 12];
|
|
2005
2005
|
case 2:
|
|
2006
2006
|
_c = [{}];
|
|
2007
|
-
return [4
|
|
2007
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2008
2008
|
case 3:
|
|
2009
2009
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2010
|
-
return [3
|
|
2010
|
+
return [3, 13];
|
|
2011
2011
|
case 4:
|
|
2012
2012
|
_d = [{}];
|
|
2013
|
-
return [4
|
|
2013
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2014
2014
|
case 5:
|
|
2015
2015
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2016
|
-
return [3
|
|
2016
|
+
return [3, 13];
|
|
2017
2017
|
case 6:
|
|
2018
2018
|
_e = [{}];
|
|
2019
|
-
return [4
|
|
2019
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2020
2020
|
case 7:
|
|
2021
2021
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2022
|
-
return [3
|
|
2022
|
+
return [3, 13];
|
|
2023
2023
|
case 8:
|
|
2024
2024
|
_f = [{}];
|
|
2025
|
-
return [4
|
|
2025
|
+
return [4, deserializeAws_json1_1PredictorNotMountedExceptionResponse(parsedOutput, context)];
|
|
2026
2026
|
case 9:
|
|
2027
2027
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2028
|
-
return [3
|
|
2028
|
+
return [3, 13];
|
|
2029
2029
|
case 10:
|
|
2030
2030
|
_g = [{}];
|
|
2031
|
-
return [4
|
|
2031
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2032
2032
|
case 11:
|
|
2033
2033
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2034
|
-
return [3
|
|
2034
|
+
return [3, 13];
|
|
2035
2035
|
case 12:
|
|
2036
2036
|
parsedBody = parsedOutput.body;
|
|
2037
2037
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2041,7 +2041,7 @@ var deserializeAws_json1_1PredictCommandError = function (output, context) { ret
|
|
|
2041
2041
|
message = response.message || response.Message || errorCode;
|
|
2042
2042
|
response.message = message;
|
|
2043
2043
|
delete response.Message;
|
|
2044
|
-
return [2
|
|
2044
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2045
2045
|
}
|
|
2046
2046
|
});
|
|
2047
2047
|
}); };
|
|
@@ -2051,15 +2051,15 @@ export var deserializeAws_json1_1UpdateBatchPredictionCommand = function (output
|
|
|
2051
2051
|
switch (_a.label) {
|
|
2052
2052
|
case 0:
|
|
2053
2053
|
if (output.statusCode >= 300) {
|
|
2054
|
-
return [2
|
|
2054
|
+
return [2, deserializeAws_json1_1UpdateBatchPredictionCommandError(output, context)];
|
|
2055
2055
|
}
|
|
2056
|
-
return [4
|
|
2056
|
+
return [4, parseBody(output.body, context)];
|
|
2057
2057
|
case 1:
|
|
2058
2058
|
data = _a.sent();
|
|
2059
2059
|
contents = {};
|
|
2060
2060
|
contents = deserializeAws_json1_1UpdateBatchPredictionOutput(data, context);
|
|
2061
2061
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2062
|
-
return [2
|
|
2062
|
+
return [2, Promise.resolve(response)];
|
|
2063
2063
|
}
|
|
2064
2064
|
});
|
|
2065
2065
|
}); };
|
|
@@ -2071,39 +2071,39 @@ var deserializeAws_json1_1UpdateBatchPredictionCommandError = function (output,
|
|
|
2071
2071
|
case 0:
|
|
2072
2072
|
_a = [__assign({}, output)];
|
|
2073
2073
|
_f = {};
|
|
2074
|
-
return [4
|
|
2074
|
+
return [4, parseBody(output.body, context)];
|
|
2075
2075
|
case 1:
|
|
2076
2076
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2077
2077
|
errorCode = "UnknownError";
|
|
2078
2078
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
2079
|
_b = errorCode;
|
|
2080
2080
|
switch (_b) {
|
|
2081
|
-
case "InternalServerException": return [3
|
|
2082
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
2083
|
-
case "InvalidInputException": return [3
|
|
2084
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
2085
|
-
case "ResourceNotFoundException": return [3
|
|
2086
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
2081
|
+
case "InternalServerException": return [3, 2];
|
|
2082
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
2083
|
+
case "InvalidInputException": return [3, 4];
|
|
2084
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
2085
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2086
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
2087
2087
|
}
|
|
2088
|
-
return [3
|
|
2088
|
+
return [3, 8];
|
|
2089
2089
|
case 2:
|
|
2090
2090
|
_c = [{}];
|
|
2091
|
-
return [4
|
|
2091
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2092
2092
|
case 3:
|
|
2093
2093
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2094
|
-
return [3
|
|
2094
|
+
return [3, 9];
|
|
2095
2095
|
case 4:
|
|
2096
2096
|
_d = [{}];
|
|
2097
|
-
return [4
|
|
2097
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2098
2098
|
case 5:
|
|
2099
2099
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2100
|
-
return [3
|
|
2100
|
+
return [3, 9];
|
|
2101
2101
|
case 6:
|
|
2102
2102
|
_e = [{}];
|
|
2103
|
-
return [4
|
|
2103
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2104
2104
|
case 7:
|
|
2105
2105
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2106
|
-
return [3
|
|
2106
|
+
return [3, 9];
|
|
2107
2107
|
case 8:
|
|
2108
2108
|
parsedBody = parsedOutput.body;
|
|
2109
2109
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2113,7 +2113,7 @@ var deserializeAws_json1_1UpdateBatchPredictionCommandError = function (output,
|
|
|
2113
2113
|
message = response.message || response.Message || errorCode;
|
|
2114
2114
|
response.message = message;
|
|
2115
2115
|
delete response.Message;
|
|
2116
|
-
return [2
|
|
2116
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2117
2117
|
}
|
|
2118
2118
|
});
|
|
2119
2119
|
}); };
|
|
@@ -2123,15 +2123,15 @@ export var deserializeAws_json1_1UpdateDataSourceCommand = function (output, con
|
|
|
2123
2123
|
switch (_a.label) {
|
|
2124
2124
|
case 0:
|
|
2125
2125
|
if (output.statusCode >= 300) {
|
|
2126
|
-
return [2
|
|
2126
|
+
return [2, deserializeAws_json1_1UpdateDataSourceCommandError(output, context)];
|
|
2127
2127
|
}
|
|
2128
|
-
return [4
|
|
2128
|
+
return [4, parseBody(output.body, context)];
|
|
2129
2129
|
case 1:
|
|
2130
2130
|
data = _a.sent();
|
|
2131
2131
|
contents = {};
|
|
2132
2132
|
contents = deserializeAws_json1_1UpdateDataSourceOutput(data, context);
|
|
2133
2133
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2134
|
-
return [2
|
|
2134
|
+
return [2, Promise.resolve(response)];
|
|
2135
2135
|
}
|
|
2136
2136
|
});
|
|
2137
2137
|
}); };
|
|
@@ -2143,39 +2143,39 @@ var deserializeAws_json1_1UpdateDataSourceCommandError = function (output, conte
|
|
|
2143
2143
|
case 0:
|
|
2144
2144
|
_a = [__assign({}, output)];
|
|
2145
2145
|
_f = {};
|
|
2146
|
-
return [4
|
|
2146
|
+
return [4, parseBody(output.body, context)];
|
|
2147
2147
|
case 1:
|
|
2148
2148
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2149
2149
|
errorCode = "UnknownError";
|
|
2150
2150
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
2151
|
_b = errorCode;
|
|
2152
2152
|
switch (_b) {
|
|
2153
|
-
case "InternalServerException": return [3
|
|
2154
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
2155
|
-
case "InvalidInputException": return [3
|
|
2156
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
2157
|
-
case "ResourceNotFoundException": return [3
|
|
2158
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
2153
|
+
case "InternalServerException": return [3, 2];
|
|
2154
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
2155
|
+
case "InvalidInputException": return [3, 4];
|
|
2156
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
2157
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2158
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
2159
2159
|
}
|
|
2160
|
-
return [3
|
|
2160
|
+
return [3, 8];
|
|
2161
2161
|
case 2:
|
|
2162
2162
|
_c = [{}];
|
|
2163
|
-
return [4
|
|
2163
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2164
2164
|
case 3:
|
|
2165
2165
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2166
|
-
return [3
|
|
2166
|
+
return [3, 9];
|
|
2167
2167
|
case 4:
|
|
2168
2168
|
_d = [{}];
|
|
2169
|
-
return [4
|
|
2169
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2170
2170
|
case 5:
|
|
2171
2171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2172
|
-
return [3
|
|
2172
|
+
return [3, 9];
|
|
2173
2173
|
case 6:
|
|
2174
2174
|
_e = [{}];
|
|
2175
|
-
return [4
|
|
2175
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2176
2176
|
case 7:
|
|
2177
2177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2178
|
-
return [3
|
|
2178
|
+
return [3, 9];
|
|
2179
2179
|
case 8:
|
|
2180
2180
|
parsedBody = parsedOutput.body;
|
|
2181
2181
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2185,7 +2185,7 @@ var deserializeAws_json1_1UpdateDataSourceCommandError = function (output, conte
|
|
|
2185
2185
|
message = response.message || response.Message || errorCode;
|
|
2186
2186
|
response.message = message;
|
|
2187
2187
|
delete response.Message;
|
|
2188
|
-
return [2
|
|
2188
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2189
2189
|
}
|
|
2190
2190
|
});
|
|
2191
2191
|
}); };
|
|
@@ -2195,15 +2195,15 @@ export var deserializeAws_json1_1UpdateEvaluationCommand = function (output, con
|
|
|
2195
2195
|
switch (_a.label) {
|
|
2196
2196
|
case 0:
|
|
2197
2197
|
if (output.statusCode >= 300) {
|
|
2198
|
-
return [2
|
|
2198
|
+
return [2, deserializeAws_json1_1UpdateEvaluationCommandError(output, context)];
|
|
2199
2199
|
}
|
|
2200
|
-
return [4
|
|
2200
|
+
return [4, parseBody(output.body, context)];
|
|
2201
2201
|
case 1:
|
|
2202
2202
|
data = _a.sent();
|
|
2203
2203
|
contents = {};
|
|
2204
2204
|
contents = deserializeAws_json1_1UpdateEvaluationOutput(data, context);
|
|
2205
2205
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2206
|
-
return [2
|
|
2206
|
+
return [2, Promise.resolve(response)];
|
|
2207
2207
|
}
|
|
2208
2208
|
});
|
|
2209
2209
|
}); };
|
|
@@ -2215,39 +2215,39 @@ var deserializeAws_json1_1UpdateEvaluationCommandError = function (output, conte
|
|
|
2215
2215
|
case 0:
|
|
2216
2216
|
_a = [__assign({}, output)];
|
|
2217
2217
|
_f = {};
|
|
2218
|
-
return [4
|
|
2218
|
+
return [4, parseBody(output.body, context)];
|
|
2219
2219
|
case 1:
|
|
2220
2220
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2221
2221
|
errorCode = "UnknownError";
|
|
2222
2222
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
2223
|
_b = errorCode;
|
|
2224
2224
|
switch (_b) {
|
|
2225
|
-
case "InternalServerException": return [3
|
|
2226
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
2227
|
-
case "InvalidInputException": return [3
|
|
2228
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
2229
|
-
case "ResourceNotFoundException": return [3
|
|
2230
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
2225
|
+
case "InternalServerException": return [3, 2];
|
|
2226
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
2227
|
+
case "InvalidInputException": return [3, 4];
|
|
2228
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
2229
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2230
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
2231
2231
|
}
|
|
2232
|
-
return [3
|
|
2232
|
+
return [3, 8];
|
|
2233
2233
|
case 2:
|
|
2234
2234
|
_c = [{}];
|
|
2235
|
-
return [4
|
|
2235
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2236
2236
|
case 3:
|
|
2237
2237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2238
|
-
return [3
|
|
2238
|
+
return [3, 9];
|
|
2239
2239
|
case 4:
|
|
2240
2240
|
_d = [{}];
|
|
2241
|
-
return [4
|
|
2241
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2242
2242
|
case 5:
|
|
2243
2243
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2244
|
-
return [3
|
|
2244
|
+
return [3, 9];
|
|
2245
2245
|
case 6:
|
|
2246
2246
|
_e = [{}];
|
|
2247
|
-
return [4
|
|
2247
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2248
2248
|
case 7:
|
|
2249
2249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2250
|
-
return [3
|
|
2250
|
+
return [3, 9];
|
|
2251
2251
|
case 8:
|
|
2252
2252
|
parsedBody = parsedOutput.body;
|
|
2253
2253
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2257,7 +2257,7 @@ var deserializeAws_json1_1UpdateEvaluationCommandError = function (output, conte
|
|
|
2257
2257
|
message = response.message || response.Message || errorCode;
|
|
2258
2258
|
response.message = message;
|
|
2259
2259
|
delete response.Message;
|
|
2260
|
-
return [2
|
|
2260
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2261
2261
|
}
|
|
2262
2262
|
});
|
|
2263
2263
|
}); };
|
|
@@ -2267,15 +2267,15 @@ export var deserializeAws_json1_1UpdateMLModelCommand = function (output, contex
|
|
|
2267
2267
|
switch (_a.label) {
|
|
2268
2268
|
case 0:
|
|
2269
2269
|
if (output.statusCode >= 300) {
|
|
2270
|
-
return [2
|
|
2270
|
+
return [2, deserializeAws_json1_1UpdateMLModelCommandError(output, context)];
|
|
2271
2271
|
}
|
|
2272
|
-
return [4
|
|
2272
|
+
return [4, parseBody(output.body, context)];
|
|
2273
2273
|
case 1:
|
|
2274
2274
|
data = _a.sent();
|
|
2275
2275
|
contents = {};
|
|
2276
2276
|
contents = deserializeAws_json1_1UpdateMLModelOutput(data, context);
|
|
2277
2277
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2278
|
-
return [2
|
|
2278
|
+
return [2, Promise.resolve(response)];
|
|
2279
2279
|
}
|
|
2280
2280
|
});
|
|
2281
2281
|
}); };
|
|
@@ -2287,39 +2287,39 @@ var deserializeAws_json1_1UpdateMLModelCommandError = function (output, context)
|
|
|
2287
2287
|
case 0:
|
|
2288
2288
|
_a = [__assign({}, output)];
|
|
2289
2289
|
_f = {};
|
|
2290
|
-
return [4
|
|
2290
|
+
return [4, parseBody(output.body, context)];
|
|
2291
2291
|
case 1:
|
|
2292
2292
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2293
2293
|
errorCode = "UnknownError";
|
|
2294
2294
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2295
2295
|
_b = errorCode;
|
|
2296
2296
|
switch (_b) {
|
|
2297
|
-
case "InternalServerException": return [3
|
|
2298
|
-
case "com.amazonaws.machinelearning#InternalServerException": return [3
|
|
2299
|
-
case "InvalidInputException": return [3
|
|
2300
|
-
case "com.amazonaws.machinelearning#InvalidInputException": return [3
|
|
2301
|
-
case "ResourceNotFoundException": return [3
|
|
2302
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3
|
|
2297
|
+
case "InternalServerException": return [3, 2];
|
|
2298
|
+
case "com.amazonaws.machinelearning#InternalServerException": return [3, 2];
|
|
2299
|
+
case "InvalidInputException": return [3, 4];
|
|
2300
|
+
case "com.amazonaws.machinelearning#InvalidInputException": return [3, 4];
|
|
2301
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2302
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException": return [3, 6];
|
|
2303
2303
|
}
|
|
2304
|
-
return [3
|
|
2304
|
+
return [3, 8];
|
|
2305
2305
|
case 2:
|
|
2306
2306
|
_c = [{}];
|
|
2307
|
-
return [4
|
|
2307
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2308
2308
|
case 3:
|
|
2309
2309
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2310
|
-
return [3
|
|
2310
|
+
return [3, 9];
|
|
2311
2311
|
case 4:
|
|
2312
2312
|
_d = [{}];
|
|
2313
|
-
return [4
|
|
2313
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2314
2314
|
case 5:
|
|
2315
2315
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2316
|
-
return [3
|
|
2316
|
+
return [3, 9];
|
|
2317
2317
|
case 6:
|
|
2318
2318
|
_e = [{}];
|
|
2319
|
-
return [4
|
|
2319
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2320
2320
|
case 7:
|
|
2321
2321
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2322
|
-
return [3
|
|
2322
|
+
return [3, 9];
|
|
2323
2323
|
case 8:
|
|
2324
2324
|
parsedBody = parsedOutput.body;
|
|
2325
2325
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2329,7 +2329,7 @@ var deserializeAws_json1_1UpdateMLModelCommandError = function (output, context)
|
|
|
2329
2329
|
message = response.message || response.Message || errorCode;
|
|
2330
2330
|
response.message = message;
|
|
2331
2331
|
delete response.Message;
|
|
2332
|
-
return [2
|
|
2332
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2333
2333
|
}
|
|
2334
2334
|
});
|
|
2335
2335
|
}); };
|
|
@@ -2339,7 +2339,7 @@ var deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = functio
|
|
|
2339
2339
|
body = parsedOutput.body;
|
|
2340
2340
|
deserialized = deserializeAws_json1_1IdempotentParameterMismatchException(body, context);
|
|
2341
2341
|
contents = __assign({ name: "IdempotentParameterMismatchException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2342
|
-
return [2
|
|
2342
|
+
return [2, contents];
|
|
2343
2343
|
});
|
|
2344
2344
|
}); };
|
|
2345
2345
|
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2348,7 +2348,7 @@ var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutp
|
|
|
2348
2348
|
body = parsedOutput.body;
|
|
2349
2349
|
deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
2350
2350
|
contents = __assign({ name: "InternalServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2351
|
-
return [2
|
|
2351
|
+
return [2, contents];
|
|
2352
2352
|
});
|
|
2353
2353
|
}); };
|
|
2354
2354
|
var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2357,7 +2357,7 @@ var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput
|
|
|
2357
2357
|
body = parsedOutput.body;
|
|
2358
2358
|
deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
2359
2359
|
contents = __assign({ name: "InvalidInputException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2360
|
-
return [2
|
|
2360
|
+
return [2, contents];
|
|
2361
2361
|
});
|
|
2362
2362
|
}); };
|
|
2363
2363
|
var deserializeAws_json1_1InvalidTagExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2366,7 +2366,7 @@ var deserializeAws_json1_1InvalidTagExceptionResponse = function (parsedOutput,
|
|
|
2366
2366
|
body = parsedOutput.body;
|
|
2367
2367
|
deserialized = deserializeAws_json1_1InvalidTagException(body, context);
|
|
2368
2368
|
contents = __assign({ name: "InvalidTagException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2369
|
-
return [2
|
|
2369
|
+
return [2, contents];
|
|
2370
2370
|
});
|
|
2371
2371
|
}); };
|
|
2372
2372
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2375,7 +2375,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
2375
2375
|
body = parsedOutput.body;
|
|
2376
2376
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2377
2377
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2378
|
-
return [2
|
|
2378
|
+
return [2, contents];
|
|
2379
2379
|
});
|
|
2380
2380
|
}); };
|
|
2381
2381
|
var deserializeAws_json1_1PredictorNotMountedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2384,7 +2384,7 @@ var deserializeAws_json1_1PredictorNotMountedExceptionResponse = function (parse
|
|
|
2384
2384
|
body = parsedOutput.body;
|
|
2385
2385
|
deserialized = deserializeAws_json1_1PredictorNotMountedException(body, context);
|
|
2386
2386
|
contents = __assign({ name: "PredictorNotMountedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2387
|
-
return [2
|
|
2387
|
+
return [2, contents];
|
|
2388
2388
|
});
|
|
2389
2389
|
}); };
|
|
2390
2390
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2393,7 +2393,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2393
2393
|
body = parsedOutput.body;
|
|
2394
2394
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2395
2395
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2396
|
-
return [2
|
|
2396
|
+
return [2, contents];
|
|
2397
2397
|
});
|
|
2398
2398
|
}); };
|
|
2399
2399
|
var deserializeAws_json1_1TagLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2402,7 +2402,7 @@ var deserializeAws_json1_1TagLimitExceededExceptionResponse = function (parsedOu
|
|
|
2402
2402
|
body = parsedOutput.body;
|
|
2403
2403
|
deserialized = deserializeAws_json1_1TagLimitExceededException(body, context);
|
|
2404
2404
|
contents = __assign({ name: "TagLimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2405
|
-
return [2
|
|
2405
|
+
return [2, contents];
|
|
2406
2406
|
});
|
|
2407
2407
|
}); };
|
|
2408
2408
|
var serializeAws_json1_1AddTagsInput = function (input, context) {
|
|
@@ -3237,7 +3237,6 @@ var deserializeMetadata = function (output) {
|
|
|
3237
3237
|
cfId: output.headers["x-amz-cf-id"],
|
|
3238
3238
|
});
|
|
3239
3239
|
};
|
|
3240
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3241
3240
|
var collectBody = function (streamBody, context) {
|
|
3242
3241
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3243
3242
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3245,7 +3244,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3245
3244
|
}
|
|
3246
3245
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3247
3246
|
};
|
|
3248
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3249
3247
|
var collectBodyString = function (streamBody, context) {
|
|
3250
3248
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3251
3249
|
};
|
|
@@ -3253,7 +3251,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3253
3251
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
3254
3252
|
return __generator(this, function (_c) {
|
|
3255
3253
|
switch (_c.label) {
|
|
3256
|
-
case 0: return [4
|
|
3254
|
+
case 0: return [4, context.endpoint()];
|
|
3257
3255
|
case 1:
|
|
3258
3256
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3259
3257
|
contents = {
|
|
@@ -3270,7 +3268,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3270
3268
|
if (body !== undefined) {
|
|
3271
3269
|
contents.body = body;
|
|
3272
3270
|
}
|
|
3273
|
-
return [2
|
|
3271
|
+
return [2, new __HttpRequest(contents)];
|
|
3274
3272
|
}
|
|
3275
3273
|
});
|
|
3276
3274
|
}); };
|
|
@@ -3282,9 +3280,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3282
3280
|
return {};
|
|
3283
3281
|
});
|
|
3284
3282
|
};
|
|
3285
|
-
/**
|
|
3286
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3287
|
-
*/
|
|
3288
3283
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3289
3284
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3290
3285
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -3309,4 +3304,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3309
3304
|
}
|
|
3310
3305
|
return "";
|
|
3311
3306
|
};
|
|
3312
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|