@aws-sdk/client-dataexchange 3.34.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 +12 -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 +8 -8
- package/dist-cjs/DataExchangeClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CancelJobCommand.js +2 -2
- package/dist-cjs/commands/CancelJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateDataSetCommand.js +2 -2
- 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 +2 -2
- package/dist-cjs/commands/CreateJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateRevisionCommand.js +2 -2
- package/dist-cjs/commands/CreateRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteAssetCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteDataSetCommand.js +2 -2
- 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 +2 -2
- package/dist-cjs/commands/DeleteRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAssetCommand.js +2 -2
- package/dist-cjs/commands/GetAssetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetDataSetCommand.js +2 -2
- 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 +2 -2
- package/dist-cjs/commands/GetJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetRevisionCommand.js +2 -2
- package/dist-cjs/commands/GetRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDataSetRevisionsCommand.js +2 -2
- package/dist-cjs/commands/ListDataSetRevisionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDataSetsCommand.js +2 -2
- 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 +2 -2
- package/dist-cjs/commands/ListJobsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListRevisionAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListRevisionAssetsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StartJobCommand.js +2 -2
- package/dist-cjs/commands/StartJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateAssetCommand.js +2 -2
- package/dist-cjs/commands/UpdateAssetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateDataSetCommand.js +2 -2
- 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 +2 -2
- package/dist-cjs/commands/UpdateRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -0
- package/dist-cjs/endpoints.js.map +1 -0
- package/{dist/cjs → dist-cjs}/index.js +6 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +0 -0
- 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 +700 -27
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -1
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +3 -2
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -0
- 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 +76 -1
- package/dist-es/DataExchange.js.map +1 -0
- package/{dist/es → dist-es}/DataExchangeClient.js +1 -1
- package/dist-es/DataExchangeClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/CancelJobCommand.js +2 -2
- package/dist-es/commands/CancelJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateDataSetCommand.js +2 -2
- 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 +2 -2
- package/dist-es/commands/CreateJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateRevisionCommand.js +2 -2
- package/dist-es/commands/CreateRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteAssetCommand.js +2 -2
- package/dist-es/commands/DeleteAssetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteDataSetCommand.js +2 -2
- 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 +2 -2
- package/dist-es/commands/DeleteRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetAssetCommand.js +2 -2
- package/dist-es/commands/GetAssetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetDataSetCommand.js +2 -2
- 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 +2 -2
- package/dist-es/commands/GetJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetRevisionCommand.js +2 -2
- package/dist-es/commands/GetRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDataSetRevisionsCommand.js +2 -2
- package/dist-es/commands/ListDataSetRevisionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDataSetsCommand.js +2 -2
- 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 +2 -2
- package/dist-es/commands/ListJobsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListRevisionAssetsCommand.js +2 -2
- package/dist-es/commands/ListRevisionAssetsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StartJobCommand.js +2 -2
- package/dist-es/commands/StartJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateAssetCommand.js +2 -2
- package/dist-es/commands/UpdateAssetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateDataSetCommand.js +2 -2
- 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 +2 -2
- package/dist-es/commands/UpdateRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +0 -0
- 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 -9
- 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 +1 -1
- package/dist-es/pagination/ListDataSetRevisionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListDataSetsPaginator.js +1 -1
- 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 +1 -1
- package/dist-es/pagination/ListJobsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListRevisionAssetsPaginator.js +1 -1
- package/dist-es/pagination/ListRevisionAssetsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +751 -7
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -1
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -2
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -0
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -1
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types/ts3.4 → dist-types}/DataExchange.d.ts +196 -161
- package/{dist/types/ts3.4 → dist-types}/DataExchangeClient.d.ts +159 -154
- 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 +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types/ts3.4}/DataExchange.d.ts +196 -161
- package/{dist/types → dist-types/ts3.4}/DataExchangeClient.d.ts +159 -154
- 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 +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +42 -42
- 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 -1
- package/tsconfig.json +4 -2
- package/tsconfig.types.json +3 -2
- 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.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
|
@@ -57,6 +57,32 @@ export var serializeAws_restJson1CreateDataSetCommand = function (input, context
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
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({
|
|
75
|
+
protocol: protocol,
|
|
76
|
+
hostname: hostname,
|
|
77
|
+
port: port,
|
|
78
|
+
method: "POST",
|
|
79
|
+
headers: headers,
|
|
80
|
+
path: resolvedPath,
|
|
81
|
+
body: body,
|
|
82
|
+
})];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}); };
|
|
60
86
|
export var serializeAws_restJson1CreateJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
61
87
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
62
88
|
return __generator(this, function (_c) {
|
|
@@ -200,6 +226,37 @@ export var serializeAws_restJson1DeleteDataSetCommand = function (input, context
|
|
|
200
226
|
}
|
|
201
227
|
});
|
|
202
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({
|
|
249
|
+
protocol: protocol,
|
|
250
|
+
hostname: hostname,
|
|
251
|
+
port: port,
|
|
252
|
+
method: "DELETE",
|
|
253
|
+
headers: headers,
|
|
254
|
+
path: resolvedPath,
|
|
255
|
+
body: body,
|
|
256
|
+
})];
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
}); };
|
|
203
260
|
export var serializeAws_restJson1DeleteRevisionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
204
261
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
205
262
|
return __generator(this, function (_c) {
|
|
@@ -325,6 +382,37 @@ export var serializeAws_restJson1GetDataSetCommand = function (input, context) {
|
|
|
325
382
|
}
|
|
326
383
|
});
|
|
327
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({
|
|
405
|
+
protocol: protocol,
|
|
406
|
+
hostname: hostname,
|
|
407
|
+
port: port,
|
|
408
|
+
method: "GET",
|
|
409
|
+
headers: headers,
|
|
410
|
+
path: resolvedPath,
|
|
411
|
+
body: body,
|
|
412
|
+
})];
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
}); };
|
|
328
416
|
export var serializeAws_restJson1GetJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
329
417
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
330
418
|
return __generator(this, function (_c) {
|
|
@@ -454,6 +542,29 @@ export var serializeAws_restJson1ListDataSetsCommand = function (input, context)
|
|
|
454
542
|
}
|
|
455
543
|
});
|
|
456
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({
|
|
556
|
+
protocol: protocol,
|
|
557
|
+
hostname: hostname,
|
|
558
|
+
port: port,
|
|
559
|
+
method: "GET",
|
|
560
|
+
headers: headers,
|
|
561
|
+
path: resolvedPath,
|
|
562
|
+
query: query,
|
|
563
|
+
body: body,
|
|
564
|
+
})];
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
}); };
|
|
457
568
|
export var serializeAws_restJson1ListJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
458
569
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
459
570
|
return __generator(this, function (_c) {
|
|
@@ -740,6 +851,41 @@ export var serializeAws_restJson1UpdateDataSetCommand = function (input, context
|
|
|
740
851
|
}
|
|
741
852
|
});
|
|
742
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({
|
|
878
|
+
protocol: protocol,
|
|
879
|
+
hostname: hostname,
|
|
880
|
+
port: port,
|
|
881
|
+
method: "PATCH",
|
|
882
|
+
headers: headers,
|
|
883
|
+
path: resolvedPath,
|
|
884
|
+
body: body,
|
|
885
|
+
})];
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
}); };
|
|
743
889
|
export var serializeAws_restJson1UpdateRevisionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
744
890
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
745
891
|
return __generator(this, function (_c) {
|
|
@@ -1007,6 +1153,120 @@ var deserializeAws_restJson1CreateDataSetCommandError = function (output, contex
|
|
|
1007
1153
|
}
|
|
1008
1154
|
});
|
|
1009
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)];
|
|
1209
|
+
case 1:
|
|
1210
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1211
|
+
errorCode = "UnknownError";
|
|
1212
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
+
_b = errorCode;
|
|
1214
|
+
switch (_b) {
|
|
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];
|
|
1227
|
+
case 2:
|
|
1228
|
+
_c = [{}];
|
|
1229
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1230
|
+
case 3:
|
|
1231
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1232
|
+
return [3, 13];
|
|
1233
|
+
case 4:
|
|
1234
|
+
_d = [{}];
|
|
1235
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1236
|
+
case 5:
|
|
1237
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1238
|
+
return [3, 13];
|
|
1239
|
+
case 6:
|
|
1240
|
+
_e = [{}];
|
|
1241
|
+
return [4, deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1242
|
+
case 7:
|
|
1243
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1244
|
+
return [3, 13];
|
|
1245
|
+
case 8:
|
|
1246
|
+
_f = [{}];
|
|
1247
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1248
|
+
case 9:
|
|
1249
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1250
|
+
return [3, 13];
|
|
1251
|
+
case 10:
|
|
1252
|
+
_g = [{}];
|
|
1253
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1254
|
+
case 11:
|
|
1255
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1256
|
+
return [3, 13];
|
|
1257
|
+
case 12:
|
|
1258
|
+
parsedBody = parsedOutput.body;
|
|
1259
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1260
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1261
|
+
_j.label = 13;
|
|
1262
|
+
case 13:
|
|
1263
|
+
message = response.message || response.Message || errorCode;
|
|
1264
|
+
response.message = message;
|
|
1265
|
+
delete response.Message;
|
|
1266
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1267
|
+
}
|
|
1268
|
+
});
|
|
1269
|
+
}); };
|
|
1010
1270
|
export var deserializeAws_restJson1CreateJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1011
1271
|
var contents, data, _a, _b;
|
|
1012
1272
|
return __generator(this, function (_c) {
|
|
@@ -1447,6 +1707,86 @@ var deserializeAws_restJson1DeleteDataSetCommandError = function (output, contex
|
|
|
1447
1707
|
}
|
|
1448
1708
|
});
|
|
1449
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))];
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1789
|
+
}); };
|
|
1450
1790
|
export var deserializeAws_restJson1DeleteRevisionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1451
1791
|
var contents;
|
|
1452
1792
|
return __generator(this, function (_a) {
|
|
@@ -1713,14 +2053,120 @@ export var deserializeAws_restJson1GetDataSetCommand = function (output, context
|
|
|
1713
2053
|
if (data.Origin !== undefined && data.Origin !== null) {
|
|
1714
2054
|
contents.Origin = __expectString(data.Origin);
|
|
1715
2055
|
}
|
|
1716
|
-
if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
|
|
1717
|
-
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
2056
|
+
if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
|
|
2057
|
+
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
2058
|
+
}
|
|
2059
|
+
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
2060
|
+
contents.SourceId = __expectString(data.SourceId);
|
|
2061
|
+
}
|
|
2062
|
+
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2063
|
+
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
2064
|
+
}
|
|
2065
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2066
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
2067
|
+
}
|
|
2068
|
+
return [2, Promise.resolve(contents)];
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
}); };
|
|
2072
|
+
var deserializeAws_restJson1GetDataSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2073
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2074
|
+
var _g;
|
|
2075
|
+
return __generator(this, function (_h) {
|
|
2076
|
+
switch (_h.label) {
|
|
2077
|
+
case 0:
|
|
2078
|
+
_a = [__assign({}, output)];
|
|
2079
|
+
_g = {};
|
|
2080
|
+
return [4, parseBody(output.body, context)];
|
|
2081
|
+
case 1:
|
|
2082
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2083
|
+
errorCode = "UnknownError";
|
|
2084
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2085
|
+
_b = errorCode;
|
|
2086
|
+
switch (_b) {
|
|
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];
|
|
2097
|
+
case 2:
|
|
2098
|
+
_c = [{}];
|
|
2099
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2100
|
+
case 3:
|
|
2101
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2102
|
+
return [3, 11];
|
|
2103
|
+
case 4:
|
|
2104
|
+
_d = [{}];
|
|
2105
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2106
|
+
case 5:
|
|
2107
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2108
|
+
return [3, 11];
|
|
2109
|
+
case 6:
|
|
2110
|
+
_e = [{}];
|
|
2111
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2112
|
+
case 7:
|
|
2113
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2114
|
+
return [3, 11];
|
|
2115
|
+
case 8:
|
|
2116
|
+
_f = [{}];
|
|
2117
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2118
|
+
case 9:
|
|
2119
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2120
|
+
return [3, 11];
|
|
2121
|
+
case 10:
|
|
2122
|
+
parsedBody = parsedOutput.body;
|
|
2123
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2124
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2125
|
+
_h.label = 11;
|
|
2126
|
+
case 11:
|
|
2127
|
+
message = response.message || response.Message || errorCode;
|
|
2128
|
+
response.message = message;
|
|
2129
|
+
delete response.Message;
|
|
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));
|
|
1718
2164
|
}
|
|
1719
|
-
if (data.
|
|
1720
|
-
contents.
|
|
2165
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
2166
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
1721
2167
|
}
|
|
1722
|
-
if (data.
|
|
1723
|
-
contents.
|
|
2168
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
2169
|
+
contents.Id = __expectString(data.Id);
|
|
1724
2170
|
}
|
|
1725
2171
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1726
2172
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
@@ -1729,7 +2175,7 @@ export var deserializeAws_restJson1GetDataSetCommand = function (output, context
|
|
|
1729
2175
|
}
|
|
1730
2176
|
});
|
|
1731
2177
|
}); };
|
|
1732
|
-
var
|
|
2178
|
+
var deserializeAws_restJson1GetEventActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1733
2179
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1734
2180
|
var _g;
|
|
1735
2181
|
return __generator(this, function (_h) {
|
|
@@ -2203,6 +2649,96 @@ var deserializeAws_restJson1ListDataSetsCommandError = function (output, context
|
|
|
2203
2649
|
}
|
|
2204
2650
|
});
|
|
2205
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)];
|
|
2689
|
+
case 1:
|
|
2690
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2691
|
+
errorCode = "UnknownError";
|
|
2692
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2693
|
+
_b = errorCode;
|
|
2694
|
+
switch (_b) {
|
|
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];
|
|
2705
|
+
case 2:
|
|
2706
|
+
_c = [{}];
|
|
2707
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2708
|
+
case 3:
|
|
2709
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2710
|
+
return [3, 11];
|
|
2711
|
+
case 4:
|
|
2712
|
+
_d = [{}];
|
|
2713
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2714
|
+
case 5:
|
|
2715
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2716
|
+
return [3, 11];
|
|
2717
|
+
case 6:
|
|
2718
|
+
_e = [{}];
|
|
2719
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2720
|
+
case 7:
|
|
2721
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2722
|
+
return [3, 11];
|
|
2723
|
+
case 8:
|
|
2724
|
+
_f = [{}];
|
|
2725
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2726
|
+
case 9:
|
|
2727
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2728
|
+
return [3, 11];
|
|
2729
|
+
case 10:
|
|
2730
|
+
parsedBody = parsedOutput.body;
|
|
2731
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2732
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2733
|
+
_h.label = 11;
|
|
2734
|
+
case 11:
|
|
2735
|
+
message = response.message || response.Message || errorCode;
|
|
2736
|
+
response.message = message;
|
|
2737
|
+
delete response.Message;
|
|
2738
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2739
|
+
}
|
|
2740
|
+
});
|
|
2741
|
+
}); };
|
|
2206
2742
|
export var deserializeAws_restJson1ListJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2207
2743
|
var contents, data, _a, _b;
|
|
2208
2744
|
return __generator(this, function (_c) {
|
|
@@ -2885,6 +3421,120 @@ var deserializeAws_restJson1UpdateDataSetCommandError = function (output, contex
|
|
|
2885
3421
|
}
|
|
2886
3422
|
});
|
|
2887
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))];
|
|
3535
|
+
}
|
|
3536
|
+
});
|
|
3537
|
+
}); };
|
|
2888
3538
|
export var deserializeAws_restJson1UpdateRevisionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2889
3539
|
var contents, data, _a, _b;
|
|
2890
3540
|
return __generator(this, function (_c) {
|
|
@@ -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
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),
|