@aws-sdk/client-application-discovery-service 3.34.0 → 3.37.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 +47 -0
- package/{dist/cjs → dist-cjs}/ApplicationDiscoveryService.js +0 -130
- package/dist-cjs/ApplicationDiscoveryServiceClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/AssociateConfigurationItemsToApplicationCommand.js +2 -27
- package/dist-cjs/commands/BatchDeleteImportDataCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/CreateApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateTagsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DeleteApplicationsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DeleteTagsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DescribeAgentsCommand.js +2 -29
- package/dist-cjs/commands/DescribeConfigurationsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeContinuousExportsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DescribeExportConfigurationsCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/DescribeExportTasksCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DescribeImportTasksCommand.js +2 -28
- package/dist-cjs/commands/DescribeTagsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/DisassociateConfigurationItemsFromApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ExportConfigurationsCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/GetDiscoverySummaryCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/ListConfigurationsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/ListServerNeighborsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/StartContinuousExportCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/StartDataCollectionByAgentIdsCommand.js +2 -27
- package/dist-cjs/commands/StartExportTaskCommand.js +36 -0
- package/dist-cjs/commands/StartImportTaskCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/StopContinuousExportCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/StopDataCollectionByAgentIdsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -226
- package/{dist/cjs → dist-cjs}/pagination/DescribeContinuousExportsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/DescribeImportTasksPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/ApplicationDiscoveryService.js +0 -1
- package/{dist/es → dist-es}/ApplicationDiscoveryServiceClient.js +1 -2
- package/{dist/es → dist-es}/commands/AssociateConfigurationItemsToApplicationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchDeleteImportDataCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateApplicationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateTagsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteApplicationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteTagsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeAgentsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeConfigurationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeContinuousExportsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeExportConfigurationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeExportTasksCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeImportTasksCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeTagsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DisassociateConfigurationItemsFromApplicationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ExportConfigurationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetDiscoverySummaryCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListConfigurationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListServerNeighborsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartContinuousExportCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartDataCollectionByAgentIdsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartExportTaskCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartImportTaskCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StopContinuousExportCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StopDataCollectionByAgentIdsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateApplicationCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/{dist/es → dist-es}/pagination/DescribeContinuousExportsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/DescribeImportTasksPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/ApplicationDiscoveryService.d.ts +1 -1
- package/{dist/types → dist-types}/ApplicationDiscoveryServiceClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AssociateConfigurationItemsToApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchDeleteImportDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteApplicationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAgentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeConfigurationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeContinuousExportsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeExportConfigurationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeExportTasksCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeImportTasksCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisassociateConfigurationItemsFromApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ExportConfigurationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetDiscoverySummaryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListConfigurationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListServerNeighborsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartContinuousExportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartDataCollectionByAgentIdsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartExportTaskCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartImportTaskCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopContinuousExportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopDataCollectionByAgentIdsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeContinuousExportsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeImportTasksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/ApplicationDiscoveryService.d.ts +130 -0
- package/dist-types/ts3.4/ApplicationDiscoveryServiceClient.d.ts +92 -0
- package/{dist/types → dist-types}/ts3.4/commands/AssociateConfigurationItemsToApplicationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/BatchDeleteImportDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAgentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeContinuousExportsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExportConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExportTasksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeImportTasksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateConfigurationItemsFromApplicationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ExportConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDiscoverySummaryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListServerNeighborsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartContinuousExportCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/StartDataCollectionByAgentIdsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/StartExportTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartImportTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopContinuousExportCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/StopDataCollectionByAgentIdsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +932 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeContinuousExportsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeImportTasksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/ApplicationDiscoveryService.ts +0 -1153
- package/ApplicationDiscoveryServiceClient.ts +0 -482
- package/commands/AssociateConfigurationItemsToApplicationCommand.ts +0 -113
- package/commands/BatchDeleteImportDataCommand.ts +0 -105
- package/commands/CreateApplicationCommand.ts +0 -98
- package/commands/CreateTagsCommand.ts +0 -99
- package/commands/DeleteApplicationsCommand.ts +0 -99
- package/commands/DeleteTagsCommand.ts +0 -99
- package/commands/DescribeAgentsCommand.ts +0 -100
- package/commands/DescribeConfigurationsCommand.ts +0 -123
- package/commands/DescribeContinuousExportsCommand.ts +0 -103
- package/commands/DescribeExportConfigurationsCommand.ts +0 -106
- package/commands/DescribeExportTasksCommand.ts +0 -99
- package/commands/DescribeImportTasksCommand.ts +0 -99
- package/commands/DescribeTagsCommand.ts +0 -113
- package/commands/DisassociateConfigurationItemsFromApplicationCommand.ts +0 -113
- package/commands/ExportConfigurationsCommand.ts +0 -105
- package/commands/GetDiscoverySummaryCommand.ts +0 -100
- package/commands/ListConfigurationsCommand.ts +0 -100
- package/commands/ListServerNeighborsCommand.ts +0 -99
- package/commands/StartContinuousExportCommand.ts +0 -98
- package/commands/StartDataCollectionByAgentIdsCommand.ts +0 -103
- package/commands/StartExportTaskCommand.ts +0 -106
- package/commands/StartImportTaskCommand.ts +0 -133
- package/commands/StopContinuousExportCommand.ts +0 -98
- package/commands/StopDataCollectionByAgentIdsCommand.ts +0 -103
- package/commands/UpdateApplicationCommand.ts +0 -98
- package/dist/cjs/ApplicationDiscoveryService.js.map +0 -1
- package/dist/cjs/ApplicationDiscoveryServiceClient.js +0 -170
- package/dist/cjs/ApplicationDiscoveryServiceClient.js.map +0 -1
- package/dist/cjs/commands/AssociateConfigurationItemsToApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/BatchDeleteImportDataCommand.js +0 -68
- package/dist/cjs/commands/BatchDeleteImportDataCommand.js.map +0 -1
- package/dist/cjs/commands/CreateApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/CreateTagsCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteApplicationsCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteTagsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAgentsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeConfigurationsCommand.js +0 -86
- package/dist/cjs/commands/DescribeConfigurationsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeContinuousExportsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeExportConfigurationsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeExportTasksCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeImportTasksCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeTagsCommand.js +0 -76
- package/dist/cjs/commands/DescribeTagsCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateConfigurationItemsFromApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/ExportConfigurationsCommand.js.map +0 -1
- package/dist/cjs/commands/GetDiscoverySummaryCommand.js.map +0 -1
- package/dist/cjs/commands/ListConfigurationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListServerNeighborsCommand.js.map +0 -1
- package/dist/cjs/commands/StartContinuousExportCommand.js.map +0 -1
- package/dist/cjs/commands/StartDataCollectionByAgentIdsCommand.js.map +0 -1
- package/dist/cjs/commands/StartExportTaskCommand.js +0 -69
- package/dist/cjs/commands/StartExportTaskCommand.js.map +0 -1
- package/dist/cjs/commands/StartImportTaskCommand.js +0 -96
- package/dist/cjs/commands/StartImportTaskCommand.js.map +0 -1
- package/dist/cjs/commands/StopContinuousExportCommand.js.map +0 -1
- package/dist/cjs/commands/StopDataCollectionByAgentIdsCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateApplicationCommand.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 -93
- package/dist/cjs/pagination/DescribeContinuousExportsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeImportTasksPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.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/ApplicationDiscoveryService.js.map +0 -1
- package/dist/es/ApplicationDiscoveryServiceClient.js.map +0 -1
- package/dist/es/commands/AssociateConfigurationItemsToApplicationCommand.js.map +0 -1
- package/dist/es/commands/BatchDeleteImportDataCommand.js.map +0 -1
- package/dist/es/commands/CreateApplicationCommand.js.map +0 -1
- package/dist/es/commands/CreateTagsCommand.js.map +0 -1
- package/dist/es/commands/DeleteApplicationsCommand.js.map +0 -1
- package/dist/es/commands/DeleteTagsCommand.js.map +0 -1
- package/dist/es/commands/DescribeAgentsCommand.js.map +0 -1
- package/dist/es/commands/DescribeConfigurationsCommand.js.map +0 -1
- package/dist/es/commands/DescribeContinuousExportsCommand.js.map +0 -1
- package/dist/es/commands/DescribeExportConfigurationsCommand.js.map +0 -1
- package/dist/es/commands/DescribeExportTasksCommand.js.map +0 -1
- package/dist/es/commands/DescribeImportTasksCommand.js.map +0 -1
- package/dist/es/commands/DescribeTagsCommand.js.map +0 -1
- package/dist/es/commands/DisassociateConfigurationItemsFromApplicationCommand.js.map +0 -1
- package/dist/es/commands/ExportConfigurationsCommand.js.map +0 -1
- package/dist/es/commands/GetDiscoverySummaryCommand.js.map +0 -1
- package/dist/es/commands/ListConfigurationsCommand.js.map +0 -1
- package/dist/es/commands/ListServerNeighborsCommand.js.map +0 -1
- package/dist/es/commands/StartContinuousExportCommand.js.map +0 -1
- package/dist/es/commands/StartDataCollectionByAgentIdsCommand.js.map +0 -1
- package/dist/es/commands/StartExportTaskCommand.js.map +0 -1
- package/dist/es/commands/StartImportTaskCommand.js.map +0 -1
- package/dist/es/commands/StopContinuousExportCommand.js.map +0 -1
- package/dist/es/commands/StopDataCollectionByAgentIdsCommand.js.map +0 -1
- package/dist/es/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -32
- 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 -93
- package/dist/es/pagination/DescribeContinuousExportsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeImportTasksPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.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/dist/types/ts3.4/ApplicationDiscoveryService.d.ts +0 -422
- package/dist/types/ts3.4/ApplicationDiscoveryServiceClient.d.ts +0 -283
- package/dist/types/ts3.4/commands/BatchDeleteImportDataCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/CreateApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/CreateTagsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteApplicationsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteTagsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DescribeAgentsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeConfigurationsCommand.d.ts +0 -60
- package/dist/types/ts3.4/commands/DescribeContinuousExportsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeExportConfigurationsCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/DescribeExportTasksCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DescribeImportTasksCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DescribeTagsCommand.d.ts +0 -50
- package/dist/types/ts3.4/commands/ExportConfigurationsCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/GetDiscoverySummaryCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListConfigurationsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListServerNeighborsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/StartContinuousExportCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/StartExportTaskCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/StartImportTaskCommand.d.ts +0 -70
- package/dist/types/ts3.4/commands/StopContinuousExportCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1777
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2192
- package/pagination/DescribeContinuousExportsPaginator.ts +0 -58
- package/pagination/DescribeImportTasksPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -4176
- 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 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/protocols/Aws_json1_1.ts
DELETED
|
@@ -1,4176 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AssociateConfigurationItemsToApplicationCommandInput,
|
|
3
|
-
AssociateConfigurationItemsToApplicationCommandOutput,
|
|
4
|
-
} from "../commands/AssociateConfigurationItemsToApplicationCommand";
|
|
5
|
-
import {
|
|
6
|
-
BatchDeleteImportDataCommandInput,
|
|
7
|
-
BatchDeleteImportDataCommandOutput,
|
|
8
|
-
} from "../commands/BatchDeleteImportDataCommand";
|
|
9
|
-
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "../commands/CreateApplicationCommand";
|
|
10
|
-
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "../commands/CreateTagsCommand";
|
|
11
|
-
import { DeleteApplicationsCommandInput, DeleteApplicationsCommandOutput } from "../commands/DeleteApplicationsCommand";
|
|
12
|
-
import { DeleteTagsCommandInput, DeleteTagsCommandOutput } from "../commands/DeleteTagsCommand";
|
|
13
|
-
import { DescribeAgentsCommandInput, DescribeAgentsCommandOutput } from "../commands/DescribeAgentsCommand";
|
|
14
|
-
import {
|
|
15
|
-
DescribeConfigurationsCommandInput,
|
|
16
|
-
DescribeConfigurationsCommandOutput,
|
|
17
|
-
} from "../commands/DescribeConfigurationsCommand";
|
|
18
|
-
import {
|
|
19
|
-
DescribeContinuousExportsCommandInput,
|
|
20
|
-
DescribeContinuousExportsCommandOutput,
|
|
21
|
-
} from "../commands/DescribeContinuousExportsCommand";
|
|
22
|
-
import {
|
|
23
|
-
DescribeExportConfigurationsCommandInput,
|
|
24
|
-
DescribeExportConfigurationsCommandOutput,
|
|
25
|
-
} from "../commands/DescribeExportConfigurationsCommand";
|
|
26
|
-
import {
|
|
27
|
-
DescribeExportTasksCommandInput,
|
|
28
|
-
DescribeExportTasksCommandOutput,
|
|
29
|
-
} from "../commands/DescribeExportTasksCommand";
|
|
30
|
-
import {
|
|
31
|
-
DescribeImportTasksCommandInput,
|
|
32
|
-
DescribeImportTasksCommandOutput,
|
|
33
|
-
} from "../commands/DescribeImportTasksCommand";
|
|
34
|
-
import { DescribeTagsCommandInput, DescribeTagsCommandOutput } from "../commands/DescribeTagsCommand";
|
|
35
|
-
import {
|
|
36
|
-
DisassociateConfigurationItemsFromApplicationCommandInput,
|
|
37
|
-
DisassociateConfigurationItemsFromApplicationCommandOutput,
|
|
38
|
-
} from "../commands/DisassociateConfigurationItemsFromApplicationCommand";
|
|
39
|
-
import {
|
|
40
|
-
ExportConfigurationsCommandInput,
|
|
41
|
-
ExportConfigurationsCommandOutput,
|
|
42
|
-
} from "../commands/ExportConfigurationsCommand";
|
|
43
|
-
import {
|
|
44
|
-
GetDiscoverySummaryCommandInput,
|
|
45
|
-
GetDiscoverySummaryCommandOutput,
|
|
46
|
-
} from "../commands/GetDiscoverySummaryCommand";
|
|
47
|
-
import { ListConfigurationsCommandInput, ListConfigurationsCommandOutput } from "../commands/ListConfigurationsCommand";
|
|
48
|
-
import {
|
|
49
|
-
ListServerNeighborsCommandInput,
|
|
50
|
-
ListServerNeighborsCommandOutput,
|
|
51
|
-
} from "../commands/ListServerNeighborsCommand";
|
|
52
|
-
import {
|
|
53
|
-
StartContinuousExportCommandInput,
|
|
54
|
-
StartContinuousExportCommandOutput,
|
|
55
|
-
} from "../commands/StartContinuousExportCommand";
|
|
56
|
-
import {
|
|
57
|
-
StartDataCollectionByAgentIdsCommandInput,
|
|
58
|
-
StartDataCollectionByAgentIdsCommandOutput,
|
|
59
|
-
} from "../commands/StartDataCollectionByAgentIdsCommand";
|
|
60
|
-
import { StartExportTaskCommandInput, StartExportTaskCommandOutput } from "../commands/StartExportTaskCommand";
|
|
61
|
-
import { StartImportTaskCommandInput, StartImportTaskCommandOutput } from "../commands/StartImportTaskCommand";
|
|
62
|
-
import {
|
|
63
|
-
StopContinuousExportCommandInput,
|
|
64
|
-
StopContinuousExportCommandOutput,
|
|
65
|
-
} from "../commands/StopContinuousExportCommand";
|
|
66
|
-
import {
|
|
67
|
-
StopDataCollectionByAgentIdsCommandInput,
|
|
68
|
-
StopDataCollectionByAgentIdsCommandOutput,
|
|
69
|
-
} from "../commands/StopDataCollectionByAgentIdsCommand";
|
|
70
|
-
import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "../commands/UpdateApplicationCommand";
|
|
71
|
-
import {
|
|
72
|
-
AgentConfigurationStatus,
|
|
73
|
-
AgentInfo,
|
|
74
|
-
AgentNetworkInfo,
|
|
75
|
-
AssociateConfigurationItemsToApplicationRequest,
|
|
76
|
-
AssociateConfigurationItemsToApplicationResponse,
|
|
77
|
-
AuthorizationErrorException,
|
|
78
|
-
BatchDeleteImportDataError,
|
|
79
|
-
BatchDeleteImportDataRequest,
|
|
80
|
-
BatchDeleteImportDataResponse,
|
|
81
|
-
ConfigurationTag,
|
|
82
|
-
ConflictErrorException,
|
|
83
|
-
ContinuousExportDescription,
|
|
84
|
-
CreateApplicationRequest,
|
|
85
|
-
CreateApplicationResponse,
|
|
86
|
-
CreateTagsRequest,
|
|
87
|
-
CreateTagsResponse,
|
|
88
|
-
CustomerAgentInfo,
|
|
89
|
-
CustomerConnectorInfo,
|
|
90
|
-
DeleteApplicationsRequest,
|
|
91
|
-
DeleteApplicationsResponse,
|
|
92
|
-
DeleteTagsRequest,
|
|
93
|
-
DeleteTagsResponse,
|
|
94
|
-
DescribeAgentsRequest,
|
|
95
|
-
DescribeAgentsResponse,
|
|
96
|
-
DescribeConfigurationsRequest,
|
|
97
|
-
DescribeConfigurationsResponse,
|
|
98
|
-
DescribeContinuousExportsRequest,
|
|
99
|
-
DescribeContinuousExportsResponse,
|
|
100
|
-
DescribeExportConfigurationsRequest,
|
|
101
|
-
DescribeExportConfigurationsResponse,
|
|
102
|
-
DescribeExportTasksRequest,
|
|
103
|
-
DescribeExportTasksResponse,
|
|
104
|
-
DescribeImportTasksRequest,
|
|
105
|
-
DescribeImportTasksResponse,
|
|
106
|
-
DescribeTagsRequest,
|
|
107
|
-
DescribeTagsResponse,
|
|
108
|
-
DisassociateConfigurationItemsFromApplicationRequest,
|
|
109
|
-
DisassociateConfigurationItemsFromApplicationResponse,
|
|
110
|
-
ExportConfigurationsResponse,
|
|
111
|
-
ExportDataFormat,
|
|
112
|
-
ExportFilter,
|
|
113
|
-
ExportInfo,
|
|
114
|
-
Filter,
|
|
115
|
-
GetDiscoverySummaryRequest,
|
|
116
|
-
GetDiscoverySummaryResponse,
|
|
117
|
-
HomeRegionNotSetException,
|
|
118
|
-
ImportTask,
|
|
119
|
-
ImportTaskFilter,
|
|
120
|
-
InvalidParameterException,
|
|
121
|
-
InvalidParameterValueException,
|
|
122
|
-
ListConfigurationsRequest,
|
|
123
|
-
ListConfigurationsResponse,
|
|
124
|
-
ListServerNeighborsRequest,
|
|
125
|
-
ListServerNeighborsResponse,
|
|
126
|
-
NeighborConnectionDetail,
|
|
127
|
-
OperationNotPermittedException,
|
|
128
|
-
OrderByElement,
|
|
129
|
-
ResourceInUseException,
|
|
130
|
-
ResourceNotFoundException,
|
|
131
|
-
ServerInternalErrorException,
|
|
132
|
-
StartContinuousExportRequest,
|
|
133
|
-
StartContinuousExportResponse,
|
|
134
|
-
StartDataCollectionByAgentIdsRequest,
|
|
135
|
-
StartDataCollectionByAgentIdsResponse,
|
|
136
|
-
StartExportTaskRequest,
|
|
137
|
-
StartExportTaskResponse,
|
|
138
|
-
StartImportTaskRequest,
|
|
139
|
-
StartImportTaskResponse,
|
|
140
|
-
StopContinuousExportRequest,
|
|
141
|
-
StopContinuousExportResponse,
|
|
142
|
-
StopDataCollectionByAgentIdsRequest,
|
|
143
|
-
StopDataCollectionByAgentIdsResponse,
|
|
144
|
-
Tag,
|
|
145
|
-
TagFilter,
|
|
146
|
-
UpdateApplicationRequest,
|
|
147
|
-
UpdateApplicationResponse,
|
|
148
|
-
} from "../models/models_0";
|
|
149
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
150
|
-
import {
|
|
151
|
-
expectBoolean as __expectBoolean,
|
|
152
|
-
expectInt32 as __expectInt32,
|
|
153
|
-
expectLong as __expectLong,
|
|
154
|
-
expectNonNull as __expectNonNull,
|
|
155
|
-
expectNumber as __expectNumber,
|
|
156
|
-
expectString as __expectString,
|
|
157
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
158
|
-
} from "@aws-sdk/smithy-client";
|
|
159
|
-
import {
|
|
160
|
-
Endpoint as __Endpoint,
|
|
161
|
-
HeaderBag as __HeaderBag,
|
|
162
|
-
MetadataBearer as __MetadataBearer,
|
|
163
|
-
ResponseMetadata as __ResponseMetadata,
|
|
164
|
-
SerdeContext as __SerdeContext,
|
|
165
|
-
SmithyException as __SmithyException,
|
|
166
|
-
} from "@aws-sdk/types";
|
|
167
|
-
import { v4 as generateIdempotencyToken } from "uuid";
|
|
168
|
-
|
|
169
|
-
export const serializeAws_json1_1AssociateConfigurationItemsToApplicationCommand = async (
|
|
170
|
-
input: AssociateConfigurationItemsToApplicationCommandInput,
|
|
171
|
-
context: __SerdeContext
|
|
172
|
-
): Promise<__HttpRequest> => {
|
|
173
|
-
const headers: __HeaderBag = {
|
|
174
|
-
"content-type": "application/x-amz-json-1.1",
|
|
175
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.AssociateConfigurationItemsToApplication",
|
|
176
|
-
};
|
|
177
|
-
let body: any;
|
|
178
|
-
body = JSON.stringify(serializeAws_json1_1AssociateConfigurationItemsToApplicationRequest(input, context));
|
|
179
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
export const serializeAws_json1_1BatchDeleteImportDataCommand = async (
|
|
183
|
-
input: BatchDeleteImportDataCommandInput,
|
|
184
|
-
context: __SerdeContext
|
|
185
|
-
): Promise<__HttpRequest> => {
|
|
186
|
-
const headers: __HeaderBag = {
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.BatchDeleteImportData",
|
|
189
|
-
};
|
|
190
|
-
let body: any;
|
|
191
|
-
body = JSON.stringify(serializeAws_json1_1BatchDeleteImportDataRequest(input, context));
|
|
192
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
export const serializeAws_json1_1CreateApplicationCommand = async (
|
|
196
|
-
input: CreateApplicationCommandInput,
|
|
197
|
-
context: __SerdeContext
|
|
198
|
-
): Promise<__HttpRequest> => {
|
|
199
|
-
const headers: __HeaderBag = {
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateApplication",
|
|
202
|
-
};
|
|
203
|
-
let body: any;
|
|
204
|
-
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
205
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
export const serializeAws_json1_1CreateTagsCommand = async (
|
|
209
|
-
input: CreateTagsCommandInput,
|
|
210
|
-
context: __SerdeContext
|
|
211
|
-
): Promise<__HttpRequest> => {
|
|
212
|
-
const headers: __HeaderBag = {
|
|
213
|
-
"content-type": "application/x-amz-json-1.1",
|
|
214
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateTags",
|
|
215
|
-
};
|
|
216
|
-
let body: any;
|
|
217
|
-
body = JSON.stringify(serializeAws_json1_1CreateTagsRequest(input, context));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
export const serializeAws_json1_1DeleteApplicationsCommand = async (
|
|
222
|
-
input: DeleteApplicationsCommandInput,
|
|
223
|
-
context: __SerdeContext
|
|
224
|
-
): Promise<__HttpRequest> => {
|
|
225
|
-
const headers: __HeaderBag = {
|
|
226
|
-
"content-type": "application/x-amz-json-1.1",
|
|
227
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteApplications",
|
|
228
|
-
};
|
|
229
|
-
let body: any;
|
|
230
|
-
body = JSON.stringify(serializeAws_json1_1DeleteApplicationsRequest(input, context));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
export const serializeAws_json1_1DeleteTagsCommand = async (
|
|
235
|
-
input: DeleteTagsCommandInput,
|
|
236
|
-
context: __SerdeContext
|
|
237
|
-
): Promise<__HttpRequest> => {
|
|
238
|
-
const headers: __HeaderBag = {
|
|
239
|
-
"content-type": "application/x-amz-json-1.1",
|
|
240
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteTags",
|
|
241
|
-
};
|
|
242
|
-
let body: any;
|
|
243
|
-
body = JSON.stringify(serializeAws_json1_1DeleteTagsRequest(input, context));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
export const serializeAws_json1_1DescribeAgentsCommand = async (
|
|
248
|
-
input: DescribeAgentsCommandInput,
|
|
249
|
-
context: __SerdeContext
|
|
250
|
-
): Promise<__HttpRequest> => {
|
|
251
|
-
const headers: __HeaderBag = {
|
|
252
|
-
"content-type": "application/x-amz-json-1.1",
|
|
253
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeAgents",
|
|
254
|
-
};
|
|
255
|
-
let body: any;
|
|
256
|
-
body = JSON.stringify(serializeAws_json1_1DescribeAgentsRequest(input, context));
|
|
257
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
export const serializeAws_json1_1DescribeConfigurationsCommand = async (
|
|
261
|
-
input: DescribeConfigurationsCommandInput,
|
|
262
|
-
context: __SerdeContext
|
|
263
|
-
): Promise<__HttpRequest> => {
|
|
264
|
-
const headers: __HeaderBag = {
|
|
265
|
-
"content-type": "application/x-amz-json-1.1",
|
|
266
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeConfigurations",
|
|
267
|
-
};
|
|
268
|
-
let body: any;
|
|
269
|
-
body = JSON.stringify(serializeAws_json1_1DescribeConfigurationsRequest(input, context));
|
|
270
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
export const serializeAws_json1_1DescribeContinuousExportsCommand = async (
|
|
274
|
-
input: DescribeContinuousExportsCommandInput,
|
|
275
|
-
context: __SerdeContext
|
|
276
|
-
): Promise<__HttpRequest> => {
|
|
277
|
-
const headers: __HeaderBag = {
|
|
278
|
-
"content-type": "application/x-amz-json-1.1",
|
|
279
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeContinuousExports",
|
|
280
|
-
};
|
|
281
|
-
let body: any;
|
|
282
|
-
body = JSON.stringify(serializeAws_json1_1DescribeContinuousExportsRequest(input, context));
|
|
283
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
export const serializeAws_json1_1DescribeExportConfigurationsCommand = async (
|
|
287
|
-
input: DescribeExportConfigurationsCommandInput,
|
|
288
|
-
context: __SerdeContext
|
|
289
|
-
): Promise<__HttpRequest> => {
|
|
290
|
-
const headers: __HeaderBag = {
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportConfigurations",
|
|
293
|
-
};
|
|
294
|
-
let body: any;
|
|
295
|
-
body = JSON.stringify(serializeAws_json1_1DescribeExportConfigurationsRequest(input, context));
|
|
296
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
export const serializeAws_json1_1DescribeExportTasksCommand = async (
|
|
300
|
-
input: DescribeExportTasksCommandInput,
|
|
301
|
-
context: __SerdeContext
|
|
302
|
-
): Promise<__HttpRequest> => {
|
|
303
|
-
const headers: __HeaderBag = {
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportTasks",
|
|
306
|
-
};
|
|
307
|
-
let body: any;
|
|
308
|
-
body = JSON.stringify(serializeAws_json1_1DescribeExportTasksRequest(input, context));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
export const serializeAws_json1_1DescribeImportTasksCommand = async (
|
|
313
|
-
input: DescribeImportTasksCommandInput,
|
|
314
|
-
context: __SerdeContext
|
|
315
|
-
): Promise<__HttpRequest> => {
|
|
316
|
-
const headers: __HeaderBag = {
|
|
317
|
-
"content-type": "application/x-amz-json-1.1",
|
|
318
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeImportTasks",
|
|
319
|
-
};
|
|
320
|
-
let body: any;
|
|
321
|
-
body = JSON.stringify(serializeAws_json1_1DescribeImportTasksRequest(input, context));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
export const serializeAws_json1_1DescribeTagsCommand = async (
|
|
326
|
-
input: DescribeTagsCommandInput,
|
|
327
|
-
context: __SerdeContext
|
|
328
|
-
): Promise<__HttpRequest> => {
|
|
329
|
-
const headers: __HeaderBag = {
|
|
330
|
-
"content-type": "application/x-amz-json-1.1",
|
|
331
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeTags",
|
|
332
|
-
};
|
|
333
|
-
let body: any;
|
|
334
|
-
body = JSON.stringify(serializeAws_json1_1DescribeTagsRequest(input, context));
|
|
335
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
export const serializeAws_json1_1DisassociateConfigurationItemsFromApplicationCommand = async (
|
|
339
|
-
input: DisassociateConfigurationItemsFromApplicationCommandInput,
|
|
340
|
-
context: __SerdeContext
|
|
341
|
-
): Promise<__HttpRequest> => {
|
|
342
|
-
const headers: __HeaderBag = {
|
|
343
|
-
"content-type": "application/x-amz-json-1.1",
|
|
344
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DisassociateConfigurationItemsFromApplication",
|
|
345
|
-
};
|
|
346
|
-
let body: any;
|
|
347
|
-
body = JSON.stringify(serializeAws_json1_1DisassociateConfigurationItemsFromApplicationRequest(input, context));
|
|
348
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
export const serializeAws_json1_1ExportConfigurationsCommand = async (
|
|
352
|
-
input: ExportConfigurationsCommandInput,
|
|
353
|
-
context: __SerdeContext
|
|
354
|
-
): Promise<__HttpRequest> => {
|
|
355
|
-
const headers: __HeaderBag = {
|
|
356
|
-
"content-type": "application/x-amz-json-1.1",
|
|
357
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ExportConfigurations",
|
|
358
|
-
};
|
|
359
|
-
const body = "{}";
|
|
360
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
export const serializeAws_json1_1GetDiscoverySummaryCommand = async (
|
|
364
|
-
input: GetDiscoverySummaryCommandInput,
|
|
365
|
-
context: __SerdeContext
|
|
366
|
-
): Promise<__HttpRequest> => {
|
|
367
|
-
const headers: __HeaderBag = {
|
|
368
|
-
"content-type": "application/x-amz-json-1.1",
|
|
369
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.GetDiscoverySummary",
|
|
370
|
-
};
|
|
371
|
-
let body: any;
|
|
372
|
-
body = JSON.stringify(serializeAws_json1_1GetDiscoverySummaryRequest(input, context));
|
|
373
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
export const serializeAws_json1_1ListConfigurationsCommand = async (
|
|
377
|
-
input: ListConfigurationsCommandInput,
|
|
378
|
-
context: __SerdeContext
|
|
379
|
-
): Promise<__HttpRequest> => {
|
|
380
|
-
const headers: __HeaderBag = {
|
|
381
|
-
"content-type": "application/x-amz-json-1.1",
|
|
382
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListConfigurations",
|
|
383
|
-
};
|
|
384
|
-
let body: any;
|
|
385
|
-
body = JSON.stringify(serializeAws_json1_1ListConfigurationsRequest(input, context));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
export const serializeAws_json1_1ListServerNeighborsCommand = async (
|
|
390
|
-
input: ListServerNeighborsCommandInput,
|
|
391
|
-
context: __SerdeContext
|
|
392
|
-
): Promise<__HttpRequest> => {
|
|
393
|
-
const headers: __HeaderBag = {
|
|
394
|
-
"content-type": "application/x-amz-json-1.1",
|
|
395
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListServerNeighbors",
|
|
396
|
-
};
|
|
397
|
-
let body: any;
|
|
398
|
-
body = JSON.stringify(serializeAws_json1_1ListServerNeighborsRequest(input, context));
|
|
399
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
export const serializeAws_json1_1StartContinuousExportCommand = async (
|
|
403
|
-
input: StartContinuousExportCommandInput,
|
|
404
|
-
context: __SerdeContext
|
|
405
|
-
): Promise<__HttpRequest> => {
|
|
406
|
-
const headers: __HeaderBag = {
|
|
407
|
-
"content-type": "application/x-amz-json-1.1",
|
|
408
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartContinuousExport",
|
|
409
|
-
};
|
|
410
|
-
let body: any;
|
|
411
|
-
body = JSON.stringify(serializeAws_json1_1StartContinuousExportRequest(input, context));
|
|
412
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
export const serializeAws_json1_1StartDataCollectionByAgentIdsCommand = async (
|
|
416
|
-
input: StartDataCollectionByAgentIdsCommandInput,
|
|
417
|
-
context: __SerdeContext
|
|
418
|
-
): Promise<__HttpRequest> => {
|
|
419
|
-
const headers: __HeaderBag = {
|
|
420
|
-
"content-type": "application/x-amz-json-1.1",
|
|
421
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartDataCollectionByAgentIds",
|
|
422
|
-
};
|
|
423
|
-
let body: any;
|
|
424
|
-
body = JSON.stringify(serializeAws_json1_1StartDataCollectionByAgentIdsRequest(input, context));
|
|
425
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
export const serializeAws_json1_1StartExportTaskCommand = async (
|
|
429
|
-
input: StartExportTaskCommandInput,
|
|
430
|
-
context: __SerdeContext
|
|
431
|
-
): Promise<__HttpRequest> => {
|
|
432
|
-
const headers: __HeaderBag = {
|
|
433
|
-
"content-type": "application/x-amz-json-1.1",
|
|
434
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartExportTask",
|
|
435
|
-
};
|
|
436
|
-
let body: any;
|
|
437
|
-
body = JSON.stringify(serializeAws_json1_1StartExportTaskRequest(input, context));
|
|
438
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
export const serializeAws_json1_1StartImportTaskCommand = async (
|
|
442
|
-
input: StartImportTaskCommandInput,
|
|
443
|
-
context: __SerdeContext
|
|
444
|
-
): Promise<__HttpRequest> => {
|
|
445
|
-
const headers: __HeaderBag = {
|
|
446
|
-
"content-type": "application/x-amz-json-1.1",
|
|
447
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartImportTask",
|
|
448
|
-
};
|
|
449
|
-
let body: any;
|
|
450
|
-
body = JSON.stringify(serializeAws_json1_1StartImportTaskRequest(input, context));
|
|
451
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
export const serializeAws_json1_1StopContinuousExportCommand = async (
|
|
455
|
-
input: StopContinuousExportCommandInput,
|
|
456
|
-
context: __SerdeContext
|
|
457
|
-
): Promise<__HttpRequest> => {
|
|
458
|
-
const headers: __HeaderBag = {
|
|
459
|
-
"content-type": "application/x-amz-json-1.1",
|
|
460
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopContinuousExport",
|
|
461
|
-
};
|
|
462
|
-
let body: any;
|
|
463
|
-
body = JSON.stringify(serializeAws_json1_1StopContinuousExportRequest(input, context));
|
|
464
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
export const serializeAws_json1_1StopDataCollectionByAgentIdsCommand = async (
|
|
468
|
-
input: StopDataCollectionByAgentIdsCommandInput,
|
|
469
|
-
context: __SerdeContext
|
|
470
|
-
): Promise<__HttpRequest> => {
|
|
471
|
-
const headers: __HeaderBag = {
|
|
472
|
-
"content-type": "application/x-amz-json-1.1",
|
|
473
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopDataCollectionByAgentIds",
|
|
474
|
-
};
|
|
475
|
-
let body: any;
|
|
476
|
-
body = JSON.stringify(serializeAws_json1_1StopDataCollectionByAgentIdsRequest(input, context));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
export const serializeAws_json1_1UpdateApplicationCommand = async (
|
|
481
|
-
input: UpdateApplicationCommandInput,
|
|
482
|
-
context: __SerdeContext
|
|
483
|
-
): Promise<__HttpRequest> => {
|
|
484
|
-
const headers: __HeaderBag = {
|
|
485
|
-
"content-type": "application/x-amz-json-1.1",
|
|
486
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.UpdateApplication",
|
|
487
|
-
};
|
|
488
|
-
let body: any;
|
|
489
|
-
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
490
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
export const deserializeAws_json1_1AssociateConfigurationItemsToApplicationCommand = async (
|
|
494
|
-
output: __HttpResponse,
|
|
495
|
-
context: __SerdeContext
|
|
496
|
-
): Promise<AssociateConfigurationItemsToApplicationCommandOutput> => {
|
|
497
|
-
if (output.statusCode >= 300) {
|
|
498
|
-
return deserializeAws_json1_1AssociateConfigurationItemsToApplicationCommandError(output, context);
|
|
499
|
-
}
|
|
500
|
-
const data: any = await parseBody(output.body, context);
|
|
501
|
-
let contents: any = {};
|
|
502
|
-
contents = deserializeAws_json1_1AssociateConfigurationItemsToApplicationResponse(data, context);
|
|
503
|
-
const response: AssociateConfigurationItemsToApplicationCommandOutput = {
|
|
504
|
-
$metadata: deserializeMetadata(output),
|
|
505
|
-
...contents,
|
|
506
|
-
};
|
|
507
|
-
return Promise.resolve(response);
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
const deserializeAws_json1_1AssociateConfigurationItemsToApplicationCommandError = async (
|
|
511
|
-
output: __HttpResponse,
|
|
512
|
-
context: __SerdeContext
|
|
513
|
-
): Promise<AssociateConfigurationItemsToApplicationCommandOutput> => {
|
|
514
|
-
const parsedOutput: any = {
|
|
515
|
-
...output,
|
|
516
|
-
body: await parseBody(output.body, context),
|
|
517
|
-
};
|
|
518
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
519
|
-
let errorCode: string = "UnknownError";
|
|
520
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
-
switch (errorCode) {
|
|
522
|
-
case "AuthorizationErrorException":
|
|
523
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
524
|
-
response = {
|
|
525
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
526
|
-
name: errorCode,
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
};
|
|
529
|
-
break;
|
|
530
|
-
case "HomeRegionNotSetException":
|
|
531
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
532
|
-
response = {
|
|
533
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
534
|
-
name: errorCode,
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
};
|
|
537
|
-
break;
|
|
538
|
-
case "InvalidParameterException":
|
|
539
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
540
|
-
response = {
|
|
541
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
542
|
-
name: errorCode,
|
|
543
|
-
$metadata: deserializeMetadata(output),
|
|
544
|
-
};
|
|
545
|
-
break;
|
|
546
|
-
case "InvalidParameterValueException":
|
|
547
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
548
|
-
response = {
|
|
549
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
550
|
-
name: errorCode,
|
|
551
|
-
$metadata: deserializeMetadata(output),
|
|
552
|
-
};
|
|
553
|
-
break;
|
|
554
|
-
case "ServerInternalErrorException":
|
|
555
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
556
|
-
response = {
|
|
557
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
558
|
-
name: errorCode,
|
|
559
|
-
$metadata: deserializeMetadata(output),
|
|
560
|
-
};
|
|
561
|
-
break;
|
|
562
|
-
default:
|
|
563
|
-
const parsedBody = parsedOutput.body;
|
|
564
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
565
|
-
response = {
|
|
566
|
-
...parsedBody,
|
|
567
|
-
name: `${errorCode}`,
|
|
568
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
569
|
-
$fault: "client",
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
} as any;
|
|
572
|
-
}
|
|
573
|
-
const message = response.message || response.Message || errorCode;
|
|
574
|
-
response.message = message;
|
|
575
|
-
delete response.Message;
|
|
576
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
export const deserializeAws_json1_1BatchDeleteImportDataCommand = async (
|
|
580
|
-
output: __HttpResponse,
|
|
581
|
-
context: __SerdeContext
|
|
582
|
-
): Promise<BatchDeleteImportDataCommandOutput> => {
|
|
583
|
-
if (output.statusCode >= 300) {
|
|
584
|
-
return deserializeAws_json1_1BatchDeleteImportDataCommandError(output, context);
|
|
585
|
-
}
|
|
586
|
-
const data: any = await parseBody(output.body, context);
|
|
587
|
-
let contents: any = {};
|
|
588
|
-
contents = deserializeAws_json1_1BatchDeleteImportDataResponse(data, context);
|
|
589
|
-
const response: BatchDeleteImportDataCommandOutput = {
|
|
590
|
-
$metadata: deserializeMetadata(output),
|
|
591
|
-
...contents,
|
|
592
|
-
};
|
|
593
|
-
return Promise.resolve(response);
|
|
594
|
-
};
|
|
595
|
-
|
|
596
|
-
const deserializeAws_json1_1BatchDeleteImportDataCommandError = async (
|
|
597
|
-
output: __HttpResponse,
|
|
598
|
-
context: __SerdeContext
|
|
599
|
-
): Promise<BatchDeleteImportDataCommandOutput> => {
|
|
600
|
-
const parsedOutput: any = {
|
|
601
|
-
...output,
|
|
602
|
-
body: await parseBody(output.body, context),
|
|
603
|
-
};
|
|
604
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
605
|
-
let errorCode: string = "UnknownError";
|
|
606
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
|
-
switch (errorCode) {
|
|
608
|
-
case "AuthorizationErrorException":
|
|
609
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
610
|
-
response = {
|
|
611
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
612
|
-
name: errorCode,
|
|
613
|
-
$metadata: deserializeMetadata(output),
|
|
614
|
-
};
|
|
615
|
-
break;
|
|
616
|
-
case "HomeRegionNotSetException":
|
|
617
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
618
|
-
response = {
|
|
619
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
620
|
-
name: errorCode,
|
|
621
|
-
$metadata: deserializeMetadata(output),
|
|
622
|
-
};
|
|
623
|
-
break;
|
|
624
|
-
case "InvalidParameterException":
|
|
625
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
626
|
-
response = {
|
|
627
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
628
|
-
name: errorCode,
|
|
629
|
-
$metadata: deserializeMetadata(output),
|
|
630
|
-
};
|
|
631
|
-
break;
|
|
632
|
-
case "InvalidParameterValueException":
|
|
633
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
634
|
-
response = {
|
|
635
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
636
|
-
name: errorCode,
|
|
637
|
-
$metadata: deserializeMetadata(output),
|
|
638
|
-
};
|
|
639
|
-
break;
|
|
640
|
-
case "ServerInternalErrorException":
|
|
641
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
642
|
-
response = {
|
|
643
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
644
|
-
name: errorCode,
|
|
645
|
-
$metadata: deserializeMetadata(output),
|
|
646
|
-
};
|
|
647
|
-
break;
|
|
648
|
-
default:
|
|
649
|
-
const parsedBody = parsedOutput.body;
|
|
650
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
651
|
-
response = {
|
|
652
|
-
...parsedBody,
|
|
653
|
-
name: `${errorCode}`,
|
|
654
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
655
|
-
$fault: "client",
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
} as any;
|
|
658
|
-
}
|
|
659
|
-
const message = response.message || response.Message || errorCode;
|
|
660
|
-
response.message = message;
|
|
661
|
-
delete response.Message;
|
|
662
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
export const deserializeAws_json1_1CreateApplicationCommand = async (
|
|
666
|
-
output: __HttpResponse,
|
|
667
|
-
context: __SerdeContext
|
|
668
|
-
): Promise<CreateApplicationCommandOutput> => {
|
|
669
|
-
if (output.statusCode >= 300) {
|
|
670
|
-
return deserializeAws_json1_1CreateApplicationCommandError(output, context);
|
|
671
|
-
}
|
|
672
|
-
const data: any = await parseBody(output.body, context);
|
|
673
|
-
let contents: any = {};
|
|
674
|
-
contents = deserializeAws_json1_1CreateApplicationResponse(data, context);
|
|
675
|
-
const response: CreateApplicationCommandOutput = {
|
|
676
|
-
$metadata: deserializeMetadata(output),
|
|
677
|
-
...contents,
|
|
678
|
-
};
|
|
679
|
-
return Promise.resolve(response);
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
const deserializeAws_json1_1CreateApplicationCommandError = async (
|
|
683
|
-
output: __HttpResponse,
|
|
684
|
-
context: __SerdeContext
|
|
685
|
-
): Promise<CreateApplicationCommandOutput> => {
|
|
686
|
-
const parsedOutput: any = {
|
|
687
|
-
...output,
|
|
688
|
-
body: await parseBody(output.body, context),
|
|
689
|
-
};
|
|
690
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
691
|
-
let errorCode: string = "UnknownError";
|
|
692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
|
-
switch (errorCode) {
|
|
694
|
-
case "AuthorizationErrorException":
|
|
695
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
696
|
-
response = {
|
|
697
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
698
|
-
name: errorCode,
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
};
|
|
701
|
-
break;
|
|
702
|
-
case "HomeRegionNotSetException":
|
|
703
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
704
|
-
response = {
|
|
705
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
706
|
-
name: errorCode,
|
|
707
|
-
$metadata: deserializeMetadata(output),
|
|
708
|
-
};
|
|
709
|
-
break;
|
|
710
|
-
case "InvalidParameterException":
|
|
711
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
712
|
-
response = {
|
|
713
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
714
|
-
name: errorCode,
|
|
715
|
-
$metadata: deserializeMetadata(output),
|
|
716
|
-
};
|
|
717
|
-
break;
|
|
718
|
-
case "InvalidParameterValueException":
|
|
719
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
720
|
-
response = {
|
|
721
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
722
|
-
name: errorCode,
|
|
723
|
-
$metadata: deserializeMetadata(output),
|
|
724
|
-
};
|
|
725
|
-
break;
|
|
726
|
-
case "ServerInternalErrorException":
|
|
727
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
728
|
-
response = {
|
|
729
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
730
|
-
name: errorCode,
|
|
731
|
-
$metadata: deserializeMetadata(output),
|
|
732
|
-
};
|
|
733
|
-
break;
|
|
734
|
-
default:
|
|
735
|
-
const parsedBody = parsedOutput.body;
|
|
736
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
737
|
-
response = {
|
|
738
|
-
...parsedBody,
|
|
739
|
-
name: `${errorCode}`,
|
|
740
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
741
|
-
$fault: "client",
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
} as any;
|
|
744
|
-
}
|
|
745
|
-
const message = response.message || response.Message || errorCode;
|
|
746
|
-
response.message = message;
|
|
747
|
-
delete response.Message;
|
|
748
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
export const deserializeAws_json1_1CreateTagsCommand = async (
|
|
752
|
-
output: __HttpResponse,
|
|
753
|
-
context: __SerdeContext
|
|
754
|
-
): Promise<CreateTagsCommandOutput> => {
|
|
755
|
-
if (output.statusCode >= 300) {
|
|
756
|
-
return deserializeAws_json1_1CreateTagsCommandError(output, context);
|
|
757
|
-
}
|
|
758
|
-
const data: any = await parseBody(output.body, context);
|
|
759
|
-
let contents: any = {};
|
|
760
|
-
contents = deserializeAws_json1_1CreateTagsResponse(data, context);
|
|
761
|
-
const response: CreateTagsCommandOutput = {
|
|
762
|
-
$metadata: deserializeMetadata(output),
|
|
763
|
-
...contents,
|
|
764
|
-
};
|
|
765
|
-
return Promise.resolve(response);
|
|
766
|
-
};
|
|
767
|
-
|
|
768
|
-
const deserializeAws_json1_1CreateTagsCommandError = async (
|
|
769
|
-
output: __HttpResponse,
|
|
770
|
-
context: __SerdeContext
|
|
771
|
-
): Promise<CreateTagsCommandOutput> => {
|
|
772
|
-
const parsedOutput: any = {
|
|
773
|
-
...output,
|
|
774
|
-
body: await parseBody(output.body, context),
|
|
775
|
-
};
|
|
776
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
777
|
-
let errorCode: string = "UnknownError";
|
|
778
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
-
switch (errorCode) {
|
|
780
|
-
case "AuthorizationErrorException":
|
|
781
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
782
|
-
response = {
|
|
783
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
784
|
-
name: errorCode,
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
};
|
|
787
|
-
break;
|
|
788
|
-
case "HomeRegionNotSetException":
|
|
789
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
790
|
-
response = {
|
|
791
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
792
|
-
name: errorCode,
|
|
793
|
-
$metadata: deserializeMetadata(output),
|
|
794
|
-
};
|
|
795
|
-
break;
|
|
796
|
-
case "InvalidParameterException":
|
|
797
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
798
|
-
response = {
|
|
799
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
800
|
-
name: errorCode,
|
|
801
|
-
$metadata: deserializeMetadata(output),
|
|
802
|
-
};
|
|
803
|
-
break;
|
|
804
|
-
case "InvalidParameterValueException":
|
|
805
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
806
|
-
response = {
|
|
807
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
808
|
-
name: errorCode,
|
|
809
|
-
$metadata: deserializeMetadata(output),
|
|
810
|
-
};
|
|
811
|
-
break;
|
|
812
|
-
case "ResourceNotFoundException":
|
|
813
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
814
|
-
response = {
|
|
815
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
816
|
-
name: errorCode,
|
|
817
|
-
$metadata: deserializeMetadata(output),
|
|
818
|
-
};
|
|
819
|
-
break;
|
|
820
|
-
case "ServerInternalErrorException":
|
|
821
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
822
|
-
response = {
|
|
823
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
824
|
-
name: errorCode,
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
};
|
|
827
|
-
break;
|
|
828
|
-
default:
|
|
829
|
-
const parsedBody = parsedOutput.body;
|
|
830
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
831
|
-
response = {
|
|
832
|
-
...parsedBody,
|
|
833
|
-
name: `${errorCode}`,
|
|
834
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
835
|
-
$fault: "client",
|
|
836
|
-
$metadata: deserializeMetadata(output),
|
|
837
|
-
} as any;
|
|
838
|
-
}
|
|
839
|
-
const message = response.message || response.Message || errorCode;
|
|
840
|
-
response.message = message;
|
|
841
|
-
delete response.Message;
|
|
842
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
843
|
-
};
|
|
844
|
-
|
|
845
|
-
export const deserializeAws_json1_1DeleteApplicationsCommand = async (
|
|
846
|
-
output: __HttpResponse,
|
|
847
|
-
context: __SerdeContext
|
|
848
|
-
): Promise<DeleteApplicationsCommandOutput> => {
|
|
849
|
-
if (output.statusCode >= 300) {
|
|
850
|
-
return deserializeAws_json1_1DeleteApplicationsCommandError(output, context);
|
|
851
|
-
}
|
|
852
|
-
const data: any = await parseBody(output.body, context);
|
|
853
|
-
let contents: any = {};
|
|
854
|
-
contents = deserializeAws_json1_1DeleteApplicationsResponse(data, context);
|
|
855
|
-
const response: DeleteApplicationsCommandOutput = {
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
...contents,
|
|
858
|
-
};
|
|
859
|
-
return Promise.resolve(response);
|
|
860
|
-
};
|
|
861
|
-
|
|
862
|
-
const deserializeAws_json1_1DeleteApplicationsCommandError = async (
|
|
863
|
-
output: __HttpResponse,
|
|
864
|
-
context: __SerdeContext
|
|
865
|
-
): Promise<DeleteApplicationsCommandOutput> => {
|
|
866
|
-
const parsedOutput: any = {
|
|
867
|
-
...output,
|
|
868
|
-
body: await parseBody(output.body, context),
|
|
869
|
-
};
|
|
870
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
871
|
-
let errorCode: string = "UnknownError";
|
|
872
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
|
-
switch (errorCode) {
|
|
874
|
-
case "AuthorizationErrorException":
|
|
875
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
876
|
-
response = {
|
|
877
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
878
|
-
name: errorCode,
|
|
879
|
-
$metadata: deserializeMetadata(output),
|
|
880
|
-
};
|
|
881
|
-
break;
|
|
882
|
-
case "HomeRegionNotSetException":
|
|
883
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
884
|
-
response = {
|
|
885
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
886
|
-
name: errorCode,
|
|
887
|
-
$metadata: deserializeMetadata(output),
|
|
888
|
-
};
|
|
889
|
-
break;
|
|
890
|
-
case "InvalidParameterException":
|
|
891
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
892
|
-
response = {
|
|
893
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
894
|
-
name: errorCode,
|
|
895
|
-
$metadata: deserializeMetadata(output),
|
|
896
|
-
};
|
|
897
|
-
break;
|
|
898
|
-
case "InvalidParameterValueException":
|
|
899
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
900
|
-
response = {
|
|
901
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
902
|
-
name: errorCode,
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
};
|
|
905
|
-
break;
|
|
906
|
-
case "ServerInternalErrorException":
|
|
907
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
908
|
-
response = {
|
|
909
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
910
|
-
name: errorCode,
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
};
|
|
913
|
-
break;
|
|
914
|
-
default:
|
|
915
|
-
const parsedBody = parsedOutput.body;
|
|
916
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
917
|
-
response = {
|
|
918
|
-
...parsedBody,
|
|
919
|
-
name: `${errorCode}`,
|
|
920
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
921
|
-
$fault: "client",
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
} as any;
|
|
924
|
-
}
|
|
925
|
-
const message = response.message || response.Message || errorCode;
|
|
926
|
-
response.message = message;
|
|
927
|
-
delete response.Message;
|
|
928
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
export const deserializeAws_json1_1DeleteTagsCommand = async (
|
|
932
|
-
output: __HttpResponse,
|
|
933
|
-
context: __SerdeContext
|
|
934
|
-
): Promise<DeleteTagsCommandOutput> => {
|
|
935
|
-
if (output.statusCode >= 300) {
|
|
936
|
-
return deserializeAws_json1_1DeleteTagsCommandError(output, context);
|
|
937
|
-
}
|
|
938
|
-
const data: any = await parseBody(output.body, context);
|
|
939
|
-
let contents: any = {};
|
|
940
|
-
contents = deserializeAws_json1_1DeleteTagsResponse(data, context);
|
|
941
|
-
const response: DeleteTagsCommandOutput = {
|
|
942
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
-
...contents,
|
|
944
|
-
};
|
|
945
|
-
return Promise.resolve(response);
|
|
946
|
-
};
|
|
947
|
-
|
|
948
|
-
const deserializeAws_json1_1DeleteTagsCommandError = async (
|
|
949
|
-
output: __HttpResponse,
|
|
950
|
-
context: __SerdeContext
|
|
951
|
-
): Promise<DeleteTagsCommandOutput> => {
|
|
952
|
-
const parsedOutput: any = {
|
|
953
|
-
...output,
|
|
954
|
-
body: await parseBody(output.body, context),
|
|
955
|
-
};
|
|
956
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
957
|
-
let errorCode: string = "UnknownError";
|
|
958
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
-
switch (errorCode) {
|
|
960
|
-
case "AuthorizationErrorException":
|
|
961
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
962
|
-
response = {
|
|
963
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
964
|
-
name: errorCode,
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
};
|
|
967
|
-
break;
|
|
968
|
-
case "HomeRegionNotSetException":
|
|
969
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
970
|
-
response = {
|
|
971
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
972
|
-
name: errorCode,
|
|
973
|
-
$metadata: deserializeMetadata(output),
|
|
974
|
-
};
|
|
975
|
-
break;
|
|
976
|
-
case "InvalidParameterException":
|
|
977
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
978
|
-
response = {
|
|
979
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
980
|
-
name: errorCode,
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
};
|
|
983
|
-
break;
|
|
984
|
-
case "InvalidParameterValueException":
|
|
985
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
986
|
-
response = {
|
|
987
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
988
|
-
name: errorCode,
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
};
|
|
991
|
-
break;
|
|
992
|
-
case "ResourceNotFoundException":
|
|
993
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
994
|
-
response = {
|
|
995
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
996
|
-
name: errorCode,
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
};
|
|
999
|
-
break;
|
|
1000
|
-
case "ServerInternalErrorException":
|
|
1001
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1002
|
-
response = {
|
|
1003
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1004
|
-
name: errorCode,
|
|
1005
|
-
$metadata: deserializeMetadata(output),
|
|
1006
|
-
};
|
|
1007
|
-
break;
|
|
1008
|
-
default:
|
|
1009
|
-
const parsedBody = parsedOutput.body;
|
|
1010
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1011
|
-
response = {
|
|
1012
|
-
...parsedBody,
|
|
1013
|
-
name: `${errorCode}`,
|
|
1014
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1015
|
-
$fault: "client",
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
} as any;
|
|
1018
|
-
}
|
|
1019
|
-
const message = response.message || response.Message || errorCode;
|
|
1020
|
-
response.message = message;
|
|
1021
|
-
delete response.Message;
|
|
1022
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1023
|
-
};
|
|
1024
|
-
|
|
1025
|
-
export const deserializeAws_json1_1DescribeAgentsCommand = async (
|
|
1026
|
-
output: __HttpResponse,
|
|
1027
|
-
context: __SerdeContext
|
|
1028
|
-
): Promise<DescribeAgentsCommandOutput> => {
|
|
1029
|
-
if (output.statusCode >= 300) {
|
|
1030
|
-
return deserializeAws_json1_1DescribeAgentsCommandError(output, context);
|
|
1031
|
-
}
|
|
1032
|
-
const data: any = await parseBody(output.body, context);
|
|
1033
|
-
let contents: any = {};
|
|
1034
|
-
contents = deserializeAws_json1_1DescribeAgentsResponse(data, context);
|
|
1035
|
-
const response: DescribeAgentsCommandOutput = {
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
...contents,
|
|
1038
|
-
};
|
|
1039
|
-
return Promise.resolve(response);
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
const deserializeAws_json1_1DescribeAgentsCommandError = async (
|
|
1043
|
-
output: __HttpResponse,
|
|
1044
|
-
context: __SerdeContext
|
|
1045
|
-
): Promise<DescribeAgentsCommandOutput> => {
|
|
1046
|
-
const parsedOutput: any = {
|
|
1047
|
-
...output,
|
|
1048
|
-
body: await parseBody(output.body, context),
|
|
1049
|
-
};
|
|
1050
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1051
|
-
let errorCode: string = "UnknownError";
|
|
1052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "AuthorizationErrorException":
|
|
1055
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1056
|
-
response = {
|
|
1057
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1058
|
-
name: errorCode,
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
};
|
|
1061
|
-
break;
|
|
1062
|
-
case "HomeRegionNotSetException":
|
|
1063
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1064
|
-
response = {
|
|
1065
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1066
|
-
name: errorCode,
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
};
|
|
1069
|
-
break;
|
|
1070
|
-
case "InvalidParameterException":
|
|
1071
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1072
|
-
response = {
|
|
1073
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1074
|
-
name: errorCode,
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
};
|
|
1077
|
-
break;
|
|
1078
|
-
case "InvalidParameterValueException":
|
|
1079
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1080
|
-
response = {
|
|
1081
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1082
|
-
name: errorCode,
|
|
1083
|
-
$metadata: deserializeMetadata(output),
|
|
1084
|
-
};
|
|
1085
|
-
break;
|
|
1086
|
-
case "ServerInternalErrorException":
|
|
1087
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1088
|
-
response = {
|
|
1089
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1090
|
-
name: errorCode,
|
|
1091
|
-
$metadata: deserializeMetadata(output),
|
|
1092
|
-
};
|
|
1093
|
-
break;
|
|
1094
|
-
default:
|
|
1095
|
-
const parsedBody = parsedOutput.body;
|
|
1096
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1097
|
-
response = {
|
|
1098
|
-
...parsedBody,
|
|
1099
|
-
name: `${errorCode}`,
|
|
1100
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1101
|
-
$fault: "client",
|
|
1102
|
-
$metadata: deserializeMetadata(output),
|
|
1103
|
-
} as any;
|
|
1104
|
-
}
|
|
1105
|
-
const message = response.message || response.Message || errorCode;
|
|
1106
|
-
response.message = message;
|
|
1107
|
-
delete response.Message;
|
|
1108
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1109
|
-
};
|
|
1110
|
-
|
|
1111
|
-
export const deserializeAws_json1_1DescribeConfigurationsCommand = async (
|
|
1112
|
-
output: __HttpResponse,
|
|
1113
|
-
context: __SerdeContext
|
|
1114
|
-
): Promise<DescribeConfigurationsCommandOutput> => {
|
|
1115
|
-
if (output.statusCode >= 300) {
|
|
1116
|
-
return deserializeAws_json1_1DescribeConfigurationsCommandError(output, context);
|
|
1117
|
-
}
|
|
1118
|
-
const data: any = await parseBody(output.body, context);
|
|
1119
|
-
let contents: any = {};
|
|
1120
|
-
contents = deserializeAws_json1_1DescribeConfigurationsResponse(data, context);
|
|
1121
|
-
const response: DescribeConfigurationsCommandOutput = {
|
|
1122
|
-
$metadata: deserializeMetadata(output),
|
|
1123
|
-
...contents,
|
|
1124
|
-
};
|
|
1125
|
-
return Promise.resolve(response);
|
|
1126
|
-
};
|
|
1127
|
-
|
|
1128
|
-
const deserializeAws_json1_1DescribeConfigurationsCommandError = async (
|
|
1129
|
-
output: __HttpResponse,
|
|
1130
|
-
context: __SerdeContext
|
|
1131
|
-
): Promise<DescribeConfigurationsCommandOutput> => {
|
|
1132
|
-
const parsedOutput: any = {
|
|
1133
|
-
...output,
|
|
1134
|
-
body: await parseBody(output.body, context),
|
|
1135
|
-
};
|
|
1136
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1137
|
-
let errorCode: string = "UnknownError";
|
|
1138
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
-
switch (errorCode) {
|
|
1140
|
-
case "AuthorizationErrorException":
|
|
1141
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1142
|
-
response = {
|
|
1143
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1144
|
-
name: errorCode,
|
|
1145
|
-
$metadata: deserializeMetadata(output),
|
|
1146
|
-
};
|
|
1147
|
-
break;
|
|
1148
|
-
case "HomeRegionNotSetException":
|
|
1149
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1150
|
-
response = {
|
|
1151
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1152
|
-
name: errorCode,
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
};
|
|
1155
|
-
break;
|
|
1156
|
-
case "InvalidParameterException":
|
|
1157
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1158
|
-
response = {
|
|
1159
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1160
|
-
name: errorCode,
|
|
1161
|
-
$metadata: deserializeMetadata(output),
|
|
1162
|
-
};
|
|
1163
|
-
break;
|
|
1164
|
-
case "InvalidParameterValueException":
|
|
1165
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1166
|
-
response = {
|
|
1167
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1168
|
-
name: errorCode,
|
|
1169
|
-
$metadata: deserializeMetadata(output),
|
|
1170
|
-
};
|
|
1171
|
-
break;
|
|
1172
|
-
case "ServerInternalErrorException":
|
|
1173
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1174
|
-
response = {
|
|
1175
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1176
|
-
name: errorCode,
|
|
1177
|
-
$metadata: deserializeMetadata(output),
|
|
1178
|
-
};
|
|
1179
|
-
break;
|
|
1180
|
-
default:
|
|
1181
|
-
const parsedBody = parsedOutput.body;
|
|
1182
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1183
|
-
response = {
|
|
1184
|
-
...parsedBody,
|
|
1185
|
-
name: `${errorCode}`,
|
|
1186
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1187
|
-
$fault: "client",
|
|
1188
|
-
$metadata: deserializeMetadata(output),
|
|
1189
|
-
} as any;
|
|
1190
|
-
}
|
|
1191
|
-
const message = response.message || response.Message || errorCode;
|
|
1192
|
-
response.message = message;
|
|
1193
|
-
delete response.Message;
|
|
1194
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
export const deserializeAws_json1_1DescribeContinuousExportsCommand = async (
|
|
1198
|
-
output: __HttpResponse,
|
|
1199
|
-
context: __SerdeContext
|
|
1200
|
-
): Promise<DescribeContinuousExportsCommandOutput> => {
|
|
1201
|
-
if (output.statusCode >= 300) {
|
|
1202
|
-
return deserializeAws_json1_1DescribeContinuousExportsCommandError(output, context);
|
|
1203
|
-
}
|
|
1204
|
-
const data: any = await parseBody(output.body, context);
|
|
1205
|
-
let contents: any = {};
|
|
1206
|
-
contents = deserializeAws_json1_1DescribeContinuousExportsResponse(data, context);
|
|
1207
|
-
const response: DescribeContinuousExportsCommandOutput = {
|
|
1208
|
-
$metadata: deserializeMetadata(output),
|
|
1209
|
-
...contents,
|
|
1210
|
-
};
|
|
1211
|
-
return Promise.resolve(response);
|
|
1212
|
-
};
|
|
1213
|
-
|
|
1214
|
-
const deserializeAws_json1_1DescribeContinuousExportsCommandError = async (
|
|
1215
|
-
output: __HttpResponse,
|
|
1216
|
-
context: __SerdeContext
|
|
1217
|
-
): Promise<DescribeContinuousExportsCommandOutput> => {
|
|
1218
|
-
const parsedOutput: any = {
|
|
1219
|
-
...output,
|
|
1220
|
-
body: await parseBody(output.body, context),
|
|
1221
|
-
};
|
|
1222
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1223
|
-
let errorCode: string = "UnknownError";
|
|
1224
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
-
switch (errorCode) {
|
|
1226
|
-
case "AuthorizationErrorException":
|
|
1227
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1228
|
-
response = {
|
|
1229
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1230
|
-
name: errorCode,
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
};
|
|
1233
|
-
break;
|
|
1234
|
-
case "HomeRegionNotSetException":
|
|
1235
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1236
|
-
response = {
|
|
1237
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1238
|
-
name: errorCode,
|
|
1239
|
-
$metadata: deserializeMetadata(output),
|
|
1240
|
-
};
|
|
1241
|
-
break;
|
|
1242
|
-
case "InvalidParameterException":
|
|
1243
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1244
|
-
response = {
|
|
1245
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1246
|
-
name: errorCode,
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
};
|
|
1249
|
-
break;
|
|
1250
|
-
case "InvalidParameterValueException":
|
|
1251
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1252
|
-
response = {
|
|
1253
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1254
|
-
name: errorCode,
|
|
1255
|
-
$metadata: deserializeMetadata(output),
|
|
1256
|
-
};
|
|
1257
|
-
break;
|
|
1258
|
-
case "OperationNotPermittedException":
|
|
1259
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1260
|
-
response = {
|
|
1261
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1262
|
-
name: errorCode,
|
|
1263
|
-
$metadata: deserializeMetadata(output),
|
|
1264
|
-
};
|
|
1265
|
-
break;
|
|
1266
|
-
case "ResourceNotFoundException":
|
|
1267
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1268
|
-
response = {
|
|
1269
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1270
|
-
name: errorCode,
|
|
1271
|
-
$metadata: deserializeMetadata(output),
|
|
1272
|
-
};
|
|
1273
|
-
break;
|
|
1274
|
-
case "ServerInternalErrorException":
|
|
1275
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1276
|
-
response = {
|
|
1277
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1278
|
-
name: errorCode,
|
|
1279
|
-
$metadata: deserializeMetadata(output),
|
|
1280
|
-
};
|
|
1281
|
-
break;
|
|
1282
|
-
default:
|
|
1283
|
-
const parsedBody = parsedOutput.body;
|
|
1284
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1285
|
-
response = {
|
|
1286
|
-
...parsedBody,
|
|
1287
|
-
name: `${errorCode}`,
|
|
1288
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1289
|
-
$fault: "client",
|
|
1290
|
-
$metadata: deserializeMetadata(output),
|
|
1291
|
-
} as any;
|
|
1292
|
-
}
|
|
1293
|
-
const message = response.message || response.Message || errorCode;
|
|
1294
|
-
response.message = message;
|
|
1295
|
-
delete response.Message;
|
|
1296
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1297
|
-
};
|
|
1298
|
-
|
|
1299
|
-
export const deserializeAws_json1_1DescribeExportConfigurationsCommand = async (
|
|
1300
|
-
output: __HttpResponse,
|
|
1301
|
-
context: __SerdeContext
|
|
1302
|
-
): Promise<DescribeExportConfigurationsCommandOutput> => {
|
|
1303
|
-
if (output.statusCode >= 300) {
|
|
1304
|
-
return deserializeAws_json1_1DescribeExportConfigurationsCommandError(output, context);
|
|
1305
|
-
}
|
|
1306
|
-
const data: any = await parseBody(output.body, context);
|
|
1307
|
-
let contents: any = {};
|
|
1308
|
-
contents = deserializeAws_json1_1DescribeExportConfigurationsResponse(data, context);
|
|
1309
|
-
const response: DescribeExportConfigurationsCommandOutput = {
|
|
1310
|
-
$metadata: deserializeMetadata(output),
|
|
1311
|
-
...contents,
|
|
1312
|
-
};
|
|
1313
|
-
return Promise.resolve(response);
|
|
1314
|
-
};
|
|
1315
|
-
|
|
1316
|
-
const deserializeAws_json1_1DescribeExportConfigurationsCommandError = async (
|
|
1317
|
-
output: __HttpResponse,
|
|
1318
|
-
context: __SerdeContext
|
|
1319
|
-
): Promise<DescribeExportConfigurationsCommandOutput> => {
|
|
1320
|
-
const parsedOutput: any = {
|
|
1321
|
-
...output,
|
|
1322
|
-
body: await parseBody(output.body, context),
|
|
1323
|
-
};
|
|
1324
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1325
|
-
let errorCode: string = "UnknownError";
|
|
1326
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
|
-
switch (errorCode) {
|
|
1328
|
-
case "AuthorizationErrorException":
|
|
1329
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1330
|
-
response = {
|
|
1331
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1332
|
-
name: errorCode,
|
|
1333
|
-
$metadata: deserializeMetadata(output),
|
|
1334
|
-
};
|
|
1335
|
-
break;
|
|
1336
|
-
case "HomeRegionNotSetException":
|
|
1337
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1338
|
-
response = {
|
|
1339
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1340
|
-
name: errorCode,
|
|
1341
|
-
$metadata: deserializeMetadata(output),
|
|
1342
|
-
};
|
|
1343
|
-
break;
|
|
1344
|
-
case "InvalidParameterException":
|
|
1345
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1346
|
-
response = {
|
|
1347
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1348
|
-
name: errorCode,
|
|
1349
|
-
$metadata: deserializeMetadata(output),
|
|
1350
|
-
};
|
|
1351
|
-
break;
|
|
1352
|
-
case "InvalidParameterValueException":
|
|
1353
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1354
|
-
response = {
|
|
1355
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1356
|
-
name: errorCode,
|
|
1357
|
-
$metadata: deserializeMetadata(output),
|
|
1358
|
-
};
|
|
1359
|
-
break;
|
|
1360
|
-
case "ResourceNotFoundException":
|
|
1361
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1362
|
-
response = {
|
|
1363
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1364
|
-
name: errorCode,
|
|
1365
|
-
$metadata: deserializeMetadata(output),
|
|
1366
|
-
};
|
|
1367
|
-
break;
|
|
1368
|
-
case "ServerInternalErrorException":
|
|
1369
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1370
|
-
response = {
|
|
1371
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1372
|
-
name: errorCode,
|
|
1373
|
-
$metadata: deserializeMetadata(output),
|
|
1374
|
-
};
|
|
1375
|
-
break;
|
|
1376
|
-
default:
|
|
1377
|
-
const parsedBody = parsedOutput.body;
|
|
1378
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1379
|
-
response = {
|
|
1380
|
-
...parsedBody,
|
|
1381
|
-
name: `${errorCode}`,
|
|
1382
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1383
|
-
$fault: "client",
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
} as any;
|
|
1386
|
-
}
|
|
1387
|
-
const message = response.message || response.Message || errorCode;
|
|
1388
|
-
response.message = message;
|
|
1389
|
-
delete response.Message;
|
|
1390
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1391
|
-
};
|
|
1392
|
-
|
|
1393
|
-
export const deserializeAws_json1_1DescribeExportTasksCommand = async (
|
|
1394
|
-
output: __HttpResponse,
|
|
1395
|
-
context: __SerdeContext
|
|
1396
|
-
): Promise<DescribeExportTasksCommandOutput> => {
|
|
1397
|
-
if (output.statusCode >= 300) {
|
|
1398
|
-
return deserializeAws_json1_1DescribeExportTasksCommandError(output, context);
|
|
1399
|
-
}
|
|
1400
|
-
const data: any = await parseBody(output.body, context);
|
|
1401
|
-
let contents: any = {};
|
|
1402
|
-
contents = deserializeAws_json1_1DescribeExportTasksResponse(data, context);
|
|
1403
|
-
const response: DescribeExportTasksCommandOutput = {
|
|
1404
|
-
$metadata: deserializeMetadata(output),
|
|
1405
|
-
...contents,
|
|
1406
|
-
};
|
|
1407
|
-
return Promise.resolve(response);
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
const deserializeAws_json1_1DescribeExportTasksCommandError = async (
|
|
1411
|
-
output: __HttpResponse,
|
|
1412
|
-
context: __SerdeContext
|
|
1413
|
-
): Promise<DescribeExportTasksCommandOutput> => {
|
|
1414
|
-
const parsedOutput: any = {
|
|
1415
|
-
...output,
|
|
1416
|
-
body: await parseBody(output.body, context),
|
|
1417
|
-
};
|
|
1418
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1419
|
-
let errorCode: string = "UnknownError";
|
|
1420
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
-
switch (errorCode) {
|
|
1422
|
-
case "AuthorizationErrorException":
|
|
1423
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1424
|
-
response = {
|
|
1425
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1426
|
-
name: errorCode,
|
|
1427
|
-
$metadata: deserializeMetadata(output),
|
|
1428
|
-
};
|
|
1429
|
-
break;
|
|
1430
|
-
case "HomeRegionNotSetException":
|
|
1431
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1432
|
-
response = {
|
|
1433
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1434
|
-
name: errorCode,
|
|
1435
|
-
$metadata: deserializeMetadata(output),
|
|
1436
|
-
};
|
|
1437
|
-
break;
|
|
1438
|
-
case "InvalidParameterException":
|
|
1439
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1440
|
-
response = {
|
|
1441
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1442
|
-
name: errorCode,
|
|
1443
|
-
$metadata: deserializeMetadata(output),
|
|
1444
|
-
};
|
|
1445
|
-
break;
|
|
1446
|
-
case "InvalidParameterValueException":
|
|
1447
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1448
|
-
response = {
|
|
1449
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1450
|
-
name: errorCode,
|
|
1451
|
-
$metadata: deserializeMetadata(output),
|
|
1452
|
-
};
|
|
1453
|
-
break;
|
|
1454
|
-
case "ServerInternalErrorException":
|
|
1455
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1456
|
-
response = {
|
|
1457
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1458
|
-
name: errorCode,
|
|
1459
|
-
$metadata: deserializeMetadata(output),
|
|
1460
|
-
};
|
|
1461
|
-
break;
|
|
1462
|
-
default:
|
|
1463
|
-
const parsedBody = parsedOutput.body;
|
|
1464
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1465
|
-
response = {
|
|
1466
|
-
...parsedBody,
|
|
1467
|
-
name: `${errorCode}`,
|
|
1468
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1469
|
-
$fault: "client",
|
|
1470
|
-
$metadata: deserializeMetadata(output),
|
|
1471
|
-
} as any;
|
|
1472
|
-
}
|
|
1473
|
-
const message = response.message || response.Message || errorCode;
|
|
1474
|
-
response.message = message;
|
|
1475
|
-
delete response.Message;
|
|
1476
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1477
|
-
};
|
|
1478
|
-
|
|
1479
|
-
export const deserializeAws_json1_1DescribeImportTasksCommand = async (
|
|
1480
|
-
output: __HttpResponse,
|
|
1481
|
-
context: __SerdeContext
|
|
1482
|
-
): Promise<DescribeImportTasksCommandOutput> => {
|
|
1483
|
-
if (output.statusCode >= 300) {
|
|
1484
|
-
return deserializeAws_json1_1DescribeImportTasksCommandError(output, context);
|
|
1485
|
-
}
|
|
1486
|
-
const data: any = await parseBody(output.body, context);
|
|
1487
|
-
let contents: any = {};
|
|
1488
|
-
contents = deserializeAws_json1_1DescribeImportTasksResponse(data, context);
|
|
1489
|
-
const response: DescribeImportTasksCommandOutput = {
|
|
1490
|
-
$metadata: deserializeMetadata(output),
|
|
1491
|
-
...contents,
|
|
1492
|
-
};
|
|
1493
|
-
return Promise.resolve(response);
|
|
1494
|
-
};
|
|
1495
|
-
|
|
1496
|
-
const deserializeAws_json1_1DescribeImportTasksCommandError = async (
|
|
1497
|
-
output: __HttpResponse,
|
|
1498
|
-
context: __SerdeContext
|
|
1499
|
-
): Promise<DescribeImportTasksCommandOutput> => {
|
|
1500
|
-
const parsedOutput: any = {
|
|
1501
|
-
...output,
|
|
1502
|
-
body: await parseBody(output.body, context),
|
|
1503
|
-
};
|
|
1504
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1505
|
-
let errorCode: string = "UnknownError";
|
|
1506
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
|
-
switch (errorCode) {
|
|
1508
|
-
case "AuthorizationErrorException":
|
|
1509
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1510
|
-
response = {
|
|
1511
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1512
|
-
name: errorCode,
|
|
1513
|
-
$metadata: deserializeMetadata(output),
|
|
1514
|
-
};
|
|
1515
|
-
break;
|
|
1516
|
-
case "HomeRegionNotSetException":
|
|
1517
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1518
|
-
response = {
|
|
1519
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1520
|
-
name: errorCode,
|
|
1521
|
-
$metadata: deserializeMetadata(output),
|
|
1522
|
-
};
|
|
1523
|
-
break;
|
|
1524
|
-
case "InvalidParameterException":
|
|
1525
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1526
|
-
response = {
|
|
1527
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1528
|
-
name: errorCode,
|
|
1529
|
-
$metadata: deserializeMetadata(output),
|
|
1530
|
-
};
|
|
1531
|
-
break;
|
|
1532
|
-
case "InvalidParameterValueException":
|
|
1533
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1534
|
-
response = {
|
|
1535
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1536
|
-
name: errorCode,
|
|
1537
|
-
$metadata: deserializeMetadata(output),
|
|
1538
|
-
};
|
|
1539
|
-
break;
|
|
1540
|
-
case "ServerInternalErrorException":
|
|
1541
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1542
|
-
response = {
|
|
1543
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1544
|
-
name: errorCode,
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
};
|
|
1547
|
-
break;
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1551
|
-
response = {
|
|
1552
|
-
...parsedBody,
|
|
1553
|
-
name: `${errorCode}`,
|
|
1554
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1555
|
-
$fault: "client",
|
|
1556
|
-
$metadata: deserializeMetadata(output),
|
|
1557
|
-
} as any;
|
|
1558
|
-
}
|
|
1559
|
-
const message = response.message || response.Message || errorCode;
|
|
1560
|
-
response.message = message;
|
|
1561
|
-
delete response.Message;
|
|
1562
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1563
|
-
};
|
|
1564
|
-
|
|
1565
|
-
export const deserializeAws_json1_1DescribeTagsCommand = async (
|
|
1566
|
-
output: __HttpResponse,
|
|
1567
|
-
context: __SerdeContext
|
|
1568
|
-
): Promise<DescribeTagsCommandOutput> => {
|
|
1569
|
-
if (output.statusCode >= 300) {
|
|
1570
|
-
return deserializeAws_json1_1DescribeTagsCommandError(output, context);
|
|
1571
|
-
}
|
|
1572
|
-
const data: any = await parseBody(output.body, context);
|
|
1573
|
-
let contents: any = {};
|
|
1574
|
-
contents = deserializeAws_json1_1DescribeTagsResponse(data, context);
|
|
1575
|
-
const response: DescribeTagsCommandOutput = {
|
|
1576
|
-
$metadata: deserializeMetadata(output),
|
|
1577
|
-
...contents,
|
|
1578
|
-
};
|
|
1579
|
-
return Promise.resolve(response);
|
|
1580
|
-
};
|
|
1581
|
-
|
|
1582
|
-
const deserializeAws_json1_1DescribeTagsCommandError = async (
|
|
1583
|
-
output: __HttpResponse,
|
|
1584
|
-
context: __SerdeContext
|
|
1585
|
-
): Promise<DescribeTagsCommandOutput> => {
|
|
1586
|
-
const parsedOutput: any = {
|
|
1587
|
-
...output,
|
|
1588
|
-
body: await parseBody(output.body, context),
|
|
1589
|
-
};
|
|
1590
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1591
|
-
let errorCode: string = "UnknownError";
|
|
1592
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1593
|
-
switch (errorCode) {
|
|
1594
|
-
case "AuthorizationErrorException":
|
|
1595
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1596
|
-
response = {
|
|
1597
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1598
|
-
name: errorCode,
|
|
1599
|
-
$metadata: deserializeMetadata(output),
|
|
1600
|
-
};
|
|
1601
|
-
break;
|
|
1602
|
-
case "HomeRegionNotSetException":
|
|
1603
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1604
|
-
response = {
|
|
1605
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1606
|
-
name: errorCode,
|
|
1607
|
-
$metadata: deserializeMetadata(output),
|
|
1608
|
-
};
|
|
1609
|
-
break;
|
|
1610
|
-
case "InvalidParameterException":
|
|
1611
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1612
|
-
response = {
|
|
1613
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1614
|
-
name: errorCode,
|
|
1615
|
-
$metadata: deserializeMetadata(output),
|
|
1616
|
-
};
|
|
1617
|
-
break;
|
|
1618
|
-
case "InvalidParameterValueException":
|
|
1619
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1620
|
-
response = {
|
|
1621
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1622
|
-
name: errorCode,
|
|
1623
|
-
$metadata: deserializeMetadata(output),
|
|
1624
|
-
};
|
|
1625
|
-
break;
|
|
1626
|
-
case "ResourceNotFoundException":
|
|
1627
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1628
|
-
response = {
|
|
1629
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1630
|
-
name: errorCode,
|
|
1631
|
-
$metadata: deserializeMetadata(output),
|
|
1632
|
-
};
|
|
1633
|
-
break;
|
|
1634
|
-
case "ServerInternalErrorException":
|
|
1635
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1636
|
-
response = {
|
|
1637
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1638
|
-
name: errorCode,
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
};
|
|
1641
|
-
break;
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1645
|
-
response = {
|
|
1646
|
-
...parsedBody,
|
|
1647
|
-
name: `${errorCode}`,
|
|
1648
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1649
|
-
$fault: "client",
|
|
1650
|
-
$metadata: deserializeMetadata(output),
|
|
1651
|
-
} as any;
|
|
1652
|
-
}
|
|
1653
|
-
const message = response.message || response.Message || errorCode;
|
|
1654
|
-
response.message = message;
|
|
1655
|
-
delete response.Message;
|
|
1656
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1657
|
-
};
|
|
1658
|
-
|
|
1659
|
-
export const deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationCommand = async (
|
|
1660
|
-
output: __HttpResponse,
|
|
1661
|
-
context: __SerdeContext
|
|
1662
|
-
): Promise<DisassociateConfigurationItemsFromApplicationCommandOutput> => {
|
|
1663
|
-
if (output.statusCode >= 300) {
|
|
1664
|
-
return deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationCommandError(output, context);
|
|
1665
|
-
}
|
|
1666
|
-
const data: any = await parseBody(output.body, context);
|
|
1667
|
-
let contents: any = {};
|
|
1668
|
-
contents = deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationResponse(data, context);
|
|
1669
|
-
const response: DisassociateConfigurationItemsFromApplicationCommandOutput = {
|
|
1670
|
-
$metadata: deserializeMetadata(output),
|
|
1671
|
-
...contents,
|
|
1672
|
-
};
|
|
1673
|
-
return Promise.resolve(response);
|
|
1674
|
-
};
|
|
1675
|
-
|
|
1676
|
-
const deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationCommandError = async (
|
|
1677
|
-
output: __HttpResponse,
|
|
1678
|
-
context: __SerdeContext
|
|
1679
|
-
): Promise<DisassociateConfigurationItemsFromApplicationCommandOutput> => {
|
|
1680
|
-
const parsedOutput: any = {
|
|
1681
|
-
...output,
|
|
1682
|
-
body: await parseBody(output.body, context),
|
|
1683
|
-
};
|
|
1684
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1685
|
-
let errorCode: string = "UnknownError";
|
|
1686
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
|
-
switch (errorCode) {
|
|
1688
|
-
case "AuthorizationErrorException":
|
|
1689
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1690
|
-
response = {
|
|
1691
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1692
|
-
name: errorCode,
|
|
1693
|
-
$metadata: deserializeMetadata(output),
|
|
1694
|
-
};
|
|
1695
|
-
break;
|
|
1696
|
-
case "HomeRegionNotSetException":
|
|
1697
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1698
|
-
response = {
|
|
1699
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1700
|
-
name: errorCode,
|
|
1701
|
-
$metadata: deserializeMetadata(output),
|
|
1702
|
-
};
|
|
1703
|
-
break;
|
|
1704
|
-
case "InvalidParameterException":
|
|
1705
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1706
|
-
response = {
|
|
1707
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1708
|
-
name: errorCode,
|
|
1709
|
-
$metadata: deserializeMetadata(output),
|
|
1710
|
-
};
|
|
1711
|
-
break;
|
|
1712
|
-
case "InvalidParameterValueException":
|
|
1713
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1714
|
-
response = {
|
|
1715
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1716
|
-
name: errorCode,
|
|
1717
|
-
$metadata: deserializeMetadata(output),
|
|
1718
|
-
};
|
|
1719
|
-
break;
|
|
1720
|
-
case "ServerInternalErrorException":
|
|
1721
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1722
|
-
response = {
|
|
1723
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1724
|
-
name: errorCode,
|
|
1725
|
-
$metadata: deserializeMetadata(output),
|
|
1726
|
-
};
|
|
1727
|
-
break;
|
|
1728
|
-
default:
|
|
1729
|
-
const parsedBody = parsedOutput.body;
|
|
1730
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1731
|
-
response = {
|
|
1732
|
-
...parsedBody,
|
|
1733
|
-
name: `${errorCode}`,
|
|
1734
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1735
|
-
$fault: "client",
|
|
1736
|
-
$metadata: deserializeMetadata(output),
|
|
1737
|
-
} as any;
|
|
1738
|
-
}
|
|
1739
|
-
const message = response.message || response.Message || errorCode;
|
|
1740
|
-
response.message = message;
|
|
1741
|
-
delete response.Message;
|
|
1742
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1743
|
-
};
|
|
1744
|
-
|
|
1745
|
-
export const deserializeAws_json1_1ExportConfigurationsCommand = async (
|
|
1746
|
-
output: __HttpResponse,
|
|
1747
|
-
context: __SerdeContext
|
|
1748
|
-
): Promise<ExportConfigurationsCommandOutput> => {
|
|
1749
|
-
if (output.statusCode >= 300) {
|
|
1750
|
-
return deserializeAws_json1_1ExportConfigurationsCommandError(output, context);
|
|
1751
|
-
}
|
|
1752
|
-
const data: any = await parseBody(output.body, context);
|
|
1753
|
-
let contents: any = {};
|
|
1754
|
-
contents = deserializeAws_json1_1ExportConfigurationsResponse(data, context);
|
|
1755
|
-
const response: ExportConfigurationsCommandOutput = {
|
|
1756
|
-
$metadata: deserializeMetadata(output),
|
|
1757
|
-
...contents,
|
|
1758
|
-
};
|
|
1759
|
-
return Promise.resolve(response);
|
|
1760
|
-
};
|
|
1761
|
-
|
|
1762
|
-
const deserializeAws_json1_1ExportConfigurationsCommandError = async (
|
|
1763
|
-
output: __HttpResponse,
|
|
1764
|
-
context: __SerdeContext
|
|
1765
|
-
): Promise<ExportConfigurationsCommandOutput> => {
|
|
1766
|
-
const parsedOutput: any = {
|
|
1767
|
-
...output,
|
|
1768
|
-
body: await parseBody(output.body, context),
|
|
1769
|
-
};
|
|
1770
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1771
|
-
let errorCode: string = "UnknownError";
|
|
1772
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
|
-
switch (errorCode) {
|
|
1774
|
-
case "AuthorizationErrorException":
|
|
1775
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1776
|
-
response = {
|
|
1777
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1778
|
-
name: errorCode,
|
|
1779
|
-
$metadata: deserializeMetadata(output),
|
|
1780
|
-
};
|
|
1781
|
-
break;
|
|
1782
|
-
case "HomeRegionNotSetException":
|
|
1783
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1784
|
-
response = {
|
|
1785
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1786
|
-
name: errorCode,
|
|
1787
|
-
$metadata: deserializeMetadata(output),
|
|
1788
|
-
};
|
|
1789
|
-
break;
|
|
1790
|
-
case "InvalidParameterException":
|
|
1791
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1792
|
-
response = {
|
|
1793
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1794
|
-
name: errorCode,
|
|
1795
|
-
$metadata: deserializeMetadata(output),
|
|
1796
|
-
};
|
|
1797
|
-
break;
|
|
1798
|
-
case "InvalidParameterValueException":
|
|
1799
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1800
|
-
response = {
|
|
1801
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1802
|
-
name: errorCode,
|
|
1803
|
-
$metadata: deserializeMetadata(output),
|
|
1804
|
-
};
|
|
1805
|
-
break;
|
|
1806
|
-
case "OperationNotPermittedException":
|
|
1807
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1808
|
-
response = {
|
|
1809
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1810
|
-
name: errorCode,
|
|
1811
|
-
$metadata: deserializeMetadata(output),
|
|
1812
|
-
};
|
|
1813
|
-
break;
|
|
1814
|
-
case "ServerInternalErrorException":
|
|
1815
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1816
|
-
response = {
|
|
1817
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1818
|
-
name: errorCode,
|
|
1819
|
-
$metadata: deserializeMetadata(output),
|
|
1820
|
-
};
|
|
1821
|
-
break;
|
|
1822
|
-
default:
|
|
1823
|
-
const parsedBody = parsedOutput.body;
|
|
1824
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1825
|
-
response = {
|
|
1826
|
-
...parsedBody,
|
|
1827
|
-
name: `${errorCode}`,
|
|
1828
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1829
|
-
$fault: "client",
|
|
1830
|
-
$metadata: deserializeMetadata(output),
|
|
1831
|
-
} as any;
|
|
1832
|
-
}
|
|
1833
|
-
const message = response.message || response.Message || errorCode;
|
|
1834
|
-
response.message = message;
|
|
1835
|
-
delete response.Message;
|
|
1836
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1837
|
-
};
|
|
1838
|
-
|
|
1839
|
-
export const deserializeAws_json1_1GetDiscoverySummaryCommand = async (
|
|
1840
|
-
output: __HttpResponse,
|
|
1841
|
-
context: __SerdeContext
|
|
1842
|
-
): Promise<GetDiscoverySummaryCommandOutput> => {
|
|
1843
|
-
if (output.statusCode >= 300) {
|
|
1844
|
-
return deserializeAws_json1_1GetDiscoverySummaryCommandError(output, context);
|
|
1845
|
-
}
|
|
1846
|
-
const data: any = await parseBody(output.body, context);
|
|
1847
|
-
let contents: any = {};
|
|
1848
|
-
contents = deserializeAws_json1_1GetDiscoverySummaryResponse(data, context);
|
|
1849
|
-
const response: GetDiscoverySummaryCommandOutput = {
|
|
1850
|
-
$metadata: deserializeMetadata(output),
|
|
1851
|
-
...contents,
|
|
1852
|
-
};
|
|
1853
|
-
return Promise.resolve(response);
|
|
1854
|
-
};
|
|
1855
|
-
|
|
1856
|
-
const deserializeAws_json1_1GetDiscoverySummaryCommandError = async (
|
|
1857
|
-
output: __HttpResponse,
|
|
1858
|
-
context: __SerdeContext
|
|
1859
|
-
): Promise<GetDiscoverySummaryCommandOutput> => {
|
|
1860
|
-
const parsedOutput: any = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseBody(output.body, context),
|
|
1863
|
-
};
|
|
1864
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1865
|
-
let errorCode: string = "UnknownError";
|
|
1866
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
|
-
switch (errorCode) {
|
|
1868
|
-
case "AuthorizationErrorException":
|
|
1869
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1870
|
-
response = {
|
|
1871
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1872
|
-
name: errorCode,
|
|
1873
|
-
$metadata: deserializeMetadata(output),
|
|
1874
|
-
};
|
|
1875
|
-
break;
|
|
1876
|
-
case "HomeRegionNotSetException":
|
|
1877
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1878
|
-
response = {
|
|
1879
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1880
|
-
name: errorCode,
|
|
1881
|
-
$metadata: deserializeMetadata(output),
|
|
1882
|
-
};
|
|
1883
|
-
break;
|
|
1884
|
-
case "InvalidParameterException":
|
|
1885
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1886
|
-
response = {
|
|
1887
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1888
|
-
name: errorCode,
|
|
1889
|
-
$metadata: deserializeMetadata(output),
|
|
1890
|
-
};
|
|
1891
|
-
break;
|
|
1892
|
-
case "InvalidParameterValueException":
|
|
1893
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1894
|
-
response = {
|
|
1895
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1896
|
-
name: errorCode,
|
|
1897
|
-
$metadata: deserializeMetadata(output),
|
|
1898
|
-
};
|
|
1899
|
-
break;
|
|
1900
|
-
case "ServerInternalErrorException":
|
|
1901
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1902
|
-
response = {
|
|
1903
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1904
|
-
name: errorCode,
|
|
1905
|
-
$metadata: deserializeMetadata(output),
|
|
1906
|
-
};
|
|
1907
|
-
break;
|
|
1908
|
-
default:
|
|
1909
|
-
const parsedBody = parsedOutput.body;
|
|
1910
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1911
|
-
response = {
|
|
1912
|
-
...parsedBody,
|
|
1913
|
-
name: `${errorCode}`,
|
|
1914
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1915
|
-
$fault: "client",
|
|
1916
|
-
$metadata: deserializeMetadata(output),
|
|
1917
|
-
} as any;
|
|
1918
|
-
}
|
|
1919
|
-
const message = response.message || response.Message || errorCode;
|
|
1920
|
-
response.message = message;
|
|
1921
|
-
delete response.Message;
|
|
1922
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1923
|
-
};
|
|
1924
|
-
|
|
1925
|
-
export const deserializeAws_json1_1ListConfigurationsCommand = async (
|
|
1926
|
-
output: __HttpResponse,
|
|
1927
|
-
context: __SerdeContext
|
|
1928
|
-
): Promise<ListConfigurationsCommandOutput> => {
|
|
1929
|
-
if (output.statusCode >= 300) {
|
|
1930
|
-
return deserializeAws_json1_1ListConfigurationsCommandError(output, context);
|
|
1931
|
-
}
|
|
1932
|
-
const data: any = await parseBody(output.body, context);
|
|
1933
|
-
let contents: any = {};
|
|
1934
|
-
contents = deserializeAws_json1_1ListConfigurationsResponse(data, context);
|
|
1935
|
-
const response: ListConfigurationsCommandOutput = {
|
|
1936
|
-
$metadata: deserializeMetadata(output),
|
|
1937
|
-
...contents,
|
|
1938
|
-
};
|
|
1939
|
-
return Promise.resolve(response);
|
|
1940
|
-
};
|
|
1941
|
-
|
|
1942
|
-
const deserializeAws_json1_1ListConfigurationsCommandError = async (
|
|
1943
|
-
output: __HttpResponse,
|
|
1944
|
-
context: __SerdeContext
|
|
1945
|
-
): Promise<ListConfigurationsCommandOutput> => {
|
|
1946
|
-
const parsedOutput: any = {
|
|
1947
|
-
...output,
|
|
1948
|
-
body: await parseBody(output.body, context),
|
|
1949
|
-
};
|
|
1950
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1951
|
-
let errorCode: string = "UnknownError";
|
|
1952
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
-
switch (errorCode) {
|
|
1954
|
-
case "AuthorizationErrorException":
|
|
1955
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1956
|
-
response = {
|
|
1957
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
1958
|
-
name: errorCode,
|
|
1959
|
-
$metadata: deserializeMetadata(output),
|
|
1960
|
-
};
|
|
1961
|
-
break;
|
|
1962
|
-
case "HomeRegionNotSetException":
|
|
1963
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1964
|
-
response = {
|
|
1965
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
1966
|
-
name: errorCode,
|
|
1967
|
-
$metadata: deserializeMetadata(output),
|
|
1968
|
-
};
|
|
1969
|
-
break;
|
|
1970
|
-
case "InvalidParameterException":
|
|
1971
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1972
|
-
response = {
|
|
1973
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1974
|
-
name: errorCode,
|
|
1975
|
-
$metadata: deserializeMetadata(output),
|
|
1976
|
-
};
|
|
1977
|
-
break;
|
|
1978
|
-
case "InvalidParameterValueException":
|
|
1979
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1980
|
-
response = {
|
|
1981
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1982
|
-
name: errorCode,
|
|
1983
|
-
$metadata: deserializeMetadata(output),
|
|
1984
|
-
};
|
|
1985
|
-
break;
|
|
1986
|
-
case "ResourceNotFoundException":
|
|
1987
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1988
|
-
response = {
|
|
1989
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1990
|
-
name: errorCode,
|
|
1991
|
-
$metadata: deserializeMetadata(output),
|
|
1992
|
-
};
|
|
1993
|
-
break;
|
|
1994
|
-
case "ServerInternalErrorException":
|
|
1995
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1996
|
-
response = {
|
|
1997
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1998
|
-
name: errorCode,
|
|
1999
|
-
$metadata: deserializeMetadata(output),
|
|
2000
|
-
};
|
|
2001
|
-
break;
|
|
2002
|
-
default:
|
|
2003
|
-
const parsedBody = parsedOutput.body;
|
|
2004
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2005
|
-
response = {
|
|
2006
|
-
...parsedBody,
|
|
2007
|
-
name: `${errorCode}`,
|
|
2008
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2009
|
-
$fault: "client",
|
|
2010
|
-
$metadata: deserializeMetadata(output),
|
|
2011
|
-
} as any;
|
|
2012
|
-
}
|
|
2013
|
-
const message = response.message || response.Message || errorCode;
|
|
2014
|
-
response.message = message;
|
|
2015
|
-
delete response.Message;
|
|
2016
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2017
|
-
};
|
|
2018
|
-
|
|
2019
|
-
export const deserializeAws_json1_1ListServerNeighborsCommand = async (
|
|
2020
|
-
output: __HttpResponse,
|
|
2021
|
-
context: __SerdeContext
|
|
2022
|
-
): Promise<ListServerNeighborsCommandOutput> => {
|
|
2023
|
-
if (output.statusCode >= 300) {
|
|
2024
|
-
return deserializeAws_json1_1ListServerNeighborsCommandError(output, context);
|
|
2025
|
-
}
|
|
2026
|
-
const data: any = await parseBody(output.body, context);
|
|
2027
|
-
let contents: any = {};
|
|
2028
|
-
contents = deserializeAws_json1_1ListServerNeighborsResponse(data, context);
|
|
2029
|
-
const response: ListServerNeighborsCommandOutput = {
|
|
2030
|
-
$metadata: deserializeMetadata(output),
|
|
2031
|
-
...contents,
|
|
2032
|
-
};
|
|
2033
|
-
return Promise.resolve(response);
|
|
2034
|
-
};
|
|
2035
|
-
|
|
2036
|
-
const deserializeAws_json1_1ListServerNeighborsCommandError = async (
|
|
2037
|
-
output: __HttpResponse,
|
|
2038
|
-
context: __SerdeContext
|
|
2039
|
-
): Promise<ListServerNeighborsCommandOutput> => {
|
|
2040
|
-
const parsedOutput: any = {
|
|
2041
|
-
...output,
|
|
2042
|
-
body: await parseBody(output.body, context),
|
|
2043
|
-
};
|
|
2044
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2045
|
-
let errorCode: string = "UnknownError";
|
|
2046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2047
|
-
switch (errorCode) {
|
|
2048
|
-
case "AuthorizationErrorException":
|
|
2049
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
2050
|
-
response = {
|
|
2051
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
2052
|
-
name: errorCode,
|
|
2053
|
-
$metadata: deserializeMetadata(output),
|
|
2054
|
-
};
|
|
2055
|
-
break;
|
|
2056
|
-
case "HomeRegionNotSetException":
|
|
2057
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
2058
|
-
response = {
|
|
2059
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
2060
|
-
name: errorCode,
|
|
2061
|
-
$metadata: deserializeMetadata(output),
|
|
2062
|
-
};
|
|
2063
|
-
break;
|
|
2064
|
-
case "InvalidParameterException":
|
|
2065
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
2066
|
-
response = {
|
|
2067
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2068
|
-
name: errorCode,
|
|
2069
|
-
$metadata: deserializeMetadata(output),
|
|
2070
|
-
};
|
|
2071
|
-
break;
|
|
2072
|
-
case "InvalidParameterValueException":
|
|
2073
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
2074
|
-
response = {
|
|
2075
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2076
|
-
name: errorCode,
|
|
2077
|
-
$metadata: deserializeMetadata(output),
|
|
2078
|
-
};
|
|
2079
|
-
break;
|
|
2080
|
-
case "ServerInternalErrorException":
|
|
2081
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
2082
|
-
response = {
|
|
2083
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2084
|
-
name: errorCode,
|
|
2085
|
-
$metadata: deserializeMetadata(output),
|
|
2086
|
-
};
|
|
2087
|
-
break;
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2091
|
-
response = {
|
|
2092
|
-
...parsedBody,
|
|
2093
|
-
name: `${errorCode}`,
|
|
2094
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2095
|
-
$fault: "client",
|
|
2096
|
-
$metadata: deserializeMetadata(output),
|
|
2097
|
-
} as any;
|
|
2098
|
-
}
|
|
2099
|
-
const message = response.message || response.Message || errorCode;
|
|
2100
|
-
response.message = message;
|
|
2101
|
-
delete response.Message;
|
|
2102
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2103
|
-
};
|
|
2104
|
-
|
|
2105
|
-
export const deserializeAws_json1_1StartContinuousExportCommand = async (
|
|
2106
|
-
output: __HttpResponse,
|
|
2107
|
-
context: __SerdeContext
|
|
2108
|
-
): Promise<StartContinuousExportCommandOutput> => {
|
|
2109
|
-
if (output.statusCode >= 300) {
|
|
2110
|
-
return deserializeAws_json1_1StartContinuousExportCommandError(output, context);
|
|
2111
|
-
}
|
|
2112
|
-
const data: any = await parseBody(output.body, context);
|
|
2113
|
-
let contents: any = {};
|
|
2114
|
-
contents = deserializeAws_json1_1StartContinuousExportResponse(data, context);
|
|
2115
|
-
const response: StartContinuousExportCommandOutput = {
|
|
2116
|
-
$metadata: deserializeMetadata(output),
|
|
2117
|
-
...contents,
|
|
2118
|
-
};
|
|
2119
|
-
return Promise.resolve(response);
|
|
2120
|
-
};
|
|
2121
|
-
|
|
2122
|
-
const deserializeAws_json1_1StartContinuousExportCommandError = async (
|
|
2123
|
-
output: __HttpResponse,
|
|
2124
|
-
context: __SerdeContext
|
|
2125
|
-
): Promise<StartContinuousExportCommandOutput> => {
|
|
2126
|
-
const parsedOutput: any = {
|
|
2127
|
-
...output,
|
|
2128
|
-
body: await parseBody(output.body, context),
|
|
2129
|
-
};
|
|
2130
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2131
|
-
let errorCode: string = "UnknownError";
|
|
2132
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
|
-
switch (errorCode) {
|
|
2134
|
-
case "AuthorizationErrorException":
|
|
2135
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
2136
|
-
response = {
|
|
2137
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
2138
|
-
name: errorCode,
|
|
2139
|
-
$metadata: deserializeMetadata(output),
|
|
2140
|
-
};
|
|
2141
|
-
break;
|
|
2142
|
-
case "ConflictErrorException":
|
|
2143
|
-
case "com.amazonaws.applicationdiscoveryservice#ConflictErrorException":
|
|
2144
|
-
response = {
|
|
2145
|
-
...(await deserializeAws_json1_1ConflictErrorExceptionResponse(parsedOutput, context)),
|
|
2146
|
-
name: errorCode,
|
|
2147
|
-
$metadata: deserializeMetadata(output),
|
|
2148
|
-
};
|
|
2149
|
-
break;
|
|
2150
|
-
case "HomeRegionNotSetException":
|
|
2151
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
2152
|
-
response = {
|
|
2153
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
2154
|
-
name: errorCode,
|
|
2155
|
-
$metadata: deserializeMetadata(output),
|
|
2156
|
-
};
|
|
2157
|
-
break;
|
|
2158
|
-
case "InvalidParameterException":
|
|
2159
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
2160
|
-
response = {
|
|
2161
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2162
|
-
name: errorCode,
|
|
2163
|
-
$metadata: deserializeMetadata(output),
|
|
2164
|
-
};
|
|
2165
|
-
break;
|
|
2166
|
-
case "InvalidParameterValueException":
|
|
2167
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
2168
|
-
response = {
|
|
2169
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2170
|
-
name: errorCode,
|
|
2171
|
-
$metadata: deserializeMetadata(output),
|
|
2172
|
-
};
|
|
2173
|
-
break;
|
|
2174
|
-
case "OperationNotPermittedException":
|
|
2175
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
2176
|
-
response = {
|
|
2177
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2178
|
-
name: errorCode,
|
|
2179
|
-
$metadata: deserializeMetadata(output),
|
|
2180
|
-
};
|
|
2181
|
-
break;
|
|
2182
|
-
case "ResourceInUseException":
|
|
2183
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
2184
|
-
response = {
|
|
2185
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2186
|
-
name: errorCode,
|
|
2187
|
-
$metadata: deserializeMetadata(output),
|
|
2188
|
-
};
|
|
2189
|
-
break;
|
|
2190
|
-
case "ServerInternalErrorException":
|
|
2191
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
2192
|
-
response = {
|
|
2193
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2194
|
-
name: errorCode,
|
|
2195
|
-
$metadata: deserializeMetadata(output),
|
|
2196
|
-
};
|
|
2197
|
-
break;
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2201
|
-
response = {
|
|
2202
|
-
...parsedBody,
|
|
2203
|
-
name: `${errorCode}`,
|
|
2204
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2205
|
-
$fault: "client",
|
|
2206
|
-
$metadata: deserializeMetadata(output),
|
|
2207
|
-
} as any;
|
|
2208
|
-
}
|
|
2209
|
-
const message = response.message || response.Message || errorCode;
|
|
2210
|
-
response.message = message;
|
|
2211
|
-
delete response.Message;
|
|
2212
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2213
|
-
};
|
|
2214
|
-
|
|
2215
|
-
export const deserializeAws_json1_1StartDataCollectionByAgentIdsCommand = async (
|
|
2216
|
-
output: __HttpResponse,
|
|
2217
|
-
context: __SerdeContext
|
|
2218
|
-
): Promise<StartDataCollectionByAgentIdsCommandOutput> => {
|
|
2219
|
-
if (output.statusCode >= 300) {
|
|
2220
|
-
return deserializeAws_json1_1StartDataCollectionByAgentIdsCommandError(output, context);
|
|
2221
|
-
}
|
|
2222
|
-
const data: any = await parseBody(output.body, context);
|
|
2223
|
-
let contents: any = {};
|
|
2224
|
-
contents = deserializeAws_json1_1StartDataCollectionByAgentIdsResponse(data, context);
|
|
2225
|
-
const response: StartDataCollectionByAgentIdsCommandOutput = {
|
|
2226
|
-
$metadata: deserializeMetadata(output),
|
|
2227
|
-
...contents,
|
|
2228
|
-
};
|
|
2229
|
-
return Promise.resolve(response);
|
|
2230
|
-
};
|
|
2231
|
-
|
|
2232
|
-
const deserializeAws_json1_1StartDataCollectionByAgentIdsCommandError = async (
|
|
2233
|
-
output: __HttpResponse,
|
|
2234
|
-
context: __SerdeContext
|
|
2235
|
-
): Promise<StartDataCollectionByAgentIdsCommandOutput> => {
|
|
2236
|
-
const parsedOutput: any = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseBody(output.body, context),
|
|
2239
|
-
};
|
|
2240
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2241
|
-
let errorCode: string = "UnknownError";
|
|
2242
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
|
-
switch (errorCode) {
|
|
2244
|
-
case "AuthorizationErrorException":
|
|
2245
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
2246
|
-
response = {
|
|
2247
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
2248
|
-
name: errorCode,
|
|
2249
|
-
$metadata: deserializeMetadata(output),
|
|
2250
|
-
};
|
|
2251
|
-
break;
|
|
2252
|
-
case "HomeRegionNotSetException":
|
|
2253
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
2254
|
-
response = {
|
|
2255
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
2256
|
-
name: errorCode,
|
|
2257
|
-
$metadata: deserializeMetadata(output),
|
|
2258
|
-
};
|
|
2259
|
-
break;
|
|
2260
|
-
case "InvalidParameterException":
|
|
2261
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
2262
|
-
response = {
|
|
2263
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2264
|
-
name: errorCode,
|
|
2265
|
-
$metadata: deserializeMetadata(output),
|
|
2266
|
-
};
|
|
2267
|
-
break;
|
|
2268
|
-
case "InvalidParameterValueException":
|
|
2269
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
2270
|
-
response = {
|
|
2271
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2272
|
-
name: errorCode,
|
|
2273
|
-
$metadata: deserializeMetadata(output),
|
|
2274
|
-
};
|
|
2275
|
-
break;
|
|
2276
|
-
case "ServerInternalErrorException":
|
|
2277
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
2278
|
-
response = {
|
|
2279
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2280
|
-
name: errorCode,
|
|
2281
|
-
$metadata: deserializeMetadata(output),
|
|
2282
|
-
};
|
|
2283
|
-
break;
|
|
2284
|
-
default:
|
|
2285
|
-
const parsedBody = parsedOutput.body;
|
|
2286
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2287
|
-
response = {
|
|
2288
|
-
...parsedBody,
|
|
2289
|
-
name: `${errorCode}`,
|
|
2290
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2291
|
-
$fault: "client",
|
|
2292
|
-
$metadata: deserializeMetadata(output),
|
|
2293
|
-
} as any;
|
|
2294
|
-
}
|
|
2295
|
-
const message = response.message || response.Message || errorCode;
|
|
2296
|
-
response.message = message;
|
|
2297
|
-
delete response.Message;
|
|
2298
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2299
|
-
};
|
|
2300
|
-
|
|
2301
|
-
export const deserializeAws_json1_1StartExportTaskCommand = async (
|
|
2302
|
-
output: __HttpResponse,
|
|
2303
|
-
context: __SerdeContext
|
|
2304
|
-
): Promise<StartExportTaskCommandOutput> => {
|
|
2305
|
-
if (output.statusCode >= 300) {
|
|
2306
|
-
return deserializeAws_json1_1StartExportTaskCommandError(output, context);
|
|
2307
|
-
}
|
|
2308
|
-
const data: any = await parseBody(output.body, context);
|
|
2309
|
-
let contents: any = {};
|
|
2310
|
-
contents = deserializeAws_json1_1StartExportTaskResponse(data, context);
|
|
2311
|
-
const response: StartExportTaskCommandOutput = {
|
|
2312
|
-
$metadata: deserializeMetadata(output),
|
|
2313
|
-
...contents,
|
|
2314
|
-
};
|
|
2315
|
-
return Promise.resolve(response);
|
|
2316
|
-
};
|
|
2317
|
-
|
|
2318
|
-
const deserializeAws_json1_1StartExportTaskCommandError = async (
|
|
2319
|
-
output: __HttpResponse,
|
|
2320
|
-
context: __SerdeContext
|
|
2321
|
-
): Promise<StartExportTaskCommandOutput> => {
|
|
2322
|
-
const parsedOutput: any = {
|
|
2323
|
-
...output,
|
|
2324
|
-
body: await parseBody(output.body, context),
|
|
2325
|
-
};
|
|
2326
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2327
|
-
let errorCode: string = "UnknownError";
|
|
2328
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
|
-
switch (errorCode) {
|
|
2330
|
-
case "AuthorizationErrorException":
|
|
2331
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
2332
|
-
response = {
|
|
2333
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
2334
|
-
name: errorCode,
|
|
2335
|
-
$metadata: deserializeMetadata(output),
|
|
2336
|
-
};
|
|
2337
|
-
break;
|
|
2338
|
-
case "HomeRegionNotSetException":
|
|
2339
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
2340
|
-
response = {
|
|
2341
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
2342
|
-
name: errorCode,
|
|
2343
|
-
$metadata: deserializeMetadata(output),
|
|
2344
|
-
};
|
|
2345
|
-
break;
|
|
2346
|
-
case "InvalidParameterException":
|
|
2347
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
2348
|
-
response = {
|
|
2349
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2350
|
-
name: errorCode,
|
|
2351
|
-
$metadata: deserializeMetadata(output),
|
|
2352
|
-
};
|
|
2353
|
-
break;
|
|
2354
|
-
case "InvalidParameterValueException":
|
|
2355
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
2356
|
-
response = {
|
|
2357
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2358
|
-
name: errorCode,
|
|
2359
|
-
$metadata: deserializeMetadata(output),
|
|
2360
|
-
};
|
|
2361
|
-
break;
|
|
2362
|
-
case "OperationNotPermittedException":
|
|
2363
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
2364
|
-
response = {
|
|
2365
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2366
|
-
name: errorCode,
|
|
2367
|
-
$metadata: deserializeMetadata(output),
|
|
2368
|
-
};
|
|
2369
|
-
break;
|
|
2370
|
-
case "ServerInternalErrorException":
|
|
2371
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
2372
|
-
response = {
|
|
2373
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2374
|
-
name: errorCode,
|
|
2375
|
-
$metadata: deserializeMetadata(output),
|
|
2376
|
-
};
|
|
2377
|
-
break;
|
|
2378
|
-
default:
|
|
2379
|
-
const parsedBody = parsedOutput.body;
|
|
2380
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2381
|
-
response = {
|
|
2382
|
-
...parsedBody,
|
|
2383
|
-
name: `${errorCode}`,
|
|
2384
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2385
|
-
$fault: "client",
|
|
2386
|
-
$metadata: deserializeMetadata(output),
|
|
2387
|
-
} as any;
|
|
2388
|
-
}
|
|
2389
|
-
const message = response.message || response.Message || errorCode;
|
|
2390
|
-
response.message = message;
|
|
2391
|
-
delete response.Message;
|
|
2392
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2393
|
-
};
|
|
2394
|
-
|
|
2395
|
-
export const deserializeAws_json1_1StartImportTaskCommand = async (
|
|
2396
|
-
output: __HttpResponse,
|
|
2397
|
-
context: __SerdeContext
|
|
2398
|
-
): Promise<StartImportTaskCommandOutput> => {
|
|
2399
|
-
if (output.statusCode >= 300) {
|
|
2400
|
-
return deserializeAws_json1_1StartImportTaskCommandError(output, context);
|
|
2401
|
-
}
|
|
2402
|
-
const data: any = await parseBody(output.body, context);
|
|
2403
|
-
let contents: any = {};
|
|
2404
|
-
contents = deserializeAws_json1_1StartImportTaskResponse(data, context);
|
|
2405
|
-
const response: StartImportTaskCommandOutput = {
|
|
2406
|
-
$metadata: deserializeMetadata(output),
|
|
2407
|
-
...contents,
|
|
2408
|
-
};
|
|
2409
|
-
return Promise.resolve(response);
|
|
2410
|
-
};
|
|
2411
|
-
|
|
2412
|
-
const deserializeAws_json1_1StartImportTaskCommandError = async (
|
|
2413
|
-
output: __HttpResponse,
|
|
2414
|
-
context: __SerdeContext
|
|
2415
|
-
): Promise<StartImportTaskCommandOutput> => {
|
|
2416
|
-
const parsedOutput: any = {
|
|
2417
|
-
...output,
|
|
2418
|
-
body: await parseBody(output.body, context),
|
|
2419
|
-
};
|
|
2420
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2421
|
-
let errorCode: string = "UnknownError";
|
|
2422
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
-
switch (errorCode) {
|
|
2424
|
-
case "AuthorizationErrorException":
|
|
2425
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
2426
|
-
response = {
|
|
2427
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
2428
|
-
name: errorCode,
|
|
2429
|
-
$metadata: deserializeMetadata(output),
|
|
2430
|
-
};
|
|
2431
|
-
break;
|
|
2432
|
-
case "HomeRegionNotSetException":
|
|
2433
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
2434
|
-
response = {
|
|
2435
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
2436
|
-
name: errorCode,
|
|
2437
|
-
$metadata: deserializeMetadata(output),
|
|
2438
|
-
};
|
|
2439
|
-
break;
|
|
2440
|
-
case "InvalidParameterException":
|
|
2441
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
2442
|
-
response = {
|
|
2443
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2444
|
-
name: errorCode,
|
|
2445
|
-
$metadata: deserializeMetadata(output),
|
|
2446
|
-
};
|
|
2447
|
-
break;
|
|
2448
|
-
case "InvalidParameterValueException":
|
|
2449
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
2450
|
-
response = {
|
|
2451
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2452
|
-
name: errorCode,
|
|
2453
|
-
$metadata: deserializeMetadata(output),
|
|
2454
|
-
};
|
|
2455
|
-
break;
|
|
2456
|
-
case "ResourceInUseException":
|
|
2457
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
2458
|
-
response = {
|
|
2459
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2460
|
-
name: errorCode,
|
|
2461
|
-
$metadata: deserializeMetadata(output),
|
|
2462
|
-
};
|
|
2463
|
-
break;
|
|
2464
|
-
case "ServerInternalErrorException":
|
|
2465
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
2466
|
-
response = {
|
|
2467
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2468
|
-
name: errorCode,
|
|
2469
|
-
$metadata: deserializeMetadata(output),
|
|
2470
|
-
};
|
|
2471
|
-
break;
|
|
2472
|
-
default:
|
|
2473
|
-
const parsedBody = parsedOutput.body;
|
|
2474
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2475
|
-
response = {
|
|
2476
|
-
...parsedBody,
|
|
2477
|
-
name: `${errorCode}`,
|
|
2478
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2479
|
-
$fault: "client",
|
|
2480
|
-
$metadata: deserializeMetadata(output),
|
|
2481
|
-
} as any;
|
|
2482
|
-
}
|
|
2483
|
-
const message = response.message || response.Message || errorCode;
|
|
2484
|
-
response.message = message;
|
|
2485
|
-
delete response.Message;
|
|
2486
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2487
|
-
};
|
|
2488
|
-
|
|
2489
|
-
export const deserializeAws_json1_1StopContinuousExportCommand = async (
|
|
2490
|
-
output: __HttpResponse,
|
|
2491
|
-
context: __SerdeContext
|
|
2492
|
-
): Promise<StopContinuousExportCommandOutput> => {
|
|
2493
|
-
if (output.statusCode >= 300) {
|
|
2494
|
-
return deserializeAws_json1_1StopContinuousExportCommandError(output, context);
|
|
2495
|
-
}
|
|
2496
|
-
const data: any = await parseBody(output.body, context);
|
|
2497
|
-
let contents: any = {};
|
|
2498
|
-
contents = deserializeAws_json1_1StopContinuousExportResponse(data, context);
|
|
2499
|
-
const response: StopContinuousExportCommandOutput = {
|
|
2500
|
-
$metadata: deserializeMetadata(output),
|
|
2501
|
-
...contents,
|
|
2502
|
-
};
|
|
2503
|
-
return Promise.resolve(response);
|
|
2504
|
-
};
|
|
2505
|
-
|
|
2506
|
-
const deserializeAws_json1_1StopContinuousExportCommandError = async (
|
|
2507
|
-
output: __HttpResponse,
|
|
2508
|
-
context: __SerdeContext
|
|
2509
|
-
): Promise<StopContinuousExportCommandOutput> => {
|
|
2510
|
-
const parsedOutput: any = {
|
|
2511
|
-
...output,
|
|
2512
|
-
body: await parseBody(output.body, context),
|
|
2513
|
-
};
|
|
2514
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2515
|
-
let errorCode: string = "UnknownError";
|
|
2516
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2517
|
-
switch (errorCode) {
|
|
2518
|
-
case "AuthorizationErrorException":
|
|
2519
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
2520
|
-
response = {
|
|
2521
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
2522
|
-
name: errorCode,
|
|
2523
|
-
$metadata: deserializeMetadata(output),
|
|
2524
|
-
};
|
|
2525
|
-
break;
|
|
2526
|
-
case "HomeRegionNotSetException":
|
|
2527
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
2528
|
-
response = {
|
|
2529
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
2530
|
-
name: errorCode,
|
|
2531
|
-
$metadata: deserializeMetadata(output),
|
|
2532
|
-
};
|
|
2533
|
-
break;
|
|
2534
|
-
case "InvalidParameterException":
|
|
2535
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
2536
|
-
response = {
|
|
2537
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2538
|
-
name: errorCode,
|
|
2539
|
-
$metadata: deserializeMetadata(output),
|
|
2540
|
-
};
|
|
2541
|
-
break;
|
|
2542
|
-
case "InvalidParameterValueException":
|
|
2543
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
2544
|
-
response = {
|
|
2545
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2546
|
-
name: errorCode,
|
|
2547
|
-
$metadata: deserializeMetadata(output),
|
|
2548
|
-
};
|
|
2549
|
-
break;
|
|
2550
|
-
case "OperationNotPermittedException":
|
|
2551
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
2552
|
-
response = {
|
|
2553
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2554
|
-
name: errorCode,
|
|
2555
|
-
$metadata: deserializeMetadata(output),
|
|
2556
|
-
};
|
|
2557
|
-
break;
|
|
2558
|
-
case "ResourceInUseException":
|
|
2559
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
2560
|
-
response = {
|
|
2561
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2562
|
-
name: errorCode,
|
|
2563
|
-
$metadata: deserializeMetadata(output),
|
|
2564
|
-
};
|
|
2565
|
-
break;
|
|
2566
|
-
case "ResourceNotFoundException":
|
|
2567
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
2568
|
-
response = {
|
|
2569
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2570
|
-
name: errorCode,
|
|
2571
|
-
$metadata: deserializeMetadata(output),
|
|
2572
|
-
};
|
|
2573
|
-
break;
|
|
2574
|
-
case "ServerInternalErrorException":
|
|
2575
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
2576
|
-
response = {
|
|
2577
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2578
|
-
name: errorCode,
|
|
2579
|
-
$metadata: deserializeMetadata(output),
|
|
2580
|
-
};
|
|
2581
|
-
break;
|
|
2582
|
-
default:
|
|
2583
|
-
const parsedBody = parsedOutput.body;
|
|
2584
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2585
|
-
response = {
|
|
2586
|
-
...parsedBody,
|
|
2587
|
-
name: `${errorCode}`,
|
|
2588
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2589
|
-
$fault: "client",
|
|
2590
|
-
$metadata: deserializeMetadata(output),
|
|
2591
|
-
} as any;
|
|
2592
|
-
}
|
|
2593
|
-
const message = response.message || response.Message || errorCode;
|
|
2594
|
-
response.message = message;
|
|
2595
|
-
delete response.Message;
|
|
2596
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2597
|
-
};
|
|
2598
|
-
|
|
2599
|
-
export const deserializeAws_json1_1StopDataCollectionByAgentIdsCommand = async (
|
|
2600
|
-
output: __HttpResponse,
|
|
2601
|
-
context: __SerdeContext
|
|
2602
|
-
): Promise<StopDataCollectionByAgentIdsCommandOutput> => {
|
|
2603
|
-
if (output.statusCode >= 300) {
|
|
2604
|
-
return deserializeAws_json1_1StopDataCollectionByAgentIdsCommandError(output, context);
|
|
2605
|
-
}
|
|
2606
|
-
const data: any = await parseBody(output.body, context);
|
|
2607
|
-
let contents: any = {};
|
|
2608
|
-
contents = deserializeAws_json1_1StopDataCollectionByAgentIdsResponse(data, context);
|
|
2609
|
-
const response: StopDataCollectionByAgentIdsCommandOutput = {
|
|
2610
|
-
$metadata: deserializeMetadata(output),
|
|
2611
|
-
...contents,
|
|
2612
|
-
};
|
|
2613
|
-
return Promise.resolve(response);
|
|
2614
|
-
};
|
|
2615
|
-
|
|
2616
|
-
const deserializeAws_json1_1StopDataCollectionByAgentIdsCommandError = async (
|
|
2617
|
-
output: __HttpResponse,
|
|
2618
|
-
context: __SerdeContext
|
|
2619
|
-
): Promise<StopDataCollectionByAgentIdsCommandOutput> => {
|
|
2620
|
-
const parsedOutput: any = {
|
|
2621
|
-
...output,
|
|
2622
|
-
body: await parseBody(output.body, context),
|
|
2623
|
-
};
|
|
2624
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2625
|
-
let errorCode: string = "UnknownError";
|
|
2626
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2627
|
-
switch (errorCode) {
|
|
2628
|
-
case "AuthorizationErrorException":
|
|
2629
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
2630
|
-
response = {
|
|
2631
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
2632
|
-
name: errorCode,
|
|
2633
|
-
$metadata: deserializeMetadata(output),
|
|
2634
|
-
};
|
|
2635
|
-
break;
|
|
2636
|
-
case "HomeRegionNotSetException":
|
|
2637
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
2638
|
-
response = {
|
|
2639
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
2640
|
-
name: errorCode,
|
|
2641
|
-
$metadata: deserializeMetadata(output),
|
|
2642
|
-
};
|
|
2643
|
-
break;
|
|
2644
|
-
case "InvalidParameterException":
|
|
2645
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
2646
|
-
response = {
|
|
2647
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2648
|
-
name: errorCode,
|
|
2649
|
-
$metadata: deserializeMetadata(output),
|
|
2650
|
-
};
|
|
2651
|
-
break;
|
|
2652
|
-
case "InvalidParameterValueException":
|
|
2653
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
2654
|
-
response = {
|
|
2655
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2656
|
-
name: errorCode,
|
|
2657
|
-
$metadata: deserializeMetadata(output),
|
|
2658
|
-
};
|
|
2659
|
-
break;
|
|
2660
|
-
case "ServerInternalErrorException":
|
|
2661
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
2662
|
-
response = {
|
|
2663
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2664
|
-
name: errorCode,
|
|
2665
|
-
$metadata: deserializeMetadata(output),
|
|
2666
|
-
};
|
|
2667
|
-
break;
|
|
2668
|
-
default:
|
|
2669
|
-
const parsedBody = parsedOutput.body;
|
|
2670
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2671
|
-
response = {
|
|
2672
|
-
...parsedBody,
|
|
2673
|
-
name: `${errorCode}`,
|
|
2674
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2675
|
-
$fault: "client",
|
|
2676
|
-
$metadata: deserializeMetadata(output),
|
|
2677
|
-
} as any;
|
|
2678
|
-
}
|
|
2679
|
-
const message = response.message || response.Message || errorCode;
|
|
2680
|
-
response.message = message;
|
|
2681
|
-
delete response.Message;
|
|
2682
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2683
|
-
};
|
|
2684
|
-
|
|
2685
|
-
export const deserializeAws_json1_1UpdateApplicationCommand = async (
|
|
2686
|
-
output: __HttpResponse,
|
|
2687
|
-
context: __SerdeContext
|
|
2688
|
-
): Promise<UpdateApplicationCommandOutput> => {
|
|
2689
|
-
if (output.statusCode >= 300) {
|
|
2690
|
-
return deserializeAws_json1_1UpdateApplicationCommandError(output, context);
|
|
2691
|
-
}
|
|
2692
|
-
const data: any = await parseBody(output.body, context);
|
|
2693
|
-
let contents: any = {};
|
|
2694
|
-
contents = deserializeAws_json1_1UpdateApplicationResponse(data, context);
|
|
2695
|
-
const response: UpdateApplicationCommandOutput = {
|
|
2696
|
-
$metadata: deserializeMetadata(output),
|
|
2697
|
-
...contents,
|
|
2698
|
-
};
|
|
2699
|
-
return Promise.resolve(response);
|
|
2700
|
-
};
|
|
2701
|
-
|
|
2702
|
-
const deserializeAws_json1_1UpdateApplicationCommandError = async (
|
|
2703
|
-
output: __HttpResponse,
|
|
2704
|
-
context: __SerdeContext
|
|
2705
|
-
): Promise<UpdateApplicationCommandOutput> => {
|
|
2706
|
-
const parsedOutput: any = {
|
|
2707
|
-
...output,
|
|
2708
|
-
body: await parseBody(output.body, context),
|
|
2709
|
-
};
|
|
2710
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2711
|
-
let errorCode: string = "UnknownError";
|
|
2712
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2713
|
-
switch (errorCode) {
|
|
2714
|
-
case "AuthorizationErrorException":
|
|
2715
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
2716
|
-
response = {
|
|
2717
|
-
...(await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)),
|
|
2718
|
-
name: errorCode,
|
|
2719
|
-
$metadata: deserializeMetadata(output),
|
|
2720
|
-
};
|
|
2721
|
-
break;
|
|
2722
|
-
case "HomeRegionNotSetException":
|
|
2723
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
2724
|
-
response = {
|
|
2725
|
-
...(await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)),
|
|
2726
|
-
name: errorCode,
|
|
2727
|
-
$metadata: deserializeMetadata(output),
|
|
2728
|
-
};
|
|
2729
|
-
break;
|
|
2730
|
-
case "InvalidParameterException":
|
|
2731
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
2732
|
-
response = {
|
|
2733
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2734
|
-
name: errorCode,
|
|
2735
|
-
$metadata: deserializeMetadata(output),
|
|
2736
|
-
};
|
|
2737
|
-
break;
|
|
2738
|
-
case "InvalidParameterValueException":
|
|
2739
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
2740
|
-
response = {
|
|
2741
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2742
|
-
name: errorCode,
|
|
2743
|
-
$metadata: deserializeMetadata(output),
|
|
2744
|
-
};
|
|
2745
|
-
break;
|
|
2746
|
-
case "ServerInternalErrorException":
|
|
2747
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
2748
|
-
response = {
|
|
2749
|
-
...(await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2750
|
-
name: errorCode,
|
|
2751
|
-
$metadata: deserializeMetadata(output),
|
|
2752
|
-
};
|
|
2753
|
-
break;
|
|
2754
|
-
default:
|
|
2755
|
-
const parsedBody = parsedOutput.body;
|
|
2756
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2757
|
-
response = {
|
|
2758
|
-
...parsedBody,
|
|
2759
|
-
name: `${errorCode}`,
|
|
2760
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2761
|
-
$fault: "client",
|
|
2762
|
-
$metadata: deserializeMetadata(output),
|
|
2763
|
-
} as any;
|
|
2764
|
-
}
|
|
2765
|
-
const message = response.message || response.Message || errorCode;
|
|
2766
|
-
response.message = message;
|
|
2767
|
-
delete response.Message;
|
|
2768
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2769
|
-
};
|
|
2770
|
-
|
|
2771
|
-
const deserializeAws_json1_1AuthorizationErrorExceptionResponse = async (
|
|
2772
|
-
parsedOutput: any,
|
|
2773
|
-
context: __SerdeContext
|
|
2774
|
-
): Promise<AuthorizationErrorException> => {
|
|
2775
|
-
const body = parsedOutput.body;
|
|
2776
|
-
const deserialized: any = deserializeAws_json1_1AuthorizationErrorException(body, context);
|
|
2777
|
-
const contents: AuthorizationErrorException = {
|
|
2778
|
-
name: "AuthorizationErrorException",
|
|
2779
|
-
$fault: "client",
|
|
2780
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2781
|
-
...deserialized,
|
|
2782
|
-
};
|
|
2783
|
-
return contents;
|
|
2784
|
-
};
|
|
2785
|
-
|
|
2786
|
-
const deserializeAws_json1_1ConflictErrorExceptionResponse = async (
|
|
2787
|
-
parsedOutput: any,
|
|
2788
|
-
context: __SerdeContext
|
|
2789
|
-
): Promise<ConflictErrorException> => {
|
|
2790
|
-
const body = parsedOutput.body;
|
|
2791
|
-
const deserialized: any = deserializeAws_json1_1ConflictErrorException(body, context);
|
|
2792
|
-
const contents: ConflictErrorException = {
|
|
2793
|
-
name: "ConflictErrorException",
|
|
2794
|
-
$fault: "client",
|
|
2795
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2796
|
-
...deserialized,
|
|
2797
|
-
};
|
|
2798
|
-
return contents;
|
|
2799
|
-
};
|
|
2800
|
-
|
|
2801
|
-
const deserializeAws_json1_1HomeRegionNotSetExceptionResponse = async (
|
|
2802
|
-
parsedOutput: any,
|
|
2803
|
-
context: __SerdeContext
|
|
2804
|
-
): Promise<HomeRegionNotSetException> => {
|
|
2805
|
-
const body = parsedOutput.body;
|
|
2806
|
-
const deserialized: any = deserializeAws_json1_1HomeRegionNotSetException(body, context);
|
|
2807
|
-
const contents: HomeRegionNotSetException = {
|
|
2808
|
-
name: "HomeRegionNotSetException",
|
|
2809
|
-
$fault: "client",
|
|
2810
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2811
|
-
...deserialized,
|
|
2812
|
-
};
|
|
2813
|
-
return contents;
|
|
2814
|
-
};
|
|
2815
|
-
|
|
2816
|
-
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (
|
|
2817
|
-
parsedOutput: any,
|
|
2818
|
-
context: __SerdeContext
|
|
2819
|
-
): Promise<InvalidParameterException> => {
|
|
2820
|
-
const body = parsedOutput.body;
|
|
2821
|
-
const deserialized: any = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
2822
|
-
const contents: InvalidParameterException = {
|
|
2823
|
-
name: "InvalidParameterException",
|
|
2824
|
-
$fault: "client",
|
|
2825
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2826
|
-
...deserialized,
|
|
2827
|
-
};
|
|
2828
|
-
return contents;
|
|
2829
|
-
};
|
|
2830
|
-
|
|
2831
|
-
const deserializeAws_json1_1InvalidParameterValueExceptionResponse = async (
|
|
2832
|
-
parsedOutput: any,
|
|
2833
|
-
context: __SerdeContext
|
|
2834
|
-
): Promise<InvalidParameterValueException> => {
|
|
2835
|
-
const body = parsedOutput.body;
|
|
2836
|
-
const deserialized: any = deserializeAws_json1_1InvalidParameterValueException(body, context);
|
|
2837
|
-
const contents: InvalidParameterValueException = {
|
|
2838
|
-
name: "InvalidParameterValueException",
|
|
2839
|
-
$fault: "client",
|
|
2840
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2841
|
-
...deserialized,
|
|
2842
|
-
};
|
|
2843
|
-
return contents;
|
|
2844
|
-
};
|
|
2845
|
-
|
|
2846
|
-
const deserializeAws_json1_1OperationNotPermittedExceptionResponse = async (
|
|
2847
|
-
parsedOutput: any,
|
|
2848
|
-
context: __SerdeContext
|
|
2849
|
-
): Promise<OperationNotPermittedException> => {
|
|
2850
|
-
const body = parsedOutput.body;
|
|
2851
|
-
const deserialized: any = deserializeAws_json1_1OperationNotPermittedException(body, context);
|
|
2852
|
-
const contents: OperationNotPermittedException = {
|
|
2853
|
-
name: "OperationNotPermittedException",
|
|
2854
|
-
$fault: "client",
|
|
2855
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2856
|
-
...deserialized,
|
|
2857
|
-
};
|
|
2858
|
-
return contents;
|
|
2859
|
-
};
|
|
2860
|
-
|
|
2861
|
-
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (
|
|
2862
|
-
parsedOutput: any,
|
|
2863
|
-
context: __SerdeContext
|
|
2864
|
-
): Promise<ResourceInUseException> => {
|
|
2865
|
-
const body = parsedOutput.body;
|
|
2866
|
-
const deserialized: any = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
2867
|
-
const contents: ResourceInUseException = {
|
|
2868
|
-
name: "ResourceInUseException",
|
|
2869
|
-
$fault: "client",
|
|
2870
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2871
|
-
...deserialized,
|
|
2872
|
-
};
|
|
2873
|
-
return contents;
|
|
2874
|
-
};
|
|
2875
|
-
|
|
2876
|
-
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (
|
|
2877
|
-
parsedOutput: any,
|
|
2878
|
-
context: __SerdeContext
|
|
2879
|
-
): Promise<ResourceNotFoundException> => {
|
|
2880
|
-
const body = parsedOutput.body;
|
|
2881
|
-
const deserialized: any = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2882
|
-
const contents: ResourceNotFoundException = {
|
|
2883
|
-
name: "ResourceNotFoundException",
|
|
2884
|
-
$fault: "client",
|
|
2885
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2886
|
-
...deserialized,
|
|
2887
|
-
};
|
|
2888
|
-
return contents;
|
|
2889
|
-
};
|
|
2890
|
-
|
|
2891
|
-
const deserializeAws_json1_1ServerInternalErrorExceptionResponse = async (
|
|
2892
|
-
parsedOutput: any,
|
|
2893
|
-
context: __SerdeContext
|
|
2894
|
-
): Promise<ServerInternalErrorException> => {
|
|
2895
|
-
const body = parsedOutput.body;
|
|
2896
|
-
const deserialized: any = deserializeAws_json1_1ServerInternalErrorException(body, context);
|
|
2897
|
-
const contents: ServerInternalErrorException = {
|
|
2898
|
-
name: "ServerInternalErrorException",
|
|
2899
|
-
$fault: "server",
|
|
2900
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2901
|
-
...deserialized,
|
|
2902
|
-
};
|
|
2903
|
-
return contents;
|
|
2904
|
-
};
|
|
2905
|
-
|
|
2906
|
-
const serializeAws_json1_1AgentIds = (input: string[], context: __SerdeContext): any => {
|
|
2907
|
-
return input
|
|
2908
|
-
.filter((e: any) => e != null)
|
|
2909
|
-
.map((entry) => {
|
|
2910
|
-
if (entry === null) {
|
|
2911
|
-
return null as any;
|
|
2912
|
-
}
|
|
2913
|
-
return entry;
|
|
2914
|
-
});
|
|
2915
|
-
};
|
|
2916
|
-
|
|
2917
|
-
const serializeAws_json1_1ApplicationIdsList = (input: string[], context: __SerdeContext): any => {
|
|
2918
|
-
return input
|
|
2919
|
-
.filter((e: any) => e != null)
|
|
2920
|
-
.map((entry) => {
|
|
2921
|
-
if (entry === null) {
|
|
2922
|
-
return null as any;
|
|
2923
|
-
}
|
|
2924
|
-
return entry;
|
|
2925
|
-
});
|
|
2926
|
-
};
|
|
2927
|
-
|
|
2928
|
-
const serializeAws_json1_1AssociateConfigurationItemsToApplicationRequest = (
|
|
2929
|
-
input: AssociateConfigurationItemsToApplicationRequest,
|
|
2930
|
-
context: __SerdeContext
|
|
2931
|
-
): any => {
|
|
2932
|
-
return {
|
|
2933
|
-
...(input.applicationConfigurationId !== undefined &&
|
|
2934
|
-
input.applicationConfigurationId !== null && { applicationConfigurationId: input.applicationConfigurationId }),
|
|
2935
|
-
...(input.configurationIds !== undefined &&
|
|
2936
|
-
input.configurationIds !== null && {
|
|
2937
|
-
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
2938
|
-
}),
|
|
2939
|
-
};
|
|
2940
|
-
};
|
|
2941
|
-
|
|
2942
|
-
const serializeAws_json1_1BatchDeleteImportDataRequest = (
|
|
2943
|
-
input: BatchDeleteImportDataRequest,
|
|
2944
|
-
context: __SerdeContext
|
|
2945
|
-
): any => {
|
|
2946
|
-
return {
|
|
2947
|
-
...(input.importTaskIds !== undefined &&
|
|
2948
|
-
input.importTaskIds !== null && {
|
|
2949
|
-
importTaskIds: serializeAws_json1_1ToDeleteIdentifierList(input.importTaskIds, context),
|
|
2950
|
-
}),
|
|
2951
|
-
};
|
|
2952
|
-
};
|
|
2953
|
-
|
|
2954
|
-
const serializeAws_json1_1ConfigurationIdList = (input: string[], context: __SerdeContext): any => {
|
|
2955
|
-
return input
|
|
2956
|
-
.filter((e: any) => e != null)
|
|
2957
|
-
.map((entry) => {
|
|
2958
|
-
if (entry === null) {
|
|
2959
|
-
return null as any;
|
|
2960
|
-
}
|
|
2961
|
-
return entry;
|
|
2962
|
-
});
|
|
2963
|
-
};
|
|
2964
|
-
|
|
2965
|
-
const serializeAws_json1_1ContinuousExportIds = (input: string[], context: __SerdeContext): any => {
|
|
2966
|
-
return input
|
|
2967
|
-
.filter((e: any) => e != null)
|
|
2968
|
-
.map((entry) => {
|
|
2969
|
-
if (entry === null) {
|
|
2970
|
-
return null as any;
|
|
2971
|
-
}
|
|
2972
|
-
return entry;
|
|
2973
|
-
});
|
|
2974
|
-
};
|
|
2975
|
-
|
|
2976
|
-
const serializeAws_json1_1CreateApplicationRequest = (
|
|
2977
|
-
input: CreateApplicationRequest,
|
|
2978
|
-
context: __SerdeContext
|
|
2979
|
-
): any => {
|
|
2980
|
-
return {
|
|
2981
|
-
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
2982
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
2983
|
-
};
|
|
2984
|
-
};
|
|
2985
|
-
|
|
2986
|
-
const serializeAws_json1_1CreateTagsRequest = (input: CreateTagsRequest, context: __SerdeContext): any => {
|
|
2987
|
-
return {
|
|
2988
|
-
...(input.configurationIds !== undefined &&
|
|
2989
|
-
input.configurationIds !== null && {
|
|
2990
|
-
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
2991
|
-
}),
|
|
2992
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagSet(input.tags, context) }),
|
|
2993
|
-
};
|
|
2994
|
-
};
|
|
2995
|
-
|
|
2996
|
-
const serializeAws_json1_1DeleteApplicationsRequest = (
|
|
2997
|
-
input: DeleteApplicationsRequest,
|
|
2998
|
-
context: __SerdeContext
|
|
2999
|
-
): any => {
|
|
3000
|
-
return {
|
|
3001
|
-
...(input.configurationIds !== undefined &&
|
|
3002
|
-
input.configurationIds !== null && {
|
|
3003
|
-
configurationIds: serializeAws_json1_1ApplicationIdsList(input.configurationIds, context),
|
|
3004
|
-
}),
|
|
3005
|
-
};
|
|
3006
|
-
};
|
|
3007
|
-
|
|
3008
|
-
const serializeAws_json1_1DeleteTagsRequest = (input: DeleteTagsRequest, context: __SerdeContext): any => {
|
|
3009
|
-
return {
|
|
3010
|
-
...(input.configurationIds !== undefined &&
|
|
3011
|
-
input.configurationIds !== null && {
|
|
3012
|
-
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
3013
|
-
}),
|
|
3014
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagSet(input.tags, context) }),
|
|
3015
|
-
};
|
|
3016
|
-
};
|
|
3017
|
-
|
|
3018
|
-
const serializeAws_json1_1DescribeAgentsRequest = (input: DescribeAgentsRequest, context: __SerdeContext): any => {
|
|
3019
|
-
return {
|
|
3020
|
-
...(input.agentIds !== undefined &&
|
|
3021
|
-
input.agentIds !== null && { agentIds: serializeAws_json1_1AgentIds(input.agentIds, context) }),
|
|
3022
|
-
...(input.filters !== undefined &&
|
|
3023
|
-
input.filters !== null && { filters: serializeAws_json1_1Filters(input.filters, context) }),
|
|
3024
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3025
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3026
|
-
};
|
|
3027
|
-
};
|
|
3028
|
-
|
|
3029
|
-
const serializeAws_json1_1DescribeConfigurationsRequest = (
|
|
3030
|
-
input: DescribeConfigurationsRequest,
|
|
3031
|
-
context: __SerdeContext
|
|
3032
|
-
): any => {
|
|
3033
|
-
return {
|
|
3034
|
-
...(input.configurationIds !== undefined &&
|
|
3035
|
-
input.configurationIds !== null && {
|
|
3036
|
-
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
3037
|
-
}),
|
|
3038
|
-
};
|
|
3039
|
-
};
|
|
3040
|
-
|
|
3041
|
-
const serializeAws_json1_1DescribeContinuousExportsRequest = (
|
|
3042
|
-
input: DescribeContinuousExportsRequest,
|
|
3043
|
-
context: __SerdeContext
|
|
3044
|
-
): any => {
|
|
3045
|
-
return {
|
|
3046
|
-
...(input.exportIds !== undefined &&
|
|
3047
|
-
input.exportIds !== null && { exportIds: serializeAws_json1_1ContinuousExportIds(input.exportIds, context) }),
|
|
3048
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3049
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3050
|
-
};
|
|
3051
|
-
};
|
|
3052
|
-
|
|
3053
|
-
const serializeAws_json1_1DescribeExportConfigurationsRequest = (
|
|
3054
|
-
input: DescribeExportConfigurationsRequest,
|
|
3055
|
-
context: __SerdeContext
|
|
3056
|
-
): any => {
|
|
3057
|
-
return {
|
|
3058
|
-
...(input.exportIds !== undefined &&
|
|
3059
|
-
input.exportIds !== null && { exportIds: serializeAws_json1_1ExportIds(input.exportIds, context) }),
|
|
3060
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3061
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3062
|
-
};
|
|
3063
|
-
};
|
|
3064
|
-
|
|
3065
|
-
const serializeAws_json1_1DescribeExportTasksRequest = (
|
|
3066
|
-
input: DescribeExportTasksRequest,
|
|
3067
|
-
context: __SerdeContext
|
|
3068
|
-
): any => {
|
|
3069
|
-
return {
|
|
3070
|
-
...(input.exportIds !== undefined &&
|
|
3071
|
-
input.exportIds !== null && { exportIds: serializeAws_json1_1ExportIds(input.exportIds, context) }),
|
|
3072
|
-
...(input.filters !== undefined &&
|
|
3073
|
-
input.filters !== null && { filters: serializeAws_json1_1ExportFilters(input.filters, context) }),
|
|
3074
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3075
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3076
|
-
};
|
|
3077
|
-
};
|
|
3078
|
-
|
|
3079
|
-
const serializeAws_json1_1DescribeImportTasksFilterList = (input: ImportTaskFilter[], context: __SerdeContext): any => {
|
|
3080
|
-
return input
|
|
3081
|
-
.filter((e: any) => e != null)
|
|
3082
|
-
.map((entry) => {
|
|
3083
|
-
if (entry === null) {
|
|
3084
|
-
return null as any;
|
|
3085
|
-
}
|
|
3086
|
-
return serializeAws_json1_1ImportTaskFilter(entry, context);
|
|
3087
|
-
});
|
|
3088
|
-
};
|
|
3089
|
-
|
|
3090
|
-
const serializeAws_json1_1DescribeImportTasksRequest = (
|
|
3091
|
-
input: DescribeImportTasksRequest,
|
|
3092
|
-
context: __SerdeContext
|
|
3093
|
-
): any => {
|
|
3094
|
-
return {
|
|
3095
|
-
...(input.filters !== undefined &&
|
|
3096
|
-
input.filters !== null && { filters: serializeAws_json1_1DescribeImportTasksFilterList(input.filters, context) }),
|
|
3097
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3098
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3099
|
-
};
|
|
3100
|
-
};
|
|
3101
|
-
|
|
3102
|
-
const serializeAws_json1_1DescribeTagsRequest = (input: DescribeTagsRequest, context: __SerdeContext): any => {
|
|
3103
|
-
return {
|
|
3104
|
-
...(input.filters !== undefined &&
|
|
3105
|
-
input.filters !== null && { filters: serializeAws_json1_1TagFilters(input.filters, context) }),
|
|
3106
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3107
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3108
|
-
};
|
|
3109
|
-
};
|
|
3110
|
-
|
|
3111
|
-
const serializeAws_json1_1DisassociateConfigurationItemsFromApplicationRequest = (
|
|
3112
|
-
input: DisassociateConfigurationItemsFromApplicationRequest,
|
|
3113
|
-
context: __SerdeContext
|
|
3114
|
-
): any => {
|
|
3115
|
-
return {
|
|
3116
|
-
...(input.applicationConfigurationId !== undefined &&
|
|
3117
|
-
input.applicationConfigurationId !== null && { applicationConfigurationId: input.applicationConfigurationId }),
|
|
3118
|
-
...(input.configurationIds !== undefined &&
|
|
3119
|
-
input.configurationIds !== null && {
|
|
3120
|
-
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
3121
|
-
}),
|
|
3122
|
-
};
|
|
3123
|
-
};
|
|
3124
|
-
|
|
3125
|
-
const serializeAws_json1_1ExportDataFormats = (input: (ExportDataFormat | string)[], context: __SerdeContext): any => {
|
|
3126
|
-
return input
|
|
3127
|
-
.filter((e: any) => e != null)
|
|
3128
|
-
.map((entry) => {
|
|
3129
|
-
if (entry === null) {
|
|
3130
|
-
return null as any;
|
|
3131
|
-
}
|
|
3132
|
-
return entry;
|
|
3133
|
-
});
|
|
3134
|
-
};
|
|
3135
|
-
|
|
3136
|
-
const serializeAws_json1_1ExportFilter = (input: ExportFilter, context: __SerdeContext): any => {
|
|
3137
|
-
return {
|
|
3138
|
-
...(input.condition !== undefined && input.condition !== null && { condition: input.condition }),
|
|
3139
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3140
|
-
...(input.values !== undefined &&
|
|
3141
|
-
input.values !== null && { values: serializeAws_json1_1FilterValues(input.values, context) }),
|
|
3142
|
-
};
|
|
3143
|
-
};
|
|
3144
|
-
|
|
3145
|
-
const serializeAws_json1_1ExportFilters = (input: ExportFilter[], context: __SerdeContext): any => {
|
|
3146
|
-
return input
|
|
3147
|
-
.filter((e: any) => e != null)
|
|
3148
|
-
.map((entry) => {
|
|
3149
|
-
if (entry === null) {
|
|
3150
|
-
return null as any;
|
|
3151
|
-
}
|
|
3152
|
-
return serializeAws_json1_1ExportFilter(entry, context);
|
|
3153
|
-
});
|
|
3154
|
-
};
|
|
3155
|
-
|
|
3156
|
-
const serializeAws_json1_1ExportIds = (input: string[], context: __SerdeContext): any => {
|
|
3157
|
-
return input
|
|
3158
|
-
.filter((e: any) => e != null)
|
|
3159
|
-
.map((entry) => {
|
|
3160
|
-
if (entry === null) {
|
|
3161
|
-
return null as any;
|
|
3162
|
-
}
|
|
3163
|
-
return entry;
|
|
3164
|
-
});
|
|
3165
|
-
};
|
|
3166
|
-
|
|
3167
|
-
const serializeAws_json1_1Filter = (input: Filter, context: __SerdeContext): any => {
|
|
3168
|
-
return {
|
|
3169
|
-
...(input.condition !== undefined && input.condition !== null && { condition: input.condition }),
|
|
3170
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3171
|
-
...(input.values !== undefined &&
|
|
3172
|
-
input.values !== null && { values: serializeAws_json1_1FilterValues(input.values, context) }),
|
|
3173
|
-
};
|
|
3174
|
-
};
|
|
3175
|
-
|
|
3176
|
-
const serializeAws_json1_1Filters = (input: Filter[], context: __SerdeContext): any => {
|
|
3177
|
-
return input
|
|
3178
|
-
.filter((e: any) => e != null)
|
|
3179
|
-
.map((entry) => {
|
|
3180
|
-
if (entry === null) {
|
|
3181
|
-
return null as any;
|
|
3182
|
-
}
|
|
3183
|
-
return serializeAws_json1_1Filter(entry, context);
|
|
3184
|
-
});
|
|
3185
|
-
};
|
|
3186
|
-
|
|
3187
|
-
const serializeAws_json1_1FilterValues = (input: string[], context: __SerdeContext): any => {
|
|
3188
|
-
return input
|
|
3189
|
-
.filter((e: any) => e != null)
|
|
3190
|
-
.map((entry) => {
|
|
3191
|
-
if (entry === null) {
|
|
3192
|
-
return null as any;
|
|
3193
|
-
}
|
|
3194
|
-
return entry;
|
|
3195
|
-
});
|
|
3196
|
-
};
|
|
3197
|
-
|
|
3198
|
-
const serializeAws_json1_1GetDiscoverySummaryRequest = (
|
|
3199
|
-
input: GetDiscoverySummaryRequest,
|
|
3200
|
-
context: __SerdeContext
|
|
3201
|
-
): any => {
|
|
3202
|
-
return {};
|
|
3203
|
-
};
|
|
3204
|
-
|
|
3205
|
-
const serializeAws_json1_1ImportTaskFilter = (input: ImportTaskFilter, context: __SerdeContext): any => {
|
|
3206
|
-
return {
|
|
3207
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3208
|
-
...(input.values !== undefined &&
|
|
3209
|
-
input.values !== null && { values: serializeAws_json1_1ImportTaskFilterValueList(input.values, context) }),
|
|
3210
|
-
};
|
|
3211
|
-
};
|
|
3212
|
-
|
|
3213
|
-
const serializeAws_json1_1ImportTaskFilterValueList = (input: string[], context: __SerdeContext): any => {
|
|
3214
|
-
return input
|
|
3215
|
-
.filter((e: any) => e != null)
|
|
3216
|
-
.map((entry) => {
|
|
3217
|
-
if (entry === null) {
|
|
3218
|
-
return null as any;
|
|
3219
|
-
}
|
|
3220
|
-
return entry;
|
|
3221
|
-
});
|
|
3222
|
-
};
|
|
3223
|
-
|
|
3224
|
-
const serializeAws_json1_1ListConfigurationsRequest = (
|
|
3225
|
-
input: ListConfigurationsRequest,
|
|
3226
|
-
context: __SerdeContext
|
|
3227
|
-
): any => {
|
|
3228
|
-
return {
|
|
3229
|
-
...(input.configurationType !== undefined &&
|
|
3230
|
-
input.configurationType !== null && { configurationType: input.configurationType }),
|
|
3231
|
-
...(input.filters !== undefined &&
|
|
3232
|
-
input.filters !== null && { filters: serializeAws_json1_1Filters(input.filters, context) }),
|
|
3233
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3234
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3235
|
-
...(input.orderBy !== undefined &&
|
|
3236
|
-
input.orderBy !== null && { orderBy: serializeAws_json1_1OrderByList(input.orderBy, context) }),
|
|
3237
|
-
};
|
|
3238
|
-
};
|
|
3239
|
-
|
|
3240
|
-
const serializeAws_json1_1ListServerNeighborsRequest = (
|
|
3241
|
-
input: ListServerNeighborsRequest,
|
|
3242
|
-
context: __SerdeContext
|
|
3243
|
-
): any => {
|
|
3244
|
-
return {
|
|
3245
|
-
...(input.configurationId !== undefined &&
|
|
3246
|
-
input.configurationId !== null && { configurationId: input.configurationId }),
|
|
3247
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3248
|
-
...(input.neighborConfigurationIds !== undefined &&
|
|
3249
|
-
input.neighborConfigurationIds !== null && {
|
|
3250
|
-
neighborConfigurationIds: serializeAws_json1_1ConfigurationIdList(input.neighborConfigurationIds, context),
|
|
3251
|
-
}),
|
|
3252
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3253
|
-
...(input.portInformationNeeded !== undefined &&
|
|
3254
|
-
input.portInformationNeeded !== null && { portInformationNeeded: input.portInformationNeeded }),
|
|
3255
|
-
};
|
|
3256
|
-
};
|
|
3257
|
-
|
|
3258
|
-
const serializeAws_json1_1OrderByElement = (input: OrderByElement, context: __SerdeContext): any => {
|
|
3259
|
-
return {
|
|
3260
|
-
...(input.fieldName !== undefined && input.fieldName !== null && { fieldName: input.fieldName }),
|
|
3261
|
-
...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
|
|
3262
|
-
};
|
|
3263
|
-
};
|
|
3264
|
-
|
|
3265
|
-
const serializeAws_json1_1OrderByList = (input: OrderByElement[], context: __SerdeContext): any => {
|
|
3266
|
-
return input
|
|
3267
|
-
.filter((e: any) => e != null)
|
|
3268
|
-
.map((entry) => {
|
|
3269
|
-
if (entry === null) {
|
|
3270
|
-
return null as any;
|
|
3271
|
-
}
|
|
3272
|
-
return serializeAws_json1_1OrderByElement(entry, context);
|
|
3273
|
-
});
|
|
3274
|
-
};
|
|
3275
|
-
|
|
3276
|
-
const serializeAws_json1_1StartContinuousExportRequest = (
|
|
3277
|
-
input: StartContinuousExportRequest,
|
|
3278
|
-
context: __SerdeContext
|
|
3279
|
-
): any => {
|
|
3280
|
-
return {};
|
|
3281
|
-
};
|
|
3282
|
-
|
|
3283
|
-
const serializeAws_json1_1StartDataCollectionByAgentIdsRequest = (
|
|
3284
|
-
input: StartDataCollectionByAgentIdsRequest,
|
|
3285
|
-
context: __SerdeContext
|
|
3286
|
-
): any => {
|
|
3287
|
-
return {
|
|
3288
|
-
...(input.agentIds !== undefined &&
|
|
3289
|
-
input.agentIds !== null && { agentIds: serializeAws_json1_1AgentIds(input.agentIds, context) }),
|
|
3290
|
-
};
|
|
3291
|
-
};
|
|
3292
|
-
|
|
3293
|
-
const serializeAws_json1_1StartExportTaskRequest = (input: StartExportTaskRequest, context: __SerdeContext): any => {
|
|
3294
|
-
return {
|
|
3295
|
-
...(input.endTime !== undefined &&
|
|
3296
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
3297
|
-
...(input.exportDataFormat !== undefined &&
|
|
3298
|
-
input.exportDataFormat !== null && {
|
|
3299
|
-
exportDataFormat: serializeAws_json1_1ExportDataFormats(input.exportDataFormat, context),
|
|
3300
|
-
}),
|
|
3301
|
-
...(input.filters !== undefined &&
|
|
3302
|
-
input.filters !== null && { filters: serializeAws_json1_1ExportFilters(input.filters, context) }),
|
|
3303
|
-
...(input.startTime !== undefined &&
|
|
3304
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
3305
|
-
};
|
|
3306
|
-
};
|
|
3307
|
-
|
|
3308
|
-
const serializeAws_json1_1StartImportTaskRequest = (input: StartImportTaskRequest, context: __SerdeContext): any => {
|
|
3309
|
-
return {
|
|
3310
|
-
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
3311
|
-
...(input.importUrl !== undefined && input.importUrl !== null && { importUrl: input.importUrl }),
|
|
3312
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3313
|
-
};
|
|
3314
|
-
};
|
|
3315
|
-
|
|
3316
|
-
const serializeAws_json1_1StopContinuousExportRequest = (
|
|
3317
|
-
input: StopContinuousExportRequest,
|
|
3318
|
-
context: __SerdeContext
|
|
3319
|
-
): any => {
|
|
3320
|
-
return {
|
|
3321
|
-
...(input.exportId !== undefined && input.exportId !== null && { exportId: input.exportId }),
|
|
3322
|
-
};
|
|
3323
|
-
};
|
|
3324
|
-
|
|
3325
|
-
const serializeAws_json1_1StopDataCollectionByAgentIdsRequest = (
|
|
3326
|
-
input: StopDataCollectionByAgentIdsRequest,
|
|
3327
|
-
context: __SerdeContext
|
|
3328
|
-
): any => {
|
|
3329
|
-
return {
|
|
3330
|
-
...(input.agentIds !== undefined &&
|
|
3331
|
-
input.agentIds !== null && { agentIds: serializeAws_json1_1AgentIds(input.agentIds, context) }),
|
|
3332
|
-
};
|
|
3333
|
-
};
|
|
3334
|
-
|
|
3335
|
-
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
|
|
3336
|
-
return {
|
|
3337
|
-
...(input.key !== undefined && input.key !== null && { key: input.key }),
|
|
3338
|
-
...(input.value !== undefined && input.value !== null && { value: input.value }),
|
|
3339
|
-
};
|
|
3340
|
-
};
|
|
3341
|
-
|
|
3342
|
-
const serializeAws_json1_1TagFilter = (input: TagFilter, context: __SerdeContext): any => {
|
|
3343
|
-
return {
|
|
3344
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3345
|
-
...(input.values !== undefined &&
|
|
3346
|
-
input.values !== null && { values: serializeAws_json1_1FilterValues(input.values, context) }),
|
|
3347
|
-
};
|
|
3348
|
-
};
|
|
3349
|
-
|
|
3350
|
-
const serializeAws_json1_1TagFilters = (input: TagFilter[], context: __SerdeContext): any => {
|
|
3351
|
-
return input
|
|
3352
|
-
.filter((e: any) => e != null)
|
|
3353
|
-
.map((entry) => {
|
|
3354
|
-
if (entry === null) {
|
|
3355
|
-
return null as any;
|
|
3356
|
-
}
|
|
3357
|
-
return serializeAws_json1_1TagFilter(entry, context);
|
|
3358
|
-
});
|
|
3359
|
-
};
|
|
3360
|
-
|
|
3361
|
-
const serializeAws_json1_1TagSet = (input: Tag[], context: __SerdeContext): any => {
|
|
3362
|
-
return input
|
|
3363
|
-
.filter((e: any) => e != null)
|
|
3364
|
-
.map((entry) => {
|
|
3365
|
-
if (entry === null) {
|
|
3366
|
-
return null as any;
|
|
3367
|
-
}
|
|
3368
|
-
return serializeAws_json1_1Tag(entry, context);
|
|
3369
|
-
});
|
|
3370
|
-
};
|
|
3371
|
-
|
|
3372
|
-
const serializeAws_json1_1ToDeleteIdentifierList = (input: string[], context: __SerdeContext): any => {
|
|
3373
|
-
return input
|
|
3374
|
-
.filter((e: any) => e != null)
|
|
3375
|
-
.map((entry) => {
|
|
3376
|
-
if (entry === null) {
|
|
3377
|
-
return null as any;
|
|
3378
|
-
}
|
|
3379
|
-
return entry;
|
|
3380
|
-
});
|
|
3381
|
-
};
|
|
3382
|
-
|
|
3383
|
-
const serializeAws_json1_1UpdateApplicationRequest = (
|
|
3384
|
-
input: UpdateApplicationRequest,
|
|
3385
|
-
context: __SerdeContext
|
|
3386
|
-
): any => {
|
|
3387
|
-
return {
|
|
3388
|
-
...(input.configurationId !== undefined &&
|
|
3389
|
-
input.configurationId !== null && { configurationId: input.configurationId }),
|
|
3390
|
-
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
3391
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3392
|
-
};
|
|
3393
|
-
};
|
|
3394
|
-
|
|
3395
|
-
const deserializeAws_json1_1AgentConfigurationStatus = (
|
|
3396
|
-
output: any,
|
|
3397
|
-
context: __SerdeContext
|
|
3398
|
-
): AgentConfigurationStatus => {
|
|
3399
|
-
return {
|
|
3400
|
-
agentId: __expectString(output.agentId),
|
|
3401
|
-
description: __expectString(output.description),
|
|
3402
|
-
operationSucceeded: __expectBoolean(output.operationSucceeded),
|
|
3403
|
-
} as any;
|
|
3404
|
-
};
|
|
3405
|
-
|
|
3406
|
-
const deserializeAws_json1_1AgentConfigurationStatusList = (
|
|
3407
|
-
output: any,
|
|
3408
|
-
context: __SerdeContext
|
|
3409
|
-
): AgentConfigurationStatus[] => {
|
|
3410
|
-
return (output || [])
|
|
3411
|
-
.filter((e: any) => e != null)
|
|
3412
|
-
.map((entry: any) => {
|
|
3413
|
-
if (entry === null) {
|
|
3414
|
-
return null as any;
|
|
3415
|
-
}
|
|
3416
|
-
return deserializeAws_json1_1AgentConfigurationStatus(entry, context);
|
|
3417
|
-
});
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
const deserializeAws_json1_1AgentInfo = (output: any, context: __SerdeContext): AgentInfo => {
|
|
3421
|
-
return {
|
|
3422
|
-
agentId: __expectString(output.agentId),
|
|
3423
|
-
agentNetworkInfoList:
|
|
3424
|
-
output.agentNetworkInfoList !== undefined && output.agentNetworkInfoList !== null
|
|
3425
|
-
? deserializeAws_json1_1AgentNetworkInfoList(output.agentNetworkInfoList, context)
|
|
3426
|
-
: undefined,
|
|
3427
|
-
agentType: __expectString(output.agentType),
|
|
3428
|
-
collectionStatus: __expectString(output.collectionStatus),
|
|
3429
|
-
connectorId: __expectString(output.connectorId),
|
|
3430
|
-
health: __expectString(output.health),
|
|
3431
|
-
hostName: __expectString(output.hostName),
|
|
3432
|
-
lastHealthPingTime: __expectString(output.lastHealthPingTime),
|
|
3433
|
-
registeredTime: __expectString(output.registeredTime),
|
|
3434
|
-
version: __expectString(output.version),
|
|
3435
|
-
} as any;
|
|
3436
|
-
};
|
|
3437
|
-
|
|
3438
|
-
const deserializeAws_json1_1AgentNetworkInfo = (output: any, context: __SerdeContext): AgentNetworkInfo => {
|
|
3439
|
-
return {
|
|
3440
|
-
ipAddress: __expectString(output.ipAddress),
|
|
3441
|
-
macAddress: __expectString(output.macAddress),
|
|
3442
|
-
} as any;
|
|
3443
|
-
};
|
|
3444
|
-
|
|
3445
|
-
const deserializeAws_json1_1AgentNetworkInfoList = (output: any, context: __SerdeContext): AgentNetworkInfo[] => {
|
|
3446
|
-
return (output || [])
|
|
3447
|
-
.filter((e: any) => e != null)
|
|
3448
|
-
.map((entry: any) => {
|
|
3449
|
-
if (entry === null) {
|
|
3450
|
-
return null as any;
|
|
3451
|
-
}
|
|
3452
|
-
return deserializeAws_json1_1AgentNetworkInfo(entry, context);
|
|
3453
|
-
});
|
|
3454
|
-
};
|
|
3455
|
-
|
|
3456
|
-
const deserializeAws_json1_1AgentsInfo = (output: any, context: __SerdeContext): AgentInfo[] => {
|
|
3457
|
-
return (output || [])
|
|
3458
|
-
.filter((e: any) => e != null)
|
|
3459
|
-
.map((entry: any) => {
|
|
3460
|
-
if (entry === null) {
|
|
3461
|
-
return null as any;
|
|
3462
|
-
}
|
|
3463
|
-
return deserializeAws_json1_1AgentInfo(entry, context);
|
|
3464
|
-
});
|
|
3465
|
-
};
|
|
3466
|
-
|
|
3467
|
-
const deserializeAws_json1_1AssociateConfigurationItemsToApplicationResponse = (
|
|
3468
|
-
output: any,
|
|
3469
|
-
context: __SerdeContext
|
|
3470
|
-
): AssociateConfigurationItemsToApplicationResponse => {
|
|
3471
|
-
return {} as any;
|
|
3472
|
-
};
|
|
3473
|
-
|
|
3474
|
-
const deserializeAws_json1_1AuthorizationErrorException = (
|
|
3475
|
-
output: any,
|
|
3476
|
-
context: __SerdeContext
|
|
3477
|
-
): AuthorizationErrorException => {
|
|
3478
|
-
return {
|
|
3479
|
-
message: __expectString(output.message),
|
|
3480
|
-
} as any;
|
|
3481
|
-
};
|
|
3482
|
-
|
|
3483
|
-
const deserializeAws_json1_1BatchDeleteImportDataError = (
|
|
3484
|
-
output: any,
|
|
3485
|
-
context: __SerdeContext
|
|
3486
|
-
): BatchDeleteImportDataError => {
|
|
3487
|
-
return {
|
|
3488
|
-
errorCode: __expectString(output.errorCode),
|
|
3489
|
-
errorDescription: __expectString(output.errorDescription),
|
|
3490
|
-
importTaskId: __expectString(output.importTaskId),
|
|
3491
|
-
} as any;
|
|
3492
|
-
};
|
|
3493
|
-
|
|
3494
|
-
const deserializeAws_json1_1BatchDeleteImportDataErrorList = (
|
|
3495
|
-
output: any,
|
|
3496
|
-
context: __SerdeContext
|
|
3497
|
-
): BatchDeleteImportDataError[] => {
|
|
3498
|
-
return (output || [])
|
|
3499
|
-
.filter((e: any) => e != null)
|
|
3500
|
-
.map((entry: any) => {
|
|
3501
|
-
if (entry === null) {
|
|
3502
|
-
return null as any;
|
|
3503
|
-
}
|
|
3504
|
-
return deserializeAws_json1_1BatchDeleteImportDataError(entry, context);
|
|
3505
|
-
});
|
|
3506
|
-
};
|
|
3507
|
-
|
|
3508
|
-
const deserializeAws_json1_1BatchDeleteImportDataResponse = (
|
|
3509
|
-
output: any,
|
|
3510
|
-
context: __SerdeContext
|
|
3511
|
-
): BatchDeleteImportDataResponse => {
|
|
3512
|
-
return {
|
|
3513
|
-
errors:
|
|
3514
|
-
output.errors !== undefined && output.errors !== null
|
|
3515
|
-
? deserializeAws_json1_1BatchDeleteImportDataErrorList(output.errors, context)
|
|
3516
|
-
: undefined,
|
|
3517
|
-
} as any;
|
|
3518
|
-
};
|
|
3519
|
-
|
|
3520
|
-
const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContext): { [key: string]: string } => {
|
|
3521
|
-
return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
3522
|
-
if (value === null) {
|
|
3523
|
-
return acc;
|
|
3524
|
-
}
|
|
3525
|
-
return {
|
|
3526
|
-
...acc,
|
|
3527
|
-
[key]: __expectString(value) as any,
|
|
3528
|
-
};
|
|
3529
|
-
}, {});
|
|
3530
|
-
};
|
|
3531
|
-
|
|
3532
|
-
const deserializeAws_json1_1Configurations = (output: any, context: __SerdeContext): { [key: string]: string }[] => {
|
|
3533
|
-
return (output || [])
|
|
3534
|
-
.filter((e: any) => e != null)
|
|
3535
|
-
.map((entry: any) => {
|
|
3536
|
-
if (entry === null) {
|
|
3537
|
-
return null as any;
|
|
3538
|
-
}
|
|
3539
|
-
return deserializeAws_json1_1Configuration(entry, context);
|
|
3540
|
-
});
|
|
3541
|
-
};
|
|
3542
|
-
|
|
3543
|
-
const deserializeAws_json1_1ConfigurationTag = (output: any, context: __SerdeContext): ConfigurationTag => {
|
|
3544
|
-
return {
|
|
3545
|
-
configurationId: __expectString(output.configurationId),
|
|
3546
|
-
configurationType: __expectString(output.configurationType),
|
|
3547
|
-
key: __expectString(output.key),
|
|
3548
|
-
timeOfCreation:
|
|
3549
|
-
output.timeOfCreation !== undefined && output.timeOfCreation !== null
|
|
3550
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timeOfCreation)))
|
|
3551
|
-
: undefined,
|
|
3552
|
-
value: __expectString(output.value),
|
|
3553
|
-
} as any;
|
|
3554
|
-
};
|
|
3555
|
-
|
|
3556
|
-
const deserializeAws_json1_1ConfigurationTagSet = (output: any, context: __SerdeContext): ConfigurationTag[] => {
|
|
3557
|
-
return (output || [])
|
|
3558
|
-
.filter((e: any) => e != null)
|
|
3559
|
-
.map((entry: any) => {
|
|
3560
|
-
if (entry === null) {
|
|
3561
|
-
return null as any;
|
|
3562
|
-
}
|
|
3563
|
-
return deserializeAws_json1_1ConfigurationTag(entry, context);
|
|
3564
|
-
});
|
|
3565
|
-
};
|
|
3566
|
-
|
|
3567
|
-
const deserializeAws_json1_1ConflictErrorException = (output: any, context: __SerdeContext): ConflictErrorException => {
|
|
3568
|
-
return {
|
|
3569
|
-
message: __expectString(output.message),
|
|
3570
|
-
} as any;
|
|
3571
|
-
};
|
|
3572
|
-
|
|
3573
|
-
const deserializeAws_json1_1ContinuousExportDescription = (
|
|
3574
|
-
output: any,
|
|
3575
|
-
context: __SerdeContext
|
|
3576
|
-
): ContinuousExportDescription => {
|
|
3577
|
-
return {
|
|
3578
|
-
dataSource: __expectString(output.dataSource),
|
|
3579
|
-
exportId: __expectString(output.exportId),
|
|
3580
|
-
s3Bucket: __expectString(output.s3Bucket),
|
|
3581
|
-
schemaStorageConfig:
|
|
3582
|
-
output.schemaStorageConfig !== undefined && output.schemaStorageConfig !== null
|
|
3583
|
-
? deserializeAws_json1_1SchemaStorageConfig(output.schemaStorageConfig, context)
|
|
3584
|
-
: undefined,
|
|
3585
|
-
startTime:
|
|
3586
|
-
output.startTime !== undefined && output.startTime !== null
|
|
3587
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
3588
|
-
: undefined,
|
|
3589
|
-
status: __expectString(output.status),
|
|
3590
|
-
statusDetail: __expectString(output.statusDetail),
|
|
3591
|
-
stopTime:
|
|
3592
|
-
output.stopTime !== undefined && output.stopTime !== null
|
|
3593
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopTime)))
|
|
3594
|
-
: undefined,
|
|
3595
|
-
} as any;
|
|
3596
|
-
};
|
|
3597
|
-
|
|
3598
|
-
const deserializeAws_json1_1ContinuousExportDescriptions = (
|
|
3599
|
-
output: any,
|
|
3600
|
-
context: __SerdeContext
|
|
3601
|
-
): ContinuousExportDescription[] => {
|
|
3602
|
-
return (output || [])
|
|
3603
|
-
.filter((e: any) => e != null)
|
|
3604
|
-
.map((entry: any) => {
|
|
3605
|
-
if (entry === null) {
|
|
3606
|
-
return null as any;
|
|
3607
|
-
}
|
|
3608
|
-
return deserializeAws_json1_1ContinuousExportDescription(entry, context);
|
|
3609
|
-
});
|
|
3610
|
-
};
|
|
3611
|
-
|
|
3612
|
-
const deserializeAws_json1_1CreateApplicationResponse = (
|
|
3613
|
-
output: any,
|
|
3614
|
-
context: __SerdeContext
|
|
3615
|
-
): CreateApplicationResponse => {
|
|
3616
|
-
return {
|
|
3617
|
-
configurationId: __expectString(output.configurationId),
|
|
3618
|
-
} as any;
|
|
3619
|
-
};
|
|
3620
|
-
|
|
3621
|
-
const deserializeAws_json1_1CreateTagsResponse = (output: any, context: __SerdeContext): CreateTagsResponse => {
|
|
3622
|
-
return {} as any;
|
|
3623
|
-
};
|
|
3624
|
-
|
|
3625
|
-
const deserializeAws_json1_1CustomerAgentInfo = (output: any, context: __SerdeContext): CustomerAgentInfo => {
|
|
3626
|
-
return {
|
|
3627
|
-
activeAgents: __expectInt32(output.activeAgents),
|
|
3628
|
-
blackListedAgents: __expectInt32(output.blackListedAgents),
|
|
3629
|
-
healthyAgents: __expectInt32(output.healthyAgents),
|
|
3630
|
-
shutdownAgents: __expectInt32(output.shutdownAgents),
|
|
3631
|
-
totalAgents: __expectInt32(output.totalAgents),
|
|
3632
|
-
unhealthyAgents: __expectInt32(output.unhealthyAgents),
|
|
3633
|
-
unknownAgents: __expectInt32(output.unknownAgents),
|
|
3634
|
-
} as any;
|
|
3635
|
-
};
|
|
3636
|
-
|
|
3637
|
-
const deserializeAws_json1_1CustomerConnectorInfo = (output: any, context: __SerdeContext): CustomerConnectorInfo => {
|
|
3638
|
-
return {
|
|
3639
|
-
activeConnectors: __expectInt32(output.activeConnectors),
|
|
3640
|
-
blackListedConnectors: __expectInt32(output.blackListedConnectors),
|
|
3641
|
-
healthyConnectors: __expectInt32(output.healthyConnectors),
|
|
3642
|
-
shutdownConnectors: __expectInt32(output.shutdownConnectors),
|
|
3643
|
-
totalConnectors: __expectInt32(output.totalConnectors),
|
|
3644
|
-
unhealthyConnectors: __expectInt32(output.unhealthyConnectors),
|
|
3645
|
-
unknownConnectors: __expectInt32(output.unknownConnectors),
|
|
3646
|
-
} as any;
|
|
3647
|
-
};
|
|
3648
|
-
|
|
3649
|
-
const deserializeAws_json1_1DeleteApplicationsResponse = (
|
|
3650
|
-
output: any,
|
|
3651
|
-
context: __SerdeContext
|
|
3652
|
-
): DeleteApplicationsResponse => {
|
|
3653
|
-
return {} as any;
|
|
3654
|
-
};
|
|
3655
|
-
|
|
3656
|
-
const deserializeAws_json1_1DeleteTagsResponse = (output: any, context: __SerdeContext): DeleteTagsResponse => {
|
|
3657
|
-
return {} as any;
|
|
3658
|
-
};
|
|
3659
|
-
|
|
3660
|
-
const deserializeAws_json1_1DescribeAgentsResponse = (output: any, context: __SerdeContext): DescribeAgentsResponse => {
|
|
3661
|
-
return {
|
|
3662
|
-
agentsInfo:
|
|
3663
|
-
output.agentsInfo !== undefined && output.agentsInfo !== null
|
|
3664
|
-
? deserializeAws_json1_1AgentsInfo(output.agentsInfo, context)
|
|
3665
|
-
: undefined,
|
|
3666
|
-
nextToken: __expectString(output.nextToken),
|
|
3667
|
-
} as any;
|
|
3668
|
-
};
|
|
3669
|
-
|
|
3670
|
-
const deserializeAws_json1_1DescribeConfigurationsAttribute = (
|
|
3671
|
-
output: any,
|
|
3672
|
-
context: __SerdeContext
|
|
3673
|
-
): { [key: string]: string } => {
|
|
3674
|
-
return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
3675
|
-
if (value === null) {
|
|
3676
|
-
return acc;
|
|
3677
|
-
}
|
|
3678
|
-
return {
|
|
3679
|
-
...acc,
|
|
3680
|
-
[key]: __expectString(value) as any,
|
|
3681
|
-
};
|
|
3682
|
-
}, {});
|
|
3683
|
-
};
|
|
3684
|
-
|
|
3685
|
-
const deserializeAws_json1_1DescribeConfigurationsAttributes = (
|
|
3686
|
-
output: any,
|
|
3687
|
-
context: __SerdeContext
|
|
3688
|
-
): { [key: string]: string }[] => {
|
|
3689
|
-
return (output || [])
|
|
3690
|
-
.filter((e: any) => e != null)
|
|
3691
|
-
.map((entry: any) => {
|
|
3692
|
-
if (entry === null) {
|
|
3693
|
-
return null as any;
|
|
3694
|
-
}
|
|
3695
|
-
return deserializeAws_json1_1DescribeConfigurationsAttribute(entry, context);
|
|
3696
|
-
});
|
|
3697
|
-
};
|
|
3698
|
-
|
|
3699
|
-
const deserializeAws_json1_1DescribeConfigurationsResponse = (
|
|
3700
|
-
output: any,
|
|
3701
|
-
context: __SerdeContext
|
|
3702
|
-
): DescribeConfigurationsResponse => {
|
|
3703
|
-
return {
|
|
3704
|
-
configurations:
|
|
3705
|
-
output.configurations !== undefined && output.configurations !== null
|
|
3706
|
-
? deserializeAws_json1_1DescribeConfigurationsAttributes(output.configurations, context)
|
|
3707
|
-
: undefined,
|
|
3708
|
-
} as any;
|
|
3709
|
-
};
|
|
3710
|
-
|
|
3711
|
-
const deserializeAws_json1_1DescribeContinuousExportsResponse = (
|
|
3712
|
-
output: any,
|
|
3713
|
-
context: __SerdeContext
|
|
3714
|
-
): DescribeContinuousExportsResponse => {
|
|
3715
|
-
return {
|
|
3716
|
-
descriptions:
|
|
3717
|
-
output.descriptions !== undefined && output.descriptions !== null
|
|
3718
|
-
? deserializeAws_json1_1ContinuousExportDescriptions(output.descriptions, context)
|
|
3719
|
-
: undefined,
|
|
3720
|
-
nextToken: __expectString(output.nextToken),
|
|
3721
|
-
} as any;
|
|
3722
|
-
};
|
|
3723
|
-
|
|
3724
|
-
const deserializeAws_json1_1DescribeExportConfigurationsResponse = (
|
|
3725
|
-
output: any,
|
|
3726
|
-
context: __SerdeContext
|
|
3727
|
-
): DescribeExportConfigurationsResponse => {
|
|
3728
|
-
return {
|
|
3729
|
-
exportsInfo:
|
|
3730
|
-
output.exportsInfo !== undefined && output.exportsInfo !== null
|
|
3731
|
-
? deserializeAws_json1_1ExportsInfo(output.exportsInfo, context)
|
|
3732
|
-
: undefined,
|
|
3733
|
-
nextToken: __expectString(output.nextToken),
|
|
3734
|
-
} as any;
|
|
3735
|
-
};
|
|
3736
|
-
|
|
3737
|
-
const deserializeAws_json1_1DescribeExportTasksResponse = (
|
|
3738
|
-
output: any,
|
|
3739
|
-
context: __SerdeContext
|
|
3740
|
-
): DescribeExportTasksResponse => {
|
|
3741
|
-
return {
|
|
3742
|
-
exportsInfo:
|
|
3743
|
-
output.exportsInfo !== undefined && output.exportsInfo !== null
|
|
3744
|
-
? deserializeAws_json1_1ExportsInfo(output.exportsInfo, context)
|
|
3745
|
-
: undefined,
|
|
3746
|
-
nextToken: __expectString(output.nextToken),
|
|
3747
|
-
} as any;
|
|
3748
|
-
};
|
|
3749
|
-
|
|
3750
|
-
const deserializeAws_json1_1DescribeImportTasksResponse = (
|
|
3751
|
-
output: any,
|
|
3752
|
-
context: __SerdeContext
|
|
3753
|
-
): DescribeImportTasksResponse => {
|
|
3754
|
-
return {
|
|
3755
|
-
nextToken: __expectString(output.nextToken),
|
|
3756
|
-
tasks:
|
|
3757
|
-
output.tasks !== undefined && output.tasks !== null
|
|
3758
|
-
? deserializeAws_json1_1ImportTaskList(output.tasks, context)
|
|
3759
|
-
: undefined,
|
|
3760
|
-
} as any;
|
|
3761
|
-
};
|
|
3762
|
-
|
|
3763
|
-
const deserializeAws_json1_1DescribeTagsResponse = (output: any, context: __SerdeContext): DescribeTagsResponse => {
|
|
3764
|
-
return {
|
|
3765
|
-
nextToken: __expectString(output.nextToken),
|
|
3766
|
-
tags:
|
|
3767
|
-
output.tags !== undefined && output.tags !== null
|
|
3768
|
-
? deserializeAws_json1_1ConfigurationTagSet(output.tags, context)
|
|
3769
|
-
: undefined,
|
|
3770
|
-
} as any;
|
|
3771
|
-
};
|
|
3772
|
-
|
|
3773
|
-
const deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationResponse = (
|
|
3774
|
-
output: any,
|
|
3775
|
-
context: __SerdeContext
|
|
3776
|
-
): DisassociateConfigurationItemsFromApplicationResponse => {
|
|
3777
|
-
return {} as any;
|
|
3778
|
-
};
|
|
3779
|
-
|
|
3780
|
-
const deserializeAws_json1_1ExportConfigurationsResponse = (
|
|
3781
|
-
output: any,
|
|
3782
|
-
context: __SerdeContext
|
|
3783
|
-
): ExportConfigurationsResponse => {
|
|
3784
|
-
return {
|
|
3785
|
-
exportId: __expectString(output.exportId),
|
|
3786
|
-
} as any;
|
|
3787
|
-
};
|
|
3788
|
-
|
|
3789
|
-
const deserializeAws_json1_1ExportInfo = (output: any, context: __SerdeContext): ExportInfo => {
|
|
3790
|
-
return {
|
|
3791
|
-
configurationsDownloadUrl: __expectString(output.configurationsDownloadUrl),
|
|
3792
|
-
exportId: __expectString(output.exportId),
|
|
3793
|
-
exportRequestTime:
|
|
3794
|
-
output.exportRequestTime !== undefined && output.exportRequestTime !== null
|
|
3795
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.exportRequestTime)))
|
|
3796
|
-
: undefined,
|
|
3797
|
-
exportStatus: __expectString(output.exportStatus),
|
|
3798
|
-
isTruncated: __expectBoolean(output.isTruncated),
|
|
3799
|
-
requestedEndTime:
|
|
3800
|
-
output.requestedEndTime !== undefined && output.requestedEndTime !== null
|
|
3801
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.requestedEndTime)))
|
|
3802
|
-
: undefined,
|
|
3803
|
-
requestedStartTime:
|
|
3804
|
-
output.requestedStartTime !== undefined && output.requestedStartTime !== null
|
|
3805
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.requestedStartTime)))
|
|
3806
|
-
: undefined,
|
|
3807
|
-
statusMessage: __expectString(output.statusMessage),
|
|
3808
|
-
} as any;
|
|
3809
|
-
};
|
|
3810
|
-
|
|
3811
|
-
const deserializeAws_json1_1ExportsInfo = (output: any, context: __SerdeContext): ExportInfo[] => {
|
|
3812
|
-
return (output || [])
|
|
3813
|
-
.filter((e: any) => e != null)
|
|
3814
|
-
.map((entry: any) => {
|
|
3815
|
-
if (entry === null) {
|
|
3816
|
-
return null as any;
|
|
3817
|
-
}
|
|
3818
|
-
return deserializeAws_json1_1ExportInfo(entry, context);
|
|
3819
|
-
});
|
|
3820
|
-
};
|
|
3821
|
-
|
|
3822
|
-
const deserializeAws_json1_1GetDiscoverySummaryResponse = (
|
|
3823
|
-
output: any,
|
|
3824
|
-
context: __SerdeContext
|
|
3825
|
-
): GetDiscoverySummaryResponse => {
|
|
3826
|
-
return {
|
|
3827
|
-
agentSummary:
|
|
3828
|
-
output.agentSummary !== undefined && output.agentSummary !== null
|
|
3829
|
-
? deserializeAws_json1_1CustomerAgentInfo(output.agentSummary, context)
|
|
3830
|
-
: undefined,
|
|
3831
|
-
applications: __expectLong(output.applications),
|
|
3832
|
-
connectorSummary:
|
|
3833
|
-
output.connectorSummary !== undefined && output.connectorSummary !== null
|
|
3834
|
-
? deserializeAws_json1_1CustomerConnectorInfo(output.connectorSummary, context)
|
|
3835
|
-
: undefined,
|
|
3836
|
-
servers: __expectLong(output.servers),
|
|
3837
|
-
serversMappedToApplications: __expectLong(output.serversMappedToApplications),
|
|
3838
|
-
serversMappedtoTags: __expectLong(output.serversMappedtoTags),
|
|
3839
|
-
} as any;
|
|
3840
|
-
};
|
|
3841
|
-
|
|
3842
|
-
const deserializeAws_json1_1HomeRegionNotSetException = (
|
|
3843
|
-
output: any,
|
|
3844
|
-
context: __SerdeContext
|
|
3845
|
-
): HomeRegionNotSetException => {
|
|
3846
|
-
return {
|
|
3847
|
-
message: __expectString(output.message),
|
|
3848
|
-
} as any;
|
|
3849
|
-
};
|
|
3850
|
-
|
|
3851
|
-
const deserializeAws_json1_1ImportTask = (output: any, context: __SerdeContext): ImportTask => {
|
|
3852
|
-
return {
|
|
3853
|
-
applicationImportFailure: __expectInt32(output.applicationImportFailure),
|
|
3854
|
-
applicationImportSuccess: __expectInt32(output.applicationImportSuccess),
|
|
3855
|
-
clientRequestToken: __expectString(output.clientRequestToken),
|
|
3856
|
-
errorsAndFailedEntriesZip: __expectString(output.errorsAndFailedEntriesZip),
|
|
3857
|
-
importCompletionTime:
|
|
3858
|
-
output.importCompletionTime !== undefined && output.importCompletionTime !== null
|
|
3859
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.importCompletionTime)))
|
|
3860
|
-
: undefined,
|
|
3861
|
-
importDeletedTime:
|
|
3862
|
-
output.importDeletedTime !== undefined && output.importDeletedTime !== null
|
|
3863
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.importDeletedTime)))
|
|
3864
|
-
: undefined,
|
|
3865
|
-
importRequestTime:
|
|
3866
|
-
output.importRequestTime !== undefined && output.importRequestTime !== null
|
|
3867
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.importRequestTime)))
|
|
3868
|
-
: undefined,
|
|
3869
|
-
importTaskId: __expectString(output.importTaskId),
|
|
3870
|
-
importUrl: __expectString(output.importUrl),
|
|
3871
|
-
name: __expectString(output.name),
|
|
3872
|
-
serverImportFailure: __expectInt32(output.serverImportFailure),
|
|
3873
|
-
serverImportSuccess: __expectInt32(output.serverImportSuccess),
|
|
3874
|
-
status: __expectString(output.status),
|
|
3875
|
-
} as any;
|
|
3876
|
-
};
|
|
3877
|
-
|
|
3878
|
-
const deserializeAws_json1_1ImportTaskList = (output: any, context: __SerdeContext): ImportTask[] => {
|
|
3879
|
-
return (output || [])
|
|
3880
|
-
.filter((e: any) => e != null)
|
|
3881
|
-
.map((entry: any) => {
|
|
3882
|
-
if (entry === null) {
|
|
3883
|
-
return null as any;
|
|
3884
|
-
}
|
|
3885
|
-
return deserializeAws_json1_1ImportTask(entry, context);
|
|
3886
|
-
});
|
|
3887
|
-
};
|
|
3888
|
-
|
|
3889
|
-
const deserializeAws_json1_1InvalidParameterException = (
|
|
3890
|
-
output: any,
|
|
3891
|
-
context: __SerdeContext
|
|
3892
|
-
): InvalidParameterException => {
|
|
3893
|
-
return {
|
|
3894
|
-
message: __expectString(output.message),
|
|
3895
|
-
} as any;
|
|
3896
|
-
};
|
|
3897
|
-
|
|
3898
|
-
const deserializeAws_json1_1InvalidParameterValueException = (
|
|
3899
|
-
output: any,
|
|
3900
|
-
context: __SerdeContext
|
|
3901
|
-
): InvalidParameterValueException => {
|
|
3902
|
-
return {
|
|
3903
|
-
message: __expectString(output.message),
|
|
3904
|
-
} as any;
|
|
3905
|
-
};
|
|
3906
|
-
|
|
3907
|
-
const deserializeAws_json1_1ListConfigurationsResponse = (
|
|
3908
|
-
output: any,
|
|
3909
|
-
context: __SerdeContext
|
|
3910
|
-
): ListConfigurationsResponse => {
|
|
3911
|
-
return {
|
|
3912
|
-
configurations:
|
|
3913
|
-
output.configurations !== undefined && output.configurations !== null
|
|
3914
|
-
? deserializeAws_json1_1Configurations(output.configurations, context)
|
|
3915
|
-
: undefined,
|
|
3916
|
-
nextToken: __expectString(output.nextToken),
|
|
3917
|
-
} as any;
|
|
3918
|
-
};
|
|
3919
|
-
|
|
3920
|
-
const deserializeAws_json1_1ListServerNeighborsResponse = (
|
|
3921
|
-
output: any,
|
|
3922
|
-
context: __SerdeContext
|
|
3923
|
-
): ListServerNeighborsResponse => {
|
|
3924
|
-
return {
|
|
3925
|
-
knownDependencyCount: __expectLong(output.knownDependencyCount),
|
|
3926
|
-
neighbors:
|
|
3927
|
-
output.neighbors !== undefined && output.neighbors !== null
|
|
3928
|
-
? deserializeAws_json1_1NeighborDetailsList(output.neighbors, context)
|
|
3929
|
-
: undefined,
|
|
3930
|
-
nextToken: __expectString(output.nextToken),
|
|
3931
|
-
} as any;
|
|
3932
|
-
};
|
|
3933
|
-
|
|
3934
|
-
const deserializeAws_json1_1NeighborConnectionDetail = (
|
|
3935
|
-
output: any,
|
|
3936
|
-
context: __SerdeContext
|
|
3937
|
-
): NeighborConnectionDetail => {
|
|
3938
|
-
return {
|
|
3939
|
-
connectionsCount: __expectLong(output.connectionsCount),
|
|
3940
|
-
destinationPort: __expectInt32(output.destinationPort),
|
|
3941
|
-
destinationServerId: __expectString(output.destinationServerId),
|
|
3942
|
-
sourceServerId: __expectString(output.sourceServerId),
|
|
3943
|
-
transportProtocol: __expectString(output.transportProtocol),
|
|
3944
|
-
} as any;
|
|
3945
|
-
};
|
|
3946
|
-
|
|
3947
|
-
const deserializeAws_json1_1NeighborDetailsList = (
|
|
3948
|
-
output: any,
|
|
3949
|
-
context: __SerdeContext
|
|
3950
|
-
): NeighborConnectionDetail[] => {
|
|
3951
|
-
return (output || [])
|
|
3952
|
-
.filter((e: any) => e != null)
|
|
3953
|
-
.map((entry: any) => {
|
|
3954
|
-
if (entry === null) {
|
|
3955
|
-
return null as any;
|
|
3956
|
-
}
|
|
3957
|
-
return deserializeAws_json1_1NeighborConnectionDetail(entry, context);
|
|
3958
|
-
});
|
|
3959
|
-
};
|
|
3960
|
-
|
|
3961
|
-
const deserializeAws_json1_1OperationNotPermittedException = (
|
|
3962
|
-
output: any,
|
|
3963
|
-
context: __SerdeContext
|
|
3964
|
-
): OperationNotPermittedException => {
|
|
3965
|
-
return {
|
|
3966
|
-
message: __expectString(output.message),
|
|
3967
|
-
} as any;
|
|
3968
|
-
};
|
|
3969
|
-
|
|
3970
|
-
const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => {
|
|
3971
|
-
return {
|
|
3972
|
-
message: __expectString(output.message),
|
|
3973
|
-
} as any;
|
|
3974
|
-
};
|
|
3975
|
-
|
|
3976
|
-
const deserializeAws_json1_1ResourceNotFoundException = (
|
|
3977
|
-
output: any,
|
|
3978
|
-
context: __SerdeContext
|
|
3979
|
-
): ResourceNotFoundException => {
|
|
3980
|
-
return {
|
|
3981
|
-
message: __expectString(output.message),
|
|
3982
|
-
} as any;
|
|
3983
|
-
};
|
|
3984
|
-
|
|
3985
|
-
const deserializeAws_json1_1SchemaStorageConfig = (output: any, context: __SerdeContext): { [key: string]: string } => {
|
|
3986
|
-
return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
3987
|
-
if (value === null) {
|
|
3988
|
-
return acc;
|
|
3989
|
-
}
|
|
3990
|
-
return {
|
|
3991
|
-
...acc,
|
|
3992
|
-
[key]: __expectString(value) as any,
|
|
3993
|
-
};
|
|
3994
|
-
}, {});
|
|
3995
|
-
};
|
|
3996
|
-
|
|
3997
|
-
const deserializeAws_json1_1ServerInternalErrorException = (
|
|
3998
|
-
output: any,
|
|
3999
|
-
context: __SerdeContext
|
|
4000
|
-
): ServerInternalErrorException => {
|
|
4001
|
-
return {
|
|
4002
|
-
message: __expectString(output.message),
|
|
4003
|
-
} as any;
|
|
4004
|
-
};
|
|
4005
|
-
|
|
4006
|
-
const deserializeAws_json1_1StartContinuousExportResponse = (
|
|
4007
|
-
output: any,
|
|
4008
|
-
context: __SerdeContext
|
|
4009
|
-
): StartContinuousExportResponse => {
|
|
4010
|
-
return {
|
|
4011
|
-
dataSource: __expectString(output.dataSource),
|
|
4012
|
-
exportId: __expectString(output.exportId),
|
|
4013
|
-
s3Bucket: __expectString(output.s3Bucket),
|
|
4014
|
-
schemaStorageConfig:
|
|
4015
|
-
output.schemaStorageConfig !== undefined && output.schemaStorageConfig !== null
|
|
4016
|
-
? deserializeAws_json1_1SchemaStorageConfig(output.schemaStorageConfig, context)
|
|
4017
|
-
: undefined,
|
|
4018
|
-
startTime:
|
|
4019
|
-
output.startTime !== undefined && output.startTime !== null
|
|
4020
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
4021
|
-
: undefined,
|
|
4022
|
-
} as any;
|
|
4023
|
-
};
|
|
4024
|
-
|
|
4025
|
-
const deserializeAws_json1_1StartDataCollectionByAgentIdsResponse = (
|
|
4026
|
-
output: any,
|
|
4027
|
-
context: __SerdeContext
|
|
4028
|
-
): StartDataCollectionByAgentIdsResponse => {
|
|
4029
|
-
return {
|
|
4030
|
-
agentsConfigurationStatus:
|
|
4031
|
-
output.agentsConfigurationStatus !== undefined && output.agentsConfigurationStatus !== null
|
|
4032
|
-
? deserializeAws_json1_1AgentConfigurationStatusList(output.agentsConfigurationStatus, context)
|
|
4033
|
-
: undefined,
|
|
4034
|
-
} as any;
|
|
4035
|
-
};
|
|
4036
|
-
|
|
4037
|
-
const deserializeAws_json1_1StartExportTaskResponse = (
|
|
4038
|
-
output: any,
|
|
4039
|
-
context: __SerdeContext
|
|
4040
|
-
): StartExportTaskResponse => {
|
|
4041
|
-
return {
|
|
4042
|
-
exportId: __expectString(output.exportId),
|
|
4043
|
-
} as any;
|
|
4044
|
-
};
|
|
4045
|
-
|
|
4046
|
-
const deserializeAws_json1_1StartImportTaskResponse = (
|
|
4047
|
-
output: any,
|
|
4048
|
-
context: __SerdeContext
|
|
4049
|
-
): StartImportTaskResponse => {
|
|
4050
|
-
return {
|
|
4051
|
-
task:
|
|
4052
|
-
output.task !== undefined && output.task !== null
|
|
4053
|
-
? deserializeAws_json1_1ImportTask(output.task, context)
|
|
4054
|
-
: undefined,
|
|
4055
|
-
} as any;
|
|
4056
|
-
};
|
|
4057
|
-
|
|
4058
|
-
const deserializeAws_json1_1StopContinuousExportResponse = (
|
|
4059
|
-
output: any,
|
|
4060
|
-
context: __SerdeContext
|
|
4061
|
-
): StopContinuousExportResponse => {
|
|
4062
|
-
return {
|
|
4063
|
-
startTime:
|
|
4064
|
-
output.startTime !== undefined && output.startTime !== null
|
|
4065
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
4066
|
-
: undefined,
|
|
4067
|
-
stopTime:
|
|
4068
|
-
output.stopTime !== undefined && output.stopTime !== null
|
|
4069
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopTime)))
|
|
4070
|
-
: undefined,
|
|
4071
|
-
} as any;
|
|
4072
|
-
};
|
|
4073
|
-
|
|
4074
|
-
const deserializeAws_json1_1StopDataCollectionByAgentIdsResponse = (
|
|
4075
|
-
output: any,
|
|
4076
|
-
context: __SerdeContext
|
|
4077
|
-
): StopDataCollectionByAgentIdsResponse => {
|
|
4078
|
-
return {
|
|
4079
|
-
agentsConfigurationStatus:
|
|
4080
|
-
output.agentsConfigurationStatus !== undefined && output.agentsConfigurationStatus !== null
|
|
4081
|
-
? deserializeAws_json1_1AgentConfigurationStatusList(output.agentsConfigurationStatus, context)
|
|
4082
|
-
: undefined,
|
|
4083
|
-
} as any;
|
|
4084
|
-
};
|
|
4085
|
-
|
|
4086
|
-
const deserializeAws_json1_1UpdateApplicationResponse = (
|
|
4087
|
-
output: any,
|
|
4088
|
-
context: __SerdeContext
|
|
4089
|
-
): UpdateApplicationResponse => {
|
|
4090
|
-
return {} as any;
|
|
4091
|
-
};
|
|
4092
|
-
|
|
4093
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
4094
|
-
httpStatusCode: output.statusCode,
|
|
4095
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
4096
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4097
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4098
|
-
});
|
|
4099
|
-
|
|
4100
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4101
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
4102
|
-
if (streamBody instanceof Uint8Array) {
|
|
4103
|
-
return Promise.resolve(streamBody);
|
|
4104
|
-
}
|
|
4105
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4106
|
-
};
|
|
4107
|
-
|
|
4108
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4109
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
4110
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4111
|
-
|
|
4112
|
-
const buildHttpRpcRequest = async (
|
|
4113
|
-
context: __SerdeContext,
|
|
4114
|
-
headers: __HeaderBag,
|
|
4115
|
-
path: string,
|
|
4116
|
-
resolvedHostname: string | undefined,
|
|
4117
|
-
body: any
|
|
4118
|
-
): Promise<__HttpRequest> => {
|
|
4119
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4120
|
-
const contents: any = {
|
|
4121
|
-
protocol,
|
|
4122
|
-
hostname,
|
|
4123
|
-
port,
|
|
4124
|
-
method: "POST",
|
|
4125
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4126
|
-
headers,
|
|
4127
|
-
};
|
|
4128
|
-
if (resolvedHostname !== undefined) {
|
|
4129
|
-
contents.hostname = resolvedHostname;
|
|
4130
|
-
}
|
|
4131
|
-
if (body !== undefined) {
|
|
4132
|
-
contents.body = body;
|
|
4133
|
-
}
|
|
4134
|
-
return new __HttpRequest(contents);
|
|
4135
|
-
};
|
|
4136
|
-
|
|
4137
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
4138
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
4139
|
-
if (encoded.length) {
|
|
4140
|
-
return JSON.parse(encoded);
|
|
4141
|
-
}
|
|
4142
|
-
return {};
|
|
4143
|
-
});
|
|
4144
|
-
|
|
4145
|
-
/**
|
|
4146
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4147
|
-
*/
|
|
4148
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
4149
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4150
|
-
|
|
4151
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
4152
|
-
let cleanValue = rawValue;
|
|
4153
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4154
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4155
|
-
}
|
|
4156
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4157
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4158
|
-
}
|
|
4159
|
-
return cleanValue;
|
|
4160
|
-
};
|
|
4161
|
-
|
|
4162
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4163
|
-
if (headerKey !== undefined) {
|
|
4164
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4165
|
-
}
|
|
4166
|
-
|
|
4167
|
-
if (data.code !== undefined) {
|
|
4168
|
-
return sanitizeErrorCode(data.code);
|
|
4169
|
-
}
|
|
4170
|
-
|
|
4171
|
-
if (data["__type"] !== undefined) {
|
|
4172
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4173
|
-
}
|
|
4174
|
-
|
|
4175
|
-
return "";
|
|
4176
|
-
};
|