@aws-sdk/client-machine-learning 3.34.0 → 3.37.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 +47 -0
- package/{dist/cjs → dist-cjs}/MachineLearning.js +1 -6
- package/{dist/cjs → dist-cjs}/MachineLearningClient.js +8 -18
- package/{dist/cjs → dist-cjs}/commands/AddTagsCommand.js +2 -29
- package/dist-cjs/commands/CreateBatchPredictionCommand.js +36 -0
- package/dist-cjs/commands/CreateDataSourceFromRDSCommand.js +36 -0
- package/dist-cjs/commands/CreateDataSourceFromRedshiftCommand.js +36 -0
- package/dist-cjs/commands/CreateDataSourceFromS3Command.js +36 -0
- package/dist-cjs/commands/CreateEvaluationCommand.js +36 -0
- package/dist-cjs/commands/CreateMLModelCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/CreateRealtimeEndpointCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteBatchPredictionCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/DeleteDataSourceCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/DeleteEvaluationCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/DeleteMLModelCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/DeleteRealtimeEndpointCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteTagsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DescribeBatchPredictionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeDataSourcesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeEvaluationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeMLModelsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeTagsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetBatchPredictionCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetDataSourceCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/GetEvaluationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetMLModelCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/PredictCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/UpdateBatchPredictionCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UpdateDataSourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UpdateEvaluationCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UpdateMLModelCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- 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 -244
- package/{dist/cjs → dist-cjs}/pagination/DescribeBatchPredictionsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/DescribeDataSourcesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/DescribeEvaluationsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/DescribeMLModelsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/cjs → dist-cjs}/waiters/waitForBatchPredictionAvailable.js +10 -20
- package/{dist/cjs → dist-cjs}/waiters/waitForDataSourceAvailable.js +10 -20
- package/{dist/cjs → dist-cjs}/waiters/waitForEvaluationAvailable.js +10 -20
- package/{dist/cjs → dist-cjs}/waiters/waitForMLModelAvailable.js +10 -20
- package/{dist/es → dist-es}/MachineLearning.js +1 -2
- package/{dist/es → dist-es}/MachineLearningClient.js +1 -2
- package/{dist/es → dist-es}/commands/AddTagsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateBatchPredictionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateDataSourceFromRDSCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateDataSourceFromRedshiftCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateDataSourceFromS3Command.js +2 -3
- package/{dist/es → dist-es}/commands/CreateEvaluationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateMLModelCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateRealtimeEndpointCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteBatchPredictionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteDataSourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteEvaluationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteMLModelCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteRealtimeEndpointCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteTagsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeBatchPredictionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeDataSourcesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeEvaluationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeMLModelsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeTagsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetBatchPredictionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetDataSourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetEvaluationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetMLModelCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PredictCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateBatchPredictionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateDataSourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateEvaluationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateMLModelCommand.js +2 -3
- 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 -1
- package/{dist/es → dist-es}/pagination/DescribeBatchPredictionsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/DescribeDataSourcesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/DescribeEvaluationsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/DescribeMLModelsPaginator.js +1 -2
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForBatchPredictionAvailable.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForDataSourceAvailable.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForEvaluationAvailable.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForMLModelAvailable.js +1 -2
- 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 +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/MachineLearning.d.ts +145 -0
- package/{dist/types → dist-types}/ts3.4/MachineLearningClient.d.ts +32 -98
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateBatchPredictionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDataSourceFromRDSCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDataSourceFromRedshiftCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDataSourceFromS3Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEvaluationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateMLModelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateRealtimeEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBatchPredictionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEvaluationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMLModelCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRealtimeEndpointCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeBatchPredictionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeDataSourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeEvaluationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeMLModelsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBatchPredictionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEvaluationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMLModelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PredictCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateBatchPredictionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEvaluationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateMLModelCommand.d.ts +17 -0
- 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/ts3.4/models/models_0.d.ts +1312 -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 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/waiters/waitForBatchPredictionAvailable.d.ts +4 -11
- package/{dist/types → dist-types}/ts3.4/waiters/waitForDataSourceAvailable.d.ts +4 -11
- package/{dist/types → dist-types}/ts3.4/waiters/waitForEvaluationAvailable.d.ts +4 -11
- package/{dist/types → dist-types}/ts3.4/waiters/waitForMLModelAvailable.d.ts +4 -11
- 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 +47 -44
- 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 +0 -72
- package/dist/cjs/commands/CreateBatchPredictionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSourceFromRDSCommand.js +0 -72
- package/dist/cjs/commands/CreateDataSourceFromRDSCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSourceFromRedshiftCommand.js +0 -93
- package/dist/cjs/commands/CreateDataSourceFromRedshiftCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSourceFromS3Command.js +0 -91
- package/dist/cjs/commands/CreateDataSourceFromS3Command.js.map +0 -1
- package/dist/cjs/commands/CreateEvaluationCommand.js +0 -72
- package/dist/cjs/commands/CreateEvaluationCommand.js.map +0 -1
- package/dist/cjs/commands/CreateMLModelCommand.js +0 -80
- 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.map +0 -1
- package/dist/es/commands/CreateDataSourceFromRDSCommand.js.map +0 -1
- package/dist/es/commands/CreateDataSourceFromRedshiftCommand.js.map +0 -1
- package/dist/es/commands/CreateDataSourceFromS3Command.js.map +0 -1
- package/dist/es/commands/CreateEvaluationCommand.js.map +0 -1
- 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/dist/types/ts3.4/MachineLearning.d.ts +0 -352
- package/dist/types/ts3.4/commands/AddTagsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/CreateBatchPredictionCommand.d.ts +0 -46
- package/dist/types/ts3.4/commands/CreateDataSourceFromRDSCommand.d.ts +0 -46
- package/dist/types/ts3.4/commands/CreateDataSourceFromRedshiftCommand.d.ts +0 -67
- package/dist/types/ts3.4/commands/CreateDataSourceFromS3Command.d.ts +0 -65
- package/dist/types/ts3.4/commands/CreateEvaluationCommand.d.ts +0 -46
- package/dist/types/ts3.4/commands/CreateMLModelCommand.d.ts +0 -54
- package/dist/types/ts3.4/commands/CreateRealtimeEndpointCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteBatchPredictionCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/DeleteDataSourceCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/DeleteEvaluationCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/DeleteMLModelCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/DeleteTagsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DescribeBatchPredictionsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeDataSourcesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeEvaluationsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeMLModelsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeTagsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetBatchPredictionCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/GetDataSourceCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/GetEvaluationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetMLModelCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PredictCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/UpdateBatchPredictionCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UpdateDataSourceCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UpdateEvaluationCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UpdateMLModelCommand.d.ts +0 -36
- package/dist/types/ts3.4/models/models_0.d.ts +0 -3489
- 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 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
- 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/runtimeConfig.browser.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import packageInfo from "./package.json";
|
|
2
|
-
|
|
3
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
-
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
8
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
|
-
import { MachineLearningClientConfig } from "./MachineLearningClient";
|
|
12
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export const getRuntimeConfig = (config: MachineLearningClientConfig) => {
|
|
18
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
19
|
-
return {
|
|
20
|
-
...clientSharedValues,
|
|
21
|
-
...config,
|
|
22
|
-
runtime: "browser",
|
|
23
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
-
credentialDefaultProvider:
|
|
27
|
-
config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
|
-
defaultUserAgentProvider:
|
|
29
|
-
config?.defaultUserAgentProvider ??
|
|
30
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
32
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
33
|
-
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
|
|
34
|
-
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
|
|
35
|
-
sha256: config?.sha256 ?? Sha256,
|
|
36
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
37
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
-
};
|
|
40
|
-
};
|
package/runtimeConfig.native.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
-
import { MachineLearningClientConfig } from "./MachineLearningClient";
|
|
3
|
-
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export const getRuntimeConfig = (config: MachineLearningClientConfig) => {
|
|
9
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
10
|
-
return {
|
|
11
|
-
...browserDefaults,
|
|
12
|
-
...config,
|
|
13
|
-
runtime: "react-native",
|
|
14
|
-
sha256: config?.sha256 ?? Sha256,
|
|
15
|
-
};
|
|
16
|
-
};
|
package/runtimeConfig.shared.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
2
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
3
|
-
import { parseUrl } from "@aws-sdk/url-parser";
|
|
4
|
-
import { MachineLearningClientConfig } from "./MachineLearningClient";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export const getRuntimeConfig = (config: MachineLearningClientConfig) => ({
|
|
10
|
-
apiVersion: "2014-12-12",
|
|
11
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
-
logger: config?.logger ?? ({} as __Logger),
|
|
13
|
-
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
14
|
-
serviceId: config?.serviceId ?? "Machine Learning",
|
|
15
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
16
|
-
});
|
package/runtimeConfig.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import packageInfo from "./package.json";
|
|
2
|
-
|
|
3
|
-
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
|
-
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
8
|
-
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
-
import { MachineLearningClientConfig } from "./MachineLearningClient";
|
|
15
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
16
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
export const getRuntimeConfig = (config: MachineLearningClientConfig) => {
|
|
22
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
23
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
24
|
-
return {
|
|
25
|
-
...clientSharedValues,
|
|
26
|
-
...config,
|
|
27
|
-
runtime: "node",
|
|
28
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
29
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
30
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
33
|
-
defaultUserAgentProvider:
|
|
34
|
-
config?.defaultUserAgentProvider ??
|
|
35
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
37
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
38
|
-
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
|
|
39
|
-
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
40
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
41
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
42
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
43
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
44
|
-
};
|
|
45
|
-
};
|
package/tsconfig.es.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
|
|
8
|
-
"outDir": "dist/es"
|
|
9
|
-
}
|
|
10
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"alwaysStrict": true,
|
|
4
|
-
"target": "ES2018",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"downlevelIteration": true,
|
|
9
|
-
"importHelpers": true,
|
|
10
|
-
"noEmitHelpers": true,
|
|
11
|
-
"incremental": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"esModuleInterop": true,
|
|
14
|
-
"outDir": "dist/cjs",
|
|
15
|
-
"removeComments": true
|
|
16
|
-
},
|
|
17
|
-
"typedocOptions": {
|
|
18
|
-
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
19
|
-
"excludeNotExported": true,
|
|
20
|
-
"excludePrivate": true,
|
|
21
|
-
"hideGenerator": true,
|
|
22
|
-
"ignoreCompilerErrors": true,
|
|
23
|
-
"includeDeclarations": true,
|
|
24
|
-
"stripInternal": true,
|
|
25
|
-
"readme": "README.md",
|
|
26
|
-
"mode": "file",
|
|
27
|
-
"out": "docs",
|
|
28
|
-
"theme": "minimal",
|
|
29
|
-
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
30
|
-
}
|
|
31
|
-
}
|
package/tsconfig.types.json
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { MachineLearningClient } from "../MachineLearningClient";
|
|
2
|
-
import {
|
|
3
|
-
DescribeBatchPredictionsCommand,
|
|
4
|
-
DescribeBatchPredictionsCommandInput,
|
|
5
|
-
} from "../commands/DescribeBatchPredictionsCommand";
|
|
6
|
-
import { WaiterConfiguration, WaiterResult, WaiterState, checkExceptions, createWaiter } from "@aws-sdk/util-waiter";
|
|
7
|
-
|
|
8
|
-
const checkState = async (
|
|
9
|
-
client: MachineLearningClient,
|
|
10
|
-
input: DescribeBatchPredictionsCommandInput
|
|
11
|
-
): Promise<WaiterResult> => {
|
|
12
|
-
let reason;
|
|
13
|
-
try {
|
|
14
|
-
let result: any = await client.send(new DescribeBatchPredictionsCommand(input));
|
|
15
|
-
reason = result;
|
|
16
|
-
try {
|
|
17
|
-
let returnComparator = () => {
|
|
18
|
-
let flat_1: any[] = [].concat(...result.Results);
|
|
19
|
-
let projection_3 = flat_1.map((element_2: any) => {
|
|
20
|
-
return element_2.Status;
|
|
21
|
-
});
|
|
22
|
-
return projection_3;
|
|
23
|
-
};
|
|
24
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
25
|
-
for (let element_4 of returnComparator()) {
|
|
26
|
-
allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
|
|
27
|
-
}
|
|
28
|
-
if (allStringEq_5) {
|
|
29
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
30
|
-
}
|
|
31
|
-
} catch (e) {}
|
|
32
|
-
try {
|
|
33
|
-
let returnComparator = () => {
|
|
34
|
-
let flat_1: any[] = [].concat(...result.Results);
|
|
35
|
-
let projection_3 = flat_1.map((element_2: any) => {
|
|
36
|
-
return element_2.Status;
|
|
37
|
-
});
|
|
38
|
-
return projection_3;
|
|
39
|
-
};
|
|
40
|
-
for (let anyStringEq_4 of returnComparator()) {
|
|
41
|
-
if (anyStringEq_4 == "FAILED") {
|
|
42
|
-
return { state: WaiterState.FAILURE, reason };
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} catch (e) {}
|
|
46
|
-
} catch (exception) {
|
|
47
|
-
reason = exception;
|
|
48
|
-
}
|
|
49
|
-
return { state: WaiterState.RETRY, reason };
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @deprecated Use waitUntilBatchPredictionAvailable instead. waitForBatchPredictionAvailable does not throw error in non-success cases.
|
|
54
|
-
*/
|
|
55
|
-
export const waitForBatchPredictionAvailable = async (
|
|
56
|
-
params: WaiterConfiguration<MachineLearningClient>,
|
|
57
|
-
input: DescribeBatchPredictionsCommandInput
|
|
58
|
-
): Promise<WaiterResult> => {
|
|
59
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
60
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @param params - Waiter configuration options.
|
|
65
|
-
* @param input - The input to DescribeBatchPredictionsCommand for polling.
|
|
66
|
-
*/
|
|
67
|
-
export const waitUntilBatchPredictionAvailable = async (
|
|
68
|
-
params: WaiterConfiguration<MachineLearningClient>,
|
|
69
|
-
input: DescribeBatchPredictionsCommandInput
|
|
70
|
-
): Promise<WaiterResult> => {
|
|
71
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
72
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
73
|
-
return checkExceptions(result);
|
|
74
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { MachineLearningClient } from "../MachineLearningClient";
|
|
2
|
-
import { DescribeDataSourcesCommand, DescribeDataSourcesCommandInput } from "../commands/DescribeDataSourcesCommand";
|
|
3
|
-
import { WaiterConfiguration, WaiterResult, WaiterState, checkExceptions, createWaiter } from "@aws-sdk/util-waiter";
|
|
4
|
-
|
|
5
|
-
const checkState = async (
|
|
6
|
-
client: MachineLearningClient,
|
|
7
|
-
input: DescribeDataSourcesCommandInput
|
|
8
|
-
): Promise<WaiterResult> => {
|
|
9
|
-
let reason;
|
|
10
|
-
try {
|
|
11
|
-
let result: any = await client.send(new DescribeDataSourcesCommand(input));
|
|
12
|
-
reason = result;
|
|
13
|
-
try {
|
|
14
|
-
let returnComparator = () => {
|
|
15
|
-
let flat_1: any[] = [].concat(...result.Results);
|
|
16
|
-
let projection_3 = flat_1.map((element_2: any) => {
|
|
17
|
-
return element_2.Status;
|
|
18
|
-
});
|
|
19
|
-
return projection_3;
|
|
20
|
-
};
|
|
21
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
22
|
-
for (let element_4 of returnComparator()) {
|
|
23
|
-
allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
|
|
24
|
-
}
|
|
25
|
-
if (allStringEq_5) {
|
|
26
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
27
|
-
}
|
|
28
|
-
} catch (e) {}
|
|
29
|
-
try {
|
|
30
|
-
let returnComparator = () => {
|
|
31
|
-
let flat_1: any[] = [].concat(...result.Results);
|
|
32
|
-
let projection_3 = flat_1.map((element_2: any) => {
|
|
33
|
-
return element_2.Status;
|
|
34
|
-
});
|
|
35
|
-
return projection_3;
|
|
36
|
-
};
|
|
37
|
-
for (let anyStringEq_4 of returnComparator()) {
|
|
38
|
-
if (anyStringEq_4 == "FAILED") {
|
|
39
|
-
return { state: WaiterState.FAILURE, reason };
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
} catch (e) {}
|
|
43
|
-
} catch (exception) {
|
|
44
|
-
reason = exception;
|
|
45
|
-
}
|
|
46
|
-
return { state: WaiterState.RETRY, reason };
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @deprecated Use waitUntilDataSourceAvailable instead. waitForDataSourceAvailable does not throw error in non-success cases.
|
|
51
|
-
*/
|
|
52
|
-
export const waitForDataSourceAvailable = async (
|
|
53
|
-
params: WaiterConfiguration<MachineLearningClient>,
|
|
54
|
-
input: DescribeDataSourcesCommandInput
|
|
55
|
-
): Promise<WaiterResult> => {
|
|
56
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
57
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @param params - Waiter configuration options.
|
|
62
|
-
* @param input - The input to DescribeDataSourcesCommand for polling.
|
|
63
|
-
*/
|
|
64
|
-
export const waitUntilDataSourceAvailable = async (
|
|
65
|
-
params: WaiterConfiguration<MachineLearningClient>,
|
|
66
|
-
input: DescribeDataSourcesCommandInput
|
|
67
|
-
): Promise<WaiterResult> => {
|
|
68
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
69
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
70
|
-
return checkExceptions(result);
|
|
71
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { MachineLearningClient } from "../MachineLearningClient";
|
|
2
|
-
import { DescribeEvaluationsCommand, DescribeEvaluationsCommandInput } from "../commands/DescribeEvaluationsCommand";
|
|
3
|
-
import { WaiterConfiguration, WaiterResult, WaiterState, checkExceptions, createWaiter } from "@aws-sdk/util-waiter";
|
|
4
|
-
|
|
5
|
-
const checkState = async (
|
|
6
|
-
client: MachineLearningClient,
|
|
7
|
-
input: DescribeEvaluationsCommandInput
|
|
8
|
-
): Promise<WaiterResult> => {
|
|
9
|
-
let reason;
|
|
10
|
-
try {
|
|
11
|
-
let result: any = await client.send(new DescribeEvaluationsCommand(input));
|
|
12
|
-
reason = result;
|
|
13
|
-
try {
|
|
14
|
-
let returnComparator = () => {
|
|
15
|
-
let flat_1: any[] = [].concat(...result.Results);
|
|
16
|
-
let projection_3 = flat_1.map((element_2: any) => {
|
|
17
|
-
return element_2.Status;
|
|
18
|
-
});
|
|
19
|
-
return projection_3;
|
|
20
|
-
};
|
|
21
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
22
|
-
for (let element_4 of returnComparator()) {
|
|
23
|
-
allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
|
|
24
|
-
}
|
|
25
|
-
if (allStringEq_5) {
|
|
26
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
27
|
-
}
|
|
28
|
-
} catch (e) {}
|
|
29
|
-
try {
|
|
30
|
-
let returnComparator = () => {
|
|
31
|
-
let flat_1: any[] = [].concat(...result.Results);
|
|
32
|
-
let projection_3 = flat_1.map((element_2: any) => {
|
|
33
|
-
return element_2.Status;
|
|
34
|
-
});
|
|
35
|
-
return projection_3;
|
|
36
|
-
};
|
|
37
|
-
for (let anyStringEq_4 of returnComparator()) {
|
|
38
|
-
if (anyStringEq_4 == "FAILED") {
|
|
39
|
-
return { state: WaiterState.FAILURE, reason };
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
} catch (e) {}
|
|
43
|
-
} catch (exception) {
|
|
44
|
-
reason = exception;
|
|
45
|
-
}
|
|
46
|
-
return { state: WaiterState.RETRY, reason };
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @deprecated Use waitUntilEvaluationAvailable instead. waitForEvaluationAvailable does not throw error in non-success cases.
|
|
51
|
-
*/
|
|
52
|
-
export const waitForEvaluationAvailable = async (
|
|
53
|
-
params: WaiterConfiguration<MachineLearningClient>,
|
|
54
|
-
input: DescribeEvaluationsCommandInput
|
|
55
|
-
): Promise<WaiterResult> => {
|
|
56
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
57
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @param params - Waiter configuration options.
|
|
62
|
-
* @param input - The input to DescribeEvaluationsCommand for polling.
|
|
63
|
-
*/
|
|
64
|
-
export const waitUntilEvaluationAvailable = async (
|
|
65
|
-
params: WaiterConfiguration<MachineLearningClient>,
|
|
66
|
-
input: DescribeEvaluationsCommandInput
|
|
67
|
-
): Promise<WaiterResult> => {
|
|
68
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
69
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
70
|
-
return checkExceptions(result);
|
|
71
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { MachineLearningClient } from "../MachineLearningClient";
|
|
2
|
-
import { DescribeMLModelsCommand, DescribeMLModelsCommandInput } from "../commands/DescribeMLModelsCommand";
|
|
3
|
-
import { WaiterConfiguration, WaiterResult, WaiterState, checkExceptions, createWaiter } from "@aws-sdk/util-waiter";
|
|
4
|
-
|
|
5
|
-
const checkState = async (
|
|
6
|
-
client: MachineLearningClient,
|
|
7
|
-
input: DescribeMLModelsCommandInput
|
|
8
|
-
): Promise<WaiterResult> => {
|
|
9
|
-
let reason;
|
|
10
|
-
try {
|
|
11
|
-
let result: any = await client.send(new DescribeMLModelsCommand(input));
|
|
12
|
-
reason = result;
|
|
13
|
-
try {
|
|
14
|
-
let returnComparator = () => {
|
|
15
|
-
let flat_1: any[] = [].concat(...result.Results);
|
|
16
|
-
let projection_3 = flat_1.map((element_2: any) => {
|
|
17
|
-
return element_2.Status;
|
|
18
|
-
});
|
|
19
|
-
return projection_3;
|
|
20
|
-
};
|
|
21
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
22
|
-
for (let element_4 of returnComparator()) {
|
|
23
|
-
allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
|
|
24
|
-
}
|
|
25
|
-
if (allStringEq_5) {
|
|
26
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
27
|
-
}
|
|
28
|
-
} catch (e) {}
|
|
29
|
-
try {
|
|
30
|
-
let returnComparator = () => {
|
|
31
|
-
let flat_1: any[] = [].concat(...result.Results);
|
|
32
|
-
let projection_3 = flat_1.map((element_2: any) => {
|
|
33
|
-
return element_2.Status;
|
|
34
|
-
});
|
|
35
|
-
return projection_3;
|
|
36
|
-
};
|
|
37
|
-
for (let anyStringEq_4 of returnComparator()) {
|
|
38
|
-
if (anyStringEq_4 == "FAILED") {
|
|
39
|
-
return { state: WaiterState.FAILURE, reason };
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
} catch (e) {}
|
|
43
|
-
} catch (exception) {
|
|
44
|
-
reason = exception;
|
|
45
|
-
}
|
|
46
|
-
return { state: WaiterState.RETRY, reason };
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @deprecated Use waitUntilMLModelAvailable instead. waitForMLModelAvailable does not throw error in non-success cases.
|
|
51
|
-
*/
|
|
52
|
-
export const waitForMLModelAvailable = async (
|
|
53
|
-
params: WaiterConfiguration<MachineLearningClient>,
|
|
54
|
-
input: DescribeMLModelsCommandInput
|
|
55
|
-
): Promise<WaiterResult> => {
|
|
56
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
57
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @param params - Waiter configuration options.
|
|
62
|
-
* @param input - The input to DescribeMLModelsCommand for polling.
|
|
63
|
-
*/
|
|
64
|
-
export const waitUntilMLModelAvailable = async (
|
|
65
|
-
params: WaiterConfiguration<MachineLearningClient>,
|
|
66
|
-
input: DescribeMLModelsCommandInput
|
|
67
|
-
): Promise<WaiterResult> => {
|
|
68
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
69
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
70
|
-
return checkExceptions(result);
|
|
71
|
-
};
|