@aws-sdk/client-application-insights 3.32.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/ApplicationInsights.js +1 -2
- package/{dist/cjs → dist-cjs}/ApplicationInsightsClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CreateApplicationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateComponentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateLogPatternCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteApplicationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteComponentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteLogPatternCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeApplicationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeComponentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeComponentConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeComponentConfigurationRecommendationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeLogPatternCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeObservationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeProblemCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeProblemObservationsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListApplicationsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListComponentsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListConfigurationHistoryCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListLogPatternSetsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListLogPatternsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListProblemsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateApplicationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateComponentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateComponentConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateLogPatternCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- 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 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListComponentsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListConfigurationHistoryPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListLogPatternSetsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListLogPatternsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListProblemsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/ApplicationInsights.js +2 -18
- package/{dist/es → dist-es}/ApplicationInsightsClient.js +2 -23
- package/{dist/es → dist-es}/commands/CreateApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateComponentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateLogPatternCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteComponentCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DeleteLogPatternCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeComponentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeComponentConfigurationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeComponentConfigurationRecommendationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeLogPatternCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeObservationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeProblemCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeProblemObservationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListApplicationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListComponentsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListConfigurationHistoryCommand.js +4 -43
- package/{dist/es → dist-es}/commands/ListLogPatternSetsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListLogPatternsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListProblemsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -35
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -37
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateComponentCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateComponentConfigurationCommand.js +4 -32
- package/{dist/es → dist-es}/commands/UpdateLogPatternCommand.js +4 -30
- 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 -211
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListApplicationsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListComponentsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListConfigurationHistoryPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListLogPatternSetsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListLogPatternsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListProblemsPaginator.js +16 -29
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +547 -553
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ApplicationInsights.d.ts +2 -2
- package/{dist/types → dist-types}/ApplicationInsightsClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/CreateApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateComponentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateLogPatternCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteComponentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteLogPatternCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeComponentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeComponentConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeComponentConfigurationRecommendationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeLogPatternCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeObservationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeProblemCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeProblemObservationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListApplicationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListComponentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListConfigurationHistoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListLogPatternSetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListLogPatternsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListProblemsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateComponentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateComponentConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateLogPatternCommand.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/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListComponentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListConfigurationHistoryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListLogPatternSetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListLogPatternsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListProblemsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ApplicationInsights.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/ApplicationInsightsClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/CreateApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateComponentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateLogPatternCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteComponentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteLogPatternCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeComponentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeComponentConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeComponentConfigurationRecommendationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeLogPatternCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeObservationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeProblemCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeProblemObservationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListApplicationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListComponentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListConfigurationHistoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListLogPatternSetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListLogPatternsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListProblemsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateApplicationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateComponentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateComponentConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateLogPatternCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListComponentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListConfigurationHistoryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListLogPatternSetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListLogPatternsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListProblemsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/ApplicationInsights.ts +0 -1036
- package/ApplicationInsightsClient.ts +0 -352
- package/commands/CreateApplicationCommand.ts +0 -98
- package/commands/CreateComponentCommand.ts +0 -98
- package/commands/CreateLogPatternCommand.ts +0 -98
- package/commands/DeleteApplicationCommand.ts +0 -98
- package/commands/DeleteComponentCommand.ts +0 -99
- package/commands/DeleteLogPatternCommand.ts +0 -98
- package/commands/DescribeApplicationCommand.ts +0 -98
- package/commands/DescribeComponentCommand.ts +0 -98
- package/commands/DescribeComponentConfigurationCommand.ts +0 -106
- package/commands/DescribeComponentConfigurationRecommendationCommand.ts +0 -113
- package/commands/DescribeLogPatternCommand.ts +0 -98
- package/commands/DescribeObservationCommand.ts +0 -98
- package/commands/DescribeProblemCommand.ts +0 -98
- package/commands/DescribeProblemObservationsCommand.ts +0 -103
- package/commands/ListApplicationsCommand.ts +0 -98
- package/commands/ListComponentsCommand.ts +0 -98
- package/commands/ListConfigurationHistoryCommand.ts +0 -111
- package/commands/ListLogPatternSetsCommand.ts +0 -98
- package/commands/ListLogPatternsCommand.ts +0 -98
- package/commands/ListProblemsCommand.ts +0 -98
- package/commands/ListTagsForResourceCommand.ts +0 -103
- package/commands/TagResourceCommand.ts +0 -105
- package/commands/UntagResourceCommand.ts +0 -98
- package/commands/UpdateApplicationCommand.ts +0 -98
- package/commands/UpdateComponentCommand.ts +0 -99
- package/commands/UpdateComponentConfigurationCommand.ts +0 -105
- package/commands/UpdateLogPatternCommand.ts +0 -98
- package/dist/cjs/ApplicationInsights.js.map +0 -1
- package/dist/cjs/ApplicationInsightsClient.js.map +0 -1
- package/dist/cjs/commands/CreateApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/CreateComponentCommand.js.map +0 -1
- package/dist/cjs/commands/CreateLogPatternCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteComponentCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteLogPatternCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeComponentCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeComponentConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeComponentConfigurationRecommendationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeLogPatternCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeObservationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeProblemCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeProblemObservationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListComponentsCommand.js.map +0 -1
- package/dist/cjs/commands/ListConfigurationHistoryCommand.js.map +0 -1
- package/dist/cjs/commands/ListLogPatternSetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListLogPatternsCommand.js.map +0 -1
- package/dist/cjs/commands/ListProblemsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateComponentCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateComponentConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateLogPatternCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListComponentsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListConfigurationHistoryPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListLogPatternSetsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListLogPatternsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListProblemsPaginator.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/ApplicationInsights.js.map +0 -1
- package/dist/es/ApplicationInsightsClient.js.map +0 -1
- package/dist/es/commands/CreateApplicationCommand.js.map +0 -1
- package/dist/es/commands/CreateComponentCommand.js.map +0 -1
- package/dist/es/commands/CreateLogPatternCommand.js.map +0 -1
- package/dist/es/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist/es/commands/DeleteComponentCommand.js.map +0 -1
- package/dist/es/commands/DeleteLogPatternCommand.js.map +0 -1
- package/dist/es/commands/DescribeApplicationCommand.js.map +0 -1
- package/dist/es/commands/DescribeComponentCommand.js.map +0 -1
- package/dist/es/commands/DescribeComponentConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DescribeComponentConfigurationRecommendationCommand.js.map +0 -1
- package/dist/es/commands/DescribeLogPatternCommand.js.map +0 -1
- package/dist/es/commands/DescribeObservationCommand.js.map +0 -1
- package/dist/es/commands/DescribeProblemCommand.js.map +0 -1
- package/dist/es/commands/DescribeProblemObservationsCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationsCommand.js.map +0 -1
- package/dist/es/commands/ListComponentsCommand.js.map +0 -1
- package/dist/es/commands/ListConfigurationHistoryCommand.js.map +0 -1
- package/dist/es/commands/ListLogPatternSetsCommand.js.map +0 -1
- package/dist/es/commands/ListLogPatternsCommand.js.map +0 -1
- package/dist/es/commands/ListProblemsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist/es/commands/UpdateComponentCommand.js.map +0 -1
- package/dist/es/commands/UpdateComponentConfigurationCommand.js.map +0 -1
- package/dist/es/commands/UpdateLogPatternCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -38
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist/es/pagination/ListComponentsPaginator.js.map +0 -1
- package/dist/es/pagination/ListConfigurationHistoryPaginator.js.map +0 -1
- package/dist/es/pagination/ListLogPatternSetsPaginator.js.map +0 -1
- package/dist/es/pagination/ListLogPatternsPaginator.js.map +0 -1
- package/dist/es/pagination/ListProblemsPaginator.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/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2046
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListApplicationsPaginator.ts +0 -58
- package/pagination/ListComponentsPaginator.ts +0 -58
- package/pagination/ListConfigurationHistoryPaginator.ts +0 -58
- package/pagination/ListLogPatternSetsPaginator.ts +0 -58
- package/pagination/ListLogPatternsPaginator.ts +0 -58
- package/pagination/ListProblemsPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -3616
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/protocols/Aws_json1_1.ts
DELETED
|
@@ -1,3616 +0,0 @@
|
|
|
1
|
-
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "../commands/CreateApplicationCommand";
|
|
2
|
-
import { CreateComponentCommandInput, CreateComponentCommandOutput } from "../commands/CreateComponentCommand";
|
|
3
|
-
import { CreateLogPatternCommandInput, CreateLogPatternCommandOutput } from "../commands/CreateLogPatternCommand";
|
|
4
|
-
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "../commands/DeleteApplicationCommand";
|
|
5
|
-
import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "../commands/DeleteComponentCommand";
|
|
6
|
-
import { DeleteLogPatternCommandInput, DeleteLogPatternCommandOutput } from "../commands/DeleteLogPatternCommand";
|
|
7
|
-
import {
|
|
8
|
-
DescribeApplicationCommandInput,
|
|
9
|
-
DescribeApplicationCommandOutput,
|
|
10
|
-
} from "../commands/DescribeApplicationCommand";
|
|
11
|
-
import { DescribeComponentCommandInput, DescribeComponentCommandOutput } from "../commands/DescribeComponentCommand";
|
|
12
|
-
import {
|
|
13
|
-
DescribeComponentConfigurationCommandInput,
|
|
14
|
-
DescribeComponentConfigurationCommandOutput,
|
|
15
|
-
} from "../commands/DescribeComponentConfigurationCommand";
|
|
16
|
-
import {
|
|
17
|
-
DescribeComponentConfigurationRecommendationCommandInput,
|
|
18
|
-
DescribeComponentConfigurationRecommendationCommandOutput,
|
|
19
|
-
} from "../commands/DescribeComponentConfigurationRecommendationCommand";
|
|
20
|
-
import { DescribeLogPatternCommandInput, DescribeLogPatternCommandOutput } from "../commands/DescribeLogPatternCommand";
|
|
21
|
-
import {
|
|
22
|
-
DescribeObservationCommandInput,
|
|
23
|
-
DescribeObservationCommandOutput,
|
|
24
|
-
} from "../commands/DescribeObservationCommand";
|
|
25
|
-
import { DescribeProblemCommandInput, DescribeProblemCommandOutput } from "../commands/DescribeProblemCommand";
|
|
26
|
-
import {
|
|
27
|
-
DescribeProblemObservationsCommandInput,
|
|
28
|
-
DescribeProblemObservationsCommandOutput,
|
|
29
|
-
} from "../commands/DescribeProblemObservationsCommand";
|
|
30
|
-
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "../commands/ListApplicationsCommand";
|
|
31
|
-
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "../commands/ListComponentsCommand";
|
|
32
|
-
import {
|
|
33
|
-
ListConfigurationHistoryCommandInput,
|
|
34
|
-
ListConfigurationHistoryCommandOutput,
|
|
35
|
-
} from "../commands/ListConfigurationHistoryCommand";
|
|
36
|
-
import { ListLogPatternSetsCommandInput, ListLogPatternSetsCommandOutput } from "../commands/ListLogPatternSetsCommand";
|
|
37
|
-
import { ListLogPatternsCommandInput, ListLogPatternsCommandOutput } from "../commands/ListLogPatternsCommand";
|
|
38
|
-
import { ListProblemsCommandInput, ListProblemsCommandOutput } from "../commands/ListProblemsCommand";
|
|
39
|
-
import {
|
|
40
|
-
ListTagsForResourceCommandInput,
|
|
41
|
-
ListTagsForResourceCommandOutput,
|
|
42
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
43
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
44
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
45
|
-
import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "../commands/UpdateApplicationCommand";
|
|
46
|
-
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "../commands/UpdateComponentCommand";
|
|
47
|
-
import {
|
|
48
|
-
UpdateComponentConfigurationCommandInput,
|
|
49
|
-
UpdateComponentConfigurationCommandOutput,
|
|
50
|
-
} from "../commands/UpdateComponentConfigurationCommand";
|
|
51
|
-
import { UpdateLogPatternCommandInput, UpdateLogPatternCommandOutput } from "../commands/UpdateLogPatternCommand";
|
|
52
|
-
import {
|
|
53
|
-
AccessDeniedException,
|
|
54
|
-
ApplicationComponent,
|
|
55
|
-
ApplicationInfo,
|
|
56
|
-
BadRequestException,
|
|
57
|
-
ConfigurationEvent,
|
|
58
|
-
CreateApplicationRequest,
|
|
59
|
-
CreateApplicationResponse,
|
|
60
|
-
CreateComponentRequest,
|
|
61
|
-
CreateComponentResponse,
|
|
62
|
-
CreateLogPatternRequest,
|
|
63
|
-
CreateLogPatternResponse,
|
|
64
|
-
DeleteApplicationRequest,
|
|
65
|
-
DeleteApplicationResponse,
|
|
66
|
-
DeleteComponentRequest,
|
|
67
|
-
DeleteComponentResponse,
|
|
68
|
-
DeleteLogPatternRequest,
|
|
69
|
-
DeleteLogPatternResponse,
|
|
70
|
-
DescribeApplicationRequest,
|
|
71
|
-
DescribeApplicationResponse,
|
|
72
|
-
DescribeComponentConfigurationRecommendationRequest,
|
|
73
|
-
DescribeComponentConfigurationRecommendationResponse,
|
|
74
|
-
DescribeComponentConfigurationRequest,
|
|
75
|
-
DescribeComponentConfigurationResponse,
|
|
76
|
-
DescribeComponentRequest,
|
|
77
|
-
DescribeComponentResponse,
|
|
78
|
-
DescribeLogPatternRequest,
|
|
79
|
-
DescribeLogPatternResponse,
|
|
80
|
-
DescribeObservationRequest,
|
|
81
|
-
DescribeObservationResponse,
|
|
82
|
-
DescribeProblemObservationsRequest,
|
|
83
|
-
DescribeProblemObservationsResponse,
|
|
84
|
-
DescribeProblemRequest,
|
|
85
|
-
DescribeProblemResponse,
|
|
86
|
-
FeedbackKey,
|
|
87
|
-
FeedbackValue,
|
|
88
|
-
InternalServerException,
|
|
89
|
-
ListApplicationsRequest,
|
|
90
|
-
ListApplicationsResponse,
|
|
91
|
-
ListComponentsRequest,
|
|
92
|
-
ListComponentsResponse,
|
|
93
|
-
ListConfigurationHistoryRequest,
|
|
94
|
-
ListConfigurationHistoryResponse,
|
|
95
|
-
ListLogPatternSetsRequest,
|
|
96
|
-
ListLogPatternSetsResponse,
|
|
97
|
-
ListLogPatternsRequest,
|
|
98
|
-
ListLogPatternsResponse,
|
|
99
|
-
ListProblemsRequest,
|
|
100
|
-
ListProblemsResponse,
|
|
101
|
-
ListTagsForResourceRequest,
|
|
102
|
-
ListTagsForResourceResponse,
|
|
103
|
-
LogPattern,
|
|
104
|
-
Observation,
|
|
105
|
-
Problem,
|
|
106
|
-
RelatedObservations,
|
|
107
|
-
ResourceInUseException,
|
|
108
|
-
ResourceNotFoundException,
|
|
109
|
-
Tag,
|
|
110
|
-
TagResourceRequest,
|
|
111
|
-
TagResourceResponse,
|
|
112
|
-
TagsAlreadyExistException,
|
|
113
|
-
Tier,
|
|
114
|
-
TooManyTagsException,
|
|
115
|
-
UntagResourceRequest,
|
|
116
|
-
UntagResourceResponse,
|
|
117
|
-
UpdateApplicationRequest,
|
|
118
|
-
UpdateApplicationResponse,
|
|
119
|
-
UpdateComponentConfigurationRequest,
|
|
120
|
-
UpdateComponentConfigurationResponse,
|
|
121
|
-
UpdateComponentRequest,
|
|
122
|
-
UpdateComponentResponse,
|
|
123
|
-
UpdateLogPatternRequest,
|
|
124
|
-
UpdateLogPatternResponse,
|
|
125
|
-
ValidationException,
|
|
126
|
-
} from "../models/models_0";
|
|
127
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
128
|
-
import {
|
|
129
|
-
expectBoolean as __expectBoolean,
|
|
130
|
-
expectInt32 as __expectInt32,
|
|
131
|
-
expectLong as __expectLong,
|
|
132
|
-
expectNonNull as __expectNonNull,
|
|
133
|
-
expectNumber as __expectNumber,
|
|
134
|
-
expectString as __expectString,
|
|
135
|
-
limitedParseDouble as __limitedParseDouble,
|
|
136
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
137
|
-
} from "@aws-sdk/smithy-client";
|
|
138
|
-
import {
|
|
139
|
-
Endpoint as __Endpoint,
|
|
140
|
-
HeaderBag as __HeaderBag,
|
|
141
|
-
MetadataBearer as __MetadataBearer,
|
|
142
|
-
ResponseMetadata as __ResponseMetadata,
|
|
143
|
-
SerdeContext as __SerdeContext,
|
|
144
|
-
SmithyException as __SmithyException,
|
|
145
|
-
} from "@aws-sdk/types";
|
|
146
|
-
|
|
147
|
-
export const serializeAws_json1_1CreateApplicationCommand = async (
|
|
148
|
-
input: CreateApplicationCommandInput,
|
|
149
|
-
context: __SerdeContext
|
|
150
|
-
): Promise<__HttpRequest> => {
|
|
151
|
-
const headers: __HeaderBag = {
|
|
152
|
-
"content-type": "application/x-amz-json-1.1",
|
|
153
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateApplication",
|
|
154
|
-
};
|
|
155
|
-
let body: any;
|
|
156
|
-
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
157
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
export const serializeAws_json1_1CreateComponentCommand = async (
|
|
161
|
-
input: CreateComponentCommandInput,
|
|
162
|
-
context: __SerdeContext
|
|
163
|
-
): Promise<__HttpRequest> => {
|
|
164
|
-
const headers: __HeaderBag = {
|
|
165
|
-
"content-type": "application/x-amz-json-1.1",
|
|
166
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateComponent",
|
|
167
|
-
};
|
|
168
|
-
let body: any;
|
|
169
|
-
body = JSON.stringify(serializeAws_json1_1CreateComponentRequest(input, context));
|
|
170
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
export const serializeAws_json1_1CreateLogPatternCommand = async (
|
|
174
|
-
input: CreateLogPatternCommandInput,
|
|
175
|
-
context: __SerdeContext
|
|
176
|
-
): Promise<__HttpRequest> => {
|
|
177
|
-
const headers: __HeaderBag = {
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateLogPattern",
|
|
180
|
-
};
|
|
181
|
-
let body: any;
|
|
182
|
-
body = JSON.stringify(serializeAws_json1_1CreateLogPatternRequest(input, context));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export const serializeAws_json1_1DeleteApplicationCommand = async (
|
|
187
|
-
input: DeleteApplicationCommandInput,
|
|
188
|
-
context: __SerdeContext
|
|
189
|
-
): Promise<__HttpRequest> => {
|
|
190
|
-
const headers: __HeaderBag = {
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteApplication",
|
|
193
|
-
};
|
|
194
|
-
let body: any;
|
|
195
|
-
body = JSON.stringify(serializeAws_json1_1DeleteApplicationRequest(input, context));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
export const serializeAws_json1_1DeleteComponentCommand = async (
|
|
200
|
-
input: DeleteComponentCommandInput,
|
|
201
|
-
context: __SerdeContext
|
|
202
|
-
): Promise<__HttpRequest> => {
|
|
203
|
-
const headers: __HeaderBag = {
|
|
204
|
-
"content-type": "application/x-amz-json-1.1",
|
|
205
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteComponent",
|
|
206
|
-
};
|
|
207
|
-
let body: any;
|
|
208
|
-
body = JSON.stringify(serializeAws_json1_1DeleteComponentRequest(input, context));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
export const serializeAws_json1_1DeleteLogPatternCommand = async (
|
|
213
|
-
input: DeleteLogPatternCommandInput,
|
|
214
|
-
context: __SerdeContext
|
|
215
|
-
): Promise<__HttpRequest> => {
|
|
216
|
-
const headers: __HeaderBag = {
|
|
217
|
-
"content-type": "application/x-amz-json-1.1",
|
|
218
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteLogPattern",
|
|
219
|
-
};
|
|
220
|
-
let body: any;
|
|
221
|
-
body = JSON.stringify(serializeAws_json1_1DeleteLogPatternRequest(input, context));
|
|
222
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
export const serializeAws_json1_1DescribeApplicationCommand = async (
|
|
226
|
-
input: DescribeApplicationCommandInput,
|
|
227
|
-
context: __SerdeContext
|
|
228
|
-
): Promise<__HttpRequest> => {
|
|
229
|
-
const headers: __HeaderBag = {
|
|
230
|
-
"content-type": "application/x-amz-json-1.1",
|
|
231
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeApplication",
|
|
232
|
-
};
|
|
233
|
-
let body: any;
|
|
234
|
-
body = JSON.stringify(serializeAws_json1_1DescribeApplicationRequest(input, context));
|
|
235
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
export const serializeAws_json1_1DescribeComponentCommand = async (
|
|
239
|
-
input: DescribeComponentCommandInput,
|
|
240
|
-
context: __SerdeContext
|
|
241
|
-
): Promise<__HttpRequest> => {
|
|
242
|
-
const headers: __HeaderBag = {
|
|
243
|
-
"content-type": "application/x-amz-json-1.1",
|
|
244
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponent",
|
|
245
|
-
};
|
|
246
|
-
let body: any;
|
|
247
|
-
body = JSON.stringify(serializeAws_json1_1DescribeComponentRequest(input, context));
|
|
248
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
export const serializeAws_json1_1DescribeComponentConfigurationCommand = async (
|
|
252
|
-
input: DescribeComponentConfigurationCommandInput,
|
|
253
|
-
context: __SerdeContext
|
|
254
|
-
): Promise<__HttpRequest> => {
|
|
255
|
-
const headers: __HeaderBag = {
|
|
256
|
-
"content-type": "application/x-amz-json-1.1",
|
|
257
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponentConfiguration",
|
|
258
|
-
};
|
|
259
|
-
let body: any;
|
|
260
|
-
body = JSON.stringify(serializeAws_json1_1DescribeComponentConfigurationRequest(input, context));
|
|
261
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
export const serializeAws_json1_1DescribeComponentConfigurationRecommendationCommand = async (
|
|
265
|
-
input: DescribeComponentConfigurationRecommendationCommandInput,
|
|
266
|
-
context: __SerdeContext
|
|
267
|
-
): Promise<__HttpRequest> => {
|
|
268
|
-
const headers: __HeaderBag = {
|
|
269
|
-
"content-type": "application/x-amz-json-1.1",
|
|
270
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponentConfigurationRecommendation",
|
|
271
|
-
};
|
|
272
|
-
let body: any;
|
|
273
|
-
body = JSON.stringify(serializeAws_json1_1DescribeComponentConfigurationRecommendationRequest(input, context));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
export const serializeAws_json1_1DescribeLogPatternCommand = async (
|
|
278
|
-
input: DescribeLogPatternCommandInput,
|
|
279
|
-
context: __SerdeContext
|
|
280
|
-
): Promise<__HttpRequest> => {
|
|
281
|
-
const headers: __HeaderBag = {
|
|
282
|
-
"content-type": "application/x-amz-json-1.1",
|
|
283
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeLogPattern",
|
|
284
|
-
};
|
|
285
|
-
let body: any;
|
|
286
|
-
body = JSON.stringify(serializeAws_json1_1DescribeLogPatternRequest(input, context));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
export const serializeAws_json1_1DescribeObservationCommand = async (
|
|
291
|
-
input: DescribeObservationCommandInput,
|
|
292
|
-
context: __SerdeContext
|
|
293
|
-
): Promise<__HttpRequest> => {
|
|
294
|
-
const headers: __HeaderBag = {
|
|
295
|
-
"content-type": "application/x-amz-json-1.1",
|
|
296
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeObservation",
|
|
297
|
-
};
|
|
298
|
-
let body: any;
|
|
299
|
-
body = JSON.stringify(serializeAws_json1_1DescribeObservationRequest(input, context));
|
|
300
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
export const serializeAws_json1_1DescribeProblemCommand = async (
|
|
304
|
-
input: DescribeProblemCommandInput,
|
|
305
|
-
context: __SerdeContext
|
|
306
|
-
): Promise<__HttpRequest> => {
|
|
307
|
-
const headers: __HeaderBag = {
|
|
308
|
-
"content-type": "application/x-amz-json-1.1",
|
|
309
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeProblem",
|
|
310
|
-
};
|
|
311
|
-
let body: any;
|
|
312
|
-
body = JSON.stringify(serializeAws_json1_1DescribeProblemRequest(input, context));
|
|
313
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
export const serializeAws_json1_1DescribeProblemObservationsCommand = async (
|
|
317
|
-
input: DescribeProblemObservationsCommandInput,
|
|
318
|
-
context: __SerdeContext
|
|
319
|
-
): Promise<__HttpRequest> => {
|
|
320
|
-
const headers: __HeaderBag = {
|
|
321
|
-
"content-type": "application/x-amz-json-1.1",
|
|
322
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeProblemObservations",
|
|
323
|
-
};
|
|
324
|
-
let body: any;
|
|
325
|
-
body = JSON.stringify(serializeAws_json1_1DescribeProblemObservationsRequest(input, context));
|
|
326
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
export const serializeAws_json1_1ListApplicationsCommand = async (
|
|
330
|
-
input: ListApplicationsCommandInput,
|
|
331
|
-
context: __SerdeContext
|
|
332
|
-
): Promise<__HttpRequest> => {
|
|
333
|
-
const headers: __HeaderBag = {
|
|
334
|
-
"content-type": "application/x-amz-json-1.1",
|
|
335
|
-
"x-amz-target": "EC2WindowsBarleyService.ListApplications",
|
|
336
|
-
};
|
|
337
|
-
let body: any;
|
|
338
|
-
body = JSON.stringify(serializeAws_json1_1ListApplicationsRequest(input, context));
|
|
339
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
export const serializeAws_json1_1ListComponentsCommand = async (
|
|
343
|
-
input: ListComponentsCommandInput,
|
|
344
|
-
context: __SerdeContext
|
|
345
|
-
): Promise<__HttpRequest> => {
|
|
346
|
-
const headers: __HeaderBag = {
|
|
347
|
-
"content-type": "application/x-amz-json-1.1",
|
|
348
|
-
"x-amz-target": "EC2WindowsBarleyService.ListComponents",
|
|
349
|
-
};
|
|
350
|
-
let body: any;
|
|
351
|
-
body = JSON.stringify(serializeAws_json1_1ListComponentsRequest(input, context));
|
|
352
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
export const serializeAws_json1_1ListConfigurationHistoryCommand = async (
|
|
356
|
-
input: ListConfigurationHistoryCommandInput,
|
|
357
|
-
context: __SerdeContext
|
|
358
|
-
): Promise<__HttpRequest> => {
|
|
359
|
-
const headers: __HeaderBag = {
|
|
360
|
-
"content-type": "application/x-amz-json-1.1",
|
|
361
|
-
"x-amz-target": "EC2WindowsBarleyService.ListConfigurationHistory",
|
|
362
|
-
};
|
|
363
|
-
let body: any;
|
|
364
|
-
body = JSON.stringify(serializeAws_json1_1ListConfigurationHistoryRequest(input, context));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
export const serializeAws_json1_1ListLogPatternsCommand = async (
|
|
369
|
-
input: ListLogPatternsCommandInput,
|
|
370
|
-
context: __SerdeContext
|
|
371
|
-
): Promise<__HttpRequest> => {
|
|
372
|
-
const headers: __HeaderBag = {
|
|
373
|
-
"content-type": "application/x-amz-json-1.1",
|
|
374
|
-
"x-amz-target": "EC2WindowsBarleyService.ListLogPatterns",
|
|
375
|
-
};
|
|
376
|
-
let body: any;
|
|
377
|
-
body = JSON.stringify(serializeAws_json1_1ListLogPatternsRequest(input, context));
|
|
378
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
export const serializeAws_json1_1ListLogPatternSetsCommand = async (
|
|
382
|
-
input: ListLogPatternSetsCommandInput,
|
|
383
|
-
context: __SerdeContext
|
|
384
|
-
): Promise<__HttpRequest> => {
|
|
385
|
-
const headers: __HeaderBag = {
|
|
386
|
-
"content-type": "application/x-amz-json-1.1",
|
|
387
|
-
"x-amz-target": "EC2WindowsBarleyService.ListLogPatternSets",
|
|
388
|
-
};
|
|
389
|
-
let body: any;
|
|
390
|
-
body = JSON.stringify(serializeAws_json1_1ListLogPatternSetsRequest(input, context));
|
|
391
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
export const serializeAws_json1_1ListProblemsCommand = async (
|
|
395
|
-
input: ListProblemsCommandInput,
|
|
396
|
-
context: __SerdeContext
|
|
397
|
-
): Promise<__HttpRequest> => {
|
|
398
|
-
const headers: __HeaderBag = {
|
|
399
|
-
"content-type": "application/x-amz-json-1.1",
|
|
400
|
-
"x-amz-target": "EC2WindowsBarleyService.ListProblems",
|
|
401
|
-
};
|
|
402
|
-
let body: any;
|
|
403
|
-
body = JSON.stringify(serializeAws_json1_1ListProblemsRequest(input, context));
|
|
404
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
export const serializeAws_json1_1ListTagsForResourceCommand = async (
|
|
408
|
-
input: ListTagsForResourceCommandInput,
|
|
409
|
-
context: __SerdeContext
|
|
410
|
-
): Promise<__HttpRequest> => {
|
|
411
|
-
const headers: __HeaderBag = {
|
|
412
|
-
"content-type": "application/x-amz-json-1.1",
|
|
413
|
-
"x-amz-target": "EC2WindowsBarleyService.ListTagsForResource",
|
|
414
|
-
};
|
|
415
|
-
let body: any;
|
|
416
|
-
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
417
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
export const serializeAws_json1_1TagResourceCommand = async (
|
|
421
|
-
input: TagResourceCommandInput,
|
|
422
|
-
context: __SerdeContext
|
|
423
|
-
): Promise<__HttpRequest> => {
|
|
424
|
-
const headers: __HeaderBag = {
|
|
425
|
-
"content-type": "application/x-amz-json-1.1",
|
|
426
|
-
"x-amz-target": "EC2WindowsBarleyService.TagResource",
|
|
427
|
-
};
|
|
428
|
-
let body: any;
|
|
429
|
-
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
430
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
export const serializeAws_json1_1UntagResourceCommand = async (
|
|
434
|
-
input: UntagResourceCommandInput,
|
|
435
|
-
context: __SerdeContext
|
|
436
|
-
): Promise<__HttpRequest> => {
|
|
437
|
-
const headers: __HeaderBag = {
|
|
438
|
-
"content-type": "application/x-amz-json-1.1",
|
|
439
|
-
"x-amz-target": "EC2WindowsBarleyService.UntagResource",
|
|
440
|
-
};
|
|
441
|
-
let body: any;
|
|
442
|
-
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
443
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
export const serializeAws_json1_1UpdateApplicationCommand = async (
|
|
447
|
-
input: UpdateApplicationCommandInput,
|
|
448
|
-
context: __SerdeContext
|
|
449
|
-
): Promise<__HttpRequest> => {
|
|
450
|
-
const headers: __HeaderBag = {
|
|
451
|
-
"content-type": "application/x-amz-json-1.1",
|
|
452
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateApplication",
|
|
453
|
-
};
|
|
454
|
-
let body: any;
|
|
455
|
-
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
export const serializeAws_json1_1UpdateComponentCommand = async (
|
|
460
|
-
input: UpdateComponentCommandInput,
|
|
461
|
-
context: __SerdeContext
|
|
462
|
-
): Promise<__HttpRequest> => {
|
|
463
|
-
const headers: __HeaderBag = {
|
|
464
|
-
"content-type": "application/x-amz-json-1.1",
|
|
465
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateComponent",
|
|
466
|
-
};
|
|
467
|
-
let body: any;
|
|
468
|
-
body = JSON.stringify(serializeAws_json1_1UpdateComponentRequest(input, context));
|
|
469
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
export const serializeAws_json1_1UpdateComponentConfigurationCommand = async (
|
|
473
|
-
input: UpdateComponentConfigurationCommandInput,
|
|
474
|
-
context: __SerdeContext
|
|
475
|
-
): Promise<__HttpRequest> => {
|
|
476
|
-
const headers: __HeaderBag = {
|
|
477
|
-
"content-type": "application/x-amz-json-1.1",
|
|
478
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateComponentConfiguration",
|
|
479
|
-
};
|
|
480
|
-
let body: any;
|
|
481
|
-
body = JSON.stringify(serializeAws_json1_1UpdateComponentConfigurationRequest(input, context));
|
|
482
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
export const serializeAws_json1_1UpdateLogPatternCommand = async (
|
|
486
|
-
input: UpdateLogPatternCommandInput,
|
|
487
|
-
context: __SerdeContext
|
|
488
|
-
): Promise<__HttpRequest> => {
|
|
489
|
-
const headers: __HeaderBag = {
|
|
490
|
-
"content-type": "application/x-amz-json-1.1",
|
|
491
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateLogPattern",
|
|
492
|
-
};
|
|
493
|
-
let body: any;
|
|
494
|
-
body = JSON.stringify(serializeAws_json1_1UpdateLogPatternRequest(input, context));
|
|
495
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
export const deserializeAws_json1_1CreateApplicationCommand = async (
|
|
499
|
-
output: __HttpResponse,
|
|
500
|
-
context: __SerdeContext
|
|
501
|
-
): Promise<CreateApplicationCommandOutput> => {
|
|
502
|
-
if (output.statusCode >= 300) {
|
|
503
|
-
return deserializeAws_json1_1CreateApplicationCommandError(output, context);
|
|
504
|
-
}
|
|
505
|
-
const data: any = await parseBody(output.body, context);
|
|
506
|
-
let contents: any = {};
|
|
507
|
-
contents = deserializeAws_json1_1CreateApplicationResponse(data, context);
|
|
508
|
-
const response: CreateApplicationCommandOutput = {
|
|
509
|
-
$metadata: deserializeMetadata(output),
|
|
510
|
-
...contents,
|
|
511
|
-
};
|
|
512
|
-
return Promise.resolve(response);
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
const deserializeAws_json1_1CreateApplicationCommandError = async (
|
|
516
|
-
output: __HttpResponse,
|
|
517
|
-
context: __SerdeContext
|
|
518
|
-
): Promise<CreateApplicationCommandOutput> => {
|
|
519
|
-
const parsedOutput: any = {
|
|
520
|
-
...output,
|
|
521
|
-
body: await parseBody(output.body, context),
|
|
522
|
-
};
|
|
523
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
524
|
-
let errorCode: string = "UnknownError";
|
|
525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
526
|
-
switch (errorCode) {
|
|
527
|
-
case "AccessDeniedException":
|
|
528
|
-
case "com.amazonaws.applicationinsights#AccessDeniedException":
|
|
529
|
-
response = {
|
|
530
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
531
|
-
name: errorCode,
|
|
532
|
-
$metadata: deserializeMetadata(output),
|
|
533
|
-
};
|
|
534
|
-
break;
|
|
535
|
-
case "InternalServerException":
|
|
536
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
537
|
-
response = {
|
|
538
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
539
|
-
name: errorCode,
|
|
540
|
-
$metadata: deserializeMetadata(output),
|
|
541
|
-
};
|
|
542
|
-
break;
|
|
543
|
-
case "ResourceInUseException":
|
|
544
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
545
|
-
response = {
|
|
546
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
547
|
-
name: errorCode,
|
|
548
|
-
$metadata: deserializeMetadata(output),
|
|
549
|
-
};
|
|
550
|
-
break;
|
|
551
|
-
case "ResourceNotFoundException":
|
|
552
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
553
|
-
response = {
|
|
554
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
555
|
-
name: errorCode,
|
|
556
|
-
$metadata: deserializeMetadata(output),
|
|
557
|
-
};
|
|
558
|
-
break;
|
|
559
|
-
case "TagsAlreadyExistException":
|
|
560
|
-
case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
|
|
561
|
-
response = {
|
|
562
|
-
...(await deserializeAws_json1_1TagsAlreadyExistExceptionResponse(parsedOutput, context)),
|
|
563
|
-
name: errorCode,
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
};
|
|
566
|
-
break;
|
|
567
|
-
case "ValidationException":
|
|
568
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
569
|
-
response = {
|
|
570
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
571
|
-
name: errorCode,
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
};
|
|
574
|
-
break;
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
578
|
-
response = {
|
|
579
|
-
...parsedBody,
|
|
580
|
-
name: `${errorCode}`,
|
|
581
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
582
|
-
$fault: "client",
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
} as any;
|
|
585
|
-
}
|
|
586
|
-
const message = response.message || response.Message || errorCode;
|
|
587
|
-
response.message = message;
|
|
588
|
-
delete response.Message;
|
|
589
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
export const deserializeAws_json1_1CreateComponentCommand = async (
|
|
593
|
-
output: __HttpResponse,
|
|
594
|
-
context: __SerdeContext
|
|
595
|
-
): Promise<CreateComponentCommandOutput> => {
|
|
596
|
-
if (output.statusCode >= 300) {
|
|
597
|
-
return deserializeAws_json1_1CreateComponentCommandError(output, context);
|
|
598
|
-
}
|
|
599
|
-
const data: any = await parseBody(output.body, context);
|
|
600
|
-
let contents: any = {};
|
|
601
|
-
contents = deserializeAws_json1_1CreateComponentResponse(data, context);
|
|
602
|
-
const response: CreateComponentCommandOutput = {
|
|
603
|
-
$metadata: deserializeMetadata(output),
|
|
604
|
-
...contents,
|
|
605
|
-
};
|
|
606
|
-
return Promise.resolve(response);
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
const deserializeAws_json1_1CreateComponentCommandError = async (
|
|
610
|
-
output: __HttpResponse,
|
|
611
|
-
context: __SerdeContext
|
|
612
|
-
): Promise<CreateComponentCommandOutput> => {
|
|
613
|
-
const parsedOutput: any = {
|
|
614
|
-
...output,
|
|
615
|
-
body: await parseBody(output.body, context),
|
|
616
|
-
};
|
|
617
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
618
|
-
let errorCode: string = "UnknownError";
|
|
619
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
-
switch (errorCode) {
|
|
621
|
-
case "InternalServerException":
|
|
622
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
623
|
-
response = {
|
|
624
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
625
|
-
name: errorCode,
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
};
|
|
628
|
-
break;
|
|
629
|
-
case "ResourceInUseException":
|
|
630
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
631
|
-
response = {
|
|
632
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
633
|
-
name: errorCode,
|
|
634
|
-
$metadata: deserializeMetadata(output),
|
|
635
|
-
};
|
|
636
|
-
break;
|
|
637
|
-
case "ResourceNotFoundException":
|
|
638
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
639
|
-
response = {
|
|
640
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
641
|
-
name: errorCode,
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
644
|
-
break;
|
|
645
|
-
case "ValidationException":
|
|
646
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
647
|
-
response = {
|
|
648
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
649
|
-
name: errorCode,
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
};
|
|
652
|
-
break;
|
|
653
|
-
default:
|
|
654
|
-
const parsedBody = parsedOutput.body;
|
|
655
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
656
|
-
response = {
|
|
657
|
-
...parsedBody,
|
|
658
|
-
name: `${errorCode}`,
|
|
659
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
660
|
-
$fault: "client",
|
|
661
|
-
$metadata: deserializeMetadata(output),
|
|
662
|
-
} as any;
|
|
663
|
-
}
|
|
664
|
-
const message = response.message || response.Message || errorCode;
|
|
665
|
-
response.message = message;
|
|
666
|
-
delete response.Message;
|
|
667
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
export const deserializeAws_json1_1CreateLogPatternCommand = async (
|
|
671
|
-
output: __HttpResponse,
|
|
672
|
-
context: __SerdeContext
|
|
673
|
-
): Promise<CreateLogPatternCommandOutput> => {
|
|
674
|
-
if (output.statusCode >= 300) {
|
|
675
|
-
return deserializeAws_json1_1CreateLogPatternCommandError(output, context);
|
|
676
|
-
}
|
|
677
|
-
const data: any = await parseBody(output.body, context);
|
|
678
|
-
let contents: any = {};
|
|
679
|
-
contents = deserializeAws_json1_1CreateLogPatternResponse(data, context);
|
|
680
|
-
const response: CreateLogPatternCommandOutput = {
|
|
681
|
-
$metadata: deserializeMetadata(output),
|
|
682
|
-
...contents,
|
|
683
|
-
};
|
|
684
|
-
return Promise.resolve(response);
|
|
685
|
-
};
|
|
686
|
-
|
|
687
|
-
const deserializeAws_json1_1CreateLogPatternCommandError = async (
|
|
688
|
-
output: __HttpResponse,
|
|
689
|
-
context: __SerdeContext
|
|
690
|
-
): Promise<CreateLogPatternCommandOutput> => {
|
|
691
|
-
const parsedOutput: any = {
|
|
692
|
-
...output,
|
|
693
|
-
body: await parseBody(output.body, context),
|
|
694
|
-
};
|
|
695
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
696
|
-
let errorCode: string = "UnknownError";
|
|
697
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
|
-
switch (errorCode) {
|
|
699
|
-
case "InternalServerException":
|
|
700
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
701
|
-
response = {
|
|
702
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
703
|
-
name: errorCode,
|
|
704
|
-
$metadata: deserializeMetadata(output),
|
|
705
|
-
};
|
|
706
|
-
break;
|
|
707
|
-
case "ResourceInUseException":
|
|
708
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
709
|
-
response = {
|
|
710
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
711
|
-
name: errorCode,
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
};
|
|
714
|
-
break;
|
|
715
|
-
case "ResourceNotFoundException":
|
|
716
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
717
|
-
response = {
|
|
718
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
719
|
-
name: errorCode,
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
};
|
|
722
|
-
break;
|
|
723
|
-
case "ValidationException":
|
|
724
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
725
|
-
response = {
|
|
726
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
727
|
-
name: errorCode,
|
|
728
|
-
$metadata: deserializeMetadata(output),
|
|
729
|
-
};
|
|
730
|
-
break;
|
|
731
|
-
default:
|
|
732
|
-
const parsedBody = parsedOutput.body;
|
|
733
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
734
|
-
response = {
|
|
735
|
-
...parsedBody,
|
|
736
|
-
name: `${errorCode}`,
|
|
737
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
738
|
-
$fault: "client",
|
|
739
|
-
$metadata: deserializeMetadata(output),
|
|
740
|
-
} as any;
|
|
741
|
-
}
|
|
742
|
-
const message = response.message || response.Message || errorCode;
|
|
743
|
-
response.message = message;
|
|
744
|
-
delete response.Message;
|
|
745
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
export const deserializeAws_json1_1DeleteApplicationCommand = async (
|
|
749
|
-
output: __HttpResponse,
|
|
750
|
-
context: __SerdeContext
|
|
751
|
-
): Promise<DeleteApplicationCommandOutput> => {
|
|
752
|
-
if (output.statusCode >= 300) {
|
|
753
|
-
return deserializeAws_json1_1DeleteApplicationCommandError(output, context);
|
|
754
|
-
}
|
|
755
|
-
const data: any = await parseBody(output.body, context);
|
|
756
|
-
let contents: any = {};
|
|
757
|
-
contents = deserializeAws_json1_1DeleteApplicationResponse(data, context);
|
|
758
|
-
const response: DeleteApplicationCommandOutput = {
|
|
759
|
-
$metadata: deserializeMetadata(output),
|
|
760
|
-
...contents,
|
|
761
|
-
};
|
|
762
|
-
return Promise.resolve(response);
|
|
763
|
-
};
|
|
764
|
-
|
|
765
|
-
const deserializeAws_json1_1DeleteApplicationCommandError = async (
|
|
766
|
-
output: __HttpResponse,
|
|
767
|
-
context: __SerdeContext
|
|
768
|
-
): Promise<DeleteApplicationCommandOutput> => {
|
|
769
|
-
const parsedOutput: any = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseBody(output.body, context),
|
|
772
|
-
};
|
|
773
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
774
|
-
let errorCode: string = "UnknownError";
|
|
775
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
|
-
switch (errorCode) {
|
|
777
|
-
case "BadRequestException":
|
|
778
|
-
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
779
|
-
response = {
|
|
780
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
781
|
-
name: errorCode,
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
};
|
|
784
|
-
break;
|
|
785
|
-
case "InternalServerException":
|
|
786
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
787
|
-
response = {
|
|
788
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
789
|
-
name: errorCode,
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
};
|
|
792
|
-
break;
|
|
793
|
-
case "ResourceNotFoundException":
|
|
794
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
795
|
-
response = {
|
|
796
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
797
|
-
name: errorCode,
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
};
|
|
800
|
-
break;
|
|
801
|
-
case "ValidationException":
|
|
802
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
803
|
-
response = {
|
|
804
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
805
|
-
name: errorCode,
|
|
806
|
-
$metadata: deserializeMetadata(output),
|
|
807
|
-
};
|
|
808
|
-
break;
|
|
809
|
-
default:
|
|
810
|
-
const parsedBody = parsedOutput.body;
|
|
811
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
812
|
-
response = {
|
|
813
|
-
...parsedBody,
|
|
814
|
-
name: `${errorCode}`,
|
|
815
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
816
|
-
$fault: "client",
|
|
817
|
-
$metadata: deserializeMetadata(output),
|
|
818
|
-
} as any;
|
|
819
|
-
}
|
|
820
|
-
const message = response.message || response.Message || errorCode;
|
|
821
|
-
response.message = message;
|
|
822
|
-
delete response.Message;
|
|
823
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
export const deserializeAws_json1_1DeleteComponentCommand = async (
|
|
827
|
-
output: __HttpResponse,
|
|
828
|
-
context: __SerdeContext
|
|
829
|
-
): Promise<DeleteComponentCommandOutput> => {
|
|
830
|
-
if (output.statusCode >= 300) {
|
|
831
|
-
return deserializeAws_json1_1DeleteComponentCommandError(output, context);
|
|
832
|
-
}
|
|
833
|
-
const data: any = await parseBody(output.body, context);
|
|
834
|
-
let contents: any = {};
|
|
835
|
-
contents = deserializeAws_json1_1DeleteComponentResponse(data, context);
|
|
836
|
-
const response: DeleteComponentCommandOutput = {
|
|
837
|
-
$metadata: deserializeMetadata(output),
|
|
838
|
-
...contents,
|
|
839
|
-
};
|
|
840
|
-
return Promise.resolve(response);
|
|
841
|
-
};
|
|
842
|
-
|
|
843
|
-
const deserializeAws_json1_1DeleteComponentCommandError = async (
|
|
844
|
-
output: __HttpResponse,
|
|
845
|
-
context: __SerdeContext
|
|
846
|
-
): Promise<DeleteComponentCommandOutput> => {
|
|
847
|
-
const parsedOutput: any = {
|
|
848
|
-
...output,
|
|
849
|
-
body: await parseBody(output.body, context),
|
|
850
|
-
};
|
|
851
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
852
|
-
let errorCode: string = "UnknownError";
|
|
853
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
|
-
switch (errorCode) {
|
|
855
|
-
case "InternalServerException":
|
|
856
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
857
|
-
response = {
|
|
858
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
859
|
-
name: errorCode,
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
};
|
|
862
|
-
break;
|
|
863
|
-
case "ResourceNotFoundException":
|
|
864
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
865
|
-
response = {
|
|
866
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
867
|
-
name: errorCode,
|
|
868
|
-
$metadata: deserializeMetadata(output),
|
|
869
|
-
};
|
|
870
|
-
break;
|
|
871
|
-
case "ValidationException":
|
|
872
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
873
|
-
response = {
|
|
874
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
875
|
-
name: errorCode,
|
|
876
|
-
$metadata: deserializeMetadata(output),
|
|
877
|
-
};
|
|
878
|
-
break;
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
882
|
-
response = {
|
|
883
|
-
...parsedBody,
|
|
884
|
-
name: `${errorCode}`,
|
|
885
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
886
|
-
$fault: "client",
|
|
887
|
-
$metadata: deserializeMetadata(output),
|
|
888
|
-
} as any;
|
|
889
|
-
}
|
|
890
|
-
const message = response.message || response.Message || errorCode;
|
|
891
|
-
response.message = message;
|
|
892
|
-
delete response.Message;
|
|
893
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
export const deserializeAws_json1_1DeleteLogPatternCommand = async (
|
|
897
|
-
output: __HttpResponse,
|
|
898
|
-
context: __SerdeContext
|
|
899
|
-
): Promise<DeleteLogPatternCommandOutput> => {
|
|
900
|
-
if (output.statusCode >= 300) {
|
|
901
|
-
return deserializeAws_json1_1DeleteLogPatternCommandError(output, context);
|
|
902
|
-
}
|
|
903
|
-
const data: any = await parseBody(output.body, context);
|
|
904
|
-
let contents: any = {};
|
|
905
|
-
contents = deserializeAws_json1_1DeleteLogPatternResponse(data, context);
|
|
906
|
-
const response: DeleteLogPatternCommandOutput = {
|
|
907
|
-
$metadata: deserializeMetadata(output),
|
|
908
|
-
...contents,
|
|
909
|
-
};
|
|
910
|
-
return Promise.resolve(response);
|
|
911
|
-
};
|
|
912
|
-
|
|
913
|
-
const deserializeAws_json1_1DeleteLogPatternCommandError = async (
|
|
914
|
-
output: __HttpResponse,
|
|
915
|
-
context: __SerdeContext
|
|
916
|
-
): Promise<DeleteLogPatternCommandOutput> => {
|
|
917
|
-
const parsedOutput: any = {
|
|
918
|
-
...output,
|
|
919
|
-
body: await parseBody(output.body, context),
|
|
920
|
-
};
|
|
921
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
922
|
-
let errorCode: string = "UnknownError";
|
|
923
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "BadRequestException":
|
|
926
|
-
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
927
|
-
response = {
|
|
928
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
929
|
-
name: errorCode,
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
};
|
|
932
|
-
break;
|
|
933
|
-
case "InternalServerException":
|
|
934
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
935
|
-
response = {
|
|
936
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
937
|
-
name: errorCode,
|
|
938
|
-
$metadata: deserializeMetadata(output),
|
|
939
|
-
};
|
|
940
|
-
break;
|
|
941
|
-
case "ResourceNotFoundException":
|
|
942
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
943
|
-
response = {
|
|
944
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
945
|
-
name: errorCode,
|
|
946
|
-
$metadata: deserializeMetadata(output),
|
|
947
|
-
};
|
|
948
|
-
break;
|
|
949
|
-
case "ValidationException":
|
|
950
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
951
|
-
response = {
|
|
952
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
953
|
-
name: errorCode,
|
|
954
|
-
$metadata: deserializeMetadata(output),
|
|
955
|
-
};
|
|
956
|
-
break;
|
|
957
|
-
default:
|
|
958
|
-
const parsedBody = parsedOutput.body;
|
|
959
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
960
|
-
response = {
|
|
961
|
-
...parsedBody,
|
|
962
|
-
name: `${errorCode}`,
|
|
963
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
964
|
-
$fault: "client",
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
} as any;
|
|
967
|
-
}
|
|
968
|
-
const message = response.message || response.Message || errorCode;
|
|
969
|
-
response.message = message;
|
|
970
|
-
delete response.Message;
|
|
971
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
export const deserializeAws_json1_1DescribeApplicationCommand = async (
|
|
975
|
-
output: __HttpResponse,
|
|
976
|
-
context: __SerdeContext
|
|
977
|
-
): Promise<DescribeApplicationCommandOutput> => {
|
|
978
|
-
if (output.statusCode >= 300) {
|
|
979
|
-
return deserializeAws_json1_1DescribeApplicationCommandError(output, context);
|
|
980
|
-
}
|
|
981
|
-
const data: any = await parseBody(output.body, context);
|
|
982
|
-
let contents: any = {};
|
|
983
|
-
contents = deserializeAws_json1_1DescribeApplicationResponse(data, context);
|
|
984
|
-
const response: DescribeApplicationCommandOutput = {
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
...contents,
|
|
987
|
-
};
|
|
988
|
-
return Promise.resolve(response);
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
const deserializeAws_json1_1DescribeApplicationCommandError = async (
|
|
992
|
-
output: __HttpResponse,
|
|
993
|
-
context: __SerdeContext
|
|
994
|
-
): Promise<DescribeApplicationCommandOutput> => {
|
|
995
|
-
const parsedOutput: any = {
|
|
996
|
-
...output,
|
|
997
|
-
body: await parseBody(output.body, context),
|
|
998
|
-
};
|
|
999
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1000
|
-
let errorCode: string = "UnknownError";
|
|
1001
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
|
-
switch (errorCode) {
|
|
1003
|
-
case "InternalServerException":
|
|
1004
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1005
|
-
response = {
|
|
1006
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1007
|
-
name: errorCode,
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
};
|
|
1010
|
-
break;
|
|
1011
|
-
case "ResourceNotFoundException":
|
|
1012
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1013
|
-
response = {
|
|
1014
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1015
|
-
name: errorCode,
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
};
|
|
1018
|
-
break;
|
|
1019
|
-
case "ValidationException":
|
|
1020
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1021
|
-
response = {
|
|
1022
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1023
|
-
name: errorCode,
|
|
1024
|
-
$metadata: deserializeMetadata(output),
|
|
1025
|
-
};
|
|
1026
|
-
break;
|
|
1027
|
-
default:
|
|
1028
|
-
const parsedBody = parsedOutput.body;
|
|
1029
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1030
|
-
response = {
|
|
1031
|
-
...parsedBody,
|
|
1032
|
-
name: `${errorCode}`,
|
|
1033
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1034
|
-
$fault: "client",
|
|
1035
|
-
$metadata: deserializeMetadata(output),
|
|
1036
|
-
} as any;
|
|
1037
|
-
}
|
|
1038
|
-
const message = response.message || response.Message || errorCode;
|
|
1039
|
-
response.message = message;
|
|
1040
|
-
delete response.Message;
|
|
1041
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1042
|
-
};
|
|
1043
|
-
|
|
1044
|
-
export const deserializeAws_json1_1DescribeComponentCommand = async (
|
|
1045
|
-
output: __HttpResponse,
|
|
1046
|
-
context: __SerdeContext
|
|
1047
|
-
): Promise<DescribeComponentCommandOutput> => {
|
|
1048
|
-
if (output.statusCode >= 300) {
|
|
1049
|
-
return deserializeAws_json1_1DescribeComponentCommandError(output, context);
|
|
1050
|
-
}
|
|
1051
|
-
const data: any = await parseBody(output.body, context);
|
|
1052
|
-
let contents: any = {};
|
|
1053
|
-
contents = deserializeAws_json1_1DescribeComponentResponse(data, context);
|
|
1054
|
-
const response: DescribeComponentCommandOutput = {
|
|
1055
|
-
$metadata: deserializeMetadata(output),
|
|
1056
|
-
...contents,
|
|
1057
|
-
};
|
|
1058
|
-
return Promise.resolve(response);
|
|
1059
|
-
};
|
|
1060
|
-
|
|
1061
|
-
const deserializeAws_json1_1DescribeComponentCommandError = async (
|
|
1062
|
-
output: __HttpResponse,
|
|
1063
|
-
context: __SerdeContext
|
|
1064
|
-
): Promise<DescribeComponentCommandOutput> => {
|
|
1065
|
-
const parsedOutput: any = {
|
|
1066
|
-
...output,
|
|
1067
|
-
body: await parseBody(output.body, context),
|
|
1068
|
-
};
|
|
1069
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1070
|
-
let errorCode: string = "UnknownError";
|
|
1071
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "InternalServerException":
|
|
1074
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1075
|
-
response = {
|
|
1076
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1077
|
-
name: errorCode,
|
|
1078
|
-
$metadata: deserializeMetadata(output),
|
|
1079
|
-
};
|
|
1080
|
-
break;
|
|
1081
|
-
case "ResourceNotFoundException":
|
|
1082
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1083
|
-
response = {
|
|
1084
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1085
|
-
name: errorCode,
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
};
|
|
1088
|
-
break;
|
|
1089
|
-
case "ValidationException":
|
|
1090
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1091
|
-
response = {
|
|
1092
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1093
|
-
name: errorCode,
|
|
1094
|
-
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
1096
|
-
break;
|
|
1097
|
-
default:
|
|
1098
|
-
const parsedBody = parsedOutput.body;
|
|
1099
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1100
|
-
response = {
|
|
1101
|
-
...parsedBody,
|
|
1102
|
-
name: `${errorCode}`,
|
|
1103
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1104
|
-
$fault: "client",
|
|
1105
|
-
$metadata: deserializeMetadata(output),
|
|
1106
|
-
} as any;
|
|
1107
|
-
}
|
|
1108
|
-
const message = response.message || response.Message || errorCode;
|
|
1109
|
-
response.message = message;
|
|
1110
|
-
delete response.Message;
|
|
1111
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
|
-
export const deserializeAws_json1_1DescribeComponentConfigurationCommand = async (
|
|
1115
|
-
output: __HttpResponse,
|
|
1116
|
-
context: __SerdeContext
|
|
1117
|
-
): Promise<DescribeComponentConfigurationCommandOutput> => {
|
|
1118
|
-
if (output.statusCode >= 300) {
|
|
1119
|
-
return deserializeAws_json1_1DescribeComponentConfigurationCommandError(output, context);
|
|
1120
|
-
}
|
|
1121
|
-
const data: any = await parseBody(output.body, context);
|
|
1122
|
-
let contents: any = {};
|
|
1123
|
-
contents = deserializeAws_json1_1DescribeComponentConfigurationResponse(data, context);
|
|
1124
|
-
const response: DescribeComponentConfigurationCommandOutput = {
|
|
1125
|
-
$metadata: deserializeMetadata(output),
|
|
1126
|
-
...contents,
|
|
1127
|
-
};
|
|
1128
|
-
return Promise.resolve(response);
|
|
1129
|
-
};
|
|
1130
|
-
|
|
1131
|
-
const deserializeAws_json1_1DescribeComponentConfigurationCommandError = async (
|
|
1132
|
-
output: __HttpResponse,
|
|
1133
|
-
context: __SerdeContext
|
|
1134
|
-
): Promise<DescribeComponentConfigurationCommandOutput> => {
|
|
1135
|
-
const parsedOutput: any = {
|
|
1136
|
-
...output,
|
|
1137
|
-
body: await parseBody(output.body, context),
|
|
1138
|
-
};
|
|
1139
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1140
|
-
let errorCode: string = "UnknownError";
|
|
1141
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
|
-
switch (errorCode) {
|
|
1143
|
-
case "InternalServerException":
|
|
1144
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1145
|
-
response = {
|
|
1146
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1147
|
-
name: errorCode,
|
|
1148
|
-
$metadata: deserializeMetadata(output),
|
|
1149
|
-
};
|
|
1150
|
-
break;
|
|
1151
|
-
case "ResourceNotFoundException":
|
|
1152
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1153
|
-
response = {
|
|
1154
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1155
|
-
name: errorCode,
|
|
1156
|
-
$metadata: deserializeMetadata(output),
|
|
1157
|
-
};
|
|
1158
|
-
break;
|
|
1159
|
-
case "ValidationException":
|
|
1160
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1161
|
-
response = {
|
|
1162
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1163
|
-
name: errorCode,
|
|
1164
|
-
$metadata: deserializeMetadata(output),
|
|
1165
|
-
};
|
|
1166
|
-
break;
|
|
1167
|
-
default:
|
|
1168
|
-
const parsedBody = parsedOutput.body;
|
|
1169
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1170
|
-
response = {
|
|
1171
|
-
...parsedBody,
|
|
1172
|
-
name: `${errorCode}`,
|
|
1173
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1174
|
-
$fault: "client",
|
|
1175
|
-
$metadata: deserializeMetadata(output),
|
|
1176
|
-
} as any;
|
|
1177
|
-
}
|
|
1178
|
-
const message = response.message || response.Message || errorCode;
|
|
1179
|
-
response.message = message;
|
|
1180
|
-
delete response.Message;
|
|
1181
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1182
|
-
};
|
|
1183
|
-
|
|
1184
|
-
export const deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommand = async (
|
|
1185
|
-
output: __HttpResponse,
|
|
1186
|
-
context: __SerdeContext
|
|
1187
|
-
): Promise<DescribeComponentConfigurationRecommendationCommandOutput> => {
|
|
1188
|
-
if (output.statusCode >= 300) {
|
|
1189
|
-
return deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommandError(output, context);
|
|
1190
|
-
}
|
|
1191
|
-
const data: any = await parseBody(output.body, context);
|
|
1192
|
-
let contents: any = {};
|
|
1193
|
-
contents = deserializeAws_json1_1DescribeComponentConfigurationRecommendationResponse(data, context);
|
|
1194
|
-
const response: DescribeComponentConfigurationRecommendationCommandOutput = {
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
...contents,
|
|
1197
|
-
};
|
|
1198
|
-
return Promise.resolve(response);
|
|
1199
|
-
};
|
|
1200
|
-
|
|
1201
|
-
const deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommandError = async (
|
|
1202
|
-
output: __HttpResponse,
|
|
1203
|
-
context: __SerdeContext
|
|
1204
|
-
): Promise<DescribeComponentConfigurationRecommendationCommandOutput> => {
|
|
1205
|
-
const parsedOutput: any = {
|
|
1206
|
-
...output,
|
|
1207
|
-
body: await parseBody(output.body, context),
|
|
1208
|
-
};
|
|
1209
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1210
|
-
let errorCode: string = "UnknownError";
|
|
1211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
|
-
switch (errorCode) {
|
|
1213
|
-
case "InternalServerException":
|
|
1214
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1215
|
-
response = {
|
|
1216
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1217
|
-
name: errorCode,
|
|
1218
|
-
$metadata: deserializeMetadata(output),
|
|
1219
|
-
};
|
|
1220
|
-
break;
|
|
1221
|
-
case "ResourceNotFoundException":
|
|
1222
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1223
|
-
response = {
|
|
1224
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1225
|
-
name: errorCode,
|
|
1226
|
-
$metadata: deserializeMetadata(output),
|
|
1227
|
-
};
|
|
1228
|
-
break;
|
|
1229
|
-
case "ValidationException":
|
|
1230
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1231
|
-
response = {
|
|
1232
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1233
|
-
name: errorCode,
|
|
1234
|
-
$metadata: deserializeMetadata(output),
|
|
1235
|
-
};
|
|
1236
|
-
break;
|
|
1237
|
-
default:
|
|
1238
|
-
const parsedBody = parsedOutput.body;
|
|
1239
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1240
|
-
response = {
|
|
1241
|
-
...parsedBody,
|
|
1242
|
-
name: `${errorCode}`,
|
|
1243
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1244
|
-
$fault: "client",
|
|
1245
|
-
$metadata: deserializeMetadata(output),
|
|
1246
|
-
} as any;
|
|
1247
|
-
}
|
|
1248
|
-
const message = response.message || response.Message || errorCode;
|
|
1249
|
-
response.message = message;
|
|
1250
|
-
delete response.Message;
|
|
1251
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1252
|
-
};
|
|
1253
|
-
|
|
1254
|
-
export const deserializeAws_json1_1DescribeLogPatternCommand = async (
|
|
1255
|
-
output: __HttpResponse,
|
|
1256
|
-
context: __SerdeContext
|
|
1257
|
-
): Promise<DescribeLogPatternCommandOutput> => {
|
|
1258
|
-
if (output.statusCode >= 300) {
|
|
1259
|
-
return deserializeAws_json1_1DescribeLogPatternCommandError(output, context);
|
|
1260
|
-
}
|
|
1261
|
-
const data: any = await parseBody(output.body, context);
|
|
1262
|
-
let contents: any = {};
|
|
1263
|
-
contents = deserializeAws_json1_1DescribeLogPatternResponse(data, context);
|
|
1264
|
-
const response: DescribeLogPatternCommandOutput = {
|
|
1265
|
-
$metadata: deserializeMetadata(output),
|
|
1266
|
-
...contents,
|
|
1267
|
-
};
|
|
1268
|
-
return Promise.resolve(response);
|
|
1269
|
-
};
|
|
1270
|
-
|
|
1271
|
-
const deserializeAws_json1_1DescribeLogPatternCommandError = async (
|
|
1272
|
-
output: __HttpResponse,
|
|
1273
|
-
context: __SerdeContext
|
|
1274
|
-
): Promise<DescribeLogPatternCommandOutput> => {
|
|
1275
|
-
const parsedOutput: any = {
|
|
1276
|
-
...output,
|
|
1277
|
-
body: await parseBody(output.body, context),
|
|
1278
|
-
};
|
|
1279
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1280
|
-
let errorCode: string = "UnknownError";
|
|
1281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
-
switch (errorCode) {
|
|
1283
|
-
case "InternalServerException":
|
|
1284
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1285
|
-
response = {
|
|
1286
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1287
|
-
name: errorCode,
|
|
1288
|
-
$metadata: deserializeMetadata(output),
|
|
1289
|
-
};
|
|
1290
|
-
break;
|
|
1291
|
-
case "ResourceNotFoundException":
|
|
1292
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1293
|
-
response = {
|
|
1294
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1295
|
-
name: errorCode,
|
|
1296
|
-
$metadata: deserializeMetadata(output),
|
|
1297
|
-
};
|
|
1298
|
-
break;
|
|
1299
|
-
case "ValidationException":
|
|
1300
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1301
|
-
response = {
|
|
1302
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1303
|
-
name: errorCode,
|
|
1304
|
-
$metadata: deserializeMetadata(output),
|
|
1305
|
-
};
|
|
1306
|
-
break;
|
|
1307
|
-
default:
|
|
1308
|
-
const parsedBody = parsedOutput.body;
|
|
1309
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1310
|
-
response = {
|
|
1311
|
-
...parsedBody,
|
|
1312
|
-
name: `${errorCode}`,
|
|
1313
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1314
|
-
$fault: "client",
|
|
1315
|
-
$metadata: deserializeMetadata(output),
|
|
1316
|
-
} as any;
|
|
1317
|
-
}
|
|
1318
|
-
const message = response.message || response.Message || errorCode;
|
|
1319
|
-
response.message = message;
|
|
1320
|
-
delete response.Message;
|
|
1321
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1322
|
-
};
|
|
1323
|
-
|
|
1324
|
-
export const deserializeAws_json1_1DescribeObservationCommand = async (
|
|
1325
|
-
output: __HttpResponse,
|
|
1326
|
-
context: __SerdeContext
|
|
1327
|
-
): Promise<DescribeObservationCommandOutput> => {
|
|
1328
|
-
if (output.statusCode >= 300) {
|
|
1329
|
-
return deserializeAws_json1_1DescribeObservationCommandError(output, context);
|
|
1330
|
-
}
|
|
1331
|
-
const data: any = await parseBody(output.body, context);
|
|
1332
|
-
let contents: any = {};
|
|
1333
|
-
contents = deserializeAws_json1_1DescribeObservationResponse(data, context);
|
|
1334
|
-
const response: DescribeObservationCommandOutput = {
|
|
1335
|
-
$metadata: deserializeMetadata(output),
|
|
1336
|
-
...contents,
|
|
1337
|
-
};
|
|
1338
|
-
return Promise.resolve(response);
|
|
1339
|
-
};
|
|
1340
|
-
|
|
1341
|
-
const deserializeAws_json1_1DescribeObservationCommandError = async (
|
|
1342
|
-
output: __HttpResponse,
|
|
1343
|
-
context: __SerdeContext
|
|
1344
|
-
): Promise<DescribeObservationCommandOutput> => {
|
|
1345
|
-
const parsedOutput: any = {
|
|
1346
|
-
...output,
|
|
1347
|
-
body: await parseBody(output.body, context),
|
|
1348
|
-
};
|
|
1349
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1350
|
-
let errorCode: string = "UnknownError";
|
|
1351
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
-
switch (errorCode) {
|
|
1353
|
-
case "InternalServerException":
|
|
1354
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1355
|
-
response = {
|
|
1356
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1357
|
-
name: errorCode,
|
|
1358
|
-
$metadata: deserializeMetadata(output),
|
|
1359
|
-
};
|
|
1360
|
-
break;
|
|
1361
|
-
case "ResourceNotFoundException":
|
|
1362
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1363
|
-
response = {
|
|
1364
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1365
|
-
name: errorCode,
|
|
1366
|
-
$metadata: deserializeMetadata(output),
|
|
1367
|
-
};
|
|
1368
|
-
break;
|
|
1369
|
-
case "ValidationException":
|
|
1370
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1371
|
-
response = {
|
|
1372
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1373
|
-
name: errorCode,
|
|
1374
|
-
$metadata: deserializeMetadata(output),
|
|
1375
|
-
};
|
|
1376
|
-
break;
|
|
1377
|
-
default:
|
|
1378
|
-
const parsedBody = parsedOutput.body;
|
|
1379
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1380
|
-
response = {
|
|
1381
|
-
...parsedBody,
|
|
1382
|
-
name: `${errorCode}`,
|
|
1383
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1384
|
-
$fault: "client",
|
|
1385
|
-
$metadata: deserializeMetadata(output),
|
|
1386
|
-
} as any;
|
|
1387
|
-
}
|
|
1388
|
-
const message = response.message || response.Message || errorCode;
|
|
1389
|
-
response.message = message;
|
|
1390
|
-
delete response.Message;
|
|
1391
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1392
|
-
};
|
|
1393
|
-
|
|
1394
|
-
export const deserializeAws_json1_1DescribeProblemCommand = async (
|
|
1395
|
-
output: __HttpResponse,
|
|
1396
|
-
context: __SerdeContext
|
|
1397
|
-
): Promise<DescribeProblemCommandOutput> => {
|
|
1398
|
-
if (output.statusCode >= 300) {
|
|
1399
|
-
return deserializeAws_json1_1DescribeProblemCommandError(output, context);
|
|
1400
|
-
}
|
|
1401
|
-
const data: any = await parseBody(output.body, context);
|
|
1402
|
-
let contents: any = {};
|
|
1403
|
-
contents = deserializeAws_json1_1DescribeProblemResponse(data, context);
|
|
1404
|
-
const response: DescribeProblemCommandOutput = {
|
|
1405
|
-
$metadata: deserializeMetadata(output),
|
|
1406
|
-
...contents,
|
|
1407
|
-
};
|
|
1408
|
-
return Promise.resolve(response);
|
|
1409
|
-
};
|
|
1410
|
-
|
|
1411
|
-
const deserializeAws_json1_1DescribeProblemCommandError = async (
|
|
1412
|
-
output: __HttpResponse,
|
|
1413
|
-
context: __SerdeContext
|
|
1414
|
-
): Promise<DescribeProblemCommandOutput> => {
|
|
1415
|
-
const parsedOutput: any = {
|
|
1416
|
-
...output,
|
|
1417
|
-
body: await parseBody(output.body, context),
|
|
1418
|
-
};
|
|
1419
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1420
|
-
let errorCode: string = "UnknownError";
|
|
1421
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
-
switch (errorCode) {
|
|
1423
|
-
case "InternalServerException":
|
|
1424
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1425
|
-
response = {
|
|
1426
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1427
|
-
name: errorCode,
|
|
1428
|
-
$metadata: deserializeMetadata(output),
|
|
1429
|
-
};
|
|
1430
|
-
break;
|
|
1431
|
-
case "ResourceNotFoundException":
|
|
1432
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1433
|
-
response = {
|
|
1434
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1435
|
-
name: errorCode,
|
|
1436
|
-
$metadata: deserializeMetadata(output),
|
|
1437
|
-
};
|
|
1438
|
-
break;
|
|
1439
|
-
case "ValidationException":
|
|
1440
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1441
|
-
response = {
|
|
1442
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1443
|
-
name: errorCode,
|
|
1444
|
-
$metadata: deserializeMetadata(output),
|
|
1445
|
-
};
|
|
1446
|
-
break;
|
|
1447
|
-
default:
|
|
1448
|
-
const parsedBody = parsedOutput.body;
|
|
1449
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1450
|
-
response = {
|
|
1451
|
-
...parsedBody,
|
|
1452
|
-
name: `${errorCode}`,
|
|
1453
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1454
|
-
$fault: "client",
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
} as any;
|
|
1457
|
-
}
|
|
1458
|
-
const message = response.message || response.Message || errorCode;
|
|
1459
|
-
response.message = message;
|
|
1460
|
-
delete response.Message;
|
|
1461
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1462
|
-
};
|
|
1463
|
-
|
|
1464
|
-
export const deserializeAws_json1_1DescribeProblemObservationsCommand = async (
|
|
1465
|
-
output: __HttpResponse,
|
|
1466
|
-
context: __SerdeContext
|
|
1467
|
-
): Promise<DescribeProblemObservationsCommandOutput> => {
|
|
1468
|
-
if (output.statusCode >= 300) {
|
|
1469
|
-
return deserializeAws_json1_1DescribeProblemObservationsCommandError(output, context);
|
|
1470
|
-
}
|
|
1471
|
-
const data: any = await parseBody(output.body, context);
|
|
1472
|
-
let contents: any = {};
|
|
1473
|
-
contents = deserializeAws_json1_1DescribeProblemObservationsResponse(data, context);
|
|
1474
|
-
const response: DescribeProblemObservationsCommandOutput = {
|
|
1475
|
-
$metadata: deserializeMetadata(output),
|
|
1476
|
-
...contents,
|
|
1477
|
-
};
|
|
1478
|
-
return Promise.resolve(response);
|
|
1479
|
-
};
|
|
1480
|
-
|
|
1481
|
-
const deserializeAws_json1_1DescribeProblemObservationsCommandError = async (
|
|
1482
|
-
output: __HttpResponse,
|
|
1483
|
-
context: __SerdeContext
|
|
1484
|
-
): Promise<DescribeProblemObservationsCommandOutput> => {
|
|
1485
|
-
const parsedOutput: any = {
|
|
1486
|
-
...output,
|
|
1487
|
-
body: await parseBody(output.body, context),
|
|
1488
|
-
};
|
|
1489
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1490
|
-
let errorCode: string = "UnknownError";
|
|
1491
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
-
switch (errorCode) {
|
|
1493
|
-
case "InternalServerException":
|
|
1494
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1495
|
-
response = {
|
|
1496
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1497
|
-
name: errorCode,
|
|
1498
|
-
$metadata: deserializeMetadata(output),
|
|
1499
|
-
};
|
|
1500
|
-
break;
|
|
1501
|
-
case "ResourceNotFoundException":
|
|
1502
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1503
|
-
response = {
|
|
1504
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1505
|
-
name: errorCode,
|
|
1506
|
-
$metadata: deserializeMetadata(output),
|
|
1507
|
-
};
|
|
1508
|
-
break;
|
|
1509
|
-
case "ValidationException":
|
|
1510
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1511
|
-
response = {
|
|
1512
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1513
|
-
name: errorCode,
|
|
1514
|
-
$metadata: deserializeMetadata(output),
|
|
1515
|
-
};
|
|
1516
|
-
break;
|
|
1517
|
-
default:
|
|
1518
|
-
const parsedBody = parsedOutput.body;
|
|
1519
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1520
|
-
response = {
|
|
1521
|
-
...parsedBody,
|
|
1522
|
-
name: `${errorCode}`,
|
|
1523
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1524
|
-
$fault: "client",
|
|
1525
|
-
$metadata: deserializeMetadata(output),
|
|
1526
|
-
} as any;
|
|
1527
|
-
}
|
|
1528
|
-
const message = response.message || response.Message || errorCode;
|
|
1529
|
-
response.message = message;
|
|
1530
|
-
delete response.Message;
|
|
1531
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1532
|
-
};
|
|
1533
|
-
|
|
1534
|
-
export const deserializeAws_json1_1ListApplicationsCommand = async (
|
|
1535
|
-
output: __HttpResponse,
|
|
1536
|
-
context: __SerdeContext
|
|
1537
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
1538
|
-
if (output.statusCode >= 300) {
|
|
1539
|
-
return deserializeAws_json1_1ListApplicationsCommandError(output, context);
|
|
1540
|
-
}
|
|
1541
|
-
const data: any = await parseBody(output.body, context);
|
|
1542
|
-
let contents: any = {};
|
|
1543
|
-
contents = deserializeAws_json1_1ListApplicationsResponse(data, context);
|
|
1544
|
-
const response: ListApplicationsCommandOutput = {
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
...contents,
|
|
1547
|
-
};
|
|
1548
|
-
return Promise.resolve(response);
|
|
1549
|
-
};
|
|
1550
|
-
|
|
1551
|
-
const deserializeAws_json1_1ListApplicationsCommandError = async (
|
|
1552
|
-
output: __HttpResponse,
|
|
1553
|
-
context: __SerdeContext
|
|
1554
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
1555
|
-
const parsedOutput: any = {
|
|
1556
|
-
...output,
|
|
1557
|
-
body: await parseBody(output.body, context),
|
|
1558
|
-
};
|
|
1559
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1560
|
-
let errorCode: string = "UnknownError";
|
|
1561
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "InternalServerException":
|
|
1564
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1565
|
-
response = {
|
|
1566
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1567
|
-
name: errorCode,
|
|
1568
|
-
$metadata: deserializeMetadata(output),
|
|
1569
|
-
};
|
|
1570
|
-
break;
|
|
1571
|
-
case "ValidationException":
|
|
1572
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1573
|
-
response = {
|
|
1574
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1575
|
-
name: errorCode,
|
|
1576
|
-
$metadata: deserializeMetadata(output),
|
|
1577
|
-
};
|
|
1578
|
-
break;
|
|
1579
|
-
default:
|
|
1580
|
-
const parsedBody = parsedOutput.body;
|
|
1581
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1582
|
-
response = {
|
|
1583
|
-
...parsedBody,
|
|
1584
|
-
name: `${errorCode}`,
|
|
1585
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1586
|
-
$fault: "client",
|
|
1587
|
-
$metadata: deserializeMetadata(output),
|
|
1588
|
-
} as any;
|
|
1589
|
-
}
|
|
1590
|
-
const message = response.message || response.Message || errorCode;
|
|
1591
|
-
response.message = message;
|
|
1592
|
-
delete response.Message;
|
|
1593
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1594
|
-
};
|
|
1595
|
-
|
|
1596
|
-
export const deserializeAws_json1_1ListComponentsCommand = async (
|
|
1597
|
-
output: __HttpResponse,
|
|
1598
|
-
context: __SerdeContext
|
|
1599
|
-
): Promise<ListComponentsCommandOutput> => {
|
|
1600
|
-
if (output.statusCode >= 300) {
|
|
1601
|
-
return deserializeAws_json1_1ListComponentsCommandError(output, context);
|
|
1602
|
-
}
|
|
1603
|
-
const data: any = await parseBody(output.body, context);
|
|
1604
|
-
let contents: any = {};
|
|
1605
|
-
contents = deserializeAws_json1_1ListComponentsResponse(data, context);
|
|
1606
|
-
const response: ListComponentsCommandOutput = {
|
|
1607
|
-
$metadata: deserializeMetadata(output),
|
|
1608
|
-
...contents,
|
|
1609
|
-
};
|
|
1610
|
-
return Promise.resolve(response);
|
|
1611
|
-
};
|
|
1612
|
-
|
|
1613
|
-
const deserializeAws_json1_1ListComponentsCommandError = async (
|
|
1614
|
-
output: __HttpResponse,
|
|
1615
|
-
context: __SerdeContext
|
|
1616
|
-
): Promise<ListComponentsCommandOutput> => {
|
|
1617
|
-
const parsedOutput: any = {
|
|
1618
|
-
...output,
|
|
1619
|
-
body: await parseBody(output.body, context),
|
|
1620
|
-
};
|
|
1621
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1622
|
-
let errorCode: string = "UnknownError";
|
|
1623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
-
switch (errorCode) {
|
|
1625
|
-
case "InternalServerException":
|
|
1626
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1627
|
-
response = {
|
|
1628
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1629
|
-
name: errorCode,
|
|
1630
|
-
$metadata: deserializeMetadata(output),
|
|
1631
|
-
};
|
|
1632
|
-
break;
|
|
1633
|
-
case "ResourceNotFoundException":
|
|
1634
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1635
|
-
response = {
|
|
1636
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1637
|
-
name: errorCode,
|
|
1638
|
-
$metadata: deserializeMetadata(output),
|
|
1639
|
-
};
|
|
1640
|
-
break;
|
|
1641
|
-
case "ValidationException":
|
|
1642
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1643
|
-
response = {
|
|
1644
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1645
|
-
name: errorCode,
|
|
1646
|
-
$metadata: deserializeMetadata(output),
|
|
1647
|
-
};
|
|
1648
|
-
break;
|
|
1649
|
-
default:
|
|
1650
|
-
const parsedBody = parsedOutput.body;
|
|
1651
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1652
|
-
response = {
|
|
1653
|
-
...parsedBody,
|
|
1654
|
-
name: `${errorCode}`,
|
|
1655
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1656
|
-
$fault: "client",
|
|
1657
|
-
$metadata: deserializeMetadata(output),
|
|
1658
|
-
} as any;
|
|
1659
|
-
}
|
|
1660
|
-
const message = response.message || response.Message || errorCode;
|
|
1661
|
-
response.message = message;
|
|
1662
|
-
delete response.Message;
|
|
1663
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1664
|
-
};
|
|
1665
|
-
|
|
1666
|
-
export const deserializeAws_json1_1ListConfigurationHistoryCommand = async (
|
|
1667
|
-
output: __HttpResponse,
|
|
1668
|
-
context: __SerdeContext
|
|
1669
|
-
): Promise<ListConfigurationHistoryCommandOutput> => {
|
|
1670
|
-
if (output.statusCode >= 300) {
|
|
1671
|
-
return deserializeAws_json1_1ListConfigurationHistoryCommandError(output, context);
|
|
1672
|
-
}
|
|
1673
|
-
const data: any = await parseBody(output.body, context);
|
|
1674
|
-
let contents: any = {};
|
|
1675
|
-
contents = deserializeAws_json1_1ListConfigurationHistoryResponse(data, context);
|
|
1676
|
-
const response: ListConfigurationHistoryCommandOutput = {
|
|
1677
|
-
$metadata: deserializeMetadata(output),
|
|
1678
|
-
...contents,
|
|
1679
|
-
};
|
|
1680
|
-
return Promise.resolve(response);
|
|
1681
|
-
};
|
|
1682
|
-
|
|
1683
|
-
const deserializeAws_json1_1ListConfigurationHistoryCommandError = async (
|
|
1684
|
-
output: __HttpResponse,
|
|
1685
|
-
context: __SerdeContext
|
|
1686
|
-
): Promise<ListConfigurationHistoryCommandOutput> => {
|
|
1687
|
-
const parsedOutput: any = {
|
|
1688
|
-
...output,
|
|
1689
|
-
body: await parseBody(output.body, context),
|
|
1690
|
-
};
|
|
1691
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1692
|
-
let errorCode: string = "UnknownError";
|
|
1693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "InternalServerException":
|
|
1696
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1697
|
-
response = {
|
|
1698
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1699
|
-
name: errorCode,
|
|
1700
|
-
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1702
|
-
break;
|
|
1703
|
-
case "ResourceNotFoundException":
|
|
1704
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1705
|
-
response = {
|
|
1706
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1707
|
-
name: errorCode,
|
|
1708
|
-
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1710
|
-
break;
|
|
1711
|
-
case "ValidationException":
|
|
1712
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1713
|
-
response = {
|
|
1714
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1715
|
-
name: errorCode,
|
|
1716
|
-
$metadata: deserializeMetadata(output),
|
|
1717
|
-
};
|
|
1718
|
-
break;
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1722
|
-
response = {
|
|
1723
|
-
...parsedBody,
|
|
1724
|
-
name: `${errorCode}`,
|
|
1725
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1726
|
-
$fault: "client",
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
} as any;
|
|
1729
|
-
}
|
|
1730
|
-
const message = response.message || response.Message || errorCode;
|
|
1731
|
-
response.message = message;
|
|
1732
|
-
delete response.Message;
|
|
1733
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1734
|
-
};
|
|
1735
|
-
|
|
1736
|
-
export const deserializeAws_json1_1ListLogPatternsCommand = async (
|
|
1737
|
-
output: __HttpResponse,
|
|
1738
|
-
context: __SerdeContext
|
|
1739
|
-
): Promise<ListLogPatternsCommandOutput> => {
|
|
1740
|
-
if (output.statusCode >= 300) {
|
|
1741
|
-
return deserializeAws_json1_1ListLogPatternsCommandError(output, context);
|
|
1742
|
-
}
|
|
1743
|
-
const data: any = await parseBody(output.body, context);
|
|
1744
|
-
let contents: any = {};
|
|
1745
|
-
contents = deserializeAws_json1_1ListLogPatternsResponse(data, context);
|
|
1746
|
-
const response: ListLogPatternsCommandOutput = {
|
|
1747
|
-
$metadata: deserializeMetadata(output),
|
|
1748
|
-
...contents,
|
|
1749
|
-
};
|
|
1750
|
-
return Promise.resolve(response);
|
|
1751
|
-
};
|
|
1752
|
-
|
|
1753
|
-
const deserializeAws_json1_1ListLogPatternsCommandError = async (
|
|
1754
|
-
output: __HttpResponse,
|
|
1755
|
-
context: __SerdeContext
|
|
1756
|
-
): Promise<ListLogPatternsCommandOutput> => {
|
|
1757
|
-
const parsedOutput: any = {
|
|
1758
|
-
...output,
|
|
1759
|
-
body: await parseBody(output.body, context),
|
|
1760
|
-
};
|
|
1761
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1762
|
-
let errorCode: string = "UnknownError";
|
|
1763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "InternalServerException":
|
|
1766
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1767
|
-
response = {
|
|
1768
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1769
|
-
name: errorCode,
|
|
1770
|
-
$metadata: deserializeMetadata(output),
|
|
1771
|
-
};
|
|
1772
|
-
break;
|
|
1773
|
-
case "ResourceNotFoundException":
|
|
1774
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1775
|
-
response = {
|
|
1776
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1777
|
-
name: errorCode,
|
|
1778
|
-
$metadata: deserializeMetadata(output),
|
|
1779
|
-
};
|
|
1780
|
-
break;
|
|
1781
|
-
case "ValidationException":
|
|
1782
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1783
|
-
response = {
|
|
1784
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1785
|
-
name: errorCode,
|
|
1786
|
-
$metadata: deserializeMetadata(output),
|
|
1787
|
-
};
|
|
1788
|
-
break;
|
|
1789
|
-
default:
|
|
1790
|
-
const parsedBody = parsedOutput.body;
|
|
1791
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1792
|
-
response = {
|
|
1793
|
-
...parsedBody,
|
|
1794
|
-
name: `${errorCode}`,
|
|
1795
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1796
|
-
$fault: "client",
|
|
1797
|
-
$metadata: deserializeMetadata(output),
|
|
1798
|
-
} as any;
|
|
1799
|
-
}
|
|
1800
|
-
const message = response.message || response.Message || errorCode;
|
|
1801
|
-
response.message = message;
|
|
1802
|
-
delete response.Message;
|
|
1803
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1804
|
-
};
|
|
1805
|
-
|
|
1806
|
-
export const deserializeAws_json1_1ListLogPatternSetsCommand = async (
|
|
1807
|
-
output: __HttpResponse,
|
|
1808
|
-
context: __SerdeContext
|
|
1809
|
-
): Promise<ListLogPatternSetsCommandOutput> => {
|
|
1810
|
-
if (output.statusCode >= 300) {
|
|
1811
|
-
return deserializeAws_json1_1ListLogPatternSetsCommandError(output, context);
|
|
1812
|
-
}
|
|
1813
|
-
const data: any = await parseBody(output.body, context);
|
|
1814
|
-
let contents: any = {};
|
|
1815
|
-
contents = deserializeAws_json1_1ListLogPatternSetsResponse(data, context);
|
|
1816
|
-
const response: ListLogPatternSetsCommandOutput = {
|
|
1817
|
-
$metadata: deserializeMetadata(output),
|
|
1818
|
-
...contents,
|
|
1819
|
-
};
|
|
1820
|
-
return Promise.resolve(response);
|
|
1821
|
-
};
|
|
1822
|
-
|
|
1823
|
-
const deserializeAws_json1_1ListLogPatternSetsCommandError = async (
|
|
1824
|
-
output: __HttpResponse,
|
|
1825
|
-
context: __SerdeContext
|
|
1826
|
-
): Promise<ListLogPatternSetsCommandOutput> => {
|
|
1827
|
-
const parsedOutput: any = {
|
|
1828
|
-
...output,
|
|
1829
|
-
body: await parseBody(output.body, context),
|
|
1830
|
-
};
|
|
1831
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1832
|
-
let errorCode: string = "UnknownError";
|
|
1833
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1834
|
-
switch (errorCode) {
|
|
1835
|
-
case "InternalServerException":
|
|
1836
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1837
|
-
response = {
|
|
1838
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1839
|
-
name: errorCode,
|
|
1840
|
-
$metadata: deserializeMetadata(output),
|
|
1841
|
-
};
|
|
1842
|
-
break;
|
|
1843
|
-
case "ResourceNotFoundException":
|
|
1844
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1845
|
-
response = {
|
|
1846
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1847
|
-
name: errorCode,
|
|
1848
|
-
$metadata: deserializeMetadata(output),
|
|
1849
|
-
};
|
|
1850
|
-
break;
|
|
1851
|
-
case "ValidationException":
|
|
1852
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1853
|
-
response = {
|
|
1854
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1855
|
-
name: errorCode,
|
|
1856
|
-
$metadata: deserializeMetadata(output),
|
|
1857
|
-
};
|
|
1858
|
-
break;
|
|
1859
|
-
default:
|
|
1860
|
-
const parsedBody = parsedOutput.body;
|
|
1861
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1862
|
-
response = {
|
|
1863
|
-
...parsedBody,
|
|
1864
|
-
name: `${errorCode}`,
|
|
1865
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1866
|
-
$fault: "client",
|
|
1867
|
-
$metadata: deserializeMetadata(output),
|
|
1868
|
-
} as any;
|
|
1869
|
-
}
|
|
1870
|
-
const message = response.message || response.Message || errorCode;
|
|
1871
|
-
response.message = message;
|
|
1872
|
-
delete response.Message;
|
|
1873
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1874
|
-
};
|
|
1875
|
-
|
|
1876
|
-
export const deserializeAws_json1_1ListProblemsCommand = async (
|
|
1877
|
-
output: __HttpResponse,
|
|
1878
|
-
context: __SerdeContext
|
|
1879
|
-
): Promise<ListProblemsCommandOutput> => {
|
|
1880
|
-
if (output.statusCode >= 300) {
|
|
1881
|
-
return deserializeAws_json1_1ListProblemsCommandError(output, context);
|
|
1882
|
-
}
|
|
1883
|
-
const data: any = await parseBody(output.body, context);
|
|
1884
|
-
let contents: any = {};
|
|
1885
|
-
contents = deserializeAws_json1_1ListProblemsResponse(data, context);
|
|
1886
|
-
const response: ListProblemsCommandOutput = {
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
...contents,
|
|
1889
|
-
};
|
|
1890
|
-
return Promise.resolve(response);
|
|
1891
|
-
};
|
|
1892
|
-
|
|
1893
|
-
const deserializeAws_json1_1ListProblemsCommandError = async (
|
|
1894
|
-
output: __HttpResponse,
|
|
1895
|
-
context: __SerdeContext
|
|
1896
|
-
): Promise<ListProblemsCommandOutput> => {
|
|
1897
|
-
const parsedOutput: any = {
|
|
1898
|
-
...output,
|
|
1899
|
-
body: await parseBody(output.body, context),
|
|
1900
|
-
};
|
|
1901
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1902
|
-
let errorCode: string = "UnknownError";
|
|
1903
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
|
-
switch (errorCode) {
|
|
1905
|
-
case "InternalServerException":
|
|
1906
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1907
|
-
response = {
|
|
1908
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1909
|
-
name: errorCode,
|
|
1910
|
-
$metadata: deserializeMetadata(output),
|
|
1911
|
-
};
|
|
1912
|
-
break;
|
|
1913
|
-
case "ResourceNotFoundException":
|
|
1914
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1915
|
-
response = {
|
|
1916
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1917
|
-
name: errorCode,
|
|
1918
|
-
$metadata: deserializeMetadata(output),
|
|
1919
|
-
};
|
|
1920
|
-
break;
|
|
1921
|
-
case "ValidationException":
|
|
1922
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1923
|
-
response = {
|
|
1924
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1925
|
-
name: errorCode,
|
|
1926
|
-
$metadata: deserializeMetadata(output),
|
|
1927
|
-
};
|
|
1928
|
-
break;
|
|
1929
|
-
default:
|
|
1930
|
-
const parsedBody = parsedOutput.body;
|
|
1931
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1932
|
-
response = {
|
|
1933
|
-
...parsedBody,
|
|
1934
|
-
name: `${errorCode}`,
|
|
1935
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1936
|
-
$fault: "client",
|
|
1937
|
-
$metadata: deserializeMetadata(output),
|
|
1938
|
-
} as any;
|
|
1939
|
-
}
|
|
1940
|
-
const message = response.message || response.Message || errorCode;
|
|
1941
|
-
response.message = message;
|
|
1942
|
-
delete response.Message;
|
|
1943
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1944
|
-
};
|
|
1945
|
-
|
|
1946
|
-
export const deserializeAws_json1_1ListTagsForResourceCommand = async (
|
|
1947
|
-
output: __HttpResponse,
|
|
1948
|
-
context: __SerdeContext
|
|
1949
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
1950
|
-
if (output.statusCode >= 300) {
|
|
1951
|
-
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1952
|
-
}
|
|
1953
|
-
const data: any = await parseBody(output.body, context);
|
|
1954
|
-
let contents: any = {};
|
|
1955
|
-
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1956
|
-
const response: ListTagsForResourceCommandOutput = {
|
|
1957
|
-
$metadata: deserializeMetadata(output),
|
|
1958
|
-
...contents,
|
|
1959
|
-
};
|
|
1960
|
-
return Promise.resolve(response);
|
|
1961
|
-
};
|
|
1962
|
-
|
|
1963
|
-
const deserializeAws_json1_1ListTagsForResourceCommandError = async (
|
|
1964
|
-
output: __HttpResponse,
|
|
1965
|
-
context: __SerdeContext
|
|
1966
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
1967
|
-
const parsedOutput: any = {
|
|
1968
|
-
...output,
|
|
1969
|
-
body: await parseBody(output.body, context),
|
|
1970
|
-
};
|
|
1971
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1972
|
-
let errorCode: string = "UnknownError";
|
|
1973
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1974
|
-
switch (errorCode) {
|
|
1975
|
-
case "ResourceNotFoundException":
|
|
1976
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1977
|
-
response = {
|
|
1978
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1979
|
-
name: errorCode,
|
|
1980
|
-
$metadata: deserializeMetadata(output),
|
|
1981
|
-
};
|
|
1982
|
-
break;
|
|
1983
|
-
case "ValidationException":
|
|
1984
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1985
|
-
response = {
|
|
1986
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1987
|
-
name: errorCode,
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
};
|
|
1990
|
-
break;
|
|
1991
|
-
default:
|
|
1992
|
-
const parsedBody = parsedOutput.body;
|
|
1993
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1994
|
-
response = {
|
|
1995
|
-
...parsedBody,
|
|
1996
|
-
name: `${errorCode}`,
|
|
1997
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1998
|
-
$fault: "client",
|
|
1999
|
-
$metadata: deserializeMetadata(output),
|
|
2000
|
-
} as any;
|
|
2001
|
-
}
|
|
2002
|
-
const message = response.message || response.Message || errorCode;
|
|
2003
|
-
response.message = message;
|
|
2004
|
-
delete response.Message;
|
|
2005
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2006
|
-
};
|
|
2007
|
-
|
|
2008
|
-
export const deserializeAws_json1_1TagResourceCommand = async (
|
|
2009
|
-
output: __HttpResponse,
|
|
2010
|
-
context: __SerdeContext
|
|
2011
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2012
|
-
if (output.statusCode >= 300) {
|
|
2013
|
-
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
2014
|
-
}
|
|
2015
|
-
const data: any = await parseBody(output.body, context);
|
|
2016
|
-
let contents: any = {};
|
|
2017
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2018
|
-
const response: TagResourceCommandOutput = {
|
|
2019
|
-
$metadata: deserializeMetadata(output),
|
|
2020
|
-
...contents,
|
|
2021
|
-
};
|
|
2022
|
-
return Promise.resolve(response);
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
const deserializeAws_json1_1TagResourceCommandError = async (
|
|
2026
|
-
output: __HttpResponse,
|
|
2027
|
-
context: __SerdeContext
|
|
2028
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2029
|
-
const parsedOutput: any = {
|
|
2030
|
-
...output,
|
|
2031
|
-
body: await parseBody(output.body, context),
|
|
2032
|
-
};
|
|
2033
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2034
|
-
let errorCode: string = "UnknownError";
|
|
2035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
-
switch (errorCode) {
|
|
2037
|
-
case "ResourceNotFoundException":
|
|
2038
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
2039
|
-
response = {
|
|
2040
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2041
|
-
name: errorCode,
|
|
2042
|
-
$metadata: deserializeMetadata(output),
|
|
2043
|
-
};
|
|
2044
|
-
break;
|
|
2045
|
-
case "TooManyTagsException":
|
|
2046
|
-
case "com.amazonaws.applicationinsights#TooManyTagsException":
|
|
2047
|
-
response = {
|
|
2048
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
2049
|
-
name: errorCode,
|
|
2050
|
-
$metadata: deserializeMetadata(output),
|
|
2051
|
-
};
|
|
2052
|
-
break;
|
|
2053
|
-
case "ValidationException":
|
|
2054
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
2055
|
-
response = {
|
|
2056
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2057
|
-
name: errorCode,
|
|
2058
|
-
$metadata: deserializeMetadata(output),
|
|
2059
|
-
};
|
|
2060
|
-
break;
|
|
2061
|
-
default:
|
|
2062
|
-
const parsedBody = parsedOutput.body;
|
|
2063
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2064
|
-
response = {
|
|
2065
|
-
...parsedBody,
|
|
2066
|
-
name: `${errorCode}`,
|
|
2067
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2068
|
-
$fault: "client",
|
|
2069
|
-
$metadata: deserializeMetadata(output),
|
|
2070
|
-
} as any;
|
|
2071
|
-
}
|
|
2072
|
-
const message = response.message || response.Message || errorCode;
|
|
2073
|
-
response.message = message;
|
|
2074
|
-
delete response.Message;
|
|
2075
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2076
|
-
};
|
|
2077
|
-
|
|
2078
|
-
export const deserializeAws_json1_1UntagResourceCommand = async (
|
|
2079
|
-
output: __HttpResponse,
|
|
2080
|
-
context: __SerdeContext
|
|
2081
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
2082
|
-
if (output.statusCode >= 300) {
|
|
2083
|
-
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
2084
|
-
}
|
|
2085
|
-
const data: any = await parseBody(output.body, context);
|
|
2086
|
-
let contents: any = {};
|
|
2087
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
2088
|
-
const response: UntagResourceCommandOutput = {
|
|
2089
|
-
$metadata: deserializeMetadata(output),
|
|
2090
|
-
...contents,
|
|
2091
|
-
};
|
|
2092
|
-
return Promise.resolve(response);
|
|
2093
|
-
};
|
|
2094
|
-
|
|
2095
|
-
const deserializeAws_json1_1UntagResourceCommandError = async (
|
|
2096
|
-
output: __HttpResponse,
|
|
2097
|
-
context: __SerdeContext
|
|
2098
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
2099
|
-
const parsedOutput: any = {
|
|
2100
|
-
...output,
|
|
2101
|
-
body: await parseBody(output.body, context),
|
|
2102
|
-
};
|
|
2103
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2104
|
-
let errorCode: string = "UnknownError";
|
|
2105
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2106
|
-
switch (errorCode) {
|
|
2107
|
-
case "ResourceNotFoundException":
|
|
2108
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
2109
|
-
response = {
|
|
2110
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2111
|
-
name: errorCode,
|
|
2112
|
-
$metadata: deserializeMetadata(output),
|
|
2113
|
-
};
|
|
2114
|
-
break;
|
|
2115
|
-
case "ValidationException":
|
|
2116
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
2117
|
-
response = {
|
|
2118
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2119
|
-
name: errorCode,
|
|
2120
|
-
$metadata: deserializeMetadata(output),
|
|
2121
|
-
};
|
|
2122
|
-
break;
|
|
2123
|
-
default:
|
|
2124
|
-
const parsedBody = parsedOutput.body;
|
|
2125
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2126
|
-
response = {
|
|
2127
|
-
...parsedBody,
|
|
2128
|
-
name: `${errorCode}`,
|
|
2129
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2130
|
-
$fault: "client",
|
|
2131
|
-
$metadata: deserializeMetadata(output),
|
|
2132
|
-
} as any;
|
|
2133
|
-
}
|
|
2134
|
-
const message = response.message || response.Message || errorCode;
|
|
2135
|
-
response.message = message;
|
|
2136
|
-
delete response.Message;
|
|
2137
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2138
|
-
};
|
|
2139
|
-
|
|
2140
|
-
export const deserializeAws_json1_1UpdateApplicationCommand = async (
|
|
2141
|
-
output: __HttpResponse,
|
|
2142
|
-
context: __SerdeContext
|
|
2143
|
-
): Promise<UpdateApplicationCommandOutput> => {
|
|
2144
|
-
if (output.statusCode >= 300) {
|
|
2145
|
-
return deserializeAws_json1_1UpdateApplicationCommandError(output, context);
|
|
2146
|
-
}
|
|
2147
|
-
const data: any = await parseBody(output.body, context);
|
|
2148
|
-
let contents: any = {};
|
|
2149
|
-
contents = deserializeAws_json1_1UpdateApplicationResponse(data, context);
|
|
2150
|
-
const response: UpdateApplicationCommandOutput = {
|
|
2151
|
-
$metadata: deserializeMetadata(output),
|
|
2152
|
-
...contents,
|
|
2153
|
-
};
|
|
2154
|
-
return Promise.resolve(response);
|
|
2155
|
-
};
|
|
2156
|
-
|
|
2157
|
-
const deserializeAws_json1_1UpdateApplicationCommandError = async (
|
|
2158
|
-
output: __HttpResponse,
|
|
2159
|
-
context: __SerdeContext
|
|
2160
|
-
): Promise<UpdateApplicationCommandOutput> => {
|
|
2161
|
-
const parsedOutput: any = {
|
|
2162
|
-
...output,
|
|
2163
|
-
body: await parseBody(output.body, context),
|
|
2164
|
-
};
|
|
2165
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2166
|
-
let errorCode: string = "UnknownError";
|
|
2167
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2168
|
-
switch (errorCode) {
|
|
2169
|
-
case "InternalServerException":
|
|
2170
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
2171
|
-
response = {
|
|
2172
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2173
|
-
name: errorCode,
|
|
2174
|
-
$metadata: deserializeMetadata(output),
|
|
2175
|
-
};
|
|
2176
|
-
break;
|
|
2177
|
-
case "ResourceNotFoundException":
|
|
2178
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
2179
|
-
response = {
|
|
2180
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2181
|
-
name: errorCode,
|
|
2182
|
-
$metadata: deserializeMetadata(output),
|
|
2183
|
-
};
|
|
2184
|
-
break;
|
|
2185
|
-
case "ValidationException":
|
|
2186
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
2187
|
-
response = {
|
|
2188
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2189
|
-
name: errorCode,
|
|
2190
|
-
$metadata: deserializeMetadata(output),
|
|
2191
|
-
};
|
|
2192
|
-
break;
|
|
2193
|
-
default:
|
|
2194
|
-
const parsedBody = parsedOutput.body;
|
|
2195
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2196
|
-
response = {
|
|
2197
|
-
...parsedBody,
|
|
2198
|
-
name: `${errorCode}`,
|
|
2199
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2200
|
-
$fault: "client",
|
|
2201
|
-
$metadata: deserializeMetadata(output),
|
|
2202
|
-
} as any;
|
|
2203
|
-
}
|
|
2204
|
-
const message = response.message || response.Message || errorCode;
|
|
2205
|
-
response.message = message;
|
|
2206
|
-
delete response.Message;
|
|
2207
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2208
|
-
};
|
|
2209
|
-
|
|
2210
|
-
export const deserializeAws_json1_1UpdateComponentCommand = async (
|
|
2211
|
-
output: __HttpResponse,
|
|
2212
|
-
context: __SerdeContext
|
|
2213
|
-
): Promise<UpdateComponentCommandOutput> => {
|
|
2214
|
-
if (output.statusCode >= 300) {
|
|
2215
|
-
return deserializeAws_json1_1UpdateComponentCommandError(output, context);
|
|
2216
|
-
}
|
|
2217
|
-
const data: any = await parseBody(output.body, context);
|
|
2218
|
-
let contents: any = {};
|
|
2219
|
-
contents = deserializeAws_json1_1UpdateComponentResponse(data, context);
|
|
2220
|
-
const response: UpdateComponentCommandOutput = {
|
|
2221
|
-
$metadata: deserializeMetadata(output),
|
|
2222
|
-
...contents,
|
|
2223
|
-
};
|
|
2224
|
-
return Promise.resolve(response);
|
|
2225
|
-
};
|
|
2226
|
-
|
|
2227
|
-
const deserializeAws_json1_1UpdateComponentCommandError = async (
|
|
2228
|
-
output: __HttpResponse,
|
|
2229
|
-
context: __SerdeContext
|
|
2230
|
-
): Promise<UpdateComponentCommandOutput> => {
|
|
2231
|
-
const parsedOutput: any = {
|
|
2232
|
-
...output,
|
|
2233
|
-
body: await parseBody(output.body, context),
|
|
2234
|
-
};
|
|
2235
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2236
|
-
let errorCode: string = "UnknownError";
|
|
2237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
|
-
switch (errorCode) {
|
|
2239
|
-
case "InternalServerException":
|
|
2240
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
2241
|
-
response = {
|
|
2242
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2243
|
-
name: errorCode,
|
|
2244
|
-
$metadata: deserializeMetadata(output),
|
|
2245
|
-
};
|
|
2246
|
-
break;
|
|
2247
|
-
case "ResourceInUseException":
|
|
2248
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
2249
|
-
response = {
|
|
2250
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2251
|
-
name: errorCode,
|
|
2252
|
-
$metadata: deserializeMetadata(output),
|
|
2253
|
-
};
|
|
2254
|
-
break;
|
|
2255
|
-
case "ResourceNotFoundException":
|
|
2256
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
2257
|
-
response = {
|
|
2258
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2259
|
-
name: errorCode,
|
|
2260
|
-
$metadata: deserializeMetadata(output),
|
|
2261
|
-
};
|
|
2262
|
-
break;
|
|
2263
|
-
case "ValidationException":
|
|
2264
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
2265
|
-
response = {
|
|
2266
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2267
|
-
name: errorCode,
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
};
|
|
2270
|
-
break;
|
|
2271
|
-
default:
|
|
2272
|
-
const parsedBody = parsedOutput.body;
|
|
2273
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2274
|
-
response = {
|
|
2275
|
-
...parsedBody,
|
|
2276
|
-
name: `${errorCode}`,
|
|
2277
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2278
|
-
$fault: "client",
|
|
2279
|
-
$metadata: deserializeMetadata(output),
|
|
2280
|
-
} as any;
|
|
2281
|
-
}
|
|
2282
|
-
const message = response.message || response.Message || errorCode;
|
|
2283
|
-
response.message = message;
|
|
2284
|
-
delete response.Message;
|
|
2285
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2286
|
-
};
|
|
2287
|
-
|
|
2288
|
-
export const deserializeAws_json1_1UpdateComponentConfigurationCommand = async (
|
|
2289
|
-
output: __HttpResponse,
|
|
2290
|
-
context: __SerdeContext
|
|
2291
|
-
): Promise<UpdateComponentConfigurationCommandOutput> => {
|
|
2292
|
-
if (output.statusCode >= 300) {
|
|
2293
|
-
return deserializeAws_json1_1UpdateComponentConfigurationCommandError(output, context);
|
|
2294
|
-
}
|
|
2295
|
-
const data: any = await parseBody(output.body, context);
|
|
2296
|
-
let contents: any = {};
|
|
2297
|
-
contents = deserializeAws_json1_1UpdateComponentConfigurationResponse(data, context);
|
|
2298
|
-
const response: UpdateComponentConfigurationCommandOutput = {
|
|
2299
|
-
$metadata: deserializeMetadata(output),
|
|
2300
|
-
...contents,
|
|
2301
|
-
};
|
|
2302
|
-
return Promise.resolve(response);
|
|
2303
|
-
};
|
|
2304
|
-
|
|
2305
|
-
const deserializeAws_json1_1UpdateComponentConfigurationCommandError = async (
|
|
2306
|
-
output: __HttpResponse,
|
|
2307
|
-
context: __SerdeContext
|
|
2308
|
-
): Promise<UpdateComponentConfigurationCommandOutput> => {
|
|
2309
|
-
const parsedOutput: any = {
|
|
2310
|
-
...output,
|
|
2311
|
-
body: await parseBody(output.body, context),
|
|
2312
|
-
};
|
|
2313
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2314
|
-
let errorCode: string = "UnknownError";
|
|
2315
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
|
-
switch (errorCode) {
|
|
2317
|
-
case "InternalServerException":
|
|
2318
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
2319
|
-
response = {
|
|
2320
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2321
|
-
name: errorCode,
|
|
2322
|
-
$metadata: deserializeMetadata(output),
|
|
2323
|
-
};
|
|
2324
|
-
break;
|
|
2325
|
-
case "ResourceNotFoundException":
|
|
2326
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
2327
|
-
response = {
|
|
2328
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2329
|
-
name: errorCode,
|
|
2330
|
-
$metadata: deserializeMetadata(output),
|
|
2331
|
-
};
|
|
2332
|
-
break;
|
|
2333
|
-
case "ValidationException":
|
|
2334
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
2335
|
-
response = {
|
|
2336
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2337
|
-
name: errorCode,
|
|
2338
|
-
$metadata: deserializeMetadata(output),
|
|
2339
|
-
};
|
|
2340
|
-
break;
|
|
2341
|
-
default:
|
|
2342
|
-
const parsedBody = parsedOutput.body;
|
|
2343
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2344
|
-
response = {
|
|
2345
|
-
...parsedBody,
|
|
2346
|
-
name: `${errorCode}`,
|
|
2347
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2348
|
-
$fault: "client",
|
|
2349
|
-
$metadata: deserializeMetadata(output),
|
|
2350
|
-
} as any;
|
|
2351
|
-
}
|
|
2352
|
-
const message = response.message || response.Message || errorCode;
|
|
2353
|
-
response.message = message;
|
|
2354
|
-
delete response.Message;
|
|
2355
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2356
|
-
};
|
|
2357
|
-
|
|
2358
|
-
export const deserializeAws_json1_1UpdateLogPatternCommand = async (
|
|
2359
|
-
output: __HttpResponse,
|
|
2360
|
-
context: __SerdeContext
|
|
2361
|
-
): Promise<UpdateLogPatternCommandOutput> => {
|
|
2362
|
-
if (output.statusCode >= 300) {
|
|
2363
|
-
return deserializeAws_json1_1UpdateLogPatternCommandError(output, context);
|
|
2364
|
-
}
|
|
2365
|
-
const data: any = await parseBody(output.body, context);
|
|
2366
|
-
let contents: any = {};
|
|
2367
|
-
contents = deserializeAws_json1_1UpdateLogPatternResponse(data, context);
|
|
2368
|
-
const response: UpdateLogPatternCommandOutput = {
|
|
2369
|
-
$metadata: deserializeMetadata(output),
|
|
2370
|
-
...contents,
|
|
2371
|
-
};
|
|
2372
|
-
return Promise.resolve(response);
|
|
2373
|
-
};
|
|
2374
|
-
|
|
2375
|
-
const deserializeAws_json1_1UpdateLogPatternCommandError = async (
|
|
2376
|
-
output: __HttpResponse,
|
|
2377
|
-
context: __SerdeContext
|
|
2378
|
-
): Promise<UpdateLogPatternCommandOutput> => {
|
|
2379
|
-
const parsedOutput: any = {
|
|
2380
|
-
...output,
|
|
2381
|
-
body: await parseBody(output.body, context),
|
|
2382
|
-
};
|
|
2383
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2384
|
-
let errorCode: string = "UnknownError";
|
|
2385
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
|
-
switch (errorCode) {
|
|
2387
|
-
case "InternalServerException":
|
|
2388
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
2389
|
-
response = {
|
|
2390
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2391
|
-
name: errorCode,
|
|
2392
|
-
$metadata: deserializeMetadata(output),
|
|
2393
|
-
};
|
|
2394
|
-
break;
|
|
2395
|
-
case "ResourceInUseException":
|
|
2396
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
2397
|
-
response = {
|
|
2398
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2399
|
-
name: errorCode,
|
|
2400
|
-
$metadata: deserializeMetadata(output),
|
|
2401
|
-
};
|
|
2402
|
-
break;
|
|
2403
|
-
case "ResourceNotFoundException":
|
|
2404
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
2405
|
-
response = {
|
|
2406
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2407
|
-
name: errorCode,
|
|
2408
|
-
$metadata: deserializeMetadata(output),
|
|
2409
|
-
};
|
|
2410
|
-
break;
|
|
2411
|
-
case "ValidationException":
|
|
2412
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
2413
|
-
response = {
|
|
2414
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2415
|
-
name: errorCode,
|
|
2416
|
-
$metadata: deserializeMetadata(output),
|
|
2417
|
-
};
|
|
2418
|
-
break;
|
|
2419
|
-
default:
|
|
2420
|
-
const parsedBody = parsedOutput.body;
|
|
2421
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2422
|
-
response = {
|
|
2423
|
-
...parsedBody,
|
|
2424
|
-
name: `${errorCode}`,
|
|
2425
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2426
|
-
$fault: "client",
|
|
2427
|
-
$metadata: deserializeMetadata(output),
|
|
2428
|
-
} as any;
|
|
2429
|
-
}
|
|
2430
|
-
const message = response.message || response.Message || errorCode;
|
|
2431
|
-
response.message = message;
|
|
2432
|
-
delete response.Message;
|
|
2433
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2434
|
-
};
|
|
2435
|
-
|
|
2436
|
-
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (
|
|
2437
|
-
parsedOutput: any,
|
|
2438
|
-
context: __SerdeContext
|
|
2439
|
-
): Promise<AccessDeniedException> => {
|
|
2440
|
-
const body = parsedOutput.body;
|
|
2441
|
-
const deserialized: any = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2442
|
-
const contents: AccessDeniedException = {
|
|
2443
|
-
name: "AccessDeniedException",
|
|
2444
|
-
$fault: "client",
|
|
2445
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2446
|
-
...deserialized,
|
|
2447
|
-
};
|
|
2448
|
-
return contents;
|
|
2449
|
-
};
|
|
2450
|
-
|
|
2451
|
-
const deserializeAws_json1_1BadRequestExceptionResponse = async (
|
|
2452
|
-
parsedOutput: any,
|
|
2453
|
-
context: __SerdeContext
|
|
2454
|
-
): Promise<BadRequestException> => {
|
|
2455
|
-
const body = parsedOutput.body;
|
|
2456
|
-
const deserialized: any = deserializeAws_json1_1BadRequestException(body, context);
|
|
2457
|
-
const contents: BadRequestException = {
|
|
2458
|
-
name: "BadRequestException",
|
|
2459
|
-
$fault: "client",
|
|
2460
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2461
|
-
...deserialized,
|
|
2462
|
-
};
|
|
2463
|
-
return contents;
|
|
2464
|
-
};
|
|
2465
|
-
|
|
2466
|
-
const deserializeAws_json1_1InternalServerExceptionResponse = async (
|
|
2467
|
-
parsedOutput: any,
|
|
2468
|
-
context: __SerdeContext
|
|
2469
|
-
): Promise<InternalServerException> => {
|
|
2470
|
-
const body = parsedOutput.body;
|
|
2471
|
-
const deserialized: any = deserializeAws_json1_1InternalServerException(body, context);
|
|
2472
|
-
const contents: InternalServerException = {
|
|
2473
|
-
name: "InternalServerException",
|
|
2474
|
-
$fault: "server",
|
|
2475
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2476
|
-
...deserialized,
|
|
2477
|
-
};
|
|
2478
|
-
return contents;
|
|
2479
|
-
};
|
|
2480
|
-
|
|
2481
|
-
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (
|
|
2482
|
-
parsedOutput: any,
|
|
2483
|
-
context: __SerdeContext
|
|
2484
|
-
): Promise<ResourceInUseException> => {
|
|
2485
|
-
const body = parsedOutput.body;
|
|
2486
|
-
const deserialized: any = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
2487
|
-
const contents: ResourceInUseException = {
|
|
2488
|
-
name: "ResourceInUseException",
|
|
2489
|
-
$fault: "client",
|
|
2490
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2491
|
-
...deserialized,
|
|
2492
|
-
};
|
|
2493
|
-
return contents;
|
|
2494
|
-
};
|
|
2495
|
-
|
|
2496
|
-
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (
|
|
2497
|
-
parsedOutput: any,
|
|
2498
|
-
context: __SerdeContext
|
|
2499
|
-
): Promise<ResourceNotFoundException> => {
|
|
2500
|
-
const body = parsedOutput.body;
|
|
2501
|
-
const deserialized: any = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2502
|
-
const contents: ResourceNotFoundException = {
|
|
2503
|
-
name: "ResourceNotFoundException",
|
|
2504
|
-
$fault: "client",
|
|
2505
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2506
|
-
...deserialized,
|
|
2507
|
-
};
|
|
2508
|
-
return contents;
|
|
2509
|
-
};
|
|
2510
|
-
|
|
2511
|
-
const deserializeAws_json1_1TagsAlreadyExistExceptionResponse = async (
|
|
2512
|
-
parsedOutput: any,
|
|
2513
|
-
context: __SerdeContext
|
|
2514
|
-
): Promise<TagsAlreadyExistException> => {
|
|
2515
|
-
const body = parsedOutput.body;
|
|
2516
|
-
const deserialized: any = deserializeAws_json1_1TagsAlreadyExistException(body, context);
|
|
2517
|
-
const contents: TagsAlreadyExistException = {
|
|
2518
|
-
name: "TagsAlreadyExistException",
|
|
2519
|
-
$fault: "client",
|
|
2520
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2521
|
-
...deserialized,
|
|
2522
|
-
};
|
|
2523
|
-
return contents;
|
|
2524
|
-
};
|
|
2525
|
-
|
|
2526
|
-
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (
|
|
2527
|
-
parsedOutput: any,
|
|
2528
|
-
context: __SerdeContext
|
|
2529
|
-
): Promise<TooManyTagsException> => {
|
|
2530
|
-
const body = parsedOutput.body;
|
|
2531
|
-
const deserialized: any = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2532
|
-
const contents: TooManyTagsException = {
|
|
2533
|
-
name: "TooManyTagsException",
|
|
2534
|
-
$fault: "client",
|
|
2535
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2536
|
-
...deserialized,
|
|
2537
|
-
};
|
|
2538
|
-
return contents;
|
|
2539
|
-
};
|
|
2540
|
-
|
|
2541
|
-
const deserializeAws_json1_1ValidationExceptionResponse = async (
|
|
2542
|
-
parsedOutput: any,
|
|
2543
|
-
context: __SerdeContext
|
|
2544
|
-
): Promise<ValidationException> => {
|
|
2545
|
-
const body = parsedOutput.body;
|
|
2546
|
-
const deserialized: any = deserializeAws_json1_1ValidationException(body, context);
|
|
2547
|
-
const contents: ValidationException = {
|
|
2548
|
-
name: "ValidationException",
|
|
2549
|
-
$fault: "client",
|
|
2550
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2551
|
-
...deserialized,
|
|
2552
|
-
};
|
|
2553
|
-
return contents;
|
|
2554
|
-
};
|
|
2555
|
-
|
|
2556
|
-
const serializeAws_json1_1CreateApplicationRequest = (
|
|
2557
|
-
input: CreateApplicationRequest,
|
|
2558
|
-
context: __SerdeContext
|
|
2559
|
-
): any => {
|
|
2560
|
-
return {
|
|
2561
|
-
...(input.CWEMonitorEnabled !== undefined &&
|
|
2562
|
-
input.CWEMonitorEnabled !== null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
|
|
2563
|
-
...(input.OpsCenterEnabled !== undefined &&
|
|
2564
|
-
input.OpsCenterEnabled !== null && { OpsCenterEnabled: input.OpsCenterEnabled }),
|
|
2565
|
-
...(input.OpsItemSNSTopicArn !== undefined &&
|
|
2566
|
-
input.OpsItemSNSTopicArn !== null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
2567
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2568
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2569
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2570
|
-
};
|
|
2571
|
-
};
|
|
2572
|
-
|
|
2573
|
-
const serializeAws_json1_1CreateComponentRequest = (input: CreateComponentRequest, context: __SerdeContext): any => {
|
|
2574
|
-
return {
|
|
2575
|
-
...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
|
|
2576
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2577
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2578
|
-
...(input.ResourceList !== undefined &&
|
|
2579
|
-
input.ResourceList !== null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
|
|
2580
|
-
};
|
|
2581
|
-
};
|
|
2582
|
-
|
|
2583
|
-
const serializeAws_json1_1CreateLogPatternRequest = (input: CreateLogPatternRequest, context: __SerdeContext): any => {
|
|
2584
|
-
return {
|
|
2585
|
-
...(input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern }),
|
|
2586
|
-
...(input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName }),
|
|
2587
|
-
...(input.PatternSetName !== undefined &&
|
|
2588
|
-
input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
|
|
2589
|
-
...(input.Rank !== undefined && input.Rank !== null && { Rank: input.Rank }),
|
|
2590
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2591
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2592
|
-
};
|
|
2593
|
-
};
|
|
2594
|
-
|
|
2595
|
-
const serializeAws_json1_1DeleteApplicationRequest = (
|
|
2596
|
-
input: DeleteApplicationRequest,
|
|
2597
|
-
context: __SerdeContext
|
|
2598
|
-
): any => {
|
|
2599
|
-
return {
|
|
2600
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2601
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2602
|
-
};
|
|
2603
|
-
};
|
|
2604
|
-
|
|
2605
|
-
const serializeAws_json1_1DeleteComponentRequest = (input: DeleteComponentRequest, context: __SerdeContext): any => {
|
|
2606
|
-
return {
|
|
2607
|
-
...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
|
|
2608
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2609
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2610
|
-
};
|
|
2611
|
-
};
|
|
2612
|
-
|
|
2613
|
-
const serializeAws_json1_1DeleteLogPatternRequest = (input: DeleteLogPatternRequest, context: __SerdeContext): any => {
|
|
2614
|
-
return {
|
|
2615
|
-
...(input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName }),
|
|
2616
|
-
...(input.PatternSetName !== undefined &&
|
|
2617
|
-
input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
|
|
2618
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2619
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2620
|
-
};
|
|
2621
|
-
};
|
|
2622
|
-
|
|
2623
|
-
const serializeAws_json1_1DescribeApplicationRequest = (
|
|
2624
|
-
input: DescribeApplicationRequest,
|
|
2625
|
-
context: __SerdeContext
|
|
2626
|
-
): any => {
|
|
2627
|
-
return {
|
|
2628
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2629
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2630
|
-
};
|
|
2631
|
-
};
|
|
2632
|
-
|
|
2633
|
-
const serializeAws_json1_1DescribeComponentConfigurationRecommendationRequest = (
|
|
2634
|
-
input: DescribeComponentConfigurationRecommendationRequest,
|
|
2635
|
-
context: __SerdeContext
|
|
2636
|
-
): any => {
|
|
2637
|
-
return {
|
|
2638
|
-
...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
|
|
2639
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2640
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2641
|
-
...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
|
|
2642
|
-
};
|
|
2643
|
-
};
|
|
2644
|
-
|
|
2645
|
-
const serializeAws_json1_1DescribeComponentConfigurationRequest = (
|
|
2646
|
-
input: DescribeComponentConfigurationRequest,
|
|
2647
|
-
context: __SerdeContext
|
|
2648
|
-
): any => {
|
|
2649
|
-
return {
|
|
2650
|
-
...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
|
|
2651
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2652
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2653
|
-
};
|
|
2654
|
-
};
|
|
2655
|
-
|
|
2656
|
-
const serializeAws_json1_1DescribeComponentRequest = (
|
|
2657
|
-
input: DescribeComponentRequest,
|
|
2658
|
-
context: __SerdeContext
|
|
2659
|
-
): any => {
|
|
2660
|
-
return {
|
|
2661
|
-
...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
|
|
2662
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2663
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2664
|
-
};
|
|
2665
|
-
};
|
|
2666
|
-
|
|
2667
|
-
const serializeAws_json1_1DescribeLogPatternRequest = (
|
|
2668
|
-
input: DescribeLogPatternRequest,
|
|
2669
|
-
context: __SerdeContext
|
|
2670
|
-
): any => {
|
|
2671
|
-
return {
|
|
2672
|
-
...(input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName }),
|
|
2673
|
-
...(input.PatternSetName !== undefined &&
|
|
2674
|
-
input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
|
|
2675
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2676
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2677
|
-
};
|
|
2678
|
-
};
|
|
2679
|
-
|
|
2680
|
-
const serializeAws_json1_1DescribeObservationRequest = (
|
|
2681
|
-
input: DescribeObservationRequest,
|
|
2682
|
-
context: __SerdeContext
|
|
2683
|
-
): any => {
|
|
2684
|
-
return {
|
|
2685
|
-
...(input.ObservationId !== undefined && input.ObservationId !== null && { ObservationId: input.ObservationId }),
|
|
2686
|
-
};
|
|
2687
|
-
};
|
|
2688
|
-
|
|
2689
|
-
const serializeAws_json1_1DescribeProblemObservationsRequest = (
|
|
2690
|
-
input: DescribeProblemObservationsRequest,
|
|
2691
|
-
context: __SerdeContext
|
|
2692
|
-
): any => {
|
|
2693
|
-
return {
|
|
2694
|
-
...(input.ProblemId !== undefined && input.ProblemId !== null && { ProblemId: input.ProblemId }),
|
|
2695
|
-
};
|
|
2696
|
-
};
|
|
2697
|
-
|
|
2698
|
-
const serializeAws_json1_1DescribeProblemRequest = (input: DescribeProblemRequest, context: __SerdeContext): any => {
|
|
2699
|
-
return {
|
|
2700
|
-
...(input.ProblemId !== undefined && input.ProblemId !== null && { ProblemId: input.ProblemId }),
|
|
2701
|
-
};
|
|
2702
|
-
};
|
|
2703
|
-
|
|
2704
|
-
const serializeAws_json1_1ListApplicationsRequest = (input: ListApplicationsRequest, context: __SerdeContext): any => {
|
|
2705
|
-
return {
|
|
2706
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2707
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2708
|
-
};
|
|
2709
|
-
};
|
|
2710
|
-
|
|
2711
|
-
const serializeAws_json1_1ListComponentsRequest = (input: ListComponentsRequest, context: __SerdeContext): any => {
|
|
2712
|
-
return {
|
|
2713
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2714
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2715
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2716
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2717
|
-
};
|
|
2718
|
-
};
|
|
2719
|
-
|
|
2720
|
-
const serializeAws_json1_1ListConfigurationHistoryRequest = (
|
|
2721
|
-
input: ListConfigurationHistoryRequest,
|
|
2722
|
-
context: __SerdeContext
|
|
2723
|
-
): any => {
|
|
2724
|
-
return {
|
|
2725
|
-
...(input.EndTime !== undefined &&
|
|
2726
|
-
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2727
|
-
...(input.EventStatus !== undefined && input.EventStatus !== null && { EventStatus: input.EventStatus }),
|
|
2728
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2729
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2730
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2731
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2732
|
-
...(input.StartTime !== undefined &&
|
|
2733
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2734
|
-
};
|
|
2735
|
-
};
|
|
2736
|
-
|
|
2737
|
-
const serializeAws_json1_1ListLogPatternSetsRequest = (
|
|
2738
|
-
input: ListLogPatternSetsRequest,
|
|
2739
|
-
context: __SerdeContext
|
|
2740
|
-
): any => {
|
|
2741
|
-
return {
|
|
2742
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2743
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2744
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2745
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2746
|
-
};
|
|
2747
|
-
};
|
|
2748
|
-
|
|
2749
|
-
const serializeAws_json1_1ListLogPatternsRequest = (input: ListLogPatternsRequest, context: __SerdeContext): any => {
|
|
2750
|
-
return {
|
|
2751
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2752
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2753
|
-
...(input.PatternSetName !== undefined &&
|
|
2754
|
-
input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
|
|
2755
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2756
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2757
|
-
};
|
|
2758
|
-
};
|
|
2759
|
-
|
|
2760
|
-
const serializeAws_json1_1ListProblemsRequest = (input: ListProblemsRequest, context: __SerdeContext): any => {
|
|
2761
|
-
return {
|
|
2762
|
-
...(input.EndTime !== undefined &&
|
|
2763
|
-
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2764
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2765
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2766
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2767
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2768
|
-
...(input.StartTime !== undefined &&
|
|
2769
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2770
|
-
};
|
|
2771
|
-
};
|
|
2772
|
-
|
|
2773
|
-
const serializeAws_json1_1ListTagsForResourceRequest = (
|
|
2774
|
-
input: ListTagsForResourceRequest,
|
|
2775
|
-
context: __SerdeContext
|
|
2776
|
-
): any => {
|
|
2777
|
-
return {
|
|
2778
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2779
|
-
};
|
|
2780
|
-
};
|
|
2781
|
-
|
|
2782
|
-
const serializeAws_json1_1ResourceList = (input: string[], context: __SerdeContext): any => {
|
|
2783
|
-
return input
|
|
2784
|
-
.filter((e: any) => e != null)
|
|
2785
|
-
.map((entry) => {
|
|
2786
|
-
if (entry === null) {
|
|
2787
|
-
return null as any;
|
|
2788
|
-
}
|
|
2789
|
-
return entry;
|
|
2790
|
-
});
|
|
2791
|
-
};
|
|
2792
|
-
|
|
2793
|
-
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
|
|
2794
|
-
return {
|
|
2795
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
2796
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
2797
|
-
};
|
|
2798
|
-
};
|
|
2799
|
-
|
|
2800
|
-
const serializeAws_json1_1TagKeyList = (input: string[], context: __SerdeContext): any => {
|
|
2801
|
-
return input
|
|
2802
|
-
.filter((e: any) => e != null)
|
|
2803
|
-
.map((entry) => {
|
|
2804
|
-
if (entry === null) {
|
|
2805
|
-
return null as any;
|
|
2806
|
-
}
|
|
2807
|
-
return entry;
|
|
2808
|
-
});
|
|
2809
|
-
};
|
|
2810
|
-
|
|
2811
|
-
const serializeAws_json1_1TagList = (input: Tag[], context: __SerdeContext): any => {
|
|
2812
|
-
return input
|
|
2813
|
-
.filter((e: any) => e != null)
|
|
2814
|
-
.map((entry) => {
|
|
2815
|
-
if (entry === null) {
|
|
2816
|
-
return null as any;
|
|
2817
|
-
}
|
|
2818
|
-
return serializeAws_json1_1Tag(entry, context);
|
|
2819
|
-
});
|
|
2820
|
-
};
|
|
2821
|
-
|
|
2822
|
-
const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, context: __SerdeContext): any => {
|
|
2823
|
-
return {
|
|
2824
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2825
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2826
|
-
};
|
|
2827
|
-
};
|
|
2828
|
-
|
|
2829
|
-
const serializeAws_json1_1UntagResourceRequest = (input: UntagResourceRequest, context: __SerdeContext): any => {
|
|
2830
|
-
return {
|
|
2831
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2832
|
-
...(input.TagKeys !== undefined &&
|
|
2833
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
2834
|
-
};
|
|
2835
|
-
};
|
|
2836
|
-
|
|
2837
|
-
const serializeAws_json1_1UpdateApplicationRequest = (
|
|
2838
|
-
input: UpdateApplicationRequest,
|
|
2839
|
-
context: __SerdeContext
|
|
2840
|
-
): any => {
|
|
2841
|
-
return {
|
|
2842
|
-
...(input.CWEMonitorEnabled !== undefined &&
|
|
2843
|
-
input.CWEMonitorEnabled !== null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
|
|
2844
|
-
...(input.OpsCenterEnabled !== undefined &&
|
|
2845
|
-
input.OpsCenterEnabled !== null && { OpsCenterEnabled: input.OpsCenterEnabled }),
|
|
2846
|
-
...(input.OpsItemSNSTopicArn !== undefined &&
|
|
2847
|
-
input.OpsItemSNSTopicArn !== null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
2848
|
-
...(input.RemoveSNSTopic !== undefined &&
|
|
2849
|
-
input.RemoveSNSTopic !== null && { RemoveSNSTopic: input.RemoveSNSTopic }),
|
|
2850
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2851
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2852
|
-
};
|
|
2853
|
-
};
|
|
2854
|
-
|
|
2855
|
-
const serializeAws_json1_1UpdateComponentConfigurationRequest = (
|
|
2856
|
-
input: UpdateComponentConfigurationRequest,
|
|
2857
|
-
context: __SerdeContext
|
|
2858
|
-
): any => {
|
|
2859
|
-
return {
|
|
2860
|
-
...(input.ComponentConfiguration !== undefined &&
|
|
2861
|
-
input.ComponentConfiguration !== null && { ComponentConfiguration: input.ComponentConfiguration }),
|
|
2862
|
-
...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
|
|
2863
|
-
...(input.Monitor !== undefined && input.Monitor !== null && { Monitor: input.Monitor }),
|
|
2864
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2865
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2866
|
-
...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
|
|
2867
|
-
};
|
|
2868
|
-
};
|
|
2869
|
-
|
|
2870
|
-
const serializeAws_json1_1UpdateComponentRequest = (input: UpdateComponentRequest, context: __SerdeContext): any => {
|
|
2871
|
-
return {
|
|
2872
|
-
...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
|
|
2873
|
-
...(input.NewComponentName !== undefined &&
|
|
2874
|
-
input.NewComponentName !== null && { NewComponentName: input.NewComponentName }),
|
|
2875
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2876
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2877
|
-
...(input.ResourceList !== undefined &&
|
|
2878
|
-
input.ResourceList !== null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
|
|
2879
|
-
};
|
|
2880
|
-
};
|
|
2881
|
-
|
|
2882
|
-
const serializeAws_json1_1UpdateLogPatternRequest = (input: UpdateLogPatternRequest, context: __SerdeContext): any => {
|
|
2883
|
-
return {
|
|
2884
|
-
...(input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern }),
|
|
2885
|
-
...(input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName }),
|
|
2886
|
-
...(input.PatternSetName !== undefined &&
|
|
2887
|
-
input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
|
|
2888
|
-
...(input.Rank !== undefined && input.Rank !== null && { Rank: input.Rank }),
|
|
2889
|
-
...(input.ResourceGroupName !== undefined &&
|
|
2890
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
2891
|
-
};
|
|
2892
|
-
};
|
|
2893
|
-
|
|
2894
|
-
const deserializeAws_json1_1AccessDeniedException = (output: any, context: __SerdeContext): AccessDeniedException => {
|
|
2895
|
-
return {
|
|
2896
|
-
Message: __expectString(output.Message),
|
|
2897
|
-
} as any;
|
|
2898
|
-
};
|
|
2899
|
-
|
|
2900
|
-
const deserializeAws_json1_1ApplicationComponent = (output: any, context: __SerdeContext): ApplicationComponent => {
|
|
2901
|
-
return {
|
|
2902
|
-
ComponentName: __expectString(output.ComponentName),
|
|
2903
|
-
ComponentRemarks: __expectString(output.ComponentRemarks),
|
|
2904
|
-
DetectedWorkload:
|
|
2905
|
-
output.DetectedWorkload !== undefined && output.DetectedWorkload !== null
|
|
2906
|
-
? deserializeAws_json1_1DetectedWorkload(output.DetectedWorkload, context)
|
|
2907
|
-
: undefined,
|
|
2908
|
-
Monitor: __expectBoolean(output.Monitor),
|
|
2909
|
-
OsType: __expectString(output.OsType),
|
|
2910
|
-
ResourceType: __expectString(output.ResourceType),
|
|
2911
|
-
Tier: __expectString(output.Tier),
|
|
2912
|
-
} as any;
|
|
2913
|
-
};
|
|
2914
|
-
|
|
2915
|
-
const deserializeAws_json1_1ApplicationComponentList = (
|
|
2916
|
-
output: any,
|
|
2917
|
-
context: __SerdeContext
|
|
2918
|
-
): ApplicationComponent[] => {
|
|
2919
|
-
return (output || [])
|
|
2920
|
-
.filter((e: any) => e != null)
|
|
2921
|
-
.map((entry: any) => {
|
|
2922
|
-
if (entry === null) {
|
|
2923
|
-
return null as any;
|
|
2924
|
-
}
|
|
2925
|
-
return deserializeAws_json1_1ApplicationComponent(entry, context);
|
|
2926
|
-
});
|
|
2927
|
-
};
|
|
2928
|
-
|
|
2929
|
-
const deserializeAws_json1_1ApplicationInfo = (output: any, context: __SerdeContext): ApplicationInfo => {
|
|
2930
|
-
return {
|
|
2931
|
-
CWEMonitorEnabled: __expectBoolean(output.CWEMonitorEnabled),
|
|
2932
|
-
LifeCycle: __expectString(output.LifeCycle),
|
|
2933
|
-
OpsCenterEnabled: __expectBoolean(output.OpsCenterEnabled),
|
|
2934
|
-
OpsItemSNSTopicArn: __expectString(output.OpsItemSNSTopicArn),
|
|
2935
|
-
Remarks: __expectString(output.Remarks),
|
|
2936
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
2937
|
-
} as any;
|
|
2938
|
-
};
|
|
2939
|
-
|
|
2940
|
-
const deserializeAws_json1_1ApplicationInfoList = (output: any, context: __SerdeContext): ApplicationInfo[] => {
|
|
2941
|
-
return (output || [])
|
|
2942
|
-
.filter((e: any) => e != null)
|
|
2943
|
-
.map((entry: any) => {
|
|
2944
|
-
if (entry === null) {
|
|
2945
|
-
return null as any;
|
|
2946
|
-
}
|
|
2947
|
-
return deserializeAws_json1_1ApplicationInfo(entry, context);
|
|
2948
|
-
});
|
|
2949
|
-
};
|
|
2950
|
-
|
|
2951
|
-
const deserializeAws_json1_1BadRequestException = (output: any, context: __SerdeContext): BadRequestException => {
|
|
2952
|
-
return {
|
|
2953
|
-
Message: __expectString(output.Message),
|
|
2954
|
-
} as any;
|
|
2955
|
-
};
|
|
2956
|
-
|
|
2957
|
-
const deserializeAws_json1_1ConfigurationEvent = (output: any, context: __SerdeContext): ConfigurationEvent => {
|
|
2958
|
-
return {
|
|
2959
|
-
EventDetail: __expectString(output.EventDetail),
|
|
2960
|
-
EventResourceName: __expectString(output.EventResourceName),
|
|
2961
|
-
EventResourceType: __expectString(output.EventResourceType),
|
|
2962
|
-
EventStatus: __expectString(output.EventStatus),
|
|
2963
|
-
EventTime:
|
|
2964
|
-
output.EventTime !== undefined && output.EventTime !== null
|
|
2965
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventTime)))
|
|
2966
|
-
: undefined,
|
|
2967
|
-
MonitoredResourceARN: __expectString(output.MonitoredResourceARN),
|
|
2968
|
-
} as any;
|
|
2969
|
-
};
|
|
2970
|
-
|
|
2971
|
-
const deserializeAws_json1_1ConfigurationEventList = (output: any, context: __SerdeContext): ConfigurationEvent[] => {
|
|
2972
|
-
return (output || [])
|
|
2973
|
-
.filter((e: any) => e != null)
|
|
2974
|
-
.map((entry: any) => {
|
|
2975
|
-
if (entry === null) {
|
|
2976
|
-
return null as any;
|
|
2977
|
-
}
|
|
2978
|
-
return deserializeAws_json1_1ConfigurationEvent(entry, context);
|
|
2979
|
-
});
|
|
2980
|
-
};
|
|
2981
|
-
|
|
2982
|
-
const deserializeAws_json1_1CreateApplicationResponse = (
|
|
2983
|
-
output: any,
|
|
2984
|
-
context: __SerdeContext
|
|
2985
|
-
): CreateApplicationResponse => {
|
|
2986
|
-
return {
|
|
2987
|
-
ApplicationInfo:
|
|
2988
|
-
output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
|
|
2989
|
-
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
2990
|
-
: undefined,
|
|
2991
|
-
} as any;
|
|
2992
|
-
};
|
|
2993
|
-
|
|
2994
|
-
const deserializeAws_json1_1CreateComponentResponse = (
|
|
2995
|
-
output: any,
|
|
2996
|
-
context: __SerdeContext
|
|
2997
|
-
): CreateComponentResponse => {
|
|
2998
|
-
return {} as any;
|
|
2999
|
-
};
|
|
3000
|
-
|
|
3001
|
-
const deserializeAws_json1_1CreateLogPatternResponse = (
|
|
3002
|
-
output: any,
|
|
3003
|
-
context: __SerdeContext
|
|
3004
|
-
): CreateLogPatternResponse => {
|
|
3005
|
-
return {
|
|
3006
|
-
LogPattern:
|
|
3007
|
-
output.LogPattern !== undefined && output.LogPattern !== null
|
|
3008
|
-
? deserializeAws_json1_1LogPattern(output.LogPattern, context)
|
|
3009
|
-
: undefined,
|
|
3010
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
3011
|
-
} as any;
|
|
3012
|
-
};
|
|
3013
|
-
|
|
3014
|
-
const deserializeAws_json1_1DeleteApplicationResponse = (
|
|
3015
|
-
output: any,
|
|
3016
|
-
context: __SerdeContext
|
|
3017
|
-
): DeleteApplicationResponse => {
|
|
3018
|
-
return {} as any;
|
|
3019
|
-
};
|
|
3020
|
-
|
|
3021
|
-
const deserializeAws_json1_1DeleteComponentResponse = (
|
|
3022
|
-
output: any,
|
|
3023
|
-
context: __SerdeContext
|
|
3024
|
-
): DeleteComponentResponse => {
|
|
3025
|
-
return {} as any;
|
|
3026
|
-
};
|
|
3027
|
-
|
|
3028
|
-
const deserializeAws_json1_1DeleteLogPatternResponse = (
|
|
3029
|
-
output: any,
|
|
3030
|
-
context: __SerdeContext
|
|
3031
|
-
): DeleteLogPatternResponse => {
|
|
3032
|
-
return {} as any;
|
|
3033
|
-
};
|
|
3034
|
-
|
|
3035
|
-
const deserializeAws_json1_1DescribeApplicationResponse = (
|
|
3036
|
-
output: any,
|
|
3037
|
-
context: __SerdeContext
|
|
3038
|
-
): DescribeApplicationResponse => {
|
|
3039
|
-
return {
|
|
3040
|
-
ApplicationInfo:
|
|
3041
|
-
output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
|
|
3042
|
-
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
3043
|
-
: undefined,
|
|
3044
|
-
} as any;
|
|
3045
|
-
};
|
|
3046
|
-
|
|
3047
|
-
const deserializeAws_json1_1DescribeComponentConfigurationRecommendationResponse = (
|
|
3048
|
-
output: any,
|
|
3049
|
-
context: __SerdeContext
|
|
3050
|
-
): DescribeComponentConfigurationRecommendationResponse => {
|
|
3051
|
-
return {
|
|
3052
|
-
ComponentConfiguration: __expectString(output.ComponentConfiguration),
|
|
3053
|
-
} as any;
|
|
3054
|
-
};
|
|
3055
|
-
|
|
3056
|
-
const deserializeAws_json1_1DescribeComponentConfigurationResponse = (
|
|
3057
|
-
output: any,
|
|
3058
|
-
context: __SerdeContext
|
|
3059
|
-
): DescribeComponentConfigurationResponse => {
|
|
3060
|
-
return {
|
|
3061
|
-
ComponentConfiguration: __expectString(output.ComponentConfiguration),
|
|
3062
|
-
Monitor: __expectBoolean(output.Monitor),
|
|
3063
|
-
Tier: __expectString(output.Tier),
|
|
3064
|
-
} as any;
|
|
3065
|
-
};
|
|
3066
|
-
|
|
3067
|
-
const deserializeAws_json1_1DescribeComponentResponse = (
|
|
3068
|
-
output: any,
|
|
3069
|
-
context: __SerdeContext
|
|
3070
|
-
): DescribeComponentResponse => {
|
|
3071
|
-
return {
|
|
3072
|
-
ApplicationComponent:
|
|
3073
|
-
output.ApplicationComponent !== undefined && output.ApplicationComponent !== null
|
|
3074
|
-
? deserializeAws_json1_1ApplicationComponent(output.ApplicationComponent, context)
|
|
3075
|
-
: undefined,
|
|
3076
|
-
ResourceList:
|
|
3077
|
-
output.ResourceList !== undefined && output.ResourceList !== null
|
|
3078
|
-
? deserializeAws_json1_1ResourceList(output.ResourceList, context)
|
|
3079
|
-
: undefined,
|
|
3080
|
-
} as any;
|
|
3081
|
-
};
|
|
3082
|
-
|
|
3083
|
-
const deserializeAws_json1_1DescribeLogPatternResponse = (
|
|
3084
|
-
output: any,
|
|
3085
|
-
context: __SerdeContext
|
|
3086
|
-
): DescribeLogPatternResponse => {
|
|
3087
|
-
return {
|
|
3088
|
-
LogPattern:
|
|
3089
|
-
output.LogPattern !== undefined && output.LogPattern !== null
|
|
3090
|
-
? deserializeAws_json1_1LogPattern(output.LogPattern, context)
|
|
3091
|
-
: undefined,
|
|
3092
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
3093
|
-
} as any;
|
|
3094
|
-
};
|
|
3095
|
-
|
|
3096
|
-
const deserializeAws_json1_1DescribeObservationResponse = (
|
|
3097
|
-
output: any,
|
|
3098
|
-
context: __SerdeContext
|
|
3099
|
-
): DescribeObservationResponse => {
|
|
3100
|
-
return {
|
|
3101
|
-
Observation:
|
|
3102
|
-
output.Observation !== undefined && output.Observation !== null
|
|
3103
|
-
? deserializeAws_json1_1Observation(output.Observation, context)
|
|
3104
|
-
: undefined,
|
|
3105
|
-
} as any;
|
|
3106
|
-
};
|
|
3107
|
-
|
|
3108
|
-
const deserializeAws_json1_1DescribeProblemObservationsResponse = (
|
|
3109
|
-
output: any,
|
|
3110
|
-
context: __SerdeContext
|
|
3111
|
-
): DescribeProblemObservationsResponse => {
|
|
3112
|
-
return {
|
|
3113
|
-
RelatedObservations:
|
|
3114
|
-
output.RelatedObservations !== undefined && output.RelatedObservations !== null
|
|
3115
|
-
? deserializeAws_json1_1RelatedObservations(output.RelatedObservations, context)
|
|
3116
|
-
: undefined,
|
|
3117
|
-
} as any;
|
|
3118
|
-
};
|
|
3119
|
-
|
|
3120
|
-
const deserializeAws_json1_1DescribeProblemResponse = (
|
|
3121
|
-
output: any,
|
|
3122
|
-
context: __SerdeContext
|
|
3123
|
-
): DescribeProblemResponse => {
|
|
3124
|
-
return {
|
|
3125
|
-
Problem:
|
|
3126
|
-
output.Problem !== undefined && output.Problem !== null
|
|
3127
|
-
? deserializeAws_json1_1Problem(output.Problem, context)
|
|
3128
|
-
: undefined,
|
|
3129
|
-
} as any;
|
|
3130
|
-
};
|
|
3131
|
-
|
|
3132
|
-
const deserializeAws_json1_1DetectedWorkload = (
|
|
3133
|
-
output: any,
|
|
3134
|
-
context: __SerdeContext
|
|
3135
|
-
): { [key: string]: { [key: string]: string } } => {
|
|
3136
|
-
return Object.entries(output).reduce(
|
|
3137
|
-
(acc: { [key: string]: { [key: string]: string } }, [key, value]: [Tier | string, any]) => {
|
|
3138
|
-
if (value === null) {
|
|
3139
|
-
return acc;
|
|
3140
|
-
}
|
|
3141
|
-
return {
|
|
3142
|
-
...acc,
|
|
3143
|
-
[key]: deserializeAws_json1_1WorkloadMetaData(value, context),
|
|
3144
|
-
};
|
|
3145
|
-
},
|
|
3146
|
-
{}
|
|
3147
|
-
);
|
|
3148
|
-
};
|
|
3149
|
-
|
|
3150
|
-
const deserializeAws_json1_1Feedback = (
|
|
3151
|
-
output: any,
|
|
3152
|
-
context: __SerdeContext
|
|
3153
|
-
): { [key: string]: FeedbackValue | string } => {
|
|
3154
|
-
return Object.entries(output).reduce(
|
|
3155
|
-
(acc: { [key: string]: FeedbackValue | string }, [key, value]: [FeedbackKey | string, any]) => {
|
|
3156
|
-
if (value === null) {
|
|
3157
|
-
return acc;
|
|
3158
|
-
}
|
|
3159
|
-
return {
|
|
3160
|
-
...acc,
|
|
3161
|
-
[key]: __expectString(value) as any,
|
|
3162
|
-
};
|
|
3163
|
-
},
|
|
3164
|
-
{}
|
|
3165
|
-
);
|
|
3166
|
-
};
|
|
3167
|
-
|
|
3168
|
-
const deserializeAws_json1_1InternalServerException = (
|
|
3169
|
-
output: any,
|
|
3170
|
-
context: __SerdeContext
|
|
3171
|
-
): InternalServerException => {
|
|
3172
|
-
return {
|
|
3173
|
-
Message: __expectString(output.Message),
|
|
3174
|
-
} as any;
|
|
3175
|
-
};
|
|
3176
|
-
|
|
3177
|
-
const deserializeAws_json1_1ListApplicationsResponse = (
|
|
3178
|
-
output: any,
|
|
3179
|
-
context: __SerdeContext
|
|
3180
|
-
): ListApplicationsResponse => {
|
|
3181
|
-
return {
|
|
3182
|
-
ApplicationInfoList:
|
|
3183
|
-
output.ApplicationInfoList !== undefined && output.ApplicationInfoList !== null
|
|
3184
|
-
? deserializeAws_json1_1ApplicationInfoList(output.ApplicationInfoList, context)
|
|
3185
|
-
: undefined,
|
|
3186
|
-
NextToken: __expectString(output.NextToken),
|
|
3187
|
-
} as any;
|
|
3188
|
-
};
|
|
3189
|
-
|
|
3190
|
-
const deserializeAws_json1_1ListComponentsResponse = (output: any, context: __SerdeContext): ListComponentsResponse => {
|
|
3191
|
-
return {
|
|
3192
|
-
ApplicationComponentList:
|
|
3193
|
-
output.ApplicationComponentList !== undefined && output.ApplicationComponentList !== null
|
|
3194
|
-
? deserializeAws_json1_1ApplicationComponentList(output.ApplicationComponentList, context)
|
|
3195
|
-
: undefined,
|
|
3196
|
-
NextToken: __expectString(output.NextToken),
|
|
3197
|
-
} as any;
|
|
3198
|
-
};
|
|
3199
|
-
|
|
3200
|
-
const deserializeAws_json1_1ListConfigurationHistoryResponse = (
|
|
3201
|
-
output: any,
|
|
3202
|
-
context: __SerdeContext
|
|
3203
|
-
): ListConfigurationHistoryResponse => {
|
|
3204
|
-
return {
|
|
3205
|
-
EventList:
|
|
3206
|
-
output.EventList !== undefined && output.EventList !== null
|
|
3207
|
-
? deserializeAws_json1_1ConfigurationEventList(output.EventList, context)
|
|
3208
|
-
: undefined,
|
|
3209
|
-
NextToken: __expectString(output.NextToken),
|
|
3210
|
-
} as any;
|
|
3211
|
-
};
|
|
3212
|
-
|
|
3213
|
-
const deserializeAws_json1_1ListLogPatternSetsResponse = (
|
|
3214
|
-
output: any,
|
|
3215
|
-
context: __SerdeContext
|
|
3216
|
-
): ListLogPatternSetsResponse => {
|
|
3217
|
-
return {
|
|
3218
|
-
LogPatternSets:
|
|
3219
|
-
output.LogPatternSets !== undefined && output.LogPatternSets !== null
|
|
3220
|
-
? deserializeAws_json1_1LogPatternSetList(output.LogPatternSets, context)
|
|
3221
|
-
: undefined,
|
|
3222
|
-
NextToken: __expectString(output.NextToken),
|
|
3223
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
3224
|
-
} as any;
|
|
3225
|
-
};
|
|
3226
|
-
|
|
3227
|
-
const deserializeAws_json1_1ListLogPatternsResponse = (
|
|
3228
|
-
output: any,
|
|
3229
|
-
context: __SerdeContext
|
|
3230
|
-
): ListLogPatternsResponse => {
|
|
3231
|
-
return {
|
|
3232
|
-
LogPatterns:
|
|
3233
|
-
output.LogPatterns !== undefined && output.LogPatterns !== null
|
|
3234
|
-
? deserializeAws_json1_1LogPatternList(output.LogPatterns, context)
|
|
3235
|
-
: undefined,
|
|
3236
|
-
NextToken: __expectString(output.NextToken),
|
|
3237
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
3238
|
-
} as any;
|
|
3239
|
-
};
|
|
3240
|
-
|
|
3241
|
-
const deserializeAws_json1_1ListProblemsResponse = (output: any, context: __SerdeContext): ListProblemsResponse => {
|
|
3242
|
-
return {
|
|
3243
|
-
NextToken: __expectString(output.NextToken),
|
|
3244
|
-
ProblemList:
|
|
3245
|
-
output.ProblemList !== undefined && output.ProblemList !== null
|
|
3246
|
-
? deserializeAws_json1_1ProblemList(output.ProblemList, context)
|
|
3247
|
-
: undefined,
|
|
3248
|
-
} as any;
|
|
3249
|
-
};
|
|
3250
|
-
|
|
3251
|
-
const deserializeAws_json1_1ListTagsForResourceResponse = (
|
|
3252
|
-
output: any,
|
|
3253
|
-
context: __SerdeContext
|
|
3254
|
-
): ListTagsForResourceResponse => {
|
|
3255
|
-
return {
|
|
3256
|
-
Tags:
|
|
3257
|
-
output.Tags !== undefined && output.Tags !== null
|
|
3258
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
3259
|
-
: undefined,
|
|
3260
|
-
} as any;
|
|
3261
|
-
};
|
|
3262
|
-
|
|
3263
|
-
const deserializeAws_json1_1LogPattern = (output: any, context: __SerdeContext): LogPattern => {
|
|
3264
|
-
return {
|
|
3265
|
-
Pattern: __expectString(output.Pattern),
|
|
3266
|
-
PatternName: __expectString(output.PatternName),
|
|
3267
|
-
PatternSetName: __expectString(output.PatternSetName),
|
|
3268
|
-
Rank: __expectInt32(output.Rank),
|
|
3269
|
-
} as any;
|
|
3270
|
-
};
|
|
3271
|
-
|
|
3272
|
-
const deserializeAws_json1_1LogPatternList = (output: any, context: __SerdeContext): LogPattern[] => {
|
|
3273
|
-
return (output || [])
|
|
3274
|
-
.filter((e: any) => e != null)
|
|
3275
|
-
.map((entry: any) => {
|
|
3276
|
-
if (entry === null) {
|
|
3277
|
-
return null as any;
|
|
3278
|
-
}
|
|
3279
|
-
return deserializeAws_json1_1LogPattern(entry, context);
|
|
3280
|
-
});
|
|
3281
|
-
};
|
|
3282
|
-
|
|
3283
|
-
const deserializeAws_json1_1LogPatternSetList = (output: any, context: __SerdeContext): string[] => {
|
|
3284
|
-
return (output || [])
|
|
3285
|
-
.filter((e: any) => e != null)
|
|
3286
|
-
.map((entry: any) => {
|
|
3287
|
-
if (entry === null) {
|
|
3288
|
-
return null as any;
|
|
3289
|
-
}
|
|
3290
|
-
return __expectString(entry) as any;
|
|
3291
|
-
});
|
|
3292
|
-
};
|
|
3293
|
-
|
|
3294
|
-
const deserializeAws_json1_1Observation = (output: any, context: __SerdeContext): Observation => {
|
|
3295
|
-
return {
|
|
3296
|
-
CloudWatchEventDetailType: __expectString(output.CloudWatchEventDetailType),
|
|
3297
|
-
CloudWatchEventId: __expectString(output.CloudWatchEventId),
|
|
3298
|
-
CloudWatchEventSource: __expectString(output.CloudWatchEventSource),
|
|
3299
|
-
CodeDeployApplication: __expectString(output.CodeDeployApplication),
|
|
3300
|
-
CodeDeployDeploymentGroup: __expectString(output.CodeDeployDeploymentGroup),
|
|
3301
|
-
CodeDeployDeploymentId: __expectString(output.CodeDeployDeploymentId),
|
|
3302
|
-
CodeDeployInstanceGroupId: __expectString(output.CodeDeployInstanceGroupId),
|
|
3303
|
-
CodeDeployState: __expectString(output.CodeDeployState),
|
|
3304
|
-
EbsCause: __expectString(output.EbsCause),
|
|
3305
|
-
EbsEvent: __expectString(output.EbsEvent),
|
|
3306
|
-
EbsRequestId: __expectString(output.EbsRequestId),
|
|
3307
|
-
EbsResult: __expectString(output.EbsResult),
|
|
3308
|
-
Ec2State: __expectString(output.Ec2State),
|
|
3309
|
-
EndTime:
|
|
3310
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
3311
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
3312
|
-
: undefined,
|
|
3313
|
-
HealthEventArn: __expectString(output.HealthEventArn),
|
|
3314
|
-
HealthEventDescription: __expectString(output.HealthEventDescription),
|
|
3315
|
-
HealthEventTypeCategory: __expectString(output.HealthEventTypeCategory),
|
|
3316
|
-
HealthEventTypeCode: __expectString(output.HealthEventTypeCode),
|
|
3317
|
-
HealthService: __expectString(output.HealthService),
|
|
3318
|
-
Id: __expectString(output.Id),
|
|
3319
|
-
LineTime:
|
|
3320
|
-
output.LineTime !== undefined && output.LineTime !== null
|
|
3321
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LineTime)))
|
|
3322
|
-
: undefined,
|
|
3323
|
-
LogFilter: __expectString(output.LogFilter),
|
|
3324
|
-
LogGroup: __expectString(output.LogGroup),
|
|
3325
|
-
LogText: __expectString(output.LogText),
|
|
3326
|
-
MetricName: __expectString(output.MetricName),
|
|
3327
|
-
MetricNamespace: __expectString(output.MetricNamespace),
|
|
3328
|
-
RdsEventCategories: __expectString(output.RdsEventCategories),
|
|
3329
|
-
RdsEventMessage: __expectString(output.RdsEventMessage),
|
|
3330
|
-
S3EventName: __expectString(output.S3EventName),
|
|
3331
|
-
SourceARN: __expectString(output.SourceARN),
|
|
3332
|
-
SourceType: __expectString(output.SourceType),
|
|
3333
|
-
StartTime:
|
|
3334
|
-
output.StartTime !== undefined && output.StartTime !== null
|
|
3335
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
3336
|
-
: undefined,
|
|
3337
|
-
StatesArn: __expectString(output.StatesArn),
|
|
3338
|
-
StatesExecutionArn: __expectString(output.StatesExecutionArn),
|
|
3339
|
-
StatesInput: __expectString(output.StatesInput),
|
|
3340
|
-
StatesStatus: __expectString(output.StatesStatus),
|
|
3341
|
-
Unit: __expectString(output.Unit),
|
|
3342
|
-
Value: __limitedParseDouble(output.Value),
|
|
3343
|
-
XRayErrorPercent: __expectInt32(output.XRayErrorPercent),
|
|
3344
|
-
XRayFaultPercent: __expectInt32(output.XRayFaultPercent),
|
|
3345
|
-
XRayNodeName: __expectString(output.XRayNodeName),
|
|
3346
|
-
XRayNodeType: __expectString(output.XRayNodeType),
|
|
3347
|
-
XRayRequestAverageLatency: __expectLong(output.XRayRequestAverageLatency),
|
|
3348
|
-
XRayRequestCount: __expectInt32(output.XRayRequestCount),
|
|
3349
|
-
XRayThrottlePercent: __expectInt32(output.XRayThrottlePercent),
|
|
3350
|
-
} as any;
|
|
3351
|
-
};
|
|
3352
|
-
|
|
3353
|
-
const deserializeAws_json1_1ObservationList = (output: any, context: __SerdeContext): Observation[] => {
|
|
3354
|
-
return (output || [])
|
|
3355
|
-
.filter((e: any) => e != null)
|
|
3356
|
-
.map((entry: any) => {
|
|
3357
|
-
if (entry === null) {
|
|
3358
|
-
return null as any;
|
|
3359
|
-
}
|
|
3360
|
-
return deserializeAws_json1_1Observation(entry, context);
|
|
3361
|
-
});
|
|
3362
|
-
};
|
|
3363
|
-
|
|
3364
|
-
const deserializeAws_json1_1Problem = (output: any, context: __SerdeContext): Problem => {
|
|
3365
|
-
return {
|
|
3366
|
-
AffectedResource: __expectString(output.AffectedResource),
|
|
3367
|
-
EndTime:
|
|
3368
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
3369
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
3370
|
-
: undefined,
|
|
3371
|
-
Feedback:
|
|
3372
|
-
output.Feedback !== undefined && output.Feedback !== null
|
|
3373
|
-
? deserializeAws_json1_1Feedback(output.Feedback, context)
|
|
3374
|
-
: undefined,
|
|
3375
|
-
Id: __expectString(output.Id),
|
|
3376
|
-
Insights: __expectString(output.Insights),
|
|
3377
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
3378
|
-
SeverityLevel: __expectString(output.SeverityLevel),
|
|
3379
|
-
StartTime:
|
|
3380
|
-
output.StartTime !== undefined && output.StartTime !== null
|
|
3381
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
3382
|
-
: undefined,
|
|
3383
|
-
Status: __expectString(output.Status),
|
|
3384
|
-
Title: __expectString(output.Title),
|
|
3385
|
-
} as any;
|
|
3386
|
-
};
|
|
3387
|
-
|
|
3388
|
-
const deserializeAws_json1_1ProblemList = (output: any, context: __SerdeContext): Problem[] => {
|
|
3389
|
-
return (output || [])
|
|
3390
|
-
.filter((e: any) => e != null)
|
|
3391
|
-
.map((entry: any) => {
|
|
3392
|
-
if (entry === null) {
|
|
3393
|
-
return null as any;
|
|
3394
|
-
}
|
|
3395
|
-
return deserializeAws_json1_1Problem(entry, context);
|
|
3396
|
-
});
|
|
3397
|
-
};
|
|
3398
|
-
|
|
3399
|
-
const deserializeAws_json1_1RelatedObservations = (output: any, context: __SerdeContext): RelatedObservations => {
|
|
3400
|
-
return {
|
|
3401
|
-
ObservationList:
|
|
3402
|
-
output.ObservationList !== undefined && output.ObservationList !== null
|
|
3403
|
-
? deserializeAws_json1_1ObservationList(output.ObservationList, context)
|
|
3404
|
-
: undefined,
|
|
3405
|
-
} as any;
|
|
3406
|
-
};
|
|
3407
|
-
|
|
3408
|
-
const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => {
|
|
3409
|
-
return {
|
|
3410
|
-
Message: __expectString(output.Message),
|
|
3411
|
-
} as any;
|
|
3412
|
-
};
|
|
3413
|
-
|
|
3414
|
-
const deserializeAws_json1_1ResourceList = (output: any, context: __SerdeContext): string[] => {
|
|
3415
|
-
return (output || [])
|
|
3416
|
-
.filter((e: any) => e != null)
|
|
3417
|
-
.map((entry: any) => {
|
|
3418
|
-
if (entry === null) {
|
|
3419
|
-
return null as any;
|
|
3420
|
-
}
|
|
3421
|
-
return __expectString(entry) as any;
|
|
3422
|
-
});
|
|
3423
|
-
};
|
|
3424
|
-
|
|
3425
|
-
const deserializeAws_json1_1ResourceNotFoundException = (
|
|
3426
|
-
output: any,
|
|
3427
|
-
context: __SerdeContext
|
|
3428
|
-
): ResourceNotFoundException => {
|
|
3429
|
-
return {
|
|
3430
|
-
Message: __expectString(output.Message),
|
|
3431
|
-
} as any;
|
|
3432
|
-
};
|
|
3433
|
-
|
|
3434
|
-
const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
|
|
3435
|
-
return {
|
|
3436
|
-
Key: __expectString(output.Key),
|
|
3437
|
-
Value: __expectString(output.Value),
|
|
3438
|
-
} as any;
|
|
3439
|
-
};
|
|
3440
|
-
|
|
3441
|
-
const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => {
|
|
3442
|
-
return (output || [])
|
|
3443
|
-
.filter((e: any) => e != null)
|
|
3444
|
-
.map((entry: any) => {
|
|
3445
|
-
if (entry === null) {
|
|
3446
|
-
return null as any;
|
|
3447
|
-
}
|
|
3448
|
-
return deserializeAws_json1_1Tag(entry, context);
|
|
3449
|
-
});
|
|
3450
|
-
};
|
|
3451
|
-
|
|
3452
|
-
const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => {
|
|
3453
|
-
return {} as any;
|
|
3454
|
-
};
|
|
3455
|
-
|
|
3456
|
-
const deserializeAws_json1_1TagsAlreadyExistException = (
|
|
3457
|
-
output: any,
|
|
3458
|
-
context: __SerdeContext
|
|
3459
|
-
): TagsAlreadyExistException => {
|
|
3460
|
-
return {
|
|
3461
|
-
Message: __expectString(output.Message),
|
|
3462
|
-
} as any;
|
|
3463
|
-
};
|
|
3464
|
-
|
|
3465
|
-
const deserializeAws_json1_1TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => {
|
|
3466
|
-
return {
|
|
3467
|
-
Message: __expectString(output.Message),
|
|
3468
|
-
ResourceName: __expectString(output.ResourceName),
|
|
3469
|
-
} as any;
|
|
3470
|
-
};
|
|
3471
|
-
|
|
3472
|
-
const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => {
|
|
3473
|
-
return {} as any;
|
|
3474
|
-
};
|
|
3475
|
-
|
|
3476
|
-
const deserializeAws_json1_1UpdateApplicationResponse = (
|
|
3477
|
-
output: any,
|
|
3478
|
-
context: __SerdeContext
|
|
3479
|
-
): UpdateApplicationResponse => {
|
|
3480
|
-
return {
|
|
3481
|
-
ApplicationInfo:
|
|
3482
|
-
output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
|
|
3483
|
-
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
3484
|
-
: undefined,
|
|
3485
|
-
} as any;
|
|
3486
|
-
};
|
|
3487
|
-
|
|
3488
|
-
const deserializeAws_json1_1UpdateComponentConfigurationResponse = (
|
|
3489
|
-
output: any,
|
|
3490
|
-
context: __SerdeContext
|
|
3491
|
-
): UpdateComponentConfigurationResponse => {
|
|
3492
|
-
return {} as any;
|
|
3493
|
-
};
|
|
3494
|
-
|
|
3495
|
-
const deserializeAws_json1_1UpdateComponentResponse = (
|
|
3496
|
-
output: any,
|
|
3497
|
-
context: __SerdeContext
|
|
3498
|
-
): UpdateComponentResponse => {
|
|
3499
|
-
return {} as any;
|
|
3500
|
-
};
|
|
3501
|
-
|
|
3502
|
-
const deserializeAws_json1_1UpdateLogPatternResponse = (
|
|
3503
|
-
output: any,
|
|
3504
|
-
context: __SerdeContext
|
|
3505
|
-
): UpdateLogPatternResponse => {
|
|
3506
|
-
return {
|
|
3507
|
-
LogPattern:
|
|
3508
|
-
output.LogPattern !== undefined && output.LogPattern !== null
|
|
3509
|
-
? deserializeAws_json1_1LogPattern(output.LogPattern, context)
|
|
3510
|
-
: undefined,
|
|
3511
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
3512
|
-
} as any;
|
|
3513
|
-
};
|
|
3514
|
-
|
|
3515
|
-
const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => {
|
|
3516
|
-
return {
|
|
3517
|
-
Message: __expectString(output.Message),
|
|
3518
|
-
} as any;
|
|
3519
|
-
};
|
|
3520
|
-
|
|
3521
|
-
const deserializeAws_json1_1WorkloadMetaData = (output: any, context: __SerdeContext): { [key: string]: string } => {
|
|
3522
|
-
return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
3523
|
-
if (value === null) {
|
|
3524
|
-
return acc;
|
|
3525
|
-
}
|
|
3526
|
-
return {
|
|
3527
|
-
...acc,
|
|
3528
|
-
[key]: __expectString(value) as any,
|
|
3529
|
-
};
|
|
3530
|
-
}, {});
|
|
3531
|
-
};
|
|
3532
|
-
|
|
3533
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
3534
|
-
httpStatusCode: output.statusCode,
|
|
3535
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
3536
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3537
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3538
|
-
});
|
|
3539
|
-
|
|
3540
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3541
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
3542
|
-
if (streamBody instanceof Uint8Array) {
|
|
3543
|
-
return Promise.resolve(streamBody);
|
|
3544
|
-
}
|
|
3545
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3546
|
-
};
|
|
3547
|
-
|
|
3548
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3549
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
3550
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3551
|
-
|
|
3552
|
-
const buildHttpRpcRequest = async (
|
|
3553
|
-
context: __SerdeContext,
|
|
3554
|
-
headers: __HeaderBag,
|
|
3555
|
-
path: string,
|
|
3556
|
-
resolvedHostname: string | undefined,
|
|
3557
|
-
body: any
|
|
3558
|
-
): Promise<__HttpRequest> => {
|
|
3559
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3560
|
-
const contents: any = {
|
|
3561
|
-
protocol,
|
|
3562
|
-
hostname,
|
|
3563
|
-
port,
|
|
3564
|
-
method: "POST",
|
|
3565
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3566
|
-
headers,
|
|
3567
|
-
};
|
|
3568
|
-
if (resolvedHostname !== undefined) {
|
|
3569
|
-
contents.hostname = resolvedHostname;
|
|
3570
|
-
}
|
|
3571
|
-
if (body !== undefined) {
|
|
3572
|
-
contents.body = body;
|
|
3573
|
-
}
|
|
3574
|
-
return new __HttpRequest(contents);
|
|
3575
|
-
};
|
|
3576
|
-
|
|
3577
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
3578
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
3579
|
-
if (encoded.length) {
|
|
3580
|
-
return JSON.parse(encoded);
|
|
3581
|
-
}
|
|
3582
|
-
return {};
|
|
3583
|
-
});
|
|
3584
|
-
|
|
3585
|
-
/**
|
|
3586
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3587
|
-
*/
|
|
3588
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
3589
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3590
|
-
|
|
3591
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
3592
|
-
let cleanValue = rawValue;
|
|
3593
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3594
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3595
|
-
}
|
|
3596
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3597
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3598
|
-
}
|
|
3599
|
-
return cleanValue;
|
|
3600
|
-
};
|
|
3601
|
-
|
|
3602
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3603
|
-
if (headerKey !== undefined) {
|
|
3604
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3605
|
-
}
|
|
3606
|
-
|
|
3607
|
-
if (data.code !== undefined) {
|
|
3608
|
-
return sanitizeErrorCode(data.code);
|
|
3609
|
-
}
|
|
3610
|
-
|
|
3611
|
-
if (data["__type"] !== undefined) {
|
|
3612
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3613
|
-
}
|
|
3614
|
-
|
|
3615
|
-
return "";
|
|
3616
|
-
};
|