@aws-sdk/client-dataexchange 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/DataExchange.js +76 -2
- package/{dist/cjs → dist-cjs}/DataExchangeClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CancelJobCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateDataSetCommand.js +2 -3
- package/dist-cjs/commands/CreateEventActionCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/CreateJobCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateRevisionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteAssetCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteDataSetCommand.js +2 -3
- package/dist-cjs/commands/DeleteEventActionCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteRevisionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetAssetCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetDataSetCommand.js +2 -3
- package/dist-cjs/commands/GetEventActionCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/GetJobCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetRevisionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListDataSetRevisionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListDataSetsCommand.js +2 -3
- package/dist-cjs/commands/ListEventActionsCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/ListJobsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListRevisionAssetsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartJobCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateAssetCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateDataSetCommand.js +2 -3
- package/dist-cjs/commands/UpdateEventActionCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateRevisionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +6 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +156 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListDataSetRevisionsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListDataSetsPaginator.js +1 -2
- package/dist-cjs/pagination/ListEventActionsPaginator.js +45 -0
- package/{dist/cjs → dist-cjs}/pagination/ListJobsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListRevisionAssetsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +700 -28
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/DataExchange.js +77 -6
- package/{dist/es → dist-es}/DataExchangeClient.js +2 -11
- package/{dist/es → dist-es}/commands/CancelJobCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateDataSetCommand.js +4 -30
- package/dist-es/commands/CreateEventActionCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CreateJobCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateRevisionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteAssetCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteDataSetCommand.js +4 -30
- package/dist-es/commands/DeleteEventActionCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DeleteRevisionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetAssetCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetDataSetCommand.js +4 -30
- package/dist-es/commands/GetEventActionCommand.js +39 -0
- package/{dist/es → dist-es}/commands/GetJobCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetRevisionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListDataSetRevisionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListDataSetsCommand.js +4 -30
- package/dist-es/commands/ListEventActionsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/ListJobsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListRevisionAssetsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/StartJobCommand.js +4 -30
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateAssetCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateDataSetCommand.js +4 -30
- package/dist-es/commands/UpdateEventActionCommand.js +39 -0
- package/{dist/es → dist-es}/commands/UpdateRevisionCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/es → dist-es}/index.js +6 -1
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +79 -223
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListDataSetRevisionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListDataSetsPaginator.js +17 -30
- package/dist-es/pagination/ListEventActionsPaginator.js +74 -0
- package/{dist/es → dist-es}/pagination/ListJobsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListRevisionAssetsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1315 -577
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- 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/{models/index.ts → 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 → dist-types}/runtimeConfig.native.d.ts +1 -0
- 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 +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/DataExchange.ts +0 -708
- package/DataExchangeClient.ts +0 -307
- package/commands/CancelJobCommand.ts +0 -94
- package/commands/CreateDataSetCommand.ts +0 -94
- package/commands/CreateJobCommand.ts +0 -94
- package/commands/CreateRevisionCommand.ts +0 -94
- package/commands/DeleteAssetCommand.ts +0 -94
- package/commands/DeleteDataSetCommand.ts +0 -94
- package/commands/DeleteRevisionCommand.ts +0 -94
- package/commands/GetAssetCommand.ts +0 -94
- package/commands/GetDataSetCommand.ts +0 -94
- package/commands/GetJobCommand.ts +0 -87
- package/commands/GetRevisionCommand.ts +0 -94
- package/commands/ListDataSetRevisionsCommand.ts +0 -94
- package/commands/ListDataSetsCommand.ts +0 -94
- package/commands/ListJobsCommand.ts +0 -94
- package/commands/ListRevisionAssetsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/StartJobCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateAssetCommand.ts +0 -94
- package/commands/UpdateDataSetCommand.ts +0 -94
- package/commands/UpdateRevisionCommand.ts +0 -94
- package/dist/cjs/DataExchange.js.map +0 -1
- package/dist/cjs/DataExchangeClient.js.map +0 -1
- package/dist/cjs/commands/CancelJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAssetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/GetAssetCommand.js.map +0 -1
- package/dist/cjs/commands/GetDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/GetJobCommand.js.map +0 -1
- package/dist/cjs/commands/GetRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/ListDataSetRevisionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDataSetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListJobsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRevisionAssetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartJobCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateAssetCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDataSetCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateRevisionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/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/Interfaces.js.map +0 -1
- 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 +0 -2
- 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/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- 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
- package/endpoints.ts +0 -57
- package/index.ts +0 -30
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2351
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListDataSetRevisionsPaginator.ts +0 -58
- package/pagination/ListDataSetsPaginator.ts +0 -58
- package/pagination/ListJobsPaginator.ts +0 -54
- package/pagination/ListRevisionAssetsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -3750
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -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) => {
|
|
@@ -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 &&
|
|
@@ -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 = {};
|
|
@@ -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 = {};
|
|
@@ -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() }),
|
|
@@ -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 = {
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -1513,40 +1812,132 @@ const deserializeAws_restJson1GetDataSetCommand = async (output, context) => {
|
|
|
1513
1812
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1514
1813
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1515
1814
|
}
|
|
1516
|
-
if (data.AssetType !== undefined && data.AssetType !== null) {
|
|
1517
|
-
contents.AssetType = smithy_client_1.expectString(data.AssetType);
|
|
1518
|
-
}
|
|
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);
|
|
1823
|
+
}
|
|
1824
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
1825
|
+
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1826
|
+
}
|
|
1827
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
1828
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
1829
|
+
}
|
|
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);
|
|
1835
|
+
}
|
|
1836
|
+
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
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);
|
|
1841
|
+
}
|
|
1842
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1843
|
+
contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
|
|
1844
|
+
}
|
|
1845
|
+
return Promise.resolve(contents);
|
|
1846
|
+
};
|
|
1847
|
+
exports.deserializeAws_restJson1GetDataSetCommand = deserializeAws_restJson1GetDataSetCommand;
|
|
1848
|
+
const deserializeAws_restJson1GetDataSetCommandError = async (output, context) => {
|
|
1849
|
+
const parsedOutput = {
|
|
1850
|
+
...output,
|
|
1851
|
+
body: await parseBody(output.body, context),
|
|
1852
|
+
};
|
|
1853
|
+
let response;
|
|
1854
|
+
let errorCode = "UnknownError";
|
|
1855
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1856
|
+
switch (errorCode) {
|
|
1857
|
+
case "InternalServerException":
|
|
1858
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1859
|
+
response = {
|
|
1860
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1861
|
+
name: errorCode,
|
|
1862
|
+
$metadata: deserializeMetadata(output),
|
|
1863
|
+
};
|
|
1864
|
+
break;
|
|
1865
|
+
case "ResourceNotFoundException":
|
|
1866
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1867
|
+
response = {
|
|
1868
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1869
|
+
name: errorCode,
|
|
1870
|
+
$metadata: deserializeMetadata(output),
|
|
1871
|
+
};
|
|
1872
|
+
break;
|
|
1873
|
+
case "ThrottlingException":
|
|
1874
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1875
|
+
response = {
|
|
1876
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1877
|
+
name: errorCode,
|
|
1878
|
+
$metadata: deserializeMetadata(output),
|
|
1879
|
+
};
|
|
1880
|
+
break;
|
|
1881
|
+
case "ValidationException":
|
|
1882
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1883
|
+
response = {
|
|
1884
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1885
|
+
name: errorCode,
|
|
1886
|
+
$metadata: deserializeMetadata(output),
|
|
1887
|
+
};
|
|
1888
|
+
break;
|
|
1889
|
+
default:
|
|
1890
|
+
const parsedBody = parsedOutput.body;
|
|
1891
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1892
|
+
response = {
|
|
1893
|
+
...parsedBody,
|
|
1894
|
+
name: `${errorCode}`,
|
|
1895
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1896
|
+
$fault: "client",
|
|
1897
|
+
$metadata: deserializeMetadata(output),
|
|
1898
|
+
};
|
|
1899
|
+
}
|
|
1900
|
+
const message = response.message || response.Message || errorCode;
|
|
1901
|
+
response.message = message;
|
|
1902
|
+
delete response.Message;
|
|
1903
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1904
|
+
};
|
|
1905
|
+
const deserializeAws_restJson1GetEventActionCommand = async (output, context) => {
|
|
1906
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1907
|
+
return deserializeAws_restJson1GetEventActionCommandError(output, context);
|
|
1908
|
+
}
|
|
1909
|
+
const contents = {
|
|
1910
|
+
$metadata: deserializeMetadata(output),
|
|
1911
|
+
Action: undefined,
|
|
1912
|
+
Arn: undefined,
|
|
1913
|
+
CreatedAt: undefined,
|
|
1914
|
+
Event: undefined,
|
|
1915
|
+
Id: undefined,
|
|
1916
|
+
UpdatedAt: undefined,
|
|
1917
|
+
};
|
|
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);
|
|
1921
|
+
}
|
|
1922
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1923
|
+
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1924
|
+
}
|
|
1519
1925
|
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
1520
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
1932
|
contents.Id = smithy_client_1.expectString(data.Id);
|
|
1527
1933
|
}
|
|
1528
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
1529
|
-
contents.Name = smithy_client_1.expectString(data.Name);
|
|
1530
|
-
}
|
|
1531
|
-
if (data.Origin !== undefined && data.Origin !== null) {
|
|
1532
|
-
contents.Origin = 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 = smithy_client_1.expectString(data.SourceId);
|
|
1539
|
-
}
|
|
1540
|
-
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1541
|
-
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1542
|
-
}
|
|
1543
1934
|
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
1544
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),
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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
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,6 +3526,18 @@ 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
3543
|
AssetId: smithy_client_1.expectString(output.AssetId),
|
|
@@ -2961,6 +3578,22 @@ const deserializeAws_restJson1AssetSourceEntry = (output, context) => {
|
|
|
2961
3578
|
Key: smithy_client_1.expectString(output.Key),
|
|
2962
3579
|
};
|
|
2963
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,
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
2964
3597
|
const deserializeAws_restJson1DataSetEntry = (output, context) => {
|
|
2965
3598
|
return {
|
|
2966
3599
|
Arn: smithy_client_1.expectString(output.Arn),
|
|
@@ -2992,6 +3625,31 @@ 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
|
|
@@ -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)
|
|
@@ -3229,6 +3897,11 @@ const deserializeAws_restJson1RevisionEntry = (output, context) => {
|
|
|
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
3907
|
Size: smithy_client_1.limitedParseDouble(output.Size),
|
|
@@ -3290,4 +3963,3 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3290
3963
|
}
|
|
3291
3964
|
return "";
|
|
3292
3965
|
};
|
|
3293
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|