@aws-sdk/client-dataexchange 3.31.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/DataExchange.js +76 -1
- package/dist-cjs/DataExchange.js.map +1 -0
- package/{dist/cjs → dist-cjs}/DataExchangeClient.js +14 -14
- package/dist-cjs/DataExchangeClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CancelJobCommand.js +5 -5
- package/dist-cjs/commands/CancelJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateDataSetCommand.js +5 -5
- package/dist-cjs/commands/CreateDataSetCommand.js.map +1 -0
- package/dist-cjs/commands/CreateEventActionCommand.js +61 -0
- package/dist-cjs/commands/CreateEventActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateJobCommand.js +5 -5
- package/dist-cjs/commands/CreateJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateRevisionCommand.js +5 -5
- package/dist-cjs/commands/CreateRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteAssetCommand.js +5 -5
- package/dist-cjs/commands/DeleteAssetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteDataSetCommand.js +5 -5
- package/dist-cjs/commands/DeleteDataSetCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteEventActionCommand.js +61 -0
- package/dist-cjs/commands/DeleteEventActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteRevisionCommand.js +5 -5
- package/dist-cjs/commands/DeleteRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAssetCommand.js +5 -5
- package/dist-cjs/commands/GetAssetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetDataSetCommand.js +5 -5
- package/dist-cjs/commands/GetDataSetCommand.js.map +1 -0
- package/dist-cjs/commands/GetEventActionCommand.js +61 -0
- package/dist-cjs/commands/GetEventActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetJobCommand.js +5 -5
- package/dist-cjs/commands/GetJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetRevisionCommand.js +5 -5
- package/dist-cjs/commands/GetRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDataSetRevisionsCommand.js +5 -5
- package/dist-cjs/commands/ListDataSetRevisionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDataSetsCommand.js +5 -5
- package/dist-cjs/commands/ListDataSetsCommand.js.map +1 -0
- package/dist-cjs/commands/ListEventActionsCommand.js +61 -0
- package/dist-cjs/commands/ListEventActionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListJobsCommand.js +5 -5
- package/dist-cjs/commands/ListJobsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListRevisionAssetsCommand.js +5 -5
- package/dist-cjs/commands/ListRevisionAssetsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StartJobCommand.js +5 -5
- package/dist-cjs/commands/StartJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateAssetCommand.js +5 -5
- package/dist-cjs/commands/UpdateAssetCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateDataSetCommand.js +5 -5
- package/dist-cjs/commands/UpdateDataSetCommand.js.map +1 -0
- package/dist-cjs/commands/UpdateEventActionCommand.js +61 -0
- package/dist-cjs/commands/UpdateEventActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateRevisionCommand.js +5 -5
- package/dist-cjs/commands/UpdateRevisionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +40 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +156 -11
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListDataSetRevisionsPaginator.js +1 -1
- package/dist-cjs/pagination/ListDataSetRevisionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListDataSetsPaginator.js +1 -1
- package/dist-cjs/pagination/ListDataSetsPaginator.js.map +1 -0
- package/dist-cjs/pagination/ListEventActionsPaginator.js +46 -0
- package/dist-cjs/pagination/ListEventActionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListJobsPaginator.js +1 -1
- package/dist-cjs/pagination/ListJobsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListRevisionAssetsPaginator.js +1 -1
- package/dist-cjs/pagination/ListRevisionAssetsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +916 -243
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/DataExchange.js +77 -5
- package/dist-es/DataExchange.js.map +1 -0
- package/{dist/es → dist-es}/DataExchangeClient.js +2 -10
- package/dist-es/DataExchangeClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/CancelJobCommand.js +4 -29
- package/dist-es/commands/CancelJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateDataSetCommand.js +4 -29
- package/dist-es/commands/CreateDataSetCommand.js.map +1 -0
- package/dist-es/commands/CreateEventActionCommand.js +40 -0
- package/dist-es/commands/CreateEventActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateJobCommand.js +4 -29
- package/dist-es/commands/CreateJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateRevisionCommand.js +4 -29
- package/dist-es/commands/CreateRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteAssetCommand.js +4 -29
- package/dist-es/commands/DeleteAssetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteDataSetCommand.js +4 -29
- package/dist-es/commands/DeleteDataSetCommand.js.map +1 -0
- package/dist-es/commands/DeleteEventActionCommand.js +40 -0
- package/dist-es/commands/DeleteEventActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteRevisionCommand.js +4 -29
- package/dist-es/commands/DeleteRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetAssetCommand.js +4 -29
- package/dist-es/commands/GetAssetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetDataSetCommand.js +4 -29
- package/dist-es/commands/GetDataSetCommand.js.map +1 -0
- package/dist-es/commands/GetEventActionCommand.js +40 -0
- package/dist-es/commands/GetEventActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetJobCommand.js +4 -29
- package/dist-es/commands/GetJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetRevisionCommand.js +4 -29
- package/dist-es/commands/GetRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDataSetRevisionsCommand.js +4 -29
- package/dist-es/commands/ListDataSetRevisionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListDataSetsCommand.js +4 -29
- package/dist-es/commands/ListDataSetsCommand.js.map +1 -0
- package/dist-es/commands/ListEventActionsCommand.js +40 -0
- package/dist-es/commands/ListEventActionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListJobsCommand.js +4 -29
- package/dist-es/commands/ListJobsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListRevisionAssetsCommand.js +4 -29
- package/dist-es/commands/ListRevisionAssetsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StartJobCommand.js +4 -29
- package/dist-es/commands/StartJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateAssetCommand.js +4 -29
- package/dist-es/commands/UpdateAssetCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateDataSetCommand.js +4 -29
- package/dist-es/commands/UpdateDataSetCommand.js.map +1 -0
- package/dist-es/commands/UpdateEventActionCommand.js +40 -0
- package/dist-es/commands/UpdateEventActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateRevisionCommand.js +4 -29
- package/dist-es/commands/UpdateRevisionCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +6 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +79 -222
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListDataSetRevisionsPaginator.js +17 -29
- package/dist-es/pagination/ListDataSetRevisionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListDataSetsPaginator.js +17 -29
- package/dist-es/pagination/ListDataSetsPaginator.js.map +1 -0
- package/dist-es/pagination/ListEventActionsPaginator.js +75 -0
- package/dist-es/pagination/ListEventActionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListJobsPaginator.js +17 -29
- package/dist-es/pagination/ListJobsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListRevisionAssetsPaginator.js +17 -29
- package/dist-es/pagination/ListRevisionAssetsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1315 -576
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/DataExchange.d.ts +37 -2
- package/{dist/types → dist-types}/DataExchangeClient.d.ts +15 -10
- package/{dist/types → dist-types}/commands/CancelJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDataSetCommand.d.ts +2 -2
- package/dist-types/commands/CreateEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/CreateJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDataSetCommand.d.ts +2 -2
- package/dist-types/commands/DeleteEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/DeleteRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetDataSetCommand.d.ts +2 -2
- package/dist-types/commands/GetEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/GetJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDataSetRevisionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDataSetsCommand.d.ts +2 -2
- package/dist-types/commands/ListEventActionsCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/ListJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRevisionAssetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateDataSetCommand.d.ts +2 -2
- package/dist-types/commands/UpdateEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/UpdateRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +6 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +324 -11
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDataSetRevisionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDataSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventActionsPaginator.d.ts +4 -0
- package/{dist/types → dist-types}/pagination/ListJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRevisionAssetsPaginator.d.ts +1 -1
- package/{dist/types/ts3.4 → dist-types}/protocols/Aws_restJson1.d.ts +83 -68
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/DataExchange.d.ts +37 -2
- package/{dist/types → dist-types}/ts3.4/DataExchangeClient.d.ts +15 -10
- package/{dist/types → dist-types}/ts3.4/commands/CancelJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDataSetCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/CreateEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDataSetCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/DeleteEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetDataSetCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/GetEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDataSetRevisionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDataSetsCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/ListEventActionsCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListRevisionAssetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateAssetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateDataSetCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/UpdateEventActionCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/UpdateRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +6 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +324 -11
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDataSetRevisionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDataSetsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListEventActionsPaginator.d.ts +4 -0
- package/{dist/types → dist-types}/ts3.4/pagination/ListJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRevisionAssetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types/ts3.4}/protocols/Aws_restJson1.d.ts +83 -68
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{DataExchange.ts → src/DataExchange.ts} +188 -2
- package/{DataExchangeClient.ts → src/DataExchangeClient.ts} +58 -42
- package/{commands → src/commands}/CancelJobCommand.ts +8 -7
- package/{commands → src/commands}/CreateDataSetCommand.ts +8 -7
- package/src/commands/CreateEventActionCommand.ts +95 -0
- package/{commands → src/commands}/CreateJobCommand.ts +8 -7
- package/{commands → src/commands}/CreateRevisionCommand.ts +8 -7
- package/{commands → src/commands}/DeleteAssetCommand.ts +8 -7
- package/{commands → src/commands}/DeleteDataSetCommand.ts +8 -7
- package/src/commands/DeleteEventActionCommand.ts +95 -0
- package/{commands → src/commands}/DeleteRevisionCommand.ts +8 -7
- package/{commands → src/commands}/GetAssetCommand.ts +8 -7
- package/{commands → src/commands}/GetDataSetCommand.ts +8 -7
- package/src/commands/GetEventActionCommand.ts +95 -0
- package/{commands → src/commands}/GetJobCommand.ts +5 -4
- package/{commands → src/commands}/GetRevisionCommand.ts +8 -7
- package/{commands → src/commands}/ListDataSetRevisionsCommand.ts +8 -7
- package/{commands → src/commands}/ListDataSetsCommand.ts +8 -7
- package/src/commands/ListEventActionsCommand.ts +95 -0
- package/{commands → src/commands}/ListJobsCommand.ts +8 -7
- package/{commands → src/commands}/ListRevisionAssetsCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/StartJobCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateAssetCommand.ts +8 -7
- package/{commands → src/commands}/UpdateDataSetCommand.ts +8 -7
- package/src/commands/UpdateEventActionCommand.ts +95 -0
- package/{commands → src/commands}/UpdateRevisionCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +6 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +413 -11
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListDataSetRevisionsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListDataSetsPaginator.ts +4 -3
- package/src/pagination/ListEventActionsPaginator.ts +59 -0
- package/{pagination → src/pagination}/ListJobsPaginator.ts +3 -2
- package/{pagination → src/pagination}/ListRevisionAssetsPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_restJson1.ts +844 -72
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/DataExchange.js.map +0 -1
- package/dist/cjs/DataExchangeClient.js.map +0 -1
- package/dist/cjs/commands/CancelJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAssetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/GetAssetCommand.js.map +0 -1
- package/dist/cjs/commands/GetDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/GetJobCommand.js.map +0 -1
- package/dist/cjs/commands/GetRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/ListDataSetRevisionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDataSetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListJobsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRevisionAssetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartJobCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateAssetCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateRevisionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -34
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/ListDataSetRevisionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListDataSetsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListJobsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRevisionAssetsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/DataExchange.js.map +0 -1
- package/dist/es/DataExchangeClient.js.map +0 -1
- package/dist/es/commands/CancelJobCommand.js.map +0 -1
- package/dist/es/commands/CreateDataSetCommand.js.map +0 -1
- package/dist/es/commands/CreateJobCommand.js.map +0 -1
- package/dist/es/commands/CreateRevisionCommand.js.map +0 -1
- package/dist/es/commands/DeleteAssetCommand.js.map +0 -1
- package/dist/es/commands/DeleteDataSetCommand.js.map +0 -1
- package/dist/es/commands/DeleteRevisionCommand.js.map +0 -1
- package/dist/es/commands/GetAssetCommand.js.map +0 -1
- package/dist/es/commands/GetDataSetCommand.js.map +0 -1
- package/dist/es/commands/GetJobCommand.js.map +0 -1
- package/dist/es/commands/GetRevisionCommand.js.map +0 -1
- package/dist/es/commands/ListDataSetRevisionsCommand.js.map +0 -1
- package/dist/es/commands/ListDataSetsCommand.js.map +0 -1
- package/dist/es/commands/ListJobsCommand.js.map +0 -1
- package/dist/es/commands/ListRevisionAssetsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StartJobCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateAssetCommand.js.map +0 -1
- package/dist/es/commands/UpdateDataSetCommand.js.map +0 -1
- package/dist/es/commands/UpdateRevisionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/ListDataSetRevisionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListDataSetsPaginator.js.map +0 -1
- package/dist/es/pagination/ListJobsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRevisionAssetsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartJobCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRevisionAssetsCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1ListEventActionsCommand = exports.deserializeAws_restJson1ListDataSetsCommand = exports.deserializeAws_restJson1ListDataSetRevisionsCommand = exports.deserializeAws_restJson1GetRevisionCommand = exports.deserializeAws_restJson1GetJobCommand = exports.deserializeAws_restJson1GetEventActionCommand = exports.deserializeAws_restJson1GetDataSetCommand = exports.deserializeAws_restJson1GetAssetCommand = exports.deserializeAws_restJson1DeleteRevisionCommand = exports.deserializeAws_restJson1DeleteEventActionCommand = exports.deserializeAws_restJson1DeleteDataSetCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1CreateRevisionCommand = exports.deserializeAws_restJson1CreateJobCommand = exports.deserializeAws_restJson1CreateEventActionCommand = exports.deserializeAws_restJson1CreateDataSetCommand = exports.deserializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1UpdateRevisionCommand = exports.serializeAws_restJson1UpdateEventActionCommand = exports.serializeAws_restJson1UpdateDataSetCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartJobCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRevisionAssetsCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListEventActionsCommand = exports.serializeAws_restJson1ListDataSetsCommand = exports.serializeAws_restJson1ListDataSetRevisionsCommand = exports.serializeAws_restJson1GetRevisionCommand = exports.serializeAws_restJson1GetJobCommand = exports.serializeAws_restJson1GetEventActionCommand = exports.serializeAws_restJson1GetDataSetCommand = exports.serializeAws_restJson1GetAssetCommand = exports.serializeAws_restJson1DeleteRevisionCommand = exports.serializeAws_restJson1DeleteEventActionCommand = exports.serializeAws_restJson1DeleteDataSetCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1CreateRevisionCommand = exports.serializeAws_restJson1CreateJobCommand = exports.serializeAws_restJson1CreateEventActionCommand = exports.serializeAws_restJson1CreateDataSetCommand = exports.serializeAws_restJson1CancelJobCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateRevisionCommand = exports.deserializeAws_restJson1UpdateEventActionCommand = exports.deserializeAws_restJson1UpdateDataSetCommand = exports.deserializeAws_restJson1UpdateAssetCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const serializeAws_restJson1CancelJobCommand = async (input, context) => {
|
|
@@ -12,7 +13,7 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
|
|
|
12
13
|
if (labelValue.length <= 0) {
|
|
13
14
|
throw new Error("Empty value provided for input HTTP label: JobId.");
|
|
14
15
|
}
|
|
15
|
-
resolvedPath = resolvedPath.replace("{JobId}",
|
|
16
|
+
resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
16
17
|
}
|
|
17
18
|
else {
|
|
18
19
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
@@ -34,7 +35,7 @@ const serializeAws_restJson1CreateDataSetCommand = async (input, context) => {
|
|
|
34
35
|
const headers = {
|
|
35
36
|
"content-type": "application/json",
|
|
36
37
|
};
|
|
37
|
-
|
|
38
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
|
|
38
39
|
let body;
|
|
39
40
|
body = JSON.stringify({
|
|
40
41
|
...(input.AssetType !== undefined && input.AssetType !== null && { AssetType: input.AssetType }),
|
|
@@ -54,12 +55,36 @@ const serializeAws_restJson1CreateDataSetCommand = async (input, context) => {
|
|
|
54
55
|
});
|
|
55
56
|
};
|
|
56
57
|
exports.serializeAws_restJson1CreateDataSetCommand = serializeAws_restJson1CreateDataSetCommand;
|
|
58
|
+
const serializeAws_restJson1CreateEventActionCommand = async (input, context) => {
|
|
59
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/json",
|
|
62
|
+
};
|
|
63
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify({
|
|
66
|
+
...(input.Action !== undefined &&
|
|
67
|
+
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) }),
|
|
68
|
+
...(input.Event !== undefined &&
|
|
69
|
+
input.Event !== null && { Event: serializeAws_restJson1Event(input.Event, context) }),
|
|
70
|
+
});
|
|
71
|
+
return new protocol_http_1.HttpRequest({
|
|
72
|
+
protocol,
|
|
73
|
+
hostname,
|
|
74
|
+
port,
|
|
75
|
+
method: "POST",
|
|
76
|
+
headers,
|
|
77
|
+
path: resolvedPath,
|
|
78
|
+
body,
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
exports.serializeAws_restJson1CreateEventActionCommand = serializeAws_restJson1CreateEventActionCommand;
|
|
57
82
|
const serializeAws_restJson1CreateJobCommand = async (input, context) => {
|
|
58
83
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
84
|
const headers = {
|
|
60
85
|
"content-type": "application/json",
|
|
61
86
|
};
|
|
62
|
-
|
|
87
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
63
88
|
let body;
|
|
64
89
|
body = JSON.stringify({
|
|
65
90
|
...(input.Details !== undefined &&
|
|
@@ -88,7 +113,7 @@ const serializeAws_restJson1CreateRevisionCommand = async (input, context) => {
|
|
|
88
113
|
if (labelValue.length <= 0) {
|
|
89
114
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
90
115
|
}
|
|
91
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
116
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
92
117
|
}
|
|
93
118
|
else {
|
|
94
119
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -120,7 +145,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
120
145
|
if (labelValue.length <= 0) {
|
|
121
146
|
throw new Error("Empty value provided for input HTTP label: AssetId.");
|
|
122
147
|
}
|
|
123
|
-
resolvedPath = resolvedPath.replace("{AssetId}",
|
|
148
|
+
resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
124
149
|
}
|
|
125
150
|
else {
|
|
126
151
|
throw new Error("No value provided for input HTTP label: AssetId.");
|
|
@@ -130,7 +155,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
130
155
|
if (labelValue.length <= 0) {
|
|
131
156
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
132
157
|
}
|
|
133
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
158
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
134
159
|
}
|
|
135
160
|
else {
|
|
136
161
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -140,7 +165,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
140
165
|
if (labelValue.length <= 0) {
|
|
141
166
|
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
142
167
|
}
|
|
143
|
-
resolvedPath = resolvedPath.replace("{RevisionId}",
|
|
168
|
+
resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
144
169
|
}
|
|
145
170
|
else {
|
|
146
171
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
@@ -166,7 +191,7 @@ const serializeAws_restJson1DeleteDataSetCommand = async (input, context) => {
|
|
|
166
191
|
if (labelValue.length <= 0) {
|
|
167
192
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
168
193
|
}
|
|
169
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
194
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
170
195
|
}
|
|
171
196
|
else {
|
|
172
197
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -183,6 +208,32 @@ const serializeAws_restJson1DeleteDataSetCommand = async (input, context) => {
|
|
|
183
208
|
});
|
|
184
209
|
};
|
|
185
210
|
exports.serializeAws_restJson1DeleteDataSetCommand = serializeAws_restJson1DeleteDataSetCommand;
|
|
211
|
+
const serializeAws_restJson1DeleteEventActionCommand = async (input, context) => {
|
|
212
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
213
|
+
const headers = {};
|
|
214
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
215
|
+
if (input.EventActionId !== undefined) {
|
|
216
|
+
const labelValue = input.EventActionId;
|
|
217
|
+
if (labelValue.length <= 0) {
|
|
218
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
219
|
+
}
|
|
220
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
224
|
+
}
|
|
225
|
+
let body;
|
|
226
|
+
return new protocol_http_1.HttpRequest({
|
|
227
|
+
protocol,
|
|
228
|
+
hostname,
|
|
229
|
+
port,
|
|
230
|
+
method: "DELETE",
|
|
231
|
+
headers,
|
|
232
|
+
path: resolvedPath,
|
|
233
|
+
body,
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
exports.serializeAws_restJson1DeleteEventActionCommand = serializeAws_restJson1DeleteEventActionCommand;
|
|
186
237
|
const serializeAws_restJson1DeleteRevisionCommand = async (input, context) => {
|
|
187
238
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
188
239
|
const headers = {};
|
|
@@ -193,7 +244,7 @@ const serializeAws_restJson1DeleteRevisionCommand = async (input, context) => {
|
|
|
193
244
|
if (labelValue.length <= 0) {
|
|
194
245
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
195
246
|
}
|
|
196
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
247
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
197
248
|
}
|
|
198
249
|
else {
|
|
199
250
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -203,7 +254,7 @@ const serializeAws_restJson1DeleteRevisionCommand = async (input, context) => {
|
|
|
203
254
|
if (labelValue.length <= 0) {
|
|
204
255
|
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
205
256
|
}
|
|
206
|
-
resolvedPath = resolvedPath.replace("{RevisionId}",
|
|
257
|
+
resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
207
258
|
}
|
|
208
259
|
else {
|
|
209
260
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
@@ -230,7 +281,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
|
|
|
230
281
|
if (labelValue.length <= 0) {
|
|
231
282
|
throw new Error("Empty value provided for input HTTP label: AssetId.");
|
|
232
283
|
}
|
|
233
|
-
resolvedPath = resolvedPath.replace("{AssetId}",
|
|
284
|
+
resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
234
285
|
}
|
|
235
286
|
else {
|
|
236
287
|
throw new Error("No value provided for input HTTP label: AssetId.");
|
|
@@ -240,7 +291,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
|
|
|
240
291
|
if (labelValue.length <= 0) {
|
|
241
292
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
242
293
|
}
|
|
243
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
294
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
244
295
|
}
|
|
245
296
|
else {
|
|
246
297
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -250,7 +301,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
|
|
|
250
301
|
if (labelValue.length <= 0) {
|
|
251
302
|
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
252
303
|
}
|
|
253
|
-
resolvedPath = resolvedPath.replace("{RevisionId}",
|
|
304
|
+
resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
254
305
|
}
|
|
255
306
|
else {
|
|
256
307
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
@@ -276,7 +327,7 @@ const serializeAws_restJson1GetDataSetCommand = async (input, context) => {
|
|
|
276
327
|
if (labelValue.length <= 0) {
|
|
277
328
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
278
329
|
}
|
|
279
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
330
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
280
331
|
}
|
|
281
332
|
else {
|
|
282
333
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -293,6 +344,32 @@ const serializeAws_restJson1GetDataSetCommand = async (input, context) => {
|
|
|
293
344
|
});
|
|
294
345
|
};
|
|
295
346
|
exports.serializeAws_restJson1GetDataSetCommand = serializeAws_restJson1GetDataSetCommand;
|
|
347
|
+
const serializeAws_restJson1GetEventActionCommand = async (input, context) => {
|
|
348
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
349
|
+
const headers = {};
|
|
350
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
351
|
+
if (input.EventActionId !== undefined) {
|
|
352
|
+
const labelValue = input.EventActionId;
|
|
353
|
+
if (labelValue.length <= 0) {
|
|
354
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
355
|
+
}
|
|
356
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
360
|
+
}
|
|
361
|
+
let body;
|
|
362
|
+
return new protocol_http_1.HttpRequest({
|
|
363
|
+
protocol,
|
|
364
|
+
hostname,
|
|
365
|
+
port,
|
|
366
|
+
method: "GET",
|
|
367
|
+
headers,
|
|
368
|
+
path: resolvedPath,
|
|
369
|
+
body,
|
|
370
|
+
});
|
|
371
|
+
};
|
|
372
|
+
exports.serializeAws_restJson1GetEventActionCommand = serializeAws_restJson1GetEventActionCommand;
|
|
296
373
|
const serializeAws_restJson1GetJobCommand = async (input, context) => {
|
|
297
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
298
375
|
const headers = {};
|
|
@@ -302,7 +379,7 @@ const serializeAws_restJson1GetJobCommand = async (input, context) => {
|
|
|
302
379
|
if (labelValue.length <= 0) {
|
|
303
380
|
throw new Error("Empty value provided for input HTTP label: JobId.");
|
|
304
381
|
}
|
|
305
|
-
resolvedPath = resolvedPath.replace("{JobId}",
|
|
382
|
+
resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
306
383
|
}
|
|
307
384
|
else {
|
|
308
385
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
@@ -329,7 +406,7 @@ const serializeAws_restJson1GetRevisionCommand = async (input, context) => {
|
|
|
329
406
|
if (labelValue.length <= 0) {
|
|
330
407
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
331
408
|
}
|
|
332
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
409
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
333
410
|
}
|
|
334
411
|
else {
|
|
335
412
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -339,7 +416,7 @@ const serializeAws_restJson1GetRevisionCommand = async (input, context) => {
|
|
|
339
416
|
if (labelValue.length <= 0) {
|
|
340
417
|
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
341
418
|
}
|
|
342
|
-
resolvedPath = resolvedPath.replace("{RevisionId}",
|
|
419
|
+
resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
343
420
|
}
|
|
344
421
|
else {
|
|
345
422
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
@@ -365,7 +442,7 @@ const serializeAws_restJson1ListDataSetRevisionsCommand = async (input, context)
|
|
|
365
442
|
if (labelValue.length <= 0) {
|
|
366
443
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
367
444
|
}
|
|
368
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
445
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
369
446
|
}
|
|
370
447
|
else {
|
|
371
448
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -390,7 +467,7 @@ exports.serializeAws_restJson1ListDataSetRevisionsCommand = serializeAws_restJso
|
|
|
390
467
|
const serializeAws_restJson1ListDataSetsCommand = async (input, context) => {
|
|
391
468
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
392
469
|
const headers = {};
|
|
393
|
-
|
|
470
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
|
|
394
471
|
const query = {
|
|
395
472
|
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
396
473
|
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
@@ -409,10 +486,32 @@ const serializeAws_restJson1ListDataSetsCommand = async (input, context) => {
|
|
|
409
486
|
});
|
|
410
487
|
};
|
|
411
488
|
exports.serializeAws_restJson1ListDataSetsCommand = serializeAws_restJson1ListDataSetsCommand;
|
|
489
|
+
const serializeAws_restJson1ListEventActionsCommand = async (input, context) => {
|
|
490
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
491
|
+
const headers = {};
|
|
492
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
493
|
+
const query = {
|
|
494
|
+
...(input.EventSourceId !== undefined && { eventSourceId: input.EventSourceId }),
|
|
495
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
496
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
497
|
+
};
|
|
498
|
+
let body;
|
|
499
|
+
return new protocol_http_1.HttpRequest({
|
|
500
|
+
protocol,
|
|
501
|
+
hostname,
|
|
502
|
+
port,
|
|
503
|
+
method: "GET",
|
|
504
|
+
headers,
|
|
505
|
+
path: resolvedPath,
|
|
506
|
+
query,
|
|
507
|
+
body,
|
|
508
|
+
});
|
|
509
|
+
};
|
|
510
|
+
exports.serializeAws_restJson1ListEventActionsCommand = serializeAws_restJson1ListEventActionsCommand;
|
|
412
511
|
const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
413
512
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
414
513
|
const headers = {};
|
|
415
|
-
|
|
514
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
416
515
|
const query = {
|
|
417
516
|
...(input.DataSetId !== undefined && { dataSetId: input.DataSetId }),
|
|
418
517
|
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
@@ -442,7 +541,7 @@ const serializeAws_restJson1ListRevisionAssetsCommand = async (input, context) =
|
|
|
442
541
|
if (labelValue.length <= 0) {
|
|
443
542
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
444
543
|
}
|
|
445
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
544
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
446
545
|
}
|
|
447
546
|
else {
|
|
448
547
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -452,7 +551,7 @@ const serializeAws_restJson1ListRevisionAssetsCommand = async (input, context) =
|
|
|
452
551
|
if (labelValue.length <= 0) {
|
|
453
552
|
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
454
553
|
}
|
|
455
|
-
resolvedPath = resolvedPath.replace("{RevisionId}",
|
|
554
|
+
resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
456
555
|
}
|
|
457
556
|
else {
|
|
458
557
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
@@ -483,7 +582,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
483
582
|
if (labelValue.length <= 0) {
|
|
484
583
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
485
584
|
}
|
|
486
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
585
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
487
586
|
}
|
|
488
587
|
else {
|
|
489
588
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -509,7 +608,7 @@ const serializeAws_restJson1StartJobCommand = async (input, context) => {
|
|
|
509
608
|
if (labelValue.length <= 0) {
|
|
510
609
|
throw new Error("Empty value provided for input HTTP label: JobId.");
|
|
511
610
|
}
|
|
512
|
-
resolvedPath = resolvedPath.replace("{JobId}",
|
|
611
|
+
resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
513
612
|
}
|
|
514
613
|
else {
|
|
515
614
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
@@ -537,7 +636,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
537
636
|
if (labelValue.length <= 0) {
|
|
538
637
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
539
638
|
}
|
|
540
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
639
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
541
640
|
}
|
|
542
641
|
else {
|
|
543
642
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -567,7 +666,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
567
666
|
if (labelValue.length <= 0) {
|
|
568
667
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
569
668
|
}
|
|
570
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
669
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
571
670
|
}
|
|
572
671
|
else {
|
|
573
672
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -600,7 +699,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
600
699
|
if (labelValue.length <= 0) {
|
|
601
700
|
throw new Error("Empty value provided for input HTTP label: AssetId.");
|
|
602
701
|
}
|
|
603
|
-
resolvedPath = resolvedPath.replace("{AssetId}",
|
|
702
|
+
resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
604
703
|
}
|
|
605
704
|
else {
|
|
606
705
|
throw new Error("No value provided for input HTTP label: AssetId.");
|
|
@@ -610,7 +709,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
610
709
|
if (labelValue.length <= 0) {
|
|
611
710
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
612
711
|
}
|
|
613
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
712
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
614
713
|
}
|
|
615
714
|
else {
|
|
616
715
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -620,7 +719,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
620
719
|
if (labelValue.length <= 0) {
|
|
621
720
|
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
622
721
|
}
|
|
623
|
-
resolvedPath = resolvedPath.replace("{RevisionId}",
|
|
722
|
+
resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
624
723
|
}
|
|
625
724
|
else {
|
|
626
725
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
@@ -651,7 +750,7 @@ const serializeAws_restJson1UpdateDataSetCommand = async (input, context) => {
|
|
|
651
750
|
if (labelValue.length <= 0) {
|
|
652
751
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
653
752
|
}
|
|
654
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
753
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
655
754
|
}
|
|
656
755
|
else {
|
|
657
756
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -672,6 +771,38 @@ const serializeAws_restJson1UpdateDataSetCommand = async (input, context) => {
|
|
|
672
771
|
});
|
|
673
772
|
};
|
|
674
773
|
exports.serializeAws_restJson1UpdateDataSetCommand = serializeAws_restJson1UpdateDataSetCommand;
|
|
774
|
+
const serializeAws_restJson1UpdateEventActionCommand = async (input, context) => {
|
|
775
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
776
|
+
const headers = {
|
|
777
|
+
"content-type": "application/json",
|
|
778
|
+
};
|
|
779
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
780
|
+
if (input.EventActionId !== undefined) {
|
|
781
|
+
const labelValue = input.EventActionId;
|
|
782
|
+
if (labelValue.length <= 0) {
|
|
783
|
+
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
784
|
+
}
|
|
785
|
+
resolvedPath = resolvedPath.replace("{EventActionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
786
|
+
}
|
|
787
|
+
else {
|
|
788
|
+
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
789
|
+
}
|
|
790
|
+
let body;
|
|
791
|
+
body = JSON.stringify({
|
|
792
|
+
...(input.Action !== undefined &&
|
|
793
|
+
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) }),
|
|
794
|
+
});
|
|
795
|
+
return new protocol_http_1.HttpRequest({
|
|
796
|
+
protocol,
|
|
797
|
+
hostname,
|
|
798
|
+
port,
|
|
799
|
+
method: "PATCH",
|
|
800
|
+
headers,
|
|
801
|
+
path: resolvedPath,
|
|
802
|
+
body,
|
|
803
|
+
});
|
|
804
|
+
};
|
|
805
|
+
exports.serializeAws_restJson1UpdateEventActionCommand = serializeAws_restJson1UpdateEventActionCommand;
|
|
675
806
|
const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
|
|
676
807
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
677
808
|
const headers = {
|
|
@@ -684,7 +815,7 @@ const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
|
|
|
684
815
|
if (labelValue.length <= 0) {
|
|
685
816
|
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
686
817
|
}
|
|
687
|
-
resolvedPath = resolvedPath.replace("{DataSetId}",
|
|
818
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
688
819
|
}
|
|
689
820
|
else {
|
|
690
821
|
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
@@ -694,7 +825,7 @@ const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
|
|
|
694
825
|
if (labelValue.length <= 0) {
|
|
695
826
|
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
696
827
|
}
|
|
697
|
-
resolvedPath = resolvedPath.replace("{RevisionId}",
|
|
828
|
+
resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
698
829
|
}
|
|
699
830
|
else {
|
|
700
831
|
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
@@ -809,39 +940,39 @@ const deserializeAws_restJson1CreateDataSetCommand = async (output, context) =>
|
|
|
809
940
|
Tags: undefined,
|
|
810
941
|
UpdatedAt: undefined,
|
|
811
942
|
};
|
|
812
|
-
const data =
|
|
943
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
813
944
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
814
|
-
contents.Arn =
|
|
945
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
815
946
|
}
|
|
816
947
|
if (data.AssetType !== undefined && data.AssetType !== null) {
|
|
817
|
-
contents.AssetType =
|
|
948
|
+
contents.AssetType = smithy_client_1.expectString(data.AssetType);
|
|
818
949
|
}
|
|
819
950
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
820
|
-
contents.CreatedAt =
|
|
951
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
821
952
|
}
|
|
822
953
|
if (data.Description !== undefined && data.Description !== null) {
|
|
823
|
-
contents.Description =
|
|
954
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
824
955
|
}
|
|
825
956
|
if (data.Id !== undefined && data.Id !== null) {
|
|
826
|
-
contents.Id =
|
|
957
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
827
958
|
}
|
|
828
959
|
if (data.Name !== undefined && data.Name !== null) {
|
|
829
|
-
contents.Name =
|
|
960
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
830
961
|
}
|
|
831
962
|
if (data.Origin !== undefined && data.Origin !== null) {
|
|
832
|
-
contents.Origin =
|
|
963
|
+
contents.Origin = smithy_client_1.expectString(data.Origin);
|
|
833
964
|
}
|
|
834
965
|
if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
|
|
835
966
|
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
836
967
|
}
|
|
837
968
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
838
|
-
contents.SourceId =
|
|
969
|
+
contents.SourceId = smithy_client_1.expectString(data.SourceId);
|
|
839
970
|
}
|
|
840
971
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
841
972
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
842
973
|
}
|
|
843
974
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
844
|
-
contents.UpdatedAt =
|
|
975
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
845
976
|
}
|
|
846
977
|
return Promise.resolve(contents);
|
|
847
978
|
};
|
|
@@ -911,6 +1042,106 @@ const deserializeAws_restJson1CreateDataSetCommandError = async (output, context
|
|
|
911
1042
|
delete response.Message;
|
|
912
1043
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
913
1044
|
};
|
|
1045
|
+
const deserializeAws_restJson1CreateEventActionCommand = async (output, context) => {
|
|
1046
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1047
|
+
return deserializeAws_restJson1CreateEventActionCommandError(output, context);
|
|
1048
|
+
}
|
|
1049
|
+
const contents = {
|
|
1050
|
+
$metadata: deserializeMetadata(output),
|
|
1051
|
+
Action: undefined,
|
|
1052
|
+
Arn: undefined,
|
|
1053
|
+
CreatedAt: undefined,
|
|
1054
|
+
Event: undefined,
|
|
1055
|
+
Id: undefined,
|
|
1056
|
+
UpdatedAt: undefined,
|
|
1057
|
+
};
|
|
1058
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1059
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
1060
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
1061
|
+
}
|
|
1062
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1063
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1064
|
+
}
|
|
1065
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1066
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
1067
|
+
}
|
|
1068
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
1069
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
1070
|
+
}
|
|
1071
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
1072
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1073
|
+
}
|
|
1074
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1075
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
1076
|
+
}
|
|
1077
|
+
return Promise.resolve(contents);
|
|
1078
|
+
};
|
|
1079
|
+
exports.deserializeAws_restJson1CreateEventActionCommand = deserializeAws_restJson1CreateEventActionCommand;
|
|
1080
|
+
const deserializeAws_restJson1CreateEventActionCommandError = async (output, context) => {
|
|
1081
|
+
const parsedOutput = {
|
|
1082
|
+
...output,
|
|
1083
|
+
body: await parseBody(output.body, context),
|
|
1084
|
+
};
|
|
1085
|
+
let response;
|
|
1086
|
+
let errorCode = "UnknownError";
|
|
1087
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
+
switch (errorCode) {
|
|
1089
|
+
case "AccessDeniedException":
|
|
1090
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1091
|
+
response = {
|
|
1092
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1093
|
+
name: errorCode,
|
|
1094
|
+
$metadata: deserializeMetadata(output),
|
|
1095
|
+
};
|
|
1096
|
+
break;
|
|
1097
|
+
case "InternalServerException":
|
|
1098
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1099
|
+
response = {
|
|
1100
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1101
|
+
name: errorCode,
|
|
1102
|
+
$metadata: deserializeMetadata(output),
|
|
1103
|
+
};
|
|
1104
|
+
break;
|
|
1105
|
+
case "ServiceLimitExceededException":
|
|
1106
|
+
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
1107
|
+
response = {
|
|
1108
|
+
...(await deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1109
|
+
name: errorCode,
|
|
1110
|
+
$metadata: deserializeMetadata(output),
|
|
1111
|
+
};
|
|
1112
|
+
break;
|
|
1113
|
+
case "ThrottlingException":
|
|
1114
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1115
|
+
response = {
|
|
1116
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1117
|
+
name: errorCode,
|
|
1118
|
+
$metadata: deserializeMetadata(output),
|
|
1119
|
+
};
|
|
1120
|
+
break;
|
|
1121
|
+
case "ValidationException":
|
|
1122
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1123
|
+
response = {
|
|
1124
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1125
|
+
name: errorCode,
|
|
1126
|
+
$metadata: deserializeMetadata(output),
|
|
1127
|
+
};
|
|
1128
|
+
break;
|
|
1129
|
+
default:
|
|
1130
|
+
const parsedBody = parsedOutput.body;
|
|
1131
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1132
|
+
response = {
|
|
1133
|
+
...parsedBody,
|
|
1134
|
+
name: `${errorCode}`,
|
|
1135
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1136
|
+
$fault: "client",
|
|
1137
|
+
$metadata: deserializeMetadata(output),
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
const message = response.message || response.Message || errorCode;
|
|
1141
|
+
response.message = message;
|
|
1142
|
+
delete response.Message;
|
|
1143
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1144
|
+
};
|
|
914
1145
|
const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
|
|
915
1146
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
916
1147
|
return deserializeAws_restJson1CreateJobCommandError(output, context);
|
|
@@ -926,12 +1157,12 @@ const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
|
|
|
926
1157
|
Type: undefined,
|
|
927
1158
|
UpdatedAt: undefined,
|
|
928
1159
|
};
|
|
929
|
-
const data =
|
|
1160
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
930
1161
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
931
|
-
contents.Arn =
|
|
1162
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
932
1163
|
}
|
|
933
1164
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
934
|
-
contents.CreatedAt =
|
|
1165
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
935
1166
|
}
|
|
936
1167
|
if (data.Details !== undefined && data.Details !== null) {
|
|
937
1168
|
contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
|
|
@@ -940,16 +1171,16 @@ const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
|
|
|
940
1171
|
contents.Errors = deserializeAws_restJson1ListOfJobError(data.Errors, context);
|
|
941
1172
|
}
|
|
942
1173
|
if (data.Id !== undefined && data.Id !== null) {
|
|
943
|
-
contents.Id =
|
|
1174
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
944
1175
|
}
|
|
945
1176
|
if (data.State !== undefined && data.State !== null) {
|
|
946
|
-
contents.State =
|
|
1177
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
947
1178
|
}
|
|
948
1179
|
if (data.Type !== undefined && data.Type !== null) {
|
|
949
|
-
contents.Type =
|
|
1180
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
950
1181
|
}
|
|
951
1182
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
952
|
-
contents.UpdatedAt =
|
|
1183
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
953
1184
|
}
|
|
954
1185
|
return Promise.resolve(contents);
|
|
955
1186
|
};
|
|
@@ -1035,33 +1266,33 @@ const deserializeAws_restJson1CreateRevisionCommand = async (output, context) =>
|
|
|
1035
1266
|
Tags: undefined,
|
|
1036
1267
|
UpdatedAt: undefined,
|
|
1037
1268
|
};
|
|
1038
|
-
const data =
|
|
1269
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1039
1270
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1040
|
-
contents.Arn =
|
|
1271
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1041
1272
|
}
|
|
1042
1273
|
if (data.Comment !== undefined && data.Comment !== null) {
|
|
1043
|
-
contents.Comment =
|
|
1274
|
+
contents.Comment = smithy_client_1.expectString(data.Comment);
|
|
1044
1275
|
}
|
|
1045
1276
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1046
|
-
contents.CreatedAt =
|
|
1277
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
1047
1278
|
}
|
|
1048
1279
|
if (data.DataSetId !== undefined && data.DataSetId !== null) {
|
|
1049
|
-
contents.DataSetId =
|
|
1280
|
+
contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
|
|
1050
1281
|
}
|
|
1051
1282
|
if (data.Finalized !== undefined && data.Finalized !== null) {
|
|
1052
|
-
contents.Finalized =
|
|
1283
|
+
contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
|
|
1053
1284
|
}
|
|
1054
1285
|
if (data.Id !== undefined && data.Id !== null) {
|
|
1055
|
-
contents.Id =
|
|
1286
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1056
1287
|
}
|
|
1057
1288
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
1058
|
-
contents.SourceId =
|
|
1289
|
+
contents.SourceId = smithy_client_1.expectString(data.SourceId);
|
|
1059
1290
|
}
|
|
1060
1291
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1061
1292
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1062
1293
|
}
|
|
1063
1294
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1064
|
-
contents.UpdatedAt =
|
|
1295
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
1065
1296
|
}
|
|
1066
1297
|
return Promise.resolve(contents);
|
|
1067
1298
|
};
|
|
@@ -1299,6 +1530,74 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context
|
|
|
1299
1530
|
delete response.Message;
|
|
1300
1531
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1301
1532
|
};
|
|
1533
|
+
const deserializeAws_restJson1DeleteEventActionCommand = async (output, context) => {
|
|
1534
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1535
|
+
return deserializeAws_restJson1DeleteEventActionCommandError(output, context);
|
|
1536
|
+
}
|
|
1537
|
+
const contents = {
|
|
1538
|
+
$metadata: deserializeMetadata(output),
|
|
1539
|
+
};
|
|
1540
|
+
await collectBody(output.body, context);
|
|
1541
|
+
return Promise.resolve(contents);
|
|
1542
|
+
};
|
|
1543
|
+
exports.deserializeAws_restJson1DeleteEventActionCommand = deserializeAws_restJson1DeleteEventActionCommand;
|
|
1544
|
+
const deserializeAws_restJson1DeleteEventActionCommandError = async (output, context) => {
|
|
1545
|
+
const parsedOutput = {
|
|
1546
|
+
...output,
|
|
1547
|
+
body: await parseBody(output.body, context),
|
|
1548
|
+
};
|
|
1549
|
+
let response;
|
|
1550
|
+
let errorCode = "UnknownError";
|
|
1551
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
|
+
switch (errorCode) {
|
|
1553
|
+
case "InternalServerException":
|
|
1554
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1555
|
+
response = {
|
|
1556
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1557
|
+
name: errorCode,
|
|
1558
|
+
$metadata: deserializeMetadata(output),
|
|
1559
|
+
};
|
|
1560
|
+
break;
|
|
1561
|
+
case "ResourceNotFoundException":
|
|
1562
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1563
|
+
response = {
|
|
1564
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1565
|
+
name: errorCode,
|
|
1566
|
+
$metadata: deserializeMetadata(output),
|
|
1567
|
+
};
|
|
1568
|
+
break;
|
|
1569
|
+
case "ThrottlingException":
|
|
1570
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1571
|
+
response = {
|
|
1572
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1573
|
+
name: errorCode,
|
|
1574
|
+
$metadata: deserializeMetadata(output),
|
|
1575
|
+
};
|
|
1576
|
+
break;
|
|
1577
|
+
case "ValidationException":
|
|
1578
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1579
|
+
response = {
|
|
1580
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1581
|
+
name: errorCode,
|
|
1582
|
+
$metadata: deserializeMetadata(output),
|
|
1583
|
+
};
|
|
1584
|
+
break;
|
|
1585
|
+
default:
|
|
1586
|
+
const parsedBody = parsedOutput.body;
|
|
1587
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1588
|
+
response = {
|
|
1589
|
+
...parsedBody,
|
|
1590
|
+
name: `${errorCode}`,
|
|
1591
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1592
|
+
$fault: "client",
|
|
1593
|
+
$metadata: deserializeMetadata(output),
|
|
1594
|
+
};
|
|
1595
|
+
}
|
|
1596
|
+
const message = response.message || response.Message || errorCode;
|
|
1597
|
+
response.message = message;
|
|
1598
|
+
delete response.Message;
|
|
1599
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1600
|
+
};
|
|
1302
1601
|
const deserializeAws_restJson1DeleteRevisionCommand = async (output, context) => {
|
|
1303
1602
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1304
1603
|
return deserializeAws_restJson1DeleteRevisionCommandError(output, context);
|
|
@@ -1400,41 +1699,153 @@ const deserializeAws_restJson1GetAssetCommand = async (output, context) => {
|
|
|
1400
1699
|
SourceId: undefined,
|
|
1401
1700
|
UpdatedAt: undefined,
|
|
1402
1701
|
};
|
|
1403
|
-
const data =
|
|
1702
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1404
1703
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1405
|
-
contents.Arn =
|
|
1704
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1406
1705
|
}
|
|
1407
1706
|
if (data.AssetDetails !== undefined && data.AssetDetails !== null) {
|
|
1408
1707
|
contents.AssetDetails = deserializeAws_restJson1AssetDetails(data.AssetDetails, context);
|
|
1409
1708
|
}
|
|
1410
1709
|
if (data.AssetType !== undefined && data.AssetType !== null) {
|
|
1411
|
-
contents.AssetType =
|
|
1710
|
+
contents.AssetType = smithy_client_1.expectString(data.AssetType);
|
|
1412
1711
|
}
|
|
1413
1712
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1414
|
-
contents.CreatedAt =
|
|
1713
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
1415
1714
|
}
|
|
1416
1715
|
if (data.DataSetId !== undefined && data.DataSetId !== null) {
|
|
1417
|
-
contents.DataSetId =
|
|
1716
|
+
contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
|
|
1717
|
+
}
|
|
1718
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
1719
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1720
|
+
}
|
|
1721
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
1722
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
1723
|
+
}
|
|
1724
|
+
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
1725
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
1726
|
+
}
|
|
1727
|
+
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
1728
|
+
contents.SourceId = smithy_client_1.expectString(data.SourceId);
|
|
1729
|
+
}
|
|
1730
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1731
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
1732
|
+
}
|
|
1733
|
+
return Promise.resolve(contents);
|
|
1734
|
+
};
|
|
1735
|
+
exports.deserializeAws_restJson1GetAssetCommand = deserializeAws_restJson1GetAssetCommand;
|
|
1736
|
+
const deserializeAws_restJson1GetAssetCommandError = async (output, context) => {
|
|
1737
|
+
const parsedOutput = {
|
|
1738
|
+
...output,
|
|
1739
|
+
body: await parseBody(output.body, context),
|
|
1740
|
+
};
|
|
1741
|
+
let response;
|
|
1742
|
+
let errorCode = "UnknownError";
|
|
1743
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
+
switch (errorCode) {
|
|
1745
|
+
case "InternalServerException":
|
|
1746
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1747
|
+
response = {
|
|
1748
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1749
|
+
name: errorCode,
|
|
1750
|
+
$metadata: deserializeMetadata(output),
|
|
1751
|
+
};
|
|
1752
|
+
break;
|
|
1753
|
+
case "ResourceNotFoundException":
|
|
1754
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1755
|
+
response = {
|
|
1756
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1757
|
+
name: errorCode,
|
|
1758
|
+
$metadata: deserializeMetadata(output),
|
|
1759
|
+
};
|
|
1760
|
+
break;
|
|
1761
|
+
case "ThrottlingException":
|
|
1762
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1763
|
+
response = {
|
|
1764
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1765
|
+
name: errorCode,
|
|
1766
|
+
$metadata: deserializeMetadata(output),
|
|
1767
|
+
};
|
|
1768
|
+
break;
|
|
1769
|
+
case "ValidationException":
|
|
1770
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1771
|
+
response = {
|
|
1772
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1773
|
+
name: errorCode,
|
|
1774
|
+
$metadata: deserializeMetadata(output),
|
|
1775
|
+
};
|
|
1776
|
+
break;
|
|
1777
|
+
default:
|
|
1778
|
+
const parsedBody = parsedOutput.body;
|
|
1779
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1780
|
+
response = {
|
|
1781
|
+
...parsedBody,
|
|
1782
|
+
name: `${errorCode}`,
|
|
1783
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1784
|
+
$fault: "client",
|
|
1785
|
+
$metadata: deserializeMetadata(output),
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1788
|
+
const message = response.message || response.Message || errorCode;
|
|
1789
|
+
response.message = message;
|
|
1790
|
+
delete response.Message;
|
|
1791
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1792
|
+
};
|
|
1793
|
+
const deserializeAws_restJson1GetDataSetCommand = async (output, context) => {
|
|
1794
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1795
|
+
return deserializeAws_restJson1GetDataSetCommandError(output, context);
|
|
1796
|
+
}
|
|
1797
|
+
const contents = {
|
|
1798
|
+
$metadata: deserializeMetadata(output),
|
|
1799
|
+
Arn: undefined,
|
|
1800
|
+
AssetType: undefined,
|
|
1801
|
+
CreatedAt: undefined,
|
|
1802
|
+
Description: undefined,
|
|
1803
|
+
Id: undefined,
|
|
1804
|
+
Name: undefined,
|
|
1805
|
+
Origin: undefined,
|
|
1806
|
+
OriginDetails: undefined,
|
|
1807
|
+
SourceId: undefined,
|
|
1808
|
+
Tags: undefined,
|
|
1809
|
+
UpdatedAt: undefined,
|
|
1810
|
+
};
|
|
1811
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1812
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1813
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1814
|
+
}
|
|
1815
|
+
if (data.AssetType !== undefined && data.AssetType !== null) {
|
|
1816
|
+
contents.AssetType = smithy_client_1.expectString(data.AssetType);
|
|
1817
|
+
}
|
|
1818
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1819
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
1820
|
+
}
|
|
1821
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
1822
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
1418
1823
|
}
|
|
1419
1824
|
if (data.Id !== undefined && data.Id !== null) {
|
|
1420
|
-
contents.Id =
|
|
1825
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1421
1826
|
}
|
|
1422
1827
|
if (data.Name !== undefined && data.Name !== null) {
|
|
1423
|
-
contents.Name =
|
|
1828
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
1424
1829
|
}
|
|
1425
|
-
if (data.
|
|
1426
|
-
contents.
|
|
1830
|
+
if (data.Origin !== undefined && data.Origin !== null) {
|
|
1831
|
+
contents.Origin = smithy_client_1.expectString(data.Origin);
|
|
1832
|
+
}
|
|
1833
|
+
if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
|
|
1834
|
+
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
1427
1835
|
}
|
|
1428
1836
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
1429
|
-
contents.SourceId =
|
|
1837
|
+
contents.SourceId = smithy_client_1.expectString(data.SourceId);
|
|
1838
|
+
}
|
|
1839
|
+
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1840
|
+
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1430
1841
|
}
|
|
1431
1842
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1432
|
-
contents.UpdatedAt =
|
|
1843
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
1433
1844
|
}
|
|
1434
1845
|
return Promise.resolve(contents);
|
|
1435
1846
|
};
|
|
1436
|
-
exports.
|
|
1437
|
-
const
|
|
1847
|
+
exports.deserializeAws_restJson1GetDataSetCommand = deserializeAws_restJson1GetDataSetCommand;
|
|
1848
|
+
const deserializeAws_restJson1GetDataSetCommandError = async (output, context) => {
|
|
1438
1849
|
const parsedOutput = {
|
|
1439
1850
|
...output,
|
|
1440
1851
|
body: await parseBody(output.body, context),
|
|
@@ -1491,62 +1902,42 @@ const deserializeAws_restJson1GetAssetCommandError = async (output, context) =>
|
|
|
1491
1902
|
delete response.Message;
|
|
1492
1903
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1493
1904
|
};
|
|
1494
|
-
const
|
|
1905
|
+
const deserializeAws_restJson1GetEventActionCommand = async (output, context) => {
|
|
1495
1906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
|
-
return
|
|
1907
|
+
return deserializeAws_restJson1GetEventActionCommandError(output, context);
|
|
1497
1908
|
}
|
|
1498
1909
|
const contents = {
|
|
1499
1910
|
$metadata: deserializeMetadata(output),
|
|
1911
|
+
Action: undefined,
|
|
1500
1912
|
Arn: undefined,
|
|
1501
|
-
AssetType: undefined,
|
|
1502
1913
|
CreatedAt: undefined,
|
|
1503
|
-
|
|
1914
|
+
Event: undefined,
|
|
1504
1915
|
Id: undefined,
|
|
1505
|
-
Name: undefined,
|
|
1506
|
-
Origin: undefined,
|
|
1507
|
-
OriginDetails: undefined,
|
|
1508
|
-
SourceId: undefined,
|
|
1509
|
-
Tags: undefined,
|
|
1510
1916
|
UpdatedAt: undefined,
|
|
1511
1917
|
};
|
|
1512
|
-
const data =
|
|
1513
|
-
if (data.
|
|
1514
|
-
contents.
|
|
1918
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1919
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
1920
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
1515
1921
|
}
|
|
1516
|
-
if (data.
|
|
1517
|
-
contents.
|
|
1922
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1923
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1518
1924
|
}
|
|
1519
1925
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1520
|
-
contents.CreatedAt =
|
|
1926
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
1521
1927
|
}
|
|
1522
|
-
if (data.
|
|
1523
|
-
contents.
|
|
1928
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
1929
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
1524
1930
|
}
|
|
1525
1931
|
if (data.Id !== undefined && data.Id !== null) {
|
|
1526
|
-
contents.Id =
|
|
1527
|
-
}
|
|
1528
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
1529
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1530
|
-
}
|
|
1531
|
-
if (data.Origin !== undefined && data.Origin !== null) {
|
|
1532
|
-
contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
|
|
1533
|
-
}
|
|
1534
|
-
if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
|
|
1535
|
-
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
1536
|
-
}
|
|
1537
|
-
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
1538
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1539
|
-
}
|
|
1540
|
-
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1541
|
-
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1932
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1542
1933
|
}
|
|
1543
1934
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1544
|
-
contents.UpdatedAt =
|
|
1935
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
1545
1936
|
}
|
|
1546
1937
|
return Promise.resolve(contents);
|
|
1547
1938
|
};
|
|
1548
|
-
exports.
|
|
1549
|
-
const
|
|
1939
|
+
exports.deserializeAws_restJson1GetEventActionCommand = deserializeAws_restJson1GetEventActionCommand;
|
|
1940
|
+
const deserializeAws_restJson1GetEventActionCommandError = async (output, context) => {
|
|
1550
1941
|
const parsedOutput = {
|
|
1551
1942
|
...output,
|
|
1552
1943
|
body: await parseBody(output.body, context),
|
|
@@ -1618,12 +2009,12 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
|
|
|
1618
2009
|
Type: undefined,
|
|
1619
2010
|
UpdatedAt: undefined,
|
|
1620
2011
|
};
|
|
1621
|
-
const data =
|
|
2012
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1622
2013
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1623
|
-
contents.Arn =
|
|
2014
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1624
2015
|
}
|
|
1625
2016
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1626
|
-
contents.CreatedAt =
|
|
2017
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
1627
2018
|
}
|
|
1628
2019
|
if (data.Details !== undefined && data.Details !== null) {
|
|
1629
2020
|
contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
|
|
@@ -1632,16 +2023,16 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
|
|
|
1632
2023
|
contents.Errors = deserializeAws_restJson1ListOfJobError(data.Errors, context);
|
|
1633
2024
|
}
|
|
1634
2025
|
if (data.Id !== undefined && data.Id !== null) {
|
|
1635
|
-
contents.Id =
|
|
2026
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1636
2027
|
}
|
|
1637
2028
|
if (data.State !== undefined && data.State !== null) {
|
|
1638
|
-
contents.State =
|
|
2029
|
+
contents.State = smithy_client_1.expectString(data.State);
|
|
1639
2030
|
}
|
|
1640
2031
|
if (data.Type !== undefined && data.Type !== null) {
|
|
1641
|
-
contents.Type =
|
|
2032
|
+
contents.Type = smithy_client_1.expectString(data.Type);
|
|
1642
2033
|
}
|
|
1643
2034
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1644
|
-
contents.UpdatedAt =
|
|
2035
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
1645
2036
|
}
|
|
1646
2037
|
return Promise.resolve(contents);
|
|
1647
2038
|
};
|
|
@@ -1719,33 +2110,33 @@ const deserializeAws_restJson1GetRevisionCommand = async (output, context) => {
|
|
|
1719
2110
|
Tags: undefined,
|
|
1720
2111
|
UpdatedAt: undefined,
|
|
1721
2112
|
};
|
|
1722
|
-
const data =
|
|
2113
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1723
2114
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1724
|
-
contents.Arn =
|
|
2115
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1725
2116
|
}
|
|
1726
2117
|
if (data.Comment !== undefined && data.Comment !== null) {
|
|
1727
|
-
contents.Comment =
|
|
2118
|
+
contents.Comment = smithy_client_1.expectString(data.Comment);
|
|
1728
2119
|
}
|
|
1729
2120
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1730
|
-
contents.CreatedAt =
|
|
2121
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
1731
2122
|
}
|
|
1732
2123
|
if (data.DataSetId !== undefined && data.DataSetId !== null) {
|
|
1733
|
-
contents.DataSetId =
|
|
2124
|
+
contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
|
|
1734
2125
|
}
|
|
1735
2126
|
if (data.Finalized !== undefined && data.Finalized !== null) {
|
|
1736
|
-
contents.Finalized =
|
|
2127
|
+
contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
|
|
1737
2128
|
}
|
|
1738
2129
|
if (data.Id !== undefined && data.Id !== null) {
|
|
1739
|
-
contents.Id =
|
|
2130
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1740
2131
|
}
|
|
1741
2132
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
1742
|
-
contents.SourceId =
|
|
2133
|
+
contents.SourceId = smithy_client_1.expectString(data.SourceId);
|
|
1743
2134
|
}
|
|
1744
2135
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1745
2136
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1746
2137
|
}
|
|
1747
2138
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1748
|
-
contents.UpdatedAt =
|
|
2139
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
1749
2140
|
}
|
|
1750
2141
|
return Promise.resolve(contents);
|
|
1751
2142
|
};
|
|
@@ -1816,9 +2207,9 @@ const deserializeAws_restJson1ListDataSetRevisionsCommand = async (output, conte
|
|
|
1816
2207
|
NextToken: undefined,
|
|
1817
2208
|
Revisions: undefined,
|
|
1818
2209
|
};
|
|
1819
|
-
const data =
|
|
2210
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1820
2211
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1821
|
-
contents.NextToken =
|
|
2212
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1822
2213
|
}
|
|
1823
2214
|
if (data.Revisions !== undefined && data.Revisions !== null) {
|
|
1824
2215
|
contents.Revisions = deserializeAws_restJson1ListOfRevisionEntry(data.Revisions, context);
|
|
@@ -1892,12 +2283,12 @@ const deserializeAws_restJson1ListDataSetsCommand = async (output, context) => {
|
|
|
1892
2283
|
DataSets: undefined,
|
|
1893
2284
|
NextToken: undefined,
|
|
1894
2285
|
};
|
|
1895
|
-
const data =
|
|
2286
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1896
2287
|
if (data.DataSets !== undefined && data.DataSets !== null) {
|
|
1897
2288
|
contents.DataSets = deserializeAws_restJson1ListOfDataSetEntry(data.DataSets, context);
|
|
1898
2289
|
}
|
|
1899
2290
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1900
|
-
contents.NextToken =
|
|
2291
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1901
2292
|
}
|
|
1902
2293
|
return Promise.resolve(contents);
|
|
1903
2294
|
};
|
|
@@ -1959,6 +2350,82 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
1959
2350
|
delete response.Message;
|
|
1960
2351
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1961
2352
|
};
|
|
2353
|
+
const deserializeAws_restJson1ListEventActionsCommand = async (output, context) => {
|
|
2354
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2355
|
+
return deserializeAws_restJson1ListEventActionsCommandError(output, context);
|
|
2356
|
+
}
|
|
2357
|
+
const contents = {
|
|
2358
|
+
$metadata: deserializeMetadata(output),
|
|
2359
|
+
EventActions: undefined,
|
|
2360
|
+
NextToken: undefined,
|
|
2361
|
+
};
|
|
2362
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2363
|
+
if (data.EventActions !== undefined && data.EventActions !== null) {
|
|
2364
|
+
contents.EventActions = deserializeAws_restJson1ListOfEventActionEntry(data.EventActions, context);
|
|
2365
|
+
}
|
|
2366
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2367
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2368
|
+
}
|
|
2369
|
+
return Promise.resolve(contents);
|
|
2370
|
+
};
|
|
2371
|
+
exports.deserializeAws_restJson1ListEventActionsCommand = deserializeAws_restJson1ListEventActionsCommand;
|
|
2372
|
+
const deserializeAws_restJson1ListEventActionsCommandError = async (output, context) => {
|
|
2373
|
+
const parsedOutput = {
|
|
2374
|
+
...output,
|
|
2375
|
+
body: await parseBody(output.body, context),
|
|
2376
|
+
};
|
|
2377
|
+
let response;
|
|
2378
|
+
let errorCode = "UnknownError";
|
|
2379
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2380
|
+
switch (errorCode) {
|
|
2381
|
+
case "InternalServerException":
|
|
2382
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2383
|
+
response = {
|
|
2384
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2385
|
+
name: errorCode,
|
|
2386
|
+
$metadata: deserializeMetadata(output),
|
|
2387
|
+
};
|
|
2388
|
+
break;
|
|
2389
|
+
case "ResourceNotFoundException":
|
|
2390
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2391
|
+
response = {
|
|
2392
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2393
|
+
name: errorCode,
|
|
2394
|
+
$metadata: deserializeMetadata(output),
|
|
2395
|
+
};
|
|
2396
|
+
break;
|
|
2397
|
+
case "ThrottlingException":
|
|
2398
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2399
|
+
response = {
|
|
2400
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2401
|
+
name: errorCode,
|
|
2402
|
+
$metadata: deserializeMetadata(output),
|
|
2403
|
+
};
|
|
2404
|
+
break;
|
|
2405
|
+
case "ValidationException":
|
|
2406
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
2407
|
+
response = {
|
|
2408
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2409
|
+
name: errorCode,
|
|
2410
|
+
$metadata: deserializeMetadata(output),
|
|
2411
|
+
};
|
|
2412
|
+
break;
|
|
2413
|
+
default:
|
|
2414
|
+
const parsedBody = parsedOutput.body;
|
|
2415
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2416
|
+
response = {
|
|
2417
|
+
...parsedBody,
|
|
2418
|
+
name: `${errorCode}`,
|
|
2419
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2420
|
+
$fault: "client",
|
|
2421
|
+
$metadata: deserializeMetadata(output),
|
|
2422
|
+
};
|
|
2423
|
+
}
|
|
2424
|
+
const message = response.message || response.Message || errorCode;
|
|
2425
|
+
response.message = message;
|
|
2426
|
+
delete response.Message;
|
|
2427
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2428
|
+
};
|
|
1962
2429
|
const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
|
|
1963
2430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1964
2431
|
return deserializeAws_restJson1ListJobsCommandError(output, context);
|
|
@@ -1968,12 +2435,12 @@ const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
|
|
|
1968
2435
|
Jobs: undefined,
|
|
1969
2436
|
NextToken: undefined,
|
|
1970
2437
|
};
|
|
1971
|
-
const data =
|
|
2438
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1972
2439
|
if (data.Jobs !== undefined && data.Jobs !== null) {
|
|
1973
2440
|
contents.Jobs = deserializeAws_restJson1ListOfJobEntry(data.Jobs, context);
|
|
1974
2441
|
}
|
|
1975
2442
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1976
|
-
contents.NextToken =
|
|
2443
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1977
2444
|
}
|
|
1978
2445
|
return Promise.resolve(contents);
|
|
1979
2446
|
};
|
|
@@ -2044,12 +2511,12 @@ const deserializeAws_restJson1ListRevisionAssetsCommand = async (output, context
|
|
|
2044
2511
|
Assets: undefined,
|
|
2045
2512
|
NextToken: undefined,
|
|
2046
2513
|
};
|
|
2047
|
-
const data =
|
|
2514
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2048
2515
|
if (data.Assets !== undefined && data.Assets !== null) {
|
|
2049
2516
|
contents.Assets = deserializeAws_restJson1ListOfAssetEntry(data.Assets, context);
|
|
2050
2517
|
}
|
|
2051
2518
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2052
|
-
contents.NextToken =
|
|
2519
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2053
2520
|
}
|
|
2054
2521
|
return Promise.resolve(contents);
|
|
2055
2522
|
};
|
|
@@ -2119,7 +2586,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2119
2586
|
$metadata: deserializeMetadata(output),
|
|
2120
2587
|
Tags: undefined,
|
|
2121
2588
|
};
|
|
2122
|
-
const data =
|
|
2589
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2123
2590
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2124
2591
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.tags, context);
|
|
2125
2592
|
}
|
|
@@ -2324,36 +2791,36 @@ const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
|
|
|
2324
2791
|
SourceId: undefined,
|
|
2325
2792
|
UpdatedAt: undefined,
|
|
2326
2793
|
};
|
|
2327
|
-
const data =
|
|
2794
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2328
2795
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2329
|
-
contents.Arn =
|
|
2796
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
2330
2797
|
}
|
|
2331
2798
|
if (data.AssetDetails !== undefined && data.AssetDetails !== null) {
|
|
2332
2799
|
contents.AssetDetails = deserializeAws_restJson1AssetDetails(data.AssetDetails, context);
|
|
2333
2800
|
}
|
|
2334
2801
|
if (data.AssetType !== undefined && data.AssetType !== null) {
|
|
2335
|
-
contents.AssetType =
|
|
2802
|
+
contents.AssetType = smithy_client_1.expectString(data.AssetType);
|
|
2336
2803
|
}
|
|
2337
2804
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
2338
|
-
contents.CreatedAt =
|
|
2805
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
2339
2806
|
}
|
|
2340
2807
|
if (data.DataSetId !== undefined && data.DataSetId !== null) {
|
|
2341
|
-
contents.DataSetId =
|
|
2808
|
+
contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
|
|
2342
2809
|
}
|
|
2343
2810
|
if (data.Id !== undefined && data.Id !== null) {
|
|
2344
|
-
contents.Id =
|
|
2811
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
2345
2812
|
}
|
|
2346
2813
|
if (data.Name !== undefined && data.Name !== null) {
|
|
2347
|
-
contents.Name =
|
|
2814
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
2348
2815
|
}
|
|
2349
2816
|
if (data.RevisionId !== undefined && data.RevisionId !== null) {
|
|
2350
|
-
contents.RevisionId =
|
|
2817
|
+
contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
|
|
2351
2818
|
}
|
|
2352
2819
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
2353
|
-
contents.SourceId =
|
|
2820
|
+
contents.SourceId = smithy_client_1.expectString(data.SourceId);
|
|
2354
2821
|
}
|
|
2355
2822
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2356
|
-
contents.UpdatedAt =
|
|
2823
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
2357
2824
|
}
|
|
2358
2825
|
return Promise.resolve(contents);
|
|
2359
2826
|
};
|
|
@@ -2448,36 +2915,36 @@ const deserializeAws_restJson1UpdateDataSetCommand = async (output, context) =>
|
|
|
2448
2915
|
SourceId: undefined,
|
|
2449
2916
|
UpdatedAt: undefined,
|
|
2450
2917
|
};
|
|
2451
|
-
const data =
|
|
2918
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2452
2919
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2453
|
-
contents.Arn =
|
|
2920
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
2454
2921
|
}
|
|
2455
2922
|
if (data.AssetType !== undefined && data.AssetType !== null) {
|
|
2456
|
-
contents.AssetType =
|
|
2923
|
+
contents.AssetType = smithy_client_1.expectString(data.AssetType);
|
|
2457
2924
|
}
|
|
2458
2925
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
2459
|
-
contents.CreatedAt =
|
|
2926
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
2460
2927
|
}
|
|
2461
2928
|
if (data.Description !== undefined && data.Description !== null) {
|
|
2462
|
-
contents.Description =
|
|
2929
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
2463
2930
|
}
|
|
2464
2931
|
if (data.Id !== undefined && data.Id !== null) {
|
|
2465
|
-
contents.Id =
|
|
2932
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
2466
2933
|
}
|
|
2467
2934
|
if (data.Name !== undefined && data.Name !== null) {
|
|
2468
|
-
contents.Name =
|
|
2935
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
2469
2936
|
}
|
|
2470
2937
|
if (data.Origin !== undefined && data.Origin !== null) {
|
|
2471
|
-
contents.Origin =
|
|
2938
|
+
contents.Origin = smithy_client_1.expectString(data.Origin);
|
|
2472
2939
|
}
|
|
2473
2940
|
if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
|
|
2474
2941
|
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
2475
2942
|
}
|
|
2476
2943
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
2477
|
-
contents.SourceId =
|
|
2944
|
+
contents.SourceId = smithy_client_1.expectString(data.SourceId);
|
|
2478
2945
|
}
|
|
2479
2946
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2480
|
-
contents.UpdatedAt =
|
|
2947
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
2481
2948
|
}
|
|
2482
2949
|
return Promise.resolve(contents);
|
|
2483
2950
|
};
|
|
@@ -2547,6 +3014,106 @@ const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context
|
|
|
2547
3014
|
delete response.Message;
|
|
2548
3015
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2549
3016
|
};
|
|
3017
|
+
const deserializeAws_restJson1UpdateEventActionCommand = async (output, context) => {
|
|
3018
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3019
|
+
return deserializeAws_restJson1UpdateEventActionCommandError(output, context);
|
|
3020
|
+
}
|
|
3021
|
+
const contents = {
|
|
3022
|
+
$metadata: deserializeMetadata(output),
|
|
3023
|
+
Action: undefined,
|
|
3024
|
+
Arn: undefined,
|
|
3025
|
+
CreatedAt: undefined,
|
|
3026
|
+
Event: undefined,
|
|
3027
|
+
Id: undefined,
|
|
3028
|
+
UpdatedAt: undefined,
|
|
3029
|
+
};
|
|
3030
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3031
|
+
if (data.Action !== undefined && data.Action !== null) {
|
|
3032
|
+
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
3033
|
+
}
|
|
3034
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
3035
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
3036
|
+
}
|
|
3037
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
3038
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
3039
|
+
}
|
|
3040
|
+
if (data.Event !== undefined && data.Event !== null) {
|
|
3041
|
+
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
3042
|
+
}
|
|
3043
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
3044
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
3045
|
+
}
|
|
3046
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
3047
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
3048
|
+
}
|
|
3049
|
+
return Promise.resolve(contents);
|
|
3050
|
+
};
|
|
3051
|
+
exports.deserializeAws_restJson1UpdateEventActionCommand = deserializeAws_restJson1UpdateEventActionCommand;
|
|
3052
|
+
const deserializeAws_restJson1UpdateEventActionCommandError = async (output, context) => {
|
|
3053
|
+
const parsedOutput = {
|
|
3054
|
+
...output,
|
|
3055
|
+
body: await parseBody(output.body, context),
|
|
3056
|
+
};
|
|
3057
|
+
let response;
|
|
3058
|
+
let errorCode = "UnknownError";
|
|
3059
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3060
|
+
switch (errorCode) {
|
|
3061
|
+
case "AccessDeniedException":
|
|
3062
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
3063
|
+
response = {
|
|
3064
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3065
|
+
name: errorCode,
|
|
3066
|
+
$metadata: deserializeMetadata(output),
|
|
3067
|
+
};
|
|
3068
|
+
break;
|
|
3069
|
+
case "InternalServerException":
|
|
3070
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
3071
|
+
response = {
|
|
3072
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3073
|
+
name: errorCode,
|
|
3074
|
+
$metadata: deserializeMetadata(output),
|
|
3075
|
+
};
|
|
3076
|
+
break;
|
|
3077
|
+
case "ResourceNotFoundException":
|
|
3078
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
3079
|
+
response = {
|
|
3080
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3081
|
+
name: errorCode,
|
|
3082
|
+
$metadata: deserializeMetadata(output),
|
|
3083
|
+
};
|
|
3084
|
+
break;
|
|
3085
|
+
case "ThrottlingException":
|
|
3086
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
3087
|
+
response = {
|
|
3088
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3089
|
+
name: errorCode,
|
|
3090
|
+
$metadata: deserializeMetadata(output),
|
|
3091
|
+
};
|
|
3092
|
+
break;
|
|
3093
|
+
case "ValidationException":
|
|
3094
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
3095
|
+
response = {
|
|
3096
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3097
|
+
name: errorCode,
|
|
3098
|
+
$metadata: deserializeMetadata(output),
|
|
3099
|
+
};
|
|
3100
|
+
break;
|
|
3101
|
+
default:
|
|
3102
|
+
const parsedBody = parsedOutput.body;
|
|
3103
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3104
|
+
response = {
|
|
3105
|
+
...parsedBody,
|
|
3106
|
+
name: `${errorCode}`,
|
|
3107
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3108
|
+
$fault: "client",
|
|
3109
|
+
$metadata: deserializeMetadata(output),
|
|
3110
|
+
};
|
|
3111
|
+
}
|
|
3112
|
+
const message = response.message || response.Message || errorCode;
|
|
3113
|
+
response.message = message;
|
|
3114
|
+
delete response.Message;
|
|
3115
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3116
|
+
};
|
|
2550
3117
|
const deserializeAws_restJson1UpdateRevisionCommand = async (output, context) => {
|
|
2551
3118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2552
3119
|
return deserializeAws_restJson1UpdateRevisionCommandError(output, context);
|
|
@@ -2562,30 +3129,30 @@ const deserializeAws_restJson1UpdateRevisionCommand = async (output, context) =>
|
|
|
2562
3129
|
SourceId: undefined,
|
|
2563
3130
|
UpdatedAt: undefined,
|
|
2564
3131
|
};
|
|
2565
|
-
const data =
|
|
3132
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2566
3133
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2567
|
-
contents.Arn =
|
|
3134
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
2568
3135
|
}
|
|
2569
3136
|
if (data.Comment !== undefined && data.Comment !== null) {
|
|
2570
|
-
contents.Comment =
|
|
3137
|
+
contents.Comment = smithy_client_1.expectString(data.Comment);
|
|
2571
3138
|
}
|
|
2572
3139
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
2573
|
-
contents.CreatedAt =
|
|
3140
|
+
contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
|
|
2574
3141
|
}
|
|
2575
3142
|
if (data.DataSetId !== undefined && data.DataSetId !== null) {
|
|
2576
|
-
contents.DataSetId =
|
|
3143
|
+
contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
|
|
2577
3144
|
}
|
|
2578
3145
|
if (data.Finalized !== undefined && data.Finalized !== null) {
|
|
2579
|
-
contents.Finalized =
|
|
3146
|
+
contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
|
|
2580
3147
|
}
|
|
2581
3148
|
if (data.Id !== undefined && data.Id !== null) {
|
|
2582
|
-
contents.Id =
|
|
3149
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
2583
3150
|
}
|
|
2584
3151
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
2585
|
-
contents.SourceId =
|
|
3152
|
+
contents.SourceId = smithy_client_1.expectString(data.SourceId);
|
|
2586
3153
|
}
|
|
2587
3154
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2588
|
-
contents.UpdatedAt =
|
|
3155
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
2589
3156
|
}
|
|
2590
3157
|
return Promise.resolve(contents);
|
|
2591
3158
|
};
|
|
@@ -2672,7 +3239,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2672
3239
|
};
|
|
2673
3240
|
const data = parsedOutput.body;
|
|
2674
3241
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2675
|
-
contents.Message =
|
|
3242
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2676
3243
|
}
|
|
2677
3244
|
return contents;
|
|
2678
3245
|
};
|
|
@@ -2687,13 +3254,13 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2687
3254
|
};
|
|
2688
3255
|
const data = parsedOutput.body;
|
|
2689
3256
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2690
|
-
contents.Message =
|
|
3257
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2691
3258
|
}
|
|
2692
3259
|
if (data.ResourceId !== undefined && data.ResourceId !== null) {
|
|
2693
|
-
contents.ResourceId =
|
|
3260
|
+
contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
|
|
2694
3261
|
}
|
|
2695
3262
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
2696
|
-
contents.ResourceType =
|
|
3263
|
+
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
2697
3264
|
}
|
|
2698
3265
|
return contents;
|
|
2699
3266
|
};
|
|
@@ -2706,7 +3273,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2706
3273
|
};
|
|
2707
3274
|
const data = parsedOutput.body;
|
|
2708
3275
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2709
|
-
contents.Message =
|
|
3276
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2710
3277
|
}
|
|
2711
3278
|
return contents;
|
|
2712
3279
|
};
|
|
@@ -2721,13 +3288,13 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2721
3288
|
};
|
|
2722
3289
|
const data = parsedOutput.body;
|
|
2723
3290
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2724
|
-
contents.Message =
|
|
3291
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2725
3292
|
}
|
|
2726
3293
|
if (data.ResourceId !== undefined && data.ResourceId !== null) {
|
|
2727
|
-
contents.ResourceId =
|
|
3294
|
+
contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
|
|
2728
3295
|
}
|
|
2729
3296
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
2730
|
-
contents.ResourceType =
|
|
3297
|
+
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
2731
3298
|
}
|
|
2732
3299
|
return contents;
|
|
2733
3300
|
};
|
|
@@ -2742,13 +3309,13 @@ const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (par
|
|
|
2742
3309
|
};
|
|
2743
3310
|
const data = parsedOutput.body;
|
|
2744
3311
|
if (data.LimitName !== undefined && data.LimitName !== null) {
|
|
2745
|
-
contents.LimitName =
|
|
3312
|
+
contents.LimitName = smithy_client_1.expectString(data.LimitName);
|
|
2746
3313
|
}
|
|
2747
3314
|
if (data.LimitValue !== undefined && data.LimitValue !== null) {
|
|
2748
|
-
contents.LimitValue =
|
|
3315
|
+
contents.LimitValue = smithy_client_1.limitedParseDouble(data.LimitValue);
|
|
2749
3316
|
}
|
|
2750
3317
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2751
|
-
contents.Message =
|
|
3318
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2752
3319
|
}
|
|
2753
3320
|
return contents;
|
|
2754
3321
|
};
|
|
@@ -2761,7 +3328,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2761
3328
|
};
|
|
2762
3329
|
const data = parsedOutput.body;
|
|
2763
3330
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2764
|
-
contents.Message =
|
|
3331
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2765
3332
|
}
|
|
2766
3333
|
return contents;
|
|
2767
3334
|
};
|
|
@@ -2770,14 +3337,26 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2770
3337
|
name: "ValidationException",
|
|
2771
3338
|
$fault: "client",
|
|
2772
3339
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3340
|
+
ExceptionCause: undefined,
|
|
2773
3341
|
Message: undefined,
|
|
2774
3342
|
};
|
|
2775
3343
|
const data = parsedOutput.body;
|
|
3344
|
+
if (data.ExceptionCause !== undefined && data.ExceptionCause !== null) {
|
|
3345
|
+
contents.ExceptionCause = smithy_client_1.expectString(data.ExceptionCause);
|
|
3346
|
+
}
|
|
2776
3347
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2777
|
-
contents.Message =
|
|
3348
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2778
3349
|
}
|
|
2779
3350
|
return contents;
|
|
2780
3351
|
};
|
|
3352
|
+
const serializeAws_restJson1Action = (input, context) => {
|
|
3353
|
+
return {
|
|
3354
|
+
...(input.ExportRevisionToS3 !== undefined &&
|
|
3355
|
+
input.ExportRevisionToS3 !== null && {
|
|
3356
|
+
ExportRevisionToS3: serializeAws_restJson1AutoExportRevisionToS3RequestDetails(input.ExportRevisionToS3, context),
|
|
3357
|
+
}),
|
|
3358
|
+
};
|
|
3359
|
+
};
|
|
2781
3360
|
const serializeAws_restJson1AssetDestinationEntry = (input, context) => {
|
|
2782
3361
|
return {
|
|
2783
3362
|
...(input.AssetId !== undefined && input.AssetId !== null && { AssetId: input.AssetId }),
|
|
@@ -2791,6 +3370,32 @@ const serializeAws_restJson1AssetSourceEntry = (input, context) => {
|
|
|
2791
3370
|
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
2792
3371
|
};
|
|
2793
3372
|
};
|
|
3373
|
+
const serializeAws_restJson1AutoExportRevisionDestinationEntry = (input, context) => {
|
|
3374
|
+
return {
|
|
3375
|
+
...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
|
|
3376
|
+
...(input.KeyPattern !== undefined && input.KeyPattern !== null && { KeyPattern: input.KeyPattern }),
|
|
3377
|
+
};
|
|
3378
|
+
};
|
|
3379
|
+
const serializeAws_restJson1AutoExportRevisionToS3RequestDetails = (input, context) => {
|
|
3380
|
+
return {
|
|
3381
|
+
...(input.Encryption !== undefined &&
|
|
3382
|
+
input.Encryption !== null && {
|
|
3383
|
+
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
3384
|
+
}),
|
|
3385
|
+
...(input.RevisionDestination !== undefined &&
|
|
3386
|
+
input.RevisionDestination !== null && {
|
|
3387
|
+
RevisionDestination: serializeAws_restJson1AutoExportRevisionDestinationEntry(input.RevisionDestination, context),
|
|
3388
|
+
}),
|
|
3389
|
+
};
|
|
3390
|
+
};
|
|
3391
|
+
const serializeAws_restJson1Event = (input, context) => {
|
|
3392
|
+
return {
|
|
3393
|
+
...(input.RevisionPublished !== undefined &&
|
|
3394
|
+
input.RevisionPublished !== null && {
|
|
3395
|
+
RevisionPublished: serializeAws_restJson1RevisionPublished(input.RevisionPublished, context),
|
|
3396
|
+
}),
|
|
3397
|
+
};
|
|
3398
|
+
};
|
|
2794
3399
|
const serializeAws_restJson1ExportAssetsToS3RequestDetails = (input, context) => {
|
|
2795
3400
|
return {
|
|
2796
3401
|
...(input.AssetDestinations !== undefined &&
|
|
@@ -2921,11 +3526,23 @@ const serializeAws_restJson1RevisionDestinationEntry = (input, context) => {
|
|
|
2921
3526
|
...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
|
|
2922
3527
|
};
|
|
2923
3528
|
};
|
|
3529
|
+
const serializeAws_restJson1RevisionPublished = (input, context) => {
|
|
3530
|
+
return {
|
|
3531
|
+
...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
|
|
3532
|
+
};
|
|
3533
|
+
};
|
|
3534
|
+
const deserializeAws_restJson1Action = (output, context) => {
|
|
3535
|
+
return {
|
|
3536
|
+
ExportRevisionToS3: output.ExportRevisionToS3 !== undefined && output.ExportRevisionToS3 !== null
|
|
3537
|
+
? deserializeAws_restJson1AutoExportRevisionToS3RequestDetails(output.ExportRevisionToS3, context)
|
|
3538
|
+
: undefined,
|
|
3539
|
+
};
|
|
3540
|
+
};
|
|
2924
3541
|
const deserializeAws_restJson1AssetDestinationEntry = (output, context) => {
|
|
2925
3542
|
return {
|
|
2926
|
-
AssetId:
|
|
2927
|
-
Bucket:
|
|
2928
|
-
Key:
|
|
3543
|
+
AssetId: smithy_client_1.expectString(output.AssetId),
|
|
3544
|
+
Bucket: smithy_client_1.expectString(output.Bucket),
|
|
3545
|
+
Key: smithy_client_1.expectString(output.Key),
|
|
2929
3546
|
};
|
|
2930
3547
|
};
|
|
2931
3548
|
const deserializeAws_restJson1AssetDetails = (output, context) => {
|
|
@@ -2937,47 +3554,63 @@ const deserializeAws_restJson1AssetDetails = (output, context) => {
|
|
|
2937
3554
|
};
|
|
2938
3555
|
const deserializeAws_restJson1AssetEntry = (output, context) => {
|
|
2939
3556
|
return {
|
|
2940
|
-
Arn:
|
|
3557
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
2941
3558
|
AssetDetails: output.AssetDetails !== undefined && output.AssetDetails !== null
|
|
2942
3559
|
? deserializeAws_restJson1AssetDetails(output.AssetDetails, context)
|
|
2943
3560
|
: undefined,
|
|
2944
|
-
AssetType:
|
|
3561
|
+
AssetType: smithy_client_1.expectString(output.AssetType),
|
|
2945
3562
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
2946
|
-
?
|
|
3563
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
|
|
2947
3564
|
: undefined,
|
|
2948
|
-
DataSetId:
|
|
2949
|
-
Id:
|
|
2950
|
-
Name:
|
|
2951
|
-
RevisionId:
|
|
2952
|
-
SourceId:
|
|
3565
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3566
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
3567
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
3568
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
3569
|
+
SourceId: smithy_client_1.expectString(output.SourceId),
|
|
2953
3570
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
2954
|
-
?
|
|
3571
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
|
|
2955
3572
|
: undefined,
|
|
2956
3573
|
};
|
|
2957
3574
|
};
|
|
2958
3575
|
const deserializeAws_restJson1AssetSourceEntry = (output, context) => {
|
|
2959
3576
|
return {
|
|
2960
|
-
Bucket:
|
|
2961
|
-
Key:
|
|
3577
|
+
Bucket: smithy_client_1.expectString(output.Bucket),
|
|
3578
|
+
Key: smithy_client_1.expectString(output.Key),
|
|
3579
|
+
};
|
|
3580
|
+
};
|
|
3581
|
+
const deserializeAws_restJson1AutoExportRevisionDestinationEntry = (output, context) => {
|
|
3582
|
+
return {
|
|
3583
|
+
Bucket: smithy_client_1.expectString(output.Bucket),
|
|
3584
|
+
KeyPattern: smithy_client_1.expectString(output.KeyPattern),
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3587
|
+
const deserializeAws_restJson1AutoExportRevisionToS3RequestDetails = (output, context) => {
|
|
3588
|
+
return {
|
|
3589
|
+
Encryption: output.Encryption !== undefined && output.Encryption !== null
|
|
3590
|
+
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
3591
|
+
: undefined,
|
|
3592
|
+
RevisionDestination: output.RevisionDestination !== undefined && output.RevisionDestination !== null
|
|
3593
|
+
? deserializeAws_restJson1AutoExportRevisionDestinationEntry(output.RevisionDestination, context)
|
|
3594
|
+
: undefined,
|
|
2962
3595
|
};
|
|
2963
3596
|
};
|
|
2964
3597
|
const deserializeAws_restJson1DataSetEntry = (output, context) => {
|
|
2965
3598
|
return {
|
|
2966
|
-
Arn:
|
|
2967
|
-
AssetType:
|
|
3599
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
3600
|
+
AssetType: smithy_client_1.expectString(output.AssetType),
|
|
2968
3601
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
2969
|
-
?
|
|
3602
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
|
|
2970
3603
|
: undefined,
|
|
2971
|
-
Description:
|
|
2972
|
-
Id:
|
|
2973
|
-
Name:
|
|
2974
|
-
Origin:
|
|
3604
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
3605
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
3606
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
3607
|
+
Origin: smithy_client_1.expectString(output.Origin),
|
|
2975
3608
|
OriginDetails: output.OriginDetails !== undefined && output.OriginDetails !== null
|
|
2976
3609
|
? deserializeAws_restJson1OriginDetails(output.OriginDetails, context)
|
|
2977
3610
|
: undefined,
|
|
2978
|
-
SourceId:
|
|
3611
|
+
SourceId: smithy_client_1.expectString(output.SourceId),
|
|
2979
3612
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
2980
|
-
?
|
|
3613
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
|
|
2981
3614
|
: undefined,
|
|
2982
3615
|
};
|
|
2983
3616
|
};
|
|
@@ -2992,32 +3625,57 @@ const deserializeAws_restJson1Details = (output, context) => {
|
|
|
2992
3625
|
: undefined,
|
|
2993
3626
|
};
|
|
2994
3627
|
};
|
|
3628
|
+
const deserializeAws_restJson1Event = (output, context) => {
|
|
3629
|
+
return {
|
|
3630
|
+
RevisionPublished: output.RevisionPublished !== undefined && output.RevisionPublished !== null
|
|
3631
|
+
? deserializeAws_restJson1RevisionPublished(output.RevisionPublished, context)
|
|
3632
|
+
: undefined,
|
|
3633
|
+
};
|
|
3634
|
+
};
|
|
3635
|
+
const deserializeAws_restJson1EventActionEntry = (output, context) => {
|
|
3636
|
+
return {
|
|
3637
|
+
Action: output.Action !== undefined && output.Action !== null
|
|
3638
|
+
? deserializeAws_restJson1Action(output.Action, context)
|
|
3639
|
+
: undefined,
|
|
3640
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
3641
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3642
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
|
|
3643
|
+
: undefined,
|
|
3644
|
+
Event: output.Event !== undefined && output.Event !== null
|
|
3645
|
+
? deserializeAws_restJson1Event(output.Event, context)
|
|
3646
|
+
: undefined,
|
|
3647
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
3648
|
+
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
3649
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
|
|
3650
|
+
: undefined,
|
|
3651
|
+
};
|
|
3652
|
+
};
|
|
2995
3653
|
const deserializeAws_restJson1ExportAssetsToS3ResponseDetails = (output, context) => {
|
|
2996
3654
|
return {
|
|
2997
3655
|
AssetDestinations: output.AssetDestinations !== undefined && output.AssetDestinations !== null
|
|
2998
3656
|
? deserializeAws_restJson1ListOfAssetDestinationEntry(output.AssetDestinations, context)
|
|
2999
3657
|
: undefined,
|
|
3000
|
-
DataSetId:
|
|
3658
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3001
3659
|
Encryption: output.Encryption !== undefined && output.Encryption !== null
|
|
3002
3660
|
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
3003
3661
|
: undefined,
|
|
3004
|
-
RevisionId:
|
|
3662
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
3005
3663
|
};
|
|
3006
3664
|
};
|
|
3007
3665
|
const deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = (output, context) => {
|
|
3008
3666
|
return {
|
|
3009
|
-
AssetId:
|
|
3010
|
-
DataSetId:
|
|
3011
|
-
RevisionId:
|
|
3012
|
-
SignedUrl:
|
|
3667
|
+
AssetId: smithy_client_1.expectString(output.AssetId),
|
|
3668
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3669
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
3670
|
+
SignedUrl: smithy_client_1.expectString(output.SignedUrl),
|
|
3013
3671
|
SignedUrlExpiresAt: output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
|
|
3014
|
-
?
|
|
3672
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SignedUrlExpiresAt))
|
|
3015
3673
|
: undefined,
|
|
3016
3674
|
};
|
|
3017
3675
|
};
|
|
3018
3676
|
const deserializeAws_restJson1ExportRevisionsToS3ResponseDetails = (output, context) => {
|
|
3019
3677
|
return {
|
|
3020
|
-
DataSetId:
|
|
3678
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3021
3679
|
Encryption: output.Encryption !== undefined && output.Encryption !== null
|
|
3022
3680
|
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
3023
3681
|
: undefined,
|
|
@@ -3028,24 +3686,24 @@ const deserializeAws_restJson1ExportRevisionsToS3ResponseDetails = (output, cont
|
|
|
3028
3686
|
};
|
|
3029
3687
|
const deserializeAws_restJson1ExportServerSideEncryption = (output, context) => {
|
|
3030
3688
|
return {
|
|
3031
|
-
KmsKeyArn:
|
|
3032
|
-
Type:
|
|
3689
|
+
KmsKeyArn: smithy_client_1.expectString(output.KmsKeyArn),
|
|
3690
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
3033
3691
|
};
|
|
3034
3692
|
};
|
|
3035
3693
|
const deserializeAws_restJson1ImportAssetFromSignedUrlJobErrorDetails = (output, context) => {
|
|
3036
3694
|
return {
|
|
3037
|
-
AssetName:
|
|
3695
|
+
AssetName: smithy_client_1.expectString(output.AssetName),
|
|
3038
3696
|
};
|
|
3039
3697
|
};
|
|
3040
3698
|
const deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails = (output, context) => {
|
|
3041
3699
|
return {
|
|
3042
|
-
AssetName:
|
|
3043
|
-
DataSetId:
|
|
3044
|
-
Md5Hash:
|
|
3045
|
-
RevisionId:
|
|
3046
|
-
SignedUrl:
|
|
3700
|
+
AssetName: smithy_client_1.expectString(output.AssetName),
|
|
3701
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3702
|
+
Md5Hash: smithy_client_1.expectString(output.Md5Hash),
|
|
3703
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
3704
|
+
SignedUrl: smithy_client_1.expectString(output.SignedUrl),
|
|
3047
3705
|
SignedUrlExpiresAt: output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
|
|
3048
|
-
?
|
|
3706
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SignedUrlExpiresAt))
|
|
3049
3707
|
: undefined,
|
|
3050
3708
|
};
|
|
3051
3709
|
};
|
|
@@ -3054,15 +3712,15 @@ const deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = (output, conte
|
|
|
3054
3712
|
AssetSources: output.AssetSources !== undefined && output.AssetSources !== null
|
|
3055
3713
|
? deserializeAws_restJson1ListOfAssetSourceEntry(output.AssetSources, context)
|
|
3056
3714
|
: undefined,
|
|
3057
|
-
DataSetId:
|
|
3058
|
-
RevisionId:
|
|
3715
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3716
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
3059
3717
|
};
|
|
3060
3718
|
};
|
|
3061
3719
|
const deserializeAws_restJson1JobEntry = (output, context) => {
|
|
3062
3720
|
return {
|
|
3063
|
-
Arn:
|
|
3721
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
3064
3722
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3065
|
-
?
|
|
3723
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
|
|
3066
3724
|
: undefined,
|
|
3067
3725
|
Details: output.Details !== undefined && output.Details !== null
|
|
3068
3726
|
? deserializeAws_restJson1ResponseDetails(output.Details, context)
|
|
@@ -3070,25 +3728,25 @@ const deserializeAws_restJson1JobEntry = (output, context) => {
|
|
|
3070
3728
|
Errors: output.Errors !== undefined && output.Errors !== null
|
|
3071
3729
|
? deserializeAws_restJson1ListOfJobError(output.Errors, context)
|
|
3072
3730
|
: undefined,
|
|
3073
|
-
Id:
|
|
3074
|
-
State:
|
|
3075
|
-
Type:
|
|
3731
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
3732
|
+
State: smithy_client_1.expectString(output.State),
|
|
3733
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
3076
3734
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
3077
|
-
?
|
|
3735
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
|
|
3078
3736
|
: undefined,
|
|
3079
3737
|
};
|
|
3080
3738
|
};
|
|
3081
3739
|
const deserializeAws_restJson1JobError = (output, context) => {
|
|
3082
3740
|
return {
|
|
3083
|
-
Code:
|
|
3741
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
3084
3742
|
Details: output.Details !== undefined && output.Details !== null
|
|
3085
3743
|
? deserializeAws_restJson1Details(output.Details, context)
|
|
3086
3744
|
: undefined,
|
|
3087
|
-
LimitName:
|
|
3088
|
-
LimitValue:
|
|
3089
|
-
Message:
|
|
3090
|
-
ResourceId:
|
|
3091
|
-
ResourceType:
|
|
3745
|
+
LimitName: smithy_client_1.expectString(output.LimitName),
|
|
3746
|
+
LimitValue: smithy_client_1.limitedParseDouble(output.LimitValue),
|
|
3747
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
3748
|
+
ResourceId: smithy_client_1.expectString(output.ResourceId),
|
|
3749
|
+
ResourceType: smithy_client_1.expectString(output.ResourceType),
|
|
3092
3750
|
};
|
|
3093
3751
|
};
|
|
3094
3752
|
const deserializeAws_restJson1ListOfAssetDestinationEntry = (output, context) => {
|
|
@@ -3131,6 +3789,16 @@ const deserializeAws_restJson1ListOfDataSetEntry = (output, context) => {
|
|
|
3131
3789
|
return deserializeAws_restJson1DataSetEntry(entry, context);
|
|
3132
3790
|
});
|
|
3133
3791
|
};
|
|
3792
|
+
const deserializeAws_restJson1ListOfEventActionEntry = (output, context) => {
|
|
3793
|
+
return (output || [])
|
|
3794
|
+
.filter((e) => e != null)
|
|
3795
|
+
.map((entry) => {
|
|
3796
|
+
if (entry === null) {
|
|
3797
|
+
return null;
|
|
3798
|
+
}
|
|
3799
|
+
return deserializeAws_restJson1EventActionEntry(entry, context);
|
|
3800
|
+
});
|
|
3801
|
+
};
|
|
3134
3802
|
const deserializeAws_restJson1ListOfJobEntry = (output, context) => {
|
|
3135
3803
|
return (output || [])
|
|
3136
3804
|
.filter((e) => e != null)
|
|
@@ -3178,13 +3846,13 @@ const deserializeAws_restJson1MapOf__string = (output, context) => {
|
|
|
3178
3846
|
}
|
|
3179
3847
|
return {
|
|
3180
3848
|
...acc,
|
|
3181
|
-
[key]:
|
|
3849
|
+
[key]: smithy_client_1.expectString(value),
|
|
3182
3850
|
};
|
|
3183
3851
|
}, {});
|
|
3184
3852
|
};
|
|
3185
3853
|
const deserializeAws_restJson1OriginDetails = (output, context) => {
|
|
3186
3854
|
return {
|
|
3187
|
-
ProductId:
|
|
3855
|
+
ProductId: smithy_client_1.expectString(output.ProductId),
|
|
3188
3856
|
};
|
|
3189
3857
|
};
|
|
3190
3858
|
const deserializeAws_restJson1ResponseDetails = (output, context) => {
|
|
@@ -3208,30 +3876,35 @@ const deserializeAws_restJson1ResponseDetails = (output, context) => {
|
|
|
3208
3876
|
};
|
|
3209
3877
|
const deserializeAws_restJson1RevisionDestinationEntry = (output, context) => {
|
|
3210
3878
|
return {
|
|
3211
|
-
Bucket:
|
|
3212
|
-
KeyPattern:
|
|
3213
|
-
RevisionId:
|
|
3879
|
+
Bucket: smithy_client_1.expectString(output.Bucket),
|
|
3880
|
+
KeyPattern: smithy_client_1.expectString(output.KeyPattern),
|
|
3881
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
3214
3882
|
};
|
|
3215
3883
|
};
|
|
3216
3884
|
const deserializeAws_restJson1RevisionEntry = (output, context) => {
|
|
3217
3885
|
return {
|
|
3218
|
-
Arn:
|
|
3219
|
-
Comment:
|
|
3886
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
3887
|
+
Comment: smithy_client_1.expectString(output.Comment),
|
|
3220
3888
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3221
|
-
?
|
|
3889
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
|
|
3222
3890
|
: undefined,
|
|
3223
|
-
DataSetId:
|
|
3224
|
-
Finalized:
|
|
3225
|
-
Id:
|
|
3226
|
-
SourceId:
|
|
3891
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3892
|
+
Finalized: smithy_client_1.expectBoolean(output.Finalized),
|
|
3893
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
3894
|
+
SourceId: smithy_client_1.expectString(output.SourceId),
|
|
3227
3895
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
3228
|
-
?
|
|
3896
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
|
|
3229
3897
|
: undefined,
|
|
3230
3898
|
};
|
|
3231
3899
|
};
|
|
3900
|
+
const deserializeAws_restJson1RevisionPublished = (output, context) => {
|
|
3901
|
+
return {
|
|
3902
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3903
|
+
};
|
|
3904
|
+
};
|
|
3232
3905
|
const deserializeAws_restJson1S3SnapshotAsset = (output, context) => {
|
|
3233
3906
|
return {
|
|
3234
|
-
Size:
|
|
3907
|
+
Size: smithy_client_1.limitedParseDouble(output.Size),
|
|
3235
3908
|
};
|
|
3236
3909
|
};
|
|
3237
3910
|
const deserializeMetadata = (output) => {
|