@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
|
@@ -1,12 +1,33 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import {
|
|
3
|
+
expectBoolean as __expectBoolean,
|
|
4
|
+
expectNonNull as __expectNonNull,
|
|
5
|
+
expectObject as __expectObject,
|
|
6
|
+
expectString as __expectString,
|
|
7
|
+
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
8
|
+
limitedParseDouble as __limitedParseDouble,
|
|
9
|
+
parseRfc3339DateTime as __parseRfc3339DateTime,
|
|
10
|
+
} from "@aws-sdk/smithy-client";
|
|
11
|
+
import {
|
|
12
|
+
Endpoint as __Endpoint,
|
|
13
|
+
MetadataBearer as __MetadataBearer,
|
|
14
|
+
ResponseMetadata as __ResponseMetadata,
|
|
15
|
+
SerdeContext as __SerdeContext,
|
|
16
|
+
SmithyException as __SmithyException,
|
|
17
|
+
} from "@aws-sdk/types";
|
|
18
|
+
|
|
1
19
|
import { CancelJobCommandInput, CancelJobCommandOutput } from "../commands/CancelJobCommand";
|
|
2
20
|
import { CreateDataSetCommandInput, CreateDataSetCommandOutput } from "../commands/CreateDataSetCommand";
|
|
21
|
+
import { CreateEventActionCommandInput, CreateEventActionCommandOutput } from "../commands/CreateEventActionCommand";
|
|
3
22
|
import { CreateJobCommandInput, CreateJobCommandOutput } from "../commands/CreateJobCommand";
|
|
4
23
|
import { CreateRevisionCommandInput, CreateRevisionCommandOutput } from "../commands/CreateRevisionCommand";
|
|
5
24
|
import { DeleteAssetCommandInput, DeleteAssetCommandOutput } from "../commands/DeleteAssetCommand";
|
|
6
25
|
import { DeleteDataSetCommandInput, DeleteDataSetCommandOutput } from "../commands/DeleteDataSetCommand";
|
|
26
|
+
import { DeleteEventActionCommandInput, DeleteEventActionCommandOutput } from "../commands/DeleteEventActionCommand";
|
|
7
27
|
import { DeleteRevisionCommandInput, DeleteRevisionCommandOutput } from "../commands/DeleteRevisionCommand";
|
|
8
28
|
import { GetAssetCommandInput, GetAssetCommandOutput } from "../commands/GetAssetCommand";
|
|
9
29
|
import { GetDataSetCommandInput, GetDataSetCommandOutput } from "../commands/GetDataSetCommand";
|
|
30
|
+
import { GetEventActionCommandInput, GetEventActionCommandOutput } from "../commands/GetEventActionCommand";
|
|
10
31
|
import { GetJobCommandInput, GetJobCommandOutput } from "../commands/GetJobCommand";
|
|
11
32
|
import { GetRevisionCommandInput, GetRevisionCommandOutput } from "../commands/GetRevisionCommand";
|
|
12
33
|
import {
|
|
@@ -14,6 +35,7 @@ import {
|
|
|
14
35
|
ListDataSetRevisionsCommandOutput,
|
|
15
36
|
} from "../commands/ListDataSetRevisionsCommand";
|
|
16
37
|
import { ListDataSetsCommandInput, ListDataSetsCommandOutput } from "../commands/ListDataSetsCommand";
|
|
38
|
+
import { ListEventActionsCommandInput, ListEventActionsCommandOutput } from "../commands/ListEventActionsCommand";
|
|
17
39
|
import { ListJobsCommandInput, ListJobsCommandOutput } from "../commands/ListJobsCommand";
|
|
18
40
|
import { ListRevisionAssetsCommandInput, ListRevisionAssetsCommandOutput } from "../commands/ListRevisionAssetsCommand";
|
|
19
41
|
import {
|
|
@@ -25,20 +47,26 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/T
|
|
|
25
47
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
26
48
|
import { UpdateAssetCommandInput, UpdateAssetCommandOutput } from "../commands/UpdateAssetCommand";
|
|
27
49
|
import { UpdateDataSetCommandInput, UpdateDataSetCommandOutput } from "../commands/UpdateDataSetCommand";
|
|
50
|
+
import { UpdateEventActionCommandInput, UpdateEventActionCommandOutput } from "../commands/UpdateEventActionCommand";
|
|
28
51
|
import { UpdateRevisionCommandInput, UpdateRevisionCommandOutput } from "../commands/UpdateRevisionCommand";
|
|
29
52
|
import {
|
|
30
53
|
AccessDeniedException,
|
|
54
|
+
Action,
|
|
31
55
|
AssetDestinationEntry,
|
|
32
56
|
AssetDetails,
|
|
33
57
|
AssetEntry,
|
|
34
58
|
AssetSourceEntry,
|
|
59
|
+
AutoExportRevisionDestinationEntry,
|
|
60
|
+
AutoExportRevisionToS3RequestDetails,
|
|
35
61
|
ConflictException,
|
|
36
62
|
DataSetEntry,
|
|
37
63
|
Details,
|
|
38
|
-
|
|
39
|
-
|
|
64
|
+
Event,
|
|
65
|
+
EventActionEntry,
|
|
40
66
|
ExportAssetsToS3RequestDetails,
|
|
41
67
|
ExportAssetsToS3ResponseDetails,
|
|
68
|
+
ExportAssetToSignedUrlRequestDetails,
|
|
69
|
+
ExportAssetToSignedUrlResponseDetails,
|
|
42
70
|
ExportRevisionsToS3RequestDetails,
|
|
43
71
|
ExportRevisionsToS3ResponseDetails,
|
|
44
72
|
ExportServerSideEncryption,
|
|
@@ -56,28 +84,12 @@ import {
|
|
|
56
84
|
ResponseDetails,
|
|
57
85
|
RevisionDestinationEntry,
|
|
58
86
|
RevisionEntry,
|
|
87
|
+
RevisionPublished,
|
|
59
88
|
S3SnapshotAsset,
|
|
60
89
|
ServiceLimitExceededException,
|
|
61
90
|
ThrottlingException,
|
|
62
91
|
ValidationException,
|
|
63
92
|
} from "../models/models_0";
|
|
64
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
65
|
-
import {
|
|
66
|
-
expectBoolean as __expectBoolean,
|
|
67
|
-
expectNonNull as __expectNonNull,
|
|
68
|
-
expectObject as __expectObject,
|
|
69
|
-
expectString as __expectString,
|
|
70
|
-
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
71
|
-
limitedParseDouble as __limitedParseDouble,
|
|
72
|
-
parseRfc3339DateTime as __parseRfc3339DateTime,
|
|
73
|
-
} from "@aws-sdk/smithy-client";
|
|
74
|
-
import {
|
|
75
|
-
Endpoint as __Endpoint,
|
|
76
|
-
MetadataBearer as __MetadataBearer,
|
|
77
|
-
ResponseMetadata as __ResponseMetadata,
|
|
78
|
-
SerdeContext as __SerdeContext,
|
|
79
|
-
SmithyException as __SmithyException,
|
|
80
|
-
} from "@aws-sdk/types";
|
|
81
93
|
|
|
82
94
|
export const serializeAws_restJson1CancelJobCommand = async (
|
|
83
95
|
input: CancelJobCommandInput,
|
|
@@ -115,7 +127,7 @@ export const serializeAws_restJson1CreateDataSetCommand = async (
|
|
|
115
127
|
const headers: any = {
|
|
116
128
|
"content-type": "application/json",
|
|
117
129
|
};
|
|
118
|
-
|
|
130
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
|
|
119
131
|
let body: any;
|
|
120
132
|
body = JSON.stringify({
|
|
121
133
|
...(input.AssetType !== undefined && input.AssetType !== null && { AssetType: input.AssetType }),
|
|
@@ -135,6 +147,33 @@ export const serializeAws_restJson1CreateDataSetCommand = async (
|
|
|
135
147
|
});
|
|
136
148
|
};
|
|
137
149
|
|
|
150
|
+
export const serializeAws_restJson1CreateEventActionCommand = async (
|
|
151
|
+
input: CreateEventActionCommandInput,
|
|
152
|
+
context: __SerdeContext
|
|
153
|
+
): Promise<__HttpRequest> => {
|
|
154
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
155
|
+
const headers: any = {
|
|
156
|
+
"content-type": "application/json",
|
|
157
|
+
};
|
|
158
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
159
|
+
let body: any;
|
|
160
|
+
body = JSON.stringify({
|
|
161
|
+
...(input.Action !== undefined &&
|
|
162
|
+
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) }),
|
|
163
|
+
...(input.Event !== undefined &&
|
|
164
|
+
input.Event !== null && { Event: serializeAws_restJson1Event(input.Event, context) }),
|
|
165
|
+
});
|
|
166
|
+
return new __HttpRequest({
|
|
167
|
+
protocol,
|
|
168
|
+
hostname,
|
|
169
|
+
port,
|
|
170
|
+
method: "POST",
|
|
171
|
+
headers,
|
|
172
|
+
path: resolvedPath,
|
|
173
|
+
body,
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
|
|
138
177
|
export const serializeAws_restJson1CreateJobCommand = async (
|
|
139
178
|
input: CreateJobCommandInput,
|
|
140
179
|
context: __SerdeContext
|
|
@@ -143,7 +182,7 @@ export const serializeAws_restJson1CreateJobCommand = async (
|
|
|
143
182
|
const headers: any = {
|
|
144
183
|
"content-type": "application/json",
|
|
145
184
|
};
|
|
146
|
-
|
|
185
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
147
186
|
let body: any;
|
|
148
187
|
body = JSON.stringify({
|
|
149
188
|
...(input.Details !== undefined &&
|
|
@@ -274,6 +313,35 @@ export const serializeAws_restJson1DeleteDataSetCommand = async (
|
|
|
274
313
|
});
|
|
275
314
|
};
|
|
276
315
|
|
|
316
|
+
export const serializeAws_restJson1DeleteEventActionCommand = async (
|
|
317
|
+
input: DeleteEventActionCommandInput,
|
|
318
|
+
context: __SerdeContext
|
|
319
|
+
): Promise<__HttpRequest> => {
|
|
320
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
321
|
+
const headers: any = {};
|
|
322
|
+
let resolvedPath =
|
|
323
|
+
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
324
|
+
if (input.EventActionId !== undefined) {
|
|
325
|
+
const labelValue: string = input.EventActionId;
|
|
326
|
+
if (labelValue.length <= 0) {
|
|
327
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
328
|
+
}
|
|
329
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", __extendedEncodeURIComponent(labelValue));
|
|
330
|
+
} else {
|
|
331
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
332
|
+
}
|
|
333
|
+
let body: any;
|
|
334
|
+
return new __HttpRequest({
|
|
335
|
+
protocol,
|
|
336
|
+
hostname,
|
|
337
|
+
port,
|
|
338
|
+
method: "DELETE",
|
|
339
|
+
headers,
|
|
340
|
+
path: resolvedPath,
|
|
341
|
+
body,
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
|
|
277
345
|
export const serializeAws_restJson1DeleteRevisionCommand = async (
|
|
278
346
|
input: DeleteRevisionCommandInput,
|
|
279
347
|
context: __SerdeContext
|
|
@@ -390,6 +458,35 @@ export const serializeAws_restJson1GetDataSetCommand = async (
|
|
|
390
458
|
});
|
|
391
459
|
};
|
|
392
460
|
|
|
461
|
+
export const serializeAws_restJson1GetEventActionCommand = async (
|
|
462
|
+
input: GetEventActionCommandInput,
|
|
463
|
+
context: __SerdeContext
|
|
464
|
+
): Promise<__HttpRequest> => {
|
|
465
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
466
|
+
const headers: any = {};
|
|
467
|
+
let resolvedPath =
|
|
468
|
+
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
469
|
+
if (input.EventActionId !== undefined) {
|
|
470
|
+
const labelValue: string = input.EventActionId;
|
|
471
|
+
if (labelValue.length <= 0) {
|
|
472
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
473
|
+
}
|
|
474
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", __extendedEncodeURIComponent(labelValue));
|
|
475
|
+
} else {
|
|
476
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
477
|
+
}
|
|
478
|
+
let body: any;
|
|
479
|
+
return new __HttpRequest({
|
|
480
|
+
protocol,
|
|
481
|
+
hostname,
|
|
482
|
+
port,
|
|
483
|
+
method: "GET",
|
|
484
|
+
headers,
|
|
485
|
+
path: resolvedPath,
|
|
486
|
+
body,
|
|
487
|
+
});
|
|
488
|
+
};
|
|
489
|
+
|
|
393
490
|
export const serializeAws_restJson1GetJobCommand = async (
|
|
394
491
|
input: GetJobCommandInput,
|
|
395
492
|
context: __SerdeContext
|
|
@@ -497,7 +594,7 @@ export const serializeAws_restJson1ListDataSetsCommand = async (
|
|
|
497
594
|
): Promise<__HttpRequest> => {
|
|
498
595
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
499
596
|
const headers: any = {};
|
|
500
|
-
|
|
597
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
|
|
501
598
|
const query: any = {
|
|
502
599
|
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
503
600
|
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
@@ -516,13 +613,38 @@ export const serializeAws_restJson1ListDataSetsCommand = async (
|
|
|
516
613
|
});
|
|
517
614
|
};
|
|
518
615
|
|
|
616
|
+
export const serializeAws_restJson1ListEventActionsCommand = async (
|
|
617
|
+
input: ListEventActionsCommandInput,
|
|
618
|
+
context: __SerdeContext
|
|
619
|
+
): Promise<__HttpRequest> => {
|
|
620
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
621
|
+
const headers: any = {};
|
|
622
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
623
|
+
const query: any = {
|
|
624
|
+
...(input.EventSourceId !== undefined && { eventSourceId: input.EventSourceId }),
|
|
625
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
626
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
627
|
+
};
|
|
628
|
+
let body: any;
|
|
629
|
+
return new __HttpRequest({
|
|
630
|
+
protocol,
|
|
631
|
+
hostname,
|
|
632
|
+
port,
|
|
633
|
+
method: "GET",
|
|
634
|
+
headers,
|
|
635
|
+
path: resolvedPath,
|
|
636
|
+
query,
|
|
637
|
+
body,
|
|
638
|
+
});
|
|
639
|
+
};
|
|
640
|
+
|
|
519
641
|
export const serializeAws_restJson1ListJobsCommand = async (
|
|
520
642
|
input: ListJobsCommandInput,
|
|
521
643
|
context: __SerdeContext
|
|
522
644
|
): Promise<__HttpRequest> => {
|
|
523
645
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
524
646
|
const headers: any = {};
|
|
525
|
-
|
|
647
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
526
648
|
const query: any = {
|
|
527
649
|
...(input.DataSetId !== undefined && { dataSetId: input.DataSetId }),
|
|
528
650
|
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
@@ -796,6 +918,41 @@ export const serializeAws_restJson1UpdateDataSetCommand = async (
|
|
|
796
918
|
});
|
|
797
919
|
};
|
|
798
920
|
|
|
921
|
+
export const serializeAws_restJson1UpdateEventActionCommand = async (
|
|
922
|
+
input: UpdateEventActionCommandInput,
|
|
923
|
+
context: __SerdeContext
|
|
924
|
+
): Promise<__HttpRequest> => {
|
|
925
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
926
|
+
const headers: any = {
|
|
927
|
+
"content-type": "application/json",
|
|
928
|
+
};
|
|
929
|
+
let resolvedPath =
|
|
930
|
+
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
931
|
+
if (input.EventActionId !== undefined) {
|
|
932
|
+
const labelValue: string = input.EventActionId;
|
|
933
|
+
if (labelValue.length <= 0) {
|
|
934
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
935
|
+
}
|
|
936
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", __extendedEncodeURIComponent(labelValue));
|
|
937
|
+
} else {
|
|
938
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
939
|
+
}
|
|
940
|
+
let body: any;
|
|
941
|
+
body = JSON.stringify({
|
|
942
|
+
...(input.Action !== undefined &&
|
|
943
|
+
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) }),
|
|
944
|
+
});
|
|
945
|
+
return new __HttpRequest({
|
|
946
|
+
protocol,
|
|
947
|
+
hostname,
|
|
948
|
+
port,
|
|
949
|
+
method: "PATCH",
|
|
950
|
+
headers,
|
|
951
|
+
path: resolvedPath,
|
|
952
|
+
body,
|
|
953
|
+
});
|
|
954
|
+
};
|
|
955
|
+
|
|
799
956
|
export const serializeAws_restJson1UpdateRevisionCommand = async (
|
|
800
957
|
input: UpdateRevisionCommandInput,
|
|
801
958
|
context: __SerdeContext
|
|
@@ -864,7 +1021,7 @@ const deserializeAws_restJson1CancelJobCommandError = async (
|
|
|
864
1021
|
body: await parseBody(output.body, context),
|
|
865
1022
|
};
|
|
866
1023
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
867
|
-
let errorCode
|
|
1024
|
+
let errorCode = "UnknownError";
|
|
868
1025
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
1026
|
switch (errorCode) {
|
|
870
1027
|
case "ConflictException":
|
|
@@ -991,7 +1148,114 @@ const deserializeAws_restJson1CreateDataSetCommandError = async (
|
|
|
991
1148
|
body: await parseBody(output.body, context),
|
|
992
1149
|
};
|
|
993
1150
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
994
|
-
let errorCode
|
|
1151
|
+
let errorCode = "UnknownError";
|
|
1152
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
+
switch (errorCode) {
|
|
1154
|
+
case "AccessDeniedException":
|
|
1155
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1156
|
+
response = {
|
|
1157
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1158
|
+
name: errorCode,
|
|
1159
|
+
$metadata: deserializeMetadata(output),
|
|
1160
|
+
};
|
|
1161
|
+
break;
|
|
1162
|
+
case "InternalServerException":
|
|
1163
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1164
|
+
response = {
|
|
1165
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1166
|
+
name: errorCode,
|
|
1167
|
+
$metadata: deserializeMetadata(output),
|
|
1168
|
+
};
|
|
1169
|
+
break;
|
|
1170
|
+
case "ServiceLimitExceededException":
|
|
1171
|
+
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
1172
|
+
response = {
|
|
1173
|
+
...(await deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1174
|
+
name: errorCode,
|
|
1175
|
+
$metadata: deserializeMetadata(output),
|
|
1176
|
+
};
|
|
1177
|
+
break;
|
|
1178
|
+
case "ThrottlingException":
|
|
1179
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1180
|
+
response = {
|
|
1181
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1182
|
+
name: errorCode,
|
|
1183
|
+
$metadata: deserializeMetadata(output),
|
|
1184
|
+
};
|
|
1185
|
+
break;
|
|
1186
|
+
case "ValidationException":
|
|
1187
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1188
|
+
response = {
|
|
1189
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1190
|
+
name: errorCode,
|
|
1191
|
+
$metadata: deserializeMetadata(output),
|
|
1192
|
+
};
|
|
1193
|
+
break;
|
|
1194
|
+
default:
|
|
1195
|
+
const parsedBody = parsedOutput.body;
|
|
1196
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1197
|
+
response = {
|
|
1198
|
+
...parsedBody,
|
|
1199
|
+
name: `${errorCode}`,
|
|
1200
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1201
|
+
$fault: "client",
|
|
1202
|
+
$metadata: deserializeMetadata(output),
|
|
1203
|
+
} as any;
|
|
1204
|
+
}
|
|
1205
|
+
const message = response.message || response.Message || errorCode;
|
|
1206
|
+
response.message = message;
|
|
1207
|
+
delete response.Message;
|
|
1208
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
export const deserializeAws_restJson1CreateEventActionCommand = async (
|
|
1212
|
+
output: __HttpResponse,
|
|
1213
|
+
context: __SerdeContext
|
|
1214
|
+
): Promise<CreateEventActionCommandOutput> => {
|
|
1215
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1216
|
+
return deserializeAws_restJson1CreateEventActionCommandError(output, context);
|
|
1217
|
+
}
|
|
1218
|
+
const contents: CreateEventActionCommandOutput = {
|
|
1219
|
+
$metadata: deserializeMetadata(output),
|
|
1220
|
+
Action: undefined,
|
|
1221
|
+
Arn: undefined,
|
|
1222
|
+
CreatedAt: undefined,
|
|
1223
|
+
Event: undefined,
|
|
1224
|
+
Id: undefined,
|
|
1225
|
+
UpdatedAt: undefined,
|
|
1226
|
+
};
|
|
1227
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1228
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
1229
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
1230
|
+
}
|
|
1231
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1232
|
+
contents.Arn = __expectString(data.Arn);
|
|
1233
|
+
}
|
|
1234
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1235
|
+
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
|
|
1236
|
+
}
|
|
1237
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
1238
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
1239
|
+
}
|
|
1240
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
1241
|
+
contents.Id = __expectString(data.Id);
|
|
1242
|
+
}
|
|
1243
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1244
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
1245
|
+
}
|
|
1246
|
+
return Promise.resolve(contents);
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
const deserializeAws_restJson1CreateEventActionCommandError = async (
|
|
1250
|
+
output: __HttpResponse,
|
|
1251
|
+
context: __SerdeContext
|
|
1252
|
+
): Promise<CreateEventActionCommandOutput> => {
|
|
1253
|
+
const parsedOutput: any = {
|
|
1254
|
+
...output,
|
|
1255
|
+
body: await parseBody(output.body, context),
|
|
1256
|
+
};
|
|
1257
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1258
|
+
let errorCode = "UnknownError";
|
|
995
1259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
1260
|
switch (errorCode) {
|
|
997
1261
|
case "AccessDeniedException":
|
|
@@ -1106,7 +1370,7 @@ const deserializeAws_restJson1CreateJobCommandError = async (
|
|
|
1106
1370
|
body: await parseBody(output.body, context),
|
|
1107
1371
|
};
|
|
1108
1372
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1109
|
-
let errorCode
|
|
1373
|
+
let errorCode = "UnknownError";
|
|
1110
1374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1375
|
switch (errorCode) {
|
|
1112
1376
|
case "AccessDeniedException":
|
|
@@ -1225,7 +1489,7 @@ const deserializeAws_restJson1CreateRevisionCommandError = async (
|
|
|
1225
1489
|
body: await parseBody(output.body, context),
|
|
1226
1490
|
};
|
|
1227
1491
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1228
|
-
let errorCode
|
|
1492
|
+
let errorCode = "UnknownError";
|
|
1229
1493
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
1494
|
switch (errorCode) {
|
|
1231
1495
|
case "AccessDeniedException":
|
|
@@ -1308,7 +1572,7 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (
|
|
|
1308
1572
|
body: await parseBody(output.body, context),
|
|
1309
1573
|
};
|
|
1310
1574
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1311
|
-
let errorCode
|
|
1575
|
+
let errorCode = "UnknownError";
|
|
1312
1576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
1577
|
switch (errorCode) {
|
|
1314
1578
|
case "AccessDeniedException":
|
|
@@ -1399,7 +1663,7 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (
|
|
|
1399
1663
|
body: await parseBody(output.body, context),
|
|
1400
1664
|
};
|
|
1401
1665
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1402
|
-
let errorCode
|
|
1666
|
+
let errorCode = "UnknownError";
|
|
1403
1667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
1668
|
switch (errorCode) {
|
|
1405
1669
|
case "AccessDeniedException":
|
|
@@ -1467,6 +1731,81 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (
|
|
|
1467
1731
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1468
1732
|
};
|
|
1469
1733
|
|
|
1734
|
+
export const deserializeAws_restJson1DeleteEventActionCommand = async (
|
|
1735
|
+
output: __HttpResponse,
|
|
1736
|
+
context: __SerdeContext
|
|
1737
|
+
): Promise<DeleteEventActionCommandOutput> => {
|
|
1738
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1739
|
+
return deserializeAws_restJson1DeleteEventActionCommandError(output, context);
|
|
1740
|
+
}
|
|
1741
|
+
const contents: DeleteEventActionCommandOutput = {
|
|
1742
|
+
$metadata: deserializeMetadata(output),
|
|
1743
|
+
};
|
|
1744
|
+
await collectBody(output.body, context);
|
|
1745
|
+
return Promise.resolve(contents);
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1748
|
+
const deserializeAws_restJson1DeleteEventActionCommandError = async (
|
|
1749
|
+
output: __HttpResponse,
|
|
1750
|
+
context: __SerdeContext
|
|
1751
|
+
): Promise<DeleteEventActionCommandOutput> => {
|
|
1752
|
+
const parsedOutput: any = {
|
|
1753
|
+
...output,
|
|
1754
|
+
body: await parseBody(output.body, context),
|
|
1755
|
+
};
|
|
1756
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1757
|
+
let errorCode = "UnknownError";
|
|
1758
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1759
|
+
switch (errorCode) {
|
|
1760
|
+
case "InternalServerException":
|
|
1761
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1762
|
+
response = {
|
|
1763
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1764
|
+
name: errorCode,
|
|
1765
|
+
$metadata: deserializeMetadata(output),
|
|
1766
|
+
};
|
|
1767
|
+
break;
|
|
1768
|
+
case "ResourceNotFoundException":
|
|
1769
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1770
|
+
response = {
|
|
1771
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1772
|
+
name: errorCode,
|
|
1773
|
+
$metadata: deserializeMetadata(output),
|
|
1774
|
+
};
|
|
1775
|
+
break;
|
|
1776
|
+
case "ThrottlingException":
|
|
1777
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1778
|
+
response = {
|
|
1779
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1780
|
+
name: errorCode,
|
|
1781
|
+
$metadata: deserializeMetadata(output),
|
|
1782
|
+
};
|
|
1783
|
+
break;
|
|
1784
|
+
case "ValidationException":
|
|
1785
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1786
|
+
response = {
|
|
1787
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1788
|
+
name: errorCode,
|
|
1789
|
+
$metadata: deserializeMetadata(output),
|
|
1790
|
+
};
|
|
1791
|
+
break;
|
|
1792
|
+
default:
|
|
1793
|
+
const parsedBody = parsedOutput.body;
|
|
1794
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1795
|
+
response = {
|
|
1796
|
+
...parsedBody,
|
|
1797
|
+
name: `${errorCode}`,
|
|
1798
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1799
|
+
$fault: "client",
|
|
1800
|
+
$metadata: deserializeMetadata(output),
|
|
1801
|
+
} as any;
|
|
1802
|
+
}
|
|
1803
|
+
const message = response.message || response.Message || errorCode;
|
|
1804
|
+
response.message = message;
|
|
1805
|
+
delete response.Message;
|
|
1806
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1807
|
+
};
|
|
1808
|
+
|
|
1470
1809
|
export const deserializeAws_restJson1DeleteRevisionCommand = async (
|
|
1471
1810
|
output: __HttpResponse,
|
|
1472
1811
|
context: __SerdeContext
|
|
@@ -1490,7 +1829,7 @@ const deserializeAws_restJson1DeleteRevisionCommandError = async (
|
|
|
1490
1829
|
body: await parseBody(output.body, context),
|
|
1491
1830
|
};
|
|
1492
1831
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1493
|
-
let errorCode
|
|
1832
|
+
let errorCode = "UnknownError";
|
|
1494
1833
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
1834
|
switch (errorCode) {
|
|
1496
1835
|
case "AccessDeniedException":
|
|
@@ -1621,7 +1960,7 @@ const deserializeAws_restJson1GetAssetCommandError = async (
|
|
|
1621
1960
|
body: await parseBody(output.body, context),
|
|
1622
1961
|
};
|
|
1623
1962
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1624
|
-
let errorCode
|
|
1963
|
+
let errorCode = "UnknownError";
|
|
1625
1964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1965
|
switch (errorCode) {
|
|
1627
1966
|
case "InternalServerException":
|
|
@@ -1740,7 +2079,106 @@ const deserializeAws_restJson1GetDataSetCommandError = async (
|
|
|
1740
2079
|
body: await parseBody(output.body, context),
|
|
1741
2080
|
};
|
|
1742
2081
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1743
|
-
let errorCode
|
|
2082
|
+
let errorCode = "UnknownError";
|
|
2083
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
|
+
switch (errorCode) {
|
|
2085
|
+
case "InternalServerException":
|
|
2086
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2087
|
+
response = {
|
|
2088
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2089
|
+
name: errorCode,
|
|
2090
|
+
$metadata: deserializeMetadata(output),
|
|
2091
|
+
};
|
|
2092
|
+
break;
|
|
2093
|
+
case "ResourceNotFoundException":
|
|
2094
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2095
|
+
response = {
|
|
2096
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2097
|
+
name: errorCode,
|
|
2098
|
+
$metadata: deserializeMetadata(output),
|
|
2099
|
+
};
|
|
2100
|
+
break;
|
|
2101
|
+
case "ThrottlingException":
|
|
2102
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2103
|
+
response = {
|
|
2104
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2105
|
+
name: errorCode,
|
|
2106
|
+
$metadata: deserializeMetadata(output),
|
|
2107
|
+
};
|
|
2108
|
+
break;
|
|
2109
|
+
case "ValidationException":
|
|
2110
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
2111
|
+
response = {
|
|
2112
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2113
|
+
name: errorCode,
|
|
2114
|
+
$metadata: deserializeMetadata(output),
|
|
2115
|
+
};
|
|
2116
|
+
break;
|
|
2117
|
+
default:
|
|
2118
|
+
const parsedBody = parsedOutput.body;
|
|
2119
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2120
|
+
response = {
|
|
2121
|
+
...parsedBody,
|
|
2122
|
+
name: `${errorCode}`,
|
|
2123
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2124
|
+
$fault: "client",
|
|
2125
|
+
$metadata: deserializeMetadata(output),
|
|
2126
|
+
} as any;
|
|
2127
|
+
}
|
|
2128
|
+
const message = response.message || response.Message || errorCode;
|
|
2129
|
+
response.message = message;
|
|
2130
|
+
delete response.Message;
|
|
2131
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
export const deserializeAws_restJson1GetEventActionCommand = async (
|
|
2135
|
+
output: __HttpResponse,
|
|
2136
|
+
context: __SerdeContext
|
|
2137
|
+
): Promise<GetEventActionCommandOutput> => {
|
|
2138
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2139
|
+
return deserializeAws_restJson1GetEventActionCommandError(output, context);
|
|
2140
|
+
}
|
|
2141
|
+
const contents: GetEventActionCommandOutput = {
|
|
2142
|
+
$metadata: deserializeMetadata(output),
|
|
2143
|
+
Action: undefined,
|
|
2144
|
+
Arn: undefined,
|
|
2145
|
+
CreatedAt: undefined,
|
|
2146
|
+
Event: undefined,
|
|
2147
|
+
Id: undefined,
|
|
2148
|
+
UpdatedAt: undefined,
|
|
2149
|
+
};
|
|
2150
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2151
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
2152
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
2153
|
+
}
|
|
2154
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2155
|
+
contents.Arn = __expectString(data.Arn);
|
|
2156
|
+
}
|
|
2157
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
2158
|
+
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
|
|
2159
|
+
}
|
|
2160
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
2161
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
2162
|
+
}
|
|
2163
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
2164
|
+
contents.Id = __expectString(data.Id);
|
|
2165
|
+
}
|
|
2166
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2167
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
2168
|
+
}
|
|
2169
|
+
return Promise.resolve(contents);
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2172
|
+
const deserializeAws_restJson1GetEventActionCommandError = async (
|
|
2173
|
+
output: __HttpResponse,
|
|
2174
|
+
context: __SerdeContext
|
|
2175
|
+
): Promise<GetEventActionCommandOutput> => {
|
|
2176
|
+
const parsedOutput: any = {
|
|
2177
|
+
...output,
|
|
2178
|
+
body: await parseBody(output.body, context),
|
|
2179
|
+
};
|
|
2180
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2181
|
+
let errorCode = "UnknownError";
|
|
1744
2182
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
2183
|
switch (errorCode) {
|
|
1746
2184
|
case "InternalServerException":
|
|
@@ -1847,7 +2285,7 @@ const deserializeAws_restJson1GetJobCommandError = async (
|
|
|
1847
2285
|
body: await parseBody(output.body, context),
|
|
1848
2286
|
};
|
|
1849
2287
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1850
|
-
let errorCode
|
|
2288
|
+
let errorCode = "UnknownError";
|
|
1851
2289
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
2290
|
switch (errorCode) {
|
|
1853
2291
|
case "InternalServerException":
|
|
@@ -1937,28 +2375,111 @@ export const deserializeAws_restJson1GetRevisionCommand = async (
|
|
|
1937
2375
|
if (data.Id !== undefined && data.Id !== null) {
|
|
1938
2376
|
contents.Id = __expectString(data.Id);
|
|
1939
2377
|
}
|
|
1940
|
-
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
1941
|
-
contents.SourceId = __expectString(data.SourceId);
|
|
2378
|
+
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
2379
|
+
contents.SourceId = __expectString(data.SourceId);
|
|
2380
|
+
}
|
|
2381
|
+
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2382
|
+
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
2383
|
+
}
|
|
2384
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2385
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
2386
|
+
}
|
|
2387
|
+
return Promise.resolve(contents);
|
|
2388
|
+
};
|
|
2389
|
+
|
|
2390
|
+
const deserializeAws_restJson1GetRevisionCommandError = async (
|
|
2391
|
+
output: __HttpResponse,
|
|
2392
|
+
context: __SerdeContext
|
|
2393
|
+
): Promise<GetRevisionCommandOutput> => {
|
|
2394
|
+
const parsedOutput: any = {
|
|
2395
|
+
...output,
|
|
2396
|
+
body: await parseBody(output.body, context),
|
|
2397
|
+
};
|
|
2398
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2399
|
+
let errorCode = "UnknownError";
|
|
2400
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2401
|
+
switch (errorCode) {
|
|
2402
|
+
case "InternalServerException":
|
|
2403
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2404
|
+
response = {
|
|
2405
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2406
|
+
name: errorCode,
|
|
2407
|
+
$metadata: deserializeMetadata(output),
|
|
2408
|
+
};
|
|
2409
|
+
break;
|
|
2410
|
+
case "ResourceNotFoundException":
|
|
2411
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2412
|
+
response = {
|
|
2413
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2414
|
+
name: errorCode,
|
|
2415
|
+
$metadata: deserializeMetadata(output),
|
|
2416
|
+
};
|
|
2417
|
+
break;
|
|
2418
|
+
case "ThrottlingException":
|
|
2419
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2420
|
+
response = {
|
|
2421
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2422
|
+
name: errorCode,
|
|
2423
|
+
$metadata: deserializeMetadata(output),
|
|
2424
|
+
};
|
|
2425
|
+
break;
|
|
2426
|
+
case "ValidationException":
|
|
2427
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
2428
|
+
response = {
|
|
2429
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2430
|
+
name: errorCode,
|
|
2431
|
+
$metadata: deserializeMetadata(output),
|
|
2432
|
+
};
|
|
2433
|
+
break;
|
|
2434
|
+
default:
|
|
2435
|
+
const parsedBody = parsedOutput.body;
|
|
2436
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2437
|
+
response = {
|
|
2438
|
+
...parsedBody,
|
|
2439
|
+
name: `${errorCode}`,
|
|
2440
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2441
|
+
$fault: "client",
|
|
2442
|
+
$metadata: deserializeMetadata(output),
|
|
2443
|
+
} as any;
|
|
2444
|
+
}
|
|
2445
|
+
const message = response.message || response.Message || errorCode;
|
|
2446
|
+
response.message = message;
|
|
2447
|
+
delete response.Message;
|
|
2448
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2449
|
+
};
|
|
2450
|
+
|
|
2451
|
+
export const deserializeAws_restJson1ListDataSetRevisionsCommand = async (
|
|
2452
|
+
output: __HttpResponse,
|
|
2453
|
+
context: __SerdeContext
|
|
2454
|
+
): Promise<ListDataSetRevisionsCommandOutput> => {
|
|
2455
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2456
|
+
return deserializeAws_restJson1ListDataSetRevisionsCommandError(output, context);
|
|
1942
2457
|
}
|
|
1943
|
-
|
|
1944
|
-
|
|
2458
|
+
const contents: ListDataSetRevisionsCommandOutput = {
|
|
2459
|
+
$metadata: deserializeMetadata(output),
|
|
2460
|
+
NextToken: undefined,
|
|
2461
|
+
Revisions: undefined,
|
|
2462
|
+
};
|
|
2463
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2464
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2465
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1945
2466
|
}
|
|
1946
|
-
if (data.
|
|
1947
|
-
contents.
|
|
2467
|
+
if (data.Revisions !== undefined && data.Revisions !== null) {
|
|
2468
|
+
contents.Revisions = deserializeAws_restJson1ListOfRevisionEntry(data.Revisions, context);
|
|
1948
2469
|
}
|
|
1949
2470
|
return Promise.resolve(contents);
|
|
1950
2471
|
};
|
|
1951
2472
|
|
|
1952
|
-
const
|
|
2473
|
+
const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (
|
|
1953
2474
|
output: __HttpResponse,
|
|
1954
2475
|
context: __SerdeContext
|
|
1955
|
-
): Promise<
|
|
2476
|
+
): Promise<ListDataSetRevisionsCommandOutput> => {
|
|
1956
2477
|
const parsedOutput: any = {
|
|
1957
2478
|
...output,
|
|
1958
2479
|
body: await parseBody(output.body, context),
|
|
1959
2480
|
};
|
|
1960
2481
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1961
|
-
let errorCode
|
|
2482
|
+
let errorCode = "UnknownError";
|
|
1962
2483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
2484
|
switch (errorCode) {
|
|
1964
2485
|
case "InternalServerException":
|
|
@@ -2010,38 +2531,38 @@ const deserializeAws_restJson1GetRevisionCommandError = async (
|
|
|
2010
2531
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2011
2532
|
};
|
|
2012
2533
|
|
|
2013
|
-
export const
|
|
2534
|
+
export const deserializeAws_restJson1ListDataSetsCommand = async (
|
|
2014
2535
|
output: __HttpResponse,
|
|
2015
2536
|
context: __SerdeContext
|
|
2016
|
-
): Promise<
|
|
2537
|
+
): Promise<ListDataSetsCommandOutput> => {
|
|
2017
2538
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2018
|
-
return
|
|
2539
|
+
return deserializeAws_restJson1ListDataSetsCommandError(output, context);
|
|
2019
2540
|
}
|
|
2020
|
-
const contents:
|
|
2541
|
+
const contents: ListDataSetsCommandOutput = {
|
|
2021
2542
|
$metadata: deserializeMetadata(output),
|
|
2543
|
+
DataSets: undefined,
|
|
2022
2544
|
NextToken: undefined,
|
|
2023
|
-
Revisions: undefined,
|
|
2024
2545
|
};
|
|
2025
2546
|
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2547
|
+
if (data.DataSets !== undefined && data.DataSets !== null) {
|
|
2548
|
+
contents.DataSets = deserializeAws_restJson1ListOfDataSetEntry(data.DataSets, context);
|
|
2549
|
+
}
|
|
2026
2550
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2027
2551
|
contents.NextToken = __expectString(data.NextToken);
|
|
2028
2552
|
}
|
|
2029
|
-
if (data.Revisions !== undefined && data.Revisions !== null) {
|
|
2030
|
-
contents.Revisions = deserializeAws_restJson1ListOfRevisionEntry(data.Revisions, context);
|
|
2031
|
-
}
|
|
2032
2553
|
return Promise.resolve(contents);
|
|
2033
2554
|
};
|
|
2034
2555
|
|
|
2035
|
-
const
|
|
2556
|
+
const deserializeAws_restJson1ListDataSetsCommandError = async (
|
|
2036
2557
|
output: __HttpResponse,
|
|
2037
2558
|
context: __SerdeContext
|
|
2038
|
-
): Promise<
|
|
2559
|
+
): Promise<ListDataSetsCommandOutput> => {
|
|
2039
2560
|
const parsedOutput: any = {
|
|
2040
2561
|
...output,
|
|
2041
2562
|
body: await parseBody(output.body, context),
|
|
2042
2563
|
};
|
|
2043
2564
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2044
|
-
let errorCode
|
|
2565
|
+
let errorCode = "UnknownError";
|
|
2045
2566
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
2567
|
switch (errorCode) {
|
|
2047
2568
|
case "InternalServerException":
|
|
@@ -2093,21 +2614,21 @@ const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (
|
|
|
2093
2614
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2094
2615
|
};
|
|
2095
2616
|
|
|
2096
|
-
export const
|
|
2617
|
+
export const deserializeAws_restJson1ListEventActionsCommand = async (
|
|
2097
2618
|
output: __HttpResponse,
|
|
2098
2619
|
context: __SerdeContext
|
|
2099
|
-
): Promise<
|
|
2620
|
+
): Promise<ListEventActionsCommandOutput> => {
|
|
2100
2621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2101
|
-
return
|
|
2622
|
+
return deserializeAws_restJson1ListEventActionsCommandError(output, context);
|
|
2102
2623
|
}
|
|
2103
|
-
const contents:
|
|
2624
|
+
const contents: ListEventActionsCommandOutput = {
|
|
2104
2625
|
$metadata: deserializeMetadata(output),
|
|
2105
|
-
|
|
2626
|
+
EventActions: undefined,
|
|
2106
2627
|
NextToken: undefined,
|
|
2107
2628
|
};
|
|
2108
2629
|
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2109
|
-
if (data.
|
|
2110
|
-
contents.
|
|
2630
|
+
if (data.EventActions !== undefined && data.EventActions !== null) {
|
|
2631
|
+
contents.EventActions = deserializeAws_restJson1ListOfEventActionEntry(data.EventActions, context);
|
|
2111
2632
|
}
|
|
2112
2633
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2113
2634
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2115,16 +2636,16 @@ export const deserializeAws_restJson1ListDataSetsCommand = async (
|
|
|
2115
2636
|
return Promise.resolve(contents);
|
|
2116
2637
|
};
|
|
2117
2638
|
|
|
2118
|
-
const
|
|
2639
|
+
const deserializeAws_restJson1ListEventActionsCommandError = async (
|
|
2119
2640
|
output: __HttpResponse,
|
|
2120
2641
|
context: __SerdeContext
|
|
2121
|
-
): Promise<
|
|
2642
|
+
): Promise<ListEventActionsCommandOutput> => {
|
|
2122
2643
|
const parsedOutput: any = {
|
|
2123
2644
|
...output,
|
|
2124
2645
|
body: await parseBody(output.body, context),
|
|
2125
2646
|
};
|
|
2126
2647
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2127
|
-
let errorCode
|
|
2648
|
+
let errorCode = "UnknownError";
|
|
2128
2649
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
2650
|
switch (errorCode) {
|
|
2130
2651
|
case "InternalServerException":
|
|
@@ -2207,7 +2728,7 @@ const deserializeAws_restJson1ListJobsCommandError = async (
|
|
|
2207
2728
|
body: await parseBody(output.body, context),
|
|
2208
2729
|
};
|
|
2209
2730
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2210
|
-
let errorCode
|
|
2731
|
+
let errorCode = "UnknownError";
|
|
2211
2732
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
2733
|
switch (errorCode) {
|
|
2213
2734
|
case "InternalServerException":
|
|
@@ -2290,7 +2811,7 @@ const deserializeAws_restJson1ListRevisionAssetsCommandError = async (
|
|
|
2290
2811
|
body: await parseBody(output.body, context),
|
|
2291
2812
|
};
|
|
2292
2813
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2293
|
-
let errorCode
|
|
2814
|
+
let errorCode = "UnknownError";
|
|
2294
2815
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2295
2816
|
switch (errorCode) {
|
|
2296
2817
|
case "InternalServerException":
|
|
@@ -2369,7 +2890,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (
|
|
|
2369
2890
|
body: await parseBody(output.body, context),
|
|
2370
2891
|
};
|
|
2371
2892
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2372
|
-
let errorCode
|
|
2893
|
+
let errorCode = "UnknownError";
|
|
2373
2894
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2374
2895
|
switch (errorCode) {
|
|
2375
2896
|
default:
|
|
@@ -2412,7 +2933,7 @@ const deserializeAws_restJson1StartJobCommandError = async (
|
|
|
2412
2933
|
body: await parseBody(output.body, context),
|
|
2413
2934
|
};
|
|
2414
2935
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2415
|
-
let errorCode
|
|
2936
|
+
let errorCode = "UnknownError";
|
|
2416
2937
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2417
2938
|
switch (errorCode) {
|
|
2418
2939
|
case "AccessDeniedException":
|
|
@@ -2503,7 +3024,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (
|
|
|
2503
3024
|
body: await parseBody(output.body, context),
|
|
2504
3025
|
};
|
|
2505
3026
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2506
|
-
let errorCode
|
|
3027
|
+
let errorCode = "UnknownError";
|
|
2507
3028
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2508
3029
|
switch (errorCode) {
|
|
2509
3030
|
default:
|
|
@@ -2546,7 +3067,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (
|
|
|
2546
3067
|
body: await parseBody(output.body, context),
|
|
2547
3068
|
};
|
|
2548
3069
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2549
|
-
let errorCode
|
|
3070
|
+
let errorCode = "UnknownError";
|
|
2550
3071
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2551
3072
|
switch (errorCode) {
|
|
2552
3073
|
default:
|
|
@@ -2629,7 +3150,7 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (
|
|
|
2629
3150
|
body: await parseBody(output.body, context),
|
|
2630
3151
|
};
|
|
2631
3152
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2632
|
-
let errorCode
|
|
3153
|
+
let errorCode = "UnknownError";
|
|
2633
3154
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2634
3155
|
switch (errorCode) {
|
|
2635
3156
|
case "AccessDeniedException":
|
|
@@ -2760,7 +3281,114 @@ const deserializeAws_restJson1UpdateDataSetCommandError = async (
|
|
|
2760
3281
|
body: await parseBody(output.body, context),
|
|
2761
3282
|
};
|
|
2762
3283
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2763
|
-
let errorCode
|
|
3284
|
+
let errorCode = "UnknownError";
|
|
3285
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
|
+
switch (errorCode) {
|
|
3287
|
+
case "AccessDeniedException":
|
|
3288
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
3289
|
+
response = {
|
|
3290
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3291
|
+
name: errorCode,
|
|
3292
|
+
$metadata: deserializeMetadata(output),
|
|
3293
|
+
};
|
|
3294
|
+
break;
|
|
3295
|
+
case "InternalServerException":
|
|
3296
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
3297
|
+
response = {
|
|
3298
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3299
|
+
name: errorCode,
|
|
3300
|
+
$metadata: deserializeMetadata(output),
|
|
3301
|
+
};
|
|
3302
|
+
break;
|
|
3303
|
+
case "ResourceNotFoundException":
|
|
3304
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
3305
|
+
response = {
|
|
3306
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3307
|
+
name: errorCode,
|
|
3308
|
+
$metadata: deserializeMetadata(output),
|
|
3309
|
+
};
|
|
3310
|
+
break;
|
|
3311
|
+
case "ThrottlingException":
|
|
3312
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
3313
|
+
response = {
|
|
3314
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3315
|
+
name: errorCode,
|
|
3316
|
+
$metadata: deserializeMetadata(output),
|
|
3317
|
+
};
|
|
3318
|
+
break;
|
|
3319
|
+
case "ValidationException":
|
|
3320
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
3321
|
+
response = {
|
|
3322
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3323
|
+
name: errorCode,
|
|
3324
|
+
$metadata: deserializeMetadata(output),
|
|
3325
|
+
};
|
|
3326
|
+
break;
|
|
3327
|
+
default:
|
|
3328
|
+
const parsedBody = parsedOutput.body;
|
|
3329
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3330
|
+
response = {
|
|
3331
|
+
...parsedBody,
|
|
3332
|
+
name: `${errorCode}`,
|
|
3333
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3334
|
+
$fault: "client",
|
|
3335
|
+
$metadata: deserializeMetadata(output),
|
|
3336
|
+
} as any;
|
|
3337
|
+
}
|
|
3338
|
+
const message = response.message || response.Message || errorCode;
|
|
3339
|
+
response.message = message;
|
|
3340
|
+
delete response.Message;
|
|
3341
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3342
|
+
};
|
|
3343
|
+
|
|
3344
|
+
export const deserializeAws_restJson1UpdateEventActionCommand = async (
|
|
3345
|
+
output: __HttpResponse,
|
|
3346
|
+
context: __SerdeContext
|
|
3347
|
+
): Promise<UpdateEventActionCommandOutput> => {
|
|
3348
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3349
|
+
return deserializeAws_restJson1UpdateEventActionCommandError(output, context);
|
|
3350
|
+
}
|
|
3351
|
+
const contents: UpdateEventActionCommandOutput = {
|
|
3352
|
+
$metadata: deserializeMetadata(output),
|
|
3353
|
+
Action: undefined,
|
|
3354
|
+
Arn: undefined,
|
|
3355
|
+
CreatedAt: undefined,
|
|
3356
|
+
Event: undefined,
|
|
3357
|
+
Id: undefined,
|
|
3358
|
+
UpdatedAt: undefined,
|
|
3359
|
+
};
|
|
3360
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3361
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
3362
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
3363
|
+
}
|
|
3364
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
3365
|
+
contents.Arn = __expectString(data.Arn);
|
|
3366
|
+
}
|
|
3367
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
3368
|
+
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
|
|
3369
|
+
}
|
|
3370
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
3371
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
3372
|
+
}
|
|
3373
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
3374
|
+
contents.Id = __expectString(data.Id);
|
|
3375
|
+
}
|
|
3376
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
3377
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
3378
|
+
}
|
|
3379
|
+
return Promise.resolve(contents);
|
|
3380
|
+
};
|
|
3381
|
+
|
|
3382
|
+
const deserializeAws_restJson1UpdateEventActionCommandError = async (
|
|
3383
|
+
output: __HttpResponse,
|
|
3384
|
+
context: __SerdeContext
|
|
3385
|
+
): Promise<UpdateEventActionCommandOutput> => {
|
|
3386
|
+
const parsedOutput: any = {
|
|
3387
|
+
...output,
|
|
3388
|
+
body: await parseBody(output.body, context),
|
|
3389
|
+
};
|
|
3390
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3391
|
+
let errorCode = "UnknownError";
|
|
2764
3392
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
3393
|
switch (errorCode) {
|
|
2766
3394
|
case "AccessDeniedException":
|
|
@@ -2875,7 +3503,7 @@ const deserializeAws_restJson1UpdateRevisionCommandError = async (
|
|
|
2875
3503
|
body: await parseBody(output.body, context),
|
|
2876
3504
|
};
|
|
2877
3505
|
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2878
|
-
let errorCode
|
|
3506
|
+
let errorCode = "UnknownError";
|
|
2879
3507
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2880
3508
|
switch (errorCode) {
|
|
2881
3509
|
case "AccessDeniedException":
|
|
@@ -3077,15 +3705,31 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (
|
|
|
3077
3705
|
name: "ValidationException",
|
|
3078
3706
|
$fault: "client",
|
|
3079
3707
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3708
|
+
ExceptionCause: undefined,
|
|
3080
3709
|
Message: undefined,
|
|
3081
3710
|
};
|
|
3082
3711
|
const data: any = parsedOutput.body;
|
|
3712
|
+
if (data.ExceptionCause !== undefined && data.ExceptionCause !== null) {
|
|
3713
|
+
contents.ExceptionCause = __expectString(data.ExceptionCause);
|
|
3714
|
+
}
|
|
3083
3715
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3084
3716
|
contents.Message = __expectString(data.Message);
|
|
3085
3717
|
}
|
|
3086
3718
|
return contents;
|
|
3087
3719
|
};
|
|
3088
3720
|
|
|
3721
|
+
const serializeAws_restJson1Action = (input: Action, context: __SerdeContext): any => {
|
|
3722
|
+
return {
|
|
3723
|
+
...(input.ExportRevisionToS3 !== undefined &&
|
|
3724
|
+
input.ExportRevisionToS3 !== null && {
|
|
3725
|
+
ExportRevisionToS3: serializeAws_restJson1AutoExportRevisionToS3RequestDetails(
|
|
3726
|
+
input.ExportRevisionToS3,
|
|
3727
|
+
context
|
|
3728
|
+
),
|
|
3729
|
+
}),
|
|
3730
|
+
};
|
|
3731
|
+
};
|
|
3732
|
+
|
|
3089
3733
|
const serializeAws_restJson1AssetDestinationEntry = (input: AssetDestinationEntry, context: __SerdeContext): any => {
|
|
3090
3734
|
return {
|
|
3091
3735
|
...(input.AssetId !== undefined && input.AssetId !== null && { AssetId: input.AssetId }),
|
|
@@ -3101,6 +3745,44 @@ const serializeAws_restJson1AssetSourceEntry = (input: AssetSourceEntry, context
|
|
|
3101
3745
|
};
|
|
3102
3746
|
};
|
|
3103
3747
|
|
|
3748
|
+
const serializeAws_restJson1AutoExportRevisionDestinationEntry = (
|
|
3749
|
+
input: AutoExportRevisionDestinationEntry,
|
|
3750
|
+
context: __SerdeContext
|
|
3751
|
+
): any => {
|
|
3752
|
+
return {
|
|
3753
|
+
...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
|
|
3754
|
+
...(input.KeyPattern !== undefined && input.KeyPattern !== null && { KeyPattern: input.KeyPattern }),
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3757
|
+
|
|
3758
|
+
const serializeAws_restJson1AutoExportRevisionToS3RequestDetails = (
|
|
3759
|
+
input: AutoExportRevisionToS3RequestDetails,
|
|
3760
|
+
context: __SerdeContext
|
|
3761
|
+
): any => {
|
|
3762
|
+
return {
|
|
3763
|
+
...(input.Encryption !== undefined &&
|
|
3764
|
+
input.Encryption !== null && {
|
|
3765
|
+
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
3766
|
+
}),
|
|
3767
|
+
...(input.RevisionDestination !== undefined &&
|
|
3768
|
+
input.RevisionDestination !== null && {
|
|
3769
|
+
RevisionDestination: serializeAws_restJson1AutoExportRevisionDestinationEntry(
|
|
3770
|
+
input.RevisionDestination,
|
|
3771
|
+
context
|
|
3772
|
+
),
|
|
3773
|
+
}),
|
|
3774
|
+
};
|
|
3775
|
+
};
|
|
3776
|
+
|
|
3777
|
+
const serializeAws_restJson1Event = (input: Event, context: __SerdeContext): any => {
|
|
3778
|
+
return {
|
|
3779
|
+
...(input.RevisionPublished !== undefined &&
|
|
3780
|
+
input.RevisionPublished !== null && {
|
|
3781
|
+
RevisionPublished: serializeAws_restJson1RevisionPublished(input.RevisionPublished, context),
|
|
3782
|
+
}),
|
|
3783
|
+
};
|
|
3784
|
+
};
|
|
3785
|
+
|
|
3104
3786
|
const serializeAws_restJson1ExportAssetsToS3RequestDetails = (
|
|
3105
3787
|
input: ExportAssetsToS3RequestDetails,
|
|
3106
3788
|
context: __SerdeContext
|
|
@@ -3279,6 +3961,21 @@ const serializeAws_restJson1RevisionDestinationEntry = (
|
|
|
3279
3961
|
};
|
|
3280
3962
|
};
|
|
3281
3963
|
|
|
3964
|
+
const serializeAws_restJson1RevisionPublished = (input: RevisionPublished, context: __SerdeContext): any => {
|
|
3965
|
+
return {
|
|
3966
|
+
...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
|
|
3967
|
+
};
|
|
3968
|
+
};
|
|
3969
|
+
|
|
3970
|
+
const deserializeAws_restJson1Action = (output: any, context: __SerdeContext): Action => {
|
|
3971
|
+
return {
|
|
3972
|
+
ExportRevisionToS3:
|
|
3973
|
+
output.ExportRevisionToS3 !== undefined && output.ExportRevisionToS3 !== null
|
|
3974
|
+
? deserializeAws_restJson1AutoExportRevisionToS3RequestDetails(output.ExportRevisionToS3, context)
|
|
3975
|
+
: undefined,
|
|
3976
|
+
} as any;
|
|
3977
|
+
};
|
|
3978
|
+
|
|
3282
3979
|
const deserializeAws_restJson1AssetDestinationEntry = (output: any, context: __SerdeContext): AssetDestinationEntry => {
|
|
3283
3980
|
return {
|
|
3284
3981
|
AssetId: __expectString(output.AssetId),
|
|
@@ -3327,6 +4024,32 @@ const deserializeAws_restJson1AssetSourceEntry = (output: any, context: __SerdeC
|
|
|
3327
4024
|
} as any;
|
|
3328
4025
|
};
|
|
3329
4026
|
|
|
4027
|
+
const deserializeAws_restJson1AutoExportRevisionDestinationEntry = (
|
|
4028
|
+
output: any,
|
|
4029
|
+
context: __SerdeContext
|
|
4030
|
+
): AutoExportRevisionDestinationEntry => {
|
|
4031
|
+
return {
|
|
4032
|
+
Bucket: __expectString(output.Bucket),
|
|
4033
|
+
KeyPattern: __expectString(output.KeyPattern),
|
|
4034
|
+
} as any;
|
|
4035
|
+
};
|
|
4036
|
+
|
|
4037
|
+
const deserializeAws_restJson1AutoExportRevisionToS3RequestDetails = (
|
|
4038
|
+
output: any,
|
|
4039
|
+
context: __SerdeContext
|
|
4040
|
+
): AutoExportRevisionToS3RequestDetails => {
|
|
4041
|
+
return {
|
|
4042
|
+
Encryption:
|
|
4043
|
+
output.Encryption !== undefined && output.Encryption !== null
|
|
4044
|
+
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
4045
|
+
: undefined,
|
|
4046
|
+
RevisionDestination:
|
|
4047
|
+
output.RevisionDestination !== undefined && output.RevisionDestination !== null
|
|
4048
|
+
? deserializeAws_restJson1AutoExportRevisionDestinationEntry(output.RevisionDestination, context)
|
|
4049
|
+
: undefined,
|
|
4050
|
+
} as any;
|
|
4051
|
+
};
|
|
4052
|
+
|
|
3330
4053
|
const deserializeAws_restJson1DataSetEntry = (output: any, context: __SerdeContext): DataSetEntry => {
|
|
3331
4054
|
return {
|
|
3332
4055
|
Arn: __expectString(output.Arn),
|
|
@@ -3368,6 +4091,38 @@ const deserializeAws_restJson1Details = (output: any, context: __SerdeContext):
|
|
|
3368
4091
|
} as any;
|
|
3369
4092
|
};
|
|
3370
4093
|
|
|
4094
|
+
const deserializeAws_restJson1Event = (output: any, context: __SerdeContext): Event => {
|
|
4095
|
+
return {
|
|
4096
|
+
RevisionPublished:
|
|
4097
|
+
output.RevisionPublished !== undefined && output.RevisionPublished !== null
|
|
4098
|
+
? deserializeAws_restJson1RevisionPublished(output.RevisionPublished, context)
|
|
4099
|
+
: undefined,
|
|
4100
|
+
} as any;
|
|
4101
|
+
};
|
|
4102
|
+
|
|
4103
|
+
const deserializeAws_restJson1EventActionEntry = (output: any, context: __SerdeContext): EventActionEntry => {
|
|
4104
|
+
return {
|
|
4105
|
+
Action:
|
|
4106
|
+
output.Action !== undefined && output.Action !== null
|
|
4107
|
+
? deserializeAws_restJson1Action(output.Action, context)
|
|
4108
|
+
: undefined,
|
|
4109
|
+
Arn: __expectString(output.Arn),
|
|
4110
|
+
CreatedAt:
|
|
4111
|
+
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
4112
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
|
|
4113
|
+
: undefined,
|
|
4114
|
+
Event:
|
|
4115
|
+
output.Event !== undefined && output.Event !== null
|
|
4116
|
+
? deserializeAws_restJson1Event(output.Event, context)
|
|
4117
|
+
: undefined,
|
|
4118
|
+
Id: __expectString(output.Id),
|
|
4119
|
+
UpdatedAt:
|
|
4120
|
+
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
4121
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
|
|
4122
|
+
: undefined,
|
|
4123
|
+
} as any;
|
|
4124
|
+
};
|
|
4125
|
+
|
|
3371
4126
|
const deserializeAws_restJson1ExportAssetsToS3ResponseDetails = (
|
|
3372
4127
|
output: any,
|
|
3373
4128
|
context: __SerdeContext
|
|
@@ -3556,6 +4311,17 @@ const deserializeAws_restJson1ListOfDataSetEntry = (output: any, context: __Serd
|
|
|
3556
4311
|
});
|
|
3557
4312
|
};
|
|
3558
4313
|
|
|
4314
|
+
const deserializeAws_restJson1ListOfEventActionEntry = (output: any, context: __SerdeContext): EventActionEntry[] => {
|
|
4315
|
+
return (output || [])
|
|
4316
|
+
.filter((e: any) => e != null)
|
|
4317
|
+
.map((entry: any) => {
|
|
4318
|
+
if (entry === null) {
|
|
4319
|
+
return null as any;
|
|
4320
|
+
}
|
|
4321
|
+
return deserializeAws_restJson1EventActionEntry(entry, context);
|
|
4322
|
+
});
|
|
4323
|
+
};
|
|
4324
|
+
|
|
3559
4325
|
const deserializeAws_restJson1ListOfJobEntry = (output: any, context: __SerdeContext): JobEntry[] => {
|
|
3560
4326
|
return (output || [])
|
|
3561
4327
|
.filter((e: any) => e != null)
|
|
@@ -3676,6 +4442,12 @@ const deserializeAws_restJson1RevisionEntry = (output: any, context: __SerdeCont
|
|
|
3676
4442
|
} as any;
|
|
3677
4443
|
};
|
|
3678
4444
|
|
|
4445
|
+
const deserializeAws_restJson1RevisionPublished = (output: any, context: __SerdeContext): RevisionPublished => {
|
|
4446
|
+
return {
|
|
4447
|
+
DataSetId: __expectString(output.DataSetId),
|
|
4448
|
+
} as any;
|
|
4449
|
+
};
|
|
4450
|
+
|
|
3679
4451
|
const deserializeAws_restJson1S3SnapshotAsset = (output: any, context: __SerdeContext): S3SnapshotAsset => {
|
|
3680
4452
|
return {
|
|
3681
4453
|
Size: __limitedParseDouble(output.Size),
|