@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
package/protocols/Aws_json1_1.ts
DELETED
|
@@ -1,3957 +0,0 @@
|
|
|
1
|
-
import { AddTagsCommandInput, AddTagsCommandOutput } from "../commands/AddTagsCommand";
|
|
2
|
-
import {
|
|
3
|
-
CreateBatchPredictionCommandInput,
|
|
4
|
-
CreateBatchPredictionCommandOutput,
|
|
5
|
-
} from "../commands/CreateBatchPredictionCommand";
|
|
6
|
-
import {
|
|
7
|
-
CreateDataSourceFromRDSCommandInput,
|
|
8
|
-
CreateDataSourceFromRDSCommandOutput,
|
|
9
|
-
} from "../commands/CreateDataSourceFromRDSCommand";
|
|
10
|
-
import {
|
|
11
|
-
CreateDataSourceFromRedshiftCommandInput,
|
|
12
|
-
CreateDataSourceFromRedshiftCommandOutput,
|
|
13
|
-
} from "../commands/CreateDataSourceFromRedshiftCommand";
|
|
14
|
-
import {
|
|
15
|
-
CreateDataSourceFromS3CommandInput,
|
|
16
|
-
CreateDataSourceFromS3CommandOutput,
|
|
17
|
-
} from "../commands/CreateDataSourceFromS3Command";
|
|
18
|
-
import { CreateEvaluationCommandInput, CreateEvaluationCommandOutput } from "../commands/CreateEvaluationCommand";
|
|
19
|
-
import { CreateMLModelCommandInput, CreateMLModelCommandOutput } from "../commands/CreateMLModelCommand";
|
|
20
|
-
import {
|
|
21
|
-
CreateRealtimeEndpointCommandInput,
|
|
22
|
-
CreateRealtimeEndpointCommandOutput,
|
|
23
|
-
} from "../commands/CreateRealtimeEndpointCommand";
|
|
24
|
-
import {
|
|
25
|
-
DeleteBatchPredictionCommandInput,
|
|
26
|
-
DeleteBatchPredictionCommandOutput,
|
|
27
|
-
} from "../commands/DeleteBatchPredictionCommand";
|
|
28
|
-
import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "../commands/DeleteDataSourceCommand";
|
|
29
|
-
import { DeleteEvaluationCommandInput, DeleteEvaluationCommandOutput } from "../commands/DeleteEvaluationCommand";
|
|
30
|
-
import { DeleteMLModelCommandInput, DeleteMLModelCommandOutput } from "../commands/DeleteMLModelCommand";
|
|
31
|
-
import {
|
|
32
|
-
DeleteRealtimeEndpointCommandInput,
|
|
33
|
-
DeleteRealtimeEndpointCommandOutput,
|
|
34
|
-
} from "../commands/DeleteRealtimeEndpointCommand";
|
|
35
|
-
import { DeleteTagsCommandInput, DeleteTagsCommandOutput } from "../commands/DeleteTagsCommand";
|
|
36
|
-
import {
|
|
37
|
-
DescribeBatchPredictionsCommandInput,
|
|
38
|
-
DescribeBatchPredictionsCommandOutput,
|
|
39
|
-
} from "../commands/DescribeBatchPredictionsCommand";
|
|
40
|
-
import {
|
|
41
|
-
DescribeDataSourcesCommandInput,
|
|
42
|
-
DescribeDataSourcesCommandOutput,
|
|
43
|
-
} from "../commands/DescribeDataSourcesCommand";
|
|
44
|
-
import {
|
|
45
|
-
DescribeEvaluationsCommandInput,
|
|
46
|
-
DescribeEvaluationsCommandOutput,
|
|
47
|
-
} from "../commands/DescribeEvaluationsCommand";
|
|
48
|
-
import { DescribeMLModelsCommandInput, DescribeMLModelsCommandOutput } from "../commands/DescribeMLModelsCommand";
|
|
49
|
-
import { DescribeTagsCommandInput, DescribeTagsCommandOutput } from "../commands/DescribeTagsCommand";
|
|
50
|
-
import { GetBatchPredictionCommandInput, GetBatchPredictionCommandOutput } from "../commands/GetBatchPredictionCommand";
|
|
51
|
-
import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "../commands/GetDataSourceCommand";
|
|
52
|
-
import { GetEvaluationCommandInput, GetEvaluationCommandOutput } from "../commands/GetEvaluationCommand";
|
|
53
|
-
import { GetMLModelCommandInput, GetMLModelCommandOutput } from "../commands/GetMLModelCommand";
|
|
54
|
-
import { PredictCommandInput, PredictCommandOutput } from "../commands/PredictCommand";
|
|
55
|
-
import {
|
|
56
|
-
UpdateBatchPredictionCommandInput,
|
|
57
|
-
UpdateBatchPredictionCommandOutput,
|
|
58
|
-
} from "../commands/UpdateBatchPredictionCommand";
|
|
59
|
-
import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "../commands/UpdateDataSourceCommand";
|
|
60
|
-
import { UpdateEvaluationCommandInput, UpdateEvaluationCommandOutput } from "../commands/UpdateEvaluationCommand";
|
|
61
|
-
import { UpdateMLModelCommandInput, UpdateMLModelCommandOutput } from "../commands/UpdateMLModelCommand";
|
|
62
|
-
import {
|
|
63
|
-
AddTagsInput,
|
|
64
|
-
AddTagsOutput,
|
|
65
|
-
BatchPrediction,
|
|
66
|
-
CreateBatchPredictionInput,
|
|
67
|
-
CreateBatchPredictionOutput,
|
|
68
|
-
CreateDataSourceFromRDSInput,
|
|
69
|
-
CreateDataSourceFromRDSOutput,
|
|
70
|
-
CreateDataSourceFromRedshiftInput,
|
|
71
|
-
CreateDataSourceFromRedshiftOutput,
|
|
72
|
-
CreateDataSourceFromS3Input,
|
|
73
|
-
CreateDataSourceFromS3Output,
|
|
74
|
-
CreateEvaluationInput,
|
|
75
|
-
CreateEvaluationOutput,
|
|
76
|
-
CreateMLModelInput,
|
|
77
|
-
CreateMLModelOutput,
|
|
78
|
-
CreateRealtimeEndpointInput,
|
|
79
|
-
CreateRealtimeEndpointOutput,
|
|
80
|
-
DataSource,
|
|
81
|
-
DeleteBatchPredictionInput,
|
|
82
|
-
DeleteBatchPredictionOutput,
|
|
83
|
-
DeleteDataSourceInput,
|
|
84
|
-
DeleteDataSourceOutput,
|
|
85
|
-
DeleteEvaluationInput,
|
|
86
|
-
DeleteEvaluationOutput,
|
|
87
|
-
DeleteMLModelInput,
|
|
88
|
-
DeleteMLModelOutput,
|
|
89
|
-
DeleteRealtimeEndpointInput,
|
|
90
|
-
DeleteRealtimeEndpointOutput,
|
|
91
|
-
DeleteTagsInput,
|
|
92
|
-
DeleteTagsOutput,
|
|
93
|
-
DescribeBatchPredictionsInput,
|
|
94
|
-
DescribeBatchPredictionsOutput,
|
|
95
|
-
DescribeDataSourcesInput,
|
|
96
|
-
DescribeDataSourcesOutput,
|
|
97
|
-
DescribeEvaluationsInput,
|
|
98
|
-
DescribeEvaluationsOutput,
|
|
99
|
-
DescribeMLModelsInput,
|
|
100
|
-
DescribeMLModelsOutput,
|
|
101
|
-
DescribeTagsInput,
|
|
102
|
-
DescribeTagsOutput,
|
|
103
|
-
DetailsAttributes,
|
|
104
|
-
Evaluation,
|
|
105
|
-
GetBatchPredictionInput,
|
|
106
|
-
GetBatchPredictionOutput,
|
|
107
|
-
GetDataSourceInput,
|
|
108
|
-
GetDataSourceOutput,
|
|
109
|
-
GetEvaluationInput,
|
|
110
|
-
GetEvaluationOutput,
|
|
111
|
-
GetMLModelInput,
|
|
112
|
-
GetMLModelOutput,
|
|
113
|
-
IdempotentParameterMismatchException,
|
|
114
|
-
InternalServerException,
|
|
115
|
-
InvalidInputException,
|
|
116
|
-
InvalidTagException,
|
|
117
|
-
LimitExceededException,
|
|
118
|
-
MLModel,
|
|
119
|
-
PerformanceMetrics,
|
|
120
|
-
PredictInput,
|
|
121
|
-
PredictOutput,
|
|
122
|
-
Prediction,
|
|
123
|
-
PredictorNotMountedException,
|
|
124
|
-
RDSDataSpec,
|
|
125
|
-
RDSDatabase,
|
|
126
|
-
RDSDatabaseCredentials,
|
|
127
|
-
RDSMetadata,
|
|
128
|
-
RealtimeEndpointInfo,
|
|
129
|
-
RedshiftDataSpec,
|
|
130
|
-
RedshiftDatabase,
|
|
131
|
-
RedshiftDatabaseCredentials,
|
|
132
|
-
RedshiftMetadata,
|
|
133
|
-
ResourceNotFoundException,
|
|
134
|
-
S3DataSpec,
|
|
135
|
-
Tag,
|
|
136
|
-
TagLimitExceededException,
|
|
137
|
-
UpdateBatchPredictionInput,
|
|
138
|
-
UpdateBatchPredictionOutput,
|
|
139
|
-
UpdateDataSourceInput,
|
|
140
|
-
UpdateDataSourceOutput,
|
|
141
|
-
UpdateEvaluationInput,
|
|
142
|
-
UpdateEvaluationOutput,
|
|
143
|
-
UpdateMLModelInput,
|
|
144
|
-
UpdateMLModelOutput,
|
|
145
|
-
} from "../models/models_0";
|
|
146
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
147
|
-
import {
|
|
148
|
-
expectBoolean as __expectBoolean,
|
|
149
|
-
expectInt32 as __expectInt32,
|
|
150
|
-
expectLong as __expectLong,
|
|
151
|
-
expectNonNull as __expectNonNull,
|
|
152
|
-
expectNumber as __expectNumber,
|
|
153
|
-
expectString as __expectString,
|
|
154
|
-
limitedParseFloat32 as __limitedParseFloat32,
|
|
155
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
156
|
-
serializeFloat as __serializeFloat,
|
|
157
|
-
} from "@aws-sdk/smithy-client";
|
|
158
|
-
import {
|
|
159
|
-
Endpoint as __Endpoint,
|
|
160
|
-
HeaderBag as __HeaderBag,
|
|
161
|
-
MetadataBearer as __MetadataBearer,
|
|
162
|
-
ResponseMetadata as __ResponseMetadata,
|
|
163
|
-
SerdeContext as __SerdeContext,
|
|
164
|
-
SmithyException as __SmithyException,
|
|
165
|
-
} from "@aws-sdk/types";
|
|
166
|
-
|
|
167
|
-
export const serializeAws_json1_1AddTagsCommand = async (
|
|
168
|
-
input: AddTagsCommandInput,
|
|
169
|
-
context: __SerdeContext
|
|
170
|
-
): Promise<__HttpRequest> => {
|
|
171
|
-
const headers: __HeaderBag = {
|
|
172
|
-
"content-type": "application/x-amz-json-1.1",
|
|
173
|
-
"x-amz-target": "AmazonML_20141212.AddTags",
|
|
174
|
-
};
|
|
175
|
-
let body: any;
|
|
176
|
-
body = JSON.stringify(serializeAws_json1_1AddTagsInput(input, context));
|
|
177
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
export const serializeAws_json1_1CreateBatchPredictionCommand = async (
|
|
181
|
-
input: CreateBatchPredictionCommandInput,
|
|
182
|
-
context: __SerdeContext
|
|
183
|
-
): Promise<__HttpRequest> => {
|
|
184
|
-
const headers: __HeaderBag = {
|
|
185
|
-
"content-type": "application/x-amz-json-1.1",
|
|
186
|
-
"x-amz-target": "AmazonML_20141212.CreateBatchPrediction",
|
|
187
|
-
};
|
|
188
|
-
let body: any;
|
|
189
|
-
body = JSON.stringify(serializeAws_json1_1CreateBatchPredictionInput(input, context));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
export const serializeAws_json1_1CreateDataSourceFromRDSCommand = async (
|
|
194
|
-
input: CreateDataSourceFromRDSCommandInput,
|
|
195
|
-
context: __SerdeContext
|
|
196
|
-
): Promise<__HttpRequest> => {
|
|
197
|
-
const headers: __HeaderBag = {
|
|
198
|
-
"content-type": "application/x-amz-json-1.1",
|
|
199
|
-
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromRDS",
|
|
200
|
-
};
|
|
201
|
-
let body: any;
|
|
202
|
-
body = JSON.stringify(serializeAws_json1_1CreateDataSourceFromRDSInput(input, context));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
export const serializeAws_json1_1CreateDataSourceFromRedshiftCommand = async (
|
|
207
|
-
input: CreateDataSourceFromRedshiftCommandInput,
|
|
208
|
-
context: __SerdeContext
|
|
209
|
-
): Promise<__HttpRequest> => {
|
|
210
|
-
const headers: __HeaderBag = {
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromRedshift",
|
|
213
|
-
};
|
|
214
|
-
let body: any;
|
|
215
|
-
body = JSON.stringify(serializeAws_json1_1CreateDataSourceFromRedshiftInput(input, context));
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
export const serializeAws_json1_1CreateDataSourceFromS3Command = async (
|
|
220
|
-
input: CreateDataSourceFromS3CommandInput,
|
|
221
|
-
context: __SerdeContext
|
|
222
|
-
): Promise<__HttpRequest> => {
|
|
223
|
-
const headers: __HeaderBag = {
|
|
224
|
-
"content-type": "application/x-amz-json-1.1",
|
|
225
|
-
"x-amz-target": "AmazonML_20141212.CreateDataSourceFromS3",
|
|
226
|
-
};
|
|
227
|
-
let body: any;
|
|
228
|
-
body = JSON.stringify(serializeAws_json1_1CreateDataSourceFromS3Input(input, context));
|
|
229
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
export const serializeAws_json1_1CreateEvaluationCommand = async (
|
|
233
|
-
input: CreateEvaluationCommandInput,
|
|
234
|
-
context: __SerdeContext
|
|
235
|
-
): Promise<__HttpRequest> => {
|
|
236
|
-
const headers: __HeaderBag = {
|
|
237
|
-
"content-type": "application/x-amz-json-1.1",
|
|
238
|
-
"x-amz-target": "AmazonML_20141212.CreateEvaluation",
|
|
239
|
-
};
|
|
240
|
-
let body: any;
|
|
241
|
-
body = JSON.stringify(serializeAws_json1_1CreateEvaluationInput(input, context));
|
|
242
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
export const serializeAws_json1_1CreateMLModelCommand = async (
|
|
246
|
-
input: CreateMLModelCommandInput,
|
|
247
|
-
context: __SerdeContext
|
|
248
|
-
): Promise<__HttpRequest> => {
|
|
249
|
-
const headers: __HeaderBag = {
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "AmazonML_20141212.CreateMLModel",
|
|
252
|
-
};
|
|
253
|
-
let body: any;
|
|
254
|
-
body = JSON.stringify(serializeAws_json1_1CreateMLModelInput(input, context));
|
|
255
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
export const serializeAws_json1_1CreateRealtimeEndpointCommand = async (
|
|
259
|
-
input: CreateRealtimeEndpointCommandInput,
|
|
260
|
-
context: __SerdeContext
|
|
261
|
-
): Promise<__HttpRequest> => {
|
|
262
|
-
const headers: __HeaderBag = {
|
|
263
|
-
"content-type": "application/x-amz-json-1.1",
|
|
264
|
-
"x-amz-target": "AmazonML_20141212.CreateRealtimeEndpoint",
|
|
265
|
-
};
|
|
266
|
-
let body: any;
|
|
267
|
-
body = JSON.stringify(serializeAws_json1_1CreateRealtimeEndpointInput(input, context));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
export const serializeAws_json1_1DeleteBatchPredictionCommand = async (
|
|
272
|
-
input: DeleteBatchPredictionCommandInput,
|
|
273
|
-
context: __SerdeContext
|
|
274
|
-
): Promise<__HttpRequest> => {
|
|
275
|
-
const headers: __HeaderBag = {
|
|
276
|
-
"content-type": "application/x-amz-json-1.1",
|
|
277
|
-
"x-amz-target": "AmazonML_20141212.DeleteBatchPrediction",
|
|
278
|
-
};
|
|
279
|
-
let body: any;
|
|
280
|
-
body = JSON.stringify(serializeAws_json1_1DeleteBatchPredictionInput(input, context));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
export const serializeAws_json1_1DeleteDataSourceCommand = async (
|
|
285
|
-
input: DeleteDataSourceCommandInput,
|
|
286
|
-
context: __SerdeContext
|
|
287
|
-
): Promise<__HttpRequest> => {
|
|
288
|
-
const headers: __HeaderBag = {
|
|
289
|
-
"content-type": "application/x-amz-json-1.1",
|
|
290
|
-
"x-amz-target": "AmazonML_20141212.DeleteDataSource",
|
|
291
|
-
};
|
|
292
|
-
let body: any;
|
|
293
|
-
body = JSON.stringify(serializeAws_json1_1DeleteDataSourceInput(input, context));
|
|
294
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
export const serializeAws_json1_1DeleteEvaluationCommand = async (
|
|
298
|
-
input: DeleteEvaluationCommandInput,
|
|
299
|
-
context: __SerdeContext
|
|
300
|
-
): Promise<__HttpRequest> => {
|
|
301
|
-
const headers: __HeaderBag = {
|
|
302
|
-
"content-type": "application/x-amz-json-1.1",
|
|
303
|
-
"x-amz-target": "AmazonML_20141212.DeleteEvaluation",
|
|
304
|
-
};
|
|
305
|
-
let body: any;
|
|
306
|
-
body = JSON.stringify(serializeAws_json1_1DeleteEvaluationInput(input, context));
|
|
307
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
export const serializeAws_json1_1DeleteMLModelCommand = async (
|
|
311
|
-
input: DeleteMLModelCommandInput,
|
|
312
|
-
context: __SerdeContext
|
|
313
|
-
): Promise<__HttpRequest> => {
|
|
314
|
-
const headers: __HeaderBag = {
|
|
315
|
-
"content-type": "application/x-amz-json-1.1",
|
|
316
|
-
"x-amz-target": "AmazonML_20141212.DeleteMLModel",
|
|
317
|
-
};
|
|
318
|
-
let body: any;
|
|
319
|
-
body = JSON.stringify(serializeAws_json1_1DeleteMLModelInput(input, context));
|
|
320
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
export const serializeAws_json1_1DeleteRealtimeEndpointCommand = async (
|
|
324
|
-
input: DeleteRealtimeEndpointCommandInput,
|
|
325
|
-
context: __SerdeContext
|
|
326
|
-
): Promise<__HttpRequest> => {
|
|
327
|
-
const headers: __HeaderBag = {
|
|
328
|
-
"content-type": "application/x-amz-json-1.1",
|
|
329
|
-
"x-amz-target": "AmazonML_20141212.DeleteRealtimeEndpoint",
|
|
330
|
-
};
|
|
331
|
-
let body: any;
|
|
332
|
-
body = JSON.stringify(serializeAws_json1_1DeleteRealtimeEndpointInput(input, context));
|
|
333
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
export const serializeAws_json1_1DeleteTagsCommand = async (
|
|
337
|
-
input: DeleteTagsCommandInput,
|
|
338
|
-
context: __SerdeContext
|
|
339
|
-
): Promise<__HttpRequest> => {
|
|
340
|
-
const headers: __HeaderBag = {
|
|
341
|
-
"content-type": "application/x-amz-json-1.1",
|
|
342
|
-
"x-amz-target": "AmazonML_20141212.DeleteTags",
|
|
343
|
-
};
|
|
344
|
-
let body: any;
|
|
345
|
-
body = JSON.stringify(serializeAws_json1_1DeleteTagsInput(input, context));
|
|
346
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
export const serializeAws_json1_1DescribeBatchPredictionsCommand = async (
|
|
350
|
-
input: DescribeBatchPredictionsCommandInput,
|
|
351
|
-
context: __SerdeContext
|
|
352
|
-
): Promise<__HttpRequest> => {
|
|
353
|
-
const headers: __HeaderBag = {
|
|
354
|
-
"content-type": "application/x-amz-json-1.1",
|
|
355
|
-
"x-amz-target": "AmazonML_20141212.DescribeBatchPredictions",
|
|
356
|
-
};
|
|
357
|
-
let body: any;
|
|
358
|
-
body = JSON.stringify(serializeAws_json1_1DescribeBatchPredictionsInput(input, context));
|
|
359
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
export const serializeAws_json1_1DescribeDataSourcesCommand = async (
|
|
363
|
-
input: DescribeDataSourcesCommandInput,
|
|
364
|
-
context: __SerdeContext
|
|
365
|
-
): Promise<__HttpRequest> => {
|
|
366
|
-
const headers: __HeaderBag = {
|
|
367
|
-
"content-type": "application/x-amz-json-1.1",
|
|
368
|
-
"x-amz-target": "AmazonML_20141212.DescribeDataSources",
|
|
369
|
-
};
|
|
370
|
-
let body: any;
|
|
371
|
-
body = JSON.stringify(serializeAws_json1_1DescribeDataSourcesInput(input, context));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
export const serializeAws_json1_1DescribeEvaluationsCommand = async (
|
|
376
|
-
input: DescribeEvaluationsCommandInput,
|
|
377
|
-
context: __SerdeContext
|
|
378
|
-
): Promise<__HttpRequest> => {
|
|
379
|
-
const headers: __HeaderBag = {
|
|
380
|
-
"content-type": "application/x-amz-json-1.1",
|
|
381
|
-
"x-amz-target": "AmazonML_20141212.DescribeEvaluations",
|
|
382
|
-
};
|
|
383
|
-
let body: any;
|
|
384
|
-
body = JSON.stringify(serializeAws_json1_1DescribeEvaluationsInput(input, context));
|
|
385
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
export const serializeAws_json1_1DescribeMLModelsCommand = async (
|
|
389
|
-
input: DescribeMLModelsCommandInput,
|
|
390
|
-
context: __SerdeContext
|
|
391
|
-
): Promise<__HttpRequest> => {
|
|
392
|
-
const headers: __HeaderBag = {
|
|
393
|
-
"content-type": "application/x-amz-json-1.1",
|
|
394
|
-
"x-amz-target": "AmazonML_20141212.DescribeMLModels",
|
|
395
|
-
};
|
|
396
|
-
let body: any;
|
|
397
|
-
body = JSON.stringify(serializeAws_json1_1DescribeMLModelsInput(input, context));
|
|
398
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
export const serializeAws_json1_1DescribeTagsCommand = async (
|
|
402
|
-
input: DescribeTagsCommandInput,
|
|
403
|
-
context: __SerdeContext
|
|
404
|
-
): Promise<__HttpRequest> => {
|
|
405
|
-
const headers: __HeaderBag = {
|
|
406
|
-
"content-type": "application/x-amz-json-1.1",
|
|
407
|
-
"x-amz-target": "AmazonML_20141212.DescribeTags",
|
|
408
|
-
};
|
|
409
|
-
let body: any;
|
|
410
|
-
body = JSON.stringify(serializeAws_json1_1DescribeTagsInput(input, context));
|
|
411
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
export const serializeAws_json1_1GetBatchPredictionCommand = async (
|
|
415
|
-
input: GetBatchPredictionCommandInput,
|
|
416
|
-
context: __SerdeContext
|
|
417
|
-
): Promise<__HttpRequest> => {
|
|
418
|
-
const headers: __HeaderBag = {
|
|
419
|
-
"content-type": "application/x-amz-json-1.1",
|
|
420
|
-
"x-amz-target": "AmazonML_20141212.GetBatchPrediction",
|
|
421
|
-
};
|
|
422
|
-
let body: any;
|
|
423
|
-
body = JSON.stringify(serializeAws_json1_1GetBatchPredictionInput(input, context));
|
|
424
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
export const serializeAws_json1_1GetDataSourceCommand = async (
|
|
428
|
-
input: GetDataSourceCommandInput,
|
|
429
|
-
context: __SerdeContext
|
|
430
|
-
): Promise<__HttpRequest> => {
|
|
431
|
-
const headers: __HeaderBag = {
|
|
432
|
-
"content-type": "application/x-amz-json-1.1",
|
|
433
|
-
"x-amz-target": "AmazonML_20141212.GetDataSource",
|
|
434
|
-
};
|
|
435
|
-
let body: any;
|
|
436
|
-
body = JSON.stringify(serializeAws_json1_1GetDataSourceInput(input, context));
|
|
437
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
export const serializeAws_json1_1GetEvaluationCommand = async (
|
|
441
|
-
input: GetEvaluationCommandInput,
|
|
442
|
-
context: __SerdeContext
|
|
443
|
-
): Promise<__HttpRequest> => {
|
|
444
|
-
const headers: __HeaderBag = {
|
|
445
|
-
"content-type": "application/x-amz-json-1.1",
|
|
446
|
-
"x-amz-target": "AmazonML_20141212.GetEvaluation",
|
|
447
|
-
};
|
|
448
|
-
let body: any;
|
|
449
|
-
body = JSON.stringify(serializeAws_json1_1GetEvaluationInput(input, context));
|
|
450
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
export const serializeAws_json1_1GetMLModelCommand = async (
|
|
454
|
-
input: GetMLModelCommandInput,
|
|
455
|
-
context: __SerdeContext
|
|
456
|
-
): Promise<__HttpRequest> => {
|
|
457
|
-
const headers: __HeaderBag = {
|
|
458
|
-
"content-type": "application/x-amz-json-1.1",
|
|
459
|
-
"x-amz-target": "AmazonML_20141212.GetMLModel",
|
|
460
|
-
};
|
|
461
|
-
let body: any;
|
|
462
|
-
body = JSON.stringify(serializeAws_json1_1GetMLModelInput(input, context));
|
|
463
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
export const serializeAws_json1_1PredictCommand = async (
|
|
467
|
-
input: PredictCommandInput,
|
|
468
|
-
context: __SerdeContext
|
|
469
|
-
): Promise<__HttpRequest> => {
|
|
470
|
-
const headers: __HeaderBag = {
|
|
471
|
-
"content-type": "application/x-amz-json-1.1",
|
|
472
|
-
"x-amz-target": "AmazonML_20141212.Predict",
|
|
473
|
-
};
|
|
474
|
-
let body: any;
|
|
475
|
-
body = JSON.stringify(serializeAws_json1_1PredictInput(input, context));
|
|
476
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
export const serializeAws_json1_1UpdateBatchPredictionCommand = async (
|
|
480
|
-
input: UpdateBatchPredictionCommandInput,
|
|
481
|
-
context: __SerdeContext
|
|
482
|
-
): Promise<__HttpRequest> => {
|
|
483
|
-
const headers: __HeaderBag = {
|
|
484
|
-
"content-type": "application/x-amz-json-1.1",
|
|
485
|
-
"x-amz-target": "AmazonML_20141212.UpdateBatchPrediction",
|
|
486
|
-
};
|
|
487
|
-
let body: any;
|
|
488
|
-
body = JSON.stringify(serializeAws_json1_1UpdateBatchPredictionInput(input, context));
|
|
489
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
export const serializeAws_json1_1UpdateDataSourceCommand = async (
|
|
493
|
-
input: UpdateDataSourceCommandInput,
|
|
494
|
-
context: __SerdeContext
|
|
495
|
-
): Promise<__HttpRequest> => {
|
|
496
|
-
const headers: __HeaderBag = {
|
|
497
|
-
"content-type": "application/x-amz-json-1.1",
|
|
498
|
-
"x-amz-target": "AmazonML_20141212.UpdateDataSource",
|
|
499
|
-
};
|
|
500
|
-
let body: any;
|
|
501
|
-
body = JSON.stringify(serializeAws_json1_1UpdateDataSourceInput(input, context));
|
|
502
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
export const serializeAws_json1_1UpdateEvaluationCommand = async (
|
|
506
|
-
input: UpdateEvaluationCommandInput,
|
|
507
|
-
context: __SerdeContext
|
|
508
|
-
): Promise<__HttpRequest> => {
|
|
509
|
-
const headers: __HeaderBag = {
|
|
510
|
-
"content-type": "application/x-amz-json-1.1",
|
|
511
|
-
"x-amz-target": "AmazonML_20141212.UpdateEvaluation",
|
|
512
|
-
};
|
|
513
|
-
let body: any;
|
|
514
|
-
body = JSON.stringify(serializeAws_json1_1UpdateEvaluationInput(input, context));
|
|
515
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
export const serializeAws_json1_1UpdateMLModelCommand = async (
|
|
519
|
-
input: UpdateMLModelCommandInput,
|
|
520
|
-
context: __SerdeContext
|
|
521
|
-
): Promise<__HttpRequest> => {
|
|
522
|
-
const headers: __HeaderBag = {
|
|
523
|
-
"content-type": "application/x-amz-json-1.1",
|
|
524
|
-
"x-amz-target": "AmazonML_20141212.UpdateMLModel",
|
|
525
|
-
};
|
|
526
|
-
let body: any;
|
|
527
|
-
body = JSON.stringify(serializeAws_json1_1UpdateMLModelInput(input, context));
|
|
528
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
529
|
-
};
|
|
530
|
-
|
|
531
|
-
export const deserializeAws_json1_1AddTagsCommand = async (
|
|
532
|
-
output: __HttpResponse,
|
|
533
|
-
context: __SerdeContext
|
|
534
|
-
): Promise<AddTagsCommandOutput> => {
|
|
535
|
-
if (output.statusCode >= 300) {
|
|
536
|
-
return deserializeAws_json1_1AddTagsCommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
const data: any = await parseBody(output.body, context);
|
|
539
|
-
let contents: any = {};
|
|
540
|
-
contents = deserializeAws_json1_1AddTagsOutput(data, context);
|
|
541
|
-
const response: AddTagsCommandOutput = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
...contents,
|
|
544
|
-
};
|
|
545
|
-
return Promise.resolve(response);
|
|
546
|
-
};
|
|
547
|
-
|
|
548
|
-
const deserializeAws_json1_1AddTagsCommandError = async (
|
|
549
|
-
output: __HttpResponse,
|
|
550
|
-
context: __SerdeContext
|
|
551
|
-
): Promise<AddTagsCommandOutput> => {
|
|
552
|
-
const parsedOutput: any = {
|
|
553
|
-
...output,
|
|
554
|
-
body: await parseBody(output.body, context),
|
|
555
|
-
};
|
|
556
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
557
|
-
let errorCode: string = "UnknownError";
|
|
558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
|
-
switch (errorCode) {
|
|
560
|
-
case "InternalServerException":
|
|
561
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
562
|
-
response = {
|
|
563
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
564
|
-
name: errorCode,
|
|
565
|
-
$metadata: deserializeMetadata(output),
|
|
566
|
-
};
|
|
567
|
-
break;
|
|
568
|
-
case "InvalidInputException":
|
|
569
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
570
|
-
response = {
|
|
571
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
572
|
-
name: errorCode,
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
};
|
|
575
|
-
break;
|
|
576
|
-
case "InvalidTagException":
|
|
577
|
-
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
578
|
-
response = {
|
|
579
|
-
...(await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)),
|
|
580
|
-
name: errorCode,
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
};
|
|
583
|
-
break;
|
|
584
|
-
case "ResourceNotFoundException":
|
|
585
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
586
|
-
response = {
|
|
587
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
588
|
-
name: errorCode,
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
};
|
|
591
|
-
break;
|
|
592
|
-
case "TagLimitExceededException":
|
|
593
|
-
case "com.amazonaws.machinelearning#TagLimitExceededException":
|
|
594
|
-
response = {
|
|
595
|
-
...(await deserializeAws_json1_1TagLimitExceededExceptionResponse(parsedOutput, context)),
|
|
596
|
-
name: errorCode,
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
};
|
|
599
|
-
break;
|
|
600
|
-
default:
|
|
601
|
-
const parsedBody = parsedOutput.body;
|
|
602
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
603
|
-
response = {
|
|
604
|
-
...parsedBody,
|
|
605
|
-
name: `${errorCode}`,
|
|
606
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
607
|
-
$fault: "client",
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
} as any;
|
|
610
|
-
}
|
|
611
|
-
const message = response.message || response.Message || errorCode;
|
|
612
|
-
response.message = message;
|
|
613
|
-
delete response.Message;
|
|
614
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
export const deserializeAws_json1_1CreateBatchPredictionCommand = async (
|
|
618
|
-
output: __HttpResponse,
|
|
619
|
-
context: __SerdeContext
|
|
620
|
-
): Promise<CreateBatchPredictionCommandOutput> => {
|
|
621
|
-
if (output.statusCode >= 300) {
|
|
622
|
-
return deserializeAws_json1_1CreateBatchPredictionCommandError(output, context);
|
|
623
|
-
}
|
|
624
|
-
const data: any = await parseBody(output.body, context);
|
|
625
|
-
let contents: any = {};
|
|
626
|
-
contents = deserializeAws_json1_1CreateBatchPredictionOutput(data, context);
|
|
627
|
-
const response: CreateBatchPredictionCommandOutput = {
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
...contents,
|
|
630
|
-
};
|
|
631
|
-
return Promise.resolve(response);
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
const deserializeAws_json1_1CreateBatchPredictionCommandError = async (
|
|
635
|
-
output: __HttpResponse,
|
|
636
|
-
context: __SerdeContext
|
|
637
|
-
): Promise<CreateBatchPredictionCommandOutput> => {
|
|
638
|
-
const parsedOutput: any = {
|
|
639
|
-
...output,
|
|
640
|
-
body: await parseBody(output.body, context),
|
|
641
|
-
};
|
|
642
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
643
|
-
let errorCode: string = "UnknownError";
|
|
644
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
|
-
switch (errorCode) {
|
|
646
|
-
case "IdempotentParameterMismatchException":
|
|
647
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
648
|
-
response = {
|
|
649
|
-
...(await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)),
|
|
650
|
-
name: errorCode,
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
};
|
|
653
|
-
break;
|
|
654
|
-
case "InternalServerException":
|
|
655
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
656
|
-
response = {
|
|
657
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
658
|
-
name: errorCode,
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
};
|
|
661
|
-
break;
|
|
662
|
-
case "InvalidInputException":
|
|
663
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
664
|
-
response = {
|
|
665
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
666
|
-
name: errorCode,
|
|
667
|
-
$metadata: deserializeMetadata(output),
|
|
668
|
-
};
|
|
669
|
-
break;
|
|
670
|
-
default:
|
|
671
|
-
const parsedBody = parsedOutput.body;
|
|
672
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
673
|
-
response = {
|
|
674
|
-
...parsedBody,
|
|
675
|
-
name: `${errorCode}`,
|
|
676
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
677
|
-
$fault: "client",
|
|
678
|
-
$metadata: deserializeMetadata(output),
|
|
679
|
-
} as any;
|
|
680
|
-
}
|
|
681
|
-
const message = response.message || response.Message || errorCode;
|
|
682
|
-
response.message = message;
|
|
683
|
-
delete response.Message;
|
|
684
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
685
|
-
};
|
|
686
|
-
|
|
687
|
-
export const deserializeAws_json1_1CreateDataSourceFromRDSCommand = async (
|
|
688
|
-
output: __HttpResponse,
|
|
689
|
-
context: __SerdeContext
|
|
690
|
-
): Promise<CreateDataSourceFromRDSCommandOutput> => {
|
|
691
|
-
if (output.statusCode >= 300) {
|
|
692
|
-
return deserializeAws_json1_1CreateDataSourceFromRDSCommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const data: any = await parseBody(output.body, context);
|
|
695
|
-
let contents: any = {};
|
|
696
|
-
contents = deserializeAws_json1_1CreateDataSourceFromRDSOutput(data, context);
|
|
697
|
-
const response: CreateDataSourceFromRDSCommandOutput = {
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
...contents,
|
|
700
|
-
};
|
|
701
|
-
return Promise.resolve(response);
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
const deserializeAws_json1_1CreateDataSourceFromRDSCommandError = async (
|
|
705
|
-
output: __HttpResponse,
|
|
706
|
-
context: __SerdeContext
|
|
707
|
-
): Promise<CreateDataSourceFromRDSCommandOutput> => {
|
|
708
|
-
const parsedOutput: any = {
|
|
709
|
-
...output,
|
|
710
|
-
body: await parseBody(output.body, context),
|
|
711
|
-
};
|
|
712
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
713
|
-
let errorCode: string = "UnknownError";
|
|
714
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
-
switch (errorCode) {
|
|
716
|
-
case "IdempotentParameterMismatchException":
|
|
717
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
718
|
-
response = {
|
|
719
|
-
...(await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)),
|
|
720
|
-
name: errorCode,
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
};
|
|
723
|
-
break;
|
|
724
|
-
case "InternalServerException":
|
|
725
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
726
|
-
response = {
|
|
727
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
728
|
-
name: errorCode,
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
};
|
|
731
|
-
break;
|
|
732
|
-
case "InvalidInputException":
|
|
733
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
734
|
-
response = {
|
|
735
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
736
|
-
name: errorCode,
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
};
|
|
739
|
-
break;
|
|
740
|
-
default:
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
743
|
-
response = {
|
|
744
|
-
...parsedBody,
|
|
745
|
-
name: `${errorCode}`,
|
|
746
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
747
|
-
$fault: "client",
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
} as any;
|
|
750
|
-
}
|
|
751
|
-
const message = response.message || response.Message || errorCode;
|
|
752
|
-
response.message = message;
|
|
753
|
-
delete response.Message;
|
|
754
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
755
|
-
};
|
|
756
|
-
|
|
757
|
-
export const deserializeAws_json1_1CreateDataSourceFromRedshiftCommand = async (
|
|
758
|
-
output: __HttpResponse,
|
|
759
|
-
context: __SerdeContext
|
|
760
|
-
): Promise<CreateDataSourceFromRedshiftCommandOutput> => {
|
|
761
|
-
if (output.statusCode >= 300) {
|
|
762
|
-
return deserializeAws_json1_1CreateDataSourceFromRedshiftCommandError(output, context);
|
|
763
|
-
}
|
|
764
|
-
const data: any = await parseBody(output.body, context);
|
|
765
|
-
let contents: any = {};
|
|
766
|
-
contents = deserializeAws_json1_1CreateDataSourceFromRedshiftOutput(data, context);
|
|
767
|
-
const response: CreateDataSourceFromRedshiftCommandOutput = {
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
...contents,
|
|
770
|
-
};
|
|
771
|
-
return Promise.resolve(response);
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
const deserializeAws_json1_1CreateDataSourceFromRedshiftCommandError = async (
|
|
775
|
-
output: __HttpResponse,
|
|
776
|
-
context: __SerdeContext
|
|
777
|
-
): Promise<CreateDataSourceFromRedshiftCommandOutput> => {
|
|
778
|
-
const parsedOutput: any = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseBody(output.body, context),
|
|
781
|
-
};
|
|
782
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
783
|
-
let errorCode: string = "UnknownError";
|
|
784
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
-
switch (errorCode) {
|
|
786
|
-
case "IdempotentParameterMismatchException":
|
|
787
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
788
|
-
response = {
|
|
789
|
-
...(await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)),
|
|
790
|
-
name: errorCode,
|
|
791
|
-
$metadata: deserializeMetadata(output),
|
|
792
|
-
};
|
|
793
|
-
break;
|
|
794
|
-
case "InternalServerException":
|
|
795
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
796
|
-
response = {
|
|
797
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
798
|
-
name: errorCode,
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
};
|
|
801
|
-
break;
|
|
802
|
-
case "InvalidInputException":
|
|
803
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
804
|
-
response = {
|
|
805
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
806
|
-
name: errorCode,
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
};
|
|
809
|
-
break;
|
|
810
|
-
default:
|
|
811
|
-
const parsedBody = parsedOutput.body;
|
|
812
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
813
|
-
response = {
|
|
814
|
-
...parsedBody,
|
|
815
|
-
name: `${errorCode}`,
|
|
816
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
817
|
-
$fault: "client",
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
} as any;
|
|
820
|
-
}
|
|
821
|
-
const message = response.message || response.Message || errorCode;
|
|
822
|
-
response.message = message;
|
|
823
|
-
delete response.Message;
|
|
824
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
825
|
-
};
|
|
826
|
-
|
|
827
|
-
export const deserializeAws_json1_1CreateDataSourceFromS3Command = async (
|
|
828
|
-
output: __HttpResponse,
|
|
829
|
-
context: __SerdeContext
|
|
830
|
-
): Promise<CreateDataSourceFromS3CommandOutput> => {
|
|
831
|
-
if (output.statusCode >= 300) {
|
|
832
|
-
return deserializeAws_json1_1CreateDataSourceFromS3CommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const data: any = await parseBody(output.body, context);
|
|
835
|
-
let contents: any = {};
|
|
836
|
-
contents = deserializeAws_json1_1CreateDataSourceFromS3Output(data, context);
|
|
837
|
-
const response: CreateDataSourceFromS3CommandOutput = {
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
...contents,
|
|
840
|
-
};
|
|
841
|
-
return Promise.resolve(response);
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
const deserializeAws_json1_1CreateDataSourceFromS3CommandError = async (
|
|
845
|
-
output: __HttpResponse,
|
|
846
|
-
context: __SerdeContext
|
|
847
|
-
): Promise<CreateDataSourceFromS3CommandOutput> => {
|
|
848
|
-
const parsedOutput: any = {
|
|
849
|
-
...output,
|
|
850
|
-
body: await parseBody(output.body, context),
|
|
851
|
-
};
|
|
852
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
853
|
-
let errorCode: string = "UnknownError";
|
|
854
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "IdempotentParameterMismatchException":
|
|
857
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
858
|
-
response = {
|
|
859
|
-
...(await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)),
|
|
860
|
-
name: errorCode,
|
|
861
|
-
$metadata: deserializeMetadata(output),
|
|
862
|
-
};
|
|
863
|
-
break;
|
|
864
|
-
case "InternalServerException":
|
|
865
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
866
|
-
response = {
|
|
867
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
868
|
-
name: errorCode,
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
};
|
|
871
|
-
break;
|
|
872
|
-
case "InvalidInputException":
|
|
873
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
874
|
-
response = {
|
|
875
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
876
|
-
name: errorCode,
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
};
|
|
879
|
-
break;
|
|
880
|
-
default:
|
|
881
|
-
const parsedBody = parsedOutput.body;
|
|
882
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
883
|
-
response = {
|
|
884
|
-
...parsedBody,
|
|
885
|
-
name: `${errorCode}`,
|
|
886
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
887
|
-
$fault: "client",
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
} as any;
|
|
890
|
-
}
|
|
891
|
-
const message = response.message || response.Message || errorCode;
|
|
892
|
-
response.message = message;
|
|
893
|
-
delete response.Message;
|
|
894
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
895
|
-
};
|
|
896
|
-
|
|
897
|
-
export const deserializeAws_json1_1CreateEvaluationCommand = async (
|
|
898
|
-
output: __HttpResponse,
|
|
899
|
-
context: __SerdeContext
|
|
900
|
-
): Promise<CreateEvaluationCommandOutput> => {
|
|
901
|
-
if (output.statusCode >= 300) {
|
|
902
|
-
return deserializeAws_json1_1CreateEvaluationCommandError(output, context);
|
|
903
|
-
}
|
|
904
|
-
const data: any = await parseBody(output.body, context);
|
|
905
|
-
let contents: any = {};
|
|
906
|
-
contents = deserializeAws_json1_1CreateEvaluationOutput(data, context);
|
|
907
|
-
const response: CreateEvaluationCommandOutput = {
|
|
908
|
-
$metadata: deserializeMetadata(output),
|
|
909
|
-
...contents,
|
|
910
|
-
};
|
|
911
|
-
return Promise.resolve(response);
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
const deserializeAws_json1_1CreateEvaluationCommandError = async (
|
|
915
|
-
output: __HttpResponse,
|
|
916
|
-
context: __SerdeContext
|
|
917
|
-
): Promise<CreateEvaluationCommandOutput> => {
|
|
918
|
-
const parsedOutput: any = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await parseBody(output.body, context),
|
|
921
|
-
};
|
|
922
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
923
|
-
let errorCode: string = "UnknownError";
|
|
924
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
-
switch (errorCode) {
|
|
926
|
-
case "IdempotentParameterMismatchException":
|
|
927
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
928
|
-
response = {
|
|
929
|
-
...(await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)),
|
|
930
|
-
name: errorCode,
|
|
931
|
-
$metadata: deserializeMetadata(output),
|
|
932
|
-
};
|
|
933
|
-
break;
|
|
934
|
-
case "InternalServerException":
|
|
935
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
936
|
-
response = {
|
|
937
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
938
|
-
name: errorCode,
|
|
939
|
-
$metadata: deserializeMetadata(output),
|
|
940
|
-
};
|
|
941
|
-
break;
|
|
942
|
-
case "InvalidInputException":
|
|
943
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
944
|
-
response = {
|
|
945
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
946
|
-
name: errorCode,
|
|
947
|
-
$metadata: deserializeMetadata(output),
|
|
948
|
-
};
|
|
949
|
-
break;
|
|
950
|
-
default:
|
|
951
|
-
const parsedBody = parsedOutput.body;
|
|
952
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
953
|
-
response = {
|
|
954
|
-
...parsedBody,
|
|
955
|
-
name: `${errorCode}`,
|
|
956
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
957
|
-
$fault: "client",
|
|
958
|
-
$metadata: deserializeMetadata(output),
|
|
959
|
-
} as any;
|
|
960
|
-
}
|
|
961
|
-
const message = response.message || response.Message || errorCode;
|
|
962
|
-
response.message = message;
|
|
963
|
-
delete response.Message;
|
|
964
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
965
|
-
};
|
|
966
|
-
|
|
967
|
-
export const deserializeAws_json1_1CreateMLModelCommand = async (
|
|
968
|
-
output: __HttpResponse,
|
|
969
|
-
context: __SerdeContext
|
|
970
|
-
): Promise<CreateMLModelCommandOutput> => {
|
|
971
|
-
if (output.statusCode >= 300) {
|
|
972
|
-
return deserializeAws_json1_1CreateMLModelCommandError(output, context);
|
|
973
|
-
}
|
|
974
|
-
const data: any = await parseBody(output.body, context);
|
|
975
|
-
let contents: any = {};
|
|
976
|
-
contents = deserializeAws_json1_1CreateMLModelOutput(data, context);
|
|
977
|
-
const response: CreateMLModelCommandOutput = {
|
|
978
|
-
$metadata: deserializeMetadata(output),
|
|
979
|
-
...contents,
|
|
980
|
-
};
|
|
981
|
-
return Promise.resolve(response);
|
|
982
|
-
};
|
|
983
|
-
|
|
984
|
-
const deserializeAws_json1_1CreateMLModelCommandError = async (
|
|
985
|
-
output: __HttpResponse,
|
|
986
|
-
context: __SerdeContext
|
|
987
|
-
): Promise<CreateMLModelCommandOutput> => {
|
|
988
|
-
const parsedOutput: any = {
|
|
989
|
-
...output,
|
|
990
|
-
body: await parseBody(output.body, context),
|
|
991
|
-
};
|
|
992
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
993
|
-
let errorCode: string = "UnknownError";
|
|
994
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
|
-
switch (errorCode) {
|
|
996
|
-
case "IdempotentParameterMismatchException":
|
|
997
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
998
|
-
response = {
|
|
999
|
-
...(await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)),
|
|
1000
|
-
name: errorCode,
|
|
1001
|
-
$metadata: deserializeMetadata(output),
|
|
1002
|
-
};
|
|
1003
|
-
break;
|
|
1004
|
-
case "InternalServerException":
|
|
1005
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1006
|
-
response = {
|
|
1007
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1008
|
-
name: errorCode,
|
|
1009
|
-
$metadata: deserializeMetadata(output),
|
|
1010
|
-
};
|
|
1011
|
-
break;
|
|
1012
|
-
case "InvalidInputException":
|
|
1013
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1014
|
-
response = {
|
|
1015
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1016
|
-
name: errorCode,
|
|
1017
|
-
$metadata: deserializeMetadata(output),
|
|
1018
|
-
};
|
|
1019
|
-
break;
|
|
1020
|
-
default:
|
|
1021
|
-
const parsedBody = parsedOutput.body;
|
|
1022
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1023
|
-
response = {
|
|
1024
|
-
...parsedBody,
|
|
1025
|
-
name: `${errorCode}`,
|
|
1026
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1027
|
-
$fault: "client",
|
|
1028
|
-
$metadata: deserializeMetadata(output),
|
|
1029
|
-
} as any;
|
|
1030
|
-
}
|
|
1031
|
-
const message = response.message || response.Message || errorCode;
|
|
1032
|
-
response.message = message;
|
|
1033
|
-
delete response.Message;
|
|
1034
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1035
|
-
};
|
|
1036
|
-
|
|
1037
|
-
export const deserializeAws_json1_1CreateRealtimeEndpointCommand = async (
|
|
1038
|
-
output: __HttpResponse,
|
|
1039
|
-
context: __SerdeContext
|
|
1040
|
-
): Promise<CreateRealtimeEndpointCommandOutput> => {
|
|
1041
|
-
if (output.statusCode >= 300) {
|
|
1042
|
-
return deserializeAws_json1_1CreateRealtimeEndpointCommandError(output, context);
|
|
1043
|
-
}
|
|
1044
|
-
const data: any = await parseBody(output.body, context);
|
|
1045
|
-
let contents: any = {};
|
|
1046
|
-
contents = deserializeAws_json1_1CreateRealtimeEndpointOutput(data, context);
|
|
1047
|
-
const response: CreateRealtimeEndpointCommandOutput = {
|
|
1048
|
-
$metadata: deserializeMetadata(output),
|
|
1049
|
-
...contents,
|
|
1050
|
-
};
|
|
1051
|
-
return Promise.resolve(response);
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
|
-
const deserializeAws_json1_1CreateRealtimeEndpointCommandError = async (
|
|
1055
|
-
output: __HttpResponse,
|
|
1056
|
-
context: __SerdeContext
|
|
1057
|
-
): Promise<CreateRealtimeEndpointCommandOutput> => {
|
|
1058
|
-
const parsedOutput: any = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseBody(output.body, context),
|
|
1061
|
-
};
|
|
1062
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1063
|
-
let errorCode: string = "UnknownError";
|
|
1064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1065
|
-
switch (errorCode) {
|
|
1066
|
-
case "InternalServerException":
|
|
1067
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1068
|
-
response = {
|
|
1069
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1070
|
-
name: errorCode,
|
|
1071
|
-
$metadata: deserializeMetadata(output),
|
|
1072
|
-
};
|
|
1073
|
-
break;
|
|
1074
|
-
case "InvalidInputException":
|
|
1075
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1076
|
-
response = {
|
|
1077
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1078
|
-
name: errorCode,
|
|
1079
|
-
$metadata: deserializeMetadata(output),
|
|
1080
|
-
};
|
|
1081
|
-
break;
|
|
1082
|
-
case "ResourceNotFoundException":
|
|
1083
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1084
|
-
response = {
|
|
1085
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1086
|
-
name: errorCode,
|
|
1087
|
-
$metadata: deserializeMetadata(output),
|
|
1088
|
-
};
|
|
1089
|
-
break;
|
|
1090
|
-
default:
|
|
1091
|
-
const parsedBody = parsedOutput.body;
|
|
1092
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1093
|
-
response = {
|
|
1094
|
-
...parsedBody,
|
|
1095
|
-
name: `${errorCode}`,
|
|
1096
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1097
|
-
$fault: "client",
|
|
1098
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
-
} as any;
|
|
1100
|
-
}
|
|
1101
|
-
const message = response.message || response.Message || errorCode;
|
|
1102
|
-
response.message = message;
|
|
1103
|
-
delete response.Message;
|
|
1104
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1105
|
-
};
|
|
1106
|
-
|
|
1107
|
-
export const deserializeAws_json1_1DeleteBatchPredictionCommand = async (
|
|
1108
|
-
output: __HttpResponse,
|
|
1109
|
-
context: __SerdeContext
|
|
1110
|
-
): Promise<DeleteBatchPredictionCommandOutput> => {
|
|
1111
|
-
if (output.statusCode >= 300) {
|
|
1112
|
-
return deserializeAws_json1_1DeleteBatchPredictionCommandError(output, context);
|
|
1113
|
-
}
|
|
1114
|
-
const data: any = await parseBody(output.body, context);
|
|
1115
|
-
let contents: any = {};
|
|
1116
|
-
contents = deserializeAws_json1_1DeleteBatchPredictionOutput(data, context);
|
|
1117
|
-
const response: DeleteBatchPredictionCommandOutput = {
|
|
1118
|
-
$metadata: deserializeMetadata(output),
|
|
1119
|
-
...contents,
|
|
1120
|
-
};
|
|
1121
|
-
return Promise.resolve(response);
|
|
1122
|
-
};
|
|
1123
|
-
|
|
1124
|
-
const deserializeAws_json1_1DeleteBatchPredictionCommandError = async (
|
|
1125
|
-
output: __HttpResponse,
|
|
1126
|
-
context: __SerdeContext
|
|
1127
|
-
): Promise<DeleteBatchPredictionCommandOutput> => {
|
|
1128
|
-
const parsedOutput: any = {
|
|
1129
|
-
...output,
|
|
1130
|
-
body: await parseBody(output.body, context),
|
|
1131
|
-
};
|
|
1132
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1133
|
-
let errorCode: string = "UnknownError";
|
|
1134
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
-
switch (errorCode) {
|
|
1136
|
-
case "InternalServerException":
|
|
1137
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1138
|
-
response = {
|
|
1139
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1140
|
-
name: errorCode,
|
|
1141
|
-
$metadata: deserializeMetadata(output),
|
|
1142
|
-
};
|
|
1143
|
-
break;
|
|
1144
|
-
case "InvalidInputException":
|
|
1145
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1146
|
-
response = {
|
|
1147
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1148
|
-
name: errorCode,
|
|
1149
|
-
$metadata: deserializeMetadata(output),
|
|
1150
|
-
};
|
|
1151
|
-
break;
|
|
1152
|
-
case "ResourceNotFoundException":
|
|
1153
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1154
|
-
response = {
|
|
1155
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1156
|
-
name: errorCode,
|
|
1157
|
-
$metadata: deserializeMetadata(output),
|
|
1158
|
-
};
|
|
1159
|
-
break;
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1163
|
-
response = {
|
|
1164
|
-
...parsedBody,
|
|
1165
|
-
name: `${errorCode}`,
|
|
1166
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1167
|
-
$fault: "client",
|
|
1168
|
-
$metadata: deserializeMetadata(output),
|
|
1169
|
-
} as any;
|
|
1170
|
-
}
|
|
1171
|
-
const message = response.message || response.Message || errorCode;
|
|
1172
|
-
response.message = message;
|
|
1173
|
-
delete response.Message;
|
|
1174
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
|
-
export const deserializeAws_json1_1DeleteDataSourceCommand = async (
|
|
1178
|
-
output: __HttpResponse,
|
|
1179
|
-
context: __SerdeContext
|
|
1180
|
-
): Promise<DeleteDataSourceCommandOutput> => {
|
|
1181
|
-
if (output.statusCode >= 300) {
|
|
1182
|
-
return deserializeAws_json1_1DeleteDataSourceCommandError(output, context);
|
|
1183
|
-
}
|
|
1184
|
-
const data: any = await parseBody(output.body, context);
|
|
1185
|
-
let contents: any = {};
|
|
1186
|
-
contents = deserializeAws_json1_1DeleteDataSourceOutput(data, context);
|
|
1187
|
-
const response: DeleteDataSourceCommandOutput = {
|
|
1188
|
-
$metadata: deserializeMetadata(output),
|
|
1189
|
-
...contents,
|
|
1190
|
-
};
|
|
1191
|
-
return Promise.resolve(response);
|
|
1192
|
-
};
|
|
1193
|
-
|
|
1194
|
-
const deserializeAws_json1_1DeleteDataSourceCommandError = async (
|
|
1195
|
-
output: __HttpResponse,
|
|
1196
|
-
context: __SerdeContext
|
|
1197
|
-
): Promise<DeleteDataSourceCommandOutput> => {
|
|
1198
|
-
const parsedOutput: any = {
|
|
1199
|
-
...output,
|
|
1200
|
-
body: await parseBody(output.body, context),
|
|
1201
|
-
};
|
|
1202
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1203
|
-
let errorCode: string = "UnknownError";
|
|
1204
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
|
-
switch (errorCode) {
|
|
1206
|
-
case "InternalServerException":
|
|
1207
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1208
|
-
response = {
|
|
1209
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1210
|
-
name: errorCode,
|
|
1211
|
-
$metadata: deserializeMetadata(output),
|
|
1212
|
-
};
|
|
1213
|
-
break;
|
|
1214
|
-
case "InvalidInputException":
|
|
1215
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1216
|
-
response = {
|
|
1217
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1218
|
-
name: errorCode,
|
|
1219
|
-
$metadata: deserializeMetadata(output),
|
|
1220
|
-
};
|
|
1221
|
-
break;
|
|
1222
|
-
case "ResourceNotFoundException":
|
|
1223
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1224
|
-
response = {
|
|
1225
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1226
|
-
name: errorCode,
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
};
|
|
1229
|
-
break;
|
|
1230
|
-
default:
|
|
1231
|
-
const parsedBody = parsedOutput.body;
|
|
1232
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1233
|
-
response = {
|
|
1234
|
-
...parsedBody,
|
|
1235
|
-
name: `${errorCode}`,
|
|
1236
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1237
|
-
$fault: "client",
|
|
1238
|
-
$metadata: deserializeMetadata(output),
|
|
1239
|
-
} as any;
|
|
1240
|
-
}
|
|
1241
|
-
const message = response.message || response.Message || errorCode;
|
|
1242
|
-
response.message = message;
|
|
1243
|
-
delete response.Message;
|
|
1244
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1245
|
-
};
|
|
1246
|
-
|
|
1247
|
-
export const deserializeAws_json1_1DeleteEvaluationCommand = async (
|
|
1248
|
-
output: __HttpResponse,
|
|
1249
|
-
context: __SerdeContext
|
|
1250
|
-
): Promise<DeleteEvaluationCommandOutput> => {
|
|
1251
|
-
if (output.statusCode >= 300) {
|
|
1252
|
-
return deserializeAws_json1_1DeleteEvaluationCommandError(output, context);
|
|
1253
|
-
}
|
|
1254
|
-
const data: any = await parseBody(output.body, context);
|
|
1255
|
-
let contents: any = {};
|
|
1256
|
-
contents = deserializeAws_json1_1DeleteEvaluationOutput(data, context);
|
|
1257
|
-
const response: DeleteEvaluationCommandOutput = {
|
|
1258
|
-
$metadata: deserializeMetadata(output),
|
|
1259
|
-
...contents,
|
|
1260
|
-
};
|
|
1261
|
-
return Promise.resolve(response);
|
|
1262
|
-
};
|
|
1263
|
-
|
|
1264
|
-
const deserializeAws_json1_1DeleteEvaluationCommandError = async (
|
|
1265
|
-
output: __HttpResponse,
|
|
1266
|
-
context: __SerdeContext
|
|
1267
|
-
): Promise<DeleteEvaluationCommandOutput> => {
|
|
1268
|
-
const parsedOutput: any = {
|
|
1269
|
-
...output,
|
|
1270
|
-
body: await parseBody(output.body, context),
|
|
1271
|
-
};
|
|
1272
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1273
|
-
let errorCode: string = "UnknownError";
|
|
1274
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
|
-
switch (errorCode) {
|
|
1276
|
-
case "InternalServerException":
|
|
1277
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1278
|
-
response = {
|
|
1279
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1280
|
-
name: errorCode,
|
|
1281
|
-
$metadata: deserializeMetadata(output),
|
|
1282
|
-
};
|
|
1283
|
-
break;
|
|
1284
|
-
case "InvalidInputException":
|
|
1285
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1286
|
-
response = {
|
|
1287
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1288
|
-
name: errorCode,
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
};
|
|
1291
|
-
break;
|
|
1292
|
-
case "ResourceNotFoundException":
|
|
1293
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1294
|
-
response = {
|
|
1295
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1296
|
-
name: errorCode,
|
|
1297
|
-
$metadata: deserializeMetadata(output),
|
|
1298
|
-
};
|
|
1299
|
-
break;
|
|
1300
|
-
default:
|
|
1301
|
-
const parsedBody = parsedOutput.body;
|
|
1302
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1303
|
-
response = {
|
|
1304
|
-
...parsedBody,
|
|
1305
|
-
name: `${errorCode}`,
|
|
1306
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1307
|
-
$fault: "client",
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
} as any;
|
|
1310
|
-
}
|
|
1311
|
-
const message = response.message || response.Message || errorCode;
|
|
1312
|
-
response.message = message;
|
|
1313
|
-
delete response.Message;
|
|
1314
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1315
|
-
};
|
|
1316
|
-
|
|
1317
|
-
export const deserializeAws_json1_1DeleteMLModelCommand = async (
|
|
1318
|
-
output: __HttpResponse,
|
|
1319
|
-
context: __SerdeContext
|
|
1320
|
-
): Promise<DeleteMLModelCommandOutput> => {
|
|
1321
|
-
if (output.statusCode >= 300) {
|
|
1322
|
-
return deserializeAws_json1_1DeleteMLModelCommandError(output, context);
|
|
1323
|
-
}
|
|
1324
|
-
const data: any = await parseBody(output.body, context);
|
|
1325
|
-
let contents: any = {};
|
|
1326
|
-
contents = deserializeAws_json1_1DeleteMLModelOutput(data, context);
|
|
1327
|
-
const response: DeleteMLModelCommandOutput = {
|
|
1328
|
-
$metadata: deserializeMetadata(output),
|
|
1329
|
-
...contents,
|
|
1330
|
-
};
|
|
1331
|
-
return Promise.resolve(response);
|
|
1332
|
-
};
|
|
1333
|
-
|
|
1334
|
-
const deserializeAws_json1_1DeleteMLModelCommandError = async (
|
|
1335
|
-
output: __HttpResponse,
|
|
1336
|
-
context: __SerdeContext
|
|
1337
|
-
): Promise<DeleteMLModelCommandOutput> => {
|
|
1338
|
-
const parsedOutput: any = {
|
|
1339
|
-
...output,
|
|
1340
|
-
body: await parseBody(output.body, context),
|
|
1341
|
-
};
|
|
1342
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1343
|
-
let errorCode: string = "UnknownError";
|
|
1344
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
-
switch (errorCode) {
|
|
1346
|
-
case "InternalServerException":
|
|
1347
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1348
|
-
response = {
|
|
1349
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1350
|
-
name: errorCode,
|
|
1351
|
-
$metadata: deserializeMetadata(output),
|
|
1352
|
-
};
|
|
1353
|
-
break;
|
|
1354
|
-
case "InvalidInputException":
|
|
1355
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1356
|
-
response = {
|
|
1357
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1358
|
-
name: errorCode,
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
};
|
|
1361
|
-
break;
|
|
1362
|
-
case "ResourceNotFoundException":
|
|
1363
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1364
|
-
response = {
|
|
1365
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1366
|
-
name: errorCode,
|
|
1367
|
-
$metadata: deserializeMetadata(output),
|
|
1368
|
-
};
|
|
1369
|
-
break;
|
|
1370
|
-
default:
|
|
1371
|
-
const parsedBody = parsedOutput.body;
|
|
1372
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1373
|
-
response = {
|
|
1374
|
-
...parsedBody,
|
|
1375
|
-
name: `${errorCode}`,
|
|
1376
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1377
|
-
$fault: "client",
|
|
1378
|
-
$metadata: deserializeMetadata(output),
|
|
1379
|
-
} as any;
|
|
1380
|
-
}
|
|
1381
|
-
const message = response.message || response.Message || errorCode;
|
|
1382
|
-
response.message = message;
|
|
1383
|
-
delete response.Message;
|
|
1384
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1385
|
-
};
|
|
1386
|
-
|
|
1387
|
-
export const deserializeAws_json1_1DeleteRealtimeEndpointCommand = async (
|
|
1388
|
-
output: __HttpResponse,
|
|
1389
|
-
context: __SerdeContext
|
|
1390
|
-
): Promise<DeleteRealtimeEndpointCommandOutput> => {
|
|
1391
|
-
if (output.statusCode >= 300) {
|
|
1392
|
-
return deserializeAws_json1_1DeleteRealtimeEndpointCommandError(output, context);
|
|
1393
|
-
}
|
|
1394
|
-
const data: any = await parseBody(output.body, context);
|
|
1395
|
-
let contents: any = {};
|
|
1396
|
-
contents = deserializeAws_json1_1DeleteRealtimeEndpointOutput(data, context);
|
|
1397
|
-
const response: DeleteRealtimeEndpointCommandOutput = {
|
|
1398
|
-
$metadata: deserializeMetadata(output),
|
|
1399
|
-
...contents,
|
|
1400
|
-
};
|
|
1401
|
-
return Promise.resolve(response);
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
|
-
const deserializeAws_json1_1DeleteRealtimeEndpointCommandError = async (
|
|
1405
|
-
output: __HttpResponse,
|
|
1406
|
-
context: __SerdeContext
|
|
1407
|
-
): Promise<DeleteRealtimeEndpointCommandOutput> => {
|
|
1408
|
-
const parsedOutput: any = {
|
|
1409
|
-
...output,
|
|
1410
|
-
body: await parseBody(output.body, context),
|
|
1411
|
-
};
|
|
1412
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1413
|
-
let errorCode: string = "UnknownError";
|
|
1414
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
|
-
switch (errorCode) {
|
|
1416
|
-
case "InternalServerException":
|
|
1417
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1418
|
-
response = {
|
|
1419
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1420
|
-
name: errorCode,
|
|
1421
|
-
$metadata: deserializeMetadata(output),
|
|
1422
|
-
};
|
|
1423
|
-
break;
|
|
1424
|
-
case "InvalidInputException":
|
|
1425
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1426
|
-
response = {
|
|
1427
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1428
|
-
name: errorCode,
|
|
1429
|
-
$metadata: deserializeMetadata(output),
|
|
1430
|
-
};
|
|
1431
|
-
break;
|
|
1432
|
-
case "ResourceNotFoundException":
|
|
1433
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1434
|
-
response = {
|
|
1435
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1436
|
-
name: errorCode,
|
|
1437
|
-
$metadata: deserializeMetadata(output),
|
|
1438
|
-
};
|
|
1439
|
-
break;
|
|
1440
|
-
default:
|
|
1441
|
-
const parsedBody = parsedOutput.body;
|
|
1442
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1443
|
-
response = {
|
|
1444
|
-
...parsedBody,
|
|
1445
|
-
name: `${errorCode}`,
|
|
1446
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1447
|
-
$fault: "client",
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
} as any;
|
|
1450
|
-
}
|
|
1451
|
-
const message = response.message || response.Message || errorCode;
|
|
1452
|
-
response.message = message;
|
|
1453
|
-
delete response.Message;
|
|
1454
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1455
|
-
};
|
|
1456
|
-
|
|
1457
|
-
export const deserializeAws_json1_1DeleteTagsCommand = async (
|
|
1458
|
-
output: __HttpResponse,
|
|
1459
|
-
context: __SerdeContext
|
|
1460
|
-
): Promise<DeleteTagsCommandOutput> => {
|
|
1461
|
-
if (output.statusCode >= 300) {
|
|
1462
|
-
return deserializeAws_json1_1DeleteTagsCommandError(output, context);
|
|
1463
|
-
}
|
|
1464
|
-
const data: any = await parseBody(output.body, context);
|
|
1465
|
-
let contents: any = {};
|
|
1466
|
-
contents = deserializeAws_json1_1DeleteTagsOutput(data, context);
|
|
1467
|
-
const response: DeleteTagsCommandOutput = {
|
|
1468
|
-
$metadata: deserializeMetadata(output),
|
|
1469
|
-
...contents,
|
|
1470
|
-
};
|
|
1471
|
-
return Promise.resolve(response);
|
|
1472
|
-
};
|
|
1473
|
-
|
|
1474
|
-
const deserializeAws_json1_1DeleteTagsCommandError = async (
|
|
1475
|
-
output: __HttpResponse,
|
|
1476
|
-
context: __SerdeContext
|
|
1477
|
-
): Promise<DeleteTagsCommandOutput> => {
|
|
1478
|
-
const parsedOutput: any = {
|
|
1479
|
-
...output,
|
|
1480
|
-
body: await parseBody(output.body, context),
|
|
1481
|
-
};
|
|
1482
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1483
|
-
let errorCode: string = "UnknownError";
|
|
1484
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
|
-
switch (errorCode) {
|
|
1486
|
-
case "InternalServerException":
|
|
1487
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1488
|
-
response = {
|
|
1489
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1490
|
-
name: errorCode,
|
|
1491
|
-
$metadata: deserializeMetadata(output),
|
|
1492
|
-
};
|
|
1493
|
-
break;
|
|
1494
|
-
case "InvalidInputException":
|
|
1495
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1496
|
-
response = {
|
|
1497
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1498
|
-
name: errorCode,
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
};
|
|
1501
|
-
break;
|
|
1502
|
-
case "InvalidTagException":
|
|
1503
|
-
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
1504
|
-
response = {
|
|
1505
|
-
...(await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)),
|
|
1506
|
-
name: errorCode,
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
};
|
|
1509
|
-
break;
|
|
1510
|
-
case "ResourceNotFoundException":
|
|
1511
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1512
|
-
response = {
|
|
1513
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1514
|
-
name: errorCode,
|
|
1515
|
-
$metadata: deserializeMetadata(output),
|
|
1516
|
-
};
|
|
1517
|
-
break;
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1521
|
-
response = {
|
|
1522
|
-
...parsedBody,
|
|
1523
|
-
name: `${errorCode}`,
|
|
1524
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1525
|
-
$fault: "client",
|
|
1526
|
-
$metadata: deserializeMetadata(output),
|
|
1527
|
-
} as any;
|
|
1528
|
-
}
|
|
1529
|
-
const message = response.message || response.Message || errorCode;
|
|
1530
|
-
response.message = message;
|
|
1531
|
-
delete response.Message;
|
|
1532
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1533
|
-
};
|
|
1534
|
-
|
|
1535
|
-
export const deserializeAws_json1_1DescribeBatchPredictionsCommand = async (
|
|
1536
|
-
output: __HttpResponse,
|
|
1537
|
-
context: __SerdeContext
|
|
1538
|
-
): Promise<DescribeBatchPredictionsCommandOutput> => {
|
|
1539
|
-
if (output.statusCode >= 300) {
|
|
1540
|
-
return deserializeAws_json1_1DescribeBatchPredictionsCommandError(output, context);
|
|
1541
|
-
}
|
|
1542
|
-
const data: any = await parseBody(output.body, context);
|
|
1543
|
-
let contents: any = {};
|
|
1544
|
-
contents = deserializeAws_json1_1DescribeBatchPredictionsOutput(data, context);
|
|
1545
|
-
const response: DescribeBatchPredictionsCommandOutput = {
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
...contents,
|
|
1548
|
-
};
|
|
1549
|
-
return Promise.resolve(response);
|
|
1550
|
-
};
|
|
1551
|
-
|
|
1552
|
-
const deserializeAws_json1_1DescribeBatchPredictionsCommandError = async (
|
|
1553
|
-
output: __HttpResponse,
|
|
1554
|
-
context: __SerdeContext
|
|
1555
|
-
): Promise<DescribeBatchPredictionsCommandOutput> => {
|
|
1556
|
-
const parsedOutput: any = {
|
|
1557
|
-
...output,
|
|
1558
|
-
body: await parseBody(output.body, context),
|
|
1559
|
-
};
|
|
1560
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1561
|
-
let errorCode: string = "UnknownError";
|
|
1562
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
|
-
switch (errorCode) {
|
|
1564
|
-
case "InternalServerException":
|
|
1565
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1566
|
-
response = {
|
|
1567
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1568
|
-
name: errorCode,
|
|
1569
|
-
$metadata: deserializeMetadata(output),
|
|
1570
|
-
};
|
|
1571
|
-
break;
|
|
1572
|
-
case "InvalidInputException":
|
|
1573
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1574
|
-
response = {
|
|
1575
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1576
|
-
name: errorCode,
|
|
1577
|
-
$metadata: deserializeMetadata(output),
|
|
1578
|
-
};
|
|
1579
|
-
break;
|
|
1580
|
-
default:
|
|
1581
|
-
const parsedBody = parsedOutput.body;
|
|
1582
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1583
|
-
response = {
|
|
1584
|
-
...parsedBody,
|
|
1585
|
-
name: `${errorCode}`,
|
|
1586
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1587
|
-
$fault: "client",
|
|
1588
|
-
$metadata: deserializeMetadata(output),
|
|
1589
|
-
} as any;
|
|
1590
|
-
}
|
|
1591
|
-
const message = response.message || response.Message || errorCode;
|
|
1592
|
-
response.message = message;
|
|
1593
|
-
delete response.Message;
|
|
1594
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1595
|
-
};
|
|
1596
|
-
|
|
1597
|
-
export const deserializeAws_json1_1DescribeDataSourcesCommand = async (
|
|
1598
|
-
output: __HttpResponse,
|
|
1599
|
-
context: __SerdeContext
|
|
1600
|
-
): Promise<DescribeDataSourcesCommandOutput> => {
|
|
1601
|
-
if (output.statusCode >= 300) {
|
|
1602
|
-
return deserializeAws_json1_1DescribeDataSourcesCommandError(output, context);
|
|
1603
|
-
}
|
|
1604
|
-
const data: any = await parseBody(output.body, context);
|
|
1605
|
-
let contents: any = {};
|
|
1606
|
-
contents = deserializeAws_json1_1DescribeDataSourcesOutput(data, context);
|
|
1607
|
-
const response: DescribeDataSourcesCommandOutput = {
|
|
1608
|
-
$metadata: deserializeMetadata(output),
|
|
1609
|
-
...contents,
|
|
1610
|
-
};
|
|
1611
|
-
return Promise.resolve(response);
|
|
1612
|
-
};
|
|
1613
|
-
|
|
1614
|
-
const deserializeAws_json1_1DescribeDataSourcesCommandError = async (
|
|
1615
|
-
output: __HttpResponse,
|
|
1616
|
-
context: __SerdeContext
|
|
1617
|
-
): Promise<DescribeDataSourcesCommandOutput> => {
|
|
1618
|
-
const parsedOutput: any = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseBody(output.body, context),
|
|
1621
|
-
};
|
|
1622
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1623
|
-
let errorCode: string = "UnknownError";
|
|
1624
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
|
-
switch (errorCode) {
|
|
1626
|
-
case "InternalServerException":
|
|
1627
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1628
|
-
response = {
|
|
1629
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1630
|
-
name: errorCode,
|
|
1631
|
-
$metadata: deserializeMetadata(output),
|
|
1632
|
-
};
|
|
1633
|
-
break;
|
|
1634
|
-
case "InvalidInputException":
|
|
1635
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1636
|
-
response = {
|
|
1637
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1638
|
-
name: errorCode,
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
};
|
|
1641
|
-
break;
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1645
|
-
response = {
|
|
1646
|
-
...parsedBody,
|
|
1647
|
-
name: `${errorCode}`,
|
|
1648
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1649
|
-
$fault: "client",
|
|
1650
|
-
$metadata: deserializeMetadata(output),
|
|
1651
|
-
} as any;
|
|
1652
|
-
}
|
|
1653
|
-
const message = response.message || response.Message || errorCode;
|
|
1654
|
-
response.message = message;
|
|
1655
|
-
delete response.Message;
|
|
1656
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1657
|
-
};
|
|
1658
|
-
|
|
1659
|
-
export const deserializeAws_json1_1DescribeEvaluationsCommand = async (
|
|
1660
|
-
output: __HttpResponse,
|
|
1661
|
-
context: __SerdeContext
|
|
1662
|
-
): Promise<DescribeEvaluationsCommandOutput> => {
|
|
1663
|
-
if (output.statusCode >= 300) {
|
|
1664
|
-
return deserializeAws_json1_1DescribeEvaluationsCommandError(output, context);
|
|
1665
|
-
}
|
|
1666
|
-
const data: any = await parseBody(output.body, context);
|
|
1667
|
-
let contents: any = {};
|
|
1668
|
-
contents = deserializeAws_json1_1DescribeEvaluationsOutput(data, context);
|
|
1669
|
-
const response: DescribeEvaluationsCommandOutput = {
|
|
1670
|
-
$metadata: deserializeMetadata(output),
|
|
1671
|
-
...contents,
|
|
1672
|
-
};
|
|
1673
|
-
return Promise.resolve(response);
|
|
1674
|
-
};
|
|
1675
|
-
|
|
1676
|
-
const deserializeAws_json1_1DescribeEvaluationsCommandError = async (
|
|
1677
|
-
output: __HttpResponse,
|
|
1678
|
-
context: __SerdeContext
|
|
1679
|
-
): Promise<DescribeEvaluationsCommandOutput> => {
|
|
1680
|
-
const parsedOutput: any = {
|
|
1681
|
-
...output,
|
|
1682
|
-
body: await parseBody(output.body, context),
|
|
1683
|
-
};
|
|
1684
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1685
|
-
let errorCode: string = "UnknownError";
|
|
1686
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
|
-
switch (errorCode) {
|
|
1688
|
-
case "InternalServerException":
|
|
1689
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1690
|
-
response = {
|
|
1691
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1692
|
-
name: errorCode,
|
|
1693
|
-
$metadata: deserializeMetadata(output),
|
|
1694
|
-
};
|
|
1695
|
-
break;
|
|
1696
|
-
case "InvalidInputException":
|
|
1697
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1698
|
-
response = {
|
|
1699
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1700
|
-
name: errorCode,
|
|
1701
|
-
$metadata: deserializeMetadata(output),
|
|
1702
|
-
};
|
|
1703
|
-
break;
|
|
1704
|
-
default:
|
|
1705
|
-
const parsedBody = parsedOutput.body;
|
|
1706
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1707
|
-
response = {
|
|
1708
|
-
...parsedBody,
|
|
1709
|
-
name: `${errorCode}`,
|
|
1710
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1711
|
-
$fault: "client",
|
|
1712
|
-
$metadata: deserializeMetadata(output),
|
|
1713
|
-
} as any;
|
|
1714
|
-
}
|
|
1715
|
-
const message = response.message || response.Message || errorCode;
|
|
1716
|
-
response.message = message;
|
|
1717
|
-
delete response.Message;
|
|
1718
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1719
|
-
};
|
|
1720
|
-
|
|
1721
|
-
export const deserializeAws_json1_1DescribeMLModelsCommand = async (
|
|
1722
|
-
output: __HttpResponse,
|
|
1723
|
-
context: __SerdeContext
|
|
1724
|
-
): Promise<DescribeMLModelsCommandOutput> => {
|
|
1725
|
-
if (output.statusCode >= 300) {
|
|
1726
|
-
return deserializeAws_json1_1DescribeMLModelsCommandError(output, context);
|
|
1727
|
-
}
|
|
1728
|
-
const data: any = await parseBody(output.body, context);
|
|
1729
|
-
let contents: any = {};
|
|
1730
|
-
contents = deserializeAws_json1_1DescribeMLModelsOutput(data, context);
|
|
1731
|
-
const response: DescribeMLModelsCommandOutput = {
|
|
1732
|
-
$metadata: deserializeMetadata(output),
|
|
1733
|
-
...contents,
|
|
1734
|
-
};
|
|
1735
|
-
return Promise.resolve(response);
|
|
1736
|
-
};
|
|
1737
|
-
|
|
1738
|
-
const deserializeAws_json1_1DescribeMLModelsCommandError = async (
|
|
1739
|
-
output: __HttpResponse,
|
|
1740
|
-
context: __SerdeContext
|
|
1741
|
-
): Promise<DescribeMLModelsCommandOutput> => {
|
|
1742
|
-
const parsedOutput: any = {
|
|
1743
|
-
...output,
|
|
1744
|
-
body: await parseBody(output.body, context),
|
|
1745
|
-
};
|
|
1746
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1747
|
-
let errorCode: string = "UnknownError";
|
|
1748
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
|
-
switch (errorCode) {
|
|
1750
|
-
case "InternalServerException":
|
|
1751
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1752
|
-
response = {
|
|
1753
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1754
|
-
name: errorCode,
|
|
1755
|
-
$metadata: deserializeMetadata(output),
|
|
1756
|
-
};
|
|
1757
|
-
break;
|
|
1758
|
-
case "InvalidInputException":
|
|
1759
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1760
|
-
response = {
|
|
1761
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1762
|
-
name: errorCode,
|
|
1763
|
-
$metadata: deserializeMetadata(output),
|
|
1764
|
-
};
|
|
1765
|
-
break;
|
|
1766
|
-
default:
|
|
1767
|
-
const parsedBody = parsedOutput.body;
|
|
1768
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1769
|
-
response = {
|
|
1770
|
-
...parsedBody,
|
|
1771
|
-
name: `${errorCode}`,
|
|
1772
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1773
|
-
$fault: "client",
|
|
1774
|
-
$metadata: deserializeMetadata(output),
|
|
1775
|
-
} as any;
|
|
1776
|
-
}
|
|
1777
|
-
const message = response.message || response.Message || errorCode;
|
|
1778
|
-
response.message = message;
|
|
1779
|
-
delete response.Message;
|
|
1780
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1781
|
-
};
|
|
1782
|
-
|
|
1783
|
-
export const deserializeAws_json1_1DescribeTagsCommand = async (
|
|
1784
|
-
output: __HttpResponse,
|
|
1785
|
-
context: __SerdeContext
|
|
1786
|
-
): Promise<DescribeTagsCommandOutput> => {
|
|
1787
|
-
if (output.statusCode >= 300) {
|
|
1788
|
-
return deserializeAws_json1_1DescribeTagsCommandError(output, context);
|
|
1789
|
-
}
|
|
1790
|
-
const data: any = await parseBody(output.body, context);
|
|
1791
|
-
let contents: any = {};
|
|
1792
|
-
contents = deserializeAws_json1_1DescribeTagsOutput(data, context);
|
|
1793
|
-
const response: DescribeTagsCommandOutput = {
|
|
1794
|
-
$metadata: deserializeMetadata(output),
|
|
1795
|
-
...contents,
|
|
1796
|
-
};
|
|
1797
|
-
return Promise.resolve(response);
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
|
-
const deserializeAws_json1_1DescribeTagsCommandError = async (
|
|
1801
|
-
output: __HttpResponse,
|
|
1802
|
-
context: __SerdeContext
|
|
1803
|
-
): Promise<DescribeTagsCommandOutput> => {
|
|
1804
|
-
const parsedOutput: any = {
|
|
1805
|
-
...output,
|
|
1806
|
-
body: await parseBody(output.body, context),
|
|
1807
|
-
};
|
|
1808
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1809
|
-
let errorCode: string = "UnknownError";
|
|
1810
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
|
-
switch (errorCode) {
|
|
1812
|
-
case "InternalServerException":
|
|
1813
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1814
|
-
response = {
|
|
1815
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1816
|
-
name: errorCode,
|
|
1817
|
-
$metadata: deserializeMetadata(output),
|
|
1818
|
-
};
|
|
1819
|
-
break;
|
|
1820
|
-
case "InvalidInputException":
|
|
1821
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1822
|
-
response = {
|
|
1823
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1824
|
-
name: errorCode,
|
|
1825
|
-
$metadata: deserializeMetadata(output),
|
|
1826
|
-
};
|
|
1827
|
-
break;
|
|
1828
|
-
case "ResourceNotFoundException":
|
|
1829
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1830
|
-
response = {
|
|
1831
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1832
|
-
name: errorCode,
|
|
1833
|
-
$metadata: deserializeMetadata(output),
|
|
1834
|
-
};
|
|
1835
|
-
break;
|
|
1836
|
-
default:
|
|
1837
|
-
const parsedBody = parsedOutput.body;
|
|
1838
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1839
|
-
response = {
|
|
1840
|
-
...parsedBody,
|
|
1841
|
-
name: `${errorCode}`,
|
|
1842
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1843
|
-
$fault: "client",
|
|
1844
|
-
$metadata: deserializeMetadata(output),
|
|
1845
|
-
} as any;
|
|
1846
|
-
}
|
|
1847
|
-
const message = response.message || response.Message || errorCode;
|
|
1848
|
-
response.message = message;
|
|
1849
|
-
delete response.Message;
|
|
1850
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1851
|
-
};
|
|
1852
|
-
|
|
1853
|
-
export const deserializeAws_json1_1GetBatchPredictionCommand = async (
|
|
1854
|
-
output: __HttpResponse,
|
|
1855
|
-
context: __SerdeContext
|
|
1856
|
-
): Promise<GetBatchPredictionCommandOutput> => {
|
|
1857
|
-
if (output.statusCode >= 300) {
|
|
1858
|
-
return deserializeAws_json1_1GetBatchPredictionCommandError(output, context);
|
|
1859
|
-
}
|
|
1860
|
-
const data: any = await parseBody(output.body, context);
|
|
1861
|
-
let contents: any = {};
|
|
1862
|
-
contents = deserializeAws_json1_1GetBatchPredictionOutput(data, context);
|
|
1863
|
-
const response: GetBatchPredictionCommandOutput = {
|
|
1864
|
-
$metadata: deserializeMetadata(output),
|
|
1865
|
-
...contents,
|
|
1866
|
-
};
|
|
1867
|
-
return Promise.resolve(response);
|
|
1868
|
-
};
|
|
1869
|
-
|
|
1870
|
-
const deserializeAws_json1_1GetBatchPredictionCommandError = async (
|
|
1871
|
-
output: __HttpResponse,
|
|
1872
|
-
context: __SerdeContext
|
|
1873
|
-
): Promise<GetBatchPredictionCommandOutput> => {
|
|
1874
|
-
const parsedOutput: any = {
|
|
1875
|
-
...output,
|
|
1876
|
-
body: await parseBody(output.body, context),
|
|
1877
|
-
};
|
|
1878
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1879
|
-
let errorCode: string = "UnknownError";
|
|
1880
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1881
|
-
switch (errorCode) {
|
|
1882
|
-
case "InternalServerException":
|
|
1883
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1884
|
-
response = {
|
|
1885
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1886
|
-
name: errorCode,
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
};
|
|
1889
|
-
break;
|
|
1890
|
-
case "InvalidInputException":
|
|
1891
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1892
|
-
response = {
|
|
1893
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1894
|
-
name: errorCode,
|
|
1895
|
-
$metadata: deserializeMetadata(output),
|
|
1896
|
-
};
|
|
1897
|
-
break;
|
|
1898
|
-
case "ResourceNotFoundException":
|
|
1899
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1900
|
-
response = {
|
|
1901
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1902
|
-
name: errorCode,
|
|
1903
|
-
$metadata: deserializeMetadata(output),
|
|
1904
|
-
};
|
|
1905
|
-
break;
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1909
|
-
response = {
|
|
1910
|
-
...parsedBody,
|
|
1911
|
-
name: `${errorCode}`,
|
|
1912
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1913
|
-
$fault: "client",
|
|
1914
|
-
$metadata: deserializeMetadata(output),
|
|
1915
|
-
} as any;
|
|
1916
|
-
}
|
|
1917
|
-
const message = response.message || response.Message || errorCode;
|
|
1918
|
-
response.message = message;
|
|
1919
|
-
delete response.Message;
|
|
1920
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1921
|
-
};
|
|
1922
|
-
|
|
1923
|
-
export const deserializeAws_json1_1GetDataSourceCommand = async (
|
|
1924
|
-
output: __HttpResponse,
|
|
1925
|
-
context: __SerdeContext
|
|
1926
|
-
): Promise<GetDataSourceCommandOutput> => {
|
|
1927
|
-
if (output.statusCode >= 300) {
|
|
1928
|
-
return deserializeAws_json1_1GetDataSourceCommandError(output, context);
|
|
1929
|
-
}
|
|
1930
|
-
const data: any = await parseBody(output.body, context);
|
|
1931
|
-
let contents: any = {};
|
|
1932
|
-
contents = deserializeAws_json1_1GetDataSourceOutput(data, context);
|
|
1933
|
-
const response: GetDataSourceCommandOutput = {
|
|
1934
|
-
$metadata: deserializeMetadata(output),
|
|
1935
|
-
...contents,
|
|
1936
|
-
};
|
|
1937
|
-
return Promise.resolve(response);
|
|
1938
|
-
};
|
|
1939
|
-
|
|
1940
|
-
const deserializeAws_json1_1GetDataSourceCommandError = async (
|
|
1941
|
-
output: __HttpResponse,
|
|
1942
|
-
context: __SerdeContext
|
|
1943
|
-
): Promise<GetDataSourceCommandOutput> => {
|
|
1944
|
-
const parsedOutput: any = {
|
|
1945
|
-
...output,
|
|
1946
|
-
body: await parseBody(output.body, context),
|
|
1947
|
-
};
|
|
1948
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1949
|
-
let errorCode: string = "UnknownError";
|
|
1950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
|
-
switch (errorCode) {
|
|
1952
|
-
case "InternalServerException":
|
|
1953
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1954
|
-
response = {
|
|
1955
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1956
|
-
name: errorCode,
|
|
1957
|
-
$metadata: deserializeMetadata(output),
|
|
1958
|
-
};
|
|
1959
|
-
break;
|
|
1960
|
-
case "InvalidInputException":
|
|
1961
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1962
|
-
response = {
|
|
1963
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1964
|
-
name: errorCode,
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
};
|
|
1967
|
-
break;
|
|
1968
|
-
case "ResourceNotFoundException":
|
|
1969
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1970
|
-
response = {
|
|
1971
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1972
|
-
name: errorCode,
|
|
1973
|
-
$metadata: deserializeMetadata(output),
|
|
1974
|
-
};
|
|
1975
|
-
break;
|
|
1976
|
-
default:
|
|
1977
|
-
const parsedBody = parsedOutput.body;
|
|
1978
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1979
|
-
response = {
|
|
1980
|
-
...parsedBody,
|
|
1981
|
-
name: `${errorCode}`,
|
|
1982
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1983
|
-
$fault: "client",
|
|
1984
|
-
$metadata: deserializeMetadata(output),
|
|
1985
|
-
} as any;
|
|
1986
|
-
}
|
|
1987
|
-
const message = response.message || response.Message || errorCode;
|
|
1988
|
-
response.message = message;
|
|
1989
|
-
delete response.Message;
|
|
1990
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1991
|
-
};
|
|
1992
|
-
|
|
1993
|
-
export const deserializeAws_json1_1GetEvaluationCommand = async (
|
|
1994
|
-
output: __HttpResponse,
|
|
1995
|
-
context: __SerdeContext
|
|
1996
|
-
): Promise<GetEvaluationCommandOutput> => {
|
|
1997
|
-
if (output.statusCode >= 300) {
|
|
1998
|
-
return deserializeAws_json1_1GetEvaluationCommandError(output, context);
|
|
1999
|
-
}
|
|
2000
|
-
const data: any = await parseBody(output.body, context);
|
|
2001
|
-
let contents: any = {};
|
|
2002
|
-
contents = deserializeAws_json1_1GetEvaluationOutput(data, context);
|
|
2003
|
-
const response: GetEvaluationCommandOutput = {
|
|
2004
|
-
$metadata: deserializeMetadata(output),
|
|
2005
|
-
...contents,
|
|
2006
|
-
};
|
|
2007
|
-
return Promise.resolve(response);
|
|
2008
|
-
};
|
|
2009
|
-
|
|
2010
|
-
const deserializeAws_json1_1GetEvaluationCommandError = async (
|
|
2011
|
-
output: __HttpResponse,
|
|
2012
|
-
context: __SerdeContext
|
|
2013
|
-
): Promise<GetEvaluationCommandOutput> => {
|
|
2014
|
-
const parsedOutput: any = {
|
|
2015
|
-
...output,
|
|
2016
|
-
body: await parseBody(output.body, context),
|
|
2017
|
-
};
|
|
2018
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2019
|
-
let errorCode: string = "UnknownError";
|
|
2020
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
|
-
switch (errorCode) {
|
|
2022
|
-
case "InternalServerException":
|
|
2023
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
2024
|
-
response = {
|
|
2025
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2026
|
-
name: errorCode,
|
|
2027
|
-
$metadata: deserializeMetadata(output),
|
|
2028
|
-
};
|
|
2029
|
-
break;
|
|
2030
|
-
case "InvalidInputException":
|
|
2031
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
2032
|
-
response = {
|
|
2033
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2034
|
-
name: errorCode,
|
|
2035
|
-
$metadata: deserializeMetadata(output),
|
|
2036
|
-
};
|
|
2037
|
-
break;
|
|
2038
|
-
case "ResourceNotFoundException":
|
|
2039
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
2040
|
-
response = {
|
|
2041
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2042
|
-
name: errorCode,
|
|
2043
|
-
$metadata: deserializeMetadata(output),
|
|
2044
|
-
};
|
|
2045
|
-
break;
|
|
2046
|
-
default:
|
|
2047
|
-
const parsedBody = parsedOutput.body;
|
|
2048
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2049
|
-
response = {
|
|
2050
|
-
...parsedBody,
|
|
2051
|
-
name: `${errorCode}`,
|
|
2052
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2053
|
-
$fault: "client",
|
|
2054
|
-
$metadata: deserializeMetadata(output),
|
|
2055
|
-
} as any;
|
|
2056
|
-
}
|
|
2057
|
-
const message = response.message || response.Message || errorCode;
|
|
2058
|
-
response.message = message;
|
|
2059
|
-
delete response.Message;
|
|
2060
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2061
|
-
};
|
|
2062
|
-
|
|
2063
|
-
export const deserializeAws_json1_1GetMLModelCommand = async (
|
|
2064
|
-
output: __HttpResponse,
|
|
2065
|
-
context: __SerdeContext
|
|
2066
|
-
): Promise<GetMLModelCommandOutput> => {
|
|
2067
|
-
if (output.statusCode >= 300) {
|
|
2068
|
-
return deserializeAws_json1_1GetMLModelCommandError(output, context);
|
|
2069
|
-
}
|
|
2070
|
-
const data: any = await parseBody(output.body, context);
|
|
2071
|
-
let contents: any = {};
|
|
2072
|
-
contents = deserializeAws_json1_1GetMLModelOutput(data, context);
|
|
2073
|
-
const response: GetMLModelCommandOutput = {
|
|
2074
|
-
$metadata: deserializeMetadata(output),
|
|
2075
|
-
...contents,
|
|
2076
|
-
};
|
|
2077
|
-
return Promise.resolve(response);
|
|
2078
|
-
};
|
|
2079
|
-
|
|
2080
|
-
const deserializeAws_json1_1GetMLModelCommandError = async (
|
|
2081
|
-
output: __HttpResponse,
|
|
2082
|
-
context: __SerdeContext
|
|
2083
|
-
): Promise<GetMLModelCommandOutput> => {
|
|
2084
|
-
const parsedOutput: any = {
|
|
2085
|
-
...output,
|
|
2086
|
-
body: await parseBody(output.body, context),
|
|
2087
|
-
};
|
|
2088
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2089
|
-
let errorCode: string = "UnknownError";
|
|
2090
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
-
switch (errorCode) {
|
|
2092
|
-
case "InternalServerException":
|
|
2093
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
2094
|
-
response = {
|
|
2095
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2096
|
-
name: errorCode,
|
|
2097
|
-
$metadata: deserializeMetadata(output),
|
|
2098
|
-
};
|
|
2099
|
-
break;
|
|
2100
|
-
case "InvalidInputException":
|
|
2101
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
2102
|
-
response = {
|
|
2103
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2104
|
-
name: errorCode,
|
|
2105
|
-
$metadata: deserializeMetadata(output),
|
|
2106
|
-
};
|
|
2107
|
-
break;
|
|
2108
|
-
case "ResourceNotFoundException":
|
|
2109
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
2110
|
-
response = {
|
|
2111
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2112
|
-
name: errorCode,
|
|
2113
|
-
$metadata: deserializeMetadata(output),
|
|
2114
|
-
};
|
|
2115
|
-
break;
|
|
2116
|
-
default:
|
|
2117
|
-
const parsedBody = parsedOutput.body;
|
|
2118
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2119
|
-
response = {
|
|
2120
|
-
...parsedBody,
|
|
2121
|
-
name: `${errorCode}`,
|
|
2122
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2123
|
-
$fault: "client",
|
|
2124
|
-
$metadata: deserializeMetadata(output),
|
|
2125
|
-
} as any;
|
|
2126
|
-
}
|
|
2127
|
-
const message = response.message || response.Message || errorCode;
|
|
2128
|
-
response.message = message;
|
|
2129
|
-
delete response.Message;
|
|
2130
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2131
|
-
};
|
|
2132
|
-
|
|
2133
|
-
export const deserializeAws_json1_1PredictCommand = async (
|
|
2134
|
-
output: __HttpResponse,
|
|
2135
|
-
context: __SerdeContext
|
|
2136
|
-
): Promise<PredictCommandOutput> => {
|
|
2137
|
-
if (output.statusCode >= 300) {
|
|
2138
|
-
return deserializeAws_json1_1PredictCommandError(output, context);
|
|
2139
|
-
}
|
|
2140
|
-
const data: any = await parseBody(output.body, context);
|
|
2141
|
-
let contents: any = {};
|
|
2142
|
-
contents = deserializeAws_json1_1PredictOutput(data, context);
|
|
2143
|
-
const response: PredictCommandOutput = {
|
|
2144
|
-
$metadata: deserializeMetadata(output),
|
|
2145
|
-
...contents,
|
|
2146
|
-
};
|
|
2147
|
-
return Promise.resolve(response);
|
|
2148
|
-
};
|
|
2149
|
-
|
|
2150
|
-
const deserializeAws_json1_1PredictCommandError = async (
|
|
2151
|
-
output: __HttpResponse,
|
|
2152
|
-
context: __SerdeContext
|
|
2153
|
-
): Promise<PredictCommandOutput> => {
|
|
2154
|
-
const parsedOutput: any = {
|
|
2155
|
-
...output,
|
|
2156
|
-
body: await parseBody(output.body, context),
|
|
2157
|
-
};
|
|
2158
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2159
|
-
let errorCode: string = "UnknownError";
|
|
2160
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
|
-
switch (errorCode) {
|
|
2162
|
-
case "InternalServerException":
|
|
2163
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
2164
|
-
response = {
|
|
2165
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2166
|
-
name: errorCode,
|
|
2167
|
-
$metadata: deserializeMetadata(output),
|
|
2168
|
-
};
|
|
2169
|
-
break;
|
|
2170
|
-
case "InvalidInputException":
|
|
2171
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
2172
|
-
response = {
|
|
2173
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2174
|
-
name: errorCode,
|
|
2175
|
-
$metadata: deserializeMetadata(output),
|
|
2176
|
-
};
|
|
2177
|
-
break;
|
|
2178
|
-
case "LimitExceededException":
|
|
2179
|
-
case "com.amazonaws.machinelearning#LimitExceededException":
|
|
2180
|
-
response = {
|
|
2181
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2182
|
-
name: errorCode,
|
|
2183
|
-
$metadata: deserializeMetadata(output),
|
|
2184
|
-
};
|
|
2185
|
-
break;
|
|
2186
|
-
case "PredictorNotMountedException":
|
|
2187
|
-
case "com.amazonaws.machinelearning#PredictorNotMountedException":
|
|
2188
|
-
response = {
|
|
2189
|
-
...(await deserializeAws_json1_1PredictorNotMountedExceptionResponse(parsedOutput, context)),
|
|
2190
|
-
name: errorCode,
|
|
2191
|
-
$metadata: deserializeMetadata(output),
|
|
2192
|
-
};
|
|
2193
|
-
break;
|
|
2194
|
-
case "ResourceNotFoundException":
|
|
2195
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
2196
|
-
response = {
|
|
2197
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2198
|
-
name: errorCode,
|
|
2199
|
-
$metadata: deserializeMetadata(output),
|
|
2200
|
-
};
|
|
2201
|
-
break;
|
|
2202
|
-
default:
|
|
2203
|
-
const parsedBody = parsedOutput.body;
|
|
2204
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2205
|
-
response = {
|
|
2206
|
-
...parsedBody,
|
|
2207
|
-
name: `${errorCode}`,
|
|
2208
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2209
|
-
$fault: "client",
|
|
2210
|
-
$metadata: deserializeMetadata(output),
|
|
2211
|
-
} as any;
|
|
2212
|
-
}
|
|
2213
|
-
const message = response.message || response.Message || errorCode;
|
|
2214
|
-
response.message = message;
|
|
2215
|
-
delete response.Message;
|
|
2216
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2217
|
-
};
|
|
2218
|
-
|
|
2219
|
-
export const deserializeAws_json1_1UpdateBatchPredictionCommand = async (
|
|
2220
|
-
output: __HttpResponse,
|
|
2221
|
-
context: __SerdeContext
|
|
2222
|
-
): Promise<UpdateBatchPredictionCommandOutput> => {
|
|
2223
|
-
if (output.statusCode >= 300) {
|
|
2224
|
-
return deserializeAws_json1_1UpdateBatchPredictionCommandError(output, context);
|
|
2225
|
-
}
|
|
2226
|
-
const data: any = await parseBody(output.body, context);
|
|
2227
|
-
let contents: any = {};
|
|
2228
|
-
contents = deserializeAws_json1_1UpdateBatchPredictionOutput(data, context);
|
|
2229
|
-
const response: UpdateBatchPredictionCommandOutput = {
|
|
2230
|
-
$metadata: deserializeMetadata(output),
|
|
2231
|
-
...contents,
|
|
2232
|
-
};
|
|
2233
|
-
return Promise.resolve(response);
|
|
2234
|
-
};
|
|
2235
|
-
|
|
2236
|
-
const deserializeAws_json1_1UpdateBatchPredictionCommandError = async (
|
|
2237
|
-
output: __HttpResponse,
|
|
2238
|
-
context: __SerdeContext
|
|
2239
|
-
): Promise<UpdateBatchPredictionCommandOutput> => {
|
|
2240
|
-
const parsedOutput: any = {
|
|
2241
|
-
...output,
|
|
2242
|
-
body: await parseBody(output.body, context),
|
|
2243
|
-
};
|
|
2244
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2245
|
-
let errorCode: string = "UnknownError";
|
|
2246
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
|
-
switch (errorCode) {
|
|
2248
|
-
case "InternalServerException":
|
|
2249
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
2250
|
-
response = {
|
|
2251
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2252
|
-
name: errorCode,
|
|
2253
|
-
$metadata: deserializeMetadata(output),
|
|
2254
|
-
};
|
|
2255
|
-
break;
|
|
2256
|
-
case "InvalidInputException":
|
|
2257
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
2258
|
-
response = {
|
|
2259
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2260
|
-
name: errorCode,
|
|
2261
|
-
$metadata: deserializeMetadata(output),
|
|
2262
|
-
};
|
|
2263
|
-
break;
|
|
2264
|
-
case "ResourceNotFoundException":
|
|
2265
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
2266
|
-
response = {
|
|
2267
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2268
|
-
name: errorCode,
|
|
2269
|
-
$metadata: deserializeMetadata(output),
|
|
2270
|
-
};
|
|
2271
|
-
break;
|
|
2272
|
-
default:
|
|
2273
|
-
const parsedBody = parsedOutput.body;
|
|
2274
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2275
|
-
response = {
|
|
2276
|
-
...parsedBody,
|
|
2277
|
-
name: `${errorCode}`,
|
|
2278
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2279
|
-
$fault: "client",
|
|
2280
|
-
$metadata: deserializeMetadata(output),
|
|
2281
|
-
} as any;
|
|
2282
|
-
}
|
|
2283
|
-
const message = response.message || response.Message || errorCode;
|
|
2284
|
-
response.message = message;
|
|
2285
|
-
delete response.Message;
|
|
2286
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2287
|
-
};
|
|
2288
|
-
|
|
2289
|
-
export const deserializeAws_json1_1UpdateDataSourceCommand = async (
|
|
2290
|
-
output: __HttpResponse,
|
|
2291
|
-
context: __SerdeContext
|
|
2292
|
-
): Promise<UpdateDataSourceCommandOutput> => {
|
|
2293
|
-
if (output.statusCode >= 300) {
|
|
2294
|
-
return deserializeAws_json1_1UpdateDataSourceCommandError(output, context);
|
|
2295
|
-
}
|
|
2296
|
-
const data: any = await parseBody(output.body, context);
|
|
2297
|
-
let contents: any = {};
|
|
2298
|
-
contents = deserializeAws_json1_1UpdateDataSourceOutput(data, context);
|
|
2299
|
-
const response: UpdateDataSourceCommandOutput = {
|
|
2300
|
-
$metadata: deserializeMetadata(output),
|
|
2301
|
-
...contents,
|
|
2302
|
-
};
|
|
2303
|
-
return Promise.resolve(response);
|
|
2304
|
-
};
|
|
2305
|
-
|
|
2306
|
-
const deserializeAws_json1_1UpdateDataSourceCommandError = async (
|
|
2307
|
-
output: __HttpResponse,
|
|
2308
|
-
context: __SerdeContext
|
|
2309
|
-
): Promise<UpdateDataSourceCommandOutput> => {
|
|
2310
|
-
const parsedOutput: any = {
|
|
2311
|
-
...output,
|
|
2312
|
-
body: await parseBody(output.body, context),
|
|
2313
|
-
};
|
|
2314
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2315
|
-
let errorCode: string = "UnknownError";
|
|
2316
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
|
-
switch (errorCode) {
|
|
2318
|
-
case "InternalServerException":
|
|
2319
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
2320
|
-
response = {
|
|
2321
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2322
|
-
name: errorCode,
|
|
2323
|
-
$metadata: deserializeMetadata(output),
|
|
2324
|
-
};
|
|
2325
|
-
break;
|
|
2326
|
-
case "InvalidInputException":
|
|
2327
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
2328
|
-
response = {
|
|
2329
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2330
|
-
name: errorCode,
|
|
2331
|
-
$metadata: deserializeMetadata(output),
|
|
2332
|
-
};
|
|
2333
|
-
break;
|
|
2334
|
-
case "ResourceNotFoundException":
|
|
2335
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
2336
|
-
response = {
|
|
2337
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2338
|
-
name: errorCode,
|
|
2339
|
-
$metadata: deserializeMetadata(output),
|
|
2340
|
-
};
|
|
2341
|
-
break;
|
|
2342
|
-
default:
|
|
2343
|
-
const parsedBody = parsedOutput.body;
|
|
2344
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2345
|
-
response = {
|
|
2346
|
-
...parsedBody,
|
|
2347
|
-
name: `${errorCode}`,
|
|
2348
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2349
|
-
$fault: "client",
|
|
2350
|
-
$metadata: deserializeMetadata(output),
|
|
2351
|
-
} as any;
|
|
2352
|
-
}
|
|
2353
|
-
const message = response.message || response.Message || errorCode;
|
|
2354
|
-
response.message = message;
|
|
2355
|
-
delete response.Message;
|
|
2356
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2357
|
-
};
|
|
2358
|
-
|
|
2359
|
-
export const deserializeAws_json1_1UpdateEvaluationCommand = async (
|
|
2360
|
-
output: __HttpResponse,
|
|
2361
|
-
context: __SerdeContext
|
|
2362
|
-
): Promise<UpdateEvaluationCommandOutput> => {
|
|
2363
|
-
if (output.statusCode >= 300) {
|
|
2364
|
-
return deserializeAws_json1_1UpdateEvaluationCommandError(output, context);
|
|
2365
|
-
}
|
|
2366
|
-
const data: any = await parseBody(output.body, context);
|
|
2367
|
-
let contents: any = {};
|
|
2368
|
-
contents = deserializeAws_json1_1UpdateEvaluationOutput(data, context);
|
|
2369
|
-
const response: UpdateEvaluationCommandOutput = {
|
|
2370
|
-
$metadata: deserializeMetadata(output),
|
|
2371
|
-
...contents,
|
|
2372
|
-
};
|
|
2373
|
-
return Promise.resolve(response);
|
|
2374
|
-
};
|
|
2375
|
-
|
|
2376
|
-
const deserializeAws_json1_1UpdateEvaluationCommandError = async (
|
|
2377
|
-
output: __HttpResponse,
|
|
2378
|
-
context: __SerdeContext
|
|
2379
|
-
): Promise<UpdateEvaluationCommandOutput> => {
|
|
2380
|
-
const parsedOutput: any = {
|
|
2381
|
-
...output,
|
|
2382
|
-
body: await parseBody(output.body, context),
|
|
2383
|
-
};
|
|
2384
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2385
|
-
let errorCode: string = "UnknownError";
|
|
2386
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2387
|
-
switch (errorCode) {
|
|
2388
|
-
case "InternalServerException":
|
|
2389
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
2390
|
-
response = {
|
|
2391
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2392
|
-
name: errorCode,
|
|
2393
|
-
$metadata: deserializeMetadata(output),
|
|
2394
|
-
};
|
|
2395
|
-
break;
|
|
2396
|
-
case "InvalidInputException":
|
|
2397
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
2398
|
-
response = {
|
|
2399
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2400
|
-
name: errorCode,
|
|
2401
|
-
$metadata: deserializeMetadata(output),
|
|
2402
|
-
};
|
|
2403
|
-
break;
|
|
2404
|
-
case "ResourceNotFoundException":
|
|
2405
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
2406
|
-
response = {
|
|
2407
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2408
|
-
name: errorCode,
|
|
2409
|
-
$metadata: deserializeMetadata(output),
|
|
2410
|
-
};
|
|
2411
|
-
break;
|
|
2412
|
-
default:
|
|
2413
|
-
const parsedBody = parsedOutput.body;
|
|
2414
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2415
|
-
response = {
|
|
2416
|
-
...parsedBody,
|
|
2417
|
-
name: `${errorCode}`,
|
|
2418
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2419
|
-
$fault: "client",
|
|
2420
|
-
$metadata: deserializeMetadata(output),
|
|
2421
|
-
} as any;
|
|
2422
|
-
}
|
|
2423
|
-
const message = response.message || response.Message || errorCode;
|
|
2424
|
-
response.message = message;
|
|
2425
|
-
delete response.Message;
|
|
2426
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2427
|
-
};
|
|
2428
|
-
|
|
2429
|
-
export const deserializeAws_json1_1UpdateMLModelCommand = async (
|
|
2430
|
-
output: __HttpResponse,
|
|
2431
|
-
context: __SerdeContext
|
|
2432
|
-
): Promise<UpdateMLModelCommandOutput> => {
|
|
2433
|
-
if (output.statusCode >= 300) {
|
|
2434
|
-
return deserializeAws_json1_1UpdateMLModelCommandError(output, context);
|
|
2435
|
-
}
|
|
2436
|
-
const data: any = await parseBody(output.body, context);
|
|
2437
|
-
let contents: any = {};
|
|
2438
|
-
contents = deserializeAws_json1_1UpdateMLModelOutput(data, context);
|
|
2439
|
-
const response: UpdateMLModelCommandOutput = {
|
|
2440
|
-
$metadata: deserializeMetadata(output),
|
|
2441
|
-
...contents,
|
|
2442
|
-
};
|
|
2443
|
-
return Promise.resolve(response);
|
|
2444
|
-
};
|
|
2445
|
-
|
|
2446
|
-
const deserializeAws_json1_1UpdateMLModelCommandError = async (
|
|
2447
|
-
output: __HttpResponse,
|
|
2448
|
-
context: __SerdeContext
|
|
2449
|
-
): Promise<UpdateMLModelCommandOutput> => {
|
|
2450
|
-
const parsedOutput: any = {
|
|
2451
|
-
...output,
|
|
2452
|
-
body: await parseBody(output.body, context),
|
|
2453
|
-
};
|
|
2454
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2455
|
-
let errorCode: string = "UnknownError";
|
|
2456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
|
-
switch (errorCode) {
|
|
2458
|
-
case "InternalServerException":
|
|
2459
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
2460
|
-
response = {
|
|
2461
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2462
|
-
name: errorCode,
|
|
2463
|
-
$metadata: deserializeMetadata(output),
|
|
2464
|
-
};
|
|
2465
|
-
break;
|
|
2466
|
-
case "InvalidInputException":
|
|
2467
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
2468
|
-
response = {
|
|
2469
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2470
|
-
name: errorCode,
|
|
2471
|
-
$metadata: deserializeMetadata(output),
|
|
2472
|
-
};
|
|
2473
|
-
break;
|
|
2474
|
-
case "ResourceNotFoundException":
|
|
2475
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
2476
|
-
response = {
|
|
2477
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2478
|
-
name: errorCode,
|
|
2479
|
-
$metadata: deserializeMetadata(output),
|
|
2480
|
-
};
|
|
2481
|
-
break;
|
|
2482
|
-
default:
|
|
2483
|
-
const parsedBody = parsedOutput.body;
|
|
2484
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2485
|
-
response = {
|
|
2486
|
-
...parsedBody,
|
|
2487
|
-
name: `${errorCode}`,
|
|
2488
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2489
|
-
$fault: "client",
|
|
2490
|
-
$metadata: deserializeMetadata(output),
|
|
2491
|
-
} as any;
|
|
2492
|
-
}
|
|
2493
|
-
const message = response.message || response.Message || errorCode;
|
|
2494
|
-
response.message = message;
|
|
2495
|
-
delete response.Message;
|
|
2496
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2497
|
-
};
|
|
2498
|
-
|
|
2499
|
-
const deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = async (
|
|
2500
|
-
parsedOutput: any,
|
|
2501
|
-
context: __SerdeContext
|
|
2502
|
-
): Promise<IdempotentParameterMismatchException> => {
|
|
2503
|
-
const body = parsedOutput.body;
|
|
2504
|
-
const deserialized: any = deserializeAws_json1_1IdempotentParameterMismatchException(body, context);
|
|
2505
|
-
const contents: IdempotentParameterMismatchException = {
|
|
2506
|
-
name: "IdempotentParameterMismatchException",
|
|
2507
|
-
$fault: "client",
|
|
2508
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2509
|
-
...deserialized,
|
|
2510
|
-
};
|
|
2511
|
-
return contents;
|
|
2512
|
-
};
|
|
2513
|
-
|
|
2514
|
-
const deserializeAws_json1_1InternalServerExceptionResponse = async (
|
|
2515
|
-
parsedOutput: any,
|
|
2516
|
-
context: __SerdeContext
|
|
2517
|
-
): Promise<InternalServerException> => {
|
|
2518
|
-
const body = parsedOutput.body;
|
|
2519
|
-
const deserialized: any = deserializeAws_json1_1InternalServerException(body, context);
|
|
2520
|
-
const contents: InternalServerException = {
|
|
2521
|
-
name: "InternalServerException",
|
|
2522
|
-
$fault: "server",
|
|
2523
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2524
|
-
...deserialized,
|
|
2525
|
-
};
|
|
2526
|
-
return contents;
|
|
2527
|
-
};
|
|
2528
|
-
|
|
2529
|
-
const deserializeAws_json1_1InvalidInputExceptionResponse = async (
|
|
2530
|
-
parsedOutput: any,
|
|
2531
|
-
context: __SerdeContext
|
|
2532
|
-
): Promise<InvalidInputException> => {
|
|
2533
|
-
const body = parsedOutput.body;
|
|
2534
|
-
const deserialized: any = deserializeAws_json1_1InvalidInputException(body, context);
|
|
2535
|
-
const contents: InvalidInputException = {
|
|
2536
|
-
name: "InvalidInputException",
|
|
2537
|
-
$fault: "client",
|
|
2538
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2539
|
-
...deserialized,
|
|
2540
|
-
};
|
|
2541
|
-
return contents;
|
|
2542
|
-
};
|
|
2543
|
-
|
|
2544
|
-
const deserializeAws_json1_1InvalidTagExceptionResponse = async (
|
|
2545
|
-
parsedOutput: any,
|
|
2546
|
-
context: __SerdeContext
|
|
2547
|
-
): Promise<InvalidTagException> => {
|
|
2548
|
-
const body = parsedOutput.body;
|
|
2549
|
-
const deserialized: any = deserializeAws_json1_1InvalidTagException(body, context);
|
|
2550
|
-
const contents: InvalidTagException = {
|
|
2551
|
-
name: "InvalidTagException",
|
|
2552
|
-
$fault: "client",
|
|
2553
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2554
|
-
...deserialized,
|
|
2555
|
-
};
|
|
2556
|
-
return contents;
|
|
2557
|
-
};
|
|
2558
|
-
|
|
2559
|
-
const deserializeAws_json1_1LimitExceededExceptionResponse = async (
|
|
2560
|
-
parsedOutput: any,
|
|
2561
|
-
context: __SerdeContext
|
|
2562
|
-
): Promise<LimitExceededException> => {
|
|
2563
|
-
const body = parsedOutput.body;
|
|
2564
|
-
const deserialized: any = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2565
|
-
const contents: LimitExceededException = {
|
|
2566
|
-
name: "LimitExceededException",
|
|
2567
|
-
$fault: "client",
|
|
2568
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2569
|
-
...deserialized,
|
|
2570
|
-
};
|
|
2571
|
-
return contents;
|
|
2572
|
-
};
|
|
2573
|
-
|
|
2574
|
-
const deserializeAws_json1_1PredictorNotMountedExceptionResponse = async (
|
|
2575
|
-
parsedOutput: any,
|
|
2576
|
-
context: __SerdeContext
|
|
2577
|
-
): Promise<PredictorNotMountedException> => {
|
|
2578
|
-
const body = parsedOutput.body;
|
|
2579
|
-
const deserialized: any = deserializeAws_json1_1PredictorNotMountedException(body, context);
|
|
2580
|
-
const contents: PredictorNotMountedException = {
|
|
2581
|
-
name: "PredictorNotMountedException",
|
|
2582
|
-
$fault: "client",
|
|
2583
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2584
|
-
...deserialized,
|
|
2585
|
-
};
|
|
2586
|
-
return contents;
|
|
2587
|
-
};
|
|
2588
|
-
|
|
2589
|
-
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (
|
|
2590
|
-
parsedOutput: any,
|
|
2591
|
-
context: __SerdeContext
|
|
2592
|
-
): Promise<ResourceNotFoundException> => {
|
|
2593
|
-
const body = parsedOutput.body;
|
|
2594
|
-
const deserialized: any = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2595
|
-
const contents: ResourceNotFoundException = {
|
|
2596
|
-
name: "ResourceNotFoundException",
|
|
2597
|
-
$fault: "client",
|
|
2598
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2599
|
-
...deserialized,
|
|
2600
|
-
};
|
|
2601
|
-
return contents;
|
|
2602
|
-
};
|
|
2603
|
-
|
|
2604
|
-
const deserializeAws_json1_1TagLimitExceededExceptionResponse = async (
|
|
2605
|
-
parsedOutput: any,
|
|
2606
|
-
context: __SerdeContext
|
|
2607
|
-
): Promise<TagLimitExceededException> => {
|
|
2608
|
-
const body = parsedOutput.body;
|
|
2609
|
-
const deserialized: any = deserializeAws_json1_1TagLimitExceededException(body, context);
|
|
2610
|
-
const contents: TagLimitExceededException = {
|
|
2611
|
-
name: "TagLimitExceededException",
|
|
2612
|
-
$fault: "client",
|
|
2613
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2614
|
-
...deserialized,
|
|
2615
|
-
};
|
|
2616
|
-
return contents;
|
|
2617
|
-
};
|
|
2618
|
-
|
|
2619
|
-
const serializeAws_json1_1AddTagsInput = (input: AddTagsInput, context: __SerdeContext): any => {
|
|
2620
|
-
return {
|
|
2621
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
2622
|
-
...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
|
|
2623
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2624
|
-
};
|
|
2625
|
-
};
|
|
2626
|
-
|
|
2627
|
-
const serializeAws_json1_1CreateBatchPredictionInput = (
|
|
2628
|
-
input: CreateBatchPredictionInput,
|
|
2629
|
-
context: __SerdeContext
|
|
2630
|
-
): any => {
|
|
2631
|
-
return {
|
|
2632
|
-
...(input.BatchPredictionDataSourceId !== undefined &&
|
|
2633
|
-
input.BatchPredictionDataSourceId !== null && { BatchPredictionDataSourceId: input.BatchPredictionDataSourceId }),
|
|
2634
|
-
...(input.BatchPredictionId !== undefined &&
|
|
2635
|
-
input.BatchPredictionId !== null && { BatchPredictionId: input.BatchPredictionId }),
|
|
2636
|
-
...(input.BatchPredictionName !== undefined &&
|
|
2637
|
-
input.BatchPredictionName !== null && { BatchPredictionName: input.BatchPredictionName }),
|
|
2638
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
2639
|
-
...(input.OutputUri !== undefined && input.OutputUri !== null && { OutputUri: input.OutputUri }),
|
|
2640
|
-
};
|
|
2641
|
-
};
|
|
2642
|
-
|
|
2643
|
-
const serializeAws_json1_1CreateDataSourceFromRDSInput = (
|
|
2644
|
-
input: CreateDataSourceFromRDSInput,
|
|
2645
|
-
context: __SerdeContext
|
|
2646
|
-
): any => {
|
|
2647
|
-
return {
|
|
2648
|
-
...(input.ComputeStatistics !== undefined &&
|
|
2649
|
-
input.ComputeStatistics !== null && { ComputeStatistics: input.ComputeStatistics }),
|
|
2650
|
-
...(input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId }),
|
|
2651
|
-
...(input.DataSourceName !== undefined &&
|
|
2652
|
-
input.DataSourceName !== null && { DataSourceName: input.DataSourceName }),
|
|
2653
|
-
...(input.RDSData !== undefined &&
|
|
2654
|
-
input.RDSData !== null && { RDSData: serializeAws_json1_1RDSDataSpec(input.RDSData, context) }),
|
|
2655
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2656
|
-
};
|
|
2657
|
-
};
|
|
2658
|
-
|
|
2659
|
-
const serializeAws_json1_1CreateDataSourceFromRedshiftInput = (
|
|
2660
|
-
input: CreateDataSourceFromRedshiftInput,
|
|
2661
|
-
context: __SerdeContext
|
|
2662
|
-
): any => {
|
|
2663
|
-
return {
|
|
2664
|
-
...(input.ComputeStatistics !== undefined &&
|
|
2665
|
-
input.ComputeStatistics !== null && { ComputeStatistics: input.ComputeStatistics }),
|
|
2666
|
-
...(input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId }),
|
|
2667
|
-
...(input.DataSourceName !== undefined &&
|
|
2668
|
-
input.DataSourceName !== null && { DataSourceName: input.DataSourceName }),
|
|
2669
|
-
...(input.DataSpec !== undefined &&
|
|
2670
|
-
input.DataSpec !== null && { DataSpec: serializeAws_json1_1RedshiftDataSpec(input.DataSpec, context) }),
|
|
2671
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2672
|
-
};
|
|
2673
|
-
};
|
|
2674
|
-
|
|
2675
|
-
const serializeAws_json1_1CreateDataSourceFromS3Input = (
|
|
2676
|
-
input: CreateDataSourceFromS3Input,
|
|
2677
|
-
context: __SerdeContext
|
|
2678
|
-
): any => {
|
|
2679
|
-
return {
|
|
2680
|
-
...(input.ComputeStatistics !== undefined &&
|
|
2681
|
-
input.ComputeStatistics !== null && { ComputeStatistics: input.ComputeStatistics }),
|
|
2682
|
-
...(input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId }),
|
|
2683
|
-
...(input.DataSourceName !== undefined &&
|
|
2684
|
-
input.DataSourceName !== null && { DataSourceName: input.DataSourceName }),
|
|
2685
|
-
...(input.DataSpec !== undefined &&
|
|
2686
|
-
input.DataSpec !== null && { DataSpec: serializeAws_json1_1S3DataSpec(input.DataSpec, context) }),
|
|
2687
|
-
};
|
|
2688
|
-
};
|
|
2689
|
-
|
|
2690
|
-
const serializeAws_json1_1CreateEvaluationInput = (input: CreateEvaluationInput, context: __SerdeContext): any => {
|
|
2691
|
-
return {
|
|
2692
|
-
...(input.EvaluationDataSourceId !== undefined &&
|
|
2693
|
-
input.EvaluationDataSourceId !== null && { EvaluationDataSourceId: input.EvaluationDataSourceId }),
|
|
2694
|
-
...(input.EvaluationId !== undefined && input.EvaluationId !== null && { EvaluationId: input.EvaluationId }),
|
|
2695
|
-
...(input.EvaluationName !== undefined &&
|
|
2696
|
-
input.EvaluationName !== null && { EvaluationName: input.EvaluationName }),
|
|
2697
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
2698
|
-
};
|
|
2699
|
-
};
|
|
2700
|
-
|
|
2701
|
-
const serializeAws_json1_1CreateMLModelInput = (input: CreateMLModelInput, context: __SerdeContext): any => {
|
|
2702
|
-
return {
|
|
2703
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
2704
|
-
...(input.MLModelName !== undefined && input.MLModelName !== null && { MLModelName: input.MLModelName }),
|
|
2705
|
-
...(input.MLModelType !== undefined && input.MLModelType !== null && { MLModelType: input.MLModelType }),
|
|
2706
|
-
...(input.Parameters !== undefined &&
|
|
2707
|
-
input.Parameters !== null && { Parameters: serializeAws_json1_1TrainingParameters(input.Parameters, context) }),
|
|
2708
|
-
...(input.Recipe !== undefined && input.Recipe !== null && { Recipe: input.Recipe }),
|
|
2709
|
-
...(input.RecipeUri !== undefined && input.RecipeUri !== null && { RecipeUri: input.RecipeUri }),
|
|
2710
|
-
...(input.TrainingDataSourceId !== undefined &&
|
|
2711
|
-
input.TrainingDataSourceId !== null && { TrainingDataSourceId: input.TrainingDataSourceId }),
|
|
2712
|
-
};
|
|
2713
|
-
};
|
|
2714
|
-
|
|
2715
|
-
const serializeAws_json1_1CreateRealtimeEndpointInput = (
|
|
2716
|
-
input: CreateRealtimeEndpointInput,
|
|
2717
|
-
context: __SerdeContext
|
|
2718
|
-
): any => {
|
|
2719
|
-
return {
|
|
2720
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
2721
|
-
};
|
|
2722
|
-
};
|
|
2723
|
-
|
|
2724
|
-
const serializeAws_json1_1DeleteBatchPredictionInput = (
|
|
2725
|
-
input: DeleteBatchPredictionInput,
|
|
2726
|
-
context: __SerdeContext
|
|
2727
|
-
): any => {
|
|
2728
|
-
return {
|
|
2729
|
-
...(input.BatchPredictionId !== undefined &&
|
|
2730
|
-
input.BatchPredictionId !== null && { BatchPredictionId: input.BatchPredictionId }),
|
|
2731
|
-
};
|
|
2732
|
-
};
|
|
2733
|
-
|
|
2734
|
-
const serializeAws_json1_1DeleteDataSourceInput = (input: DeleteDataSourceInput, context: __SerdeContext): any => {
|
|
2735
|
-
return {
|
|
2736
|
-
...(input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId }),
|
|
2737
|
-
};
|
|
2738
|
-
};
|
|
2739
|
-
|
|
2740
|
-
const serializeAws_json1_1DeleteEvaluationInput = (input: DeleteEvaluationInput, context: __SerdeContext): any => {
|
|
2741
|
-
return {
|
|
2742
|
-
...(input.EvaluationId !== undefined && input.EvaluationId !== null && { EvaluationId: input.EvaluationId }),
|
|
2743
|
-
};
|
|
2744
|
-
};
|
|
2745
|
-
|
|
2746
|
-
const serializeAws_json1_1DeleteMLModelInput = (input: DeleteMLModelInput, context: __SerdeContext): any => {
|
|
2747
|
-
return {
|
|
2748
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
2749
|
-
};
|
|
2750
|
-
};
|
|
2751
|
-
|
|
2752
|
-
const serializeAws_json1_1DeleteRealtimeEndpointInput = (
|
|
2753
|
-
input: DeleteRealtimeEndpointInput,
|
|
2754
|
-
context: __SerdeContext
|
|
2755
|
-
): any => {
|
|
2756
|
-
return {
|
|
2757
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
2758
|
-
};
|
|
2759
|
-
};
|
|
2760
|
-
|
|
2761
|
-
const serializeAws_json1_1DeleteTagsInput = (input: DeleteTagsInput, context: __SerdeContext): any => {
|
|
2762
|
-
return {
|
|
2763
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
2764
|
-
...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
|
|
2765
|
-
...(input.TagKeys !== undefined &&
|
|
2766
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
|
|
2770
|
-
const serializeAws_json1_1DescribeBatchPredictionsInput = (
|
|
2771
|
-
input: DescribeBatchPredictionsInput,
|
|
2772
|
-
context: __SerdeContext
|
|
2773
|
-
): any => {
|
|
2774
|
-
return {
|
|
2775
|
-
...(input.EQ !== undefined && input.EQ !== null && { EQ: input.EQ }),
|
|
2776
|
-
...(input.FilterVariable !== undefined &&
|
|
2777
|
-
input.FilterVariable !== null && { FilterVariable: input.FilterVariable }),
|
|
2778
|
-
...(input.GE !== undefined && input.GE !== null && { GE: input.GE }),
|
|
2779
|
-
...(input.GT !== undefined && input.GT !== null && { GT: input.GT }),
|
|
2780
|
-
...(input.LE !== undefined && input.LE !== null && { LE: input.LE }),
|
|
2781
|
-
...(input.LT !== undefined && input.LT !== null && { LT: input.LT }),
|
|
2782
|
-
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
2783
|
-
...(input.NE !== undefined && input.NE !== null && { NE: input.NE }),
|
|
2784
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2785
|
-
...(input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix }),
|
|
2786
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
2787
|
-
};
|
|
2788
|
-
};
|
|
2789
|
-
|
|
2790
|
-
const serializeAws_json1_1DescribeDataSourcesInput = (
|
|
2791
|
-
input: DescribeDataSourcesInput,
|
|
2792
|
-
context: __SerdeContext
|
|
2793
|
-
): any => {
|
|
2794
|
-
return {
|
|
2795
|
-
...(input.EQ !== undefined && input.EQ !== null && { EQ: input.EQ }),
|
|
2796
|
-
...(input.FilterVariable !== undefined &&
|
|
2797
|
-
input.FilterVariable !== null && { FilterVariable: input.FilterVariable }),
|
|
2798
|
-
...(input.GE !== undefined && input.GE !== null && { GE: input.GE }),
|
|
2799
|
-
...(input.GT !== undefined && input.GT !== null && { GT: input.GT }),
|
|
2800
|
-
...(input.LE !== undefined && input.LE !== null && { LE: input.LE }),
|
|
2801
|
-
...(input.LT !== undefined && input.LT !== null && { LT: input.LT }),
|
|
2802
|
-
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
2803
|
-
...(input.NE !== undefined && input.NE !== null && { NE: input.NE }),
|
|
2804
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2805
|
-
...(input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix }),
|
|
2806
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
2807
|
-
};
|
|
2808
|
-
};
|
|
2809
|
-
|
|
2810
|
-
const serializeAws_json1_1DescribeEvaluationsInput = (
|
|
2811
|
-
input: DescribeEvaluationsInput,
|
|
2812
|
-
context: __SerdeContext
|
|
2813
|
-
): any => {
|
|
2814
|
-
return {
|
|
2815
|
-
...(input.EQ !== undefined && input.EQ !== null && { EQ: input.EQ }),
|
|
2816
|
-
...(input.FilterVariable !== undefined &&
|
|
2817
|
-
input.FilterVariable !== null && { FilterVariable: input.FilterVariable }),
|
|
2818
|
-
...(input.GE !== undefined && input.GE !== null && { GE: input.GE }),
|
|
2819
|
-
...(input.GT !== undefined && input.GT !== null && { GT: input.GT }),
|
|
2820
|
-
...(input.LE !== undefined && input.LE !== null && { LE: input.LE }),
|
|
2821
|
-
...(input.LT !== undefined && input.LT !== null && { LT: input.LT }),
|
|
2822
|
-
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
2823
|
-
...(input.NE !== undefined && input.NE !== null && { NE: input.NE }),
|
|
2824
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2825
|
-
...(input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix }),
|
|
2826
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
2827
|
-
};
|
|
2828
|
-
};
|
|
2829
|
-
|
|
2830
|
-
const serializeAws_json1_1DescribeMLModelsInput = (input: DescribeMLModelsInput, context: __SerdeContext): any => {
|
|
2831
|
-
return {
|
|
2832
|
-
...(input.EQ !== undefined && input.EQ !== null && { EQ: input.EQ }),
|
|
2833
|
-
...(input.FilterVariable !== undefined &&
|
|
2834
|
-
input.FilterVariable !== null && { FilterVariable: input.FilterVariable }),
|
|
2835
|
-
...(input.GE !== undefined && input.GE !== null && { GE: input.GE }),
|
|
2836
|
-
...(input.GT !== undefined && input.GT !== null && { GT: input.GT }),
|
|
2837
|
-
...(input.LE !== undefined && input.LE !== null && { LE: input.LE }),
|
|
2838
|
-
...(input.LT !== undefined && input.LT !== null && { LT: input.LT }),
|
|
2839
|
-
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
2840
|
-
...(input.NE !== undefined && input.NE !== null && { NE: input.NE }),
|
|
2841
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2842
|
-
...(input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix }),
|
|
2843
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
2844
|
-
};
|
|
2845
|
-
};
|
|
2846
|
-
|
|
2847
|
-
const serializeAws_json1_1DescribeTagsInput = (input: DescribeTagsInput, context: __SerdeContext): any => {
|
|
2848
|
-
return {
|
|
2849
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
2850
|
-
...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
|
|
2851
|
-
};
|
|
2852
|
-
};
|
|
2853
|
-
|
|
2854
|
-
const serializeAws_json1_1EDPSecurityGroupIds = (input: string[], context: __SerdeContext): any => {
|
|
2855
|
-
return input
|
|
2856
|
-
.filter((e: any) => e != null)
|
|
2857
|
-
.map((entry) => {
|
|
2858
|
-
if (entry === null) {
|
|
2859
|
-
return null as any;
|
|
2860
|
-
}
|
|
2861
|
-
return entry;
|
|
2862
|
-
});
|
|
2863
|
-
};
|
|
2864
|
-
|
|
2865
|
-
const serializeAws_json1_1GetBatchPredictionInput = (input: GetBatchPredictionInput, context: __SerdeContext): any => {
|
|
2866
|
-
return {
|
|
2867
|
-
...(input.BatchPredictionId !== undefined &&
|
|
2868
|
-
input.BatchPredictionId !== null && { BatchPredictionId: input.BatchPredictionId }),
|
|
2869
|
-
};
|
|
2870
|
-
};
|
|
2871
|
-
|
|
2872
|
-
const serializeAws_json1_1GetDataSourceInput = (input: GetDataSourceInput, context: __SerdeContext): any => {
|
|
2873
|
-
return {
|
|
2874
|
-
...(input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId }),
|
|
2875
|
-
...(input.Verbose !== undefined && input.Verbose !== null && { Verbose: input.Verbose }),
|
|
2876
|
-
};
|
|
2877
|
-
};
|
|
2878
|
-
|
|
2879
|
-
const serializeAws_json1_1GetEvaluationInput = (input: GetEvaluationInput, context: __SerdeContext): any => {
|
|
2880
|
-
return {
|
|
2881
|
-
...(input.EvaluationId !== undefined && input.EvaluationId !== null && { EvaluationId: input.EvaluationId }),
|
|
2882
|
-
};
|
|
2883
|
-
};
|
|
2884
|
-
|
|
2885
|
-
const serializeAws_json1_1GetMLModelInput = (input: GetMLModelInput, context: __SerdeContext): any => {
|
|
2886
|
-
return {
|
|
2887
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
2888
|
-
...(input.Verbose !== undefined && input.Verbose !== null && { Verbose: input.Verbose }),
|
|
2889
|
-
};
|
|
2890
|
-
};
|
|
2891
|
-
|
|
2892
|
-
const serializeAws_json1_1PredictInput = (input: PredictInput, context: __SerdeContext): any => {
|
|
2893
|
-
return {
|
|
2894
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
2895
|
-
...(input.PredictEndpoint !== undefined &&
|
|
2896
|
-
input.PredictEndpoint !== null && { PredictEndpoint: input.PredictEndpoint }),
|
|
2897
|
-
...(input.Record !== undefined &&
|
|
2898
|
-
input.Record !== null && { Record: serializeAws_json1_1Record(input.Record, context) }),
|
|
2899
|
-
};
|
|
2900
|
-
};
|
|
2901
|
-
|
|
2902
|
-
const serializeAws_json1_1RDSDatabase = (input: RDSDatabase, context: __SerdeContext): any => {
|
|
2903
|
-
return {
|
|
2904
|
-
...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
|
|
2905
|
-
...(input.InstanceIdentifier !== undefined &&
|
|
2906
|
-
input.InstanceIdentifier !== null && { InstanceIdentifier: input.InstanceIdentifier }),
|
|
2907
|
-
};
|
|
2908
|
-
};
|
|
2909
|
-
|
|
2910
|
-
const serializeAws_json1_1RDSDatabaseCredentials = (input: RDSDatabaseCredentials, context: __SerdeContext): any => {
|
|
2911
|
-
return {
|
|
2912
|
-
...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
|
|
2913
|
-
...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
|
|
2914
|
-
};
|
|
2915
|
-
};
|
|
2916
|
-
|
|
2917
|
-
const serializeAws_json1_1RDSDataSpec = (input: RDSDataSpec, context: __SerdeContext): any => {
|
|
2918
|
-
return {
|
|
2919
|
-
...(input.DataRearrangement !== undefined &&
|
|
2920
|
-
input.DataRearrangement !== null && { DataRearrangement: input.DataRearrangement }),
|
|
2921
|
-
...(input.DataSchema !== undefined && input.DataSchema !== null && { DataSchema: input.DataSchema }),
|
|
2922
|
-
...(input.DataSchemaUri !== undefined && input.DataSchemaUri !== null && { DataSchemaUri: input.DataSchemaUri }),
|
|
2923
|
-
...(input.DatabaseCredentials !== undefined &&
|
|
2924
|
-
input.DatabaseCredentials !== null && {
|
|
2925
|
-
DatabaseCredentials: serializeAws_json1_1RDSDatabaseCredentials(input.DatabaseCredentials, context),
|
|
2926
|
-
}),
|
|
2927
|
-
...(input.DatabaseInformation !== undefined &&
|
|
2928
|
-
input.DatabaseInformation !== null && {
|
|
2929
|
-
DatabaseInformation: serializeAws_json1_1RDSDatabase(input.DatabaseInformation, context),
|
|
2930
|
-
}),
|
|
2931
|
-
...(input.ResourceRole !== undefined && input.ResourceRole !== null && { ResourceRole: input.ResourceRole }),
|
|
2932
|
-
...(input.S3StagingLocation !== undefined &&
|
|
2933
|
-
input.S3StagingLocation !== null && { S3StagingLocation: input.S3StagingLocation }),
|
|
2934
|
-
...(input.SecurityGroupIds !== undefined &&
|
|
2935
|
-
input.SecurityGroupIds !== null && {
|
|
2936
|
-
SecurityGroupIds: serializeAws_json1_1EDPSecurityGroupIds(input.SecurityGroupIds, context),
|
|
2937
|
-
}),
|
|
2938
|
-
...(input.SelectSqlQuery !== undefined &&
|
|
2939
|
-
input.SelectSqlQuery !== null && { SelectSqlQuery: input.SelectSqlQuery }),
|
|
2940
|
-
...(input.ServiceRole !== undefined && input.ServiceRole !== null && { ServiceRole: input.ServiceRole }),
|
|
2941
|
-
...(input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId }),
|
|
2942
|
-
};
|
|
2943
|
-
};
|
|
2944
|
-
|
|
2945
|
-
const serializeAws_json1_1Record = (input: { [key: string]: string }, context: __SerdeContext): any => {
|
|
2946
|
-
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
|
|
2947
|
-
if (value === null) {
|
|
2948
|
-
return acc;
|
|
2949
|
-
}
|
|
2950
|
-
return {
|
|
2951
|
-
...acc,
|
|
2952
|
-
[key]: value,
|
|
2953
|
-
};
|
|
2954
|
-
}, {});
|
|
2955
|
-
};
|
|
2956
|
-
|
|
2957
|
-
const serializeAws_json1_1RedshiftDatabase = (input: RedshiftDatabase, context: __SerdeContext): any => {
|
|
2958
|
-
return {
|
|
2959
|
-
...(input.ClusterIdentifier !== undefined &&
|
|
2960
|
-
input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
2961
|
-
...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
|
|
2962
|
-
};
|
|
2963
|
-
};
|
|
2964
|
-
|
|
2965
|
-
const serializeAws_json1_1RedshiftDatabaseCredentials = (
|
|
2966
|
-
input: RedshiftDatabaseCredentials,
|
|
2967
|
-
context: __SerdeContext
|
|
2968
|
-
): any => {
|
|
2969
|
-
return {
|
|
2970
|
-
...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
|
|
2971
|
-
...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
|
|
2972
|
-
};
|
|
2973
|
-
};
|
|
2974
|
-
|
|
2975
|
-
const serializeAws_json1_1RedshiftDataSpec = (input: RedshiftDataSpec, context: __SerdeContext): any => {
|
|
2976
|
-
return {
|
|
2977
|
-
...(input.DataRearrangement !== undefined &&
|
|
2978
|
-
input.DataRearrangement !== null && { DataRearrangement: input.DataRearrangement }),
|
|
2979
|
-
...(input.DataSchema !== undefined && input.DataSchema !== null && { DataSchema: input.DataSchema }),
|
|
2980
|
-
...(input.DataSchemaUri !== undefined && input.DataSchemaUri !== null && { DataSchemaUri: input.DataSchemaUri }),
|
|
2981
|
-
...(input.DatabaseCredentials !== undefined &&
|
|
2982
|
-
input.DatabaseCredentials !== null && {
|
|
2983
|
-
DatabaseCredentials: serializeAws_json1_1RedshiftDatabaseCredentials(input.DatabaseCredentials, context),
|
|
2984
|
-
}),
|
|
2985
|
-
...(input.DatabaseInformation !== undefined &&
|
|
2986
|
-
input.DatabaseInformation !== null && {
|
|
2987
|
-
DatabaseInformation: serializeAws_json1_1RedshiftDatabase(input.DatabaseInformation, context),
|
|
2988
|
-
}),
|
|
2989
|
-
...(input.S3StagingLocation !== undefined &&
|
|
2990
|
-
input.S3StagingLocation !== null && { S3StagingLocation: input.S3StagingLocation }),
|
|
2991
|
-
...(input.SelectSqlQuery !== undefined &&
|
|
2992
|
-
input.SelectSqlQuery !== null && { SelectSqlQuery: input.SelectSqlQuery }),
|
|
2993
|
-
};
|
|
2994
|
-
};
|
|
2995
|
-
|
|
2996
|
-
const serializeAws_json1_1S3DataSpec = (input: S3DataSpec, context: __SerdeContext): any => {
|
|
2997
|
-
return {
|
|
2998
|
-
...(input.DataLocationS3 !== undefined &&
|
|
2999
|
-
input.DataLocationS3 !== null && { DataLocationS3: input.DataLocationS3 }),
|
|
3000
|
-
...(input.DataRearrangement !== undefined &&
|
|
3001
|
-
input.DataRearrangement !== null && { DataRearrangement: input.DataRearrangement }),
|
|
3002
|
-
...(input.DataSchema !== undefined && input.DataSchema !== null && { DataSchema: input.DataSchema }),
|
|
3003
|
-
...(input.DataSchemaLocationS3 !== undefined &&
|
|
3004
|
-
input.DataSchemaLocationS3 !== null && { DataSchemaLocationS3: input.DataSchemaLocationS3 }),
|
|
3005
|
-
};
|
|
3006
|
-
};
|
|
3007
|
-
|
|
3008
|
-
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
|
|
3009
|
-
return {
|
|
3010
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
3011
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
3012
|
-
};
|
|
3013
|
-
};
|
|
3014
|
-
|
|
3015
|
-
const serializeAws_json1_1TagKeyList = (input: string[], context: __SerdeContext): any => {
|
|
3016
|
-
return input
|
|
3017
|
-
.filter((e: any) => e != null)
|
|
3018
|
-
.map((entry) => {
|
|
3019
|
-
if (entry === null) {
|
|
3020
|
-
return null as any;
|
|
3021
|
-
}
|
|
3022
|
-
return entry;
|
|
3023
|
-
});
|
|
3024
|
-
};
|
|
3025
|
-
|
|
3026
|
-
const serializeAws_json1_1TagList = (input: Tag[], context: __SerdeContext): any => {
|
|
3027
|
-
return input
|
|
3028
|
-
.filter((e: any) => e != null)
|
|
3029
|
-
.map((entry) => {
|
|
3030
|
-
if (entry === null) {
|
|
3031
|
-
return null as any;
|
|
3032
|
-
}
|
|
3033
|
-
return serializeAws_json1_1Tag(entry, context);
|
|
3034
|
-
});
|
|
3035
|
-
};
|
|
3036
|
-
|
|
3037
|
-
const serializeAws_json1_1TrainingParameters = (input: { [key: string]: string }, context: __SerdeContext): any => {
|
|
3038
|
-
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
|
|
3039
|
-
if (value === null) {
|
|
3040
|
-
return acc;
|
|
3041
|
-
}
|
|
3042
|
-
return {
|
|
3043
|
-
...acc,
|
|
3044
|
-
[key]: value,
|
|
3045
|
-
};
|
|
3046
|
-
}, {});
|
|
3047
|
-
};
|
|
3048
|
-
|
|
3049
|
-
const serializeAws_json1_1UpdateBatchPredictionInput = (
|
|
3050
|
-
input: UpdateBatchPredictionInput,
|
|
3051
|
-
context: __SerdeContext
|
|
3052
|
-
): any => {
|
|
3053
|
-
return {
|
|
3054
|
-
...(input.BatchPredictionId !== undefined &&
|
|
3055
|
-
input.BatchPredictionId !== null && { BatchPredictionId: input.BatchPredictionId }),
|
|
3056
|
-
...(input.BatchPredictionName !== undefined &&
|
|
3057
|
-
input.BatchPredictionName !== null && { BatchPredictionName: input.BatchPredictionName }),
|
|
3058
|
-
};
|
|
3059
|
-
};
|
|
3060
|
-
|
|
3061
|
-
const serializeAws_json1_1UpdateDataSourceInput = (input: UpdateDataSourceInput, context: __SerdeContext): any => {
|
|
3062
|
-
return {
|
|
3063
|
-
...(input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId }),
|
|
3064
|
-
...(input.DataSourceName !== undefined &&
|
|
3065
|
-
input.DataSourceName !== null && { DataSourceName: input.DataSourceName }),
|
|
3066
|
-
};
|
|
3067
|
-
};
|
|
3068
|
-
|
|
3069
|
-
const serializeAws_json1_1UpdateEvaluationInput = (input: UpdateEvaluationInput, context: __SerdeContext): any => {
|
|
3070
|
-
return {
|
|
3071
|
-
...(input.EvaluationId !== undefined && input.EvaluationId !== null && { EvaluationId: input.EvaluationId }),
|
|
3072
|
-
...(input.EvaluationName !== undefined &&
|
|
3073
|
-
input.EvaluationName !== null && { EvaluationName: input.EvaluationName }),
|
|
3074
|
-
};
|
|
3075
|
-
};
|
|
3076
|
-
|
|
3077
|
-
const serializeAws_json1_1UpdateMLModelInput = (input: UpdateMLModelInput, context: __SerdeContext): any => {
|
|
3078
|
-
return {
|
|
3079
|
-
...(input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }),
|
|
3080
|
-
...(input.MLModelName !== undefined && input.MLModelName !== null && { MLModelName: input.MLModelName }),
|
|
3081
|
-
...(input.ScoreThreshold !== undefined &&
|
|
3082
|
-
input.ScoreThreshold !== null && { ScoreThreshold: __serializeFloat(input.ScoreThreshold) }),
|
|
3083
|
-
};
|
|
3084
|
-
};
|
|
3085
|
-
|
|
3086
|
-
const deserializeAws_json1_1AddTagsOutput = (output: any, context: __SerdeContext): AddTagsOutput => {
|
|
3087
|
-
return {
|
|
3088
|
-
ResourceId: __expectString(output.ResourceId),
|
|
3089
|
-
ResourceType: __expectString(output.ResourceType),
|
|
3090
|
-
} as any;
|
|
3091
|
-
};
|
|
3092
|
-
|
|
3093
|
-
const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeContext): BatchPrediction => {
|
|
3094
|
-
return {
|
|
3095
|
-
BatchPredictionDataSourceId: __expectString(output.BatchPredictionDataSourceId),
|
|
3096
|
-
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
3097
|
-
ComputeTime: __expectLong(output.ComputeTime),
|
|
3098
|
-
CreatedAt:
|
|
3099
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3100
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3101
|
-
: undefined,
|
|
3102
|
-
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
3103
|
-
FinishedAt:
|
|
3104
|
-
output.FinishedAt !== undefined && output.FinishedAt !== null
|
|
3105
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
3106
|
-
: undefined,
|
|
3107
|
-
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
3108
|
-
InvalidRecordCount: __expectLong(output.InvalidRecordCount),
|
|
3109
|
-
LastUpdatedAt:
|
|
3110
|
-
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
3111
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3112
|
-
: undefined,
|
|
3113
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3114
|
-
Message: __expectString(output.Message),
|
|
3115
|
-
Name: __expectString(output.Name),
|
|
3116
|
-
OutputUri: __expectString(output.OutputUri),
|
|
3117
|
-
StartedAt:
|
|
3118
|
-
output.StartedAt !== undefined && output.StartedAt !== null
|
|
3119
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
3120
|
-
: undefined,
|
|
3121
|
-
Status: __expectString(output.Status),
|
|
3122
|
-
TotalRecordCount: __expectLong(output.TotalRecordCount),
|
|
3123
|
-
} as any;
|
|
3124
|
-
};
|
|
3125
|
-
|
|
3126
|
-
const deserializeAws_json1_1BatchPredictions = (output: any, context: __SerdeContext): BatchPrediction[] => {
|
|
3127
|
-
return (output || [])
|
|
3128
|
-
.filter((e: any) => e != null)
|
|
3129
|
-
.map((entry: any) => {
|
|
3130
|
-
if (entry === null) {
|
|
3131
|
-
return null as any;
|
|
3132
|
-
}
|
|
3133
|
-
return deserializeAws_json1_1BatchPrediction(entry, context);
|
|
3134
|
-
});
|
|
3135
|
-
};
|
|
3136
|
-
|
|
3137
|
-
const deserializeAws_json1_1CreateBatchPredictionOutput = (
|
|
3138
|
-
output: any,
|
|
3139
|
-
context: __SerdeContext
|
|
3140
|
-
): CreateBatchPredictionOutput => {
|
|
3141
|
-
return {
|
|
3142
|
-
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
3143
|
-
} as any;
|
|
3144
|
-
};
|
|
3145
|
-
|
|
3146
|
-
const deserializeAws_json1_1CreateDataSourceFromRDSOutput = (
|
|
3147
|
-
output: any,
|
|
3148
|
-
context: __SerdeContext
|
|
3149
|
-
): CreateDataSourceFromRDSOutput => {
|
|
3150
|
-
return {
|
|
3151
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
3152
|
-
} as any;
|
|
3153
|
-
};
|
|
3154
|
-
|
|
3155
|
-
const deserializeAws_json1_1CreateDataSourceFromRedshiftOutput = (
|
|
3156
|
-
output: any,
|
|
3157
|
-
context: __SerdeContext
|
|
3158
|
-
): CreateDataSourceFromRedshiftOutput => {
|
|
3159
|
-
return {
|
|
3160
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
3161
|
-
} as any;
|
|
3162
|
-
};
|
|
3163
|
-
|
|
3164
|
-
const deserializeAws_json1_1CreateDataSourceFromS3Output = (
|
|
3165
|
-
output: any,
|
|
3166
|
-
context: __SerdeContext
|
|
3167
|
-
): CreateDataSourceFromS3Output => {
|
|
3168
|
-
return {
|
|
3169
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
3170
|
-
} as any;
|
|
3171
|
-
};
|
|
3172
|
-
|
|
3173
|
-
const deserializeAws_json1_1CreateEvaluationOutput = (output: any, context: __SerdeContext): CreateEvaluationOutput => {
|
|
3174
|
-
return {
|
|
3175
|
-
EvaluationId: __expectString(output.EvaluationId),
|
|
3176
|
-
} as any;
|
|
3177
|
-
};
|
|
3178
|
-
|
|
3179
|
-
const deserializeAws_json1_1CreateMLModelOutput = (output: any, context: __SerdeContext): CreateMLModelOutput => {
|
|
3180
|
-
return {
|
|
3181
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3182
|
-
} as any;
|
|
3183
|
-
};
|
|
3184
|
-
|
|
3185
|
-
const deserializeAws_json1_1CreateRealtimeEndpointOutput = (
|
|
3186
|
-
output: any,
|
|
3187
|
-
context: __SerdeContext
|
|
3188
|
-
): CreateRealtimeEndpointOutput => {
|
|
3189
|
-
return {
|
|
3190
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3191
|
-
RealtimeEndpointInfo:
|
|
3192
|
-
output.RealtimeEndpointInfo !== undefined && output.RealtimeEndpointInfo !== null
|
|
3193
|
-
? deserializeAws_json1_1RealtimeEndpointInfo(output.RealtimeEndpointInfo, context)
|
|
3194
|
-
: undefined,
|
|
3195
|
-
} as any;
|
|
3196
|
-
};
|
|
3197
|
-
|
|
3198
|
-
const deserializeAws_json1_1DataSource = (output: any, context: __SerdeContext): DataSource => {
|
|
3199
|
-
return {
|
|
3200
|
-
ComputeStatistics: __expectBoolean(output.ComputeStatistics),
|
|
3201
|
-
ComputeTime: __expectLong(output.ComputeTime),
|
|
3202
|
-
CreatedAt:
|
|
3203
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3204
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3205
|
-
: undefined,
|
|
3206
|
-
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
3207
|
-
DataLocationS3: __expectString(output.DataLocationS3),
|
|
3208
|
-
DataRearrangement: __expectString(output.DataRearrangement),
|
|
3209
|
-
DataSizeInBytes: __expectLong(output.DataSizeInBytes),
|
|
3210
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
3211
|
-
FinishedAt:
|
|
3212
|
-
output.FinishedAt !== undefined && output.FinishedAt !== null
|
|
3213
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
3214
|
-
: undefined,
|
|
3215
|
-
LastUpdatedAt:
|
|
3216
|
-
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
3217
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3218
|
-
: undefined,
|
|
3219
|
-
Message: __expectString(output.Message),
|
|
3220
|
-
Name: __expectString(output.Name),
|
|
3221
|
-
NumberOfFiles: __expectLong(output.NumberOfFiles),
|
|
3222
|
-
RDSMetadata:
|
|
3223
|
-
output.RDSMetadata !== undefined && output.RDSMetadata !== null
|
|
3224
|
-
? deserializeAws_json1_1RDSMetadata(output.RDSMetadata, context)
|
|
3225
|
-
: undefined,
|
|
3226
|
-
RedshiftMetadata:
|
|
3227
|
-
output.RedshiftMetadata !== undefined && output.RedshiftMetadata !== null
|
|
3228
|
-
? deserializeAws_json1_1RedshiftMetadata(output.RedshiftMetadata, context)
|
|
3229
|
-
: undefined,
|
|
3230
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3231
|
-
StartedAt:
|
|
3232
|
-
output.StartedAt !== undefined && output.StartedAt !== null
|
|
3233
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
3234
|
-
: undefined,
|
|
3235
|
-
Status: __expectString(output.Status),
|
|
3236
|
-
} as any;
|
|
3237
|
-
};
|
|
3238
|
-
|
|
3239
|
-
const deserializeAws_json1_1DataSources = (output: any, context: __SerdeContext): DataSource[] => {
|
|
3240
|
-
return (output || [])
|
|
3241
|
-
.filter((e: any) => e != null)
|
|
3242
|
-
.map((entry: any) => {
|
|
3243
|
-
if (entry === null) {
|
|
3244
|
-
return null as any;
|
|
3245
|
-
}
|
|
3246
|
-
return deserializeAws_json1_1DataSource(entry, context);
|
|
3247
|
-
});
|
|
3248
|
-
};
|
|
3249
|
-
|
|
3250
|
-
const deserializeAws_json1_1DeleteBatchPredictionOutput = (
|
|
3251
|
-
output: any,
|
|
3252
|
-
context: __SerdeContext
|
|
3253
|
-
): DeleteBatchPredictionOutput => {
|
|
3254
|
-
return {
|
|
3255
|
-
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
3256
|
-
} as any;
|
|
3257
|
-
};
|
|
3258
|
-
|
|
3259
|
-
const deserializeAws_json1_1DeleteDataSourceOutput = (output: any, context: __SerdeContext): DeleteDataSourceOutput => {
|
|
3260
|
-
return {
|
|
3261
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
3262
|
-
} as any;
|
|
3263
|
-
};
|
|
3264
|
-
|
|
3265
|
-
const deserializeAws_json1_1DeleteEvaluationOutput = (output: any, context: __SerdeContext): DeleteEvaluationOutput => {
|
|
3266
|
-
return {
|
|
3267
|
-
EvaluationId: __expectString(output.EvaluationId),
|
|
3268
|
-
} as any;
|
|
3269
|
-
};
|
|
3270
|
-
|
|
3271
|
-
const deserializeAws_json1_1DeleteMLModelOutput = (output: any, context: __SerdeContext): DeleteMLModelOutput => {
|
|
3272
|
-
return {
|
|
3273
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3274
|
-
} as any;
|
|
3275
|
-
};
|
|
3276
|
-
|
|
3277
|
-
const deserializeAws_json1_1DeleteRealtimeEndpointOutput = (
|
|
3278
|
-
output: any,
|
|
3279
|
-
context: __SerdeContext
|
|
3280
|
-
): DeleteRealtimeEndpointOutput => {
|
|
3281
|
-
return {
|
|
3282
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3283
|
-
RealtimeEndpointInfo:
|
|
3284
|
-
output.RealtimeEndpointInfo !== undefined && output.RealtimeEndpointInfo !== null
|
|
3285
|
-
? deserializeAws_json1_1RealtimeEndpointInfo(output.RealtimeEndpointInfo, context)
|
|
3286
|
-
: undefined,
|
|
3287
|
-
} as any;
|
|
3288
|
-
};
|
|
3289
|
-
|
|
3290
|
-
const deserializeAws_json1_1DeleteTagsOutput = (output: any, context: __SerdeContext): DeleteTagsOutput => {
|
|
3291
|
-
return {
|
|
3292
|
-
ResourceId: __expectString(output.ResourceId),
|
|
3293
|
-
ResourceType: __expectString(output.ResourceType),
|
|
3294
|
-
} as any;
|
|
3295
|
-
};
|
|
3296
|
-
|
|
3297
|
-
const deserializeAws_json1_1DescribeBatchPredictionsOutput = (
|
|
3298
|
-
output: any,
|
|
3299
|
-
context: __SerdeContext
|
|
3300
|
-
): DescribeBatchPredictionsOutput => {
|
|
3301
|
-
return {
|
|
3302
|
-
NextToken: __expectString(output.NextToken),
|
|
3303
|
-
Results:
|
|
3304
|
-
output.Results !== undefined && output.Results !== null
|
|
3305
|
-
? deserializeAws_json1_1BatchPredictions(output.Results, context)
|
|
3306
|
-
: undefined,
|
|
3307
|
-
} as any;
|
|
3308
|
-
};
|
|
3309
|
-
|
|
3310
|
-
const deserializeAws_json1_1DescribeDataSourcesOutput = (
|
|
3311
|
-
output: any,
|
|
3312
|
-
context: __SerdeContext
|
|
3313
|
-
): DescribeDataSourcesOutput => {
|
|
3314
|
-
return {
|
|
3315
|
-
NextToken: __expectString(output.NextToken),
|
|
3316
|
-
Results:
|
|
3317
|
-
output.Results !== undefined && output.Results !== null
|
|
3318
|
-
? deserializeAws_json1_1DataSources(output.Results, context)
|
|
3319
|
-
: undefined,
|
|
3320
|
-
} as any;
|
|
3321
|
-
};
|
|
3322
|
-
|
|
3323
|
-
const deserializeAws_json1_1DescribeEvaluationsOutput = (
|
|
3324
|
-
output: any,
|
|
3325
|
-
context: __SerdeContext
|
|
3326
|
-
): DescribeEvaluationsOutput => {
|
|
3327
|
-
return {
|
|
3328
|
-
NextToken: __expectString(output.NextToken),
|
|
3329
|
-
Results:
|
|
3330
|
-
output.Results !== undefined && output.Results !== null
|
|
3331
|
-
? deserializeAws_json1_1Evaluations(output.Results, context)
|
|
3332
|
-
: undefined,
|
|
3333
|
-
} as any;
|
|
3334
|
-
};
|
|
3335
|
-
|
|
3336
|
-
const deserializeAws_json1_1DescribeMLModelsOutput = (output: any, context: __SerdeContext): DescribeMLModelsOutput => {
|
|
3337
|
-
return {
|
|
3338
|
-
NextToken: __expectString(output.NextToken),
|
|
3339
|
-
Results:
|
|
3340
|
-
output.Results !== undefined && output.Results !== null
|
|
3341
|
-
? deserializeAws_json1_1MLModels(output.Results, context)
|
|
3342
|
-
: undefined,
|
|
3343
|
-
} as any;
|
|
3344
|
-
};
|
|
3345
|
-
|
|
3346
|
-
const deserializeAws_json1_1DescribeTagsOutput = (output: any, context: __SerdeContext): DescribeTagsOutput => {
|
|
3347
|
-
return {
|
|
3348
|
-
ResourceId: __expectString(output.ResourceId),
|
|
3349
|
-
ResourceType: __expectString(output.ResourceType),
|
|
3350
|
-
Tags:
|
|
3351
|
-
output.Tags !== undefined && output.Tags !== null
|
|
3352
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
3353
|
-
: undefined,
|
|
3354
|
-
} as any;
|
|
3355
|
-
};
|
|
3356
|
-
|
|
3357
|
-
const deserializeAws_json1_1DetailsMap = (output: any, context: __SerdeContext): { [key: string]: string } => {
|
|
3358
|
-
return Object.entries(output).reduce(
|
|
3359
|
-
(acc: { [key: string]: string }, [key, value]: [DetailsAttributes | string, any]) => {
|
|
3360
|
-
if (value === null) {
|
|
3361
|
-
return acc;
|
|
3362
|
-
}
|
|
3363
|
-
return {
|
|
3364
|
-
...acc,
|
|
3365
|
-
[key]: __expectString(value) as any,
|
|
3366
|
-
};
|
|
3367
|
-
},
|
|
3368
|
-
{}
|
|
3369
|
-
);
|
|
3370
|
-
};
|
|
3371
|
-
|
|
3372
|
-
const deserializeAws_json1_1Evaluation = (output: any, context: __SerdeContext): Evaluation => {
|
|
3373
|
-
return {
|
|
3374
|
-
ComputeTime: __expectLong(output.ComputeTime),
|
|
3375
|
-
CreatedAt:
|
|
3376
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3377
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3378
|
-
: undefined,
|
|
3379
|
-
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
3380
|
-
EvaluationDataSourceId: __expectString(output.EvaluationDataSourceId),
|
|
3381
|
-
EvaluationId: __expectString(output.EvaluationId),
|
|
3382
|
-
FinishedAt:
|
|
3383
|
-
output.FinishedAt !== undefined && output.FinishedAt !== null
|
|
3384
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
3385
|
-
: undefined,
|
|
3386
|
-
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
3387
|
-
LastUpdatedAt:
|
|
3388
|
-
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
3389
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3390
|
-
: undefined,
|
|
3391
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3392
|
-
Message: __expectString(output.Message),
|
|
3393
|
-
Name: __expectString(output.Name),
|
|
3394
|
-
PerformanceMetrics:
|
|
3395
|
-
output.PerformanceMetrics !== undefined && output.PerformanceMetrics !== null
|
|
3396
|
-
? deserializeAws_json1_1PerformanceMetrics(output.PerformanceMetrics, context)
|
|
3397
|
-
: undefined,
|
|
3398
|
-
StartedAt:
|
|
3399
|
-
output.StartedAt !== undefined && output.StartedAt !== null
|
|
3400
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
3401
|
-
: undefined,
|
|
3402
|
-
Status: __expectString(output.Status),
|
|
3403
|
-
} as any;
|
|
3404
|
-
};
|
|
3405
|
-
|
|
3406
|
-
const deserializeAws_json1_1Evaluations = (output: any, context: __SerdeContext): Evaluation[] => {
|
|
3407
|
-
return (output || [])
|
|
3408
|
-
.filter((e: any) => e != null)
|
|
3409
|
-
.map((entry: any) => {
|
|
3410
|
-
if (entry === null) {
|
|
3411
|
-
return null as any;
|
|
3412
|
-
}
|
|
3413
|
-
return deserializeAws_json1_1Evaluation(entry, context);
|
|
3414
|
-
});
|
|
3415
|
-
};
|
|
3416
|
-
|
|
3417
|
-
const deserializeAws_json1_1GetBatchPredictionOutput = (
|
|
3418
|
-
output: any,
|
|
3419
|
-
context: __SerdeContext
|
|
3420
|
-
): GetBatchPredictionOutput => {
|
|
3421
|
-
return {
|
|
3422
|
-
BatchPredictionDataSourceId: __expectString(output.BatchPredictionDataSourceId),
|
|
3423
|
-
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
3424
|
-
ComputeTime: __expectLong(output.ComputeTime),
|
|
3425
|
-
CreatedAt:
|
|
3426
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3427
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3428
|
-
: undefined,
|
|
3429
|
-
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
3430
|
-
FinishedAt:
|
|
3431
|
-
output.FinishedAt !== undefined && output.FinishedAt !== null
|
|
3432
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
3433
|
-
: undefined,
|
|
3434
|
-
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
3435
|
-
InvalidRecordCount: __expectLong(output.InvalidRecordCount),
|
|
3436
|
-
LastUpdatedAt:
|
|
3437
|
-
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
3438
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3439
|
-
: undefined,
|
|
3440
|
-
LogUri: __expectString(output.LogUri),
|
|
3441
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3442
|
-
Message: __expectString(output.Message),
|
|
3443
|
-
Name: __expectString(output.Name),
|
|
3444
|
-
OutputUri: __expectString(output.OutputUri),
|
|
3445
|
-
StartedAt:
|
|
3446
|
-
output.StartedAt !== undefined && output.StartedAt !== null
|
|
3447
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
3448
|
-
: undefined,
|
|
3449
|
-
Status: __expectString(output.Status),
|
|
3450
|
-
TotalRecordCount: __expectLong(output.TotalRecordCount),
|
|
3451
|
-
} as any;
|
|
3452
|
-
};
|
|
3453
|
-
|
|
3454
|
-
const deserializeAws_json1_1GetDataSourceOutput = (output: any, context: __SerdeContext): GetDataSourceOutput => {
|
|
3455
|
-
return {
|
|
3456
|
-
ComputeStatistics: __expectBoolean(output.ComputeStatistics),
|
|
3457
|
-
ComputeTime: __expectLong(output.ComputeTime),
|
|
3458
|
-
CreatedAt:
|
|
3459
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3460
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3461
|
-
: undefined,
|
|
3462
|
-
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
3463
|
-
DataLocationS3: __expectString(output.DataLocationS3),
|
|
3464
|
-
DataRearrangement: __expectString(output.DataRearrangement),
|
|
3465
|
-
DataSizeInBytes: __expectLong(output.DataSizeInBytes),
|
|
3466
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
3467
|
-
DataSourceSchema: __expectString(output.DataSourceSchema),
|
|
3468
|
-
FinishedAt:
|
|
3469
|
-
output.FinishedAt !== undefined && output.FinishedAt !== null
|
|
3470
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
3471
|
-
: undefined,
|
|
3472
|
-
LastUpdatedAt:
|
|
3473
|
-
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
3474
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3475
|
-
: undefined,
|
|
3476
|
-
LogUri: __expectString(output.LogUri),
|
|
3477
|
-
Message: __expectString(output.Message),
|
|
3478
|
-
Name: __expectString(output.Name),
|
|
3479
|
-
NumberOfFiles: __expectLong(output.NumberOfFiles),
|
|
3480
|
-
RDSMetadata:
|
|
3481
|
-
output.RDSMetadata !== undefined && output.RDSMetadata !== null
|
|
3482
|
-
? deserializeAws_json1_1RDSMetadata(output.RDSMetadata, context)
|
|
3483
|
-
: undefined,
|
|
3484
|
-
RedshiftMetadata:
|
|
3485
|
-
output.RedshiftMetadata !== undefined && output.RedshiftMetadata !== null
|
|
3486
|
-
? deserializeAws_json1_1RedshiftMetadata(output.RedshiftMetadata, context)
|
|
3487
|
-
: undefined,
|
|
3488
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3489
|
-
StartedAt:
|
|
3490
|
-
output.StartedAt !== undefined && output.StartedAt !== null
|
|
3491
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
3492
|
-
: undefined,
|
|
3493
|
-
Status: __expectString(output.Status),
|
|
3494
|
-
} as any;
|
|
3495
|
-
};
|
|
3496
|
-
|
|
3497
|
-
const deserializeAws_json1_1GetEvaluationOutput = (output: any, context: __SerdeContext): GetEvaluationOutput => {
|
|
3498
|
-
return {
|
|
3499
|
-
ComputeTime: __expectLong(output.ComputeTime),
|
|
3500
|
-
CreatedAt:
|
|
3501
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3502
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3503
|
-
: undefined,
|
|
3504
|
-
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
3505
|
-
EvaluationDataSourceId: __expectString(output.EvaluationDataSourceId),
|
|
3506
|
-
EvaluationId: __expectString(output.EvaluationId),
|
|
3507
|
-
FinishedAt:
|
|
3508
|
-
output.FinishedAt !== undefined && output.FinishedAt !== null
|
|
3509
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
3510
|
-
: undefined,
|
|
3511
|
-
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
3512
|
-
LastUpdatedAt:
|
|
3513
|
-
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
3514
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3515
|
-
: undefined,
|
|
3516
|
-
LogUri: __expectString(output.LogUri),
|
|
3517
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3518
|
-
Message: __expectString(output.Message),
|
|
3519
|
-
Name: __expectString(output.Name),
|
|
3520
|
-
PerformanceMetrics:
|
|
3521
|
-
output.PerformanceMetrics !== undefined && output.PerformanceMetrics !== null
|
|
3522
|
-
? deserializeAws_json1_1PerformanceMetrics(output.PerformanceMetrics, context)
|
|
3523
|
-
: undefined,
|
|
3524
|
-
StartedAt:
|
|
3525
|
-
output.StartedAt !== undefined && output.StartedAt !== null
|
|
3526
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
3527
|
-
: undefined,
|
|
3528
|
-
Status: __expectString(output.Status),
|
|
3529
|
-
} as any;
|
|
3530
|
-
};
|
|
3531
|
-
|
|
3532
|
-
const deserializeAws_json1_1GetMLModelOutput = (output: any, context: __SerdeContext): GetMLModelOutput => {
|
|
3533
|
-
return {
|
|
3534
|
-
ComputeTime: __expectLong(output.ComputeTime),
|
|
3535
|
-
CreatedAt:
|
|
3536
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3537
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3538
|
-
: undefined,
|
|
3539
|
-
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
3540
|
-
EndpointInfo:
|
|
3541
|
-
output.EndpointInfo !== undefined && output.EndpointInfo !== null
|
|
3542
|
-
? deserializeAws_json1_1RealtimeEndpointInfo(output.EndpointInfo, context)
|
|
3543
|
-
: undefined,
|
|
3544
|
-
FinishedAt:
|
|
3545
|
-
output.FinishedAt !== undefined && output.FinishedAt !== null
|
|
3546
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
3547
|
-
: undefined,
|
|
3548
|
-
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
3549
|
-
LastUpdatedAt:
|
|
3550
|
-
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
3551
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3552
|
-
: undefined,
|
|
3553
|
-
LogUri: __expectString(output.LogUri),
|
|
3554
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3555
|
-
MLModelType: __expectString(output.MLModelType),
|
|
3556
|
-
Message: __expectString(output.Message),
|
|
3557
|
-
Name: __expectString(output.Name),
|
|
3558
|
-
Recipe: __expectString(output.Recipe),
|
|
3559
|
-
Schema: __expectString(output.Schema),
|
|
3560
|
-
ScoreThreshold: __limitedParseFloat32(output.ScoreThreshold),
|
|
3561
|
-
ScoreThresholdLastUpdatedAt:
|
|
3562
|
-
output.ScoreThresholdLastUpdatedAt !== undefined && output.ScoreThresholdLastUpdatedAt !== null
|
|
3563
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ScoreThresholdLastUpdatedAt)))
|
|
3564
|
-
: undefined,
|
|
3565
|
-
SizeInBytes: __expectLong(output.SizeInBytes),
|
|
3566
|
-
StartedAt:
|
|
3567
|
-
output.StartedAt !== undefined && output.StartedAt !== null
|
|
3568
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
3569
|
-
: undefined,
|
|
3570
|
-
Status: __expectString(output.Status),
|
|
3571
|
-
TrainingDataSourceId: __expectString(output.TrainingDataSourceId),
|
|
3572
|
-
TrainingParameters:
|
|
3573
|
-
output.TrainingParameters !== undefined && output.TrainingParameters !== null
|
|
3574
|
-
? deserializeAws_json1_1TrainingParameters(output.TrainingParameters, context)
|
|
3575
|
-
: undefined,
|
|
3576
|
-
} as any;
|
|
3577
|
-
};
|
|
3578
|
-
|
|
3579
|
-
const deserializeAws_json1_1IdempotentParameterMismatchException = (
|
|
3580
|
-
output: any,
|
|
3581
|
-
context: __SerdeContext
|
|
3582
|
-
): IdempotentParameterMismatchException => {
|
|
3583
|
-
return {
|
|
3584
|
-
code: __expectInt32(output.code),
|
|
3585
|
-
message: __expectString(output.message),
|
|
3586
|
-
} as any;
|
|
3587
|
-
};
|
|
3588
|
-
|
|
3589
|
-
const deserializeAws_json1_1InternalServerException = (
|
|
3590
|
-
output: any,
|
|
3591
|
-
context: __SerdeContext
|
|
3592
|
-
): InternalServerException => {
|
|
3593
|
-
return {
|
|
3594
|
-
code: __expectInt32(output.code),
|
|
3595
|
-
message: __expectString(output.message),
|
|
3596
|
-
} as any;
|
|
3597
|
-
};
|
|
3598
|
-
|
|
3599
|
-
const deserializeAws_json1_1InvalidInputException = (output: any, context: __SerdeContext): InvalidInputException => {
|
|
3600
|
-
return {
|
|
3601
|
-
code: __expectInt32(output.code),
|
|
3602
|
-
message: __expectString(output.message),
|
|
3603
|
-
} as any;
|
|
3604
|
-
};
|
|
3605
|
-
|
|
3606
|
-
const deserializeAws_json1_1InvalidTagException = (output: any, context: __SerdeContext): InvalidTagException => {
|
|
3607
|
-
return {
|
|
3608
|
-
message: __expectString(output.message),
|
|
3609
|
-
} as any;
|
|
3610
|
-
};
|
|
3611
|
-
|
|
3612
|
-
const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => {
|
|
3613
|
-
return {
|
|
3614
|
-
code: __expectInt32(output.code),
|
|
3615
|
-
message: __expectString(output.message),
|
|
3616
|
-
} as any;
|
|
3617
|
-
};
|
|
3618
|
-
|
|
3619
|
-
const deserializeAws_json1_1MLModel = (output: any, context: __SerdeContext): MLModel => {
|
|
3620
|
-
return {
|
|
3621
|
-
Algorithm: __expectString(output.Algorithm),
|
|
3622
|
-
ComputeTime: __expectLong(output.ComputeTime),
|
|
3623
|
-
CreatedAt:
|
|
3624
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3625
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3626
|
-
: undefined,
|
|
3627
|
-
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
3628
|
-
EndpointInfo:
|
|
3629
|
-
output.EndpointInfo !== undefined && output.EndpointInfo !== null
|
|
3630
|
-
? deserializeAws_json1_1RealtimeEndpointInfo(output.EndpointInfo, context)
|
|
3631
|
-
: undefined,
|
|
3632
|
-
FinishedAt:
|
|
3633
|
-
output.FinishedAt !== undefined && output.FinishedAt !== null
|
|
3634
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
3635
|
-
: undefined,
|
|
3636
|
-
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
3637
|
-
LastUpdatedAt:
|
|
3638
|
-
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
3639
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3640
|
-
: undefined,
|
|
3641
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3642
|
-
MLModelType: __expectString(output.MLModelType),
|
|
3643
|
-
Message: __expectString(output.Message),
|
|
3644
|
-
Name: __expectString(output.Name),
|
|
3645
|
-
ScoreThreshold: __limitedParseFloat32(output.ScoreThreshold),
|
|
3646
|
-
ScoreThresholdLastUpdatedAt:
|
|
3647
|
-
output.ScoreThresholdLastUpdatedAt !== undefined && output.ScoreThresholdLastUpdatedAt !== null
|
|
3648
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ScoreThresholdLastUpdatedAt)))
|
|
3649
|
-
: undefined,
|
|
3650
|
-
SizeInBytes: __expectLong(output.SizeInBytes),
|
|
3651
|
-
StartedAt:
|
|
3652
|
-
output.StartedAt !== undefined && output.StartedAt !== null
|
|
3653
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
3654
|
-
: undefined,
|
|
3655
|
-
Status: __expectString(output.Status),
|
|
3656
|
-
TrainingDataSourceId: __expectString(output.TrainingDataSourceId),
|
|
3657
|
-
TrainingParameters:
|
|
3658
|
-
output.TrainingParameters !== undefined && output.TrainingParameters !== null
|
|
3659
|
-
? deserializeAws_json1_1TrainingParameters(output.TrainingParameters, context)
|
|
3660
|
-
: undefined,
|
|
3661
|
-
} as any;
|
|
3662
|
-
};
|
|
3663
|
-
|
|
3664
|
-
const deserializeAws_json1_1MLModels = (output: any, context: __SerdeContext): MLModel[] => {
|
|
3665
|
-
return (output || [])
|
|
3666
|
-
.filter((e: any) => e != null)
|
|
3667
|
-
.map((entry: any) => {
|
|
3668
|
-
if (entry === null) {
|
|
3669
|
-
return null as any;
|
|
3670
|
-
}
|
|
3671
|
-
return deserializeAws_json1_1MLModel(entry, context);
|
|
3672
|
-
});
|
|
3673
|
-
};
|
|
3674
|
-
|
|
3675
|
-
const deserializeAws_json1_1PerformanceMetrics = (output: any, context: __SerdeContext): PerformanceMetrics => {
|
|
3676
|
-
return {
|
|
3677
|
-
Properties:
|
|
3678
|
-
output.Properties !== undefined && output.Properties !== null
|
|
3679
|
-
? deserializeAws_json1_1PerformanceMetricsProperties(output.Properties, context)
|
|
3680
|
-
: undefined,
|
|
3681
|
-
} as any;
|
|
3682
|
-
};
|
|
3683
|
-
|
|
3684
|
-
const deserializeAws_json1_1PerformanceMetricsProperties = (
|
|
3685
|
-
output: any,
|
|
3686
|
-
context: __SerdeContext
|
|
3687
|
-
): { [key: string]: string } => {
|
|
3688
|
-
return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
3689
|
-
if (value === null) {
|
|
3690
|
-
return acc;
|
|
3691
|
-
}
|
|
3692
|
-
return {
|
|
3693
|
-
...acc,
|
|
3694
|
-
[key]: __expectString(value) as any,
|
|
3695
|
-
};
|
|
3696
|
-
}, {});
|
|
3697
|
-
};
|
|
3698
|
-
|
|
3699
|
-
const deserializeAws_json1_1Prediction = (output: any, context: __SerdeContext): Prediction => {
|
|
3700
|
-
return {
|
|
3701
|
-
details:
|
|
3702
|
-
output.details !== undefined && output.details !== null
|
|
3703
|
-
? deserializeAws_json1_1DetailsMap(output.details, context)
|
|
3704
|
-
: undefined,
|
|
3705
|
-
predictedLabel: __expectString(output.predictedLabel),
|
|
3706
|
-
predictedScores:
|
|
3707
|
-
output.predictedScores !== undefined && output.predictedScores !== null
|
|
3708
|
-
? deserializeAws_json1_1ScoreValuePerLabelMap(output.predictedScores, context)
|
|
3709
|
-
: undefined,
|
|
3710
|
-
predictedValue: __limitedParseFloat32(output.predictedValue),
|
|
3711
|
-
} as any;
|
|
3712
|
-
};
|
|
3713
|
-
|
|
3714
|
-
const deserializeAws_json1_1PredictorNotMountedException = (
|
|
3715
|
-
output: any,
|
|
3716
|
-
context: __SerdeContext
|
|
3717
|
-
): PredictorNotMountedException => {
|
|
3718
|
-
return {
|
|
3719
|
-
message: __expectString(output.message),
|
|
3720
|
-
} as any;
|
|
3721
|
-
};
|
|
3722
|
-
|
|
3723
|
-
const deserializeAws_json1_1PredictOutput = (output: any, context: __SerdeContext): PredictOutput => {
|
|
3724
|
-
return {
|
|
3725
|
-
Prediction:
|
|
3726
|
-
output.Prediction !== undefined && output.Prediction !== null
|
|
3727
|
-
? deserializeAws_json1_1Prediction(output.Prediction, context)
|
|
3728
|
-
: undefined,
|
|
3729
|
-
} as any;
|
|
3730
|
-
};
|
|
3731
|
-
|
|
3732
|
-
const deserializeAws_json1_1RDSDatabase = (output: any, context: __SerdeContext): RDSDatabase => {
|
|
3733
|
-
return {
|
|
3734
|
-
DatabaseName: __expectString(output.DatabaseName),
|
|
3735
|
-
InstanceIdentifier: __expectString(output.InstanceIdentifier),
|
|
3736
|
-
} as any;
|
|
3737
|
-
};
|
|
3738
|
-
|
|
3739
|
-
const deserializeAws_json1_1RDSMetadata = (output: any, context: __SerdeContext): RDSMetadata => {
|
|
3740
|
-
return {
|
|
3741
|
-
DataPipelineId: __expectString(output.DataPipelineId),
|
|
3742
|
-
Database:
|
|
3743
|
-
output.Database !== undefined && output.Database !== null
|
|
3744
|
-
? deserializeAws_json1_1RDSDatabase(output.Database, context)
|
|
3745
|
-
: undefined,
|
|
3746
|
-
DatabaseUserName: __expectString(output.DatabaseUserName),
|
|
3747
|
-
ResourceRole: __expectString(output.ResourceRole),
|
|
3748
|
-
SelectSqlQuery: __expectString(output.SelectSqlQuery),
|
|
3749
|
-
ServiceRole: __expectString(output.ServiceRole),
|
|
3750
|
-
} as any;
|
|
3751
|
-
};
|
|
3752
|
-
|
|
3753
|
-
const deserializeAws_json1_1RealtimeEndpointInfo = (output: any, context: __SerdeContext): RealtimeEndpointInfo => {
|
|
3754
|
-
return {
|
|
3755
|
-
CreatedAt:
|
|
3756
|
-
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3757
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3758
|
-
: undefined,
|
|
3759
|
-
EndpointStatus: __expectString(output.EndpointStatus),
|
|
3760
|
-
EndpointUrl: __expectString(output.EndpointUrl),
|
|
3761
|
-
PeakRequestsPerSecond: __expectInt32(output.PeakRequestsPerSecond),
|
|
3762
|
-
} as any;
|
|
3763
|
-
};
|
|
3764
|
-
|
|
3765
|
-
const deserializeAws_json1_1RedshiftDatabase = (output: any, context: __SerdeContext): RedshiftDatabase => {
|
|
3766
|
-
return {
|
|
3767
|
-
ClusterIdentifier: __expectString(output.ClusterIdentifier),
|
|
3768
|
-
DatabaseName: __expectString(output.DatabaseName),
|
|
3769
|
-
} as any;
|
|
3770
|
-
};
|
|
3771
|
-
|
|
3772
|
-
const deserializeAws_json1_1RedshiftMetadata = (output: any, context: __SerdeContext): RedshiftMetadata => {
|
|
3773
|
-
return {
|
|
3774
|
-
DatabaseUserName: __expectString(output.DatabaseUserName),
|
|
3775
|
-
RedshiftDatabase:
|
|
3776
|
-
output.RedshiftDatabase !== undefined && output.RedshiftDatabase !== null
|
|
3777
|
-
? deserializeAws_json1_1RedshiftDatabase(output.RedshiftDatabase, context)
|
|
3778
|
-
: undefined,
|
|
3779
|
-
SelectSqlQuery: __expectString(output.SelectSqlQuery),
|
|
3780
|
-
} as any;
|
|
3781
|
-
};
|
|
3782
|
-
|
|
3783
|
-
const deserializeAws_json1_1ResourceNotFoundException = (
|
|
3784
|
-
output: any,
|
|
3785
|
-
context: __SerdeContext
|
|
3786
|
-
): ResourceNotFoundException => {
|
|
3787
|
-
return {
|
|
3788
|
-
code: __expectInt32(output.code),
|
|
3789
|
-
message: __expectString(output.message),
|
|
3790
|
-
} as any;
|
|
3791
|
-
};
|
|
3792
|
-
|
|
3793
|
-
const deserializeAws_json1_1ScoreValuePerLabelMap = (
|
|
3794
|
-
output: any,
|
|
3795
|
-
context: __SerdeContext
|
|
3796
|
-
): { [key: string]: number } => {
|
|
3797
|
-
return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => {
|
|
3798
|
-
if (value === null) {
|
|
3799
|
-
return acc;
|
|
3800
|
-
}
|
|
3801
|
-
return {
|
|
3802
|
-
...acc,
|
|
3803
|
-
[key]: __limitedParseFloat32(value) as any,
|
|
3804
|
-
};
|
|
3805
|
-
}, {});
|
|
3806
|
-
};
|
|
3807
|
-
|
|
3808
|
-
const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
|
|
3809
|
-
return {
|
|
3810
|
-
Key: __expectString(output.Key),
|
|
3811
|
-
Value: __expectString(output.Value),
|
|
3812
|
-
} as any;
|
|
3813
|
-
};
|
|
3814
|
-
|
|
3815
|
-
const deserializeAws_json1_1TagLimitExceededException = (
|
|
3816
|
-
output: any,
|
|
3817
|
-
context: __SerdeContext
|
|
3818
|
-
): TagLimitExceededException => {
|
|
3819
|
-
return {
|
|
3820
|
-
message: __expectString(output.message),
|
|
3821
|
-
} as any;
|
|
3822
|
-
};
|
|
3823
|
-
|
|
3824
|
-
const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => {
|
|
3825
|
-
return (output || [])
|
|
3826
|
-
.filter((e: any) => e != null)
|
|
3827
|
-
.map((entry: any) => {
|
|
3828
|
-
if (entry === null) {
|
|
3829
|
-
return null as any;
|
|
3830
|
-
}
|
|
3831
|
-
return deserializeAws_json1_1Tag(entry, context);
|
|
3832
|
-
});
|
|
3833
|
-
};
|
|
3834
|
-
|
|
3835
|
-
const deserializeAws_json1_1TrainingParameters = (output: any, context: __SerdeContext): { [key: string]: string } => {
|
|
3836
|
-
return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
3837
|
-
if (value === null) {
|
|
3838
|
-
return acc;
|
|
3839
|
-
}
|
|
3840
|
-
return {
|
|
3841
|
-
...acc,
|
|
3842
|
-
[key]: __expectString(value) as any,
|
|
3843
|
-
};
|
|
3844
|
-
}, {});
|
|
3845
|
-
};
|
|
3846
|
-
|
|
3847
|
-
const deserializeAws_json1_1UpdateBatchPredictionOutput = (
|
|
3848
|
-
output: any,
|
|
3849
|
-
context: __SerdeContext
|
|
3850
|
-
): UpdateBatchPredictionOutput => {
|
|
3851
|
-
return {
|
|
3852
|
-
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
3853
|
-
} as any;
|
|
3854
|
-
};
|
|
3855
|
-
|
|
3856
|
-
const deserializeAws_json1_1UpdateDataSourceOutput = (output: any, context: __SerdeContext): UpdateDataSourceOutput => {
|
|
3857
|
-
return {
|
|
3858
|
-
DataSourceId: __expectString(output.DataSourceId),
|
|
3859
|
-
} as any;
|
|
3860
|
-
};
|
|
3861
|
-
|
|
3862
|
-
const deserializeAws_json1_1UpdateEvaluationOutput = (output: any, context: __SerdeContext): UpdateEvaluationOutput => {
|
|
3863
|
-
return {
|
|
3864
|
-
EvaluationId: __expectString(output.EvaluationId),
|
|
3865
|
-
} as any;
|
|
3866
|
-
};
|
|
3867
|
-
|
|
3868
|
-
const deserializeAws_json1_1UpdateMLModelOutput = (output: any, context: __SerdeContext): UpdateMLModelOutput => {
|
|
3869
|
-
return {
|
|
3870
|
-
MLModelId: __expectString(output.MLModelId),
|
|
3871
|
-
} as any;
|
|
3872
|
-
};
|
|
3873
|
-
|
|
3874
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
3875
|
-
httpStatusCode: output.statusCode,
|
|
3876
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
3877
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3878
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3879
|
-
});
|
|
3880
|
-
|
|
3881
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3882
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
3883
|
-
if (streamBody instanceof Uint8Array) {
|
|
3884
|
-
return Promise.resolve(streamBody);
|
|
3885
|
-
}
|
|
3886
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3887
|
-
};
|
|
3888
|
-
|
|
3889
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3890
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
3891
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3892
|
-
|
|
3893
|
-
const buildHttpRpcRequest = async (
|
|
3894
|
-
context: __SerdeContext,
|
|
3895
|
-
headers: __HeaderBag,
|
|
3896
|
-
path: string,
|
|
3897
|
-
resolvedHostname: string | undefined,
|
|
3898
|
-
body: any
|
|
3899
|
-
): Promise<__HttpRequest> => {
|
|
3900
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3901
|
-
const contents: any = {
|
|
3902
|
-
protocol,
|
|
3903
|
-
hostname,
|
|
3904
|
-
port,
|
|
3905
|
-
method: "POST",
|
|
3906
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3907
|
-
headers,
|
|
3908
|
-
};
|
|
3909
|
-
if (resolvedHostname !== undefined) {
|
|
3910
|
-
contents.hostname = resolvedHostname;
|
|
3911
|
-
}
|
|
3912
|
-
if (body !== undefined) {
|
|
3913
|
-
contents.body = body;
|
|
3914
|
-
}
|
|
3915
|
-
return new __HttpRequest(contents);
|
|
3916
|
-
};
|
|
3917
|
-
|
|
3918
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
3919
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
3920
|
-
if (encoded.length) {
|
|
3921
|
-
return JSON.parse(encoded);
|
|
3922
|
-
}
|
|
3923
|
-
return {};
|
|
3924
|
-
});
|
|
3925
|
-
|
|
3926
|
-
/**
|
|
3927
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3928
|
-
*/
|
|
3929
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
3930
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3931
|
-
|
|
3932
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
3933
|
-
let cleanValue = rawValue;
|
|
3934
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3935
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3936
|
-
}
|
|
3937
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3938
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3939
|
-
}
|
|
3940
|
-
return cleanValue;
|
|
3941
|
-
};
|
|
3942
|
-
|
|
3943
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3944
|
-
if (headerKey !== undefined) {
|
|
3945
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3946
|
-
}
|
|
3947
|
-
|
|
3948
|
-
if (data.code !== undefined) {
|
|
3949
|
-
return sanitizeErrorCode(data.code);
|
|
3950
|
-
}
|
|
3951
|
-
|
|
3952
|
-
if (data["__type"] !== undefined) {
|
|
3953
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3954
|
-
}
|
|
3955
|
-
|
|
3956
|
-
return "";
|
|
3957
|
-
};
|