@aws-sdk/client-dataexchange 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}/DataExchange.js +76 -1
- package/dist-cjs/DataExchange.js.map +1 -0
- package/{dist/cjs → dist-cjs}/DataExchangeClient.js +14 -14
- package/dist-cjs/DataExchangeClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CancelJobCommand.js +5 -5
- package/dist-cjs/commands/CancelJobCommand.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/commands/CreateEventActionCommand.js +61 -0
- package/dist-cjs/commands/CreateEventActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateJobCommand.js +5 -5
- package/dist-cjs/commands/CreateJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateRevisionCommand.js +5 -5
- package/dist-cjs/commands/CreateRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteAssetCommand.js +5 -5
- package/dist-cjs/commands/DeleteAssetCommand.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/commands/DeleteEventActionCommand.js +61 -0
- package/dist-cjs/commands/DeleteEventActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteRevisionCommand.js +5 -5
- package/dist-cjs/commands/DeleteRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAssetCommand.js +5 -5
- package/dist-cjs/commands/GetAssetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetDataSetCommand.js +5 -5
- package/dist-cjs/commands/GetDataSetCommand.js.map +1 -0
- package/dist-cjs/commands/GetEventActionCommand.js +61 -0
- package/dist-cjs/commands/GetEventActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetJobCommand.js +5 -5
- package/dist-cjs/commands/GetJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetRevisionCommand.js +5 -5
- package/dist-cjs/commands/GetRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDataSetRevisionsCommand.js +5 -5
- package/dist-cjs/commands/ListDataSetRevisionsCommand.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/commands/ListEventActionsCommand.js +61 -0
- package/dist-cjs/commands/ListEventActionsCommand.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/ListRevisionAssetsCommand.js +5 -5
- package/dist-cjs/commands/ListRevisionAssetsCommand.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/StartJobCommand.js +5 -5
- package/dist-cjs/commands/StartJobCommand.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/UpdateAssetCommand.js +5 -5
- package/dist-cjs/commands/UpdateAssetCommand.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/commands/UpdateEventActionCommand.js +61 -0
- package/dist-cjs/commands/UpdateEventActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateRevisionCommand.js +5 -5
- package/dist-cjs/commands/UpdateRevisionCommand.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 +40 -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 +156 -11
- 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/ListDataSetRevisionsPaginator.js +1 -1
- package/dist-cjs/pagination/ListDataSetRevisionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListDataSetsPaginator.js +1 -1
- package/dist-cjs/pagination/ListDataSetsPaginator.js.map +1 -0
- package/dist-cjs/pagination/ListEventActionsPaginator.js +46 -0
- package/dist-cjs/pagination/ListEventActionsPaginator.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/ListRevisionAssetsPaginator.js +1 -1
- package/dist-cjs/pagination/ListRevisionAssetsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +916 -243
- 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}/DataExchange.js +77 -5
- package/dist-es/DataExchange.js.map +1 -0
- package/{dist/es → dist-es}/DataExchangeClient.js +2 -10
- package/dist-es/DataExchangeClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/CancelJobCommand.js +4 -29
- package/dist-es/commands/CancelJobCommand.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/commands/CreateEventActionCommand.js +40 -0
- package/dist-es/commands/CreateEventActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateJobCommand.js +4 -29
- package/dist-es/commands/CreateJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateRevisionCommand.js +4 -29
- package/dist-es/commands/CreateRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteAssetCommand.js +4 -29
- package/dist-es/commands/DeleteAssetCommand.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/commands/DeleteEventActionCommand.js +40 -0
- package/dist-es/commands/DeleteEventActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteRevisionCommand.js +4 -29
- package/dist-es/commands/DeleteRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetAssetCommand.js +4 -29
- package/dist-es/commands/GetAssetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetDataSetCommand.js +4 -29
- package/dist-es/commands/GetDataSetCommand.js.map +1 -0
- package/dist-es/commands/GetEventActionCommand.js +40 -0
- package/dist-es/commands/GetEventActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetJobCommand.js +4 -29
- package/dist-es/commands/GetJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetRevisionCommand.js +4 -29
- package/dist-es/commands/GetRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDataSetRevisionsCommand.js +4 -29
- package/dist-es/commands/ListDataSetRevisionsCommand.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/commands/ListEventActionsCommand.js +40 -0
- package/dist-es/commands/ListEventActionsCommand.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/ListRevisionAssetsCommand.js +4 -29
- package/dist-es/commands/ListRevisionAssetsCommand.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/StartJobCommand.js +4 -29
- package/dist-es/commands/StartJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateAssetCommand.js +4 -29
- package/dist-es/commands/UpdateAssetCommand.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/commands/UpdateEventActionCommand.js +40 -0
- package/dist-es/commands/UpdateEventActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateRevisionCommand.js +4 -29
- package/dist-es/commands/UpdateRevisionCommand.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 +6 -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 +79 -222
- 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/ListDataSetRevisionsPaginator.js +17 -29
- package/dist-es/pagination/ListDataSetRevisionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListDataSetsPaginator.js +17 -29
- package/dist-es/pagination/ListDataSetsPaginator.js.map +1 -0
- package/dist-es/pagination/ListEventActionsPaginator.js +75 -0
- package/dist-es/pagination/ListEventActionsPaginator.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/ListRevisionAssetsPaginator.js +17 -29
- package/dist-es/pagination/ListRevisionAssetsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1315 -576
- 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}/DataExchange.d.ts +37 -2
- package/{dist/types → dist-types}/DataExchangeClient.d.ts +15 -10
- package/{dist/types → dist-types}/commands/CancelJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDataSetCommand.d.ts +2 -2
- package/dist-types/commands/CreateEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/CreateJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDataSetCommand.d.ts +2 -2
- package/dist-types/commands/DeleteEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/DeleteRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetDataSetCommand.d.ts +2 -2
- package/dist-types/commands/GetEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/GetJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDataSetRevisionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDataSetsCommand.d.ts +2 -2
- package/dist-types/commands/ListEventActionsCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/ListJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRevisionAssetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartJobCommand.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/UpdateAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateDataSetCommand.d.ts +2 -2
- package/dist-types/commands/UpdateEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/UpdateRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +6 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +324 -11
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDataSetRevisionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDataSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventActionsPaginator.d.ts +4 -0
- package/{dist/types → dist-types}/pagination/ListJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRevisionAssetsPaginator.d.ts +1 -1
- package/{dist/types/ts3.4 → dist-types}/protocols/Aws_restJson1.d.ts +83 -68
- 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/DataExchange.d.ts +37 -2
- package/{dist/types → dist-types}/ts3.4/DataExchangeClient.d.ts +15 -10
- package/{dist/types → dist-types}/ts3.4/commands/CancelJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDataSetCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/CreateEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDataSetCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/DeleteEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetDataSetCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/GetEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDataSetRevisionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDataSetsCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/ListEventActionsCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListRevisionAssetsCommand.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/StartJobCommand.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/UpdateAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateDataSetCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/UpdateEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/UpdateRevisionCommand.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 +6 -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 +324 -11
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDataSetRevisionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDataSetsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListEventActionsPaginator.d.ts +4 -0
- package/{dist/types → dist-types}/ts3.4/pagination/ListJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRevisionAssetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types/ts3.4}/protocols/Aws_restJson1.d.ts +83 -68
- 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/{DataExchange.ts → src/DataExchange.ts} +188 -2
- package/{DataExchangeClient.ts → src/DataExchangeClient.ts} +58 -42
- package/{commands → src/commands}/CancelJobCommand.ts +8 -7
- package/{commands → src/commands}/CreateDataSetCommand.ts +8 -7
- package/src/commands/CreateEventActionCommand.ts +95 -0
- package/{commands → src/commands}/CreateJobCommand.ts +8 -7
- package/{commands → src/commands}/CreateRevisionCommand.ts +8 -7
- package/{commands → src/commands}/DeleteAssetCommand.ts +8 -7
- package/{commands → src/commands}/DeleteDataSetCommand.ts +8 -7
- package/src/commands/DeleteEventActionCommand.ts +95 -0
- package/{commands → src/commands}/DeleteRevisionCommand.ts +8 -7
- package/{commands → src/commands}/GetAssetCommand.ts +8 -7
- package/{commands → src/commands}/GetDataSetCommand.ts +8 -7
- package/src/commands/GetEventActionCommand.ts +95 -0
- package/{commands → src/commands}/GetJobCommand.ts +5 -4
- package/{commands → src/commands}/GetRevisionCommand.ts +8 -7
- package/{commands → src/commands}/ListDataSetRevisionsCommand.ts +8 -7
- package/{commands → src/commands}/ListDataSetsCommand.ts +8 -7
- package/src/commands/ListEventActionsCommand.ts +95 -0
- package/{commands → src/commands}/ListJobsCommand.ts +8 -7
- package/{commands → src/commands}/ListRevisionAssetsCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/StartJobCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateAssetCommand.ts +8 -7
- package/{commands → src/commands}/UpdateDataSetCommand.ts +8 -7
- package/src/commands/UpdateEventActionCommand.ts +95 -0
- package/{commands → src/commands}/UpdateRevisionCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +6 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +413 -11
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListDataSetRevisionsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListDataSetsPaginator.ts +4 -3
- package/src/pagination/ListEventActionsPaginator.ts +59 -0
- package/{pagination → src/pagination}/ListJobsPaginator.ts +3 -2
- package/{pagination → src/pagination}/ListRevisionAssetsPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_restJson1.ts +844 -72
- 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/DataExchange.js.map +0 -1
- package/dist/cjs/DataExchangeClient.js.map +0 -1
- package/dist/cjs/commands/CancelJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAssetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/GetAssetCommand.js.map +0 -1
- package/dist/cjs/commands/GetDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/GetJobCommand.js.map +0 -1
- package/dist/cjs/commands/GetRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/ListDataSetRevisionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDataSetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListJobsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRevisionAssetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartJobCommand.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/UpdateAssetCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateRevisionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -34
- 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/ListDataSetRevisionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListDataSetsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListJobsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRevisionAssetsPaginator.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/DataExchange.js.map +0 -1
- package/dist/es/DataExchangeClient.js.map +0 -1
- package/dist/es/commands/CancelJobCommand.js.map +0 -1
- package/dist/es/commands/CreateDataSetCommand.js.map +0 -1
- package/dist/es/commands/CreateJobCommand.js.map +0 -1
- package/dist/es/commands/CreateRevisionCommand.js.map +0 -1
- package/dist/es/commands/DeleteAssetCommand.js.map +0 -1
- package/dist/es/commands/DeleteDataSetCommand.js.map +0 -1
- package/dist/es/commands/DeleteRevisionCommand.js.map +0 -1
- package/dist/es/commands/GetAssetCommand.js.map +0 -1
- package/dist/es/commands/GetDataSetCommand.js.map +0 -1
- package/dist/es/commands/GetJobCommand.js.map +0 -1
- package/dist/es/commands/GetRevisionCommand.js.map +0 -1
- package/dist/es/commands/ListDataSetRevisionsCommand.js.map +0 -1
- package/dist/es/commands/ListDataSetsCommand.js.map +0 -1
- package/dist/es/commands/ListJobsCommand.js.map +0 -1
- package/dist/es/commands/ListRevisionAssetsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StartJobCommand.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/UpdateAssetCommand.js.map +0 -1
- package/dist/es/commands/UpdateDataSetCommand.js.map +0 -1
- package/dist/es/commands/UpdateRevisionCommand.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/ListDataSetRevisionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListDataSetsPaginator.js.map +0 -1
- package/dist/es/pagination/ListJobsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRevisionAssetsPaginator.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_restJson1CancelJobCommand = function (input, context) {
|
|
|
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 = {};
|
|
@@ -20,7 +20,7 @@ export var serializeAws_restJson1CancelJobCommand = function (input, context) {
|
|
|
20
20
|
else {
|
|
21
21
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
22
22
|
}
|
|
23
|
-
return [2
|
|
23
|
+
return [2, new __HttpRequest({
|
|
24
24
|
protocol: protocol,
|
|
25
25
|
hostname: hostname,
|
|
26
26
|
port: port,
|
|
@@ -36,7 +36,7 @@ export var serializeAws_restJson1CreateDataSetCommand = function (input, context
|
|
|
36
36
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
37
37
|
return __generator(this, function (_c) {
|
|
38
38
|
switch (_c.label) {
|
|
39
|
-
case 0: return [4
|
|
39
|
+
case 0: return [4, context.endpoint()];
|
|
40
40
|
case 1:
|
|
41
41
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
42
42
|
headers = {
|
|
@@ -45,7 +45,33 @@ export var serializeAws_restJson1CreateDataSetCommand = function (input, context
|
|
|
45
45
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets";
|
|
46
46
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AssetType !== undefined && input.AssetType !== null && { AssetType: input.AssetType })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
47
47
|
input.Tags !== null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
48
|
-
return [2
|
|
48
|
+
return [2, new __HttpRequest({
|
|
49
|
+
protocol: protocol,
|
|
50
|
+
hostname: hostname,
|
|
51
|
+
port: port,
|
|
52
|
+
method: "POST",
|
|
53
|
+
headers: headers,
|
|
54
|
+
path: resolvedPath,
|
|
55
|
+
body: body,
|
|
56
|
+
})];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}); };
|
|
60
|
+
export var serializeAws_restJson1CreateEventActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
61
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
62
|
+
return __generator(this, function (_c) {
|
|
63
|
+
switch (_c.label) {
|
|
64
|
+
case 0: return [4, context.endpoint()];
|
|
65
|
+
case 1:
|
|
66
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
67
|
+
headers = {
|
|
68
|
+
"content-type": "application/json",
|
|
69
|
+
};
|
|
70
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions";
|
|
71
|
+
body = JSON.stringify(__assign(__assign({}, (input.Action !== undefined &&
|
|
72
|
+
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) })), (input.Event !== undefined &&
|
|
73
|
+
input.Event !== null && { Event: serializeAws_restJson1Event(input.Event, context) })));
|
|
74
|
+
return [2, new __HttpRequest({
|
|
49
75
|
protocol: protocol,
|
|
50
76
|
hostname: hostname,
|
|
51
77
|
port: port,
|
|
@@ -61,7 +87,7 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
|
|
|
61
87
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
62
88
|
return __generator(this, function (_c) {
|
|
63
89
|
switch (_c.label) {
|
|
64
|
-
case 0: return [4
|
|
90
|
+
case 0: return [4, context.endpoint()];
|
|
65
91
|
case 1:
|
|
66
92
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
67
93
|
headers = {
|
|
@@ -70,7 +96,7 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
|
|
|
70
96
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/jobs";
|
|
71
97
|
body = JSON.stringify(__assign(__assign({}, (input.Details !== undefined &&
|
|
72
98
|
input.Details !== null && { Details: serializeAws_restJson1RequestDetails(input.Details, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
73
|
-
return [2
|
|
99
|
+
return [2, new __HttpRequest({
|
|
74
100
|
protocol: protocol,
|
|
75
101
|
hostname: hostname,
|
|
76
102
|
port: port,
|
|
@@ -86,7 +112,7 @@ export var serializeAws_restJson1CreateRevisionCommand = function (input, contex
|
|
|
86
112
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
87
113
|
return __generator(this, function (_c) {
|
|
88
114
|
switch (_c.label) {
|
|
89
|
-
case 0: return [4
|
|
115
|
+
case 0: return [4, context.endpoint()];
|
|
90
116
|
case 1:
|
|
91
117
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
92
118
|
headers = {
|
|
@@ -105,7 +131,7 @@ export var serializeAws_restJson1CreateRevisionCommand = function (input, contex
|
|
|
105
131
|
}
|
|
106
132
|
body = JSON.stringify(__assign(__assign({}, (input.Comment !== undefined && input.Comment !== null && { Comment: input.Comment })), (input.Tags !== undefined &&
|
|
107
133
|
input.Tags !== null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
108
|
-
return [2
|
|
134
|
+
return [2, new __HttpRequest({
|
|
109
135
|
protocol: protocol,
|
|
110
136
|
hostname: hostname,
|
|
111
137
|
port: port,
|
|
@@ -121,7 +147,7 @@ export var serializeAws_restJson1DeleteAssetCommand = function (input, context)
|
|
|
121
147
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
122
148
|
return __generator(this, function (_c) {
|
|
123
149
|
switch (_c.label) {
|
|
124
|
-
case 0: return [4
|
|
150
|
+
case 0: return [4, context.endpoint()];
|
|
125
151
|
case 1:
|
|
126
152
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
127
153
|
headers = {};
|
|
@@ -157,7 +183,7 @@ export var serializeAws_restJson1DeleteAssetCommand = function (input, context)
|
|
|
157
183
|
else {
|
|
158
184
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
159
185
|
}
|
|
160
|
-
return [2
|
|
186
|
+
return [2, new __HttpRequest({
|
|
161
187
|
protocol: protocol,
|
|
162
188
|
hostname: hostname,
|
|
163
189
|
port: port,
|
|
@@ -173,7 +199,7 @@ export var serializeAws_restJson1DeleteDataSetCommand = function (input, context
|
|
|
173
199
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
174
200
|
return __generator(this, function (_c) {
|
|
175
201
|
switch (_c.label) {
|
|
176
|
-
case 0: return [4
|
|
202
|
+
case 0: return [4, context.endpoint()];
|
|
177
203
|
case 1:
|
|
178
204
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
179
205
|
headers = {};
|
|
@@ -188,7 +214,38 @@ export var serializeAws_restJson1DeleteDataSetCommand = function (input, context
|
|
|
188
214
|
else {
|
|
189
215
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
190
216
|
}
|
|
191
|
-
return [2
|
|
217
|
+
return [2, new __HttpRequest({
|
|
218
|
+
protocol: protocol,
|
|
219
|
+
hostname: hostname,
|
|
220
|
+
port: port,
|
|
221
|
+
method: "DELETE",
|
|
222
|
+
headers: headers,
|
|
223
|
+
path: resolvedPath,
|
|
224
|
+
body: body,
|
|
225
|
+
})];
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
}); };
|
|
229
|
+
export var serializeAws_restJson1DeleteEventActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
230
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
231
|
+
return __generator(this, function (_c) {
|
|
232
|
+
switch (_c.label) {
|
|
233
|
+
case 0: return [4, context.endpoint()];
|
|
234
|
+
case 1:
|
|
235
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
236
|
+
headers = {};
|
|
237
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions/{EventActionId}";
|
|
238
|
+
if (input.EventActionId !== undefined) {
|
|
239
|
+
labelValue = input.EventActionId;
|
|
240
|
+
if (labelValue.length <= 0) {
|
|
241
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
242
|
+
}
|
|
243
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", __extendedEncodeURIComponent(labelValue));
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
247
|
+
}
|
|
248
|
+
return [2, new __HttpRequest({
|
|
192
249
|
protocol: protocol,
|
|
193
250
|
hostname: hostname,
|
|
194
251
|
port: port,
|
|
@@ -204,7 +261,7 @@ export var serializeAws_restJson1DeleteRevisionCommand = function (input, contex
|
|
|
204
261
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
205
262
|
return __generator(this, function (_c) {
|
|
206
263
|
switch (_c.label) {
|
|
207
|
-
case 0: return [4
|
|
264
|
+
case 0: return [4, context.endpoint()];
|
|
208
265
|
case 1:
|
|
209
266
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
210
267
|
headers = {};
|
|
@@ -230,7 +287,7 @@ export var serializeAws_restJson1DeleteRevisionCommand = function (input, contex
|
|
|
230
287
|
else {
|
|
231
288
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
232
289
|
}
|
|
233
|
-
return [2
|
|
290
|
+
return [2, new __HttpRequest({
|
|
234
291
|
protocol: protocol,
|
|
235
292
|
hostname: hostname,
|
|
236
293
|
port: port,
|
|
@@ -246,7 +303,7 @@ export var serializeAws_restJson1GetAssetCommand = function (input, context) { r
|
|
|
246
303
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
247
304
|
return __generator(this, function (_c) {
|
|
248
305
|
switch (_c.label) {
|
|
249
|
-
case 0: return [4
|
|
306
|
+
case 0: return [4, context.endpoint()];
|
|
250
307
|
case 1:
|
|
251
308
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
252
309
|
headers = {};
|
|
@@ -282,7 +339,7 @@ export var serializeAws_restJson1GetAssetCommand = function (input, context) { r
|
|
|
282
339
|
else {
|
|
283
340
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
284
341
|
}
|
|
285
|
-
return [2
|
|
342
|
+
return [2, new __HttpRequest({
|
|
286
343
|
protocol: protocol,
|
|
287
344
|
hostname: hostname,
|
|
288
345
|
port: port,
|
|
@@ -298,7 +355,7 @@ export var serializeAws_restJson1GetDataSetCommand = function (input, context) {
|
|
|
298
355
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
299
356
|
return __generator(this, function (_c) {
|
|
300
357
|
switch (_c.label) {
|
|
301
|
-
case 0: return [4
|
|
358
|
+
case 0: return [4, context.endpoint()];
|
|
302
359
|
case 1:
|
|
303
360
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
304
361
|
headers = {};
|
|
@@ -313,7 +370,38 @@ export var serializeAws_restJson1GetDataSetCommand = function (input, context) {
|
|
|
313
370
|
else {
|
|
314
371
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
315
372
|
}
|
|
316
|
-
return [2
|
|
373
|
+
return [2, new __HttpRequest({
|
|
374
|
+
protocol: protocol,
|
|
375
|
+
hostname: hostname,
|
|
376
|
+
port: port,
|
|
377
|
+
method: "GET",
|
|
378
|
+
headers: headers,
|
|
379
|
+
path: resolvedPath,
|
|
380
|
+
body: body,
|
|
381
|
+
})];
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
}); };
|
|
385
|
+
export var serializeAws_restJson1GetEventActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
386
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
387
|
+
return __generator(this, function (_c) {
|
|
388
|
+
switch (_c.label) {
|
|
389
|
+
case 0: return [4, context.endpoint()];
|
|
390
|
+
case 1:
|
|
391
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
392
|
+
headers = {};
|
|
393
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions/{EventActionId}";
|
|
394
|
+
if (input.EventActionId !== undefined) {
|
|
395
|
+
labelValue = input.EventActionId;
|
|
396
|
+
if (labelValue.length <= 0) {
|
|
397
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
398
|
+
}
|
|
399
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", __extendedEncodeURIComponent(labelValue));
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
403
|
+
}
|
|
404
|
+
return [2, new __HttpRequest({
|
|
317
405
|
protocol: protocol,
|
|
318
406
|
hostname: hostname,
|
|
319
407
|
port: port,
|
|
@@ -329,7 +417,7 @@ export var serializeAws_restJson1GetJobCommand = function (input, context) { ret
|
|
|
329
417
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
330
418
|
return __generator(this, function (_c) {
|
|
331
419
|
switch (_c.label) {
|
|
332
|
-
case 0: return [4
|
|
420
|
+
case 0: return [4, context.endpoint()];
|
|
333
421
|
case 1:
|
|
334
422
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
335
423
|
headers = {};
|
|
@@ -344,7 +432,7 @@ export var serializeAws_restJson1GetJobCommand = function (input, context) { ret
|
|
|
344
432
|
else {
|
|
345
433
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
346
434
|
}
|
|
347
|
-
return [2
|
|
435
|
+
return [2, new __HttpRequest({
|
|
348
436
|
protocol: protocol,
|
|
349
437
|
hostname: hostname,
|
|
350
438
|
port: port,
|
|
@@ -360,7 +448,7 @@ export var serializeAws_restJson1GetRevisionCommand = function (input, context)
|
|
|
360
448
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
361
449
|
return __generator(this, function (_c) {
|
|
362
450
|
switch (_c.label) {
|
|
363
|
-
case 0: return [4
|
|
451
|
+
case 0: return [4, context.endpoint()];
|
|
364
452
|
case 1:
|
|
365
453
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
366
454
|
headers = {};
|
|
@@ -386,7 +474,7 @@ export var serializeAws_restJson1GetRevisionCommand = function (input, context)
|
|
|
386
474
|
else {
|
|
387
475
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
388
476
|
}
|
|
389
|
-
return [2
|
|
477
|
+
return [2, new __HttpRequest({
|
|
390
478
|
protocol: protocol,
|
|
391
479
|
hostname: hostname,
|
|
392
480
|
port: port,
|
|
@@ -402,7 +490,7 @@ export var serializeAws_restJson1ListDataSetRevisionsCommand = function (input,
|
|
|
402
490
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
403
491
|
return __generator(this, function (_c) {
|
|
404
492
|
switch (_c.label) {
|
|
405
|
-
case 0: return [4
|
|
493
|
+
case 0: return [4, context.endpoint()];
|
|
406
494
|
case 1:
|
|
407
495
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
408
496
|
headers = {};
|
|
@@ -418,7 +506,7 @@ export var serializeAws_restJson1ListDataSetRevisionsCommand = function (input,
|
|
|
418
506
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
419
507
|
}
|
|
420
508
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
421
|
-
return [2
|
|
509
|
+
return [2, new __HttpRequest({
|
|
422
510
|
protocol: protocol,
|
|
423
511
|
hostname: hostname,
|
|
424
512
|
port: port,
|
|
@@ -435,13 +523,36 @@ export var serializeAws_restJson1ListDataSetsCommand = function (input, context)
|
|
|
435
523
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
436
524
|
return __generator(this, function (_c) {
|
|
437
525
|
switch (_c.label) {
|
|
438
|
-
case 0: return [4
|
|
526
|
+
case 0: return [4, context.endpoint()];
|
|
439
527
|
case 1:
|
|
440
528
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
441
529
|
headers = {};
|
|
442
530
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets";
|
|
443
531
|
query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.Origin !== undefined && { origin: input.Origin }));
|
|
444
|
-
return [2
|
|
532
|
+
return [2, new __HttpRequest({
|
|
533
|
+
protocol: protocol,
|
|
534
|
+
hostname: hostname,
|
|
535
|
+
port: port,
|
|
536
|
+
method: "GET",
|
|
537
|
+
headers: headers,
|
|
538
|
+
path: resolvedPath,
|
|
539
|
+
query: query,
|
|
540
|
+
body: body,
|
|
541
|
+
})];
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}); };
|
|
545
|
+
export var serializeAws_restJson1ListEventActionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
546
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
547
|
+
return __generator(this, function (_c) {
|
|
548
|
+
switch (_c.label) {
|
|
549
|
+
case 0: return [4, context.endpoint()];
|
|
550
|
+
case 1:
|
|
551
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
552
|
+
headers = {};
|
|
553
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions";
|
|
554
|
+
query = __assign(__assign(__assign({}, (input.EventSourceId !== undefined && { eventSourceId: input.EventSourceId })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
555
|
+
return [2, new __HttpRequest({
|
|
445
556
|
protocol: protocol,
|
|
446
557
|
hostname: hostname,
|
|
447
558
|
port: port,
|
|
@@ -458,13 +569,13 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
458
569
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
459
570
|
return __generator(this, function (_c) {
|
|
460
571
|
switch (_c.label) {
|
|
461
|
-
case 0: return [4
|
|
572
|
+
case 0: return [4, context.endpoint()];
|
|
462
573
|
case 1:
|
|
463
574
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
464
575
|
headers = {};
|
|
465
576
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/jobs";
|
|
466
577
|
query = __assign(__assign(__assign(__assign({}, (input.DataSetId !== undefined && { dataSetId: input.DataSetId })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.RevisionId !== undefined && { revisionId: input.RevisionId }));
|
|
467
|
-
return [2
|
|
578
|
+
return [2, new __HttpRequest({
|
|
468
579
|
protocol: protocol,
|
|
469
580
|
hostname: hostname,
|
|
470
581
|
port: port,
|
|
@@ -481,7 +592,7 @@ export var serializeAws_restJson1ListRevisionAssetsCommand = function (input, co
|
|
|
481
592
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
482
593
|
return __generator(this, function (_c) {
|
|
483
594
|
switch (_c.label) {
|
|
484
|
-
case 0: return [4
|
|
595
|
+
case 0: return [4, context.endpoint()];
|
|
485
596
|
case 1:
|
|
486
597
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
487
598
|
headers = {};
|
|
@@ -508,7 +619,7 @@ export var serializeAws_restJson1ListRevisionAssetsCommand = function (input, co
|
|
|
508
619
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
509
620
|
}
|
|
510
621
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
511
|
-
return [2
|
|
622
|
+
return [2, new __HttpRequest({
|
|
512
623
|
protocol: protocol,
|
|
513
624
|
hostname: hostname,
|
|
514
625
|
port: port,
|
|
@@ -525,7 +636,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
525
636
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
526
637
|
return __generator(this, function (_c) {
|
|
527
638
|
switch (_c.label) {
|
|
528
|
-
case 0: return [4
|
|
639
|
+
case 0: return [4, context.endpoint()];
|
|
529
640
|
case 1:
|
|
530
641
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
531
642
|
headers = {};
|
|
@@ -540,7 +651,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
540
651
|
else {
|
|
541
652
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
542
653
|
}
|
|
543
|
-
return [2
|
|
654
|
+
return [2, new __HttpRequest({
|
|
544
655
|
protocol: protocol,
|
|
545
656
|
hostname: hostname,
|
|
546
657
|
port: port,
|
|
@@ -556,7 +667,7 @@ export var serializeAws_restJson1StartJobCommand = function (input, context) { r
|
|
|
556
667
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
557
668
|
return __generator(this, function (_c) {
|
|
558
669
|
switch (_c.label) {
|
|
559
|
-
case 0: return [4
|
|
670
|
+
case 0: return [4, context.endpoint()];
|
|
560
671
|
case 1:
|
|
561
672
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
562
673
|
headers = {};
|
|
@@ -571,7 +682,7 @@ export var serializeAws_restJson1StartJobCommand = function (input, context) { r
|
|
|
571
682
|
else {
|
|
572
683
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
573
684
|
}
|
|
574
|
-
return [2
|
|
685
|
+
return [2, new __HttpRequest({
|
|
575
686
|
protocol: protocol,
|
|
576
687
|
hostname: hostname,
|
|
577
688
|
port: port,
|
|
@@ -587,7 +698,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
587
698
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
588
699
|
return __generator(this, function (_c) {
|
|
589
700
|
switch (_c.label) {
|
|
590
|
-
case 0: return [4
|
|
701
|
+
case 0: return [4, context.endpoint()];
|
|
591
702
|
case 1:
|
|
592
703
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
593
704
|
headers = {
|
|
@@ -606,7 +717,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
606
717
|
}
|
|
607
718
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
|
|
608
719
|
input.Tags !== null && { tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
609
|
-
return [2
|
|
720
|
+
return [2, new __HttpRequest({
|
|
610
721
|
protocol: protocol,
|
|
611
722
|
hostname: hostname,
|
|
612
723
|
port: port,
|
|
@@ -622,7 +733,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
622
733
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
623
734
|
return __generator(this, function (_c) {
|
|
624
735
|
switch (_c.label) {
|
|
625
|
-
case 0: return [4
|
|
736
|
+
case 0: return [4, context.endpoint()];
|
|
626
737
|
case 1:
|
|
627
738
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
628
739
|
headers = {};
|
|
@@ -638,7 +749,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
638
749
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
639
750
|
}
|
|
640
751
|
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
641
|
-
return [2
|
|
752
|
+
return [2, new __HttpRequest({
|
|
642
753
|
protocol: protocol,
|
|
643
754
|
hostname: hostname,
|
|
644
755
|
port: port,
|
|
@@ -655,7 +766,7 @@ export var serializeAws_restJson1UpdateAssetCommand = function (input, context)
|
|
|
655
766
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
656
767
|
return __generator(this, function (_c) {
|
|
657
768
|
switch (_c.label) {
|
|
658
|
-
case 0: return [4
|
|
769
|
+
case 0: return [4, context.endpoint()];
|
|
659
770
|
case 1:
|
|
660
771
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
661
772
|
headers = {
|
|
@@ -694,7 +805,7 @@ export var serializeAws_restJson1UpdateAssetCommand = function (input, context)
|
|
|
694
805
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
695
806
|
}
|
|
696
807
|
body = JSON.stringify(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
697
|
-
return [2
|
|
808
|
+
return [2, new __HttpRequest({
|
|
698
809
|
protocol: protocol,
|
|
699
810
|
hostname: hostname,
|
|
700
811
|
port: port,
|
|
@@ -710,7 +821,7 @@ export var serializeAws_restJson1UpdateDataSetCommand = function (input, context
|
|
|
710
821
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
711
822
|
return __generator(this, function (_c) {
|
|
712
823
|
switch (_c.label) {
|
|
713
|
-
case 0: return [4
|
|
824
|
+
case 0: return [4, context.endpoint()];
|
|
714
825
|
case 1:
|
|
715
826
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
716
827
|
headers = {
|
|
@@ -728,7 +839,42 @@ export var serializeAws_restJson1UpdateDataSetCommand = function (input, context
|
|
|
728
839
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
729
840
|
}
|
|
730
841
|
body = JSON.stringify(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
731
|
-
return [2
|
|
842
|
+
return [2, new __HttpRequest({
|
|
843
|
+
protocol: protocol,
|
|
844
|
+
hostname: hostname,
|
|
845
|
+
port: port,
|
|
846
|
+
method: "PATCH",
|
|
847
|
+
headers: headers,
|
|
848
|
+
path: resolvedPath,
|
|
849
|
+
body: body,
|
|
850
|
+
})];
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
}); };
|
|
854
|
+
export var serializeAws_restJson1UpdateEventActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
855
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
856
|
+
return __generator(this, function (_c) {
|
|
857
|
+
switch (_c.label) {
|
|
858
|
+
case 0: return [4, context.endpoint()];
|
|
859
|
+
case 1:
|
|
860
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
861
|
+
headers = {
|
|
862
|
+
"content-type": "application/json",
|
|
863
|
+
};
|
|
864
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions/{EventActionId}";
|
|
865
|
+
if (input.EventActionId !== undefined) {
|
|
866
|
+
labelValue = input.EventActionId;
|
|
867
|
+
if (labelValue.length <= 0) {
|
|
868
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
869
|
+
}
|
|
870
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", __extendedEncodeURIComponent(labelValue));
|
|
871
|
+
}
|
|
872
|
+
else {
|
|
873
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
874
|
+
}
|
|
875
|
+
body = JSON.stringify(__assign({}, (input.Action !== undefined &&
|
|
876
|
+
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) })));
|
|
877
|
+
return [2, new __HttpRequest({
|
|
732
878
|
protocol: protocol,
|
|
733
879
|
hostname: hostname,
|
|
734
880
|
port: port,
|
|
@@ -744,7 +890,7 @@ export var serializeAws_restJson1UpdateRevisionCommand = function (input, contex
|
|
|
744
890
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
745
891
|
return __generator(this, function (_c) {
|
|
746
892
|
switch (_c.label) {
|
|
747
|
-
case 0: return [4
|
|
893
|
+
case 0: return [4, context.endpoint()];
|
|
748
894
|
case 1:
|
|
749
895
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
750
896
|
headers = {
|
|
@@ -773,7 +919,7 @@ export var serializeAws_restJson1UpdateRevisionCommand = function (input, contex
|
|
|
773
919
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
774
920
|
}
|
|
775
921
|
body = JSON.stringify(__assign(__assign({}, (input.Comment !== undefined && input.Comment !== null && { Comment: input.Comment })), (input.Finalized !== undefined && input.Finalized !== null && { Finalized: input.Finalized })));
|
|
776
|
-
return [2
|
|
922
|
+
return [2, new __HttpRequest({
|
|
777
923
|
protocol: protocol,
|
|
778
924
|
hostname: hostname,
|
|
779
925
|
port: port,
|
|
@@ -791,15 +937,15 @@ export var deserializeAws_restJson1CancelJobCommand = function (output, context)
|
|
|
791
937
|
switch (_a.label) {
|
|
792
938
|
case 0:
|
|
793
939
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
794
|
-
return [2
|
|
940
|
+
return [2, deserializeAws_restJson1CancelJobCommandError(output, context)];
|
|
795
941
|
}
|
|
796
942
|
contents = {
|
|
797
943
|
$metadata: deserializeMetadata(output),
|
|
798
944
|
};
|
|
799
|
-
return [4
|
|
945
|
+
return [4, collectBody(output.body, context)];
|
|
800
946
|
case 1:
|
|
801
947
|
_a.sent();
|
|
802
|
-
return [2
|
|
948
|
+
return [2, Promise.resolve(contents)];
|
|
803
949
|
}
|
|
804
950
|
});
|
|
805
951
|
}); };
|
|
@@ -811,55 +957,55 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
811
957
|
case 0:
|
|
812
958
|
_a = [__assign({}, output)];
|
|
813
959
|
_h = {};
|
|
814
|
-
return [4
|
|
960
|
+
return [4, parseBody(output.body, context)];
|
|
815
961
|
case 1:
|
|
816
962
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
817
963
|
errorCode = "UnknownError";
|
|
818
964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
965
|
_b = errorCode;
|
|
820
966
|
switch (_b) {
|
|
821
|
-
case "ConflictException": return [3
|
|
822
|
-
case "com.amazonaws.dataexchange#ConflictException": return [3
|
|
823
|
-
case "InternalServerException": return [3
|
|
824
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
825
|
-
case "ResourceNotFoundException": return [3
|
|
826
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
827
|
-
case "ThrottlingException": return [3
|
|
828
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
829
|
-
case "ValidationException": return [3
|
|
830
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
831
|
-
}
|
|
832
|
-
return [3
|
|
967
|
+
case "ConflictException": return [3, 2];
|
|
968
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 2];
|
|
969
|
+
case "InternalServerException": return [3, 4];
|
|
970
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 4];
|
|
971
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
972
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 6];
|
|
973
|
+
case "ThrottlingException": return [3, 8];
|
|
974
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 8];
|
|
975
|
+
case "ValidationException": return [3, 10];
|
|
976
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 10];
|
|
977
|
+
}
|
|
978
|
+
return [3, 12];
|
|
833
979
|
case 2:
|
|
834
980
|
_c = [{}];
|
|
835
|
-
return [4
|
|
981
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
836
982
|
case 3:
|
|
837
983
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
838
|
-
return [3
|
|
984
|
+
return [3, 13];
|
|
839
985
|
case 4:
|
|
840
986
|
_d = [{}];
|
|
841
|
-
return [4
|
|
987
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
842
988
|
case 5:
|
|
843
989
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
844
|
-
return [3
|
|
990
|
+
return [3, 13];
|
|
845
991
|
case 6:
|
|
846
992
|
_e = [{}];
|
|
847
|
-
return [4
|
|
993
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
848
994
|
case 7:
|
|
849
995
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
850
|
-
return [3
|
|
996
|
+
return [3, 13];
|
|
851
997
|
case 8:
|
|
852
998
|
_f = [{}];
|
|
853
|
-
return [4
|
|
999
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
854
1000
|
case 9:
|
|
855
1001
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
856
|
-
return [3
|
|
1002
|
+
return [3, 13];
|
|
857
1003
|
case 10:
|
|
858
1004
|
_g = [{}];
|
|
859
|
-
return [4
|
|
1005
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
860
1006
|
case 11:
|
|
861
1007
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
862
|
-
return [3
|
|
1008
|
+
return [3, 13];
|
|
863
1009
|
case 12:
|
|
864
1010
|
parsedBody = parsedOutput.body;
|
|
865
1011
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -869,7 +1015,7 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
869
1015
|
message = response.message || response.Message || errorCode;
|
|
870
1016
|
response.message = message;
|
|
871
1017
|
delete response.Message;
|
|
872
|
-
return [2
|
|
1018
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
873
1019
|
}
|
|
874
1020
|
});
|
|
875
1021
|
}); };
|
|
@@ -879,7 +1025,7 @@ export var deserializeAws_restJson1CreateDataSetCommand = function (output, cont
|
|
|
879
1025
|
switch (_c.label) {
|
|
880
1026
|
case 0:
|
|
881
1027
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
882
|
-
return [2
|
|
1028
|
+
return [2, deserializeAws_restJson1CreateDataSetCommandError(output, context)];
|
|
883
1029
|
}
|
|
884
1030
|
contents = {
|
|
885
1031
|
$metadata: deserializeMetadata(output),
|
|
@@ -897,7 +1043,7 @@ export var deserializeAws_restJson1CreateDataSetCommand = function (output, cont
|
|
|
897
1043
|
};
|
|
898
1044
|
_a = __expectNonNull;
|
|
899
1045
|
_b = __expectObject;
|
|
900
|
-
return [4
|
|
1046
|
+
return [4, parseBody(output.body, context)];
|
|
901
1047
|
case 1:
|
|
902
1048
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
903
1049
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -933,7 +1079,7 @@ export var deserializeAws_restJson1CreateDataSetCommand = function (output, cont
|
|
|
933
1079
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
934
1080
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
935
1081
|
}
|
|
936
|
-
return [2
|
|
1082
|
+
return [2, Promise.resolve(contents)];
|
|
937
1083
|
}
|
|
938
1084
|
});
|
|
939
1085
|
}); };
|
|
@@ -945,55 +1091,169 @@ var deserializeAws_restJson1CreateDataSetCommandError = function (output, contex
|
|
|
945
1091
|
case 0:
|
|
946
1092
|
_a = [__assign({}, output)];
|
|
947
1093
|
_h = {};
|
|
948
|
-
return [4
|
|
1094
|
+
return [4, parseBody(output.body, context)];
|
|
1095
|
+
case 1:
|
|
1096
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1097
|
+
errorCode = "UnknownError";
|
|
1098
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
|
+
_b = errorCode;
|
|
1100
|
+
switch (_b) {
|
|
1101
|
+
case "AccessDeniedException": return [3, 2];
|
|
1102
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
1103
|
+
case "InternalServerException": return [3, 4];
|
|
1104
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 4];
|
|
1105
|
+
case "ServiceLimitExceededException": return [3, 6];
|
|
1106
|
+
case "com.amazonaws.dataexchange#ServiceLimitExceededException": return [3, 6];
|
|
1107
|
+
case "ThrottlingException": return [3, 8];
|
|
1108
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 8];
|
|
1109
|
+
case "ValidationException": return [3, 10];
|
|
1110
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 10];
|
|
1111
|
+
}
|
|
1112
|
+
return [3, 12];
|
|
1113
|
+
case 2:
|
|
1114
|
+
_c = [{}];
|
|
1115
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1116
|
+
case 3:
|
|
1117
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1118
|
+
return [3, 13];
|
|
1119
|
+
case 4:
|
|
1120
|
+
_d = [{}];
|
|
1121
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1122
|
+
case 5:
|
|
1123
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1124
|
+
return [3, 13];
|
|
1125
|
+
case 6:
|
|
1126
|
+
_e = [{}];
|
|
1127
|
+
return [4, deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1128
|
+
case 7:
|
|
1129
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1130
|
+
return [3, 13];
|
|
1131
|
+
case 8:
|
|
1132
|
+
_f = [{}];
|
|
1133
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1134
|
+
case 9:
|
|
1135
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1136
|
+
return [3, 13];
|
|
1137
|
+
case 10:
|
|
1138
|
+
_g = [{}];
|
|
1139
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1140
|
+
case 11:
|
|
1141
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1142
|
+
return [3, 13];
|
|
1143
|
+
case 12:
|
|
1144
|
+
parsedBody = parsedOutput.body;
|
|
1145
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1146
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1147
|
+
_j.label = 13;
|
|
1148
|
+
case 13:
|
|
1149
|
+
message = response.message || response.Message || errorCode;
|
|
1150
|
+
response.message = message;
|
|
1151
|
+
delete response.Message;
|
|
1152
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1153
|
+
}
|
|
1154
|
+
});
|
|
1155
|
+
}); };
|
|
1156
|
+
export var deserializeAws_restJson1CreateEventActionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1157
|
+
var contents, data, _a, _b;
|
|
1158
|
+
return __generator(this, function (_c) {
|
|
1159
|
+
switch (_c.label) {
|
|
1160
|
+
case 0:
|
|
1161
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1162
|
+
return [2, deserializeAws_restJson1CreateEventActionCommandError(output, context)];
|
|
1163
|
+
}
|
|
1164
|
+
contents = {
|
|
1165
|
+
$metadata: deserializeMetadata(output),
|
|
1166
|
+
Action: undefined,
|
|
1167
|
+
Arn: undefined,
|
|
1168
|
+
CreatedAt: undefined,
|
|
1169
|
+
Event: undefined,
|
|
1170
|
+
Id: undefined,
|
|
1171
|
+
UpdatedAt: undefined,
|
|
1172
|
+
};
|
|
1173
|
+
_a = __expectNonNull;
|
|
1174
|
+
_b = __expectObject;
|
|
1175
|
+
return [4, parseBody(output.body, context)];
|
|
1176
|
+
case 1:
|
|
1177
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1178
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
1179
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
1180
|
+
}
|
|
1181
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1182
|
+
contents.Arn = __expectString(data.Arn);
|
|
1183
|
+
}
|
|
1184
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1185
|
+
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
|
|
1186
|
+
}
|
|
1187
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
1188
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
1189
|
+
}
|
|
1190
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
1191
|
+
contents.Id = __expectString(data.Id);
|
|
1192
|
+
}
|
|
1193
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1194
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
1195
|
+
}
|
|
1196
|
+
return [2, Promise.resolve(contents)];
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
}); };
|
|
1200
|
+
var deserializeAws_restJson1CreateEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1201
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1202
|
+
var _h;
|
|
1203
|
+
return __generator(this, function (_j) {
|
|
1204
|
+
switch (_j.label) {
|
|
1205
|
+
case 0:
|
|
1206
|
+
_a = [__assign({}, output)];
|
|
1207
|
+
_h = {};
|
|
1208
|
+
return [4, parseBody(output.body, context)];
|
|
949
1209
|
case 1:
|
|
950
1210
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
951
1211
|
errorCode = "UnknownError";
|
|
952
1212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
1213
|
_b = errorCode;
|
|
954
1214
|
switch (_b) {
|
|
955
|
-
case "AccessDeniedException": return [3
|
|
956
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
957
|
-
case "InternalServerException": return [3
|
|
958
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
959
|
-
case "ServiceLimitExceededException": return [3
|
|
960
|
-
case "com.amazonaws.dataexchange#ServiceLimitExceededException": return [3
|
|
961
|
-
case "ThrottlingException": return [3
|
|
962
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
963
|
-
case "ValidationException": return [3
|
|
964
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
965
|
-
}
|
|
966
|
-
return [3
|
|
1215
|
+
case "AccessDeniedException": return [3, 2];
|
|
1216
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
1217
|
+
case "InternalServerException": return [3, 4];
|
|
1218
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 4];
|
|
1219
|
+
case "ServiceLimitExceededException": return [3, 6];
|
|
1220
|
+
case "com.amazonaws.dataexchange#ServiceLimitExceededException": return [3, 6];
|
|
1221
|
+
case "ThrottlingException": return [3, 8];
|
|
1222
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 8];
|
|
1223
|
+
case "ValidationException": return [3, 10];
|
|
1224
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 10];
|
|
1225
|
+
}
|
|
1226
|
+
return [3, 12];
|
|
967
1227
|
case 2:
|
|
968
1228
|
_c = [{}];
|
|
969
|
-
return [4
|
|
1229
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
970
1230
|
case 3:
|
|
971
1231
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
972
|
-
return [3
|
|
1232
|
+
return [3, 13];
|
|
973
1233
|
case 4:
|
|
974
1234
|
_d = [{}];
|
|
975
|
-
return [4
|
|
1235
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
976
1236
|
case 5:
|
|
977
1237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
978
|
-
return [3
|
|
1238
|
+
return [3, 13];
|
|
979
1239
|
case 6:
|
|
980
1240
|
_e = [{}];
|
|
981
|
-
return [4
|
|
1241
|
+
return [4, deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
982
1242
|
case 7:
|
|
983
1243
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
984
|
-
return [3
|
|
1244
|
+
return [3, 13];
|
|
985
1245
|
case 8:
|
|
986
1246
|
_f = [{}];
|
|
987
|
-
return [4
|
|
1247
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
988
1248
|
case 9:
|
|
989
1249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
990
|
-
return [3
|
|
1250
|
+
return [3, 13];
|
|
991
1251
|
case 10:
|
|
992
1252
|
_g = [{}];
|
|
993
|
-
return [4
|
|
1253
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
994
1254
|
case 11:
|
|
995
1255
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
996
|
-
return [3
|
|
1256
|
+
return [3, 13];
|
|
997
1257
|
case 12:
|
|
998
1258
|
parsedBody = parsedOutput.body;
|
|
999
1259
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1003,7 +1263,7 @@ var deserializeAws_restJson1CreateDataSetCommandError = function (output, contex
|
|
|
1003
1263
|
message = response.message || response.Message || errorCode;
|
|
1004
1264
|
response.message = message;
|
|
1005
1265
|
delete response.Message;
|
|
1006
|
-
return [2
|
|
1266
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1007
1267
|
}
|
|
1008
1268
|
});
|
|
1009
1269
|
}); };
|
|
@@ -1013,7 +1273,7 @@ export var deserializeAws_restJson1CreateJobCommand = function (output, context)
|
|
|
1013
1273
|
switch (_c.label) {
|
|
1014
1274
|
case 0:
|
|
1015
1275
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1016
|
-
return [2
|
|
1276
|
+
return [2, deserializeAws_restJson1CreateJobCommandError(output, context)];
|
|
1017
1277
|
}
|
|
1018
1278
|
contents = {
|
|
1019
1279
|
$metadata: deserializeMetadata(output),
|
|
@@ -1028,7 +1288,7 @@ export var deserializeAws_restJson1CreateJobCommand = function (output, context)
|
|
|
1028
1288
|
};
|
|
1029
1289
|
_a = __expectNonNull;
|
|
1030
1290
|
_b = __expectObject;
|
|
1031
|
-
return [4
|
|
1291
|
+
return [4, parseBody(output.body, context)];
|
|
1032
1292
|
case 1:
|
|
1033
1293
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1034
1294
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -1055,7 +1315,7 @@ export var deserializeAws_restJson1CreateJobCommand = function (output, context)
|
|
|
1055
1315
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1056
1316
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
1057
1317
|
}
|
|
1058
|
-
return [2
|
|
1318
|
+
return [2, Promise.resolve(contents)];
|
|
1059
1319
|
}
|
|
1060
1320
|
});
|
|
1061
1321
|
}); };
|
|
@@ -1067,55 +1327,55 @@ var deserializeAws_restJson1CreateJobCommandError = function (output, context) {
|
|
|
1067
1327
|
case 0:
|
|
1068
1328
|
_a = [__assign({}, output)];
|
|
1069
1329
|
_h = {};
|
|
1070
|
-
return [4
|
|
1330
|
+
return [4, parseBody(output.body, context)];
|
|
1071
1331
|
case 1:
|
|
1072
1332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1073
1333
|
errorCode = "UnknownError";
|
|
1074
1334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
1335
|
_b = errorCode;
|
|
1076
1336
|
switch (_b) {
|
|
1077
|
-
case "AccessDeniedException": return [3
|
|
1078
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
1079
|
-
case "InternalServerException": return [3
|
|
1080
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1081
|
-
case "ResourceNotFoundException": return [3
|
|
1082
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1083
|
-
case "ThrottlingException": return [3
|
|
1084
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1085
|
-
case "ValidationException": return [3
|
|
1086
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1087
|
-
}
|
|
1088
|
-
return [3
|
|
1337
|
+
case "AccessDeniedException": return [3, 2];
|
|
1338
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
1339
|
+
case "InternalServerException": return [3, 4];
|
|
1340
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 4];
|
|
1341
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1342
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 6];
|
|
1343
|
+
case "ThrottlingException": return [3, 8];
|
|
1344
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 8];
|
|
1345
|
+
case "ValidationException": return [3, 10];
|
|
1346
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 10];
|
|
1347
|
+
}
|
|
1348
|
+
return [3, 12];
|
|
1089
1349
|
case 2:
|
|
1090
1350
|
_c = [{}];
|
|
1091
|
-
return [4
|
|
1351
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1092
1352
|
case 3:
|
|
1093
1353
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1094
|
-
return [3
|
|
1354
|
+
return [3, 13];
|
|
1095
1355
|
case 4:
|
|
1096
1356
|
_d = [{}];
|
|
1097
|
-
return [4
|
|
1357
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1098
1358
|
case 5:
|
|
1099
1359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1100
|
-
return [3
|
|
1360
|
+
return [3, 13];
|
|
1101
1361
|
case 6:
|
|
1102
1362
|
_e = [{}];
|
|
1103
|
-
return [4
|
|
1363
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1104
1364
|
case 7:
|
|
1105
1365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1106
|
-
return [3
|
|
1366
|
+
return [3, 13];
|
|
1107
1367
|
case 8:
|
|
1108
1368
|
_f = [{}];
|
|
1109
|
-
return [4
|
|
1369
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1110
1370
|
case 9:
|
|
1111
1371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1112
|
-
return [3
|
|
1372
|
+
return [3, 13];
|
|
1113
1373
|
case 10:
|
|
1114
1374
|
_g = [{}];
|
|
1115
|
-
return [4
|
|
1375
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1116
1376
|
case 11:
|
|
1117
1377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1118
|
-
return [3
|
|
1378
|
+
return [3, 13];
|
|
1119
1379
|
case 12:
|
|
1120
1380
|
parsedBody = parsedOutput.body;
|
|
1121
1381
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1125,7 +1385,7 @@ var deserializeAws_restJson1CreateJobCommandError = function (output, context) {
|
|
|
1125
1385
|
message = response.message || response.Message || errorCode;
|
|
1126
1386
|
response.message = message;
|
|
1127
1387
|
delete response.Message;
|
|
1128
|
-
return [2
|
|
1388
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1129
1389
|
}
|
|
1130
1390
|
});
|
|
1131
1391
|
}); };
|
|
@@ -1135,7 +1395,7 @@ export var deserializeAws_restJson1CreateRevisionCommand = function (output, con
|
|
|
1135
1395
|
switch (_c.label) {
|
|
1136
1396
|
case 0:
|
|
1137
1397
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1138
|
-
return [2
|
|
1398
|
+
return [2, deserializeAws_restJson1CreateRevisionCommandError(output, context)];
|
|
1139
1399
|
}
|
|
1140
1400
|
contents = {
|
|
1141
1401
|
$metadata: deserializeMetadata(output),
|
|
@@ -1151,7 +1411,7 @@ export var deserializeAws_restJson1CreateRevisionCommand = function (output, con
|
|
|
1151
1411
|
};
|
|
1152
1412
|
_a = __expectNonNull;
|
|
1153
1413
|
_b = __expectObject;
|
|
1154
|
-
return [4
|
|
1414
|
+
return [4, parseBody(output.body, context)];
|
|
1155
1415
|
case 1:
|
|
1156
1416
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1157
1417
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -1181,7 +1441,7 @@ export var deserializeAws_restJson1CreateRevisionCommand = function (output, con
|
|
|
1181
1441
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1182
1442
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
1183
1443
|
}
|
|
1184
|
-
return [2
|
|
1444
|
+
return [2, Promise.resolve(contents)];
|
|
1185
1445
|
}
|
|
1186
1446
|
});
|
|
1187
1447
|
}); };
|
|
@@ -1193,55 +1453,55 @@ var deserializeAws_restJson1CreateRevisionCommandError = function (output, conte
|
|
|
1193
1453
|
case 0:
|
|
1194
1454
|
_a = [__assign({}, output)];
|
|
1195
1455
|
_h = {};
|
|
1196
|
-
return [4
|
|
1456
|
+
return [4, parseBody(output.body, context)];
|
|
1197
1457
|
case 1:
|
|
1198
1458
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1199
1459
|
errorCode = "UnknownError";
|
|
1200
1460
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1461
|
_b = errorCode;
|
|
1202
1462
|
switch (_b) {
|
|
1203
|
-
case "AccessDeniedException": return [3
|
|
1204
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
1205
|
-
case "InternalServerException": return [3
|
|
1206
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1207
|
-
case "ResourceNotFoundException": return [3
|
|
1208
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1209
|
-
case "ThrottlingException": return [3
|
|
1210
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1211
|
-
case "ValidationException": return [3
|
|
1212
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1213
|
-
}
|
|
1214
|
-
return [3
|
|
1463
|
+
case "AccessDeniedException": return [3, 2];
|
|
1464
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
1465
|
+
case "InternalServerException": return [3, 4];
|
|
1466
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 4];
|
|
1467
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1468
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 6];
|
|
1469
|
+
case "ThrottlingException": return [3, 8];
|
|
1470
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 8];
|
|
1471
|
+
case "ValidationException": return [3, 10];
|
|
1472
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 10];
|
|
1473
|
+
}
|
|
1474
|
+
return [3, 12];
|
|
1215
1475
|
case 2:
|
|
1216
1476
|
_c = [{}];
|
|
1217
|
-
return [4
|
|
1477
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1218
1478
|
case 3:
|
|
1219
1479
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1220
|
-
return [3
|
|
1480
|
+
return [3, 13];
|
|
1221
1481
|
case 4:
|
|
1222
1482
|
_d = [{}];
|
|
1223
|
-
return [4
|
|
1483
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1224
1484
|
case 5:
|
|
1225
1485
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1226
|
-
return [3
|
|
1486
|
+
return [3, 13];
|
|
1227
1487
|
case 6:
|
|
1228
1488
|
_e = [{}];
|
|
1229
|
-
return [4
|
|
1489
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1230
1490
|
case 7:
|
|
1231
1491
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1232
|
-
return [3
|
|
1492
|
+
return [3, 13];
|
|
1233
1493
|
case 8:
|
|
1234
1494
|
_f = [{}];
|
|
1235
|
-
return [4
|
|
1495
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1236
1496
|
case 9:
|
|
1237
1497
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1238
|
-
return [3
|
|
1498
|
+
return [3, 13];
|
|
1239
1499
|
case 10:
|
|
1240
1500
|
_g = [{}];
|
|
1241
|
-
return [4
|
|
1501
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1242
1502
|
case 11:
|
|
1243
1503
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1244
|
-
return [3
|
|
1504
|
+
return [3, 13];
|
|
1245
1505
|
case 12:
|
|
1246
1506
|
parsedBody = parsedOutput.body;
|
|
1247
1507
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1251,7 +1511,7 @@ var deserializeAws_restJson1CreateRevisionCommandError = function (output, conte
|
|
|
1251
1511
|
message = response.message || response.Message || errorCode;
|
|
1252
1512
|
response.message = message;
|
|
1253
1513
|
delete response.Message;
|
|
1254
|
-
return [2
|
|
1514
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1255
1515
|
}
|
|
1256
1516
|
});
|
|
1257
1517
|
}); };
|
|
@@ -1261,15 +1521,15 @@ export var deserializeAws_restJson1DeleteAssetCommand = function (output, contex
|
|
|
1261
1521
|
switch (_a.label) {
|
|
1262
1522
|
case 0:
|
|
1263
1523
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1264
|
-
return [2
|
|
1524
|
+
return [2, deserializeAws_restJson1DeleteAssetCommandError(output, context)];
|
|
1265
1525
|
}
|
|
1266
1526
|
contents = {
|
|
1267
1527
|
$metadata: deserializeMetadata(output),
|
|
1268
1528
|
};
|
|
1269
|
-
return [4
|
|
1529
|
+
return [4, collectBody(output.body, context)];
|
|
1270
1530
|
case 1:
|
|
1271
1531
|
_a.sent();
|
|
1272
|
-
return [2
|
|
1532
|
+
return [2, Promise.resolve(contents)];
|
|
1273
1533
|
}
|
|
1274
1534
|
});
|
|
1275
1535
|
}); };
|
|
@@ -1281,63 +1541,63 @@ var deserializeAws_restJson1DeleteAssetCommandError = function (output, context)
|
|
|
1281
1541
|
case 0:
|
|
1282
1542
|
_a = [__assign({}, output)];
|
|
1283
1543
|
_j = {};
|
|
1284
|
-
return [4
|
|
1544
|
+
return [4, parseBody(output.body, context)];
|
|
1285
1545
|
case 1:
|
|
1286
1546
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1287
1547
|
errorCode = "UnknownError";
|
|
1288
1548
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1289
1549
|
_b = errorCode;
|
|
1290
1550
|
switch (_b) {
|
|
1291
|
-
case "AccessDeniedException": return [3
|
|
1292
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
1293
|
-
case "ConflictException": return [3
|
|
1294
|
-
case "com.amazonaws.dataexchange#ConflictException": return [3
|
|
1295
|
-
case "InternalServerException": return [3
|
|
1296
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1297
|
-
case "ResourceNotFoundException": return [3
|
|
1298
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1299
|
-
case "ThrottlingException": return [3
|
|
1300
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1301
|
-
case "ValidationException": return [3
|
|
1302
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1303
|
-
}
|
|
1304
|
-
return [3
|
|
1551
|
+
case "AccessDeniedException": return [3, 2];
|
|
1552
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
1553
|
+
case "ConflictException": return [3, 4];
|
|
1554
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 4];
|
|
1555
|
+
case "InternalServerException": return [3, 6];
|
|
1556
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 6];
|
|
1557
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1558
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 8];
|
|
1559
|
+
case "ThrottlingException": return [3, 10];
|
|
1560
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 10];
|
|
1561
|
+
case "ValidationException": return [3, 12];
|
|
1562
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 12];
|
|
1563
|
+
}
|
|
1564
|
+
return [3, 14];
|
|
1305
1565
|
case 2:
|
|
1306
1566
|
_c = [{}];
|
|
1307
|
-
return [4
|
|
1567
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1308
1568
|
case 3:
|
|
1309
1569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1310
|
-
return [3
|
|
1570
|
+
return [3, 15];
|
|
1311
1571
|
case 4:
|
|
1312
1572
|
_d = [{}];
|
|
1313
|
-
return [4
|
|
1573
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1314
1574
|
case 5:
|
|
1315
1575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1316
|
-
return [3
|
|
1576
|
+
return [3, 15];
|
|
1317
1577
|
case 6:
|
|
1318
1578
|
_e = [{}];
|
|
1319
|
-
return [4
|
|
1579
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1320
1580
|
case 7:
|
|
1321
1581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1322
|
-
return [3
|
|
1582
|
+
return [3, 15];
|
|
1323
1583
|
case 8:
|
|
1324
1584
|
_f = [{}];
|
|
1325
|
-
return [4
|
|
1585
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1326
1586
|
case 9:
|
|
1327
1587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1328
|
-
return [3
|
|
1588
|
+
return [3, 15];
|
|
1329
1589
|
case 10:
|
|
1330
1590
|
_g = [{}];
|
|
1331
|
-
return [4
|
|
1591
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1332
1592
|
case 11:
|
|
1333
1593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1334
|
-
return [3
|
|
1594
|
+
return [3, 15];
|
|
1335
1595
|
case 12:
|
|
1336
1596
|
_h = [{}];
|
|
1337
|
-
return [4
|
|
1597
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1338
1598
|
case 13:
|
|
1339
1599
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1340
|
-
return [3
|
|
1600
|
+
return [3, 15];
|
|
1341
1601
|
case 14:
|
|
1342
1602
|
parsedBody = parsedOutput.body;
|
|
1343
1603
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1347,7 +1607,7 @@ var deserializeAws_restJson1DeleteAssetCommandError = function (output, context)
|
|
|
1347
1607
|
message = response.message || response.Message || errorCode;
|
|
1348
1608
|
response.message = message;
|
|
1349
1609
|
delete response.Message;
|
|
1350
|
-
return [2
|
|
1610
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1351
1611
|
}
|
|
1352
1612
|
});
|
|
1353
1613
|
}); };
|
|
@@ -1357,15 +1617,15 @@ export var deserializeAws_restJson1DeleteDataSetCommand = function (output, cont
|
|
|
1357
1617
|
switch (_a.label) {
|
|
1358
1618
|
case 0:
|
|
1359
1619
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1360
|
-
return [2
|
|
1620
|
+
return [2, deserializeAws_restJson1DeleteDataSetCommandError(output, context)];
|
|
1361
1621
|
}
|
|
1362
1622
|
contents = {
|
|
1363
1623
|
$metadata: deserializeMetadata(output),
|
|
1364
1624
|
};
|
|
1365
|
-
return [4
|
|
1625
|
+
return [4, collectBody(output.body, context)];
|
|
1366
1626
|
case 1:
|
|
1367
1627
|
_a.sent();
|
|
1368
|
-
return [2
|
|
1628
|
+
return [2, Promise.resolve(contents)];
|
|
1369
1629
|
}
|
|
1370
1630
|
});
|
|
1371
1631
|
}); };
|
|
@@ -1377,63 +1637,63 @@ var deserializeAws_restJson1DeleteDataSetCommandError = function (output, contex
|
|
|
1377
1637
|
case 0:
|
|
1378
1638
|
_a = [__assign({}, output)];
|
|
1379
1639
|
_j = {};
|
|
1380
|
-
return [4
|
|
1640
|
+
return [4, parseBody(output.body, context)];
|
|
1381
1641
|
case 1:
|
|
1382
1642
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1383
1643
|
errorCode = "UnknownError";
|
|
1384
1644
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
1645
|
_b = errorCode;
|
|
1386
1646
|
switch (_b) {
|
|
1387
|
-
case "AccessDeniedException": return [3
|
|
1388
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
1389
|
-
case "ConflictException": return [3
|
|
1390
|
-
case "com.amazonaws.dataexchange#ConflictException": return [3
|
|
1391
|
-
case "InternalServerException": return [3
|
|
1392
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1393
|
-
case "ResourceNotFoundException": return [3
|
|
1394
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1395
|
-
case "ThrottlingException": return [3
|
|
1396
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1397
|
-
case "ValidationException": return [3
|
|
1398
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1399
|
-
}
|
|
1400
|
-
return [3
|
|
1647
|
+
case "AccessDeniedException": return [3, 2];
|
|
1648
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
1649
|
+
case "ConflictException": return [3, 4];
|
|
1650
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 4];
|
|
1651
|
+
case "InternalServerException": return [3, 6];
|
|
1652
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 6];
|
|
1653
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1654
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 8];
|
|
1655
|
+
case "ThrottlingException": return [3, 10];
|
|
1656
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 10];
|
|
1657
|
+
case "ValidationException": return [3, 12];
|
|
1658
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 12];
|
|
1659
|
+
}
|
|
1660
|
+
return [3, 14];
|
|
1401
1661
|
case 2:
|
|
1402
1662
|
_c = [{}];
|
|
1403
|
-
return [4
|
|
1663
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1404
1664
|
case 3:
|
|
1405
1665
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1406
|
-
return [3
|
|
1666
|
+
return [3, 15];
|
|
1407
1667
|
case 4:
|
|
1408
1668
|
_d = [{}];
|
|
1409
|
-
return [4
|
|
1669
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1410
1670
|
case 5:
|
|
1411
1671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1412
|
-
return [3
|
|
1672
|
+
return [3, 15];
|
|
1413
1673
|
case 6:
|
|
1414
1674
|
_e = [{}];
|
|
1415
|
-
return [4
|
|
1675
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1416
1676
|
case 7:
|
|
1417
1677
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1418
|
-
return [3
|
|
1678
|
+
return [3, 15];
|
|
1419
1679
|
case 8:
|
|
1420
1680
|
_f = [{}];
|
|
1421
|
-
return [4
|
|
1681
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1422
1682
|
case 9:
|
|
1423
1683
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1424
|
-
return [3
|
|
1684
|
+
return [3, 15];
|
|
1425
1685
|
case 10:
|
|
1426
1686
|
_g = [{}];
|
|
1427
|
-
return [4
|
|
1687
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1428
1688
|
case 11:
|
|
1429
1689
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1430
|
-
return [3
|
|
1690
|
+
return [3, 15];
|
|
1431
1691
|
case 12:
|
|
1432
1692
|
_h = [{}];
|
|
1433
|
-
return [4
|
|
1693
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1434
1694
|
case 13:
|
|
1435
1695
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1436
|
-
return [3
|
|
1696
|
+
return [3, 15];
|
|
1437
1697
|
case 14:
|
|
1438
1698
|
parsedBody = parsedOutput.body;
|
|
1439
1699
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1443,7 +1703,87 @@ var deserializeAws_restJson1DeleteDataSetCommandError = function (output, contex
|
|
|
1443
1703
|
message = response.message || response.Message || errorCode;
|
|
1444
1704
|
response.message = message;
|
|
1445
1705
|
delete response.Message;
|
|
1446
|
-
return [2
|
|
1706
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1709
|
+
}); };
|
|
1710
|
+
export var deserializeAws_restJson1DeleteEventActionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1711
|
+
var contents;
|
|
1712
|
+
return __generator(this, function (_a) {
|
|
1713
|
+
switch (_a.label) {
|
|
1714
|
+
case 0:
|
|
1715
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1716
|
+
return [2, deserializeAws_restJson1DeleteEventActionCommandError(output, context)];
|
|
1717
|
+
}
|
|
1718
|
+
contents = {
|
|
1719
|
+
$metadata: deserializeMetadata(output),
|
|
1720
|
+
};
|
|
1721
|
+
return [4, collectBody(output.body, context)];
|
|
1722
|
+
case 1:
|
|
1723
|
+
_a.sent();
|
|
1724
|
+
return [2, Promise.resolve(contents)];
|
|
1725
|
+
}
|
|
1726
|
+
});
|
|
1727
|
+
}); };
|
|
1728
|
+
var deserializeAws_restJson1DeleteEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1729
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1730
|
+
var _g;
|
|
1731
|
+
return __generator(this, function (_h) {
|
|
1732
|
+
switch (_h.label) {
|
|
1733
|
+
case 0:
|
|
1734
|
+
_a = [__assign({}, output)];
|
|
1735
|
+
_g = {};
|
|
1736
|
+
return [4, parseBody(output.body, context)];
|
|
1737
|
+
case 1:
|
|
1738
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1739
|
+
errorCode = "UnknownError";
|
|
1740
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
+
_b = errorCode;
|
|
1742
|
+
switch (_b) {
|
|
1743
|
+
case "InternalServerException": return [3, 2];
|
|
1744
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
1745
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1746
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
1747
|
+
case "ThrottlingException": return [3, 6];
|
|
1748
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
1749
|
+
case "ValidationException": return [3, 8];
|
|
1750
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
1751
|
+
}
|
|
1752
|
+
return [3, 10];
|
|
1753
|
+
case 2:
|
|
1754
|
+
_c = [{}];
|
|
1755
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1756
|
+
case 3:
|
|
1757
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1758
|
+
return [3, 11];
|
|
1759
|
+
case 4:
|
|
1760
|
+
_d = [{}];
|
|
1761
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1762
|
+
case 5:
|
|
1763
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1764
|
+
return [3, 11];
|
|
1765
|
+
case 6:
|
|
1766
|
+
_e = [{}];
|
|
1767
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1768
|
+
case 7:
|
|
1769
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1770
|
+
return [3, 11];
|
|
1771
|
+
case 8:
|
|
1772
|
+
_f = [{}];
|
|
1773
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1774
|
+
case 9:
|
|
1775
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1776
|
+
return [3, 11];
|
|
1777
|
+
case 10:
|
|
1778
|
+
parsedBody = parsedOutput.body;
|
|
1779
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1780
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1781
|
+
_h.label = 11;
|
|
1782
|
+
case 11:
|
|
1783
|
+
message = response.message || response.Message || errorCode;
|
|
1784
|
+
response.message = message;
|
|
1785
|
+
delete response.Message;
|
|
1786
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1447
1787
|
}
|
|
1448
1788
|
});
|
|
1449
1789
|
}); };
|
|
@@ -1453,15 +1793,15 @@ export var deserializeAws_restJson1DeleteRevisionCommand = function (output, con
|
|
|
1453
1793
|
switch (_a.label) {
|
|
1454
1794
|
case 0:
|
|
1455
1795
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1456
|
-
return [2
|
|
1796
|
+
return [2, deserializeAws_restJson1DeleteRevisionCommandError(output, context)];
|
|
1457
1797
|
}
|
|
1458
1798
|
contents = {
|
|
1459
1799
|
$metadata: deserializeMetadata(output),
|
|
1460
1800
|
};
|
|
1461
|
-
return [4
|
|
1801
|
+
return [4, collectBody(output.body, context)];
|
|
1462
1802
|
case 1:
|
|
1463
1803
|
_a.sent();
|
|
1464
|
-
return [2
|
|
1804
|
+
return [2, Promise.resolve(contents)];
|
|
1465
1805
|
}
|
|
1466
1806
|
});
|
|
1467
1807
|
}); };
|
|
@@ -1473,63 +1813,63 @@ var deserializeAws_restJson1DeleteRevisionCommandError = function (output, conte
|
|
|
1473
1813
|
case 0:
|
|
1474
1814
|
_a = [__assign({}, output)];
|
|
1475
1815
|
_j = {};
|
|
1476
|
-
return [4
|
|
1816
|
+
return [4, parseBody(output.body, context)];
|
|
1477
1817
|
case 1:
|
|
1478
1818
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1479
1819
|
errorCode = "UnknownError";
|
|
1480
1820
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1481
1821
|
_b = errorCode;
|
|
1482
1822
|
switch (_b) {
|
|
1483
|
-
case "AccessDeniedException": return [3
|
|
1484
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
1485
|
-
case "ConflictException": return [3
|
|
1486
|
-
case "com.amazonaws.dataexchange#ConflictException": return [3
|
|
1487
|
-
case "InternalServerException": return [3
|
|
1488
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1489
|
-
case "ResourceNotFoundException": return [3
|
|
1490
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1491
|
-
case "ThrottlingException": return [3
|
|
1492
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1493
|
-
case "ValidationException": return [3
|
|
1494
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1495
|
-
}
|
|
1496
|
-
return [3
|
|
1823
|
+
case "AccessDeniedException": return [3, 2];
|
|
1824
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
1825
|
+
case "ConflictException": return [3, 4];
|
|
1826
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 4];
|
|
1827
|
+
case "InternalServerException": return [3, 6];
|
|
1828
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 6];
|
|
1829
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1830
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 8];
|
|
1831
|
+
case "ThrottlingException": return [3, 10];
|
|
1832
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 10];
|
|
1833
|
+
case "ValidationException": return [3, 12];
|
|
1834
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 12];
|
|
1835
|
+
}
|
|
1836
|
+
return [3, 14];
|
|
1497
1837
|
case 2:
|
|
1498
1838
|
_c = [{}];
|
|
1499
|
-
return [4
|
|
1839
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1500
1840
|
case 3:
|
|
1501
1841
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1502
|
-
return [3
|
|
1842
|
+
return [3, 15];
|
|
1503
1843
|
case 4:
|
|
1504
1844
|
_d = [{}];
|
|
1505
|
-
return [4
|
|
1845
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1506
1846
|
case 5:
|
|
1507
1847
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1508
|
-
return [3
|
|
1848
|
+
return [3, 15];
|
|
1509
1849
|
case 6:
|
|
1510
1850
|
_e = [{}];
|
|
1511
|
-
return [4
|
|
1851
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1512
1852
|
case 7:
|
|
1513
1853
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1514
|
-
return [3
|
|
1854
|
+
return [3, 15];
|
|
1515
1855
|
case 8:
|
|
1516
1856
|
_f = [{}];
|
|
1517
|
-
return [4
|
|
1857
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1518
1858
|
case 9:
|
|
1519
1859
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1520
|
-
return [3
|
|
1860
|
+
return [3, 15];
|
|
1521
1861
|
case 10:
|
|
1522
1862
|
_g = [{}];
|
|
1523
|
-
return [4
|
|
1863
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1524
1864
|
case 11:
|
|
1525
1865
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1526
|
-
return [3
|
|
1866
|
+
return [3, 15];
|
|
1527
1867
|
case 12:
|
|
1528
1868
|
_h = [{}];
|
|
1529
|
-
return [4
|
|
1869
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1530
1870
|
case 13:
|
|
1531
1871
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1532
|
-
return [3
|
|
1872
|
+
return [3, 15];
|
|
1533
1873
|
case 14:
|
|
1534
1874
|
parsedBody = parsedOutput.body;
|
|
1535
1875
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1539,7 +1879,7 @@ var deserializeAws_restJson1DeleteRevisionCommandError = function (output, conte
|
|
|
1539
1879
|
message = response.message || response.Message || errorCode;
|
|
1540
1880
|
response.message = message;
|
|
1541
1881
|
delete response.Message;
|
|
1542
|
-
return [2
|
|
1882
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1543
1883
|
}
|
|
1544
1884
|
});
|
|
1545
1885
|
}); };
|
|
@@ -1549,7 +1889,7 @@ export var deserializeAws_restJson1GetAssetCommand = function (output, context)
|
|
|
1549
1889
|
switch (_c.label) {
|
|
1550
1890
|
case 0:
|
|
1551
1891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1552
|
-
return [2
|
|
1892
|
+
return [2, deserializeAws_restJson1GetAssetCommandError(output, context)];
|
|
1553
1893
|
}
|
|
1554
1894
|
contents = {
|
|
1555
1895
|
$metadata: deserializeMetadata(output),
|
|
@@ -1566,7 +1906,7 @@ export var deserializeAws_restJson1GetAssetCommand = function (output, context)
|
|
|
1566
1906
|
};
|
|
1567
1907
|
_a = __expectNonNull;
|
|
1568
1908
|
_b = __expectObject;
|
|
1569
|
-
return [4
|
|
1909
|
+
return [4, parseBody(output.body, context)];
|
|
1570
1910
|
case 1:
|
|
1571
1911
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1572
1912
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -1599,7 +1939,7 @@ export var deserializeAws_restJson1GetAssetCommand = function (output, context)
|
|
|
1599
1939
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1600
1940
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
1601
1941
|
}
|
|
1602
|
-
return [2
|
|
1942
|
+
return [2, Promise.resolve(contents)];
|
|
1603
1943
|
}
|
|
1604
1944
|
});
|
|
1605
1945
|
}); };
|
|
@@ -1611,47 +1951,47 @@ var deserializeAws_restJson1GetAssetCommandError = function (output, context) {
|
|
|
1611
1951
|
case 0:
|
|
1612
1952
|
_a = [__assign({}, output)];
|
|
1613
1953
|
_g = {};
|
|
1614
|
-
return [4
|
|
1954
|
+
return [4, parseBody(output.body, context)];
|
|
1615
1955
|
case 1:
|
|
1616
1956
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1617
1957
|
errorCode = "UnknownError";
|
|
1618
1958
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1619
1959
|
_b = errorCode;
|
|
1620
1960
|
switch (_b) {
|
|
1621
|
-
case "InternalServerException": return [3
|
|
1622
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1623
|
-
case "ResourceNotFoundException": return [3
|
|
1624
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1625
|
-
case "ThrottlingException": return [3
|
|
1626
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1627
|
-
case "ValidationException": return [3
|
|
1628
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1629
|
-
}
|
|
1630
|
-
return [3
|
|
1961
|
+
case "InternalServerException": return [3, 2];
|
|
1962
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
1963
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1964
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
1965
|
+
case "ThrottlingException": return [3, 6];
|
|
1966
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
1967
|
+
case "ValidationException": return [3, 8];
|
|
1968
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
1969
|
+
}
|
|
1970
|
+
return [3, 10];
|
|
1631
1971
|
case 2:
|
|
1632
1972
|
_c = [{}];
|
|
1633
|
-
return [4
|
|
1973
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1634
1974
|
case 3:
|
|
1635
1975
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1636
|
-
return [3
|
|
1976
|
+
return [3, 11];
|
|
1637
1977
|
case 4:
|
|
1638
1978
|
_d = [{}];
|
|
1639
|
-
return [4
|
|
1979
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1640
1980
|
case 5:
|
|
1641
1981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1642
|
-
return [3
|
|
1982
|
+
return [3, 11];
|
|
1643
1983
|
case 6:
|
|
1644
1984
|
_e = [{}];
|
|
1645
|
-
return [4
|
|
1985
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1646
1986
|
case 7:
|
|
1647
1987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1648
|
-
return [3
|
|
1988
|
+
return [3, 11];
|
|
1649
1989
|
case 8:
|
|
1650
1990
|
_f = [{}];
|
|
1651
|
-
return [4
|
|
1991
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1652
1992
|
case 9:
|
|
1653
1993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1654
|
-
return [3
|
|
1994
|
+
return [3, 11];
|
|
1655
1995
|
case 10:
|
|
1656
1996
|
parsedBody = parsedOutput.body;
|
|
1657
1997
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1661,7 +2001,7 @@ var deserializeAws_restJson1GetAssetCommandError = function (output, context) {
|
|
|
1661
2001
|
message = response.message || response.Message || errorCode;
|
|
1662
2002
|
response.message = message;
|
|
1663
2003
|
delete response.Message;
|
|
1664
|
-
return [2
|
|
2004
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1665
2005
|
}
|
|
1666
2006
|
});
|
|
1667
2007
|
}); };
|
|
@@ -1671,7 +2011,7 @@ export var deserializeAws_restJson1GetDataSetCommand = function (output, context
|
|
|
1671
2011
|
switch (_c.label) {
|
|
1672
2012
|
case 0:
|
|
1673
2013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1674
|
-
return [2
|
|
2014
|
+
return [2, deserializeAws_restJson1GetDataSetCommandError(output, context)];
|
|
1675
2015
|
}
|
|
1676
2016
|
contents = {
|
|
1677
2017
|
$metadata: deserializeMetadata(output),
|
|
@@ -1689,7 +2029,7 @@ export var deserializeAws_restJson1GetDataSetCommand = function (output, context
|
|
|
1689
2029
|
};
|
|
1690
2030
|
_a = __expectNonNull;
|
|
1691
2031
|
_b = __expectObject;
|
|
1692
|
-
return [4
|
|
2032
|
+
return [4, parseBody(output.body, context)];
|
|
1693
2033
|
case 1:
|
|
1694
2034
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1695
2035
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -1725,7 +2065,7 @@ export var deserializeAws_restJson1GetDataSetCommand = function (output, context
|
|
|
1725
2065
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1726
2066
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
1727
2067
|
}
|
|
1728
|
-
return [2
|
|
2068
|
+
return [2, Promise.resolve(contents)];
|
|
1729
2069
|
}
|
|
1730
2070
|
});
|
|
1731
2071
|
}); };
|
|
@@ -1737,47 +2077,47 @@ var deserializeAws_restJson1GetDataSetCommandError = function (output, context)
|
|
|
1737
2077
|
case 0:
|
|
1738
2078
|
_a = [__assign({}, output)];
|
|
1739
2079
|
_g = {};
|
|
1740
|
-
return [4
|
|
2080
|
+
return [4, parseBody(output.body, context)];
|
|
1741
2081
|
case 1:
|
|
1742
2082
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1743
2083
|
errorCode = "UnknownError";
|
|
1744
2084
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
2085
|
_b = errorCode;
|
|
1746
2086
|
switch (_b) {
|
|
1747
|
-
case "InternalServerException": return [3
|
|
1748
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1749
|
-
case "ResourceNotFoundException": return [3
|
|
1750
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1751
|
-
case "ThrottlingException": return [3
|
|
1752
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1753
|
-
case "ValidationException": return [3
|
|
1754
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1755
|
-
}
|
|
1756
|
-
return [3
|
|
2087
|
+
case "InternalServerException": return [3, 2];
|
|
2088
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2089
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2090
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2091
|
+
case "ThrottlingException": return [3, 6];
|
|
2092
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2093
|
+
case "ValidationException": return [3, 8];
|
|
2094
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2095
|
+
}
|
|
2096
|
+
return [3, 10];
|
|
1757
2097
|
case 2:
|
|
1758
2098
|
_c = [{}];
|
|
1759
|
-
return [4
|
|
2099
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1760
2100
|
case 3:
|
|
1761
2101
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1762
|
-
return [3
|
|
2102
|
+
return [3, 11];
|
|
1763
2103
|
case 4:
|
|
1764
2104
|
_d = [{}];
|
|
1765
|
-
return [4
|
|
2105
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1766
2106
|
case 5:
|
|
1767
2107
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1768
|
-
return [3
|
|
2108
|
+
return [3, 11];
|
|
1769
2109
|
case 6:
|
|
1770
2110
|
_e = [{}];
|
|
1771
|
-
return [4
|
|
2111
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1772
2112
|
case 7:
|
|
1773
2113
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1774
|
-
return [3
|
|
2114
|
+
return [3, 11];
|
|
1775
2115
|
case 8:
|
|
1776
2116
|
_f = [{}];
|
|
1777
|
-
return [4
|
|
2117
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1778
2118
|
case 9:
|
|
1779
2119
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1780
|
-
return [3
|
|
2120
|
+
return [3, 11];
|
|
1781
2121
|
case 10:
|
|
1782
2122
|
parsedBody = parsedOutput.body;
|
|
1783
2123
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1787,7 +2127,113 @@ var deserializeAws_restJson1GetDataSetCommandError = function (output, context)
|
|
|
1787
2127
|
message = response.message || response.Message || errorCode;
|
|
1788
2128
|
response.message = message;
|
|
1789
2129
|
delete response.Message;
|
|
1790
|
-
return [2
|
|
2130
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
}); };
|
|
2134
|
+
export var deserializeAws_restJson1GetEventActionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2135
|
+
var contents, data, _a, _b;
|
|
2136
|
+
return __generator(this, function (_c) {
|
|
2137
|
+
switch (_c.label) {
|
|
2138
|
+
case 0:
|
|
2139
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
|
+
return [2, deserializeAws_restJson1GetEventActionCommandError(output, context)];
|
|
2141
|
+
}
|
|
2142
|
+
contents = {
|
|
2143
|
+
$metadata: deserializeMetadata(output),
|
|
2144
|
+
Action: undefined,
|
|
2145
|
+
Arn: undefined,
|
|
2146
|
+
CreatedAt: undefined,
|
|
2147
|
+
Event: undefined,
|
|
2148
|
+
Id: undefined,
|
|
2149
|
+
UpdatedAt: undefined,
|
|
2150
|
+
};
|
|
2151
|
+
_a = __expectNonNull;
|
|
2152
|
+
_b = __expectObject;
|
|
2153
|
+
return [4, parseBody(output.body, context)];
|
|
2154
|
+
case 1:
|
|
2155
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2156
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
2157
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
2158
|
+
}
|
|
2159
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2160
|
+
contents.Arn = __expectString(data.Arn);
|
|
2161
|
+
}
|
|
2162
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
2163
|
+
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
|
|
2164
|
+
}
|
|
2165
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
2166
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
2167
|
+
}
|
|
2168
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
2169
|
+
contents.Id = __expectString(data.Id);
|
|
2170
|
+
}
|
|
2171
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2172
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
2173
|
+
}
|
|
2174
|
+
return [2, Promise.resolve(contents)];
|
|
2175
|
+
}
|
|
2176
|
+
});
|
|
2177
|
+
}); };
|
|
2178
|
+
var deserializeAws_restJson1GetEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2179
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2180
|
+
var _g;
|
|
2181
|
+
return __generator(this, function (_h) {
|
|
2182
|
+
switch (_h.label) {
|
|
2183
|
+
case 0:
|
|
2184
|
+
_a = [__assign({}, output)];
|
|
2185
|
+
_g = {};
|
|
2186
|
+
return [4, parseBody(output.body, context)];
|
|
2187
|
+
case 1:
|
|
2188
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2189
|
+
errorCode = "UnknownError";
|
|
2190
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
|
+
_b = errorCode;
|
|
2192
|
+
switch (_b) {
|
|
2193
|
+
case "InternalServerException": return [3, 2];
|
|
2194
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2195
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2196
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2197
|
+
case "ThrottlingException": return [3, 6];
|
|
2198
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2199
|
+
case "ValidationException": return [3, 8];
|
|
2200
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2201
|
+
}
|
|
2202
|
+
return [3, 10];
|
|
2203
|
+
case 2:
|
|
2204
|
+
_c = [{}];
|
|
2205
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2206
|
+
case 3:
|
|
2207
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2208
|
+
return [3, 11];
|
|
2209
|
+
case 4:
|
|
2210
|
+
_d = [{}];
|
|
2211
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2212
|
+
case 5:
|
|
2213
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2214
|
+
return [3, 11];
|
|
2215
|
+
case 6:
|
|
2216
|
+
_e = [{}];
|
|
2217
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2218
|
+
case 7:
|
|
2219
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2220
|
+
return [3, 11];
|
|
2221
|
+
case 8:
|
|
2222
|
+
_f = [{}];
|
|
2223
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2224
|
+
case 9:
|
|
2225
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2226
|
+
return [3, 11];
|
|
2227
|
+
case 10:
|
|
2228
|
+
parsedBody = parsedOutput.body;
|
|
2229
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2230
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2231
|
+
_h.label = 11;
|
|
2232
|
+
case 11:
|
|
2233
|
+
message = response.message || response.Message || errorCode;
|
|
2234
|
+
response.message = message;
|
|
2235
|
+
delete response.Message;
|
|
2236
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1791
2237
|
}
|
|
1792
2238
|
});
|
|
1793
2239
|
}); };
|
|
@@ -1797,7 +2243,7 @@ export var deserializeAws_restJson1GetJobCommand = function (output, context) {
|
|
|
1797
2243
|
switch (_c.label) {
|
|
1798
2244
|
case 0:
|
|
1799
2245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1800
|
-
return [2
|
|
2246
|
+
return [2, deserializeAws_restJson1GetJobCommandError(output, context)];
|
|
1801
2247
|
}
|
|
1802
2248
|
contents = {
|
|
1803
2249
|
$metadata: deserializeMetadata(output),
|
|
@@ -1812,7 +2258,7 @@ export var deserializeAws_restJson1GetJobCommand = function (output, context) {
|
|
|
1812
2258
|
};
|
|
1813
2259
|
_a = __expectNonNull;
|
|
1814
2260
|
_b = __expectObject;
|
|
1815
|
-
return [4
|
|
2261
|
+
return [4, parseBody(output.body, context)];
|
|
1816
2262
|
case 1:
|
|
1817
2263
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1818
2264
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -1839,7 +2285,7 @@ export var deserializeAws_restJson1GetJobCommand = function (output, context) {
|
|
|
1839
2285
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1840
2286
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
1841
2287
|
}
|
|
1842
|
-
return [2
|
|
2288
|
+
return [2, Promise.resolve(contents)];
|
|
1843
2289
|
}
|
|
1844
2290
|
});
|
|
1845
2291
|
}); };
|
|
@@ -1851,47 +2297,47 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
|
|
|
1851
2297
|
case 0:
|
|
1852
2298
|
_a = [__assign({}, output)];
|
|
1853
2299
|
_g = {};
|
|
1854
|
-
return [4
|
|
2300
|
+
return [4, parseBody(output.body, context)];
|
|
1855
2301
|
case 1:
|
|
1856
2302
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1857
2303
|
errorCode = "UnknownError";
|
|
1858
2304
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
2305
|
_b = errorCode;
|
|
1860
2306
|
switch (_b) {
|
|
1861
|
-
case "InternalServerException": return [3
|
|
1862
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1863
|
-
case "ResourceNotFoundException": return [3
|
|
1864
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1865
|
-
case "ThrottlingException": return [3
|
|
1866
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1867
|
-
case "ValidationException": return [3
|
|
1868
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1869
|
-
}
|
|
1870
|
-
return [3
|
|
2307
|
+
case "InternalServerException": return [3, 2];
|
|
2308
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2309
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2310
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2311
|
+
case "ThrottlingException": return [3, 6];
|
|
2312
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2313
|
+
case "ValidationException": return [3, 8];
|
|
2314
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2315
|
+
}
|
|
2316
|
+
return [3, 10];
|
|
1871
2317
|
case 2:
|
|
1872
2318
|
_c = [{}];
|
|
1873
|
-
return [4
|
|
2319
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1874
2320
|
case 3:
|
|
1875
2321
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1876
|
-
return [3
|
|
2322
|
+
return [3, 11];
|
|
1877
2323
|
case 4:
|
|
1878
2324
|
_d = [{}];
|
|
1879
|
-
return [4
|
|
2325
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1880
2326
|
case 5:
|
|
1881
2327
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1882
|
-
return [3
|
|
2328
|
+
return [3, 11];
|
|
1883
2329
|
case 6:
|
|
1884
2330
|
_e = [{}];
|
|
1885
|
-
return [4
|
|
2331
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1886
2332
|
case 7:
|
|
1887
2333
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1888
|
-
return [3
|
|
2334
|
+
return [3, 11];
|
|
1889
2335
|
case 8:
|
|
1890
2336
|
_f = [{}];
|
|
1891
|
-
return [4
|
|
2337
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1892
2338
|
case 9:
|
|
1893
2339
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1894
|
-
return [3
|
|
2340
|
+
return [3, 11];
|
|
1895
2341
|
case 10:
|
|
1896
2342
|
parsedBody = parsedOutput.body;
|
|
1897
2343
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1901,7 +2347,7 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
|
|
|
1901
2347
|
message = response.message || response.Message || errorCode;
|
|
1902
2348
|
response.message = message;
|
|
1903
2349
|
delete response.Message;
|
|
1904
|
-
return [2
|
|
2350
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1905
2351
|
}
|
|
1906
2352
|
});
|
|
1907
2353
|
}); };
|
|
@@ -1911,7 +2357,7 @@ export var deserializeAws_restJson1GetRevisionCommand = function (output, contex
|
|
|
1911
2357
|
switch (_c.label) {
|
|
1912
2358
|
case 0:
|
|
1913
2359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1914
|
-
return [2
|
|
2360
|
+
return [2, deserializeAws_restJson1GetRevisionCommandError(output, context)];
|
|
1915
2361
|
}
|
|
1916
2362
|
contents = {
|
|
1917
2363
|
$metadata: deserializeMetadata(output),
|
|
@@ -1927,7 +2373,7 @@ export var deserializeAws_restJson1GetRevisionCommand = function (output, contex
|
|
|
1927
2373
|
};
|
|
1928
2374
|
_a = __expectNonNull;
|
|
1929
2375
|
_b = __expectObject;
|
|
1930
|
-
return [4
|
|
2376
|
+
return [4, parseBody(output.body, context)];
|
|
1931
2377
|
case 1:
|
|
1932
2378
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1933
2379
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -1957,7 +2403,7 @@ export var deserializeAws_restJson1GetRevisionCommand = function (output, contex
|
|
|
1957
2403
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1958
2404
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
1959
2405
|
}
|
|
1960
|
-
return [2
|
|
2406
|
+
return [2, Promise.resolve(contents)];
|
|
1961
2407
|
}
|
|
1962
2408
|
});
|
|
1963
2409
|
}); };
|
|
@@ -1969,47 +2415,47 @@ var deserializeAws_restJson1GetRevisionCommandError = function (output, context)
|
|
|
1969
2415
|
case 0:
|
|
1970
2416
|
_a = [__assign({}, output)];
|
|
1971
2417
|
_g = {};
|
|
1972
|
-
return [4
|
|
2418
|
+
return [4, parseBody(output.body, context)];
|
|
1973
2419
|
case 1:
|
|
1974
2420
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1975
2421
|
errorCode = "UnknownError";
|
|
1976
2422
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
2423
|
_b = errorCode;
|
|
1978
2424
|
switch (_b) {
|
|
1979
|
-
case "InternalServerException": return [3
|
|
1980
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
1981
|
-
case "ResourceNotFoundException": return [3
|
|
1982
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
1983
|
-
case "ThrottlingException": return [3
|
|
1984
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
1985
|
-
case "ValidationException": return [3
|
|
1986
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
1987
|
-
}
|
|
1988
|
-
return [3
|
|
2425
|
+
case "InternalServerException": return [3, 2];
|
|
2426
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2427
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2428
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2429
|
+
case "ThrottlingException": return [3, 6];
|
|
2430
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2431
|
+
case "ValidationException": return [3, 8];
|
|
2432
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2433
|
+
}
|
|
2434
|
+
return [3, 10];
|
|
1989
2435
|
case 2:
|
|
1990
2436
|
_c = [{}];
|
|
1991
|
-
return [4
|
|
2437
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1992
2438
|
case 3:
|
|
1993
2439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1994
|
-
return [3
|
|
2440
|
+
return [3, 11];
|
|
1995
2441
|
case 4:
|
|
1996
2442
|
_d = [{}];
|
|
1997
|
-
return [4
|
|
2443
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1998
2444
|
case 5:
|
|
1999
2445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2000
|
-
return [3
|
|
2446
|
+
return [3, 11];
|
|
2001
2447
|
case 6:
|
|
2002
2448
|
_e = [{}];
|
|
2003
|
-
return [4
|
|
2449
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2004
2450
|
case 7:
|
|
2005
2451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2006
|
-
return [3
|
|
2452
|
+
return [3, 11];
|
|
2007
2453
|
case 8:
|
|
2008
2454
|
_f = [{}];
|
|
2009
|
-
return [4
|
|
2455
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2010
2456
|
case 9:
|
|
2011
2457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2012
|
-
return [3
|
|
2458
|
+
return [3, 11];
|
|
2013
2459
|
case 10:
|
|
2014
2460
|
parsedBody = parsedOutput.body;
|
|
2015
2461
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2019,7 +2465,7 @@ var deserializeAws_restJson1GetRevisionCommandError = function (output, context)
|
|
|
2019
2465
|
message = response.message || response.Message || errorCode;
|
|
2020
2466
|
response.message = message;
|
|
2021
2467
|
delete response.Message;
|
|
2022
|
-
return [2
|
|
2468
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2023
2469
|
}
|
|
2024
2470
|
});
|
|
2025
2471
|
}); };
|
|
@@ -2029,7 +2475,7 @@ export var deserializeAws_restJson1ListDataSetRevisionsCommand = function (outpu
|
|
|
2029
2475
|
switch (_c.label) {
|
|
2030
2476
|
case 0:
|
|
2031
2477
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2032
|
-
return [2
|
|
2478
|
+
return [2, deserializeAws_restJson1ListDataSetRevisionsCommandError(output, context)];
|
|
2033
2479
|
}
|
|
2034
2480
|
contents = {
|
|
2035
2481
|
$metadata: deserializeMetadata(output),
|
|
@@ -2038,7 +2484,7 @@ export var deserializeAws_restJson1ListDataSetRevisionsCommand = function (outpu
|
|
|
2038
2484
|
};
|
|
2039
2485
|
_a = __expectNonNull;
|
|
2040
2486
|
_b = __expectObject;
|
|
2041
|
-
return [4
|
|
2487
|
+
return [4, parseBody(output.body, context)];
|
|
2042
2488
|
case 1:
|
|
2043
2489
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2044
2490
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -2047,7 +2493,7 @@ export var deserializeAws_restJson1ListDataSetRevisionsCommand = function (outpu
|
|
|
2047
2493
|
if (data.Revisions !== undefined && data.Revisions !== null) {
|
|
2048
2494
|
contents.Revisions = deserializeAws_restJson1ListOfRevisionEntry(data.Revisions, context);
|
|
2049
2495
|
}
|
|
2050
|
-
return [2
|
|
2496
|
+
return [2, Promise.resolve(contents)];
|
|
2051
2497
|
}
|
|
2052
2498
|
});
|
|
2053
2499
|
}); };
|
|
@@ -2059,47 +2505,47 @@ var deserializeAws_restJson1ListDataSetRevisionsCommandError = function (output,
|
|
|
2059
2505
|
case 0:
|
|
2060
2506
|
_a = [__assign({}, output)];
|
|
2061
2507
|
_g = {};
|
|
2062
|
-
return [4
|
|
2508
|
+
return [4, parseBody(output.body, context)];
|
|
2063
2509
|
case 1:
|
|
2064
2510
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2065
2511
|
errorCode = "UnknownError";
|
|
2066
2512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
2513
|
_b = errorCode;
|
|
2068
2514
|
switch (_b) {
|
|
2069
|
-
case "InternalServerException": return [3
|
|
2070
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
2071
|
-
case "ResourceNotFoundException": return [3
|
|
2072
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
2073
|
-
case "ThrottlingException": return [3
|
|
2074
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
2075
|
-
case "ValidationException": return [3
|
|
2076
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
2077
|
-
}
|
|
2078
|
-
return [3
|
|
2515
|
+
case "InternalServerException": return [3, 2];
|
|
2516
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2517
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2518
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2519
|
+
case "ThrottlingException": return [3, 6];
|
|
2520
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2521
|
+
case "ValidationException": return [3, 8];
|
|
2522
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2523
|
+
}
|
|
2524
|
+
return [3, 10];
|
|
2079
2525
|
case 2:
|
|
2080
2526
|
_c = [{}];
|
|
2081
|
-
return [4
|
|
2527
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2082
2528
|
case 3:
|
|
2083
2529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2084
|
-
return [3
|
|
2530
|
+
return [3, 11];
|
|
2085
2531
|
case 4:
|
|
2086
2532
|
_d = [{}];
|
|
2087
|
-
return [4
|
|
2533
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2088
2534
|
case 5:
|
|
2089
2535
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2090
|
-
return [3
|
|
2536
|
+
return [3, 11];
|
|
2091
2537
|
case 6:
|
|
2092
2538
|
_e = [{}];
|
|
2093
|
-
return [4
|
|
2539
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2094
2540
|
case 7:
|
|
2095
2541
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2096
|
-
return [3
|
|
2542
|
+
return [3, 11];
|
|
2097
2543
|
case 8:
|
|
2098
2544
|
_f = [{}];
|
|
2099
|
-
return [4
|
|
2545
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2100
2546
|
case 9:
|
|
2101
2547
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2102
|
-
return [3
|
|
2548
|
+
return [3, 11];
|
|
2103
2549
|
case 10:
|
|
2104
2550
|
parsedBody = parsedOutput.body;
|
|
2105
2551
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2109,7 +2555,7 @@ var deserializeAws_restJson1ListDataSetRevisionsCommandError = function (output,
|
|
|
2109
2555
|
message = response.message || response.Message || errorCode;
|
|
2110
2556
|
response.message = message;
|
|
2111
2557
|
delete response.Message;
|
|
2112
|
-
return [2
|
|
2558
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2113
2559
|
}
|
|
2114
2560
|
});
|
|
2115
2561
|
}); };
|
|
@@ -2119,7 +2565,7 @@ export var deserializeAws_restJson1ListDataSetsCommand = function (output, conte
|
|
|
2119
2565
|
switch (_c.label) {
|
|
2120
2566
|
case 0:
|
|
2121
2567
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2122
|
-
return [2
|
|
2568
|
+
return [2, deserializeAws_restJson1ListDataSetsCommandError(output, context)];
|
|
2123
2569
|
}
|
|
2124
2570
|
contents = {
|
|
2125
2571
|
$metadata: deserializeMetadata(output),
|
|
@@ -2128,7 +2574,7 @@ export var deserializeAws_restJson1ListDataSetsCommand = function (output, conte
|
|
|
2128
2574
|
};
|
|
2129
2575
|
_a = __expectNonNull;
|
|
2130
2576
|
_b = __expectObject;
|
|
2131
|
-
return [4
|
|
2577
|
+
return [4, parseBody(output.body, context)];
|
|
2132
2578
|
case 1:
|
|
2133
2579
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2134
2580
|
if (data.DataSets !== undefined && data.DataSets !== null) {
|
|
@@ -2137,7 +2583,7 @@ export var deserializeAws_restJson1ListDataSetsCommand = function (output, conte
|
|
|
2137
2583
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2138
2584
|
contents.NextToken = __expectString(data.NextToken);
|
|
2139
2585
|
}
|
|
2140
|
-
return [2
|
|
2586
|
+
return [2, Promise.resolve(contents)];
|
|
2141
2587
|
}
|
|
2142
2588
|
});
|
|
2143
2589
|
}); };
|
|
@@ -2149,47 +2595,137 @@ var deserializeAws_restJson1ListDataSetsCommandError = function (output, context
|
|
|
2149
2595
|
case 0:
|
|
2150
2596
|
_a = [__assign({}, output)];
|
|
2151
2597
|
_g = {};
|
|
2152
|
-
return [4
|
|
2598
|
+
return [4, parseBody(output.body, context)];
|
|
2599
|
+
case 1:
|
|
2600
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2601
|
+
errorCode = "UnknownError";
|
|
2602
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2603
|
+
_b = errorCode;
|
|
2604
|
+
switch (_b) {
|
|
2605
|
+
case "InternalServerException": return [3, 2];
|
|
2606
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2607
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2608
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2609
|
+
case "ThrottlingException": return [3, 6];
|
|
2610
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2611
|
+
case "ValidationException": return [3, 8];
|
|
2612
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2613
|
+
}
|
|
2614
|
+
return [3, 10];
|
|
2615
|
+
case 2:
|
|
2616
|
+
_c = [{}];
|
|
2617
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2618
|
+
case 3:
|
|
2619
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2620
|
+
return [3, 11];
|
|
2621
|
+
case 4:
|
|
2622
|
+
_d = [{}];
|
|
2623
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2624
|
+
case 5:
|
|
2625
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2626
|
+
return [3, 11];
|
|
2627
|
+
case 6:
|
|
2628
|
+
_e = [{}];
|
|
2629
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2630
|
+
case 7:
|
|
2631
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2632
|
+
return [3, 11];
|
|
2633
|
+
case 8:
|
|
2634
|
+
_f = [{}];
|
|
2635
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2636
|
+
case 9:
|
|
2637
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2638
|
+
return [3, 11];
|
|
2639
|
+
case 10:
|
|
2640
|
+
parsedBody = parsedOutput.body;
|
|
2641
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2642
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2643
|
+
_h.label = 11;
|
|
2644
|
+
case 11:
|
|
2645
|
+
message = response.message || response.Message || errorCode;
|
|
2646
|
+
response.message = message;
|
|
2647
|
+
delete response.Message;
|
|
2648
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2649
|
+
}
|
|
2650
|
+
});
|
|
2651
|
+
}); };
|
|
2652
|
+
export var deserializeAws_restJson1ListEventActionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2653
|
+
var contents, data, _a, _b;
|
|
2654
|
+
return __generator(this, function (_c) {
|
|
2655
|
+
switch (_c.label) {
|
|
2656
|
+
case 0:
|
|
2657
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2658
|
+
return [2, deserializeAws_restJson1ListEventActionsCommandError(output, context)];
|
|
2659
|
+
}
|
|
2660
|
+
contents = {
|
|
2661
|
+
$metadata: deserializeMetadata(output),
|
|
2662
|
+
EventActions: undefined,
|
|
2663
|
+
NextToken: undefined,
|
|
2664
|
+
};
|
|
2665
|
+
_a = __expectNonNull;
|
|
2666
|
+
_b = __expectObject;
|
|
2667
|
+
return [4, parseBody(output.body, context)];
|
|
2668
|
+
case 1:
|
|
2669
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2670
|
+
if (data.EventActions !== undefined && data.EventActions !== null) {
|
|
2671
|
+
contents.EventActions = deserializeAws_restJson1ListOfEventActionEntry(data.EventActions, context);
|
|
2672
|
+
}
|
|
2673
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2674
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2675
|
+
}
|
|
2676
|
+
return [2, Promise.resolve(contents)];
|
|
2677
|
+
}
|
|
2678
|
+
});
|
|
2679
|
+
}); };
|
|
2680
|
+
var deserializeAws_restJson1ListEventActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2681
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2682
|
+
var _g;
|
|
2683
|
+
return __generator(this, function (_h) {
|
|
2684
|
+
switch (_h.label) {
|
|
2685
|
+
case 0:
|
|
2686
|
+
_a = [__assign({}, output)];
|
|
2687
|
+
_g = {};
|
|
2688
|
+
return [4, parseBody(output.body, context)];
|
|
2153
2689
|
case 1:
|
|
2154
2690
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2155
2691
|
errorCode = "UnknownError";
|
|
2156
2692
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
2693
|
_b = errorCode;
|
|
2158
2694
|
switch (_b) {
|
|
2159
|
-
case "InternalServerException": return [3
|
|
2160
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
2161
|
-
case "ResourceNotFoundException": return [3
|
|
2162
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
2163
|
-
case "ThrottlingException": return [3
|
|
2164
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
2165
|
-
case "ValidationException": return [3
|
|
2166
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
2167
|
-
}
|
|
2168
|
-
return [3
|
|
2695
|
+
case "InternalServerException": return [3, 2];
|
|
2696
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2697
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2698
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2699
|
+
case "ThrottlingException": return [3, 6];
|
|
2700
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2701
|
+
case "ValidationException": return [3, 8];
|
|
2702
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2703
|
+
}
|
|
2704
|
+
return [3, 10];
|
|
2169
2705
|
case 2:
|
|
2170
2706
|
_c = [{}];
|
|
2171
|
-
return [4
|
|
2707
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2172
2708
|
case 3:
|
|
2173
2709
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2174
|
-
return [3
|
|
2710
|
+
return [3, 11];
|
|
2175
2711
|
case 4:
|
|
2176
2712
|
_d = [{}];
|
|
2177
|
-
return [4
|
|
2713
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2178
2714
|
case 5:
|
|
2179
2715
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2180
|
-
return [3
|
|
2716
|
+
return [3, 11];
|
|
2181
2717
|
case 6:
|
|
2182
2718
|
_e = [{}];
|
|
2183
|
-
return [4
|
|
2719
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2184
2720
|
case 7:
|
|
2185
2721
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2186
|
-
return [3
|
|
2722
|
+
return [3, 11];
|
|
2187
2723
|
case 8:
|
|
2188
2724
|
_f = [{}];
|
|
2189
|
-
return [4
|
|
2725
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2190
2726
|
case 9:
|
|
2191
2727
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2192
|
-
return [3
|
|
2728
|
+
return [3, 11];
|
|
2193
2729
|
case 10:
|
|
2194
2730
|
parsedBody = parsedOutput.body;
|
|
2195
2731
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2199,7 +2735,7 @@ var deserializeAws_restJson1ListDataSetsCommandError = function (output, context
|
|
|
2199
2735
|
message = response.message || response.Message || errorCode;
|
|
2200
2736
|
response.message = message;
|
|
2201
2737
|
delete response.Message;
|
|
2202
|
-
return [2
|
|
2738
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2203
2739
|
}
|
|
2204
2740
|
});
|
|
2205
2741
|
}); };
|
|
@@ -2209,7 +2745,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
2209
2745
|
switch (_c.label) {
|
|
2210
2746
|
case 0:
|
|
2211
2747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2212
|
-
return [2
|
|
2748
|
+
return [2, deserializeAws_restJson1ListJobsCommandError(output, context)];
|
|
2213
2749
|
}
|
|
2214
2750
|
contents = {
|
|
2215
2751
|
$metadata: deserializeMetadata(output),
|
|
@@ -2218,7 +2754,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
2218
2754
|
};
|
|
2219
2755
|
_a = __expectNonNull;
|
|
2220
2756
|
_b = __expectObject;
|
|
2221
|
-
return [4
|
|
2757
|
+
return [4, parseBody(output.body, context)];
|
|
2222
2758
|
case 1:
|
|
2223
2759
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2224
2760
|
if (data.Jobs !== undefined && data.Jobs !== null) {
|
|
@@ -2227,7 +2763,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
2227
2763
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2228
2764
|
contents.NextToken = __expectString(data.NextToken);
|
|
2229
2765
|
}
|
|
2230
|
-
return [2
|
|
2766
|
+
return [2, Promise.resolve(contents)];
|
|
2231
2767
|
}
|
|
2232
2768
|
});
|
|
2233
2769
|
}); };
|
|
@@ -2239,47 +2775,47 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
2239
2775
|
case 0:
|
|
2240
2776
|
_a = [__assign({}, output)];
|
|
2241
2777
|
_g = {};
|
|
2242
|
-
return [4
|
|
2778
|
+
return [4, parseBody(output.body, context)];
|
|
2243
2779
|
case 1:
|
|
2244
2780
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2245
2781
|
errorCode = "UnknownError";
|
|
2246
2782
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
2783
|
_b = errorCode;
|
|
2248
2784
|
switch (_b) {
|
|
2249
|
-
case "InternalServerException": return [3
|
|
2250
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
2251
|
-
case "ResourceNotFoundException": return [3
|
|
2252
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
2253
|
-
case "ThrottlingException": return [3
|
|
2254
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
2255
|
-
case "ValidationException": return [3
|
|
2256
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
2257
|
-
}
|
|
2258
|
-
return [3
|
|
2785
|
+
case "InternalServerException": return [3, 2];
|
|
2786
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2787
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2788
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2789
|
+
case "ThrottlingException": return [3, 6];
|
|
2790
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2791
|
+
case "ValidationException": return [3, 8];
|
|
2792
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2793
|
+
}
|
|
2794
|
+
return [3, 10];
|
|
2259
2795
|
case 2:
|
|
2260
2796
|
_c = [{}];
|
|
2261
|
-
return [4
|
|
2797
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2262
2798
|
case 3:
|
|
2263
2799
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2264
|
-
return [3
|
|
2800
|
+
return [3, 11];
|
|
2265
2801
|
case 4:
|
|
2266
2802
|
_d = [{}];
|
|
2267
|
-
return [4
|
|
2803
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2268
2804
|
case 5:
|
|
2269
2805
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2270
|
-
return [3
|
|
2806
|
+
return [3, 11];
|
|
2271
2807
|
case 6:
|
|
2272
2808
|
_e = [{}];
|
|
2273
|
-
return [4
|
|
2809
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2274
2810
|
case 7:
|
|
2275
2811
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2276
|
-
return [3
|
|
2812
|
+
return [3, 11];
|
|
2277
2813
|
case 8:
|
|
2278
2814
|
_f = [{}];
|
|
2279
|
-
return [4
|
|
2815
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2280
2816
|
case 9:
|
|
2281
2817
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2282
|
-
return [3
|
|
2818
|
+
return [3, 11];
|
|
2283
2819
|
case 10:
|
|
2284
2820
|
parsedBody = parsedOutput.body;
|
|
2285
2821
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2289,7 +2825,7 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
2289
2825
|
message = response.message || response.Message || errorCode;
|
|
2290
2826
|
response.message = message;
|
|
2291
2827
|
delete response.Message;
|
|
2292
|
-
return [2
|
|
2828
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2293
2829
|
}
|
|
2294
2830
|
});
|
|
2295
2831
|
}); };
|
|
@@ -2299,7 +2835,7 @@ export var deserializeAws_restJson1ListRevisionAssetsCommand = function (output,
|
|
|
2299
2835
|
switch (_c.label) {
|
|
2300
2836
|
case 0:
|
|
2301
2837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2302
|
-
return [2
|
|
2838
|
+
return [2, deserializeAws_restJson1ListRevisionAssetsCommandError(output, context)];
|
|
2303
2839
|
}
|
|
2304
2840
|
contents = {
|
|
2305
2841
|
$metadata: deserializeMetadata(output),
|
|
@@ -2308,7 +2844,7 @@ export var deserializeAws_restJson1ListRevisionAssetsCommand = function (output,
|
|
|
2308
2844
|
};
|
|
2309
2845
|
_a = __expectNonNull;
|
|
2310
2846
|
_b = __expectObject;
|
|
2311
|
-
return [4
|
|
2847
|
+
return [4, parseBody(output.body, context)];
|
|
2312
2848
|
case 1:
|
|
2313
2849
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2314
2850
|
if (data.Assets !== undefined && data.Assets !== null) {
|
|
@@ -2317,7 +2853,7 @@ export var deserializeAws_restJson1ListRevisionAssetsCommand = function (output,
|
|
|
2317
2853
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2318
2854
|
contents.NextToken = __expectString(data.NextToken);
|
|
2319
2855
|
}
|
|
2320
|
-
return [2
|
|
2856
|
+
return [2, Promise.resolve(contents)];
|
|
2321
2857
|
}
|
|
2322
2858
|
});
|
|
2323
2859
|
}); };
|
|
@@ -2329,47 +2865,47 @@ var deserializeAws_restJson1ListRevisionAssetsCommandError = function (output, c
|
|
|
2329
2865
|
case 0:
|
|
2330
2866
|
_a = [__assign({}, output)];
|
|
2331
2867
|
_g = {};
|
|
2332
|
-
return [4
|
|
2868
|
+
return [4, parseBody(output.body, context)];
|
|
2333
2869
|
case 1:
|
|
2334
2870
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2335
2871
|
errorCode = "UnknownError";
|
|
2336
2872
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2337
2873
|
_b = errorCode;
|
|
2338
2874
|
switch (_b) {
|
|
2339
|
-
case "InternalServerException": return [3
|
|
2340
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
2341
|
-
case "ResourceNotFoundException": return [3
|
|
2342
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
2343
|
-
case "ThrottlingException": return [3
|
|
2344
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
2345
|
-
case "ValidationException": return [3
|
|
2346
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
2347
|
-
}
|
|
2348
|
-
return [3
|
|
2875
|
+
case "InternalServerException": return [3, 2];
|
|
2876
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 2];
|
|
2877
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2878
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 4];
|
|
2879
|
+
case "ThrottlingException": return [3, 6];
|
|
2880
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 6];
|
|
2881
|
+
case "ValidationException": return [3, 8];
|
|
2882
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 8];
|
|
2883
|
+
}
|
|
2884
|
+
return [3, 10];
|
|
2349
2885
|
case 2:
|
|
2350
2886
|
_c = [{}];
|
|
2351
|
-
return [4
|
|
2887
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2352
2888
|
case 3:
|
|
2353
2889
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2354
|
-
return [3
|
|
2890
|
+
return [3, 11];
|
|
2355
2891
|
case 4:
|
|
2356
2892
|
_d = [{}];
|
|
2357
|
-
return [4
|
|
2893
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2358
2894
|
case 5:
|
|
2359
2895
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2360
|
-
return [3
|
|
2896
|
+
return [3, 11];
|
|
2361
2897
|
case 6:
|
|
2362
2898
|
_e = [{}];
|
|
2363
|
-
return [4
|
|
2899
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2364
2900
|
case 7:
|
|
2365
2901
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2366
|
-
return [3
|
|
2902
|
+
return [3, 11];
|
|
2367
2903
|
case 8:
|
|
2368
2904
|
_f = [{}];
|
|
2369
|
-
return [4
|
|
2905
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2370
2906
|
case 9:
|
|
2371
2907
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2372
|
-
return [3
|
|
2908
|
+
return [3, 11];
|
|
2373
2909
|
case 10:
|
|
2374
2910
|
parsedBody = parsedOutput.body;
|
|
2375
2911
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2379,7 +2915,7 @@ var deserializeAws_restJson1ListRevisionAssetsCommandError = function (output, c
|
|
|
2379
2915
|
message = response.message || response.Message || errorCode;
|
|
2380
2916
|
response.message = message;
|
|
2381
2917
|
delete response.Message;
|
|
2382
|
-
return [2
|
|
2918
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2383
2919
|
}
|
|
2384
2920
|
});
|
|
2385
2921
|
}); };
|
|
@@ -2389,7 +2925,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2389
2925
|
switch (_c.label) {
|
|
2390
2926
|
case 0:
|
|
2391
2927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2392
|
-
return [2
|
|
2928
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2393
2929
|
}
|
|
2394
2930
|
contents = {
|
|
2395
2931
|
$metadata: deserializeMetadata(output),
|
|
@@ -2397,13 +2933,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2397
2933
|
};
|
|
2398
2934
|
_a = __expectNonNull;
|
|
2399
2935
|
_b = __expectObject;
|
|
2400
|
-
return [4
|
|
2936
|
+
return [4, parseBody(output.body, context)];
|
|
2401
2937
|
case 1:
|
|
2402
2938
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2403
2939
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2404
2940
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.tags, context);
|
|
2405
2941
|
}
|
|
2406
|
-
return [2
|
|
2942
|
+
return [2, Promise.resolve(contents)];
|
|
2407
2943
|
}
|
|
2408
2944
|
});
|
|
2409
2945
|
}); };
|
|
@@ -2415,7 +2951,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2415
2951
|
case 0:
|
|
2416
2952
|
_a = [__assign({}, output)];
|
|
2417
2953
|
_b = {};
|
|
2418
|
-
return [4
|
|
2954
|
+
return [4, parseBody(output.body, context)];
|
|
2419
2955
|
case 1:
|
|
2420
2956
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2421
2957
|
errorCode = "UnknownError";
|
|
@@ -2429,7 +2965,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2429
2965
|
message = response.message || response.Message || errorCode;
|
|
2430
2966
|
response.message = message;
|
|
2431
2967
|
delete response.Message;
|
|
2432
|
-
return [2
|
|
2968
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2433
2969
|
}
|
|
2434
2970
|
});
|
|
2435
2971
|
}); };
|
|
@@ -2439,15 +2975,15 @@ export var deserializeAws_restJson1StartJobCommand = function (output, context)
|
|
|
2439
2975
|
switch (_a.label) {
|
|
2440
2976
|
case 0:
|
|
2441
2977
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2442
|
-
return [2
|
|
2978
|
+
return [2, deserializeAws_restJson1StartJobCommandError(output, context)];
|
|
2443
2979
|
}
|
|
2444
2980
|
contents = {
|
|
2445
2981
|
$metadata: deserializeMetadata(output),
|
|
2446
2982
|
};
|
|
2447
|
-
return [4
|
|
2983
|
+
return [4, collectBody(output.body, context)];
|
|
2448
2984
|
case 1:
|
|
2449
2985
|
_a.sent();
|
|
2450
|
-
return [2
|
|
2986
|
+
return [2, Promise.resolve(contents)];
|
|
2451
2987
|
}
|
|
2452
2988
|
});
|
|
2453
2989
|
}); };
|
|
@@ -2459,63 +2995,63 @@ var deserializeAws_restJson1StartJobCommandError = function (output, context) {
|
|
|
2459
2995
|
case 0:
|
|
2460
2996
|
_a = [__assign({}, output)];
|
|
2461
2997
|
_j = {};
|
|
2462
|
-
return [4
|
|
2998
|
+
return [4, parseBody(output.body, context)];
|
|
2463
2999
|
case 1:
|
|
2464
3000
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2465
3001
|
errorCode = "UnknownError";
|
|
2466
3002
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
3003
|
_b = errorCode;
|
|
2468
3004
|
switch (_b) {
|
|
2469
|
-
case "AccessDeniedException": return [3
|
|
2470
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
2471
|
-
case "ConflictException": return [3
|
|
2472
|
-
case "com.amazonaws.dataexchange#ConflictException": return [3
|
|
2473
|
-
case "InternalServerException": return [3
|
|
2474
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
2475
|
-
case "ResourceNotFoundException": return [3
|
|
2476
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
2477
|
-
case "ThrottlingException": return [3
|
|
2478
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
2479
|
-
case "ValidationException": return [3
|
|
2480
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
2481
|
-
}
|
|
2482
|
-
return [3
|
|
3005
|
+
case "AccessDeniedException": return [3, 2];
|
|
3006
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
3007
|
+
case "ConflictException": return [3, 4];
|
|
3008
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 4];
|
|
3009
|
+
case "InternalServerException": return [3, 6];
|
|
3010
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 6];
|
|
3011
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3012
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 8];
|
|
3013
|
+
case "ThrottlingException": return [3, 10];
|
|
3014
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 10];
|
|
3015
|
+
case "ValidationException": return [3, 12];
|
|
3016
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 12];
|
|
3017
|
+
}
|
|
3018
|
+
return [3, 14];
|
|
2483
3019
|
case 2:
|
|
2484
3020
|
_c = [{}];
|
|
2485
|
-
return [4
|
|
3021
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2486
3022
|
case 3:
|
|
2487
3023
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2488
|
-
return [3
|
|
3024
|
+
return [3, 15];
|
|
2489
3025
|
case 4:
|
|
2490
3026
|
_d = [{}];
|
|
2491
|
-
return [4
|
|
3027
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2492
3028
|
case 5:
|
|
2493
3029
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2494
|
-
return [3
|
|
3030
|
+
return [3, 15];
|
|
2495
3031
|
case 6:
|
|
2496
3032
|
_e = [{}];
|
|
2497
|
-
return [4
|
|
3033
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2498
3034
|
case 7:
|
|
2499
3035
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2500
|
-
return [3
|
|
3036
|
+
return [3, 15];
|
|
2501
3037
|
case 8:
|
|
2502
3038
|
_f = [{}];
|
|
2503
|
-
return [4
|
|
3039
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2504
3040
|
case 9:
|
|
2505
3041
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2506
|
-
return [3
|
|
3042
|
+
return [3, 15];
|
|
2507
3043
|
case 10:
|
|
2508
3044
|
_g = [{}];
|
|
2509
|
-
return [4
|
|
3045
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2510
3046
|
case 11:
|
|
2511
3047
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2512
|
-
return [3
|
|
3048
|
+
return [3, 15];
|
|
2513
3049
|
case 12:
|
|
2514
3050
|
_h = [{}];
|
|
2515
|
-
return [4
|
|
3051
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2516
3052
|
case 13:
|
|
2517
3053
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2518
|
-
return [3
|
|
3054
|
+
return [3, 15];
|
|
2519
3055
|
case 14:
|
|
2520
3056
|
parsedBody = parsedOutput.body;
|
|
2521
3057
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2525,7 +3061,7 @@ var deserializeAws_restJson1StartJobCommandError = function (output, context) {
|
|
|
2525
3061
|
message = response.message || response.Message || errorCode;
|
|
2526
3062
|
response.message = message;
|
|
2527
3063
|
delete response.Message;
|
|
2528
|
-
return [2
|
|
3064
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2529
3065
|
}
|
|
2530
3066
|
});
|
|
2531
3067
|
}); };
|
|
@@ -2535,15 +3071,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2535
3071
|
switch (_a.label) {
|
|
2536
3072
|
case 0:
|
|
2537
3073
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2538
|
-
return [2
|
|
3074
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2539
3075
|
}
|
|
2540
3076
|
contents = {
|
|
2541
3077
|
$metadata: deserializeMetadata(output),
|
|
2542
3078
|
};
|
|
2543
|
-
return [4
|
|
3079
|
+
return [4, collectBody(output.body, context)];
|
|
2544
3080
|
case 1:
|
|
2545
3081
|
_a.sent();
|
|
2546
|
-
return [2
|
|
3082
|
+
return [2, Promise.resolve(contents)];
|
|
2547
3083
|
}
|
|
2548
3084
|
});
|
|
2549
3085
|
}); };
|
|
@@ -2555,7 +3091,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2555
3091
|
case 0:
|
|
2556
3092
|
_a = [__assign({}, output)];
|
|
2557
3093
|
_b = {};
|
|
2558
|
-
return [4
|
|
3094
|
+
return [4, parseBody(output.body, context)];
|
|
2559
3095
|
case 1:
|
|
2560
3096
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2561
3097
|
errorCode = "UnknownError";
|
|
@@ -2569,7 +3105,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2569
3105
|
message = response.message || response.Message || errorCode;
|
|
2570
3106
|
response.message = message;
|
|
2571
3107
|
delete response.Message;
|
|
2572
|
-
return [2
|
|
3108
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2573
3109
|
}
|
|
2574
3110
|
});
|
|
2575
3111
|
}); };
|
|
@@ -2579,15 +3115,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2579
3115
|
switch (_a.label) {
|
|
2580
3116
|
case 0:
|
|
2581
3117
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2582
|
-
return [2
|
|
3118
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2583
3119
|
}
|
|
2584
3120
|
contents = {
|
|
2585
3121
|
$metadata: deserializeMetadata(output),
|
|
2586
3122
|
};
|
|
2587
|
-
return [4
|
|
3123
|
+
return [4, collectBody(output.body, context)];
|
|
2588
3124
|
case 1:
|
|
2589
3125
|
_a.sent();
|
|
2590
|
-
return [2
|
|
3126
|
+
return [2, Promise.resolve(contents)];
|
|
2591
3127
|
}
|
|
2592
3128
|
});
|
|
2593
3129
|
}); };
|
|
@@ -2599,7 +3135,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2599
3135
|
case 0:
|
|
2600
3136
|
_a = [__assign({}, output)];
|
|
2601
3137
|
_b = {};
|
|
2602
|
-
return [4
|
|
3138
|
+
return [4, parseBody(output.body, context)];
|
|
2603
3139
|
case 1:
|
|
2604
3140
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2605
3141
|
errorCode = "UnknownError";
|
|
@@ -2613,7 +3149,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2613
3149
|
message = response.message || response.Message || errorCode;
|
|
2614
3150
|
response.message = message;
|
|
2615
3151
|
delete response.Message;
|
|
2616
|
-
return [2
|
|
3152
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2617
3153
|
}
|
|
2618
3154
|
});
|
|
2619
3155
|
}); };
|
|
@@ -2623,7 +3159,7 @@ export var deserializeAws_restJson1UpdateAssetCommand = function (output, contex
|
|
|
2623
3159
|
switch (_c.label) {
|
|
2624
3160
|
case 0:
|
|
2625
3161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2626
|
-
return [2
|
|
3162
|
+
return [2, deserializeAws_restJson1UpdateAssetCommandError(output, context)];
|
|
2627
3163
|
}
|
|
2628
3164
|
contents = {
|
|
2629
3165
|
$metadata: deserializeMetadata(output),
|
|
@@ -2640,7 +3176,7 @@ export var deserializeAws_restJson1UpdateAssetCommand = function (output, contex
|
|
|
2640
3176
|
};
|
|
2641
3177
|
_a = __expectNonNull;
|
|
2642
3178
|
_b = __expectObject;
|
|
2643
|
-
return [4
|
|
3179
|
+
return [4, parseBody(output.body, context)];
|
|
2644
3180
|
case 1:
|
|
2645
3181
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2646
3182
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -2673,7 +3209,7 @@ export var deserializeAws_restJson1UpdateAssetCommand = function (output, contex
|
|
|
2673
3209
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2674
3210
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
2675
3211
|
}
|
|
2676
|
-
return [2
|
|
3212
|
+
return [2, Promise.resolve(contents)];
|
|
2677
3213
|
}
|
|
2678
3214
|
});
|
|
2679
3215
|
}); };
|
|
@@ -2685,63 +3221,63 @@ var deserializeAws_restJson1UpdateAssetCommandError = function (output, context)
|
|
|
2685
3221
|
case 0:
|
|
2686
3222
|
_a = [__assign({}, output)];
|
|
2687
3223
|
_j = {};
|
|
2688
|
-
return [4
|
|
3224
|
+
return [4, parseBody(output.body, context)];
|
|
2689
3225
|
case 1:
|
|
2690
3226
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2691
3227
|
errorCode = "UnknownError";
|
|
2692
3228
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2693
3229
|
_b = errorCode;
|
|
2694
3230
|
switch (_b) {
|
|
2695
|
-
case "AccessDeniedException": return [3
|
|
2696
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
2697
|
-
case "ConflictException": return [3
|
|
2698
|
-
case "com.amazonaws.dataexchange#ConflictException": return [3
|
|
2699
|
-
case "InternalServerException": return [3
|
|
2700
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
2701
|
-
case "ResourceNotFoundException": return [3
|
|
2702
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
2703
|
-
case "ThrottlingException": return [3
|
|
2704
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
2705
|
-
case "ValidationException": return [3
|
|
2706
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
2707
|
-
}
|
|
2708
|
-
return [3
|
|
3231
|
+
case "AccessDeniedException": return [3, 2];
|
|
3232
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
3233
|
+
case "ConflictException": return [3, 4];
|
|
3234
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 4];
|
|
3235
|
+
case "InternalServerException": return [3, 6];
|
|
3236
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 6];
|
|
3237
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3238
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 8];
|
|
3239
|
+
case "ThrottlingException": return [3, 10];
|
|
3240
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 10];
|
|
3241
|
+
case "ValidationException": return [3, 12];
|
|
3242
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 12];
|
|
3243
|
+
}
|
|
3244
|
+
return [3, 14];
|
|
2709
3245
|
case 2:
|
|
2710
3246
|
_c = [{}];
|
|
2711
|
-
return [4
|
|
3247
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2712
3248
|
case 3:
|
|
2713
3249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2714
|
-
return [3
|
|
3250
|
+
return [3, 15];
|
|
2715
3251
|
case 4:
|
|
2716
3252
|
_d = [{}];
|
|
2717
|
-
return [4
|
|
3253
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2718
3254
|
case 5:
|
|
2719
3255
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2720
|
-
return [3
|
|
3256
|
+
return [3, 15];
|
|
2721
3257
|
case 6:
|
|
2722
3258
|
_e = [{}];
|
|
2723
|
-
return [4
|
|
3259
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2724
3260
|
case 7:
|
|
2725
3261
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2726
|
-
return [3
|
|
3262
|
+
return [3, 15];
|
|
2727
3263
|
case 8:
|
|
2728
3264
|
_f = [{}];
|
|
2729
|
-
return [4
|
|
3265
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2730
3266
|
case 9:
|
|
2731
3267
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2732
|
-
return [3
|
|
3268
|
+
return [3, 15];
|
|
2733
3269
|
case 10:
|
|
2734
3270
|
_g = [{}];
|
|
2735
|
-
return [4
|
|
3271
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2736
3272
|
case 11:
|
|
2737
3273
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2738
|
-
return [3
|
|
3274
|
+
return [3, 15];
|
|
2739
3275
|
case 12:
|
|
2740
3276
|
_h = [{}];
|
|
2741
|
-
return [4
|
|
3277
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2742
3278
|
case 13:
|
|
2743
3279
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2744
|
-
return [3
|
|
3280
|
+
return [3, 15];
|
|
2745
3281
|
case 14:
|
|
2746
3282
|
parsedBody = parsedOutput.body;
|
|
2747
3283
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2751,7 +3287,7 @@ var deserializeAws_restJson1UpdateAssetCommandError = function (output, context)
|
|
|
2751
3287
|
message = response.message || response.Message || errorCode;
|
|
2752
3288
|
response.message = message;
|
|
2753
3289
|
delete response.Message;
|
|
2754
|
-
return [2
|
|
3290
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2755
3291
|
}
|
|
2756
3292
|
});
|
|
2757
3293
|
}); };
|
|
@@ -2761,7 +3297,7 @@ export var deserializeAws_restJson1UpdateDataSetCommand = function (output, cont
|
|
|
2761
3297
|
switch (_c.label) {
|
|
2762
3298
|
case 0:
|
|
2763
3299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2764
|
-
return [2
|
|
3300
|
+
return [2, deserializeAws_restJson1UpdateDataSetCommandError(output, context)];
|
|
2765
3301
|
}
|
|
2766
3302
|
contents = {
|
|
2767
3303
|
$metadata: deserializeMetadata(output),
|
|
@@ -2778,7 +3314,7 @@ export var deserializeAws_restJson1UpdateDataSetCommand = function (output, cont
|
|
|
2778
3314
|
};
|
|
2779
3315
|
_a = __expectNonNull;
|
|
2780
3316
|
_b = __expectObject;
|
|
2781
|
-
return [4
|
|
3317
|
+
return [4, parseBody(output.body, context)];
|
|
2782
3318
|
case 1:
|
|
2783
3319
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2784
3320
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -2811,7 +3347,7 @@ export var deserializeAws_restJson1UpdateDataSetCommand = function (output, cont
|
|
|
2811
3347
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2812
3348
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
2813
3349
|
}
|
|
2814
|
-
return [2
|
|
3350
|
+
return [2, Promise.resolve(contents)];
|
|
2815
3351
|
}
|
|
2816
3352
|
});
|
|
2817
3353
|
}); };
|
|
@@ -2823,55 +3359,55 @@ var deserializeAws_restJson1UpdateDataSetCommandError = function (output, contex
|
|
|
2823
3359
|
case 0:
|
|
2824
3360
|
_a = [__assign({}, output)];
|
|
2825
3361
|
_h = {};
|
|
2826
|
-
return [4
|
|
3362
|
+
return [4, parseBody(output.body, context)];
|
|
2827
3363
|
case 1:
|
|
2828
3364
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2829
3365
|
errorCode = "UnknownError";
|
|
2830
3366
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2831
3367
|
_b = errorCode;
|
|
2832
3368
|
switch (_b) {
|
|
2833
|
-
case "AccessDeniedException": return [3
|
|
2834
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
2835
|
-
case "InternalServerException": return [3
|
|
2836
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
2837
|
-
case "ResourceNotFoundException": return [3
|
|
2838
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
2839
|
-
case "ThrottlingException": return [3
|
|
2840
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
2841
|
-
case "ValidationException": return [3
|
|
2842
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
2843
|
-
}
|
|
2844
|
-
return [3
|
|
3369
|
+
case "AccessDeniedException": return [3, 2];
|
|
3370
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
3371
|
+
case "InternalServerException": return [3, 4];
|
|
3372
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 4];
|
|
3373
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3374
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 6];
|
|
3375
|
+
case "ThrottlingException": return [3, 8];
|
|
3376
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 8];
|
|
3377
|
+
case "ValidationException": return [3, 10];
|
|
3378
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 10];
|
|
3379
|
+
}
|
|
3380
|
+
return [3, 12];
|
|
2845
3381
|
case 2:
|
|
2846
3382
|
_c = [{}];
|
|
2847
|
-
return [4
|
|
3383
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2848
3384
|
case 3:
|
|
2849
3385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2850
|
-
return [3
|
|
3386
|
+
return [3, 13];
|
|
2851
3387
|
case 4:
|
|
2852
3388
|
_d = [{}];
|
|
2853
|
-
return [4
|
|
3389
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2854
3390
|
case 5:
|
|
2855
3391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2856
|
-
return [3
|
|
3392
|
+
return [3, 13];
|
|
2857
3393
|
case 6:
|
|
2858
3394
|
_e = [{}];
|
|
2859
|
-
return [4
|
|
3395
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2860
3396
|
case 7:
|
|
2861
3397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2862
|
-
return [3
|
|
3398
|
+
return [3, 13];
|
|
2863
3399
|
case 8:
|
|
2864
3400
|
_f = [{}];
|
|
2865
|
-
return [4
|
|
3401
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2866
3402
|
case 9:
|
|
2867
3403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2868
|
-
return [3
|
|
3404
|
+
return [3, 13];
|
|
2869
3405
|
case 10:
|
|
2870
3406
|
_g = [{}];
|
|
2871
|
-
return [4
|
|
3407
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2872
3408
|
case 11:
|
|
2873
3409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2874
|
-
return [3
|
|
3410
|
+
return [3, 13];
|
|
2875
3411
|
case 12:
|
|
2876
3412
|
parsedBody = parsedOutput.body;
|
|
2877
3413
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2881,7 +3417,121 @@ var deserializeAws_restJson1UpdateDataSetCommandError = function (output, contex
|
|
|
2881
3417
|
message = response.message || response.Message || errorCode;
|
|
2882
3418
|
response.message = message;
|
|
2883
3419
|
delete response.Message;
|
|
2884
|
-
return [2
|
|
3420
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3421
|
+
}
|
|
3422
|
+
});
|
|
3423
|
+
}); };
|
|
3424
|
+
export var deserializeAws_restJson1UpdateEventActionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3425
|
+
var contents, data, _a, _b;
|
|
3426
|
+
return __generator(this, function (_c) {
|
|
3427
|
+
switch (_c.label) {
|
|
3428
|
+
case 0:
|
|
3429
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3430
|
+
return [2, deserializeAws_restJson1UpdateEventActionCommandError(output, context)];
|
|
3431
|
+
}
|
|
3432
|
+
contents = {
|
|
3433
|
+
$metadata: deserializeMetadata(output),
|
|
3434
|
+
Action: undefined,
|
|
3435
|
+
Arn: undefined,
|
|
3436
|
+
CreatedAt: undefined,
|
|
3437
|
+
Event: undefined,
|
|
3438
|
+
Id: undefined,
|
|
3439
|
+
UpdatedAt: undefined,
|
|
3440
|
+
};
|
|
3441
|
+
_a = __expectNonNull;
|
|
3442
|
+
_b = __expectObject;
|
|
3443
|
+
return [4, parseBody(output.body, context)];
|
|
3444
|
+
case 1:
|
|
3445
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3446
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
3447
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
3448
|
+
}
|
|
3449
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
3450
|
+
contents.Arn = __expectString(data.Arn);
|
|
3451
|
+
}
|
|
3452
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
3453
|
+
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
|
|
3454
|
+
}
|
|
3455
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
3456
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
3457
|
+
}
|
|
3458
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
3459
|
+
contents.Id = __expectString(data.Id);
|
|
3460
|
+
}
|
|
3461
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
3462
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
3463
|
+
}
|
|
3464
|
+
return [2, Promise.resolve(contents)];
|
|
3465
|
+
}
|
|
3466
|
+
});
|
|
3467
|
+
}); };
|
|
3468
|
+
var deserializeAws_restJson1UpdateEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3469
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3470
|
+
var _h;
|
|
3471
|
+
return __generator(this, function (_j) {
|
|
3472
|
+
switch (_j.label) {
|
|
3473
|
+
case 0:
|
|
3474
|
+
_a = [__assign({}, output)];
|
|
3475
|
+
_h = {};
|
|
3476
|
+
return [4, parseBody(output.body, context)];
|
|
3477
|
+
case 1:
|
|
3478
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3479
|
+
errorCode = "UnknownError";
|
|
3480
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3481
|
+
_b = errorCode;
|
|
3482
|
+
switch (_b) {
|
|
3483
|
+
case "AccessDeniedException": return [3, 2];
|
|
3484
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
3485
|
+
case "InternalServerException": return [3, 4];
|
|
3486
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 4];
|
|
3487
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3488
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 6];
|
|
3489
|
+
case "ThrottlingException": return [3, 8];
|
|
3490
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 8];
|
|
3491
|
+
case "ValidationException": return [3, 10];
|
|
3492
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 10];
|
|
3493
|
+
}
|
|
3494
|
+
return [3, 12];
|
|
3495
|
+
case 2:
|
|
3496
|
+
_c = [{}];
|
|
3497
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3498
|
+
case 3:
|
|
3499
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3500
|
+
return [3, 13];
|
|
3501
|
+
case 4:
|
|
3502
|
+
_d = [{}];
|
|
3503
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3504
|
+
case 5:
|
|
3505
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3506
|
+
return [3, 13];
|
|
3507
|
+
case 6:
|
|
3508
|
+
_e = [{}];
|
|
3509
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3510
|
+
case 7:
|
|
3511
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3512
|
+
return [3, 13];
|
|
3513
|
+
case 8:
|
|
3514
|
+
_f = [{}];
|
|
3515
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3516
|
+
case 9:
|
|
3517
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3518
|
+
return [3, 13];
|
|
3519
|
+
case 10:
|
|
3520
|
+
_g = [{}];
|
|
3521
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3522
|
+
case 11:
|
|
3523
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3524
|
+
return [3, 13];
|
|
3525
|
+
case 12:
|
|
3526
|
+
parsedBody = parsedOutput.body;
|
|
3527
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3528
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3529
|
+
_j.label = 13;
|
|
3530
|
+
case 13:
|
|
3531
|
+
message = response.message || response.Message || errorCode;
|
|
3532
|
+
response.message = message;
|
|
3533
|
+
delete response.Message;
|
|
3534
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2885
3535
|
}
|
|
2886
3536
|
});
|
|
2887
3537
|
}); };
|
|
@@ -2891,7 +3541,7 @@ export var deserializeAws_restJson1UpdateRevisionCommand = function (output, con
|
|
|
2891
3541
|
switch (_c.label) {
|
|
2892
3542
|
case 0:
|
|
2893
3543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2894
|
-
return [2
|
|
3544
|
+
return [2, deserializeAws_restJson1UpdateRevisionCommandError(output, context)];
|
|
2895
3545
|
}
|
|
2896
3546
|
contents = {
|
|
2897
3547
|
$metadata: deserializeMetadata(output),
|
|
@@ -2906,7 +3556,7 @@ export var deserializeAws_restJson1UpdateRevisionCommand = function (output, con
|
|
|
2906
3556
|
};
|
|
2907
3557
|
_a = __expectNonNull;
|
|
2908
3558
|
_b = __expectObject;
|
|
2909
|
-
return [4
|
|
3559
|
+
return [4, parseBody(output.body, context)];
|
|
2910
3560
|
case 1:
|
|
2911
3561
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2912
3562
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
@@ -2933,7 +3583,7 @@ export var deserializeAws_restJson1UpdateRevisionCommand = function (output, con
|
|
|
2933
3583
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2934
3584
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
2935
3585
|
}
|
|
2936
|
-
return [2
|
|
3586
|
+
return [2, Promise.resolve(contents)];
|
|
2937
3587
|
}
|
|
2938
3588
|
});
|
|
2939
3589
|
}); };
|
|
@@ -2945,63 +3595,63 @@ var deserializeAws_restJson1UpdateRevisionCommandError = function (output, conte
|
|
|
2945
3595
|
case 0:
|
|
2946
3596
|
_a = [__assign({}, output)];
|
|
2947
3597
|
_j = {};
|
|
2948
|
-
return [4
|
|
3598
|
+
return [4, parseBody(output.body, context)];
|
|
2949
3599
|
case 1:
|
|
2950
3600
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2951
3601
|
errorCode = "UnknownError";
|
|
2952
3602
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
3603
|
_b = errorCode;
|
|
2954
3604
|
switch (_b) {
|
|
2955
|
-
case "AccessDeniedException": return [3
|
|
2956
|
-
case "com.amazonaws.dataexchange#AccessDeniedException": return [3
|
|
2957
|
-
case "ConflictException": return [3
|
|
2958
|
-
case "com.amazonaws.dataexchange#ConflictException": return [3
|
|
2959
|
-
case "InternalServerException": return [3
|
|
2960
|
-
case "com.amazonaws.dataexchange#InternalServerException": return [3
|
|
2961
|
-
case "ResourceNotFoundException": return [3
|
|
2962
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3
|
|
2963
|
-
case "ThrottlingException": return [3
|
|
2964
|
-
case "com.amazonaws.dataexchange#ThrottlingException": return [3
|
|
2965
|
-
case "ValidationException": return [3
|
|
2966
|
-
case "com.amazonaws.dataexchange#ValidationException": return [3
|
|
2967
|
-
}
|
|
2968
|
-
return [3
|
|
3605
|
+
case "AccessDeniedException": return [3, 2];
|
|
3606
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
3607
|
+
case "ConflictException": return [3, 4];
|
|
3608
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 4];
|
|
3609
|
+
case "InternalServerException": return [3, 6];
|
|
3610
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 6];
|
|
3611
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3612
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 8];
|
|
3613
|
+
case "ThrottlingException": return [3, 10];
|
|
3614
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 10];
|
|
3615
|
+
case "ValidationException": return [3, 12];
|
|
3616
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 12];
|
|
3617
|
+
}
|
|
3618
|
+
return [3, 14];
|
|
2969
3619
|
case 2:
|
|
2970
3620
|
_c = [{}];
|
|
2971
|
-
return [4
|
|
3621
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2972
3622
|
case 3:
|
|
2973
3623
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2974
|
-
return [3
|
|
3624
|
+
return [3, 15];
|
|
2975
3625
|
case 4:
|
|
2976
3626
|
_d = [{}];
|
|
2977
|
-
return [4
|
|
3627
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2978
3628
|
case 5:
|
|
2979
3629
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2980
|
-
return [3
|
|
3630
|
+
return [3, 15];
|
|
2981
3631
|
case 6:
|
|
2982
3632
|
_e = [{}];
|
|
2983
|
-
return [4
|
|
3633
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2984
3634
|
case 7:
|
|
2985
3635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2986
|
-
return [3
|
|
3636
|
+
return [3, 15];
|
|
2987
3637
|
case 8:
|
|
2988
3638
|
_f = [{}];
|
|
2989
|
-
return [4
|
|
3639
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2990
3640
|
case 9:
|
|
2991
3641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2992
|
-
return [3
|
|
3642
|
+
return [3, 15];
|
|
2993
3643
|
case 10:
|
|
2994
3644
|
_g = [{}];
|
|
2995
|
-
return [4
|
|
3645
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2996
3646
|
case 11:
|
|
2997
3647
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2998
|
-
return [3
|
|
3648
|
+
return [3, 15];
|
|
2999
3649
|
case 12:
|
|
3000
3650
|
_h = [{}];
|
|
3001
|
-
return [4
|
|
3651
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3002
3652
|
case 13:
|
|
3003
3653
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3004
|
-
return [3
|
|
3654
|
+
return [3, 15];
|
|
3005
3655
|
case 14:
|
|
3006
3656
|
parsedBody = parsedOutput.body;
|
|
3007
3657
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3011,7 +3661,7 @@ var deserializeAws_restJson1UpdateRevisionCommandError = function (output, conte
|
|
|
3011
3661
|
message = response.message || response.Message || errorCode;
|
|
3012
3662
|
response.message = message;
|
|
3013
3663
|
delete response.Message;
|
|
3014
|
-
return [2
|
|
3664
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3015
3665
|
}
|
|
3016
3666
|
});
|
|
3017
3667
|
}); };
|
|
@@ -3028,7 +3678,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3028
3678
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3029
3679
|
contents.Message = __expectString(data.Message);
|
|
3030
3680
|
}
|
|
3031
|
-
return [2
|
|
3681
|
+
return [2, contents];
|
|
3032
3682
|
});
|
|
3033
3683
|
}); };
|
|
3034
3684
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3052,7 +3702,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3052
3702
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3053
3703
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3054
3704
|
}
|
|
3055
|
-
return [2
|
|
3705
|
+
return [2, contents];
|
|
3056
3706
|
});
|
|
3057
3707
|
}); };
|
|
3058
3708
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3068,7 +3718,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3068
3718
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3069
3719
|
contents.Message = __expectString(data.Message);
|
|
3070
3720
|
}
|
|
3071
|
-
return [2
|
|
3721
|
+
return [2, contents];
|
|
3072
3722
|
});
|
|
3073
3723
|
}); };
|
|
3074
3724
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3092,7 +3742,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3092
3742
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3093
3743
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3094
3744
|
}
|
|
3095
|
-
return [2
|
|
3745
|
+
return [2, contents];
|
|
3096
3746
|
});
|
|
3097
3747
|
}); };
|
|
3098
3748
|
var deserializeAws_restJson1ServiceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3116,7 +3766,7 @@ var deserializeAws_restJson1ServiceLimitExceededExceptionResponse = function (pa
|
|
|
3116
3766
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3117
3767
|
contents.Message = __expectString(data.Message);
|
|
3118
3768
|
}
|
|
3119
|
-
return [2
|
|
3769
|
+
return [2, contents];
|
|
3120
3770
|
});
|
|
3121
3771
|
}); };
|
|
3122
3772
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3132,7 +3782,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3132
3782
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3133
3783
|
contents.Message = __expectString(data.Message);
|
|
3134
3784
|
}
|
|
3135
|
-
return [2
|
|
3785
|
+
return [2, contents];
|
|
3136
3786
|
});
|
|
3137
3787
|
}); };
|
|
3138
3788
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3142,21 +3792,49 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3142
3792
|
name: "ValidationException",
|
|
3143
3793
|
$fault: "client",
|
|
3144
3794
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3795
|
+
ExceptionCause: undefined,
|
|
3145
3796
|
Message: undefined,
|
|
3146
3797
|
};
|
|
3147
3798
|
data = parsedOutput.body;
|
|
3799
|
+
if (data.ExceptionCause !== undefined && data.ExceptionCause !== null) {
|
|
3800
|
+
contents.ExceptionCause = __expectString(data.ExceptionCause);
|
|
3801
|
+
}
|
|
3148
3802
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3149
3803
|
contents.Message = __expectString(data.Message);
|
|
3150
3804
|
}
|
|
3151
|
-
return [2
|
|
3805
|
+
return [2, contents];
|
|
3152
3806
|
});
|
|
3153
3807
|
}); };
|
|
3808
|
+
var serializeAws_restJson1Action = function (input, context) {
|
|
3809
|
+
return __assign({}, (input.ExportRevisionToS3 !== undefined &&
|
|
3810
|
+
input.ExportRevisionToS3 !== null && {
|
|
3811
|
+
ExportRevisionToS3: serializeAws_restJson1AutoExportRevisionToS3RequestDetails(input.ExportRevisionToS3, context),
|
|
3812
|
+
}));
|
|
3813
|
+
};
|
|
3154
3814
|
var serializeAws_restJson1AssetDestinationEntry = function (input, context) {
|
|
3155
3815
|
return __assign(__assign(__assign({}, (input.AssetId !== undefined && input.AssetId !== null && { AssetId: input.AssetId })), (input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket })), (input.Key !== undefined && input.Key !== null && { Key: input.Key }));
|
|
3156
3816
|
};
|
|
3157
3817
|
var serializeAws_restJson1AssetSourceEntry = function (input, context) {
|
|
3158
3818
|
return __assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket })), (input.Key !== undefined && input.Key !== null && { Key: input.Key }));
|
|
3159
3819
|
};
|
|
3820
|
+
var serializeAws_restJson1AutoExportRevisionDestinationEntry = function (input, context) {
|
|
3821
|
+
return __assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket })), (input.KeyPattern !== undefined && input.KeyPattern !== null && { KeyPattern: input.KeyPattern }));
|
|
3822
|
+
};
|
|
3823
|
+
var serializeAws_restJson1AutoExportRevisionToS3RequestDetails = function (input, context) {
|
|
3824
|
+
return __assign(__assign({}, (input.Encryption !== undefined &&
|
|
3825
|
+
input.Encryption !== null && {
|
|
3826
|
+
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
3827
|
+
})), (input.RevisionDestination !== undefined &&
|
|
3828
|
+
input.RevisionDestination !== null && {
|
|
3829
|
+
RevisionDestination: serializeAws_restJson1AutoExportRevisionDestinationEntry(input.RevisionDestination, context),
|
|
3830
|
+
}));
|
|
3831
|
+
};
|
|
3832
|
+
var serializeAws_restJson1Event = function (input, context) {
|
|
3833
|
+
return __assign({}, (input.RevisionPublished !== undefined &&
|
|
3834
|
+
input.RevisionPublished !== null && {
|
|
3835
|
+
RevisionPublished: serializeAws_restJson1RevisionPublished(input.RevisionPublished, context),
|
|
3836
|
+
}));
|
|
3837
|
+
};
|
|
3160
3838
|
var serializeAws_restJson1ExportAssetsToS3RequestDetails = function (input, context) {
|
|
3161
3839
|
return __assign(__assign(__assign(__assign({}, (input.AssetDestinations !== undefined &&
|
|
3162
3840
|
input.AssetDestinations !== null && {
|
|
@@ -3251,6 +3929,16 @@ var serializeAws_restJson1RequestDetails = function (input, context) {
|
|
|
3251
3929
|
var serializeAws_restJson1RevisionDestinationEntry = function (input, context) {
|
|
3252
3930
|
return __assign(__assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket })), (input.KeyPattern !== undefined && input.KeyPattern !== null && { KeyPattern: input.KeyPattern })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }));
|
|
3253
3931
|
};
|
|
3932
|
+
var serializeAws_restJson1RevisionPublished = function (input, context) {
|
|
3933
|
+
return __assign({}, (input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }));
|
|
3934
|
+
};
|
|
3935
|
+
var deserializeAws_restJson1Action = function (output, context) {
|
|
3936
|
+
return {
|
|
3937
|
+
ExportRevisionToS3: output.ExportRevisionToS3 !== undefined && output.ExportRevisionToS3 !== null
|
|
3938
|
+
? deserializeAws_restJson1AutoExportRevisionToS3RequestDetails(output.ExportRevisionToS3, context)
|
|
3939
|
+
: undefined,
|
|
3940
|
+
};
|
|
3941
|
+
};
|
|
3254
3942
|
var deserializeAws_restJson1AssetDestinationEntry = function (output, context) {
|
|
3255
3943
|
return {
|
|
3256
3944
|
AssetId: __expectString(output.AssetId),
|
|
@@ -3291,6 +3979,22 @@ var deserializeAws_restJson1AssetSourceEntry = function (output, context) {
|
|
|
3291
3979
|
Key: __expectString(output.Key),
|
|
3292
3980
|
};
|
|
3293
3981
|
};
|
|
3982
|
+
var deserializeAws_restJson1AutoExportRevisionDestinationEntry = function (output, context) {
|
|
3983
|
+
return {
|
|
3984
|
+
Bucket: __expectString(output.Bucket),
|
|
3985
|
+
KeyPattern: __expectString(output.KeyPattern),
|
|
3986
|
+
};
|
|
3987
|
+
};
|
|
3988
|
+
var deserializeAws_restJson1AutoExportRevisionToS3RequestDetails = function (output, context) {
|
|
3989
|
+
return {
|
|
3990
|
+
Encryption: output.Encryption !== undefined && output.Encryption !== null
|
|
3991
|
+
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
3992
|
+
: undefined,
|
|
3993
|
+
RevisionDestination: output.RevisionDestination !== undefined && output.RevisionDestination !== null
|
|
3994
|
+
? deserializeAws_restJson1AutoExportRevisionDestinationEntry(output.RevisionDestination, context)
|
|
3995
|
+
: undefined,
|
|
3996
|
+
};
|
|
3997
|
+
};
|
|
3294
3998
|
var deserializeAws_restJson1DataSetEntry = function (output, context) {
|
|
3295
3999
|
return {
|
|
3296
4000
|
Arn: __expectString(output.Arn),
|
|
@@ -3322,6 +4026,31 @@ var deserializeAws_restJson1Details = function (output, context) {
|
|
|
3322
4026
|
: undefined,
|
|
3323
4027
|
};
|
|
3324
4028
|
};
|
|
4029
|
+
var deserializeAws_restJson1Event = function (output, context) {
|
|
4030
|
+
return {
|
|
4031
|
+
RevisionPublished: output.RevisionPublished !== undefined && output.RevisionPublished !== null
|
|
4032
|
+
? deserializeAws_restJson1RevisionPublished(output.RevisionPublished, context)
|
|
4033
|
+
: undefined,
|
|
4034
|
+
};
|
|
4035
|
+
};
|
|
4036
|
+
var deserializeAws_restJson1EventActionEntry = function (output, context) {
|
|
4037
|
+
return {
|
|
4038
|
+
Action: output.Action !== undefined && output.Action !== null
|
|
4039
|
+
? deserializeAws_restJson1Action(output.Action, context)
|
|
4040
|
+
: undefined,
|
|
4041
|
+
Arn: __expectString(output.Arn),
|
|
4042
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
4043
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
|
|
4044
|
+
: undefined,
|
|
4045
|
+
Event: output.Event !== undefined && output.Event !== null
|
|
4046
|
+
? deserializeAws_restJson1Event(output.Event, context)
|
|
4047
|
+
: undefined,
|
|
4048
|
+
Id: __expectString(output.Id),
|
|
4049
|
+
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
4050
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
|
|
4051
|
+
: undefined,
|
|
4052
|
+
};
|
|
4053
|
+
};
|
|
3325
4054
|
var deserializeAws_restJson1ExportAssetsToS3ResponseDetails = function (output, context) {
|
|
3326
4055
|
return {
|
|
3327
4056
|
AssetDestinations: output.AssetDestinations !== undefined && output.AssetDestinations !== null
|
|
@@ -3461,6 +4190,16 @@ var deserializeAws_restJson1ListOfDataSetEntry = function (output, context) {
|
|
|
3461
4190
|
return deserializeAws_restJson1DataSetEntry(entry, context);
|
|
3462
4191
|
});
|
|
3463
4192
|
};
|
|
4193
|
+
var deserializeAws_restJson1ListOfEventActionEntry = function (output, context) {
|
|
4194
|
+
return (output || [])
|
|
4195
|
+
.filter(function (e) { return e != null; })
|
|
4196
|
+
.map(function (entry) {
|
|
4197
|
+
if (entry === null) {
|
|
4198
|
+
return null;
|
|
4199
|
+
}
|
|
4200
|
+
return deserializeAws_restJson1EventActionEntry(entry, context);
|
|
4201
|
+
});
|
|
4202
|
+
};
|
|
3464
4203
|
var deserializeAws_restJson1ListOfJobEntry = function (output, context) {
|
|
3465
4204
|
return (output || [])
|
|
3466
4205
|
.filter(function (e) { return e != null; })
|
|
@@ -3558,6 +4297,11 @@ var deserializeAws_restJson1RevisionEntry = function (output, context) {
|
|
|
3558
4297
|
: undefined,
|
|
3559
4298
|
};
|
|
3560
4299
|
};
|
|
4300
|
+
var deserializeAws_restJson1RevisionPublished = function (output, context) {
|
|
4301
|
+
return {
|
|
4302
|
+
DataSetId: __expectString(output.DataSetId),
|
|
4303
|
+
};
|
|
4304
|
+
};
|
|
3561
4305
|
var deserializeAws_restJson1S3SnapshotAsset = function (output, context) {
|
|
3562
4306
|
return {
|
|
3563
4307
|
Size: __limitedParseDouble(output.Size),
|
|
@@ -3572,7 +4316,6 @@ var deserializeMetadata = function (output) {
|
|
|
3572
4316
|
cfId: output.headers["x-amz-cf-id"],
|
|
3573
4317
|
});
|
|
3574
4318
|
};
|
|
3575
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3576
4319
|
var collectBody = function (streamBody, context) {
|
|
3577
4320
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3578
4321
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3580,7 +4323,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3580
4323
|
}
|
|
3581
4324
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3582
4325
|
};
|
|
3583
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3584
4326
|
var collectBodyString = function (streamBody, context) {
|
|
3585
4327
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3586
4328
|
};
|
|
@@ -3599,9 +4341,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3599
4341
|
return {};
|
|
3600
4342
|
});
|
|
3601
4343
|
};
|
|
3602
|
-
/**
|
|
3603
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3604
|
-
*/
|
|
3605
4344
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3606
4345
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3607
4346
|
var sanitizeErrorCode = function (rawValue) {
|