@aws-sdk/client-databrew 3.31.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/DataBrew.js +2 -2
- package/dist-cjs/DataBrew.js.map +1 -0
- package/{dist/cjs → dist-cjs}/DataBrewClient.js +14 -14
- package/dist-cjs/DataBrewClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/BatchDeleteRecipeVersionCommand.js +5 -5
- package/dist-cjs/commands/BatchDeleteRecipeVersionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateDatasetCommand.js +5 -5
- package/dist-cjs/commands/CreateDatasetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateProfileJobCommand.js +5 -5
- package/dist-cjs/commands/CreateProfileJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateProjectCommand.js +5 -5
- package/dist-cjs/commands/CreateProjectCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateRecipeCommand.js +5 -5
- package/dist-cjs/commands/CreateRecipeCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateRecipeJobCommand.js +5 -5
- package/dist-cjs/commands/CreateRecipeJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateScheduleCommand.js +5 -5
- package/dist-cjs/commands/CreateScheduleCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteDatasetCommand.js +5 -5
- package/dist-cjs/commands/DeleteDatasetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteJobCommand.js +5 -5
- package/dist-cjs/commands/DeleteJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteProjectCommand.js +5 -5
- package/dist-cjs/commands/DeleteProjectCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteRecipeVersionCommand.js +5 -5
- package/dist-cjs/commands/DeleteRecipeVersionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteScheduleCommand.js +5 -5
- package/dist-cjs/commands/DeleteScheduleCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeDatasetCommand.js +5 -5
- package/dist-cjs/commands/DescribeDatasetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeJobCommand.js +5 -5
- package/dist-cjs/commands/DescribeJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeJobRunCommand.js +5 -5
- package/dist-cjs/commands/DescribeJobRunCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeProjectCommand.js +5 -5
- package/dist-cjs/commands/DescribeProjectCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeRecipeCommand.js +5 -5
- package/dist-cjs/commands/DescribeRecipeCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeScheduleCommand.js +5 -5
- package/dist-cjs/commands/DescribeScheduleCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDatasetsCommand.js +5 -5
- package/dist-cjs/commands/ListDatasetsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListJobRunsCommand.js +5 -5
- package/dist-cjs/commands/ListJobRunsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListJobsCommand.js +5 -5
- package/dist-cjs/commands/ListJobsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListProjectsCommand.js +5 -5
- package/dist-cjs/commands/ListProjectsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListRecipeVersionsCommand.js +5 -5
- package/dist-cjs/commands/ListRecipeVersionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListRecipesCommand.js +5 -5
- package/dist-cjs/commands/ListRecipesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListSchedulesCommand.js +5 -5
- package/dist-cjs/commands/ListSchedulesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PublishRecipeCommand.js +5 -5
- package/dist-cjs/commands/PublishRecipeCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/SendProjectSessionActionCommand.js +5 -5
- package/dist-cjs/commands/SendProjectSessionActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StartJobRunCommand.js +5 -5
- package/dist-cjs/commands/StartJobRunCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StartProjectSessionCommand.js +5 -5
- package/dist-cjs/commands/StartProjectSessionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StopJobRunCommand.js +5 -5
- package/dist-cjs/commands/StopJobRunCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateDatasetCommand.js +5 -5
- package/dist-cjs/commands/UpdateDatasetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateProfileJobCommand.js +5 -5
- package/dist-cjs/commands/UpdateProfileJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateProjectCommand.js +5 -5
- package/dist-cjs/commands/UpdateProjectCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateRecipeCommand.js +5 -5
- package/dist-cjs/commands/UpdateRecipeCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateRecipeJobCommand.js +5 -5
- package/dist-cjs/commands/UpdateRecipeJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateScheduleCommand.js +5 -5
- package/dist-cjs/commands/UpdateScheduleCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +54 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListDatasetsPaginator.js +1 -1
- package/dist-cjs/pagination/ListDatasetsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListJobRunsPaginator.js +1 -1
- package/dist-cjs/pagination/ListJobRunsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListJobsPaginator.js +1 -1
- package/dist-cjs/pagination/ListJobsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListProjectsPaginator.js +1 -1
- package/dist-cjs/pagination/ListProjectsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListRecipeVersionsPaginator.js +1 -1
- package/dist-cjs/pagination/ListRecipeVersionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListRecipesPaginator.js +1 -1
- package/dist-cjs/pagination/ListRecipesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListSchedulesPaginator.js +1 -1
- package/dist-cjs/pagination/ListSchedulesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +311 -311
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/DataBrew.js +3 -9
- package/dist-es/DataBrew.js.map +1 -0
- package/{dist/es → dist-es}/DataBrewClient.js +2 -13
- package/dist-es/DataBrewClient.js.map +1 -0
- package/dist-es/commands/BatchDeleteRecipeVersionCommand.js +40 -0
- package/dist-es/commands/BatchDeleteRecipeVersionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateDatasetCommand.js +4 -29
- package/dist-es/commands/CreateDatasetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateProfileJobCommand.js +4 -29
- package/dist-es/commands/CreateProfileJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateProjectCommand.js +4 -29
- package/dist-es/commands/CreateProjectCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateRecipeCommand.js +4 -29
- package/dist-es/commands/CreateRecipeCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateRecipeJobCommand.js +4 -29
- package/dist-es/commands/CreateRecipeJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateScheduleCommand.js +4 -30
- package/dist-es/commands/CreateScheduleCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteDatasetCommand.js +4 -29
- package/dist-es/commands/DeleteDatasetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteJobCommand.js +4 -29
- package/dist-es/commands/DeleteJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteProjectCommand.js +4 -29
- package/dist-es/commands/DeleteProjectCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteRecipeVersionCommand.js +4 -29
- package/dist-es/commands/DeleteRecipeVersionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteScheduleCommand.js +4 -29
- package/dist-es/commands/DeleteScheduleCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeDatasetCommand.js +4 -29
- package/dist-es/commands/DescribeDatasetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeJobCommand.js +4 -29
- package/dist-es/commands/DescribeJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeJobRunCommand.js +4 -29
- package/dist-es/commands/DescribeJobRunCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeProjectCommand.js +4 -29
- package/dist-es/commands/DescribeProjectCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeRecipeCommand.js +4 -30
- package/dist-es/commands/DescribeRecipeCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeScheduleCommand.js +4 -29
- package/dist-es/commands/DescribeScheduleCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDatasetsCommand.js +4 -29
- package/dist-es/commands/ListDatasetsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListJobRunsCommand.js +4 -29
- package/dist-es/commands/ListJobRunsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListJobsCommand.js +4 -29
- package/dist-es/commands/ListJobsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListProjectsCommand.js +4 -29
- package/dist-es/commands/ListProjectsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListRecipeVersionsCommand.js +4 -30
- package/dist-es/commands/ListRecipeVersionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListRecipesCommand.js +4 -29
- package/dist-es/commands/ListRecipesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListSchedulesCommand.js +4 -29
- package/dist-es/commands/ListSchedulesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PublishRecipeCommand.js +4 -29
- package/dist-es/commands/PublishRecipeCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/SendProjectSessionActionCommand.js +4 -30
- package/dist-es/commands/SendProjectSessionActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StartJobRunCommand.js +4 -29
- package/dist-es/commands/StartJobRunCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StartProjectSessionCommand.js +4 -30
- package/dist-es/commands/StartProjectSessionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StopJobRunCommand.js +4 -29
- package/dist-es/commands/StopJobRunCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateDatasetCommand.js +4 -29
- package/dist-es/commands/UpdateDatasetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateProfileJobCommand.js +4 -29
- package/dist-es/commands/UpdateProfileJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateProjectCommand.js +4 -29
- package/dist-es/commands/UpdateProjectCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateRecipeCommand.js +4 -30
- package/dist-es/commands/UpdateRecipeCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateRecipeJobCommand.js +4 -29
- package/dist-es/commands/UpdateRecipeJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateScheduleCommand.js +4 -29
- package/dist-es/commands/UpdateScheduleCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -369
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListDatasetsPaginator.js +17 -29
- package/dist-es/pagination/ListDatasetsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListJobRunsPaginator.js +17 -29
- package/dist-es/pagination/ListJobRunsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListJobsPaginator.js +17 -29
- package/dist-es/pagination/ListJobsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListProjectsPaginator.js +17 -29
- package/dist-es/pagination/ListProjectsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListRecipeVersionsPaginator.js +17 -29
- package/dist-es/pagination/ListRecipeVersionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListRecipesPaginator.js +17 -29
- package/dist-es/pagination/ListRecipesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListSchedulesPaginator.js +17 -29
- package/dist-es/pagination/ListSchedulesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +748 -753
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/DataBrew.d.ts +3 -3
- package/{dist/types → dist-types}/DataBrewClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/BatchDeleteRecipeVersionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateProfileJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateProjectCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateRecipeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateRecipeJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteProjectCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteRecipeVersionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeProjectCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRecipeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDatasetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListJobRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListProjectsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRecipeVersionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRecipesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListSchedulesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PublishRecipeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SendProjectSessionActionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartProjectSessionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateProfileJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateProjectCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateRecipeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateRecipeJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDatasetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListJobRunsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListProjectsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRecipeVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRecipesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSchedulesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/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/DataBrew.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/DataBrewClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/BatchDeleteRecipeVersionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateProfileJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateProjectCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateRecipeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateRecipeJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteProjectCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRecipeVersionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeProjectCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRecipeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDatasetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListJobRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListProjectsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListRecipeVersionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListRecipesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListSchedulesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PublishRecipeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/SendProjectSessionActionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartProjectSessionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateProfileJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateProjectCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateRecipeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateRecipeJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDatasetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListJobRunsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListProjectsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRecipeVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRecipesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSchedulesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{DataBrew.ts → src/DataBrew.ts} +4 -3
- package/{DataBrewClient.ts → src/DataBrewClient.ts} +59 -58
- package/{commands → src/commands}/BatchDeleteRecipeVersionCommand.ts +8 -7
- package/{commands → src/commands}/CreateDatasetCommand.ts +8 -7
- package/{commands → src/commands}/CreateProfileJobCommand.ts +8 -7
- package/{commands → src/commands}/CreateProjectCommand.ts +8 -7
- package/{commands → src/commands}/CreateRecipeCommand.ts +8 -7
- package/{commands → src/commands}/CreateRecipeJobCommand.ts +8 -7
- package/{commands → src/commands}/CreateScheduleCommand.ts +8 -7
- package/{commands → src/commands}/DeleteDatasetCommand.ts +8 -7
- package/{commands → src/commands}/DeleteJobCommand.ts +8 -7
- package/{commands → src/commands}/DeleteProjectCommand.ts +8 -7
- package/{commands → src/commands}/DeleteRecipeVersionCommand.ts +8 -7
- package/{commands → src/commands}/DeleteScheduleCommand.ts +8 -7
- package/{commands → src/commands}/DescribeDatasetCommand.ts +8 -7
- package/{commands → src/commands}/DescribeJobCommand.ts +8 -7
- package/{commands → src/commands}/DescribeJobRunCommand.ts +8 -7
- package/{commands → src/commands}/DescribeProjectCommand.ts +8 -7
- package/{commands → src/commands}/DescribeRecipeCommand.ts +8 -7
- package/{commands → src/commands}/DescribeScheduleCommand.ts +8 -7
- package/{commands → src/commands}/ListDatasetsCommand.ts +8 -7
- package/{commands → src/commands}/ListJobRunsCommand.ts +8 -7
- package/{commands → src/commands}/ListJobsCommand.ts +8 -7
- package/{commands → src/commands}/ListProjectsCommand.ts +8 -7
- package/{commands → src/commands}/ListRecipeVersionsCommand.ts +8 -7
- package/{commands → src/commands}/ListRecipesCommand.ts +8 -7
- package/{commands → src/commands}/ListSchedulesCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/PublishRecipeCommand.ts +8 -7
- package/{commands → src/commands}/SendProjectSessionActionCommand.ts +8 -7
- package/{commands → src/commands}/StartJobRunCommand.ts +8 -7
- package/{commands → src/commands}/StartProjectSessionCommand.ts +8 -7
- package/{commands → src/commands}/StopJobRunCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateDatasetCommand.ts +8 -7
- package/{commands → src/commands}/UpdateProfileJobCommand.ts +8 -7
- package/{commands → src/commands}/UpdateProjectCommand.ts +8 -7
- package/{commands → src/commands}/UpdateRecipeCommand.ts +8 -7
- package/{commands → src/commands}/UpdateRecipeJobCommand.ts +8 -7
- package/{commands → src/commands}/UpdateScheduleCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListDatasetsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListJobRunsPaginator.ts +3 -2
- package/{pagination → src/pagination}/ListJobsPaginator.ts +3 -2
- package/{pagination → src/pagination}/ListProjectsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListRecipeVersionsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListRecipesPaginator.ts +3 -2
- package/{pagination → src/pagination}/ListSchedulesPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_restJson1.ts +74 -73
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/DataBrew.js.map +0 -1
- package/dist/cjs/DataBrewClient.js.map +0 -1
- package/dist/cjs/commands/BatchDeleteRecipeVersionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateProfileJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateProjectCommand.js.map +0 -1
- package/dist/cjs/commands/CreateRecipeCommand.js.map +0 -1
- package/dist/cjs/commands/CreateRecipeJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateScheduleCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteJobCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteProjectCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRecipeVersionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteScheduleCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeJobCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeJobRunCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeProjectCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRecipeCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeScheduleCommand.js.map +0 -1
- package/dist/cjs/commands/ListDatasetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListJobRunsCommand.js.map +0 -1
- package/dist/cjs/commands/ListJobsCommand.js.map +0 -1
- package/dist/cjs/commands/ListProjectsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRecipeVersionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRecipesCommand.js.map +0 -1
- package/dist/cjs/commands/ListSchedulesCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PublishRecipeCommand.js.map +0 -1
- package/dist/cjs/commands/SendProjectSessionActionCommand.js.map +0 -1
- package/dist/cjs/commands/StartJobRunCommand.js.map +0 -1
- package/dist/cjs/commands/StartProjectSessionCommand.js.map +0 -1
- package/dist/cjs/commands/StopJobRunCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateProfileJobCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateProjectCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateRecipeCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateRecipeJobCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateScheduleCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -54
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/ListDatasetsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListJobRunsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListJobsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListProjectsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRecipeVersionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRecipesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListSchedulesPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/DataBrew.js.map +0 -1
- package/dist/es/DataBrewClient.js.map +0 -1
- package/dist/es/commands/BatchDeleteRecipeVersionCommand.js +0 -105
- package/dist/es/commands/BatchDeleteRecipeVersionCommand.js.map +0 -1
- package/dist/es/commands/CreateDatasetCommand.js.map +0 -1
- package/dist/es/commands/CreateProfileJobCommand.js.map +0 -1
- package/dist/es/commands/CreateProjectCommand.js.map +0 -1
- package/dist/es/commands/CreateRecipeCommand.js.map +0 -1
- package/dist/es/commands/CreateRecipeJobCommand.js.map +0 -1
- package/dist/es/commands/CreateScheduleCommand.js.map +0 -1
- package/dist/es/commands/DeleteDatasetCommand.js.map +0 -1
- package/dist/es/commands/DeleteJobCommand.js.map +0 -1
- package/dist/es/commands/DeleteProjectCommand.js.map +0 -1
- package/dist/es/commands/DeleteRecipeVersionCommand.js.map +0 -1
- package/dist/es/commands/DeleteScheduleCommand.js.map +0 -1
- package/dist/es/commands/DescribeDatasetCommand.js.map +0 -1
- package/dist/es/commands/DescribeJobCommand.js.map +0 -1
- package/dist/es/commands/DescribeJobRunCommand.js.map +0 -1
- package/dist/es/commands/DescribeProjectCommand.js.map +0 -1
- package/dist/es/commands/DescribeRecipeCommand.js.map +0 -1
- package/dist/es/commands/DescribeScheduleCommand.js.map +0 -1
- package/dist/es/commands/ListDatasetsCommand.js.map +0 -1
- package/dist/es/commands/ListJobRunsCommand.js.map +0 -1
- package/dist/es/commands/ListJobsCommand.js.map +0 -1
- package/dist/es/commands/ListProjectsCommand.js.map +0 -1
- package/dist/es/commands/ListRecipeVersionsCommand.js.map +0 -1
- package/dist/es/commands/ListRecipesCommand.js.map +0 -1
- package/dist/es/commands/ListSchedulesCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PublishRecipeCommand.js.map +0 -1
- package/dist/es/commands/SendProjectSessionActionCommand.js.map +0 -1
- package/dist/es/commands/StartJobRunCommand.js.map +0 -1
- package/dist/es/commands/StartProjectSessionCommand.js.map +0 -1
- package/dist/es/commands/StopJobRunCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateDatasetCommand.js.map +0 -1
- package/dist/es/commands/UpdateProfileJobCommand.js.map +0 -1
- package/dist/es/commands/UpdateProjectCommand.js.map +0 -1
- package/dist/es/commands/UpdateRecipeCommand.js.map +0 -1
- package/dist/es/commands/UpdateRecipeJobCommand.js.map +0 -1
- package/dist/es/commands/UpdateScheduleCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/ListDatasetsPaginator.js.map +0 -1
- package/dist/es/pagination/ListJobRunsPaginator.js.map +0 -1
- package/dist/es/pagination/ListJobsPaginator.js.map +0 -1
- package/dist/es/pagination/ListProjectsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRecipeVersionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRecipesPaginator.js.map +0 -1
- package/dist/es/pagination/ListSchedulesPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.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
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1BatchDeleteRecipeVersionCommand = function (inp
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -26,7 +26,7 @@ export var serializeAws_restJson1BatchDeleteRecipeVersionCommand = function (inp
|
|
|
26
26
|
input.RecipeVersions !== null && {
|
|
27
27
|
RecipeVersions: serializeAws_restJson1RecipeVersionList(input.RecipeVersions, context),
|
|
28
28
|
})));
|
|
29
|
-
return [2
|
|
29
|
+
return [2, new __HttpRequest({
|
|
30
30
|
protocol: protocol,
|
|
31
31
|
hostname: hostname,
|
|
32
32
|
port: port,
|
|
@@ -42,7 +42,7 @@ export var serializeAws_restJson1CreateDatasetCommand = function (input, context
|
|
|
42
42
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
43
43
|
return __generator(this, function (_c) {
|
|
44
44
|
switch (_c.label) {
|
|
45
|
-
case 0: return [4
|
|
45
|
+
case 0: return [4, context.endpoint()];
|
|
46
46
|
case 1:
|
|
47
47
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
48
48
|
headers = {
|
|
@@ -55,7 +55,7 @@ export var serializeAws_restJson1CreateDatasetCommand = function (input, context
|
|
|
55
55
|
})), (input.Input !== undefined &&
|
|
56
56
|
input.Input !== null && { Input: serializeAws_restJson1Input(input.Input, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.PathOptions !== undefined &&
|
|
57
57
|
input.PathOptions !== null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
58
|
-
return [2
|
|
58
|
+
return [2, new __HttpRequest({
|
|
59
59
|
protocol: protocol,
|
|
60
60
|
hostname: hostname,
|
|
61
61
|
port: port,
|
|
@@ -71,7 +71,7 @@ export var serializeAws_restJson1CreateProfileJobCommand = function (input, cont
|
|
|
71
71
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
72
72
|
return __generator(this, function (_c) {
|
|
73
73
|
switch (_c.label) {
|
|
74
|
-
case 0: return [4
|
|
74
|
+
case 0: return [4, context.endpoint()];
|
|
75
75
|
case 1:
|
|
76
76
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
77
77
|
headers = {
|
|
@@ -89,7 +89,7 @@ export var serializeAws_restJson1CreateProfileJobCommand = function (input, cont
|
|
|
89
89
|
input.OutputLocation !== null && {
|
|
90
90
|
OutputLocation: serializeAws_restJson1S3Location(input.OutputLocation, context),
|
|
91
91
|
})), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })));
|
|
92
|
-
return [2
|
|
92
|
+
return [2, new __HttpRequest({
|
|
93
93
|
protocol: protocol,
|
|
94
94
|
hostname: hostname,
|
|
95
95
|
port: port,
|
|
@@ -105,7 +105,7 @@ export var serializeAws_restJson1CreateProjectCommand = function (input, context
|
|
|
105
105
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
106
106
|
return __generator(this, function (_c) {
|
|
107
107
|
switch (_c.label) {
|
|
108
|
-
case 0: return [4
|
|
108
|
+
case 0: return [4, context.endpoint()];
|
|
109
109
|
case 1:
|
|
110
110
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
111
111
|
headers = {
|
|
@@ -114,7 +114,7 @@ export var serializeAws_restJson1CreateProjectCommand = function (input, context
|
|
|
114
114
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects";
|
|
115
115
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DatasetName !== undefined && input.DatasetName !== null && { DatasetName: input.DatasetName })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RecipeName !== undefined && input.RecipeName !== null && { RecipeName: input.RecipeName })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Sample !== undefined &&
|
|
116
116
|
input.Sample !== null && { Sample: serializeAws_restJson1Sample(input.Sample, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
117
|
-
return [2
|
|
117
|
+
return [2, new __HttpRequest({
|
|
118
118
|
protocol: protocol,
|
|
119
119
|
hostname: hostname,
|
|
120
120
|
port: port,
|
|
@@ -130,7 +130,7 @@ export var serializeAws_restJson1CreateRecipeCommand = function (input, context)
|
|
|
130
130
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
131
131
|
return __generator(this, function (_c) {
|
|
132
132
|
switch (_c.label) {
|
|
133
|
-
case 0: return [4
|
|
133
|
+
case 0: return [4, context.endpoint()];
|
|
134
134
|
case 1:
|
|
135
135
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
136
136
|
headers = {
|
|
@@ -139,7 +139,7 @@ export var serializeAws_restJson1CreateRecipeCommand = function (input, context)
|
|
|
139
139
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recipes";
|
|
140
140
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Steps !== undefined &&
|
|
141
141
|
input.Steps !== null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
142
|
-
return [2
|
|
142
|
+
return [2, new __HttpRequest({
|
|
143
143
|
protocol: protocol,
|
|
144
144
|
hostname: hostname,
|
|
145
145
|
port: port,
|
|
@@ -155,7 +155,7 @@ export var serializeAws_restJson1CreateRecipeJobCommand = function (input, conte
|
|
|
155
155
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
156
156
|
return __generator(this, function (_c) {
|
|
157
157
|
switch (_c.label) {
|
|
158
|
-
case 0: return [4
|
|
158
|
+
case 0: return [4, context.endpoint()];
|
|
159
159
|
case 1:
|
|
160
160
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
161
161
|
headers = {
|
|
@@ -176,7 +176,7 @@ export var serializeAws_restJson1CreateRecipeJobCommand = function (input, conte
|
|
|
176
176
|
input.RecipeReference !== null && {
|
|
177
177
|
RecipeReference: serializeAws_restJson1RecipeReference(input.RecipeReference, context),
|
|
178
178
|
})), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })));
|
|
179
|
-
return [2
|
|
179
|
+
return [2, new __HttpRequest({
|
|
180
180
|
protocol: protocol,
|
|
181
181
|
hostname: hostname,
|
|
182
182
|
port: port,
|
|
@@ -192,7 +192,7 @@ export var serializeAws_restJson1CreateScheduleCommand = function (input, contex
|
|
|
192
192
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
193
193
|
return __generator(this, function (_c) {
|
|
194
194
|
switch (_c.label) {
|
|
195
|
-
case 0: return [4
|
|
195
|
+
case 0: return [4, context.endpoint()];
|
|
196
196
|
case 1:
|
|
197
197
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
198
198
|
headers = {
|
|
@@ -202,7 +202,7 @@ export var serializeAws_restJson1CreateScheduleCommand = function (input, contex
|
|
|
202
202
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CronExpression !== undefined &&
|
|
203
203
|
input.CronExpression !== null && { CronExpression: input.CronExpression })), (input.JobNames !== undefined &&
|
|
204
204
|
input.JobNames !== null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
205
|
-
return [2
|
|
205
|
+
return [2, new __HttpRequest({
|
|
206
206
|
protocol: protocol,
|
|
207
207
|
hostname: hostname,
|
|
208
208
|
port: port,
|
|
@@ -218,7 +218,7 @@ export var serializeAws_restJson1DeleteDatasetCommand = function (input, context
|
|
|
218
218
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
219
219
|
return __generator(this, function (_c) {
|
|
220
220
|
switch (_c.label) {
|
|
221
|
-
case 0: return [4
|
|
221
|
+
case 0: return [4, context.endpoint()];
|
|
222
222
|
case 1:
|
|
223
223
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
224
224
|
headers = {};
|
|
@@ -233,7 +233,7 @@ export var serializeAws_restJson1DeleteDatasetCommand = function (input, context
|
|
|
233
233
|
else {
|
|
234
234
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
235
235
|
}
|
|
236
|
-
return [2
|
|
236
|
+
return [2, new __HttpRequest({
|
|
237
237
|
protocol: protocol,
|
|
238
238
|
hostname: hostname,
|
|
239
239
|
port: port,
|
|
@@ -249,7 +249,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
|
|
|
249
249
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
250
250
|
return __generator(this, function (_c) {
|
|
251
251
|
switch (_c.label) {
|
|
252
|
-
case 0: return [4
|
|
252
|
+
case 0: return [4, context.endpoint()];
|
|
253
253
|
case 1:
|
|
254
254
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
255
255
|
headers = {};
|
|
@@ -264,7 +264,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
|
|
|
264
264
|
else {
|
|
265
265
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
266
266
|
}
|
|
267
|
-
return [2
|
|
267
|
+
return [2, new __HttpRequest({
|
|
268
268
|
protocol: protocol,
|
|
269
269
|
hostname: hostname,
|
|
270
270
|
port: port,
|
|
@@ -280,7 +280,7 @@ export var serializeAws_restJson1DeleteProjectCommand = function (input, context
|
|
|
280
280
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
281
281
|
return __generator(this, function (_c) {
|
|
282
282
|
switch (_c.label) {
|
|
283
|
-
case 0: return [4
|
|
283
|
+
case 0: return [4, context.endpoint()];
|
|
284
284
|
case 1:
|
|
285
285
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
286
286
|
headers = {};
|
|
@@ -295,7 +295,7 @@ export var serializeAws_restJson1DeleteProjectCommand = function (input, context
|
|
|
295
295
|
else {
|
|
296
296
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
297
297
|
}
|
|
298
|
-
return [2
|
|
298
|
+
return [2, new __HttpRequest({
|
|
299
299
|
protocol: protocol,
|
|
300
300
|
hostname: hostname,
|
|
301
301
|
port: port,
|
|
@@ -311,7 +311,7 @@ export var serializeAws_restJson1DeleteRecipeVersionCommand = function (input, c
|
|
|
311
311
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
312
312
|
return __generator(this, function (_c) {
|
|
313
313
|
switch (_c.label) {
|
|
314
|
-
case 0: return [4
|
|
314
|
+
case 0: return [4, context.endpoint()];
|
|
315
315
|
case 1:
|
|
316
316
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
317
317
|
headers = {};
|
|
@@ -337,7 +337,7 @@ export var serializeAws_restJson1DeleteRecipeVersionCommand = function (input, c
|
|
|
337
337
|
else {
|
|
338
338
|
throw new Error("No value provided for input HTTP label: RecipeVersion.");
|
|
339
339
|
}
|
|
340
|
-
return [2
|
|
340
|
+
return [2, new __HttpRequest({
|
|
341
341
|
protocol: protocol,
|
|
342
342
|
hostname: hostname,
|
|
343
343
|
port: port,
|
|
@@ -353,7 +353,7 @@ export var serializeAws_restJson1DeleteScheduleCommand = function (input, contex
|
|
|
353
353
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
354
354
|
return __generator(this, function (_c) {
|
|
355
355
|
switch (_c.label) {
|
|
356
|
-
case 0: return [4
|
|
356
|
+
case 0: return [4, context.endpoint()];
|
|
357
357
|
case 1:
|
|
358
358
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
359
359
|
headers = {};
|
|
@@ -368,7 +368,7 @@ export var serializeAws_restJson1DeleteScheduleCommand = function (input, contex
|
|
|
368
368
|
else {
|
|
369
369
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
370
370
|
}
|
|
371
|
-
return [2
|
|
371
|
+
return [2, new __HttpRequest({
|
|
372
372
|
protocol: protocol,
|
|
373
373
|
hostname: hostname,
|
|
374
374
|
port: port,
|
|
@@ -384,7 +384,7 @@ export var serializeAws_restJson1DescribeDatasetCommand = function (input, conte
|
|
|
384
384
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
385
385
|
return __generator(this, function (_c) {
|
|
386
386
|
switch (_c.label) {
|
|
387
|
-
case 0: return [4
|
|
387
|
+
case 0: return [4, context.endpoint()];
|
|
388
388
|
case 1:
|
|
389
389
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
390
390
|
headers = {};
|
|
@@ -399,7 +399,7 @@ export var serializeAws_restJson1DescribeDatasetCommand = function (input, conte
|
|
|
399
399
|
else {
|
|
400
400
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
401
401
|
}
|
|
402
|
-
return [2
|
|
402
|
+
return [2, new __HttpRequest({
|
|
403
403
|
protocol: protocol,
|
|
404
404
|
hostname: hostname,
|
|
405
405
|
port: port,
|
|
@@ -415,7 +415,7 @@ export var serializeAws_restJson1DescribeJobCommand = function (input, context)
|
|
|
415
415
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
416
416
|
return __generator(this, function (_c) {
|
|
417
417
|
switch (_c.label) {
|
|
418
|
-
case 0: return [4
|
|
418
|
+
case 0: return [4, context.endpoint()];
|
|
419
419
|
case 1:
|
|
420
420
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
421
421
|
headers = {};
|
|
@@ -430,7 +430,7 @@ export var serializeAws_restJson1DescribeJobCommand = function (input, context)
|
|
|
430
430
|
else {
|
|
431
431
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
432
432
|
}
|
|
433
|
-
return [2
|
|
433
|
+
return [2, new __HttpRequest({
|
|
434
434
|
protocol: protocol,
|
|
435
435
|
hostname: hostname,
|
|
436
436
|
port: port,
|
|
@@ -446,7 +446,7 @@ export var serializeAws_restJson1DescribeJobRunCommand = function (input, contex
|
|
|
446
446
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
447
447
|
return __generator(this, function (_c) {
|
|
448
448
|
switch (_c.label) {
|
|
449
|
-
case 0: return [4
|
|
449
|
+
case 0: return [4, context.endpoint()];
|
|
450
450
|
case 1:
|
|
451
451
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
452
452
|
headers = {};
|
|
@@ -471,7 +471,7 @@ export var serializeAws_restJson1DescribeJobRunCommand = function (input, contex
|
|
|
471
471
|
else {
|
|
472
472
|
throw new Error("No value provided for input HTTP label: RunId.");
|
|
473
473
|
}
|
|
474
|
-
return [2
|
|
474
|
+
return [2, new __HttpRequest({
|
|
475
475
|
protocol: protocol,
|
|
476
476
|
hostname: hostname,
|
|
477
477
|
port: port,
|
|
@@ -487,7 +487,7 @@ export var serializeAws_restJson1DescribeProjectCommand = function (input, conte
|
|
|
487
487
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
488
488
|
return __generator(this, function (_c) {
|
|
489
489
|
switch (_c.label) {
|
|
490
|
-
case 0: return [4
|
|
490
|
+
case 0: return [4, context.endpoint()];
|
|
491
491
|
case 1:
|
|
492
492
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
493
493
|
headers = {};
|
|
@@ -502,7 +502,7 @@ export var serializeAws_restJson1DescribeProjectCommand = function (input, conte
|
|
|
502
502
|
else {
|
|
503
503
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
504
504
|
}
|
|
505
|
-
return [2
|
|
505
|
+
return [2, new __HttpRequest({
|
|
506
506
|
protocol: protocol,
|
|
507
507
|
hostname: hostname,
|
|
508
508
|
port: port,
|
|
@@ -518,7 +518,7 @@ export var serializeAws_restJson1DescribeRecipeCommand = function (input, contex
|
|
|
518
518
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
519
519
|
return __generator(this, function (_c) {
|
|
520
520
|
switch (_c.label) {
|
|
521
|
-
case 0: return [4
|
|
521
|
+
case 0: return [4, context.endpoint()];
|
|
522
522
|
case 1:
|
|
523
523
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
524
524
|
headers = {};
|
|
@@ -534,7 +534,7 @@ export var serializeAws_restJson1DescribeRecipeCommand = function (input, contex
|
|
|
534
534
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
535
535
|
}
|
|
536
536
|
query = __assign({}, (input.RecipeVersion !== undefined && { recipeVersion: input.RecipeVersion }));
|
|
537
|
-
return [2
|
|
537
|
+
return [2, new __HttpRequest({
|
|
538
538
|
protocol: protocol,
|
|
539
539
|
hostname: hostname,
|
|
540
540
|
port: port,
|
|
@@ -551,7 +551,7 @@ export var serializeAws_restJson1DescribeScheduleCommand = function (input, cont
|
|
|
551
551
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
552
552
|
return __generator(this, function (_c) {
|
|
553
553
|
switch (_c.label) {
|
|
554
|
-
case 0: return [4
|
|
554
|
+
case 0: return [4, context.endpoint()];
|
|
555
555
|
case 1:
|
|
556
556
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
557
557
|
headers = {};
|
|
@@ -566,7 +566,7 @@ export var serializeAws_restJson1DescribeScheduleCommand = function (input, cont
|
|
|
566
566
|
else {
|
|
567
567
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
568
568
|
}
|
|
569
|
-
return [2
|
|
569
|
+
return [2, new __HttpRequest({
|
|
570
570
|
protocol: protocol,
|
|
571
571
|
hostname: hostname,
|
|
572
572
|
port: port,
|
|
@@ -582,13 +582,13 @@ export var serializeAws_restJson1ListDatasetsCommand = function (input, context)
|
|
|
582
582
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
583
583
|
return __generator(this, function (_c) {
|
|
584
584
|
switch (_c.label) {
|
|
585
|
-
case 0: return [4
|
|
585
|
+
case 0: return [4, context.endpoint()];
|
|
586
586
|
case 1:
|
|
587
587
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
588
588
|
headers = {};
|
|
589
589
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets";
|
|
590
590
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
591
|
-
return [2
|
|
591
|
+
return [2, new __HttpRequest({
|
|
592
592
|
protocol: protocol,
|
|
593
593
|
hostname: hostname,
|
|
594
594
|
port: port,
|
|
@@ -605,7 +605,7 @@ export var serializeAws_restJson1ListJobRunsCommand = function (input, context)
|
|
|
605
605
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
606
606
|
return __generator(this, function (_c) {
|
|
607
607
|
switch (_c.label) {
|
|
608
|
-
case 0: return [4
|
|
608
|
+
case 0: return [4, context.endpoint()];
|
|
609
609
|
case 1:
|
|
610
610
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
611
611
|
headers = {};
|
|
@@ -621,7 +621,7 @@ export var serializeAws_restJson1ListJobRunsCommand = function (input, context)
|
|
|
621
621
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
622
622
|
}
|
|
623
623
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
624
|
-
return [2
|
|
624
|
+
return [2, new __HttpRequest({
|
|
625
625
|
protocol: protocol,
|
|
626
626
|
hostname: hostname,
|
|
627
627
|
port: port,
|
|
@@ -638,13 +638,13 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
638
638
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
639
639
|
return __generator(this, function (_c) {
|
|
640
640
|
switch (_c.label) {
|
|
641
|
-
case 0: return [4
|
|
641
|
+
case 0: return [4, context.endpoint()];
|
|
642
642
|
case 1:
|
|
643
643
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
644
644
|
headers = {};
|
|
645
645
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs";
|
|
646
646
|
query = __assign(__assign(__assign(__assign({}, (input.DatasetName !== undefined && { datasetName: input.DatasetName })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.ProjectName !== undefined && { projectName: input.ProjectName }));
|
|
647
|
-
return [2
|
|
647
|
+
return [2, new __HttpRequest({
|
|
648
648
|
protocol: protocol,
|
|
649
649
|
hostname: hostname,
|
|
650
650
|
port: port,
|
|
@@ -661,13 +661,13 @@ export var serializeAws_restJson1ListProjectsCommand = function (input, context)
|
|
|
661
661
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
662
662
|
return __generator(this, function (_c) {
|
|
663
663
|
switch (_c.label) {
|
|
664
|
-
case 0: return [4
|
|
664
|
+
case 0: return [4, context.endpoint()];
|
|
665
665
|
case 1:
|
|
666
666
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
667
667
|
headers = {};
|
|
668
668
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects";
|
|
669
669
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
670
|
-
return [2
|
|
670
|
+
return [2, new __HttpRequest({
|
|
671
671
|
protocol: protocol,
|
|
672
672
|
hostname: hostname,
|
|
673
673
|
port: port,
|
|
@@ -684,13 +684,13 @@ export var serializeAws_restJson1ListRecipesCommand = function (input, context)
|
|
|
684
684
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
685
685
|
return __generator(this, function (_c) {
|
|
686
686
|
switch (_c.label) {
|
|
687
|
-
case 0: return [4
|
|
687
|
+
case 0: return [4, context.endpoint()];
|
|
688
688
|
case 1:
|
|
689
689
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
690
690
|
headers = {};
|
|
691
691
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recipes";
|
|
692
692
|
query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.RecipeVersion !== undefined && { recipeVersion: input.RecipeVersion }));
|
|
693
|
-
return [2
|
|
693
|
+
return [2, new __HttpRequest({
|
|
694
694
|
protocol: protocol,
|
|
695
695
|
hostname: hostname,
|
|
696
696
|
port: port,
|
|
@@ -707,13 +707,13 @@ export var serializeAws_restJson1ListRecipeVersionsCommand = function (input, co
|
|
|
707
707
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
708
708
|
return __generator(this, function (_c) {
|
|
709
709
|
switch (_c.label) {
|
|
710
|
-
case 0: return [4
|
|
710
|
+
case 0: return [4, context.endpoint()];
|
|
711
711
|
case 1:
|
|
712
712
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
713
713
|
headers = {};
|
|
714
714
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recipeVersions";
|
|
715
715
|
query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.Name !== undefined && { name: input.Name }));
|
|
716
|
-
return [2
|
|
716
|
+
return [2, new __HttpRequest({
|
|
717
717
|
protocol: protocol,
|
|
718
718
|
hostname: hostname,
|
|
719
719
|
port: port,
|
|
@@ -730,13 +730,13 @@ export var serializeAws_restJson1ListSchedulesCommand = function (input, context
|
|
|
730
730
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
731
731
|
return __generator(this, function (_c) {
|
|
732
732
|
switch (_c.label) {
|
|
733
|
-
case 0: return [4
|
|
733
|
+
case 0: return [4, context.endpoint()];
|
|
734
734
|
case 1:
|
|
735
735
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
736
736
|
headers = {};
|
|
737
737
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/schedules";
|
|
738
738
|
query = __assign(__assign(__assign({}, (input.JobName !== undefined && { jobName: input.JobName })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
739
|
-
return [2
|
|
739
|
+
return [2, new __HttpRequest({
|
|
740
740
|
protocol: protocol,
|
|
741
741
|
hostname: hostname,
|
|
742
742
|
port: port,
|
|
@@ -753,7 +753,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
753
753
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
754
754
|
return __generator(this, function (_c) {
|
|
755
755
|
switch (_c.label) {
|
|
756
|
-
case 0: return [4
|
|
756
|
+
case 0: return [4, context.endpoint()];
|
|
757
757
|
case 1:
|
|
758
758
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
759
759
|
headers = {};
|
|
@@ -768,7 +768,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
768
768
|
else {
|
|
769
769
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
770
770
|
}
|
|
771
|
-
return [2
|
|
771
|
+
return [2, new __HttpRequest({
|
|
772
772
|
protocol: protocol,
|
|
773
773
|
hostname: hostname,
|
|
774
774
|
port: port,
|
|
@@ -784,7 +784,7 @@ export var serializeAws_restJson1PublishRecipeCommand = function (input, context
|
|
|
784
784
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
785
785
|
return __generator(this, function (_c) {
|
|
786
786
|
switch (_c.label) {
|
|
787
|
-
case 0: return [4
|
|
787
|
+
case 0: return [4, context.endpoint()];
|
|
788
788
|
case 1:
|
|
789
789
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
790
790
|
headers = {
|
|
@@ -802,7 +802,7 @@ export var serializeAws_restJson1PublishRecipeCommand = function (input, context
|
|
|
802
802
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
803
803
|
}
|
|
804
804
|
body = JSON.stringify(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })));
|
|
805
|
-
return [2
|
|
805
|
+
return [2, new __HttpRequest({
|
|
806
806
|
protocol: protocol,
|
|
807
807
|
hostname: hostname,
|
|
808
808
|
port: port,
|
|
@@ -818,7 +818,7 @@ export var serializeAws_restJson1SendProjectSessionActionCommand = function (inp
|
|
|
818
818
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
819
819
|
return __generator(this, function (_c) {
|
|
820
820
|
switch (_c.label) {
|
|
821
|
-
case 0: return [4
|
|
821
|
+
case 0: return [4, context.endpoint()];
|
|
822
822
|
case 1:
|
|
823
823
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
824
824
|
headers = {
|
|
@@ -839,7 +839,7 @@ export var serializeAws_restJson1SendProjectSessionActionCommand = function (inp
|
|
|
839
839
|
input.ClientSessionId !== null && { ClientSessionId: input.ClientSessionId })), (input.Preview !== undefined && input.Preview !== null && { Preview: input.Preview })), (input.RecipeStep !== undefined &&
|
|
840
840
|
input.RecipeStep !== null && { RecipeStep: serializeAws_restJson1RecipeStep(input.RecipeStep, context) })), (input.StepIndex !== undefined && input.StepIndex !== null && { StepIndex: input.StepIndex })), (input.ViewFrame !== undefined &&
|
|
841
841
|
input.ViewFrame !== null && { ViewFrame: serializeAws_restJson1ViewFrame(input.ViewFrame, context) })));
|
|
842
|
-
return [2
|
|
842
|
+
return [2, new __HttpRequest({
|
|
843
843
|
protocol: protocol,
|
|
844
844
|
hostname: hostname,
|
|
845
845
|
port: port,
|
|
@@ -855,7 +855,7 @@ export var serializeAws_restJson1StartJobRunCommand = function (input, context)
|
|
|
855
855
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
856
856
|
return __generator(this, function (_c) {
|
|
857
857
|
switch (_c.label) {
|
|
858
|
-
case 0: return [4
|
|
858
|
+
case 0: return [4, context.endpoint()];
|
|
859
859
|
case 1:
|
|
860
860
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
861
861
|
headers = {};
|
|
@@ -870,7 +870,7 @@ export var serializeAws_restJson1StartJobRunCommand = function (input, context)
|
|
|
870
870
|
else {
|
|
871
871
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
872
872
|
}
|
|
873
|
-
return [2
|
|
873
|
+
return [2, new __HttpRequest({
|
|
874
874
|
protocol: protocol,
|
|
875
875
|
hostname: hostname,
|
|
876
876
|
port: port,
|
|
@@ -886,7 +886,7 @@ export var serializeAws_restJson1StartProjectSessionCommand = function (input, c
|
|
|
886
886
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
887
887
|
return __generator(this, function (_c) {
|
|
888
888
|
switch (_c.label) {
|
|
889
|
-
case 0: return [4
|
|
889
|
+
case 0: return [4, context.endpoint()];
|
|
890
890
|
case 1:
|
|
891
891
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
892
892
|
headers = {
|
|
@@ -904,7 +904,7 @@ export var serializeAws_restJson1StartProjectSessionCommand = function (input, c
|
|
|
904
904
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
905
905
|
}
|
|
906
906
|
body = JSON.stringify(__assign({}, (input.AssumeControl !== undefined && input.AssumeControl !== null && { AssumeControl: input.AssumeControl })));
|
|
907
|
-
return [2
|
|
907
|
+
return [2, new __HttpRequest({
|
|
908
908
|
protocol: protocol,
|
|
909
909
|
hostname: hostname,
|
|
910
910
|
port: port,
|
|
@@ -920,7 +920,7 @@ export var serializeAws_restJson1StopJobRunCommand = function (input, context) {
|
|
|
920
920
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
921
921
|
return __generator(this, function (_c) {
|
|
922
922
|
switch (_c.label) {
|
|
923
|
-
case 0: return [4
|
|
923
|
+
case 0: return [4, context.endpoint()];
|
|
924
924
|
case 1:
|
|
925
925
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
926
926
|
headers = {};
|
|
@@ -945,7 +945,7 @@ export var serializeAws_restJson1StopJobRunCommand = function (input, context) {
|
|
|
945
945
|
else {
|
|
946
946
|
throw new Error("No value provided for input HTTP label: RunId.");
|
|
947
947
|
}
|
|
948
|
-
return [2
|
|
948
|
+
return [2, new __HttpRequest({
|
|
949
949
|
protocol: protocol,
|
|
950
950
|
hostname: hostname,
|
|
951
951
|
port: port,
|
|
@@ -961,7 +961,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
961
961
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
962
962
|
return __generator(this, function (_c) {
|
|
963
963
|
switch (_c.label) {
|
|
964
|
-
case 0: return [4
|
|
964
|
+
case 0: return [4, context.endpoint()];
|
|
965
965
|
case 1:
|
|
966
966
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
967
967
|
headers = {
|
|
@@ -979,7 +979,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
979
979
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
980
980
|
}
|
|
981
981
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
982
|
-
return [2
|
|
982
|
+
return [2, new __HttpRequest({
|
|
983
983
|
protocol: protocol,
|
|
984
984
|
hostname: hostname,
|
|
985
985
|
port: port,
|
|
@@ -995,7 +995,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
995
995
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
996
996
|
return __generator(this, function (_c) {
|
|
997
997
|
switch (_c.label) {
|
|
998
|
-
case 0: return [4
|
|
998
|
+
case 0: return [4, context.endpoint()];
|
|
999
999
|
case 1:
|
|
1000
1000
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1001
1001
|
headers = {};
|
|
@@ -1011,7 +1011,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1011
1011
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1012
1012
|
}
|
|
1013
1013
|
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
1014
|
-
return [2
|
|
1014
|
+
return [2, new __HttpRequest({
|
|
1015
1015
|
protocol: protocol,
|
|
1016
1016
|
hostname: hostname,
|
|
1017
1017
|
port: port,
|
|
@@ -1028,7 +1028,7 @@ export var serializeAws_restJson1UpdateDatasetCommand = function (input, context
|
|
|
1028
1028
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1029
1029
|
return __generator(this, function (_c) {
|
|
1030
1030
|
switch (_c.label) {
|
|
1031
|
-
case 0: return [4
|
|
1031
|
+
case 0: return [4, context.endpoint()];
|
|
1032
1032
|
case 1:
|
|
1033
1033
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1034
1034
|
headers = {
|
|
@@ -1051,7 +1051,7 @@ export var serializeAws_restJson1UpdateDatasetCommand = function (input, context
|
|
|
1051
1051
|
})), (input.Input !== undefined &&
|
|
1052
1052
|
input.Input !== null && { Input: serializeAws_restJson1Input(input.Input, context) })), (input.PathOptions !== undefined &&
|
|
1053
1053
|
input.PathOptions !== null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) })));
|
|
1054
|
-
return [2
|
|
1054
|
+
return [2, new __HttpRequest({
|
|
1055
1055
|
protocol: protocol,
|
|
1056
1056
|
hostname: hostname,
|
|
1057
1057
|
port: port,
|
|
@@ -1067,7 +1067,7 @@ export var serializeAws_restJson1UpdateProfileJobCommand = function (input, cont
|
|
|
1067
1067
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1068
1068
|
return __generator(this, function (_c) {
|
|
1069
1069
|
switch (_c.label) {
|
|
1070
|
-
case 0: return [4
|
|
1070
|
+
case 0: return [4, context.endpoint()];
|
|
1071
1071
|
case 1:
|
|
1072
1072
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1073
1073
|
headers = {
|
|
@@ -1095,7 +1095,7 @@ export var serializeAws_restJson1UpdateProfileJobCommand = function (input, cont
|
|
|
1095
1095
|
input.OutputLocation !== null && {
|
|
1096
1096
|
OutputLocation: serializeAws_restJson1S3Location(input.OutputLocation, context),
|
|
1097
1097
|
})), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })));
|
|
1098
|
-
return [2
|
|
1098
|
+
return [2, new __HttpRequest({
|
|
1099
1099
|
protocol: protocol,
|
|
1100
1100
|
hostname: hostname,
|
|
1101
1101
|
port: port,
|
|
@@ -1111,7 +1111,7 @@ export var serializeAws_restJson1UpdateProjectCommand = function (input, context
|
|
|
1111
1111
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1112
1112
|
return __generator(this, function (_c) {
|
|
1113
1113
|
switch (_c.label) {
|
|
1114
|
-
case 0: return [4
|
|
1114
|
+
case 0: return [4, context.endpoint()];
|
|
1115
1115
|
case 1:
|
|
1116
1116
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1117
1117
|
headers = {
|
|
@@ -1130,7 +1130,7 @@ export var serializeAws_restJson1UpdateProjectCommand = function (input, context
|
|
|
1130
1130
|
}
|
|
1131
1131
|
body = JSON.stringify(__assign(__assign({}, (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Sample !== undefined &&
|
|
1132
1132
|
input.Sample !== null && { Sample: serializeAws_restJson1Sample(input.Sample, context) })));
|
|
1133
|
-
return [2
|
|
1133
|
+
return [2, new __HttpRequest({
|
|
1134
1134
|
protocol: protocol,
|
|
1135
1135
|
hostname: hostname,
|
|
1136
1136
|
port: port,
|
|
@@ -1146,7 +1146,7 @@ export var serializeAws_restJson1UpdateRecipeCommand = function (input, context)
|
|
|
1146
1146
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1147
1147
|
return __generator(this, function (_c) {
|
|
1148
1148
|
switch (_c.label) {
|
|
1149
|
-
case 0: return [4
|
|
1149
|
+
case 0: return [4, context.endpoint()];
|
|
1150
1150
|
case 1:
|
|
1151
1151
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1152
1152
|
headers = {
|
|
@@ -1165,7 +1165,7 @@ export var serializeAws_restJson1UpdateRecipeCommand = function (input, context)
|
|
|
1165
1165
|
}
|
|
1166
1166
|
body = JSON.stringify(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Steps !== undefined &&
|
|
1167
1167
|
input.Steps !== null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) })));
|
|
1168
|
-
return [2
|
|
1168
|
+
return [2, new __HttpRequest({
|
|
1169
1169
|
protocol: protocol,
|
|
1170
1170
|
hostname: hostname,
|
|
1171
1171
|
port: port,
|
|
@@ -1181,7 +1181,7 @@ export var serializeAws_restJson1UpdateRecipeJobCommand = function (input, conte
|
|
|
1181
1181
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1182
1182
|
return __generator(this, function (_c) {
|
|
1183
1183
|
switch (_c.label) {
|
|
1184
|
-
case 0: return [4
|
|
1184
|
+
case 0: return [4, context.endpoint()];
|
|
1185
1185
|
case 1:
|
|
1186
1186
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1187
1187
|
headers = {
|
|
@@ -1209,7 +1209,7 @@ export var serializeAws_restJson1UpdateRecipeJobCommand = function (input, conte
|
|
|
1209
1209
|
input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode })), (input.LogSubscription !== undefined &&
|
|
1210
1210
|
input.LogSubscription !== null && { LogSubscription: input.LogSubscription })), (input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity })), (input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries })), (input.Outputs !== undefined &&
|
|
1211
1211
|
input.Outputs !== null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })));
|
|
1212
|
-
return [2
|
|
1212
|
+
return [2, new __HttpRequest({
|
|
1213
1213
|
protocol: protocol,
|
|
1214
1214
|
hostname: hostname,
|
|
1215
1215
|
port: port,
|
|
@@ -1225,7 +1225,7 @@ export var serializeAws_restJson1UpdateScheduleCommand = function (input, contex
|
|
|
1225
1225
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1226
1226
|
return __generator(this, function (_c) {
|
|
1227
1227
|
switch (_c.label) {
|
|
1228
|
-
case 0: return [4
|
|
1228
|
+
case 0: return [4, context.endpoint()];
|
|
1229
1229
|
case 1:
|
|
1230
1230
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1231
1231
|
headers = {
|
|
@@ -1245,7 +1245,7 @@ export var serializeAws_restJson1UpdateScheduleCommand = function (input, contex
|
|
|
1245
1245
|
body = JSON.stringify(__assign(__assign({}, (input.CronExpression !== undefined &&
|
|
1246
1246
|
input.CronExpression !== null && { CronExpression: input.CronExpression })), (input.JobNames !== undefined &&
|
|
1247
1247
|
input.JobNames !== null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) })));
|
|
1248
|
-
return [2
|
|
1248
|
+
return [2, new __HttpRequest({
|
|
1249
1249
|
protocol: protocol,
|
|
1250
1250
|
hostname: hostname,
|
|
1251
1251
|
port: port,
|
|
@@ -1263,7 +1263,7 @@ export var deserializeAws_restJson1BatchDeleteRecipeVersionCommand = function (o
|
|
|
1263
1263
|
switch (_c.label) {
|
|
1264
1264
|
case 0:
|
|
1265
1265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1266
|
-
return [2
|
|
1266
|
+
return [2, deserializeAws_restJson1BatchDeleteRecipeVersionCommandError(output, context)];
|
|
1267
1267
|
}
|
|
1268
1268
|
contents = {
|
|
1269
1269
|
$metadata: deserializeMetadata(output),
|
|
@@ -1272,7 +1272,7 @@ export var deserializeAws_restJson1BatchDeleteRecipeVersionCommand = function (o
|
|
|
1272
1272
|
};
|
|
1273
1273
|
_a = __expectNonNull;
|
|
1274
1274
|
_b = __expectObject;
|
|
1275
|
-
return [4
|
|
1275
|
+
return [4, parseBody(output.body, context)];
|
|
1276
1276
|
case 1:
|
|
1277
1277
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1278
1278
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
@@ -1281,7 +1281,7 @@ export var deserializeAws_restJson1BatchDeleteRecipeVersionCommand = function (o
|
|
|
1281
1281
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1282
1282
|
contents.Name = __expectString(data.Name);
|
|
1283
1283
|
}
|
|
1284
|
-
return [2
|
|
1284
|
+
return [2, Promise.resolve(contents)];
|
|
1285
1285
|
}
|
|
1286
1286
|
});
|
|
1287
1287
|
}); };
|
|
@@ -1293,39 +1293,39 @@ var deserializeAws_restJson1BatchDeleteRecipeVersionCommandError = function (out
|
|
|
1293
1293
|
case 0:
|
|
1294
1294
|
_a = [__assign({}, output)];
|
|
1295
1295
|
_f = {};
|
|
1296
|
-
return [4
|
|
1296
|
+
return [4, parseBody(output.body, context)];
|
|
1297
1297
|
case 1:
|
|
1298
1298
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1299
1299
|
errorCode = "UnknownError";
|
|
1300
1300
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
1301
|
_b = errorCode;
|
|
1302
1302
|
switch (_b) {
|
|
1303
|
-
case "ConflictException": return [3
|
|
1304
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1305
|
-
case "ResourceNotFoundException": return [3
|
|
1306
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
1307
|
-
case "ValidationException": return [3
|
|
1308
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1309
|
-
}
|
|
1310
|
-
return [3
|
|
1303
|
+
case "ConflictException": return [3, 2];
|
|
1304
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
1305
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1306
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
1307
|
+
case "ValidationException": return [3, 6];
|
|
1308
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
1309
|
+
}
|
|
1310
|
+
return [3, 8];
|
|
1311
1311
|
case 2:
|
|
1312
1312
|
_c = [{}];
|
|
1313
|
-
return [4
|
|
1313
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1314
1314
|
case 3:
|
|
1315
1315
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1316
|
-
return [3
|
|
1316
|
+
return [3, 9];
|
|
1317
1317
|
case 4:
|
|
1318
1318
|
_d = [{}];
|
|
1319
|
-
return [4
|
|
1319
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1320
1320
|
case 5:
|
|
1321
1321
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1322
|
-
return [3
|
|
1322
|
+
return [3, 9];
|
|
1323
1323
|
case 6:
|
|
1324
1324
|
_e = [{}];
|
|
1325
|
-
return [4
|
|
1325
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1326
1326
|
case 7:
|
|
1327
1327
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1328
|
-
return [3
|
|
1328
|
+
return [3, 9];
|
|
1329
1329
|
case 8:
|
|
1330
1330
|
parsedBody = parsedOutput.body;
|
|
1331
1331
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1335,7 +1335,7 @@ var deserializeAws_restJson1BatchDeleteRecipeVersionCommandError = function (out
|
|
|
1335
1335
|
message = response.message || response.Message || errorCode;
|
|
1336
1336
|
response.message = message;
|
|
1337
1337
|
delete response.Message;
|
|
1338
|
-
return [2
|
|
1338
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1339
1339
|
}
|
|
1340
1340
|
});
|
|
1341
1341
|
}); };
|
|
@@ -1345,7 +1345,7 @@ export var deserializeAws_restJson1CreateDatasetCommand = function (output, cont
|
|
|
1345
1345
|
switch (_c.label) {
|
|
1346
1346
|
case 0:
|
|
1347
1347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1348
|
-
return [2
|
|
1348
|
+
return [2, deserializeAws_restJson1CreateDatasetCommandError(output, context)];
|
|
1349
1349
|
}
|
|
1350
1350
|
contents = {
|
|
1351
1351
|
$metadata: deserializeMetadata(output),
|
|
@@ -1353,13 +1353,13 @@ export var deserializeAws_restJson1CreateDatasetCommand = function (output, cont
|
|
|
1353
1353
|
};
|
|
1354
1354
|
_a = __expectNonNull;
|
|
1355
1355
|
_b = __expectObject;
|
|
1356
|
-
return [4
|
|
1356
|
+
return [4, parseBody(output.body, context)];
|
|
1357
1357
|
case 1:
|
|
1358
1358
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1359
1359
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1360
1360
|
contents.Name = __expectString(data.Name);
|
|
1361
1361
|
}
|
|
1362
|
-
return [2
|
|
1362
|
+
return [2, Promise.resolve(contents)];
|
|
1363
1363
|
}
|
|
1364
1364
|
});
|
|
1365
1365
|
}); };
|
|
@@ -1371,47 +1371,47 @@ var deserializeAws_restJson1CreateDatasetCommandError = function (output, contex
|
|
|
1371
1371
|
case 0:
|
|
1372
1372
|
_a = [__assign({}, output)];
|
|
1373
1373
|
_g = {};
|
|
1374
|
-
return [4
|
|
1374
|
+
return [4, parseBody(output.body, context)];
|
|
1375
1375
|
case 1:
|
|
1376
1376
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1377
1377
|
errorCode = "UnknownError";
|
|
1378
1378
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
1379
|
_b = errorCode;
|
|
1380
1380
|
switch (_b) {
|
|
1381
|
-
case "AccessDeniedException": return [3
|
|
1382
|
-
case "com.amazonaws.databrew#AccessDeniedException": return [3
|
|
1383
|
-
case "ConflictException": return [3
|
|
1384
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1385
|
-
case "ServiceQuotaExceededException": return [3
|
|
1386
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
1387
|
-
case "ValidationException": return [3
|
|
1388
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1389
|
-
}
|
|
1390
|
-
return [3
|
|
1381
|
+
case "AccessDeniedException": return [3, 2];
|
|
1382
|
+
case "com.amazonaws.databrew#AccessDeniedException": return [3, 2];
|
|
1383
|
+
case "ConflictException": return [3, 4];
|
|
1384
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 4];
|
|
1385
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
1386
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 6];
|
|
1387
|
+
case "ValidationException": return [3, 8];
|
|
1388
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 8];
|
|
1389
|
+
}
|
|
1390
|
+
return [3, 10];
|
|
1391
1391
|
case 2:
|
|
1392
1392
|
_c = [{}];
|
|
1393
|
-
return [4
|
|
1393
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1394
1394
|
case 3:
|
|
1395
1395
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1396
|
-
return [3
|
|
1396
|
+
return [3, 11];
|
|
1397
1397
|
case 4:
|
|
1398
1398
|
_d = [{}];
|
|
1399
|
-
return [4
|
|
1399
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1400
1400
|
case 5:
|
|
1401
1401
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1402
|
-
return [3
|
|
1402
|
+
return [3, 11];
|
|
1403
1403
|
case 6:
|
|
1404
1404
|
_e = [{}];
|
|
1405
|
-
return [4
|
|
1405
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1406
1406
|
case 7:
|
|
1407
1407
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1408
|
-
return [3
|
|
1408
|
+
return [3, 11];
|
|
1409
1409
|
case 8:
|
|
1410
1410
|
_f = [{}];
|
|
1411
|
-
return [4
|
|
1411
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1412
1412
|
case 9:
|
|
1413
1413
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1414
|
-
return [3
|
|
1414
|
+
return [3, 11];
|
|
1415
1415
|
case 10:
|
|
1416
1416
|
parsedBody = parsedOutput.body;
|
|
1417
1417
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1421,7 +1421,7 @@ var deserializeAws_restJson1CreateDatasetCommandError = function (output, contex
|
|
|
1421
1421
|
message = response.message || response.Message || errorCode;
|
|
1422
1422
|
response.message = message;
|
|
1423
1423
|
delete response.Message;
|
|
1424
|
-
return [2
|
|
1424
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1425
1425
|
}
|
|
1426
1426
|
});
|
|
1427
1427
|
}); };
|
|
@@ -1431,7 +1431,7 @@ export var deserializeAws_restJson1CreateProfileJobCommand = function (output, c
|
|
|
1431
1431
|
switch (_c.label) {
|
|
1432
1432
|
case 0:
|
|
1433
1433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
|
-
return [2
|
|
1434
|
+
return [2, deserializeAws_restJson1CreateProfileJobCommandError(output, context)];
|
|
1435
1435
|
}
|
|
1436
1436
|
contents = {
|
|
1437
1437
|
$metadata: deserializeMetadata(output),
|
|
@@ -1439,13 +1439,13 @@ export var deserializeAws_restJson1CreateProfileJobCommand = function (output, c
|
|
|
1439
1439
|
};
|
|
1440
1440
|
_a = __expectNonNull;
|
|
1441
1441
|
_b = __expectObject;
|
|
1442
|
-
return [4
|
|
1442
|
+
return [4, parseBody(output.body, context)];
|
|
1443
1443
|
case 1:
|
|
1444
1444
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1445
1445
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1446
1446
|
contents.Name = __expectString(data.Name);
|
|
1447
1447
|
}
|
|
1448
|
-
return [2
|
|
1448
|
+
return [2, Promise.resolve(contents)];
|
|
1449
1449
|
}
|
|
1450
1450
|
});
|
|
1451
1451
|
}); };
|
|
@@ -1457,55 +1457,55 @@ var deserializeAws_restJson1CreateProfileJobCommandError = function (output, con
|
|
|
1457
1457
|
case 0:
|
|
1458
1458
|
_a = [__assign({}, output)];
|
|
1459
1459
|
_h = {};
|
|
1460
|
-
return [4
|
|
1460
|
+
return [4, parseBody(output.body, context)];
|
|
1461
1461
|
case 1:
|
|
1462
1462
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1463
1463
|
errorCode = "UnknownError";
|
|
1464
1464
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
1465
|
_b = errorCode;
|
|
1466
1466
|
switch (_b) {
|
|
1467
|
-
case "AccessDeniedException": return [3
|
|
1468
|
-
case "com.amazonaws.databrew#AccessDeniedException": return [3
|
|
1469
|
-
case "ConflictException": return [3
|
|
1470
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1471
|
-
case "ResourceNotFoundException": return [3
|
|
1472
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
1473
|
-
case "ServiceQuotaExceededException": return [3
|
|
1474
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
1475
|
-
case "ValidationException": return [3
|
|
1476
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1477
|
-
}
|
|
1478
|
-
return [3
|
|
1467
|
+
case "AccessDeniedException": return [3, 2];
|
|
1468
|
+
case "com.amazonaws.databrew#AccessDeniedException": return [3, 2];
|
|
1469
|
+
case "ConflictException": return [3, 4];
|
|
1470
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 4];
|
|
1471
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1472
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 6];
|
|
1473
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
1474
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 8];
|
|
1475
|
+
case "ValidationException": return [3, 10];
|
|
1476
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 10];
|
|
1477
|
+
}
|
|
1478
|
+
return [3, 12];
|
|
1479
1479
|
case 2:
|
|
1480
1480
|
_c = [{}];
|
|
1481
|
-
return [4
|
|
1481
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1482
1482
|
case 3:
|
|
1483
1483
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1484
|
-
return [3
|
|
1484
|
+
return [3, 13];
|
|
1485
1485
|
case 4:
|
|
1486
1486
|
_d = [{}];
|
|
1487
|
-
return [4
|
|
1487
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1488
1488
|
case 5:
|
|
1489
1489
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1490
|
-
return [3
|
|
1490
|
+
return [3, 13];
|
|
1491
1491
|
case 6:
|
|
1492
1492
|
_e = [{}];
|
|
1493
|
-
return [4
|
|
1493
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1494
1494
|
case 7:
|
|
1495
1495
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1496
|
-
return [3
|
|
1496
|
+
return [3, 13];
|
|
1497
1497
|
case 8:
|
|
1498
1498
|
_f = [{}];
|
|
1499
|
-
return [4
|
|
1499
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1500
1500
|
case 9:
|
|
1501
1501
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1502
|
-
return [3
|
|
1502
|
+
return [3, 13];
|
|
1503
1503
|
case 10:
|
|
1504
1504
|
_g = [{}];
|
|
1505
|
-
return [4
|
|
1505
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1506
1506
|
case 11:
|
|
1507
1507
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1508
|
-
return [3
|
|
1508
|
+
return [3, 13];
|
|
1509
1509
|
case 12:
|
|
1510
1510
|
parsedBody = parsedOutput.body;
|
|
1511
1511
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1515,7 +1515,7 @@ var deserializeAws_restJson1CreateProfileJobCommandError = function (output, con
|
|
|
1515
1515
|
message = response.message || response.Message || errorCode;
|
|
1516
1516
|
response.message = message;
|
|
1517
1517
|
delete response.Message;
|
|
1518
|
-
return [2
|
|
1518
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1519
1519
|
}
|
|
1520
1520
|
});
|
|
1521
1521
|
}); };
|
|
@@ -1525,7 +1525,7 @@ export var deserializeAws_restJson1CreateProjectCommand = function (output, cont
|
|
|
1525
1525
|
switch (_c.label) {
|
|
1526
1526
|
case 0:
|
|
1527
1527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1528
|
-
return [2
|
|
1528
|
+
return [2, deserializeAws_restJson1CreateProjectCommandError(output, context)];
|
|
1529
1529
|
}
|
|
1530
1530
|
contents = {
|
|
1531
1531
|
$metadata: deserializeMetadata(output),
|
|
@@ -1533,13 +1533,13 @@ export var deserializeAws_restJson1CreateProjectCommand = function (output, cont
|
|
|
1533
1533
|
};
|
|
1534
1534
|
_a = __expectNonNull;
|
|
1535
1535
|
_b = __expectObject;
|
|
1536
|
-
return [4
|
|
1536
|
+
return [4, parseBody(output.body, context)];
|
|
1537
1537
|
case 1:
|
|
1538
1538
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1539
1539
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1540
1540
|
contents.Name = __expectString(data.Name);
|
|
1541
1541
|
}
|
|
1542
|
-
return [2
|
|
1542
|
+
return [2, Promise.resolve(contents)];
|
|
1543
1543
|
}
|
|
1544
1544
|
});
|
|
1545
1545
|
}); };
|
|
@@ -1551,47 +1551,47 @@ var deserializeAws_restJson1CreateProjectCommandError = function (output, contex
|
|
|
1551
1551
|
case 0:
|
|
1552
1552
|
_a = [__assign({}, output)];
|
|
1553
1553
|
_g = {};
|
|
1554
|
-
return [4
|
|
1554
|
+
return [4, parseBody(output.body, context)];
|
|
1555
1555
|
case 1:
|
|
1556
1556
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1557
1557
|
errorCode = "UnknownError";
|
|
1558
1558
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
1559
|
_b = errorCode;
|
|
1560
1560
|
switch (_b) {
|
|
1561
|
-
case "ConflictException": return [3
|
|
1562
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1563
|
-
case "InternalServerException": return [3
|
|
1564
|
-
case "com.amazonaws.databrew#InternalServerException": return [3
|
|
1565
|
-
case "ServiceQuotaExceededException": return [3
|
|
1566
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
1567
|
-
case "ValidationException": return [3
|
|
1568
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1569
|
-
}
|
|
1570
|
-
return [3
|
|
1561
|
+
case "ConflictException": return [3, 2];
|
|
1562
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
1563
|
+
case "InternalServerException": return [3, 4];
|
|
1564
|
+
case "com.amazonaws.databrew#InternalServerException": return [3, 4];
|
|
1565
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
1566
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 6];
|
|
1567
|
+
case "ValidationException": return [3, 8];
|
|
1568
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 8];
|
|
1569
|
+
}
|
|
1570
|
+
return [3, 10];
|
|
1571
1571
|
case 2:
|
|
1572
1572
|
_c = [{}];
|
|
1573
|
-
return [4
|
|
1573
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1574
1574
|
case 3:
|
|
1575
1575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1576
|
-
return [3
|
|
1576
|
+
return [3, 11];
|
|
1577
1577
|
case 4:
|
|
1578
1578
|
_d = [{}];
|
|
1579
|
-
return [4
|
|
1579
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1580
1580
|
case 5:
|
|
1581
1581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1582
|
-
return [3
|
|
1582
|
+
return [3, 11];
|
|
1583
1583
|
case 6:
|
|
1584
1584
|
_e = [{}];
|
|
1585
|
-
return [4
|
|
1585
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1586
1586
|
case 7:
|
|
1587
1587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3
|
|
1588
|
+
return [3, 11];
|
|
1589
1589
|
case 8:
|
|
1590
1590
|
_f = [{}];
|
|
1591
|
-
return [4
|
|
1591
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1592
1592
|
case 9:
|
|
1593
1593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
-
return [3
|
|
1594
|
+
return [3, 11];
|
|
1595
1595
|
case 10:
|
|
1596
1596
|
parsedBody = parsedOutput.body;
|
|
1597
1597
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1601,7 +1601,7 @@ var deserializeAws_restJson1CreateProjectCommandError = function (output, contex
|
|
|
1601
1601
|
message = response.message || response.Message || errorCode;
|
|
1602
1602
|
response.message = message;
|
|
1603
1603
|
delete response.Message;
|
|
1604
|
-
return [2
|
|
1604
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1605
1605
|
}
|
|
1606
1606
|
});
|
|
1607
1607
|
}); };
|
|
@@ -1611,7 +1611,7 @@ export var deserializeAws_restJson1CreateRecipeCommand = function (output, conte
|
|
|
1611
1611
|
switch (_c.label) {
|
|
1612
1612
|
case 0:
|
|
1613
1613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1614
|
-
return [2
|
|
1614
|
+
return [2, deserializeAws_restJson1CreateRecipeCommandError(output, context)];
|
|
1615
1615
|
}
|
|
1616
1616
|
contents = {
|
|
1617
1617
|
$metadata: deserializeMetadata(output),
|
|
@@ -1619,13 +1619,13 @@ export var deserializeAws_restJson1CreateRecipeCommand = function (output, conte
|
|
|
1619
1619
|
};
|
|
1620
1620
|
_a = __expectNonNull;
|
|
1621
1621
|
_b = __expectObject;
|
|
1622
|
-
return [4
|
|
1622
|
+
return [4, parseBody(output.body, context)];
|
|
1623
1623
|
case 1:
|
|
1624
1624
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1625
1625
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1626
1626
|
contents.Name = __expectString(data.Name);
|
|
1627
1627
|
}
|
|
1628
|
-
return [2
|
|
1628
|
+
return [2, Promise.resolve(contents)];
|
|
1629
1629
|
}
|
|
1630
1630
|
});
|
|
1631
1631
|
}); };
|
|
@@ -1637,39 +1637,39 @@ var deserializeAws_restJson1CreateRecipeCommandError = function (output, context
|
|
|
1637
1637
|
case 0:
|
|
1638
1638
|
_a = [__assign({}, output)];
|
|
1639
1639
|
_f = {};
|
|
1640
|
-
return [4
|
|
1640
|
+
return [4, parseBody(output.body, context)];
|
|
1641
1641
|
case 1:
|
|
1642
1642
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1643
1643
|
errorCode = "UnknownError";
|
|
1644
1644
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1645
1645
|
_b = errorCode;
|
|
1646
1646
|
switch (_b) {
|
|
1647
|
-
case "ConflictException": return [3
|
|
1648
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1649
|
-
case "ServiceQuotaExceededException": return [3
|
|
1650
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
1651
|
-
case "ValidationException": return [3
|
|
1652
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1653
|
-
}
|
|
1654
|
-
return [3
|
|
1647
|
+
case "ConflictException": return [3, 2];
|
|
1648
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
1649
|
+
case "ServiceQuotaExceededException": return [3, 4];
|
|
1650
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 4];
|
|
1651
|
+
case "ValidationException": return [3, 6];
|
|
1652
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
1653
|
+
}
|
|
1654
|
+
return [3, 8];
|
|
1655
1655
|
case 2:
|
|
1656
1656
|
_c = [{}];
|
|
1657
|
-
return [4
|
|
1657
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1658
1658
|
case 3:
|
|
1659
1659
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1660
|
-
return [3
|
|
1660
|
+
return [3, 9];
|
|
1661
1661
|
case 4:
|
|
1662
1662
|
_d = [{}];
|
|
1663
|
-
return [4
|
|
1663
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1664
1664
|
case 5:
|
|
1665
1665
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1666
|
-
return [3
|
|
1666
|
+
return [3, 9];
|
|
1667
1667
|
case 6:
|
|
1668
1668
|
_e = [{}];
|
|
1669
|
-
return [4
|
|
1669
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1670
1670
|
case 7:
|
|
1671
1671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1672
|
-
return [3
|
|
1672
|
+
return [3, 9];
|
|
1673
1673
|
case 8:
|
|
1674
1674
|
parsedBody = parsedOutput.body;
|
|
1675
1675
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1679,7 +1679,7 @@ var deserializeAws_restJson1CreateRecipeCommandError = function (output, context
|
|
|
1679
1679
|
message = response.message || response.Message || errorCode;
|
|
1680
1680
|
response.message = message;
|
|
1681
1681
|
delete response.Message;
|
|
1682
|
-
return [2
|
|
1682
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1683
1683
|
}
|
|
1684
1684
|
});
|
|
1685
1685
|
}); };
|
|
@@ -1689,7 +1689,7 @@ export var deserializeAws_restJson1CreateRecipeJobCommand = function (output, co
|
|
|
1689
1689
|
switch (_c.label) {
|
|
1690
1690
|
case 0:
|
|
1691
1691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1692
|
-
return [2
|
|
1692
|
+
return [2, deserializeAws_restJson1CreateRecipeJobCommandError(output, context)];
|
|
1693
1693
|
}
|
|
1694
1694
|
contents = {
|
|
1695
1695
|
$metadata: deserializeMetadata(output),
|
|
@@ -1697,13 +1697,13 @@ export var deserializeAws_restJson1CreateRecipeJobCommand = function (output, co
|
|
|
1697
1697
|
};
|
|
1698
1698
|
_a = __expectNonNull;
|
|
1699
1699
|
_b = __expectObject;
|
|
1700
|
-
return [4
|
|
1700
|
+
return [4, parseBody(output.body, context)];
|
|
1701
1701
|
case 1:
|
|
1702
1702
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1703
1703
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1704
1704
|
contents.Name = __expectString(data.Name);
|
|
1705
1705
|
}
|
|
1706
|
-
return [2
|
|
1706
|
+
return [2, Promise.resolve(contents)];
|
|
1707
1707
|
}
|
|
1708
1708
|
});
|
|
1709
1709
|
}); };
|
|
@@ -1715,55 +1715,55 @@ var deserializeAws_restJson1CreateRecipeJobCommandError = function (output, cont
|
|
|
1715
1715
|
case 0:
|
|
1716
1716
|
_a = [__assign({}, output)];
|
|
1717
1717
|
_h = {};
|
|
1718
|
-
return [4
|
|
1718
|
+
return [4, parseBody(output.body, context)];
|
|
1719
1719
|
case 1:
|
|
1720
1720
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1721
1721
|
errorCode = "UnknownError";
|
|
1722
1722
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1723
|
_b = errorCode;
|
|
1724
1724
|
switch (_b) {
|
|
1725
|
-
case "AccessDeniedException": return [3
|
|
1726
|
-
case "com.amazonaws.databrew#AccessDeniedException": return [3
|
|
1727
|
-
case "ConflictException": return [3
|
|
1728
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1729
|
-
case "ResourceNotFoundException": return [3
|
|
1730
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
1731
|
-
case "ServiceQuotaExceededException": return [3
|
|
1732
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
1733
|
-
case "ValidationException": return [3
|
|
1734
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1735
|
-
}
|
|
1736
|
-
return [3
|
|
1725
|
+
case "AccessDeniedException": return [3, 2];
|
|
1726
|
+
case "com.amazonaws.databrew#AccessDeniedException": return [3, 2];
|
|
1727
|
+
case "ConflictException": return [3, 4];
|
|
1728
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 4];
|
|
1729
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1730
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 6];
|
|
1731
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
1732
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 8];
|
|
1733
|
+
case "ValidationException": return [3, 10];
|
|
1734
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 10];
|
|
1735
|
+
}
|
|
1736
|
+
return [3, 12];
|
|
1737
1737
|
case 2:
|
|
1738
1738
|
_c = [{}];
|
|
1739
|
-
return [4
|
|
1739
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1740
1740
|
case 3:
|
|
1741
1741
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1742
|
-
return [3
|
|
1742
|
+
return [3, 13];
|
|
1743
1743
|
case 4:
|
|
1744
1744
|
_d = [{}];
|
|
1745
|
-
return [4
|
|
1745
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1746
1746
|
case 5:
|
|
1747
1747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1748
|
-
return [3
|
|
1748
|
+
return [3, 13];
|
|
1749
1749
|
case 6:
|
|
1750
1750
|
_e = [{}];
|
|
1751
|
-
return [4
|
|
1751
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1752
1752
|
case 7:
|
|
1753
1753
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1754
|
-
return [3
|
|
1754
|
+
return [3, 13];
|
|
1755
1755
|
case 8:
|
|
1756
1756
|
_f = [{}];
|
|
1757
|
-
return [4
|
|
1757
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1758
1758
|
case 9:
|
|
1759
1759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1760
|
-
return [3
|
|
1760
|
+
return [3, 13];
|
|
1761
1761
|
case 10:
|
|
1762
1762
|
_g = [{}];
|
|
1763
|
-
return [4
|
|
1763
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1764
1764
|
case 11:
|
|
1765
1765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1766
|
-
return [3
|
|
1766
|
+
return [3, 13];
|
|
1767
1767
|
case 12:
|
|
1768
1768
|
parsedBody = parsedOutput.body;
|
|
1769
1769
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1773,7 +1773,7 @@ var deserializeAws_restJson1CreateRecipeJobCommandError = function (output, cont
|
|
|
1773
1773
|
message = response.message || response.Message || errorCode;
|
|
1774
1774
|
response.message = message;
|
|
1775
1775
|
delete response.Message;
|
|
1776
|
-
return [2
|
|
1776
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1777
1777
|
}
|
|
1778
1778
|
});
|
|
1779
1779
|
}); };
|
|
@@ -1783,7 +1783,7 @@ export var deserializeAws_restJson1CreateScheduleCommand = function (output, con
|
|
|
1783
1783
|
switch (_c.label) {
|
|
1784
1784
|
case 0:
|
|
1785
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
|
-
return [2
|
|
1786
|
+
return [2, deserializeAws_restJson1CreateScheduleCommandError(output, context)];
|
|
1787
1787
|
}
|
|
1788
1788
|
contents = {
|
|
1789
1789
|
$metadata: deserializeMetadata(output),
|
|
@@ -1791,13 +1791,13 @@ export var deserializeAws_restJson1CreateScheduleCommand = function (output, con
|
|
|
1791
1791
|
};
|
|
1792
1792
|
_a = __expectNonNull;
|
|
1793
1793
|
_b = __expectObject;
|
|
1794
|
-
return [4
|
|
1794
|
+
return [4, parseBody(output.body, context)];
|
|
1795
1795
|
case 1:
|
|
1796
1796
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1797
1797
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1798
1798
|
contents.Name = __expectString(data.Name);
|
|
1799
1799
|
}
|
|
1800
|
-
return [2
|
|
1800
|
+
return [2, Promise.resolve(contents)];
|
|
1801
1801
|
}
|
|
1802
1802
|
});
|
|
1803
1803
|
}); };
|
|
@@ -1809,39 +1809,39 @@ var deserializeAws_restJson1CreateScheduleCommandError = function (output, conte
|
|
|
1809
1809
|
case 0:
|
|
1810
1810
|
_a = [__assign({}, output)];
|
|
1811
1811
|
_f = {};
|
|
1812
|
-
return [4
|
|
1812
|
+
return [4, parseBody(output.body, context)];
|
|
1813
1813
|
case 1:
|
|
1814
1814
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1815
1815
|
errorCode = "UnknownError";
|
|
1816
1816
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
1817
|
_b = errorCode;
|
|
1818
1818
|
switch (_b) {
|
|
1819
|
-
case "ConflictException": return [3
|
|
1820
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1821
|
-
case "ServiceQuotaExceededException": return [3
|
|
1822
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
1823
|
-
case "ValidationException": return [3
|
|
1824
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1825
|
-
}
|
|
1826
|
-
return [3
|
|
1819
|
+
case "ConflictException": return [3, 2];
|
|
1820
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
1821
|
+
case "ServiceQuotaExceededException": return [3, 4];
|
|
1822
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 4];
|
|
1823
|
+
case "ValidationException": return [3, 6];
|
|
1824
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
1825
|
+
}
|
|
1826
|
+
return [3, 8];
|
|
1827
1827
|
case 2:
|
|
1828
1828
|
_c = [{}];
|
|
1829
|
-
return [4
|
|
1829
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1830
1830
|
case 3:
|
|
1831
1831
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1832
|
-
return [3
|
|
1832
|
+
return [3, 9];
|
|
1833
1833
|
case 4:
|
|
1834
1834
|
_d = [{}];
|
|
1835
|
-
return [4
|
|
1835
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1836
1836
|
case 5:
|
|
1837
1837
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1838
|
-
return [3
|
|
1838
|
+
return [3, 9];
|
|
1839
1839
|
case 6:
|
|
1840
1840
|
_e = [{}];
|
|
1841
|
-
return [4
|
|
1841
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1842
1842
|
case 7:
|
|
1843
1843
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1844
|
-
return [3
|
|
1844
|
+
return [3, 9];
|
|
1845
1845
|
case 8:
|
|
1846
1846
|
parsedBody = parsedOutput.body;
|
|
1847
1847
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1851,7 +1851,7 @@ var deserializeAws_restJson1CreateScheduleCommandError = function (output, conte
|
|
|
1851
1851
|
message = response.message || response.Message || errorCode;
|
|
1852
1852
|
response.message = message;
|
|
1853
1853
|
delete response.Message;
|
|
1854
|
-
return [2
|
|
1854
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1855
1855
|
}
|
|
1856
1856
|
});
|
|
1857
1857
|
}); };
|
|
@@ -1861,7 +1861,7 @@ export var deserializeAws_restJson1DeleteDatasetCommand = function (output, cont
|
|
|
1861
1861
|
switch (_c.label) {
|
|
1862
1862
|
case 0:
|
|
1863
1863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1864
|
-
return [2
|
|
1864
|
+
return [2, deserializeAws_restJson1DeleteDatasetCommandError(output, context)];
|
|
1865
1865
|
}
|
|
1866
1866
|
contents = {
|
|
1867
1867
|
$metadata: deserializeMetadata(output),
|
|
@@ -1869,13 +1869,13 @@ export var deserializeAws_restJson1DeleteDatasetCommand = function (output, cont
|
|
|
1869
1869
|
};
|
|
1870
1870
|
_a = __expectNonNull;
|
|
1871
1871
|
_b = __expectObject;
|
|
1872
|
-
return [4
|
|
1872
|
+
return [4, parseBody(output.body, context)];
|
|
1873
1873
|
case 1:
|
|
1874
1874
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1875
1875
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1876
1876
|
contents.Name = __expectString(data.Name);
|
|
1877
1877
|
}
|
|
1878
|
-
return [2
|
|
1878
|
+
return [2, Promise.resolve(contents)];
|
|
1879
1879
|
}
|
|
1880
1880
|
});
|
|
1881
1881
|
}); };
|
|
@@ -1887,39 +1887,39 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
1887
1887
|
case 0:
|
|
1888
1888
|
_a = [__assign({}, output)];
|
|
1889
1889
|
_f = {};
|
|
1890
|
-
return [4
|
|
1890
|
+
return [4, parseBody(output.body, context)];
|
|
1891
1891
|
case 1:
|
|
1892
1892
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1893
1893
|
errorCode = "UnknownError";
|
|
1894
1894
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
1895
|
_b = errorCode;
|
|
1896
1896
|
switch (_b) {
|
|
1897
|
-
case "ConflictException": return [3
|
|
1898
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1899
|
-
case "ResourceNotFoundException": return [3
|
|
1900
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
1901
|
-
case "ValidationException": return [3
|
|
1902
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1903
|
-
}
|
|
1904
|
-
return [3
|
|
1897
|
+
case "ConflictException": return [3, 2];
|
|
1898
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
1899
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1900
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
1901
|
+
case "ValidationException": return [3, 6];
|
|
1902
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
1903
|
+
}
|
|
1904
|
+
return [3, 8];
|
|
1905
1905
|
case 2:
|
|
1906
1906
|
_c = [{}];
|
|
1907
|
-
return [4
|
|
1907
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1908
1908
|
case 3:
|
|
1909
1909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1910
|
-
return [3
|
|
1910
|
+
return [3, 9];
|
|
1911
1911
|
case 4:
|
|
1912
1912
|
_d = [{}];
|
|
1913
|
-
return [4
|
|
1913
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1914
1914
|
case 5:
|
|
1915
1915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1916
|
-
return [3
|
|
1916
|
+
return [3, 9];
|
|
1917
1917
|
case 6:
|
|
1918
1918
|
_e = [{}];
|
|
1919
|
-
return [4
|
|
1919
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1920
1920
|
case 7:
|
|
1921
1921
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1922
|
-
return [3
|
|
1922
|
+
return [3, 9];
|
|
1923
1923
|
case 8:
|
|
1924
1924
|
parsedBody = parsedOutput.body;
|
|
1925
1925
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1929,7 +1929,7 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
1929
1929
|
message = response.message || response.Message || errorCode;
|
|
1930
1930
|
response.message = message;
|
|
1931
1931
|
delete response.Message;
|
|
1932
|
-
return [2
|
|
1932
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
1935
|
}); };
|
|
@@ -1939,7 +1939,7 @@ export var deserializeAws_restJson1DeleteJobCommand = function (output, context)
|
|
|
1939
1939
|
switch (_c.label) {
|
|
1940
1940
|
case 0:
|
|
1941
1941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1942
|
-
return [2
|
|
1942
|
+
return [2, deserializeAws_restJson1DeleteJobCommandError(output, context)];
|
|
1943
1943
|
}
|
|
1944
1944
|
contents = {
|
|
1945
1945
|
$metadata: deserializeMetadata(output),
|
|
@@ -1947,13 +1947,13 @@ export var deserializeAws_restJson1DeleteJobCommand = function (output, context)
|
|
|
1947
1947
|
};
|
|
1948
1948
|
_a = __expectNonNull;
|
|
1949
1949
|
_b = __expectObject;
|
|
1950
|
-
return [4
|
|
1950
|
+
return [4, parseBody(output.body, context)];
|
|
1951
1951
|
case 1:
|
|
1952
1952
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1953
1953
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1954
1954
|
contents.Name = __expectString(data.Name);
|
|
1955
1955
|
}
|
|
1956
|
-
return [2
|
|
1956
|
+
return [2, Promise.resolve(contents)];
|
|
1957
1957
|
}
|
|
1958
1958
|
});
|
|
1959
1959
|
}); };
|
|
@@ -1965,39 +1965,39 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
1965
1965
|
case 0:
|
|
1966
1966
|
_a = [__assign({}, output)];
|
|
1967
1967
|
_f = {};
|
|
1968
|
-
return [4
|
|
1968
|
+
return [4, parseBody(output.body, context)];
|
|
1969
1969
|
case 1:
|
|
1970
1970
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1971
1971
|
errorCode = "UnknownError";
|
|
1972
1972
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
1973
|
_b = errorCode;
|
|
1974
1974
|
switch (_b) {
|
|
1975
|
-
case "ConflictException": return [3
|
|
1976
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
1977
|
-
case "ResourceNotFoundException": return [3
|
|
1978
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
1979
|
-
case "ValidationException": return [3
|
|
1980
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
1981
|
-
}
|
|
1982
|
-
return [3
|
|
1975
|
+
case "ConflictException": return [3, 2];
|
|
1976
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
1977
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1978
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
1979
|
+
case "ValidationException": return [3, 6];
|
|
1980
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
1981
|
+
}
|
|
1982
|
+
return [3, 8];
|
|
1983
1983
|
case 2:
|
|
1984
1984
|
_c = [{}];
|
|
1985
|
-
return [4
|
|
1985
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1986
1986
|
case 3:
|
|
1987
1987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1988
|
-
return [3
|
|
1988
|
+
return [3, 9];
|
|
1989
1989
|
case 4:
|
|
1990
1990
|
_d = [{}];
|
|
1991
|
-
return [4
|
|
1991
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1992
1992
|
case 5:
|
|
1993
1993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1994
|
-
return [3
|
|
1994
|
+
return [3, 9];
|
|
1995
1995
|
case 6:
|
|
1996
1996
|
_e = [{}];
|
|
1997
|
-
return [4
|
|
1997
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1998
1998
|
case 7:
|
|
1999
1999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2000
|
-
return [3
|
|
2000
|
+
return [3, 9];
|
|
2001
2001
|
case 8:
|
|
2002
2002
|
parsedBody = parsedOutput.body;
|
|
2003
2003
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2007,7 +2007,7 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
2007
2007
|
message = response.message || response.Message || errorCode;
|
|
2008
2008
|
response.message = message;
|
|
2009
2009
|
delete response.Message;
|
|
2010
|
-
return [2
|
|
2010
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2011
2011
|
}
|
|
2012
2012
|
});
|
|
2013
2013
|
}); };
|
|
@@ -2017,7 +2017,7 @@ export var deserializeAws_restJson1DeleteProjectCommand = function (output, cont
|
|
|
2017
2017
|
switch (_c.label) {
|
|
2018
2018
|
case 0:
|
|
2019
2019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2020
|
-
return [2
|
|
2020
|
+
return [2, deserializeAws_restJson1DeleteProjectCommandError(output, context)];
|
|
2021
2021
|
}
|
|
2022
2022
|
contents = {
|
|
2023
2023
|
$metadata: deserializeMetadata(output),
|
|
@@ -2025,13 +2025,13 @@ export var deserializeAws_restJson1DeleteProjectCommand = function (output, cont
|
|
|
2025
2025
|
};
|
|
2026
2026
|
_a = __expectNonNull;
|
|
2027
2027
|
_b = __expectObject;
|
|
2028
|
-
return [4
|
|
2028
|
+
return [4, parseBody(output.body, context)];
|
|
2029
2029
|
case 1:
|
|
2030
2030
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2031
2031
|
if (data.Name !== undefined && data.Name !== null) {
|
|
2032
2032
|
contents.Name = __expectString(data.Name);
|
|
2033
2033
|
}
|
|
2034
|
-
return [2
|
|
2034
|
+
return [2, Promise.resolve(contents)];
|
|
2035
2035
|
}
|
|
2036
2036
|
});
|
|
2037
2037
|
}); };
|
|
@@ -2043,39 +2043,39 @@ var deserializeAws_restJson1DeleteProjectCommandError = function (output, contex
|
|
|
2043
2043
|
case 0:
|
|
2044
2044
|
_a = [__assign({}, output)];
|
|
2045
2045
|
_f = {};
|
|
2046
|
-
return [4
|
|
2046
|
+
return [4, parseBody(output.body, context)];
|
|
2047
2047
|
case 1:
|
|
2048
2048
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2049
2049
|
errorCode = "UnknownError";
|
|
2050
2050
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2051
2051
|
_b = errorCode;
|
|
2052
2052
|
switch (_b) {
|
|
2053
|
-
case "ConflictException": return [3
|
|
2054
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
2055
|
-
case "ResourceNotFoundException": return [3
|
|
2056
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2057
|
-
case "ValidationException": return [3
|
|
2058
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2059
|
-
}
|
|
2060
|
-
return [3
|
|
2053
|
+
case "ConflictException": return [3, 2];
|
|
2054
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
2055
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2056
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
2057
|
+
case "ValidationException": return [3, 6];
|
|
2058
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
2059
|
+
}
|
|
2060
|
+
return [3, 8];
|
|
2061
2061
|
case 2:
|
|
2062
2062
|
_c = [{}];
|
|
2063
|
-
return [4
|
|
2063
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2064
2064
|
case 3:
|
|
2065
2065
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2066
|
-
return [3
|
|
2066
|
+
return [3, 9];
|
|
2067
2067
|
case 4:
|
|
2068
2068
|
_d = [{}];
|
|
2069
|
-
return [4
|
|
2069
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2070
2070
|
case 5:
|
|
2071
2071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2072
|
-
return [3
|
|
2072
|
+
return [3, 9];
|
|
2073
2073
|
case 6:
|
|
2074
2074
|
_e = [{}];
|
|
2075
|
-
return [4
|
|
2075
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2076
2076
|
case 7:
|
|
2077
2077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2078
|
-
return [3
|
|
2078
|
+
return [3, 9];
|
|
2079
2079
|
case 8:
|
|
2080
2080
|
parsedBody = parsedOutput.body;
|
|
2081
2081
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2085,7 +2085,7 @@ var deserializeAws_restJson1DeleteProjectCommandError = function (output, contex
|
|
|
2085
2085
|
message = response.message || response.Message || errorCode;
|
|
2086
2086
|
response.message = message;
|
|
2087
2087
|
delete response.Message;
|
|
2088
|
-
return [2
|
|
2088
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2089
2089
|
}
|
|
2090
2090
|
});
|
|
2091
2091
|
}); };
|
|
@@ -2095,7 +2095,7 @@ export var deserializeAws_restJson1DeleteRecipeVersionCommand = function (output
|
|
|
2095
2095
|
switch (_c.label) {
|
|
2096
2096
|
case 0:
|
|
2097
2097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2098
|
-
return [2
|
|
2098
|
+
return [2, deserializeAws_restJson1DeleteRecipeVersionCommandError(output, context)];
|
|
2099
2099
|
}
|
|
2100
2100
|
contents = {
|
|
2101
2101
|
$metadata: deserializeMetadata(output),
|
|
@@ -2104,7 +2104,7 @@ export var deserializeAws_restJson1DeleteRecipeVersionCommand = function (output
|
|
|
2104
2104
|
};
|
|
2105
2105
|
_a = __expectNonNull;
|
|
2106
2106
|
_b = __expectObject;
|
|
2107
|
-
return [4
|
|
2107
|
+
return [4, parseBody(output.body, context)];
|
|
2108
2108
|
case 1:
|
|
2109
2109
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2110
2110
|
if (data.Name !== undefined && data.Name !== null) {
|
|
@@ -2113,7 +2113,7 @@ export var deserializeAws_restJson1DeleteRecipeVersionCommand = function (output
|
|
|
2113
2113
|
if (data.RecipeVersion !== undefined && data.RecipeVersion !== null) {
|
|
2114
2114
|
contents.RecipeVersion = __expectString(data.RecipeVersion);
|
|
2115
2115
|
}
|
|
2116
|
-
return [2
|
|
2116
|
+
return [2, Promise.resolve(contents)];
|
|
2117
2117
|
}
|
|
2118
2118
|
});
|
|
2119
2119
|
}); };
|
|
@@ -2125,39 +2125,39 @@ var deserializeAws_restJson1DeleteRecipeVersionCommandError = function (output,
|
|
|
2125
2125
|
case 0:
|
|
2126
2126
|
_a = [__assign({}, output)];
|
|
2127
2127
|
_f = {};
|
|
2128
|
-
return [4
|
|
2128
|
+
return [4, parseBody(output.body, context)];
|
|
2129
2129
|
case 1:
|
|
2130
2130
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2131
2131
|
errorCode = "UnknownError";
|
|
2132
2132
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
2133
|
_b = errorCode;
|
|
2134
2134
|
switch (_b) {
|
|
2135
|
-
case "ConflictException": return [3
|
|
2136
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
2137
|
-
case "ResourceNotFoundException": return [3
|
|
2138
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2139
|
-
case "ValidationException": return [3
|
|
2140
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2141
|
-
}
|
|
2142
|
-
return [3
|
|
2135
|
+
case "ConflictException": return [3, 2];
|
|
2136
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
2137
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2138
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
2139
|
+
case "ValidationException": return [3, 6];
|
|
2140
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
2141
|
+
}
|
|
2142
|
+
return [3, 8];
|
|
2143
2143
|
case 2:
|
|
2144
2144
|
_c = [{}];
|
|
2145
|
-
return [4
|
|
2145
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2146
2146
|
case 3:
|
|
2147
2147
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2148
|
-
return [3
|
|
2148
|
+
return [3, 9];
|
|
2149
2149
|
case 4:
|
|
2150
2150
|
_d = [{}];
|
|
2151
|
-
return [4
|
|
2151
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2152
2152
|
case 5:
|
|
2153
2153
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2154
|
-
return [3
|
|
2154
|
+
return [3, 9];
|
|
2155
2155
|
case 6:
|
|
2156
2156
|
_e = [{}];
|
|
2157
|
-
return [4
|
|
2157
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2158
2158
|
case 7:
|
|
2159
2159
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2160
|
-
return [3
|
|
2160
|
+
return [3, 9];
|
|
2161
2161
|
case 8:
|
|
2162
2162
|
parsedBody = parsedOutput.body;
|
|
2163
2163
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2167,7 +2167,7 @@ var deserializeAws_restJson1DeleteRecipeVersionCommandError = function (output,
|
|
|
2167
2167
|
message = response.message || response.Message || errorCode;
|
|
2168
2168
|
response.message = message;
|
|
2169
2169
|
delete response.Message;
|
|
2170
|
-
return [2
|
|
2170
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2171
2171
|
}
|
|
2172
2172
|
});
|
|
2173
2173
|
}); };
|
|
@@ -2177,7 +2177,7 @@ export var deserializeAws_restJson1DeleteScheduleCommand = function (output, con
|
|
|
2177
2177
|
switch (_c.label) {
|
|
2178
2178
|
case 0:
|
|
2179
2179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2180
|
-
return [2
|
|
2180
|
+
return [2, deserializeAws_restJson1DeleteScheduleCommandError(output, context)];
|
|
2181
2181
|
}
|
|
2182
2182
|
contents = {
|
|
2183
2183
|
$metadata: deserializeMetadata(output),
|
|
@@ -2185,13 +2185,13 @@ export var deserializeAws_restJson1DeleteScheduleCommand = function (output, con
|
|
|
2185
2185
|
};
|
|
2186
2186
|
_a = __expectNonNull;
|
|
2187
2187
|
_b = __expectObject;
|
|
2188
|
-
return [4
|
|
2188
|
+
return [4, parseBody(output.body, context)];
|
|
2189
2189
|
case 1:
|
|
2190
2190
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2191
2191
|
if (data.Name !== undefined && data.Name !== null) {
|
|
2192
2192
|
contents.Name = __expectString(data.Name);
|
|
2193
2193
|
}
|
|
2194
|
-
return [2
|
|
2194
|
+
return [2, Promise.resolve(contents)];
|
|
2195
2195
|
}
|
|
2196
2196
|
});
|
|
2197
2197
|
}); };
|
|
@@ -2203,31 +2203,31 @@ var deserializeAws_restJson1DeleteScheduleCommandError = function (output, conte
|
|
|
2203
2203
|
case 0:
|
|
2204
2204
|
_a = [__assign({}, output)];
|
|
2205
2205
|
_e = {};
|
|
2206
|
-
return [4
|
|
2206
|
+
return [4, parseBody(output.body, context)];
|
|
2207
2207
|
case 1:
|
|
2208
2208
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2209
2209
|
errorCode = "UnknownError";
|
|
2210
2210
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2211
2211
|
_b = errorCode;
|
|
2212
2212
|
switch (_b) {
|
|
2213
|
-
case "ResourceNotFoundException": return [3
|
|
2214
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2215
|
-
case "ValidationException": return [3
|
|
2216
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2213
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
2214
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
2215
|
+
case "ValidationException": return [3, 4];
|
|
2216
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
2217
2217
|
}
|
|
2218
|
-
return [3
|
|
2218
|
+
return [3, 6];
|
|
2219
2219
|
case 2:
|
|
2220
2220
|
_c = [{}];
|
|
2221
|
-
return [4
|
|
2221
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2222
2222
|
case 3:
|
|
2223
2223
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2224
|
-
return [3
|
|
2224
|
+
return [3, 7];
|
|
2225
2225
|
case 4:
|
|
2226
2226
|
_d = [{}];
|
|
2227
|
-
return [4
|
|
2227
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2228
2228
|
case 5:
|
|
2229
2229
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2230
|
-
return [3
|
|
2230
|
+
return [3, 7];
|
|
2231
2231
|
case 6:
|
|
2232
2232
|
parsedBody = parsedOutput.body;
|
|
2233
2233
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2237,7 +2237,7 @@ var deserializeAws_restJson1DeleteScheduleCommandError = function (output, conte
|
|
|
2237
2237
|
message = response.message || response.Message || errorCode;
|
|
2238
2238
|
response.message = message;
|
|
2239
2239
|
delete response.Message;
|
|
2240
|
-
return [2
|
|
2240
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
2243
|
}); };
|
|
@@ -2247,7 +2247,7 @@ export var deserializeAws_restJson1DescribeDatasetCommand = function (output, co
|
|
|
2247
2247
|
switch (_c.label) {
|
|
2248
2248
|
case 0:
|
|
2249
2249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2250
|
-
return [2
|
|
2250
|
+
return [2, deserializeAws_restJson1DescribeDatasetCommandError(output, context)];
|
|
2251
2251
|
}
|
|
2252
2252
|
contents = {
|
|
2253
2253
|
$metadata: deserializeMetadata(output),
|
|
@@ -2266,7 +2266,7 @@ export var deserializeAws_restJson1DescribeDatasetCommand = function (output, co
|
|
|
2266
2266
|
};
|
|
2267
2267
|
_a = __expectNonNull;
|
|
2268
2268
|
_b = __expectObject;
|
|
2269
|
-
return [4
|
|
2269
|
+
return [4, parseBody(output.body, context)];
|
|
2270
2270
|
case 1:
|
|
2271
2271
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2272
2272
|
if (data.CreateDate !== undefined && data.CreateDate !== null) {
|
|
@@ -2305,7 +2305,7 @@ export var deserializeAws_restJson1DescribeDatasetCommand = function (output, co
|
|
|
2305
2305
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2306
2306
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2307
2307
|
}
|
|
2308
|
-
return [2
|
|
2308
|
+
return [2, Promise.resolve(contents)];
|
|
2309
2309
|
}
|
|
2310
2310
|
});
|
|
2311
2311
|
}); };
|
|
@@ -2317,31 +2317,31 @@ var deserializeAws_restJson1DescribeDatasetCommandError = function (output, cont
|
|
|
2317
2317
|
case 0:
|
|
2318
2318
|
_a = [__assign({}, output)];
|
|
2319
2319
|
_e = {};
|
|
2320
|
-
return [4
|
|
2320
|
+
return [4, parseBody(output.body, context)];
|
|
2321
2321
|
case 1:
|
|
2322
2322
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2323
2323
|
errorCode = "UnknownError";
|
|
2324
2324
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
2325
|
_b = errorCode;
|
|
2326
2326
|
switch (_b) {
|
|
2327
|
-
case "ResourceNotFoundException": return [3
|
|
2328
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2329
|
-
case "ValidationException": return [3
|
|
2330
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2327
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
2328
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
2329
|
+
case "ValidationException": return [3, 4];
|
|
2330
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
2331
2331
|
}
|
|
2332
|
-
return [3
|
|
2332
|
+
return [3, 6];
|
|
2333
2333
|
case 2:
|
|
2334
2334
|
_c = [{}];
|
|
2335
|
-
return [4
|
|
2335
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2336
2336
|
case 3:
|
|
2337
2337
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2338
|
-
return [3
|
|
2338
|
+
return [3, 7];
|
|
2339
2339
|
case 4:
|
|
2340
2340
|
_d = [{}];
|
|
2341
|
-
return [4
|
|
2341
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2342
2342
|
case 5:
|
|
2343
2343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2344
|
-
return [3
|
|
2344
|
+
return [3, 7];
|
|
2345
2345
|
case 6:
|
|
2346
2346
|
parsedBody = parsedOutput.body;
|
|
2347
2347
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2351,7 +2351,7 @@ var deserializeAws_restJson1DescribeDatasetCommandError = function (output, cont
|
|
|
2351
2351
|
message = response.message || response.Message || errorCode;
|
|
2352
2352
|
response.message = message;
|
|
2353
2353
|
delete response.Message;
|
|
2354
|
-
return [2
|
|
2354
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2355
2355
|
}
|
|
2356
2356
|
});
|
|
2357
2357
|
}); };
|
|
@@ -2361,7 +2361,7 @@ export var deserializeAws_restJson1DescribeJobCommand = function (output, contex
|
|
|
2361
2361
|
switch (_c.label) {
|
|
2362
2362
|
case 0:
|
|
2363
2363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2364
|
-
return [2
|
|
2364
|
+
return [2, deserializeAws_restJson1DescribeJobCommandError(output, context)];
|
|
2365
2365
|
}
|
|
2366
2366
|
contents = {
|
|
2367
2367
|
$metadata: deserializeMetadata(output),
|
|
@@ -2391,7 +2391,7 @@ export var deserializeAws_restJson1DescribeJobCommand = function (output, contex
|
|
|
2391
2391
|
};
|
|
2392
2392
|
_a = __expectNonNull;
|
|
2393
2393
|
_b = __expectObject;
|
|
2394
|
-
return [4
|
|
2394
|
+
return [4, parseBody(output.body, context)];
|
|
2395
2395
|
case 1:
|
|
2396
2396
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2397
2397
|
if (data.CreateDate !== undefined && data.CreateDate !== null) {
|
|
@@ -2463,7 +2463,7 @@ export var deserializeAws_restJson1DescribeJobCommand = function (output, contex
|
|
|
2463
2463
|
if (data.Type !== undefined && data.Type !== null) {
|
|
2464
2464
|
contents.Type = __expectString(data.Type);
|
|
2465
2465
|
}
|
|
2466
|
-
return [2
|
|
2466
|
+
return [2, Promise.resolve(contents)];
|
|
2467
2467
|
}
|
|
2468
2468
|
});
|
|
2469
2469
|
}); };
|
|
@@ -2475,31 +2475,31 @@ var deserializeAws_restJson1DescribeJobCommandError = function (output, context)
|
|
|
2475
2475
|
case 0:
|
|
2476
2476
|
_a = [__assign({}, output)];
|
|
2477
2477
|
_e = {};
|
|
2478
|
-
return [4
|
|
2478
|
+
return [4, parseBody(output.body, context)];
|
|
2479
2479
|
case 1:
|
|
2480
2480
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2481
2481
|
errorCode = "UnknownError";
|
|
2482
2482
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2483
2483
|
_b = errorCode;
|
|
2484
2484
|
switch (_b) {
|
|
2485
|
-
case "ResourceNotFoundException": return [3
|
|
2486
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2487
|
-
case "ValidationException": return [3
|
|
2488
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2485
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
2486
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
2487
|
+
case "ValidationException": return [3, 4];
|
|
2488
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
2489
2489
|
}
|
|
2490
|
-
return [3
|
|
2490
|
+
return [3, 6];
|
|
2491
2491
|
case 2:
|
|
2492
2492
|
_c = [{}];
|
|
2493
|
-
return [4
|
|
2493
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2494
2494
|
case 3:
|
|
2495
2495
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2496
|
-
return [3
|
|
2496
|
+
return [3, 7];
|
|
2497
2497
|
case 4:
|
|
2498
2498
|
_d = [{}];
|
|
2499
|
-
return [4
|
|
2499
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2500
2500
|
case 5:
|
|
2501
2501
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2502
|
-
return [3
|
|
2502
|
+
return [3, 7];
|
|
2503
2503
|
case 6:
|
|
2504
2504
|
parsedBody = parsedOutput.body;
|
|
2505
2505
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2509,7 +2509,7 @@ var deserializeAws_restJson1DescribeJobCommandError = function (output, context)
|
|
|
2509
2509
|
message = response.message || response.Message || errorCode;
|
|
2510
2510
|
response.message = message;
|
|
2511
2511
|
delete response.Message;
|
|
2512
|
-
return [2
|
|
2512
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2513
2513
|
}
|
|
2514
2514
|
});
|
|
2515
2515
|
}); };
|
|
@@ -2519,7 +2519,7 @@ export var deserializeAws_restJson1DescribeJobRunCommand = function (output, con
|
|
|
2519
2519
|
switch (_c.label) {
|
|
2520
2520
|
case 0:
|
|
2521
2521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2522
|
-
return [2
|
|
2522
|
+
return [2, deserializeAws_restJson1DescribeJobRunCommandError(output, context)];
|
|
2523
2523
|
}
|
|
2524
2524
|
contents = {
|
|
2525
2525
|
$metadata: deserializeMetadata(output),
|
|
@@ -2544,7 +2544,7 @@ export var deserializeAws_restJson1DescribeJobRunCommand = function (output, con
|
|
|
2544
2544
|
};
|
|
2545
2545
|
_a = __expectNonNull;
|
|
2546
2546
|
_b = __expectObject;
|
|
2547
|
-
return [4
|
|
2547
|
+
return [4, parseBody(output.body, context)];
|
|
2548
2548
|
case 1:
|
|
2549
2549
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2550
2550
|
if (data.Attempt !== undefined && data.Attempt !== null) {
|
|
@@ -2601,7 +2601,7 @@ export var deserializeAws_restJson1DescribeJobRunCommand = function (output, con
|
|
|
2601
2601
|
if (data.State !== undefined && data.State !== null) {
|
|
2602
2602
|
contents.State = __expectString(data.State);
|
|
2603
2603
|
}
|
|
2604
|
-
return [2
|
|
2604
|
+
return [2, Promise.resolve(contents)];
|
|
2605
2605
|
}
|
|
2606
2606
|
});
|
|
2607
2607
|
}); };
|
|
@@ -2613,31 +2613,31 @@ var deserializeAws_restJson1DescribeJobRunCommandError = function (output, conte
|
|
|
2613
2613
|
case 0:
|
|
2614
2614
|
_a = [__assign({}, output)];
|
|
2615
2615
|
_e = {};
|
|
2616
|
-
return [4
|
|
2616
|
+
return [4, parseBody(output.body, context)];
|
|
2617
2617
|
case 1:
|
|
2618
2618
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2619
2619
|
errorCode = "UnknownError";
|
|
2620
2620
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
2621
|
_b = errorCode;
|
|
2622
2622
|
switch (_b) {
|
|
2623
|
-
case "ResourceNotFoundException": return [3
|
|
2624
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2625
|
-
case "ValidationException": return [3
|
|
2626
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2623
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
2624
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
2625
|
+
case "ValidationException": return [3, 4];
|
|
2626
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
2627
2627
|
}
|
|
2628
|
-
return [3
|
|
2628
|
+
return [3, 6];
|
|
2629
2629
|
case 2:
|
|
2630
2630
|
_c = [{}];
|
|
2631
|
-
return [4
|
|
2631
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2632
2632
|
case 3:
|
|
2633
2633
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2634
|
-
return [3
|
|
2634
|
+
return [3, 7];
|
|
2635
2635
|
case 4:
|
|
2636
2636
|
_d = [{}];
|
|
2637
|
-
return [4
|
|
2637
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2638
2638
|
case 5:
|
|
2639
2639
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2640
|
-
return [3
|
|
2640
|
+
return [3, 7];
|
|
2641
2641
|
case 6:
|
|
2642
2642
|
parsedBody = parsedOutput.body;
|
|
2643
2643
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2647,7 +2647,7 @@ var deserializeAws_restJson1DescribeJobRunCommandError = function (output, conte
|
|
|
2647
2647
|
message = response.message || response.Message || errorCode;
|
|
2648
2648
|
response.message = message;
|
|
2649
2649
|
delete response.Message;
|
|
2650
|
-
return [2
|
|
2650
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2651
2651
|
}
|
|
2652
2652
|
});
|
|
2653
2653
|
}); };
|
|
@@ -2657,7 +2657,7 @@ export var deserializeAws_restJson1DescribeProjectCommand = function (output, co
|
|
|
2657
2657
|
switch (_c.label) {
|
|
2658
2658
|
case 0:
|
|
2659
2659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2660
|
-
return [2
|
|
2660
|
+
return [2, deserializeAws_restJson1DescribeProjectCommandError(output, context)];
|
|
2661
2661
|
}
|
|
2662
2662
|
contents = {
|
|
2663
2663
|
$metadata: deserializeMetadata(output),
|
|
@@ -2678,7 +2678,7 @@ export var deserializeAws_restJson1DescribeProjectCommand = function (output, co
|
|
|
2678
2678
|
};
|
|
2679
2679
|
_a = __expectNonNull;
|
|
2680
2680
|
_b = __expectObject;
|
|
2681
|
-
return [4
|
|
2681
|
+
return [4, parseBody(output.body, context)];
|
|
2682
2682
|
case 1:
|
|
2683
2683
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2684
2684
|
if (data.CreateDate !== undefined && data.CreateDate !== null) {
|
|
@@ -2723,7 +2723,7 @@ export var deserializeAws_restJson1DescribeProjectCommand = function (output, co
|
|
|
2723
2723
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2724
2724
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2725
2725
|
}
|
|
2726
|
-
return [2
|
|
2726
|
+
return [2, Promise.resolve(contents)];
|
|
2727
2727
|
}
|
|
2728
2728
|
});
|
|
2729
2729
|
}); };
|
|
@@ -2735,31 +2735,31 @@ var deserializeAws_restJson1DescribeProjectCommandError = function (output, cont
|
|
|
2735
2735
|
case 0:
|
|
2736
2736
|
_a = [__assign({}, output)];
|
|
2737
2737
|
_e = {};
|
|
2738
|
-
return [4
|
|
2738
|
+
return [4, parseBody(output.body, context)];
|
|
2739
2739
|
case 1:
|
|
2740
2740
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2741
2741
|
errorCode = "UnknownError";
|
|
2742
2742
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2743
2743
|
_b = errorCode;
|
|
2744
2744
|
switch (_b) {
|
|
2745
|
-
case "ResourceNotFoundException": return [3
|
|
2746
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2747
|
-
case "ValidationException": return [3
|
|
2748
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2745
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
2746
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
2747
|
+
case "ValidationException": return [3, 4];
|
|
2748
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
2749
2749
|
}
|
|
2750
|
-
return [3
|
|
2750
|
+
return [3, 6];
|
|
2751
2751
|
case 2:
|
|
2752
2752
|
_c = [{}];
|
|
2753
|
-
return [4
|
|
2753
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2754
2754
|
case 3:
|
|
2755
2755
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2756
|
-
return [3
|
|
2756
|
+
return [3, 7];
|
|
2757
2757
|
case 4:
|
|
2758
2758
|
_d = [{}];
|
|
2759
|
-
return [4
|
|
2759
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2760
2760
|
case 5:
|
|
2761
2761
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2762
|
-
return [3
|
|
2762
|
+
return [3, 7];
|
|
2763
2763
|
case 6:
|
|
2764
2764
|
parsedBody = parsedOutput.body;
|
|
2765
2765
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2769,7 +2769,7 @@ var deserializeAws_restJson1DescribeProjectCommandError = function (output, cont
|
|
|
2769
2769
|
message = response.message || response.Message || errorCode;
|
|
2770
2770
|
response.message = message;
|
|
2771
2771
|
delete response.Message;
|
|
2772
|
-
return [2
|
|
2772
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2773
2773
|
}
|
|
2774
2774
|
});
|
|
2775
2775
|
}); };
|
|
@@ -2779,7 +2779,7 @@ export var deserializeAws_restJson1DescribeRecipeCommand = function (output, con
|
|
|
2779
2779
|
switch (_c.label) {
|
|
2780
2780
|
case 0:
|
|
2781
2781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2782
|
-
return [2
|
|
2782
|
+
return [2, deserializeAws_restJson1DescribeRecipeCommandError(output, context)];
|
|
2783
2783
|
}
|
|
2784
2784
|
contents = {
|
|
2785
2785
|
$metadata: deserializeMetadata(output),
|
|
@@ -2799,7 +2799,7 @@ export var deserializeAws_restJson1DescribeRecipeCommand = function (output, con
|
|
|
2799
2799
|
};
|
|
2800
2800
|
_a = __expectNonNull;
|
|
2801
2801
|
_b = __expectObject;
|
|
2802
|
-
return [4
|
|
2802
|
+
return [4, parseBody(output.body, context)];
|
|
2803
2803
|
case 1:
|
|
2804
2804
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2805
2805
|
if (data.CreateDate !== undefined && data.CreateDate !== null) {
|
|
@@ -2841,7 +2841,7 @@ export var deserializeAws_restJson1DescribeRecipeCommand = function (output, con
|
|
|
2841
2841
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2842
2842
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2843
2843
|
}
|
|
2844
|
-
return [2
|
|
2844
|
+
return [2, Promise.resolve(contents)];
|
|
2845
2845
|
}
|
|
2846
2846
|
});
|
|
2847
2847
|
}); };
|
|
@@ -2853,31 +2853,31 @@ var deserializeAws_restJson1DescribeRecipeCommandError = function (output, conte
|
|
|
2853
2853
|
case 0:
|
|
2854
2854
|
_a = [__assign({}, output)];
|
|
2855
2855
|
_e = {};
|
|
2856
|
-
return [4
|
|
2856
|
+
return [4, parseBody(output.body, context)];
|
|
2857
2857
|
case 1:
|
|
2858
2858
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2859
2859
|
errorCode = "UnknownError";
|
|
2860
2860
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2861
2861
|
_b = errorCode;
|
|
2862
2862
|
switch (_b) {
|
|
2863
|
-
case "ResourceNotFoundException": return [3
|
|
2864
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2865
|
-
case "ValidationException": return [3
|
|
2866
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2863
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
2864
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
2865
|
+
case "ValidationException": return [3, 4];
|
|
2866
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
2867
2867
|
}
|
|
2868
|
-
return [3
|
|
2868
|
+
return [3, 6];
|
|
2869
2869
|
case 2:
|
|
2870
2870
|
_c = [{}];
|
|
2871
|
-
return [4
|
|
2871
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2872
2872
|
case 3:
|
|
2873
2873
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2874
|
-
return [3
|
|
2874
|
+
return [3, 7];
|
|
2875
2875
|
case 4:
|
|
2876
2876
|
_d = [{}];
|
|
2877
|
-
return [4
|
|
2877
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2878
2878
|
case 5:
|
|
2879
2879
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2880
|
-
return [3
|
|
2880
|
+
return [3, 7];
|
|
2881
2881
|
case 6:
|
|
2882
2882
|
parsedBody = parsedOutput.body;
|
|
2883
2883
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2887,7 +2887,7 @@ var deserializeAws_restJson1DescribeRecipeCommandError = function (output, conte
|
|
|
2887
2887
|
message = response.message || response.Message || errorCode;
|
|
2888
2888
|
response.message = message;
|
|
2889
2889
|
delete response.Message;
|
|
2890
|
-
return [2
|
|
2890
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2891
2891
|
}
|
|
2892
2892
|
});
|
|
2893
2893
|
}); };
|
|
@@ -2897,7 +2897,7 @@ export var deserializeAws_restJson1DescribeScheduleCommand = function (output, c
|
|
|
2897
2897
|
switch (_c.label) {
|
|
2898
2898
|
case 0:
|
|
2899
2899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2900
|
-
return [2
|
|
2900
|
+
return [2, deserializeAws_restJson1DescribeScheduleCommandError(output, context)];
|
|
2901
2901
|
}
|
|
2902
2902
|
contents = {
|
|
2903
2903
|
$metadata: deserializeMetadata(output),
|
|
@@ -2913,7 +2913,7 @@ export var deserializeAws_restJson1DescribeScheduleCommand = function (output, c
|
|
|
2913
2913
|
};
|
|
2914
2914
|
_a = __expectNonNull;
|
|
2915
2915
|
_b = __expectObject;
|
|
2916
|
-
return [4
|
|
2916
|
+
return [4, parseBody(output.body, context)];
|
|
2917
2917
|
case 1:
|
|
2918
2918
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2919
2919
|
if (data.CreateDate !== undefined && data.CreateDate !== null) {
|
|
@@ -2943,7 +2943,7 @@ export var deserializeAws_restJson1DescribeScheduleCommand = function (output, c
|
|
|
2943
2943
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2944
2944
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2945
2945
|
}
|
|
2946
|
-
return [2
|
|
2946
|
+
return [2, Promise.resolve(contents)];
|
|
2947
2947
|
}
|
|
2948
2948
|
});
|
|
2949
2949
|
}); };
|
|
@@ -2955,31 +2955,31 @@ var deserializeAws_restJson1DescribeScheduleCommandError = function (output, con
|
|
|
2955
2955
|
case 0:
|
|
2956
2956
|
_a = [__assign({}, output)];
|
|
2957
2957
|
_e = {};
|
|
2958
|
-
return [4
|
|
2958
|
+
return [4, parseBody(output.body, context)];
|
|
2959
2959
|
case 1:
|
|
2960
2960
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2961
2961
|
errorCode = "UnknownError";
|
|
2962
2962
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
2963
|
_b = errorCode;
|
|
2964
2964
|
switch (_b) {
|
|
2965
|
-
case "ResourceNotFoundException": return [3
|
|
2966
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
2967
|
-
case "ValidationException": return [3
|
|
2968
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
2965
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
2966
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
2967
|
+
case "ValidationException": return [3, 4];
|
|
2968
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
2969
2969
|
}
|
|
2970
|
-
return [3
|
|
2970
|
+
return [3, 6];
|
|
2971
2971
|
case 2:
|
|
2972
2972
|
_c = [{}];
|
|
2973
|
-
return [4
|
|
2973
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2974
2974
|
case 3:
|
|
2975
2975
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2976
|
-
return [3
|
|
2976
|
+
return [3, 7];
|
|
2977
2977
|
case 4:
|
|
2978
2978
|
_d = [{}];
|
|
2979
|
-
return [4
|
|
2979
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2980
2980
|
case 5:
|
|
2981
2981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2982
|
-
return [3
|
|
2982
|
+
return [3, 7];
|
|
2983
2983
|
case 6:
|
|
2984
2984
|
parsedBody = parsedOutput.body;
|
|
2985
2985
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2989,7 +2989,7 @@ var deserializeAws_restJson1DescribeScheduleCommandError = function (output, con
|
|
|
2989
2989
|
message = response.message || response.Message || errorCode;
|
|
2990
2990
|
response.message = message;
|
|
2991
2991
|
delete response.Message;
|
|
2992
|
-
return [2
|
|
2992
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2993
2993
|
}
|
|
2994
2994
|
});
|
|
2995
2995
|
}); };
|
|
@@ -2999,7 +2999,7 @@ export var deserializeAws_restJson1ListDatasetsCommand = function (output, conte
|
|
|
2999
2999
|
switch (_c.label) {
|
|
3000
3000
|
case 0:
|
|
3001
3001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3002
|
-
return [2
|
|
3002
|
+
return [2, deserializeAws_restJson1ListDatasetsCommandError(output, context)];
|
|
3003
3003
|
}
|
|
3004
3004
|
contents = {
|
|
3005
3005
|
$metadata: deserializeMetadata(output),
|
|
@@ -3008,7 +3008,7 @@ export var deserializeAws_restJson1ListDatasetsCommand = function (output, conte
|
|
|
3008
3008
|
};
|
|
3009
3009
|
_a = __expectNonNull;
|
|
3010
3010
|
_b = __expectObject;
|
|
3011
|
-
return [4
|
|
3011
|
+
return [4, parseBody(output.body, context)];
|
|
3012
3012
|
case 1:
|
|
3013
3013
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3014
3014
|
if (data.Datasets !== undefined && data.Datasets !== null) {
|
|
@@ -3017,7 +3017,7 @@ export var deserializeAws_restJson1ListDatasetsCommand = function (output, conte
|
|
|
3017
3017
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3018
3018
|
contents.NextToken = __expectString(data.NextToken);
|
|
3019
3019
|
}
|
|
3020
|
-
return [2
|
|
3020
|
+
return [2, Promise.resolve(contents)];
|
|
3021
3021
|
}
|
|
3022
3022
|
});
|
|
3023
3023
|
}); };
|
|
@@ -3029,23 +3029,23 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
3029
3029
|
case 0:
|
|
3030
3030
|
_a = [__assign({}, output)];
|
|
3031
3031
|
_d = {};
|
|
3032
|
-
return [4
|
|
3032
|
+
return [4, parseBody(output.body, context)];
|
|
3033
3033
|
case 1:
|
|
3034
3034
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
3035
3035
|
errorCode = "UnknownError";
|
|
3036
3036
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3037
3037
|
_b = errorCode;
|
|
3038
3038
|
switch (_b) {
|
|
3039
|
-
case "ValidationException": return [3
|
|
3040
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3039
|
+
case "ValidationException": return [3, 2];
|
|
3040
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 2];
|
|
3041
3041
|
}
|
|
3042
|
-
return [3
|
|
3042
|
+
return [3, 4];
|
|
3043
3043
|
case 2:
|
|
3044
3044
|
_c = [{}];
|
|
3045
|
-
return [4
|
|
3045
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3046
3046
|
case 3:
|
|
3047
3047
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3048
|
-
return [3
|
|
3048
|
+
return [3, 5];
|
|
3049
3049
|
case 4:
|
|
3050
3050
|
parsedBody = parsedOutput.body;
|
|
3051
3051
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3055,7 +3055,7 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
3055
3055
|
message = response.message || response.Message || errorCode;
|
|
3056
3056
|
response.message = message;
|
|
3057
3057
|
delete response.Message;
|
|
3058
|
-
return [2
|
|
3058
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3059
3059
|
}
|
|
3060
3060
|
});
|
|
3061
3061
|
}); };
|
|
@@ -3065,7 +3065,7 @@ export var deserializeAws_restJson1ListJobRunsCommand = function (output, contex
|
|
|
3065
3065
|
switch (_c.label) {
|
|
3066
3066
|
case 0:
|
|
3067
3067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3068
|
-
return [2
|
|
3068
|
+
return [2, deserializeAws_restJson1ListJobRunsCommandError(output, context)];
|
|
3069
3069
|
}
|
|
3070
3070
|
contents = {
|
|
3071
3071
|
$metadata: deserializeMetadata(output),
|
|
@@ -3074,7 +3074,7 @@ export var deserializeAws_restJson1ListJobRunsCommand = function (output, contex
|
|
|
3074
3074
|
};
|
|
3075
3075
|
_a = __expectNonNull;
|
|
3076
3076
|
_b = __expectObject;
|
|
3077
|
-
return [4
|
|
3077
|
+
return [4, parseBody(output.body, context)];
|
|
3078
3078
|
case 1:
|
|
3079
3079
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3080
3080
|
if (data.JobRuns !== undefined && data.JobRuns !== null) {
|
|
@@ -3083,7 +3083,7 @@ export var deserializeAws_restJson1ListJobRunsCommand = function (output, contex
|
|
|
3083
3083
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3084
3084
|
contents.NextToken = __expectString(data.NextToken);
|
|
3085
3085
|
}
|
|
3086
|
-
return [2
|
|
3086
|
+
return [2, Promise.resolve(contents)];
|
|
3087
3087
|
}
|
|
3088
3088
|
});
|
|
3089
3089
|
}); };
|
|
@@ -3095,31 +3095,31 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
|
|
|
3095
3095
|
case 0:
|
|
3096
3096
|
_a = [__assign({}, output)];
|
|
3097
3097
|
_e = {};
|
|
3098
|
-
return [4
|
|
3098
|
+
return [4, parseBody(output.body, context)];
|
|
3099
3099
|
case 1:
|
|
3100
3100
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3101
3101
|
errorCode = "UnknownError";
|
|
3102
3102
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
3103
|
_b = errorCode;
|
|
3104
3104
|
switch (_b) {
|
|
3105
|
-
case "ResourceNotFoundException": return [3
|
|
3106
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
3107
|
-
case "ValidationException": return [3
|
|
3108
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3105
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
3106
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
3107
|
+
case "ValidationException": return [3, 4];
|
|
3108
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
3109
3109
|
}
|
|
3110
|
-
return [3
|
|
3110
|
+
return [3, 6];
|
|
3111
3111
|
case 2:
|
|
3112
3112
|
_c = [{}];
|
|
3113
|
-
return [4
|
|
3113
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3114
3114
|
case 3:
|
|
3115
3115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3116
|
-
return [3
|
|
3116
|
+
return [3, 7];
|
|
3117
3117
|
case 4:
|
|
3118
3118
|
_d = [{}];
|
|
3119
|
-
return [4
|
|
3119
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3120
3120
|
case 5:
|
|
3121
3121
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3122
|
-
return [3
|
|
3122
|
+
return [3, 7];
|
|
3123
3123
|
case 6:
|
|
3124
3124
|
parsedBody = parsedOutput.body;
|
|
3125
3125
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3129,7 +3129,7 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
|
|
|
3129
3129
|
message = response.message || response.Message || errorCode;
|
|
3130
3130
|
response.message = message;
|
|
3131
3131
|
delete response.Message;
|
|
3132
|
-
return [2
|
|
3132
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3133
3133
|
}
|
|
3134
3134
|
});
|
|
3135
3135
|
}); };
|
|
@@ -3139,7 +3139,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
3139
3139
|
switch (_c.label) {
|
|
3140
3140
|
case 0:
|
|
3141
3141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3142
|
-
return [2
|
|
3142
|
+
return [2, deserializeAws_restJson1ListJobsCommandError(output, context)];
|
|
3143
3143
|
}
|
|
3144
3144
|
contents = {
|
|
3145
3145
|
$metadata: deserializeMetadata(output),
|
|
@@ -3148,7 +3148,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
3148
3148
|
};
|
|
3149
3149
|
_a = __expectNonNull;
|
|
3150
3150
|
_b = __expectObject;
|
|
3151
|
-
return [4
|
|
3151
|
+
return [4, parseBody(output.body, context)];
|
|
3152
3152
|
case 1:
|
|
3153
3153
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3154
3154
|
if (data.Jobs !== undefined && data.Jobs !== null) {
|
|
@@ -3157,7 +3157,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
3157
3157
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3158
3158
|
contents.NextToken = __expectString(data.NextToken);
|
|
3159
3159
|
}
|
|
3160
|
-
return [2
|
|
3160
|
+
return [2, Promise.resolve(contents)];
|
|
3161
3161
|
}
|
|
3162
3162
|
});
|
|
3163
3163
|
}); };
|
|
@@ -3169,23 +3169,23 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
3169
3169
|
case 0:
|
|
3170
3170
|
_a = [__assign({}, output)];
|
|
3171
3171
|
_d = {};
|
|
3172
|
-
return [4
|
|
3172
|
+
return [4, parseBody(output.body, context)];
|
|
3173
3173
|
case 1:
|
|
3174
3174
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
3175
3175
|
errorCode = "UnknownError";
|
|
3176
3176
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3177
3177
|
_b = errorCode;
|
|
3178
3178
|
switch (_b) {
|
|
3179
|
-
case "ValidationException": return [3
|
|
3180
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3179
|
+
case "ValidationException": return [3, 2];
|
|
3180
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 2];
|
|
3181
3181
|
}
|
|
3182
|
-
return [3
|
|
3182
|
+
return [3, 4];
|
|
3183
3183
|
case 2:
|
|
3184
3184
|
_c = [{}];
|
|
3185
|
-
return [4
|
|
3185
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3186
3186
|
case 3:
|
|
3187
3187
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3188
|
-
return [3
|
|
3188
|
+
return [3, 5];
|
|
3189
3189
|
case 4:
|
|
3190
3190
|
parsedBody = parsedOutput.body;
|
|
3191
3191
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3195,7 +3195,7 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
3195
3195
|
message = response.message || response.Message || errorCode;
|
|
3196
3196
|
response.message = message;
|
|
3197
3197
|
delete response.Message;
|
|
3198
|
-
return [2
|
|
3198
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3199
3199
|
}
|
|
3200
3200
|
});
|
|
3201
3201
|
}); };
|
|
@@ -3205,7 +3205,7 @@ export var deserializeAws_restJson1ListProjectsCommand = function (output, conte
|
|
|
3205
3205
|
switch (_c.label) {
|
|
3206
3206
|
case 0:
|
|
3207
3207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3208
|
-
return [2
|
|
3208
|
+
return [2, deserializeAws_restJson1ListProjectsCommandError(output, context)];
|
|
3209
3209
|
}
|
|
3210
3210
|
contents = {
|
|
3211
3211
|
$metadata: deserializeMetadata(output),
|
|
@@ -3214,7 +3214,7 @@ export var deserializeAws_restJson1ListProjectsCommand = function (output, conte
|
|
|
3214
3214
|
};
|
|
3215
3215
|
_a = __expectNonNull;
|
|
3216
3216
|
_b = __expectObject;
|
|
3217
|
-
return [4
|
|
3217
|
+
return [4, parseBody(output.body, context)];
|
|
3218
3218
|
case 1:
|
|
3219
3219
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3220
3220
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -3223,7 +3223,7 @@ export var deserializeAws_restJson1ListProjectsCommand = function (output, conte
|
|
|
3223
3223
|
if (data.Projects !== undefined && data.Projects !== null) {
|
|
3224
3224
|
contents.Projects = deserializeAws_restJson1ProjectList(data.Projects, context);
|
|
3225
3225
|
}
|
|
3226
|
-
return [2
|
|
3226
|
+
return [2, Promise.resolve(contents)];
|
|
3227
3227
|
}
|
|
3228
3228
|
});
|
|
3229
3229
|
}); };
|
|
@@ -3235,23 +3235,23 @@ var deserializeAws_restJson1ListProjectsCommandError = function (output, context
|
|
|
3235
3235
|
case 0:
|
|
3236
3236
|
_a = [__assign({}, output)];
|
|
3237
3237
|
_d = {};
|
|
3238
|
-
return [4
|
|
3238
|
+
return [4, parseBody(output.body, context)];
|
|
3239
3239
|
case 1:
|
|
3240
3240
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
3241
3241
|
errorCode = "UnknownError";
|
|
3242
3242
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3243
3243
|
_b = errorCode;
|
|
3244
3244
|
switch (_b) {
|
|
3245
|
-
case "ValidationException": return [3
|
|
3246
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3245
|
+
case "ValidationException": return [3, 2];
|
|
3246
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 2];
|
|
3247
3247
|
}
|
|
3248
|
-
return [3
|
|
3248
|
+
return [3, 4];
|
|
3249
3249
|
case 2:
|
|
3250
3250
|
_c = [{}];
|
|
3251
|
-
return [4
|
|
3251
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3252
3252
|
case 3:
|
|
3253
3253
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3254
|
-
return [3
|
|
3254
|
+
return [3, 5];
|
|
3255
3255
|
case 4:
|
|
3256
3256
|
parsedBody = parsedOutput.body;
|
|
3257
3257
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3261,7 +3261,7 @@ var deserializeAws_restJson1ListProjectsCommandError = function (output, context
|
|
|
3261
3261
|
message = response.message || response.Message || errorCode;
|
|
3262
3262
|
response.message = message;
|
|
3263
3263
|
delete response.Message;
|
|
3264
|
-
return [2
|
|
3264
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3265
3265
|
}
|
|
3266
3266
|
});
|
|
3267
3267
|
}); };
|
|
@@ -3271,7 +3271,7 @@ export var deserializeAws_restJson1ListRecipesCommand = function (output, contex
|
|
|
3271
3271
|
switch (_c.label) {
|
|
3272
3272
|
case 0:
|
|
3273
3273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3274
|
-
return [2
|
|
3274
|
+
return [2, deserializeAws_restJson1ListRecipesCommandError(output, context)];
|
|
3275
3275
|
}
|
|
3276
3276
|
contents = {
|
|
3277
3277
|
$metadata: deserializeMetadata(output),
|
|
@@ -3280,7 +3280,7 @@ export var deserializeAws_restJson1ListRecipesCommand = function (output, contex
|
|
|
3280
3280
|
};
|
|
3281
3281
|
_a = __expectNonNull;
|
|
3282
3282
|
_b = __expectObject;
|
|
3283
|
-
return [4
|
|
3283
|
+
return [4, parseBody(output.body, context)];
|
|
3284
3284
|
case 1:
|
|
3285
3285
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3286
3286
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -3289,7 +3289,7 @@ export var deserializeAws_restJson1ListRecipesCommand = function (output, contex
|
|
|
3289
3289
|
if (data.Recipes !== undefined && data.Recipes !== null) {
|
|
3290
3290
|
contents.Recipes = deserializeAws_restJson1RecipeList(data.Recipes, context);
|
|
3291
3291
|
}
|
|
3292
|
-
return [2
|
|
3292
|
+
return [2, Promise.resolve(contents)];
|
|
3293
3293
|
}
|
|
3294
3294
|
});
|
|
3295
3295
|
}); };
|
|
@@ -3301,23 +3301,23 @@ var deserializeAws_restJson1ListRecipesCommandError = function (output, context)
|
|
|
3301
3301
|
case 0:
|
|
3302
3302
|
_a = [__assign({}, output)];
|
|
3303
3303
|
_d = {};
|
|
3304
|
-
return [4
|
|
3304
|
+
return [4, parseBody(output.body, context)];
|
|
3305
3305
|
case 1:
|
|
3306
3306
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
3307
3307
|
errorCode = "UnknownError";
|
|
3308
3308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3309
3309
|
_b = errorCode;
|
|
3310
3310
|
switch (_b) {
|
|
3311
|
-
case "ValidationException": return [3
|
|
3312
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3311
|
+
case "ValidationException": return [3, 2];
|
|
3312
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 2];
|
|
3313
3313
|
}
|
|
3314
|
-
return [3
|
|
3314
|
+
return [3, 4];
|
|
3315
3315
|
case 2:
|
|
3316
3316
|
_c = [{}];
|
|
3317
|
-
return [4
|
|
3317
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3318
3318
|
case 3:
|
|
3319
3319
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3320
|
-
return [3
|
|
3320
|
+
return [3, 5];
|
|
3321
3321
|
case 4:
|
|
3322
3322
|
parsedBody = parsedOutput.body;
|
|
3323
3323
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3327,7 +3327,7 @@ var deserializeAws_restJson1ListRecipesCommandError = function (output, context)
|
|
|
3327
3327
|
message = response.message || response.Message || errorCode;
|
|
3328
3328
|
response.message = message;
|
|
3329
3329
|
delete response.Message;
|
|
3330
|
-
return [2
|
|
3330
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3331
3331
|
}
|
|
3332
3332
|
});
|
|
3333
3333
|
}); };
|
|
@@ -3337,7 +3337,7 @@ export var deserializeAws_restJson1ListRecipeVersionsCommand = function (output,
|
|
|
3337
3337
|
switch (_c.label) {
|
|
3338
3338
|
case 0:
|
|
3339
3339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3340
|
-
return [2
|
|
3340
|
+
return [2, deserializeAws_restJson1ListRecipeVersionsCommandError(output, context)];
|
|
3341
3341
|
}
|
|
3342
3342
|
contents = {
|
|
3343
3343
|
$metadata: deserializeMetadata(output),
|
|
@@ -3346,7 +3346,7 @@ export var deserializeAws_restJson1ListRecipeVersionsCommand = function (output,
|
|
|
3346
3346
|
};
|
|
3347
3347
|
_a = __expectNonNull;
|
|
3348
3348
|
_b = __expectObject;
|
|
3349
|
-
return [4
|
|
3349
|
+
return [4, parseBody(output.body, context)];
|
|
3350
3350
|
case 1:
|
|
3351
3351
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3352
3352
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -3355,7 +3355,7 @@ export var deserializeAws_restJson1ListRecipeVersionsCommand = function (output,
|
|
|
3355
3355
|
if (data.Recipes !== undefined && data.Recipes !== null) {
|
|
3356
3356
|
contents.Recipes = deserializeAws_restJson1RecipeList(data.Recipes, context);
|
|
3357
3357
|
}
|
|
3358
|
-
return [2
|
|
3358
|
+
return [2, Promise.resolve(contents)];
|
|
3359
3359
|
}
|
|
3360
3360
|
});
|
|
3361
3361
|
}); };
|
|
@@ -3367,23 +3367,23 @@ var deserializeAws_restJson1ListRecipeVersionsCommandError = function (output, c
|
|
|
3367
3367
|
case 0:
|
|
3368
3368
|
_a = [__assign({}, output)];
|
|
3369
3369
|
_d = {};
|
|
3370
|
-
return [4
|
|
3370
|
+
return [4, parseBody(output.body, context)];
|
|
3371
3371
|
case 1:
|
|
3372
3372
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
3373
3373
|
errorCode = "UnknownError";
|
|
3374
3374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3375
3375
|
_b = errorCode;
|
|
3376
3376
|
switch (_b) {
|
|
3377
|
-
case "ValidationException": return [3
|
|
3378
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3377
|
+
case "ValidationException": return [3, 2];
|
|
3378
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 2];
|
|
3379
3379
|
}
|
|
3380
|
-
return [3
|
|
3380
|
+
return [3, 4];
|
|
3381
3381
|
case 2:
|
|
3382
3382
|
_c = [{}];
|
|
3383
|
-
return [4
|
|
3383
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3384
3384
|
case 3:
|
|
3385
3385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3386
|
-
return [3
|
|
3386
|
+
return [3, 5];
|
|
3387
3387
|
case 4:
|
|
3388
3388
|
parsedBody = parsedOutput.body;
|
|
3389
3389
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3393,7 +3393,7 @@ var deserializeAws_restJson1ListRecipeVersionsCommandError = function (output, c
|
|
|
3393
3393
|
message = response.message || response.Message || errorCode;
|
|
3394
3394
|
response.message = message;
|
|
3395
3395
|
delete response.Message;
|
|
3396
|
-
return [2
|
|
3396
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3397
3397
|
}
|
|
3398
3398
|
});
|
|
3399
3399
|
}); };
|
|
@@ -3403,7 +3403,7 @@ export var deserializeAws_restJson1ListSchedulesCommand = function (output, cont
|
|
|
3403
3403
|
switch (_c.label) {
|
|
3404
3404
|
case 0:
|
|
3405
3405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3406
|
-
return [2
|
|
3406
|
+
return [2, deserializeAws_restJson1ListSchedulesCommandError(output, context)];
|
|
3407
3407
|
}
|
|
3408
3408
|
contents = {
|
|
3409
3409
|
$metadata: deserializeMetadata(output),
|
|
@@ -3412,7 +3412,7 @@ export var deserializeAws_restJson1ListSchedulesCommand = function (output, cont
|
|
|
3412
3412
|
};
|
|
3413
3413
|
_a = __expectNonNull;
|
|
3414
3414
|
_b = __expectObject;
|
|
3415
|
-
return [4
|
|
3415
|
+
return [4, parseBody(output.body, context)];
|
|
3416
3416
|
case 1:
|
|
3417
3417
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3418
3418
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -3421,7 +3421,7 @@ export var deserializeAws_restJson1ListSchedulesCommand = function (output, cont
|
|
|
3421
3421
|
if (data.Schedules !== undefined && data.Schedules !== null) {
|
|
3422
3422
|
contents.Schedules = deserializeAws_restJson1ScheduleList(data.Schedules, context);
|
|
3423
3423
|
}
|
|
3424
|
-
return [2
|
|
3424
|
+
return [2, Promise.resolve(contents)];
|
|
3425
3425
|
}
|
|
3426
3426
|
});
|
|
3427
3427
|
}); };
|
|
@@ -3433,23 +3433,23 @@ var deserializeAws_restJson1ListSchedulesCommandError = function (output, contex
|
|
|
3433
3433
|
case 0:
|
|
3434
3434
|
_a = [__assign({}, output)];
|
|
3435
3435
|
_d = {};
|
|
3436
|
-
return [4
|
|
3436
|
+
return [4, parseBody(output.body, context)];
|
|
3437
3437
|
case 1:
|
|
3438
3438
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
3439
3439
|
errorCode = "UnknownError";
|
|
3440
3440
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3441
3441
|
_b = errorCode;
|
|
3442
3442
|
switch (_b) {
|
|
3443
|
-
case "ValidationException": return [3
|
|
3444
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3443
|
+
case "ValidationException": return [3, 2];
|
|
3444
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 2];
|
|
3445
3445
|
}
|
|
3446
|
-
return [3
|
|
3446
|
+
return [3, 4];
|
|
3447
3447
|
case 2:
|
|
3448
3448
|
_c = [{}];
|
|
3449
|
-
return [4
|
|
3449
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3450
3450
|
case 3:
|
|
3451
3451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3452
|
-
return [3
|
|
3452
|
+
return [3, 5];
|
|
3453
3453
|
case 4:
|
|
3454
3454
|
parsedBody = parsedOutput.body;
|
|
3455
3455
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3459,7 +3459,7 @@ var deserializeAws_restJson1ListSchedulesCommandError = function (output, contex
|
|
|
3459
3459
|
message = response.message || response.Message || errorCode;
|
|
3460
3460
|
response.message = message;
|
|
3461
3461
|
delete response.Message;
|
|
3462
|
-
return [2
|
|
3462
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3463
3463
|
}
|
|
3464
3464
|
});
|
|
3465
3465
|
}); };
|
|
@@ -3469,7 +3469,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3469
3469
|
switch (_c.label) {
|
|
3470
3470
|
case 0:
|
|
3471
3471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3472
|
-
return [2
|
|
3472
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
3473
3473
|
}
|
|
3474
3474
|
contents = {
|
|
3475
3475
|
$metadata: deserializeMetadata(output),
|
|
@@ -3477,13 +3477,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3477
3477
|
};
|
|
3478
3478
|
_a = __expectNonNull;
|
|
3479
3479
|
_b = __expectObject;
|
|
3480
|
-
return [4
|
|
3480
|
+
return [4, parseBody(output.body, context)];
|
|
3481
3481
|
case 1:
|
|
3482
3482
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3483
3483
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
3484
3484
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3485
3485
|
}
|
|
3486
|
-
return [2
|
|
3486
|
+
return [2, Promise.resolve(contents)];
|
|
3487
3487
|
}
|
|
3488
3488
|
});
|
|
3489
3489
|
}); };
|
|
@@ -3495,39 +3495,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3495
3495
|
case 0:
|
|
3496
3496
|
_a = [__assign({}, output)];
|
|
3497
3497
|
_f = {};
|
|
3498
|
-
return [4
|
|
3498
|
+
return [4, parseBody(output.body, context)];
|
|
3499
3499
|
case 1:
|
|
3500
3500
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3501
3501
|
errorCode = "UnknownError";
|
|
3502
3502
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3503
3503
|
_b = errorCode;
|
|
3504
3504
|
switch (_b) {
|
|
3505
|
-
case "InternalServerException": return [3
|
|
3506
|
-
case "com.amazonaws.databrew#InternalServerException": return [3
|
|
3507
|
-
case "ResourceNotFoundException": return [3
|
|
3508
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
3509
|
-
case "ValidationException": return [3
|
|
3510
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3511
|
-
}
|
|
3512
|
-
return [3
|
|
3505
|
+
case "InternalServerException": return [3, 2];
|
|
3506
|
+
case "com.amazonaws.databrew#InternalServerException": return [3, 2];
|
|
3507
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
3508
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
3509
|
+
case "ValidationException": return [3, 6];
|
|
3510
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
3511
|
+
}
|
|
3512
|
+
return [3, 8];
|
|
3513
3513
|
case 2:
|
|
3514
3514
|
_c = [{}];
|
|
3515
|
-
return [4
|
|
3515
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3516
3516
|
case 3:
|
|
3517
3517
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3518
|
-
return [3
|
|
3518
|
+
return [3, 9];
|
|
3519
3519
|
case 4:
|
|
3520
3520
|
_d = [{}];
|
|
3521
|
-
return [4
|
|
3521
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3522
3522
|
case 5:
|
|
3523
3523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3524
|
-
return [3
|
|
3524
|
+
return [3, 9];
|
|
3525
3525
|
case 6:
|
|
3526
3526
|
_e = [{}];
|
|
3527
|
-
return [4
|
|
3527
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3528
3528
|
case 7:
|
|
3529
3529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3530
|
-
return [3
|
|
3530
|
+
return [3, 9];
|
|
3531
3531
|
case 8:
|
|
3532
3532
|
parsedBody = parsedOutput.body;
|
|
3533
3533
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3537,7 +3537,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3537
3537
|
message = response.message || response.Message || errorCode;
|
|
3538
3538
|
response.message = message;
|
|
3539
3539
|
delete response.Message;
|
|
3540
|
-
return [2
|
|
3540
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3541
3541
|
}
|
|
3542
3542
|
});
|
|
3543
3543
|
}); };
|
|
@@ -3547,7 +3547,7 @@ export var deserializeAws_restJson1PublishRecipeCommand = function (output, cont
|
|
|
3547
3547
|
switch (_c.label) {
|
|
3548
3548
|
case 0:
|
|
3549
3549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3550
|
-
return [2
|
|
3550
|
+
return [2, deserializeAws_restJson1PublishRecipeCommandError(output, context)];
|
|
3551
3551
|
}
|
|
3552
3552
|
contents = {
|
|
3553
3553
|
$metadata: deserializeMetadata(output),
|
|
@@ -3555,13 +3555,13 @@ export var deserializeAws_restJson1PublishRecipeCommand = function (output, cont
|
|
|
3555
3555
|
};
|
|
3556
3556
|
_a = __expectNonNull;
|
|
3557
3557
|
_b = __expectObject;
|
|
3558
|
-
return [4
|
|
3558
|
+
return [4, parseBody(output.body, context)];
|
|
3559
3559
|
case 1:
|
|
3560
3560
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3561
3561
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3562
3562
|
contents.Name = __expectString(data.Name);
|
|
3563
3563
|
}
|
|
3564
|
-
return [2
|
|
3564
|
+
return [2, Promise.resolve(contents)];
|
|
3565
3565
|
}
|
|
3566
3566
|
});
|
|
3567
3567
|
}); };
|
|
@@ -3573,39 +3573,39 @@ var deserializeAws_restJson1PublishRecipeCommandError = function (output, contex
|
|
|
3573
3573
|
case 0:
|
|
3574
3574
|
_a = [__assign({}, output)];
|
|
3575
3575
|
_f = {};
|
|
3576
|
-
return [4
|
|
3576
|
+
return [4, parseBody(output.body, context)];
|
|
3577
3577
|
case 1:
|
|
3578
3578
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3579
3579
|
errorCode = "UnknownError";
|
|
3580
3580
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3581
3581
|
_b = errorCode;
|
|
3582
3582
|
switch (_b) {
|
|
3583
|
-
case "ResourceNotFoundException": return [3
|
|
3584
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
3585
|
-
case "ServiceQuotaExceededException": return [3
|
|
3586
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
3587
|
-
case "ValidationException": return [3
|
|
3588
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3589
|
-
}
|
|
3590
|
-
return [3
|
|
3583
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
3584
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
3585
|
+
case "ServiceQuotaExceededException": return [3, 4];
|
|
3586
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 4];
|
|
3587
|
+
case "ValidationException": return [3, 6];
|
|
3588
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
3589
|
+
}
|
|
3590
|
+
return [3, 8];
|
|
3591
3591
|
case 2:
|
|
3592
3592
|
_c = [{}];
|
|
3593
|
-
return [4
|
|
3593
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3594
3594
|
case 3:
|
|
3595
3595
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3596
|
-
return [3
|
|
3596
|
+
return [3, 9];
|
|
3597
3597
|
case 4:
|
|
3598
3598
|
_d = [{}];
|
|
3599
|
-
return [4
|
|
3599
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
3600
3600
|
case 5:
|
|
3601
3601
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3602
|
-
return [3
|
|
3602
|
+
return [3, 9];
|
|
3603
3603
|
case 6:
|
|
3604
3604
|
_e = [{}];
|
|
3605
|
-
return [4
|
|
3605
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3606
3606
|
case 7:
|
|
3607
3607
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3608
|
-
return [3
|
|
3608
|
+
return [3, 9];
|
|
3609
3609
|
case 8:
|
|
3610
3610
|
parsedBody = parsedOutput.body;
|
|
3611
3611
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3615,7 +3615,7 @@ var deserializeAws_restJson1PublishRecipeCommandError = function (output, contex
|
|
|
3615
3615
|
message = response.message || response.Message || errorCode;
|
|
3616
3616
|
response.message = message;
|
|
3617
3617
|
delete response.Message;
|
|
3618
|
-
return [2
|
|
3618
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3619
3619
|
}
|
|
3620
3620
|
});
|
|
3621
3621
|
}); };
|
|
@@ -3625,7 +3625,7 @@ export var deserializeAws_restJson1SendProjectSessionActionCommand = function (o
|
|
|
3625
3625
|
switch (_c.label) {
|
|
3626
3626
|
case 0:
|
|
3627
3627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3628
|
-
return [2
|
|
3628
|
+
return [2, deserializeAws_restJson1SendProjectSessionActionCommandError(output, context)];
|
|
3629
3629
|
}
|
|
3630
3630
|
contents = {
|
|
3631
3631
|
$metadata: deserializeMetadata(output),
|
|
@@ -3635,7 +3635,7 @@ export var deserializeAws_restJson1SendProjectSessionActionCommand = function (o
|
|
|
3635
3635
|
};
|
|
3636
3636
|
_a = __expectNonNull;
|
|
3637
3637
|
_b = __expectObject;
|
|
3638
|
-
return [4
|
|
3638
|
+
return [4, parseBody(output.body, context)];
|
|
3639
3639
|
case 1:
|
|
3640
3640
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3641
3641
|
if (data.ActionId !== undefined && data.ActionId !== null) {
|
|
@@ -3647,7 +3647,7 @@ export var deserializeAws_restJson1SendProjectSessionActionCommand = function (o
|
|
|
3647
3647
|
if (data.Result !== undefined && data.Result !== null) {
|
|
3648
3648
|
contents.Result = __expectString(data.Result);
|
|
3649
3649
|
}
|
|
3650
|
-
return [2
|
|
3650
|
+
return [2, Promise.resolve(contents)];
|
|
3651
3651
|
}
|
|
3652
3652
|
});
|
|
3653
3653
|
}); };
|
|
@@ -3659,39 +3659,39 @@ var deserializeAws_restJson1SendProjectSessionActionCommandError = function (out
|
|
|
3659
3659
|
case 0:
|
|
3660
3660
|
_a = [__assign({}, output)];
|
|
3661
3661
|
_f = {};
|
|
3662
|
-
return [4
|
|
3662
|
+
return [4, parseBody(output.body, context)];
|
|
3663
3663
|
case 1:
|
|
3664
3664
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3665
3665
|
errorCode = "UnknownError";
|
|
3666
3666
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3667
3667
|
_b = errorCode;
|
|
3668
3668
|
switch (_b) {
|
|
3669
|
-
case "ConflictException": return [3
|
|
3670
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
3671
|
-
case "ResourceNotFoundException": return [3
|
|
3672
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
3673
|
-
case "ValidationException": return [3
|
|
3674
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3675
|
-
}
|
|
3676
|
-
return [3
|
|
3669
|
+
case "ConflictException": return [3, 2];
|
|
3670
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
3671
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
3672
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
3673
|
+
case "ValidationException": return [3, 6];
|
|
3674
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
3675
|
+
}
|
|
3676
|
+
return [3, 8];
|
|
3677
3677
|
case 2:
|
|
3678
3678
|
_c = [{}];
|
|
3679
|
-
return [4
|
|
3679
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3680
3680
|
case 3:
|
|
3681
3681
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3682
|
-
return [3
|
|
3682
|
+
return [3, 9];
|
|
3683
3683
|
case 4:
|
|
3684
3684
|
_d = [{}];
|
|
3685
|
-
return [4
|
|
3685
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3686
3686
|
case 5:
|
|
3687
3687
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3688
|
-
return [3
|
|
3688
|
+
return [3, 9];
|
|
3689
3689
|
case 6:
|
|
3690
3690
|
_e = [{}];
|
|
3691
|
-
return [4
|
|
3691
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3692
3692
|
case 7:
|
|
3693
3693
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3694
|
-
return [3
|
|
3694
|
+
return [3, 9];
|
|
3695
3695
|
case 8:
|
|
3696
3696
|
parsedBody = parsedOutput.body;
|
|
3697
3697
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3701,7 +3701,7 @@ var deserializeAws_restJson1SendProjectSessionActionCommandError = function (out
|
|
|
3701
3701
|
message = response.message || response.Message || errorCode;
|
|
3702
3702
|
response.message = message;
|
|
3703
3703
|
delete response.Message;
|
|
3704
|
-
return [2
|
|
3704
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3705
3705
|
}
|
|
3706
3706
|
});
|
|
3707
3707
|
}); };
|
|
@@ -3711,7 +3711,7 @@ export var deserializeAws_restJson1StartJobRunCommand = function (output, contex
|
|
|
3711
3711
|
switch (_c.label) {
|
|
3712
3712
|
case 0:
|
|
3713
3713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3714
|
-
return [2
|
|
3714
|
+
return [2, deserializeAws_restJson1StartJobRunCommandError(output, context)];
|
|
3715
3715
|
}
|
|
3716
3716
|
contents = {
|
|
3717
3717
|
$metadata: deserializeMetadata(output),
|
|
@@ -3719,13 +3719,13 @@ export var deserializeAws_restJson1StartJobRunCommand = function (output, contex
|
|
|
3719
3719
|
};
|
|
3720
3720
|
_a = __expectNonNull;
|
|
3721
3721
|
_b = __expectObject;
|
|
3722
|
-
return [4
|
|
3722
|
+
return [4, parseBody(output.body, context)];
|
|
3723
3723
|
case 1:
|
|
3724
3724
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3725
3725
|
if (data.RunId !== undefined && data.RunId !== null) {
|
|
3726
3726
|
contents.RunId = __expectString(data.RunId);
|
|
3727
3727
|
}
|
|
3728
|
-
return [2
|
|
3728
|
+
return [2, Promise.resolve(contents)];
|
|
3729
3729
|
}
|
|
3730
3730
|
});
|
|
3731
3731
|
}); };
|
|
@@ -3737,47 +3737,47 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
|
|
|
3737
3737
|
case 0:
|
|
3738
3738
|
_a = [__assign({}, output)];
|
|
3739
3739
|
_g = {};
|
|
3740
|
-
return [4
|
|
3740
|
+
return [4, parseBody(output.body, context)];
|
|
3741
3741
|
case 1:
|
|
3742
3742
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3743
3743
|
errorCode = "UnknownError";
|
|
3744
3744
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3745
3745
|
_b = errorCode;
|
|
3746
3746
|
switch (_b) {
|
|
3747
|
-
case "ConflictException": return [3
|
|
3748
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
3749
|
-
case "ResourceNotFoundException": return [3
|
|
3750
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
3751
|
-
case "ServiceQuotaExceededException": return [3
|
|
3752
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
3753
|
-
case "ValidationException": return [3
|
|
3754
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3755
|
-
}
|
|
3756
|
-
return [3
|
|
3747
|
+
case "ConflictException": return [3, 2];
|
|
3748
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
3749
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
3750
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
3751
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
3752
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 6];
|
|
3753
|
+
case "ValidationException": return [3, 8];
|
|
3754
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 8];
|
|
3755
|
+
}
|
|
3756
|
+
return [3, 10];
|
|
3757
3757
|
case 2:
|
|
3758
3758
|
_c = [{}];
|
|
3759
|
-
return [4
|
|
3759
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3760
3760
|
case 3:
|
|
3761
3761
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3762
|
-
return [3
|
|
3762
|
+
return [3, 11];
|
|
3763
3763
|
case 4:
|
|
3764
3764
|
_d = [{}];
|
|
3765
|
-
return [4
|
|
3765
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3766
3766
|
case 5:
|
|
3767
3767
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3768
|
-
return [3
|
|
3768
|
+
return [3, 11];
|
|
3769
3769
|
case 6:
|
|
3770
3770
|
_e = [{}];
|
|
3771
|
-
return [4
|
|
3771
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
3772
3772
|
case 7:
|
|
3773
3773
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3774
|
-
return [3
|
|
3774
|
+
return [3, 11];
|
|
3775
3775
|
case 8:
|
|
3776
3776
|
_f = [{}];
|
|
3777
|
-
return [4
|
|
3777
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3778
3778
|
case 9:
|
|
3779
3779
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3780
|
-
return [3
|
|
3780
|
+
return [3, 11];
|
|
3781
3781
|
case 10:
|
|
3782
3782
|
parsedBody = parsedOutput.body;
|
|
3783
3783
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3787,7 +3787,7 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
|
|
|
3787
3787
|
message = response.message || response.Message || errorCode;
|
|
3788
3788
|
response.message = message;
|
|
3789
3789
|
delete response.Message;
|
|
3790
|
-
return [2
|
|
3790
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3791
3791
|
}
|
|
3792
3792
|
});
|
|
3793
3793
|
}); };
|
|
@@ -3797,7 +3797,7 @@ export var deserializeAws_restJson1StartProjectSessionCommand = function (output
|
|
|
3797
3797
|
switch (_c.label) {
|
|
3798
3798
|
case 0:
|
|
3799
3799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3800
|
-
return [2
|
|
3800
|
+
return [2, deserializeAws_restJson1StartProjectSessionCommandError(output, context)];
|
|
3801
3801
|
}
|
|
3802
3802
|
contents = {
|
|
3803
3803
|
$metadata: deserializeMetadata(output),
|
|
@@ -3806,7 +3806,7 @@ export var deserializeAws_restJson1StartProjectSessionCommand = function (output
|
|
|
3806
3806
|
};
|
|
3807
3807
|
_a = __expectNonNull;
|
|
3808
3808
|
_b = __expectObject;
|
|
3809
|
-
return [4
|
|
3809
|
+
return [4, parseBody(output.body, context)];
|
|
3810
3810
|
case 1:
|
|
3811
3811
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3812
3812
|
if (data.ClientSessionId !== undefined && data.ClientSessionId !== null) {
|
|
@@ -3815,7 +3815,7 @@ export var deserializeAws_restJson1StartProjectSessionCommand = function (output
|
|
|
3815
3815
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3816
3816
|
contents.Name = __expectString(data.Name);
|
|
3817
3817
|
}
|
|
3818
|
-
return [2
|
|
3818
|
+
return [2, Promise.resolve(contents)];
|
|
3819
3819
|
}
|
|
3820
3820
|
});
|
|
3821
3821
|
}); };
|
|
@@ -3827,47 +3827,47 @@ var deserializeAws_restJson1StartProjectSessionCommandError = function (output,
|
|
|
3827
3827
|
case 0:
|
|
3828
3828
|
_a = [__assign({}, output)];
|
|
3829
3829
|
_g = {};
|
|
3830
|
-
return [4
|
|
3830
|
+
return [4, parseBody(output.body, context)];
|
|
3831
3831
|
case 1:
|
|
3832
3832
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3833
3833
|
errorCode = "UnknownError";
|
|
3834
3834
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3835
3835
|
_b = errorCode;
|
|
3836
3836
|
switch (_b) {
|
|
3837
|
-
case "ConflictException": return [3
|
|
3838
|
-
case "com.amazonaws.databrew#ConflictException": return [3
|
|
3839
|
-
case "ResourceNotFoundException": return [3
|
|
3840
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
3841
|
-
case "ServiceQuotaExceededException": return [3
|
|
3842
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
3843
|
-
case "ValidationException": return [3
|
|
3844
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3845
|
-
}
|
|
3846
|
-
return [3
|
|
3837
|
+
case "ConflictException": return [3, 2];
|
|
3838
|
+
case "com.amazonaws.databrew#ConflictException": return [3, 2];
|
|
3839
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
3840
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
3841
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
3842
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 6];
|
|
3843
|
+
case "ValidationException": return [3, 8];
|
|
3844
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 8];
|
|
3845
|
+
}
|
|
3846
|
+
return [3, 10];
|
|
3847
3847
|
case 2:
|
|
3848
3848
|
_c = [{}];
|
|
3849
|
-
return [4
|
|
3849
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3850
3850
|
case 3:
|
|
3851
3851
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3852
|
-
return [3
|
|
3852
|
+
return [3, 11];
|
|
3853
3853
|
case 4:
|
|
3854
3854
|
_d = [{}];
|
|
3855
|
-
return [4
|
|
3855
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3856
3856
|
case 5:
|
|
3857
3857
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3858
|
-
return [3
|
|
3858
|
+
return [3, 11];
|
|
3859
3859
|
case 6:
|
|
3860
3860
|
_e = [{}];
|
|
3861
|
-
return [4
|
|
3861
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
3862
3862
|
case 7:
|
|
3863
3863
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3864
|
-
return [3
|
|
3864
|
+
return [3, 11];
|
|
3865
3865
|
case 8:
|
|
3866
3866
|
_f = [{}];
|
|
3867
|
-
return [4
|
|
3867
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3868
3868
|
case 9:
|
|
3869
3869
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3870
|
-
return [3
|
|
3870
|
+
return [3, 11];
|
|
3871
3871
|
case 10:
|
|
3872
3872
|
parsedBody = parsedOutput.body;
|
|
3873
3873
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3877,7 +3877,7 @@ var deserializeAws_restJson1StartProjectSessionCommandError = function (output,
|
|
|
3877
3877
|
message = response.message || response.Message || errorCode;
|
|
3878
3878
|
response.message = message;
|
|
3879
3879
|
delete response.Message;
|
|
3880
|
-
return [2
|
|
3880
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3881
3881
|
}
|
|
3882
3882
|
});
|
|
3883
3883
|
}); };
|
|
@@ -3887,7 +3887,7 @@ export var deserializeAws_restJson1StopJobRunCommand = function (output, context
|
|
|
3887
3887
|
switch (_c.label) {
|
|
3888
3888
|
case 0:
|
|
3889
3889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3890
|
-
return [2
|
|
3890
|
+
return [2, deserializeAws_restJson1StopJobRunCommandError(output, context)];
|
|
3891
3891
|
}
|
|
3892
3892
|
contents = {
|
|
3893
3893
|
$metadata: deserializeMetadata(output),
|
|
@@ -3895,13 +3895,13 @@ export var deserializeAws_restJson1StopJobRunCommand = function (output, context
|
|
|
3895
3895
|
};
|
|
3896
3896
|
_a = __expectNonNull;
|
|
3897
3897
|
_b = __expectObject;
|
|
3898
|
-
return [4
|
|
3898
|
+
return [4, parseBody(output.body, context)];
|
|
3899
3899
|
case 1:
|
|
3900
3900
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3901
3901
|
if (data.RunId !== undefined && data.RunId !== null) {
|
|
3902
3902
|
contents.RunId = __expectString(data.RunId);
|
|
3903
3903
|
}
|
|
3904
|
-
return [2
|
|
3904
|
+
return [2, Promise.resolve(contents)];
|
|
3905
3905
|
}
|
|
3906
3906
|
});
|
|
3907
3907
|
}); };
|
|
@@ -3913,31 +3913,31 @@ var deserializeAws_restJson1StopJobRunCommandError = function (output, context)
|
|
|
3913
3913
|
case 0:
|
|
3914
3914
|
_a = [__assign({}, output)];
|
|
3915
3915
|
_e = {};
|
|
3916
|
-
return [4
|
|
3916
|
+
return [4, parseBody(output.body, context)];
|
|
3917
3917
|
case 1:
|
|
3918
3918
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3919
3919
|
errorCode = "UnknownError";
|
|
3920
3920
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3921
3921
|
_b = errorCode;
|
|
3922
3922
|
switch (_b) {
|
|
3923
|
-
case "ResourceNotFoundException": return [3
|
|
3924
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
3925
|
-
case "ValidationException": return [3
|
|
3926
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3923
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
3924
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
3925
|
+
case "ValidationException": return [3, 4];
|
|
3926
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
3927
3927
|
}
|
|
3928
|
-
return [3
|
|
3928
|
+
return [3, 6];
|
|
3929
3929
|
case 2:
|
|
3930
3930
|
_c = [{}];
|
|
3931
|
-
return [4
|
|
3931
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3932
3932
|
case 3:
|
|
3933
3933
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3934
|
-
return [3
|
|
3934
|
+
return [3, 7];
|
|
3935
3935
|
case 4:
|
|
3936
3936
|
_d = [{}];
|
|
3937
|
-
return [4
|
|
3937
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3938
3938
|
case 5:
|
|
3939
3939
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3940
|
-
return [3
|
|
3940
|
+
return [3, 7];
|
|
3941
3941
|
case 6:
|
|
3942
3942
|
parsedBody = parsedOutput.body;
|
|
3943
3943
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3947,7 +3947,7 @@ var deserializeAws_restJson1StopJobRunCommandError = function (output, context)
|
|
|
3947
3947
|
message = response.message || response.Message || errorCode;
|
|
3948
3948
|
response.message = message;
|
|
3949
3949
|
delete response.Message;
|
|
3950
|
-
return [2
|
|
3950
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3951
3951
|
}
|
|
3952
3952
|
});
|
|
3953
3953
|
}); };
|
|
@@ -3957,15 +3957,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3957
3957
|
switch (_a.label) {
|
|
3958
3958
|
case 0:
|
|
3959
3959
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3960
|
-
return [2
|
|
3960
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3961
3961
|
}
|
|
3962
3962
|
contents = {
|
|
3963
3963
|
$metadata: deserializeMetadata(output),
|
|
3964
3964
|
};
|
|
3965
|
-
return [4
|
|
3965
|
+
return [4, collectBody(output.body, context)];
|
|
3966
3966
|
case 1:
|
|
3967
3967
|
_a.sent();
|
|
3968
|
-
return [2
|
|
3968
|
+
return [2, Promise.resolve(contents)];
|
|
3969
3969
|
}
|
|
3970
3970
|
});
|
|
3971
3971
|
}); };
|
|
@@ -3977,39 +3977,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3977
3977
|
case 0:
|
|
3978
3978
|
_a = [__assign({}, output)];
|
|
3979
3979
|
_f = {};
|
|
3980
|
-
return [4
|
|
3980
|
+
return [4, parseBody(output.body, context)];
|
|
3981
3981
|
case 1:
|
|
3982
3982
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3983
3983
|
errorCode = "UnknownError";
|
|
3984
3984
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3985
3985
|
_b = errorCode;
|
|
3986
3986
|
switch (_b) {
|
|
3987
|
-
case "InternalServerException": return [3
|
|
3988
|
-
case "com.amazonaws.databrew#InternalServerException": return [3
|
|
3989
|
-
case "ResourceNotFoundException": return [3
|
|
3990
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
3991
|
-
case "ValidationException": return [3
|
|
3992
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
3993
|
-
}
|
|
3994
|
-
return [3
|
|
3987
|
+
case "InternalServerException": return [3, 2];
|
|
3988
|
+
case "com.amazonaws.databrew#InternalServerException": return [3, 2];
|
|
3989
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
3990
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
3991
|
+
case "ValidationException": return [3, 6];
|
|
3992
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
3993
|
+
}
|
|
3994
|
+
return [3, 8];
|
|
3995
3995
|
case 2:
|
|
3996
3996
|
_c = [{}];
|
|
3997
|
-
return [4
|
|
3997
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3998
3998
|
case 3:
|
|
3999
3999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4000
|
-
return [3
|
|
4000
|
+
return [3, 9];
|
|
4001
4001
|
case 4:
|
|
4002
4002
|
_d = [{}];
|
|
4003
|
-
return [4
|
|
4003
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4004
4004
|
case 5:
|
|
4005
4005
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4006
|
-
return [3
|
|
4006
|
+
return [3, 9];
|
|
4007
4007
|
case 6:
|
|
4008
4008
|
_e = [{}];
|
|
4009
|
-
return [4
|
|
4009
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4010
4010
|
case 7:
|
|
4011
4011
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4012
|
-
return [3
|
|
4012
|
+
return [3, 9];
|
|
4013
4013
|
case 8:
|
|
4014
4014
|
parsedBody = parsedOutput.body;
|
|
4015
4015
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4019,7 +4019,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4019
4019
|
message = response.message || response.Message || errorCode;
|
|
4020
4020
|
response.message = message;
|
|
4021
4021
|
delete response.Message;
|
|
4022
|
-
return [2
|
|
4022
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4023
4023
|
}
|
|
4024
4024
|
});
|
|
4025
4025
|
}); };
|
|
@@ -4029,15 +4029,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4029
4029
|
switch (_a.label) {
|
|
4030
4030
|
case 0:
|
|
4031
4031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4032
|
-
return [2
|
|
4032
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
4033
4033
|
}
|
|
4034
4034
|
contents = {
|
|
4035
4035
|
$metadata: deserializeMetadata(output),
|
|
4036
4036
|
};
|
|
4037
|
-
return [4
|
|
4037
|
+
return [4, collectBody(output.body, context)];
|
|
4038
4038
|
case 1:
|
|
4039
4039
|
_a.sent();
|
|
4040
|
-
return [2
|
|
4040
|
+
return [2, Promise.resolve(contents)];
|
|
4041
4041
|
}
|
|
4042
4042
|
});
|
|
4043
4043
|
}); };
|
|
@@ -4049,39 +4049,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4049
4049
|
case 0:
|
|
4050
4050
|
_a = [__assign({}, output)];
|
|
4051
4051
|
_f = {};
|
|
4052
|
-
return [4
|
|
4052
|
+
return [4, parseBody(output.body, context)];
|
|
4053
4053
|
case 1:
|
|
4054
4054
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4055
4055
|
errorCode = "UnknownError";
|
|
4056
4056
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4057
4057
|
_b = errorCode;
|
|
4058
4058
|
switch (_b) {
|
|
4059
|
-
case "InternalServerException": return [3
|
|
4060
|
-
case "com.amazonaws.databrew#InternalServerException": return [3
|
|
4061
|
-
case "ResourceNotFoundException": return [3
|
|
4062
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
4063
|
-
case "ValidationException": return [3
|
|
4064
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
4065
|
-
}
|
|
4066
|
-
return [3
|
|
4059
|
+
case "InternalServerException": return [3, 2];
|
|
4060
|
+
case "com.amazonaws.databrew#InternalServerException": return [3, 2];
|
|
4061
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
4062
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
4063
|
+
case "ValidationException": return [3, 6];
|
|
4064
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
4065
|
+
}
|
|
4066
|
+
return [3, 8];
|
|
4067
4067
|
case 2:
|
|
4068
4068
|
_c = [{}];
|
|
4069
|
-
return [4
|
|
4069
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4070
4070
|
case 3:
|
|
4071
4071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4072
|
-
return [3
|
|
4072
|
+
return [3, 9];
|
|
4073
4073
|
case 4:
|
|
4074
4074
|
_d = [{}];
|
|
4075
|
-
return [4
|
|
4075
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4076
4076
|
case 5:
|
|
4077
4077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4078
|
-
return [3
|
|
4078
|
+
return [3, 9];
|
|
4079
4079
|
case 6:
|
|
4080
4080
|
_e = [{}];
|
|
4081
|
-
return [4
|
|
4081
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4082
4082
|
case 7:
|
|
4083
4083
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4084
|
-
return [3
|
|
4084
|
+
return [3, 9];
|
|
4085
4085
|
case 8:
|
|
4086
4086
|
parsedBody = parsedOutput.body;
|
|
4087
4087
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4091,7 +4091,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4091
4091
|
message = response.message || response.Message || errorCode;
|
|
4092
4092
|
response.message = message;
|
|
4093
4093
|
delete response.Message;
|
|
4094
|
-
return [2
|
|
4094
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4095
4095
|
}
|
|
4096
4096
|
});
|
|
4097
4097
|
}); };
|
|
@@ -4101,7 +4101,7 @@ export var deserializeAws_restJson1UpdateDatasetCommand = function (output, cont
|
|
|
4101
4101
|
switch (_c.label) {
|
|
4102
4102
|
case 0:
|
|
4103
4103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4104
|
-
return [2
|
|
4104
|
+
return [2, deserializeAws_restJson1UpdateDatasetCommandError(output, context)];
|
|
4105
4105
|
}
|
|
4106
4106
|
contents = {
|
|
4107
4107
|
$metadata: deserializeMetadata(output),
|
|
@@ -4109,13 +4109,13 @@ export var deserializeAws_restJson1UpdateDatasetCommand = function (output, cont
|
|
|
4109
4109
|
};
|
|
4110
4110
|
_a = __expectNonNull;
|
|
4111
4111
|
_b = __expectObject;
|
|
4112
|
-
return [4
|
|
4112
|
+
return [4, parseBody(output.body, context)];
|
|
4113
4113
|
case 1:
|
|
4114
4114
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4115
4115
|
if (data.Name !== undefined && data.Name !== null) {
|
|
4116
4116
|
contents.Name = __expectString(data.Name);
|
|
4117
4117
|
}
|
|
4118
|
-
return [2
|
|
4118
|
+
return [2, Promise.resolve(contents)];
|
|
4119
4119
|
}
|
|
4120
4120
|
});
|
|
4121
4121
|
}); };
|
|
@@ -4127,39 +4127,39 @@ var deserializeAws_restJson1UpdateDatasetCommandError = function (output, contex
|
|
|
4127
4127
|
case 0:
|
|
4128
4128
|
_a = [__assign({}, output)];
|
|
4129
4129
|
_f = {};
|
|
4130
|
-
return [4
|
|
4130
|
+
return [4, parseBody(output.body, context)];
|
|
4131
4131
|
case 1:
|
|
4132
4132
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4133
4133
|
errorCode = "UnknownError";
|
|
4134
4134
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4135
4135
|
_b = errorCode;
|
|
4136
4136
|
switch (_b) {
|
|
4137
|
-
case "AccessDeniedException": return [3
|
|
4138
|
-
case "com.amazonaws.databrew#AccessDeniedException": return [3
|
|
4139
|
-
case "ResourceNotFoundException": return [3
|
|
4140
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
4141
|
-
case "ValidationException": return [3
|
|
4142
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
4143
|
-
}
|
|
4144
|
-
return [3
|
|
4137
|
+
case "AccessDeniedException": return [3, 2];
|
|
4138
|
+
case "com.amazonaws.databrew#AccessDeniedException": return [3, 2];
|
|
4139
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
4140
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
4141
|
+
case "ValidationException": return [3, 6];
|
|
4142
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
4143
|
+
}
|
|
4144
|
+
return [3, 8];
|
|
4145
4145
|
case 2:
|
|
4146
4146
|
_c = [{}];
|
|
4147
|
-
return [4
|
|
4147
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4148
4148
|
case 3:
|
|
4149
4149
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4150
|
-
return [3
|
|
4150
|
+
return [3, 9];
|
|
4151
4151
|
case 4:
|
|
4152
4152
|
_d = [{}];
|
|
4153
|
-
return [4
|
|
4153
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4154
4154
|
case 5:
|
|
4155
4155
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4156
|
-
return [3
|
|
4156
|
+
return [3, 9];
|
|
4157
4157
|
case 6:
|
|
4158
4158
|
_e = [{}];
|
|
4159
|
-
return [4
|
|
4159
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4160
4160
|
case 7:
|
|
4161
4161
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4162
|
-
return [3
|
|
4162
|
+
return [3, 9];
|
|
4163
4163
|
case 8:
|
|
4164
4164
|
parsedBody = parsedOutput.body;
|
|
4165
4165
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4169,7 +4169,7 @@ var deserializeAws_restJson1UpdateDatasetCommandError = function (output, contex
|
|
|
4169
4169
|
message = response.message || response.Message || errorCode;
|
|
4170
4170
|
response.message = message;
|
|
4171
4171
|
delete response.Message;
|
|
4172
|
-
return [2
|
|
4172
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4173
4173
|
}
|
|
4174
4174
|
});
|
|
4175
4175
|
}); };
|
|
@@ -4179,7 +4179,7 @@ export var deserializeAws_restJson1UpdateProfileJobCommand = function (output, c
|
|
|
4179
4179
|
switch (_c.label) {
|
|
4180
4180
|
case 0:
|
|
4181
4181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4182
|
-
return [2
|
|
4182
|
+
return [2, deserializeAws_restJson1UpdateProfileJobCommandError(output, context)];
|
|
4183
4183
|
}
|
|
4184
4184
|
contents = {
|
|
4185
4185
|
$metadata: deserializeMetadata(output),
|
|
@@ -4187,13 +4187,13 @@ export var deserializeAws_restJson1UpdateProfileJobCommand = function (output, c
|
|
|
4187
4187
|
};
|
|
4188
4188
|
_a = __expectNonNull;
|
|
4189
4189
|
_b = __expectObject;
|
|
4190
|
-
return [4
|
|
4190
|
+
return [4, parseBody(output.body, context)];
|
|
4191
4191
|
case 1:
|
|
4192
4192
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4193
4193
|
if (data.Name !== undefined && data.Name !== null) {
|
|
4194
4194
|
contents.Name = __expectString(data.Name);
|
|
4195
4195
|
}
|
|
4196
|
-
return [2
|
|
4196
|
+
return [2, Promise.resolve(contents)];
|
|
4197
4197
|
}
|
|
4198
4198
|
});
|
|
4199
4199
|
}); };
|
|
@@ -4205,39 +4205,39 @@ var deserializeAws_restJson1UpdateProfileJobCommandError = function (output, con
|
|
|
4205
4205
|
case 0:
|
|
4206
4206
|
_a = [__assign({}, output)];
|
|
4207
4207
|
_f = {};
|
|
4208
|
-
return [4
|
|
4208
|
+
return [4, parseBody(output.body, context)];
|
|
4209
4209
|
case 1:
|
|
4210
4210
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4211
4211
|
errorCode = "UnknownError";
|
|
4212
4212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4213
4213
|
_b = errorCode;
|
|
4214
4214
|
switch (_b) {
|
|
4215
|
-
case "AccessDeniedException": return [3
|
|
4216
|
-
case "com.amazonaws.databrew#AccessDeniedException": return [3
|
|
4217
|
-
case "ResourceNotFoundException": return [3
|
|
4218
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
4219
|
-
case "ValidationException": return [3
|
|
4220
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
4221
|
-
}
|
|
4222
|
-
return [3
|
|
4215
|
+
case "AccessDeniedException": return [3, 2];
|
|
4216
|
+
case "com.amazonaws.databrew#AccessDeniedException": return [3, 2];
|
|
4217
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
4218
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
4219
|
+
case "ValidationException": return [3, 6];
|
|
4220
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
4221
|
+
}
|
|
4222
|
+
return [3, 8];
|
|
4223
4223
|
case 2:
|
|
4224
4224
|
_c = [{}];
|
|
4225
|
-
return [4
|
|
4225
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4226
4226
|
case 3:
|
|
4227
4227
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4228
|
-
return [3
|
|
4228
|
+
return [3, 9];
|
|
4229
4229
|
case 4:
|
|
4230
4230
|
_d = [{}];
|
|
4231
|
-
return [4
|
|
4231
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4232
4232
|
case 5:
|
|
4233
4233
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4234
|
-
return [3
|
|
4234
|
+
return [3, 9];
|
|
4235
4235
|
case 6:
|
|
4236
4236
|
_e = [{}];
|
|
4237
|
-
return [4
|
|
4237
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4238
4238
|
case 7:
|
|
4239
4239
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4240
|
-
return [3
|
|
4240
|
+
return [3, 9];
|
|
4241
4241
|
case 8:
|
|
4242
4242
|
parsedBody = parsedOutput.body;
|
|
4243
4243
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4247,7 +4247,7 @@ var deserializeAws_restJson1UpdateProfileJobCommandError = function (output, con
|
|
|
4247
4247
|
message = response.message || response.Message || errorCode;
|
|
4248
4248
|
response.message = message;
|
|
4249
4249
|
delete response.Message;
|
|
4250
|
-
return [2
|
|
4250
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4251
4251
|
}
|
|
4252
4252
|
});
|
|
4253
4253
|
}); };
|
|
@@ -4257,7 +4257,7 @@ export var deserializeAws_restJson1UpdateProjectCommand = function (output, cont
|
|
|
4257
4257
|
switch (_c.label) {
|
|
4258
4258
|
case 0:
|
|
4259
4259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4260
|
-
return [2
|
|
4260
|
+
return [2, deserializeAws_restJson1UpdateProjectCommandError(output, context)];
|
|
4261
4261
|
}
|
|
4262
4262
|
contents = {
|
|
4263
4263
|
$metadata: deserializeMetadata(output),
|
|
@@ -4266,7 +4266,7 @@ export var deserializeAws_restJson1UpdateProjectCommand = function (output, cont
|
|
|
4266
4266
|
};
|
|
4267
4267
|
_a = __expectNonNull;
|
|
4268
4268
|
_b = __expectObject;
|
|
4269
|
-
return [4
|
|
4269
|
+
return [4, parseBody(output.body, context)];
|
|
4270
4270
|
case 1:
|
|
4271
4271
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4272
4272
|
if (data.LastModifiedDate !== undefined && data.LastModifiedDate !== null) {
|
|
@@ -4275,7 +4275,7 @@ export var deserializeAws_restJson1UpdateProjectCommand = function (output, cont
|
|
|
4275
4275
|
if (data.Name !== undefined && data.Name !== null) {
|
|
4276
4276
|
contents.Name = __expectString(data.Name);
|
|
4277
4277
|
}
|
|
4278
|
-
return [2
|
|
4278
|
+
return [2, Promise.resolve(contents)];
|
|
4279
4279
|
}
|
|
4280
4280
|
});
|
|
4281
4281
|
}); };
|
|
@@ -4287,31 +4287,31 @@ var deserializeAws_restJson1UpdateProjectCommandError = function (output, contex
|
|
|
4287
4287
|
case 0:
|
|
4288
4288
|
_a = [__assign({}, output)];
|
|
4289
4289
|
_e = {};
|
|
4290
|
-
return [4
|
|
4290
|
+
return [4, parseBody(output.body, context)];
|
|
4291
4291
|
case 1:
|
|
4292
4292
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
4293
4293
|
errorCode = "UnknownError";
|
|
4294
4294
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4295
4295
|
_b = errorCode;
|
|
4296
4296
|
switch (_b) {
|
|
4297
|
-
case "ResourceNotFoundException": return [3
|
|
4298
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
4299
|
-
case "ValidationException": return [3
|
|
4300
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
4297
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
4298
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
4299
|
+
case "ValidationException": return [3, 4];
|
|
4300
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
4301
4301
|
}
|
|
4302
|
-
return [3
|
|
4302
|
+
return [3, 6];
|
|
4303
4303
|
case 2:
|
|
4304
4304
|
_c = [{}];
|
|
4305
|
-
return [4
|
|
4305
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4306
4306
|
case 3:
|
|
4307
4307
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4308
|
-
return [3
|
|
4308
|
+
return [3, 7];
|
|
4309
4309
|
case 4:
|
|
4310
4310
|
_d = [{}];
|
|
4311
|
-
return [4
|
|
4311
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4312
4312
|
case 5:
|
|
4313
4313
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4314
|
-
return [3
|
|
4314
|
+
return [3, 7];
|
|
4315
4315
|
case 6:
|
|
4316
4316
|
parsedBody = parsedOutput.body;
|
|
4317
4317
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4321,7 +4321,7 @@ var deserializeAws_restJson1UpdateProjectCommandError = function (output, contex
|
|
|
4321
4321
|
message = response.message || response.Message || errorCode;
|
|
4322
4322
|
response.message = message;
|
|
4323
4323
|
delete response.Message;
|
|
4324
|
-
return [2
|
|
4324
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4325
4325
|
}
|
|
4326
4326
|
});
|
|
4327
4327
|
}); };
|
|
@@ -4331,7 +4331,7 @@ export var deserializeAws_restJson1UpdateRecipeCommand = function (output, conte
|
|
|
4331
4331
|
switch (_c.label) {
|
|
4332
4332
|
case 0:
|
|
4333
4333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4334
|
-
return [2
|
|
4334
|
+
return [2, deserializeAws_restJson1UpdateRecipeCommandError(output, context)];
|
|
4335
4335
|
}
|
|
4336
4336
|
contents = {
|
|
4337
4337
|
$metadata: deserializeMetadata(output),
|
|
@@ -4339,13 +4339,13 @@ export var deserializeAws_restJson1UpdateRecipeCommand = function (output, conte
|
|
|
4339
4339
|
};
|
|
4340
4340
|
_a = __expectNonNull;
|
|
4341
4341
|
_b = __expectObject;
|
|
4342
|
-
return [4
|
|
4342
|
+
return [4, parseBody(output.body, context)];
|
|
4343
4343
|
case 1:
|
|
4344
4344
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4345
4345
|
if (data.Name !== undefined && data.Name !== null) {
|
|
4346
4346
|
contents.Name = __expectString(data.Name);
|
|
4347
4347
|
}
|
|
4348
|
-
return [2
|
|
4348
|
+
return [2, Promise.resolve(contents)];
|
|
4349
4349
|
}
|
|
4350
4350
|
});
|
|
4351
4351
|
}); };
|
|
@@ -4357,31 +4357,31 @@ var deserializeAws_restJson1UpdateRecipeCommandError = function (output, context
|
|
|
4357
4357
|
case 0:
|
|
4358
4358
|
_a = [__assign({}, output)];
|
|
4359
4359
|
_e = {};
|
|
4360
|
-
return [4
|
|
4360
|
+
return [4, parseBody(output.body, context)];
|
|
4361
4361
|
case 1:
|
|
4362
4362
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
4363
4363
|
errorCode = "UnknownError";
|
|
4364
4364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4365
4365
|
_b = errorCode;
|
|
4366
4366
|
switch (_b) {
|
|
4367
|
-
case "ResourceNotFoundException": return [3
|
|
4368
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
4369
|
-
case "ValidationException": return [3
|
|
4370
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
4367
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
4368
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
4369
|
+
case "ValidationException": return [3, 4];
|
|
4370
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 4];
|
|
4371
4371
|
}
|
|
4372
|
-
return [3
|
|
4372
|
+
return [3, 6];
|
|
4373
4373
|
case 2:
|
|
4374
4374
|
_c = [{}];
|
|
4375
|
-
return [4
|
|
4375
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4376
4376
|
case 3:
|
|
4377
4377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4378
|
-
return [3
|
|
4378
|
+
return [3, 7];
|
|
4379
4379
|
case 4:
|
|
4380
4380
|
_d = [{}];
|
|
4381
|
-
return [4
|
|
4381
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4382
4382
|
case 5:
|
|
4383
4383
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4384
|
-
return [3
|
|
4384
|
+
return [3, 7];
|
|
4385
4385
|
case 6:
|
|
4386
4386
|
parsedBody = parsedOutput.body;
|
|
4387
4387
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4391,7 +4391,7 @@ var deserializeAws_restJson1UpdateRecipeCommandError = function (output, context
|
|
|
4391
4391
|
message = response.message || response.Message || errorCode;
|
|
4392
4392
|
response.message = message;
|
|
4393
4393
|
delete response.Message;
|
|
4394
|
-
return [2
|
|
4394
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4395
4395
|
}
|
|
4396
4396
|
});
|
|
4397
4397
|
}); };
|
|
@@ -4401,7 +4401,7 @@ export var deserializeAws_restJson1UpdateRecipeJobCommand = function (output, co
|
|
|
4401
4401
|
switch (_c.label) {
|
|
4402
4402
|
case 0:
|
|
4403
4403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4404
|
-
return [2
|
|
4404
|
+
return [2, deserializeAws_restJson1UpdateRecipeJobCommandError(output, context)];
|
|
4405
4405
|
}
|
|
4406
4406
|
contents = {
|
|
4407
4407
|
$metadata: deserializeMetadata(output),
|
|
@@ -4409,13 +4409,13 @@ export var deserializeAws_restJson1UpdateRecipeJobCommand = function (output, co
|
|
|
4409
4409
|
};
|
|
4410
4410
|
_a = __expectNonNull;
|
|
4411
4411
|
_b = __expectObject;
|
|
4412
|
-
return [4
|
|
4412
|
+
return [4, parseBody(output.body, context)];
|
|
4413
4413
|
case 1:
|
|
4414
4414
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4415
4415
|
if (data.Name !== undefined && data.Name !== null) {
|
|
4416
4416
|
contents.Name = __expectString(data.Name);
|
|
4417
4417
|
}
|
|
4418
|
-
return [2
|
|
4418
|
+
return [2, Promise.resolve(contents)];
|
|
4419
4419
|
}
|
|
4420
4420
|
});
|
|
4421
4421
|
}); };
|
|
@@ -4427,39 +4427,39 @@ var deserializeAws_restJson1UpdateRecipeJobCommandError = function (output, cont
|
|
|
4427
4427
|
case 0:
|
|
4428
4428
|
_a = [__assign({}, output)];
|
|
4429
4429
|
_f = {};
|
|
4430
|
-
return [4
|
|
4430
|
+
return [4, parseBody(output.body, context)];
|
|
4431
4431
|
case 1:
|
|
4432
4432
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4433
4433
|
errorCode = "UnknownError";
|
|
4434
4434
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4435
4435
|
_b = errorCode;
|
|
4436
4436
|
switch (_b) {
|
|
4437
|
-
case "AccessDeniedException": return [3
|
|
4438
|
-
case "com.amazonaws.databrew#AccessDeniedException": return [3
|
|
4439
|
-
case "ResourceNotFoundException": return [3
|
|
4440
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
4441
|
-
case "ValidationException": return [3
|
|
4442
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
4443
|
-
}
|
|
4444
|
-
return [3
|
|
4437
|
+
case "AccessDeniedException": return [3, 2];
|
|
4438
|
+
case "com.amazonaws.databrew#AccessDeniedException": return [3, 2];
|
|
4439
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
4440
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
|
|
4441
|
+
case "ValidationException": return [3, 6];
|
|
4442
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
4443
|
+
}
|
|
4444
|
+
return [3, 8];
|
|
4445
4445
|
case 2:
|
|
4446
4446
|
_c = [{}];
|
|
4447
|
-
return [4
|
|
4447
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4448
4448
|
case 3:
|
|
4449
4449
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4450
|
-
return [3
|
|
4450
|
+
return [3, 9];
|
|
4451
4451
|
case 4:
|
|
4452
4452
|
_d = [{}];
|
|
4453
|
-
return [4
|
|
4453
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4454
4454
|
case 5:
|
|
4455
4455
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4456
|
-
return [3
|
|
4456
|
+
return [3, 9];
|
|
4457
4457
|
case 6:
|
|
4458
4458
|
_e = [{}];
|
|
4459
|
-
return [4
|
|
4459
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4460
4460
|
case 7:
|
|
4461
4461
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4462
|
-
return [3
|
|
4462
|
+
return [3, 9];
|
|
4463
4463
|
case 8:
|
|
4464
4464
|
parsedBody = parsedOutput.body;
|
|
4465
4465
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4469,7 +4469,7 @@ var deserializeAws_restJson1UpdateRecipeJobCommandError = function (output, cont
|
|
|
4469
4469
|
message = response.message || response.Message || errorCode;
|
|
4470
4470
|
response.message = message;
|
|
4471
4471
|
delete response.Message;
|
|
4472
|
-
return [2
|
|
4472
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4473
4473
|
}
|
|
4474
4474
|
});
|
|
4475
4475
|
}); };
|
|
@@ -4479,7 +4479,7 @@ export var deserializeAws_restJson1UpdateScheduleCommand = function (output, con
|
|
|
4479
4479
|
switch (_c.label) {
|
|
4480
4480
|
case 0:
|
|
4481
4481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4482
|
-
return [2
|
|
4482
|
+
return [2, deserializeAws_restJson1UpdateScheduleCommandError(output, context)];
|
|
4483
4483
|
}
|
|
4484
4484
|
contents = {
|
|
4485
4485
|
$metadata: deserializeMetadata(output),
|
|
@@ -4487,13 +4487,13 @@ export var deserializeAws_restJson1UpdateScheduleCommand = function (output, con
|
|
|
4487
4487
|
};
|
|
4488
4488
|
_a = __expectNonNull;
|
|
4489
4489
|
_b = __expectObject;
|
|
4490
|
-
return [4
|
|
4490
|
+
return [4, parseBody(output.body, context)];
|
|
4491
4491
|
case 1:
|
|
4492
4492
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4493
4493
|
if (data.Name !== undefined && data.Name !== null) {
|
|
4494
4494
|
contents.Name = __expectString(data.Name);
|
|
4495
4495
|
}
|
|
4496
|
-
return [2
|
|
4496
|
+
return [2, Promise.resolve(contents)];
|
|
4497
4497
|
}
|
|
4498
4498
|
});
|
|
4499
4499
|
}); };
|
|
@@ -4505,39 +4505,39 @@ var deserializeAws_restJson1UpdateScheduleCommandError = function (output, conte
|
|
|
4505
4505
|
case 0:
|
|
4506
4506
|
_a = [__assign({}, output)];
|
|
4507
4507
|
_f = {};
|
|
4508
|
-
return [4
|
|
4508
|
+
return [4, parseBody(output.body, context)];
|
|
4509
4509
|
case 1:
|
|
4510
4510
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4511
4511
|
errorCode = "UnknownError";
|
|
4512
4512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4513
4513
|
_b = errorCode;
|
|
4514
4514
|
switch (_b) {
|
|
4515
|
-
case "ResourceNotFoundException": return [3
|
|
4516
|
-
case "com.amazonaws.databrew#ResourceNotFoundException": return [3
|
|
4517
|
-
case "ServiceQuotaExceededException": return [3
|
|
4518
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3
|
|
4519
|
-
case "ValidationException": return [3
|
|
4520
|
-
case "com.amazonaws.databrew#ValidationException": return [3
|
|
4521
|
-
}
|
|
4522
|
-
return [3
|
|
4515
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
4516
|
+
case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
|
|
4517
|
+
case "ServiceQuotaExceededException": return [3, 4];
|
|
4518
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 4];
|
|
4519
|
+
case "ValidationException": return [3, 6];
|
|
4520
|
+
case "com.amazonaws.databrew#ValidationException": return [3, 6];
|
|
4521
|
+
}
|
|
4522
|
+
return [3, 8];
|
|
4523
4523
|
case 2:
|
|
4524
4524
|
_c = [{}];
|
|
4525
|
-
return [4
|
|
4525
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4526
4526
|
case 3:
|
|
4527
4527
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4528
|
-
return [3
|
|
4528
|
+
return [3, 9];
|
|
4529
4529
|
case 4:
|
|
4530
4530
|
_d = [{}];
|
|
4531
|
-
return [4
|
|
4531
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
4532
4532
|
case 5:
|
|
4533
4533
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4534
|
-
return [3
|
|
4534
|
+
return [3, 9];
|
|
4535
4535
|
case 6:
|
|
4536
4536
|
_e = [{}];
|
|
4537
|
-
return [4
|
|
4537
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4538
4538
|
case 7:
|
|
4539
4539
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4540
|
-
return [3
|
|
4540
|
+
return [3, 9];
|
|
4541
4541
|
case 8:
|
|
4542
4542
|
parsedBody = parsedOutput.body;
|
|
4543
4543
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4547,7 +4547,7 @@ var deserializeAws_restJson1UpdateScheduleCommandError = function (output, conte
|
|
|
4547
4547
|
message = response.message || response.Message || errorCode;
|
|
4548
4548
|
response.message = message;
|
|
4549
4549
|
delete response.Message;
|
|
4550
|
-
return [2
|
|
4550
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4551
4551
|
}
|
|
4552
4552
|
});
|
|
4553
4553
|
}); };
|
|
@@ -4564,7 +4564,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
4564
4564
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4565
4565
|
contents.Message = __expectString(data.Message);
|
|
4566
4566
|
}
|
|
4567
|
-
return [2
|
|
4567
|
+
return [2, contents];
|
|
4568
4568
|
});
|
|
4569
4569
|
}); };
|
|
4570
4570
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4580,7 +4580,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
4580
4580
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4581
4581
|
contents.Message = __expectString(data.Message);
|
|
4582
4582
|
}
|
|
4583
|
-
return [2
|
|
4583
|
+
return [2, contents];
|
|
4584
4584
|
});
|
|
4585
4585
|
}); };
|
|
4586
4586
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4596,7 +4596,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
4596
4596
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4597
4597
|
contents.Message = __expectString(data.Message);
|
|
4598
4598
|
}
|
|
4599
|
-
return [2
|
|
4599
|
+
return [2, contents];
|
|
4600
4600
|
});
|
|
4601
4601
|
}); };
|
|
4602
4602
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4612,7 +4612,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
4612
4612
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4613
4613
|
contents.Message = __expectString(data.Message);
|
|
4614
4614
|
}
|
|
4615
|
-
return [2
|
|
4615
|
+
return [2, contents];
|
|
4616
4616
|
});
|
|
4617
4617
|
}); };
|
|
4618
4618
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4628,7 +4628,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
4628
4628
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4629
4629
|
contents.Message = __expectString(data.Message);
|
|
4630
4630
|
}
|
|
4631
|
-
return [2
|
|
4631
|
+
return [2, contents];
|
|
4632
4632
|
});
|
|
4633
4633
|
}); };
|
|
4634
4634
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4644,7 +4644,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
4644
4644
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4645
4645
|
contents.Message = __expectString(data.Message);
|
|
4646
4646
|
}
|
|
4647
|
-
return [2
|
|
4647
|
+
return [2, contents];
|
|
4648
4648
|
});
|
|
4649
4649
|
}); };
|
|
4650
4650
|
var serializeAws_restJson1ColumnNameList = function (input, context) {
|
|
@@ -5733,7 +5733,6 @@ var deserializeMetadata = function (output) {
|
|
|
5733
5733
|
cfId: output.headers["x-amz-cf-id"],
|
|
5734
5734
|
});
|
|
5735
5735
|
};
|
|
5736
|
-
// Collect low-level response body stream to Uint8Array.
|
|
5737
5736
|
var collectBody = function (streamBody, context) {
|
|
5738
5737
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
5739
5738
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -5741,7 +5740,6 @@ var collectBody = function (streamBody, context) {
|
|
|
5741
5740
|
}
|
|
5742
5741
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
5743
5742
|
};
|
|
5744
|
-
// Encode Uint8Array data into string with utf-8.
|
|
5745
5743
|
var collectBodyString = function (streamBody, context) {
|
|
5746
5744
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
5747
5745
|
};
|
|
@@ -5760,9 +5758,6 @@ var parseBody = function (streamBody, context) {
|
|
|
5760
5758
|
return {};
|
|
5761
5759
|
});
|
|
5762
5760
|
};
|
|
5763
|
-
/**
|
|
5764
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
5765
|
-
*/
|
|
5766
5761
|
var loadRestJsonErrorCode = function (output, data) {
|
|
5767
5762
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5768
5763
|
var sanitizeErrorCode = function (rawValue) {
|