@aws-sdk/client-codeguruprofiler 3.31.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/CodeGuruProfiler.js +0 -0
- package/dist-cjs/CodeGuruProfiler.js.map +1 -0
- package/{dist/cjs → dist-cjs}/CodeGuruProfilerClient.js +14 -14
- package/dist-cjs/CodeGuruProfilerClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AddNotificationChannelsCommand.js +5 -5
- package/dist-cjs/commands/AddNotificationChannelsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/BatchGetFrameMetricDataCommand.js +5 -5
- package/dist-cjs/commands/BatchGetFrameMetricDataCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ConfigureAgentCommand.js +5 -5
- package/dist-cjs/commands/ConfigureAgentCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateProfilingGroupCommand.js +5 -5
- package/dist-cjs/commands/CreateProfilingGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteProfilingGroupCommand.js +5 -5
- package/dist-cjs/commands/DeleteProfilingGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeProfilingGroupCommand.js +5 -5
- package/dist-cjs/commands/DescribeProfilingGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetFindingsReportAccountSummaryCommand.js +5 -5
- package/dist-cjs/commands/GetFindingsReportAccountSummaryCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetNotificationConfigurationCommand.js +5 -5
- package/dist-cjs/commands/GetNotificationConfigurationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetPolicyCommand.js +5 -5
- package/dist-cjs/commands/GetPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetProfileCommand.js +5 -5
- package/dist-cjs/commands/GetProfileCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetRecommendationsCommand.js +5 -5
- package/dist-cjs/commands/GetRecommendationsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListFindingsReportsCommand.js +5 -5
- package/dist-cjs/commands/ListFindingsReportsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListProfileTimesCommand.js +5 -5
- package/dist-cjs/commands/ListProfileTimesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListProfilingGroupsCommand.js +5 -5
- package/dist-cjs/commands/ListProfilingGroupsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PostAgentProfileCommand.js +5 -5
- package/dist-cjs/commands/PostAgentProfileCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutPermissionCommand.js +5 -5
- package/dist-cjs/commands/PutPermissionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/RemoveNotificationChannelCommand.js +5 -5
- package/dist-cjs/commands/RemoveNotificationChannelCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/RemovePermissionCommand.js +5 -5
- package/dist-cjs/commands/RemovePermissionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/SubmitFeedbackCommand.js +5 -5
- package/dist-cjs/commands/SubmitFeedbackCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateProfilingGroupCommand.js +5 -5
- package/dist-cjs/commands/UpdateProfilingGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +35 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetFindingsReportAccountSummaryPaginator.js +0 -0
- package/dist-cjs/pagination/GetFindingsReportAccountSummaryPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListFindingsReportsPaginator.js +0 -0
- package/dist-cjs/pagination/ListFindingsReportsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListProfileTimesPaginator.js +0 -0
- package/dist-cjs/pagination/ListProfileTimesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListProfilingGroupsPaginator.js +0 -0
- package/dist-cjs/pagination/ListProfilingGroupsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +116 -116
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/CodeGuruProfiler.js +1 -26
- package/dist-es/CodeGuruProfiler.js.map +1 -0
- package/{dist/es → dist-es}/CodeGuruProfilerClient.js +2 -32
- package/dist-es/CodeGuruProfilerClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/AddNotificationChannelsCommand.js +4 -29
- package/dist-es/commands/AddNotificationChannelsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/BatchGetFrameMetricDataCommand.js +4 -31
- package/dist-es/commands/BatchGetFrameMetricDataCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ConfigureAgentCommand.js +4 -33
- package/dist-es/commands/ConfigureAgentCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateProfilingGroupCommand.js +4 -29
- package/dist-es/commands/CreateProfilingGroupCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteProfilingGroupCommand.js +4 -29
- package/dist-es/commands/DeleteProfilingGroupCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeProfilingGroupCommand.js +4 -34
- package/dist-es/commands/DescribeProfilingGroupCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetFindingsReportAccountSummaryCommand.js +4 -35
- package/dist-es/commands/GetFindingsReportAccountSummaryCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetNotificationConfigurationCommand.js +4 -29
- package/dist-es/commands/GetNotificationConfigurationCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetPolicyCommand.js +4 -31
- package/dist-es/commands/GetPolicyCommand.js.map +1 -0
- package/dist-es/commands/GetProfileCommand.js +40 -0
- package/dist-es/commands/GetProfileCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetRecommendationsCommand.js +4 -40
- package/dist-es/commands/GetRecommendationsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListFindingsReportsCommand.js +4 -29
- package/dist-es/commands/ListFindingsReportsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListProfileTimesCommand.js +4 -30
- package/dist-es/commands/ListProfileTimesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListProfilingGroupsCommand.js +4 -35
- package/dist-es/commands/ListProfilingGroupsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -31
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PostAgentProfileCommand.js +4 -35
- package/dist-es/commands/PostAgentProfileCommand.js.map +1 -0
- package/dist-es/commands/PutPermissionCommand.js +40 -0
- package/dist-es/commands/PutPermissionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/RemoveNotificationChannelCommand.js +4 -29
- package/dist-es/commands/RemoveNotificationChannelCommand.js.map +1 -0
- package/dist-es/commands/RemovePermissionCommand.js +40 -0
- package/dist-es/commands/RemovePermissionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/SubmitFeedbackCommand.js +4 -30
- package/dist-es/commands/SubmitFeedbackCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -31
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -31
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateProfilingGroupCommand.js +4 -29
- package/dist-es/commands/UpdateProfilingGroupCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -291
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetFindingsReportAccountSummaryPaginator.js +16 -28
- package/dist-es/pagination/GetFindingsReportAccountSummaryPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListFindingsReportsPaginator.js +16 -28
- package/dist-es/pagination/ListFindingsReportsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListProfileTimesPaginator.js +16 -28
- package/dist-es/pagination/ListProfileTimesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListProfilingGroupsPaginator.js +16 -28
- package/dist-es/pagination/ListProfilingGroupsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +580 -585
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/CodeGuruProfiler.d.ts +1 -1
- package/{dist/types → dist-types}/CodeGuruProfilerClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AddNotificationChannelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchGetFrameMetricDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ConfigureAgentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateProfilingGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteProfilingGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeProfilingGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetFindingsReportAccountSummaryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetNotificationConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRecommendationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListFindingsReportsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListProfileTimesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListProfilingGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PostAgentProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutPermissionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RemoveNotificationChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RemovePermissionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SubmitFeedbackCommand.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/UpdateProfilingGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → 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/GetFindingsReportAccountSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListFindingsReportsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListProfileTimesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListProfilingGroupsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- 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/CodeGuruProfiler.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/CodeGuruProfilerClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/AddNotificationChannelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/BatchGetFrameMetricDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ConfigureAgentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateProfilingGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteProfilingGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeProfilingGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetFindingsReportAccountSummaryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetNotificationConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetRecommendationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListFindingsReportsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListProfileTimesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListProfilingGroupsCommand.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/PostAgentProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutPermissionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RemoveNotificationChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RemovePermissionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/SubmitFeedbackCommand.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/UpdateProfilingGroupCommand.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/GetFindingsReportAccountSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListFindingsReportsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListProfileTimesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListProfilingGroupsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{CodeGuruProfiler.ts → src/CodeGuruProfiler.ts} +2 -1
- package/{CodeGuruProfilerClient.ts → src/CodeGuruProfilerClient.ts} +58 -57
- package/{commands → src/commands}/AddNotificationChannelsCommand.ts +8 -7
- package/{commands → src/commands}/BatchGetFrameMetricDataCommand.ts +8 -7
- package/{commands → src/commands}/ConfigureAgentCommand.ts +8 -7
- package/{commands → src/commands}/CreateProfilingGroupCommand.ts +8 -7
- package/{commands → src/commands}/DeleteProfilingGroupCommand.ts +8 -7
- package/{commands → src/commands}/DescribeProfilingGroupCommand.ts +8 -7
- package/{commands → src/commands}/GetFindingsReportAccountSummaryCommand.ts +8 -7
- package/{commands → src/commands}/GetNotificationConfigurationCommand.ts +8 -7
- package/{commands → src/commands}/GetPolicyCommand.ts +8 -7
- package/{commands → src/commands}/GetProfileCommand.ts +8 -7
- package/{commands → src/commands}/GetRecommendationsCommand.ts +8 -7
- package/{commands → src/commands}/ListFindingsReportsCommand.ts +8 -7
- package/{commands → src/commands}/ListProfileTimesCommand.ts +8 -7
- package/{commands → src/commands}/ListProfilingGroupsCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/PostAgentProfileCommand.ts +8 -7
- package/{commands → src/commands}/PutPermissionCommand.ts +8 -7
- package/{commands → src/commands}/RemoveNotificationChannelCommand.ts +8 -7
- package/{commands → src/commands}/RemovePermissionCommand.ts +8 -7
- package/{commands → src/commands}/SubmitFeedbackCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateProfilingGroupCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/GetFindingsReportAccountSummaryPaginator.ts +2 -1
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListFindingsReportsPaginator.ts +2 -1
- package/{pagination → src/pagination}/ListProfileTimesPaginator.ts +2 -1
- package/{pagination → src/pagination}/ListProfilingGroupsPaginator.ts +2 -1
- package/{protocols → src/protocols}/Aws_restJson1.ts +46 -45
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/CodeGuruProfiler.js.map +0 -1
- package/dist/cjs/CodeGuruProfilerClient.js.map +0 -1
- package/dist/cjs/commands/AddNotificationChannelsCommand.js.map +0 -1
- package/dist/cjs/commands/BatchGetFrameMetricDataCommand.js.map +0 -1
- package/dist/cjs/commands/ConfigureAgentCommand.js.map +0 -1
- package/dist/cjs/commands/CreateProfilingGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteProfilingGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeProfilingGroupCommand.js.map +0 -1
- package/dist/cjs/commands/GetFindingsReportAccountSummaryCommand.js.map +0 -1
- package/dist/cjs/commands/GetNotificationConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/GetPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetProfileCommand.js.map +0 -1
- package/dist/cjs/commands/GetRecommendationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListFindingsReportsCommand.js.map +0 -1
- package/dist/cjs/commands/ListProfileTimesCommand.js.map +0 -1
- package/dist/cjs/commands/ListProfilingGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PostAgentProfileCommand.js.map +0 -1
- package/dist/cjs/commands/PutPermissionCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveNotificationChannelCommand.js.map +0 -1
- package/dist/cjs/commands/RemovePermissionCommand.js.map +0 -1
- package/dist/cjs/commands/SubmitFeedbackCommand.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/UpdateProfilingGroupCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -35
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/GetFindingsReportAccountSummaryPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListFindingsReportsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListProfileTimesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListProfilingGroupsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/CodeGuruProfiler.js.map +0 -1
- package/dist/es/CodeGuruProfilerClient.js.map +0 -1
- package/dist/es/commands/AddNotificationChannelsCommand.js.map +0 -1
- package/dist/es/commands/BatchGetFrameMetricDataCommand.js.map +0 -1
- package/dist/es/commands/ConfigureAgentCommand.js.map +0 -1
- package/dist/es/commands/CreateProfilingGroupCommand.js.map +0 -1
- package/dist/es/commands/DeleteProfilingGroupCommand.js.map +0 -1
- package/dist/es/commands/DescribeProfilingGroupCommand.js.map +0 -1
- package/dist/es/commands/GetFindingsReportAccountSummaryCommand.js.map +0 -1
- package/dist/es/commands/GetNotificationConfigurationCommand.js.map +0 -1
- package/dist/es/commands/GetPolicyCommand.js.map +0 -1
- package/dist/es/commands/GetProfileCommand.js +0 -136
- package/dist/es/commands/GetProfileCommand.js.map +0 -1
- package/dist/es/commands/GetRecommendationsCommand.js.map +0 -1
- package/dist/es/commands/ListFindingsReportsCommand.js.map +0 -1
- package/dist/es/commands/ListProfileTimesCommand.js.map +0 -1
- package/dist/es/commands/ListProfilingGroupsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PostAgentProfileCommand.js.map +0 -1
- package/dist/es/commands/PutPermissionCommand.js +0 -90
- package/dist/es/commands/PutPermissionCommand.js.map +0 -1
- package/dist/es/commands/RemoveNotificationChannelCommand.js.map +0 -1
- package/dist/es/commands/RemovePermissionCommand.js +0 -73
- package/dist/es/commands/RemovePermissionCommand.js.map +0 -1
- package/dist/es/commands/SubmitFeedbackCommand.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/UpdateProfilingGroupCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/GetFindingsReportAccountSummaryPaginator.js.map +0 -1
- package/dist/es/pagination/ListFindingsReportsPaginator.js.map +0 -1
- package/dist/es/pagination/ListProfileTimesPaginator.js.map +0 -1
- package/dist/es/pagination/ListProfilingGroupsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1AddNotificationChannelsCommand = function (inpu
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -25,7 +25,7 @@ export var serializeAws_restJson1AddNotificationChannelsCommand = function (inpu
|
|
|
25
25
|
}
|
|
26
26
|
body = JSON.stringify(__assign({}, (input.channels !== undefined &&
|
|
27
27
|
input.channels !== null && { channels: serializeAws_restJson1Channels(input.channels, context) })));
|
|
28
|
-
return [2
|
|
28
|
+
return [2, new __HttpRequest({
|
|
29
29
|
protocol: protocol,
|
|
30
30
|
hostname: hostname,
|
|
31
31
|
port: port,
|
|
@@ -41,7 +41,7 @@ export var serializeAws_restJson1BatchGetFrameMetricDataCommand = function (inpu
|
|
|
41
41
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
42
42
|
return __generator(this, function (_c) {
|
|
43
43
|
switch (_c.label) {
|
|
44
|
-
case 0: return [4
|
|
44
|
+
case 0: return [4, context.endpoint()];
|
|
45
45
|
case 1:
|
|
46
46
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
47
47
|
headers = {
|
|
@@ -62,7 +62,7 @@ export var serializeAws_restJson1BatchGetFrameMetricDataCommand = function (inpu
|
|
|
62
62
|
query = __assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.period !== undefined && { period: input.period })), (input.targetResolution !== undefined && { targetResolution: input.targetResolution }));
|
|
63
63
|
body = JSON.stringify(__assign({}, (input.frameMetrics !== undefined &&
|
|
64
64
|
input.frameMetrics !== null && { frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context) })));
|
|
65
|
-
return [2
|
|
65
|
+
return [2, new __HttpRequest({
|
|
66
66
|
protocol: protocol,
|
|
67
67
|
hostname: hostname,
|
|
68
68
|
port: port,
|
|
@@ -79,7 +79,7 @@ export var serializeAws_restJson1ConfigureAgentCommand = function (input, contex
|
|
|
79
79
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
80
80
|
return __generator(this, function (_c) {
|
|
81
81
|
switch (_c.label) {
|
|
82
|
-
case 0: return [4
|
|
82
|
+
case 0: return [4, context.endpoint()];
|
|
83
83
|
case 1:
|
|
84
84
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
85
85
|
headers = {
|
|
@@ -100,7 +100,7 @@ export var serializeAws_restJson1ConfigureAgentCommand = function (input, contex
|
|
|
100
100
|
body = JSON.stringify(__assign(__assign({}, (input.fleetInstanceId !== undefined &&
|
|
101
101
|
input.fleetInstanceId !== null && { fleetInstanceId: input.fleetInstanceId })), (input.metadata !== undefined &&
|
|
102
102
|
input.metadata !== null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) })));
|
|
103
|
-
return [2
|
|
103
|
+
return [2, new __HttpRequest({
|
|
104
104
|
protocol: protocol,
|
|
105
105
|
hostname: hostname,
|
|
106
106
|
port: port,
|
|
@@ -116,7 +116,7 @@ export var serializeAws_restJson1CreateProfilingGroupCommand = function (input,
|
|
|
116
116
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
117
117
|
return __generator(this, function (_c) {
|
|
118
118
|
switch (_c.label) {
|
|
119
|
-
case 0: return [4
|
|
119
|
+
case 0: return [4, context.endpoint()];
|
|
120
120
|
case 1:
|
|
121
121
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
122
122
|
headers = {
|
|
@@ -131,7 +131,7 @@ export var serializeAws_restJson1CreateProfilingGroupCommand = function (input,
|
|
|
131
131
|
input.computePlatform !== null && { computePlatform: input.computePlatform })), (input.profilingGroupName !== undefined &&
|
|
132
132
|
input.profilingGroupName !== null && { profilingGroupName: input.profilingGroupName })), (input.tags !== undefined &&
|
|
133
133
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
134
|
-
return [2
|
|
134
|
+
return [2, new __HttpRequest({
|
|
135
135
|
protocol: protocol,
|
|
136
136
|
hostname: hostname,
|
|
137
137
|
port: port,
|
|
@@ -148,7 +148,7 @@ export var serializeAws_restJson1DeleteProfilingGroupCommand = function (input,
|
|
|
148
148
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
149
149
|
return __generator(this, function (_c) {
|
|
150
150
|
switch (_c.label) {
|
|
151
|
-
case 0: return [4
|
|
151
|
+
case 0: return [4, context.endpoint()];
|
|
152
152
|
case 1:
|
|
153
153
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
154
154
|
headers = {};
|
|
@@ -163,7 +163,7 @@ export var serializeAws_restJson1DeleteProfilingGroupCommand = function (input,
|
|
|
163
163
|
else {
|
|
164
164
|
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
165
165
|
}
|
|
166
|
-
return [2
|
|
166
|
+
return [2, new __HttpRequest({
|
|
167
167
|
protocol: protocol,
|
|
168
168
|
hostname: hostname,
|
|
169
169
|
port: port,
|
|
@@ -179,7 +179,7 @@ export var serializeAws_restJson1DescribeProfilingGroupCommand = function (input
|
|
|
179
179
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
180
180
|
return __generator(this, function (_c) {
|
|
181
181
|
switch (_c.label) {
|
|
182
|
-
case 0: return [4
|
|
182
|
+
case 0: return [4, context.endpoint()];
|
|
183
183
|
case 1:
|
|
184
184
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
185
185
|
headers = {};
|
|
@@ -194,7 +194,7 @@ export var serializeAws_restJson1DescribeProfilingGroupCommand = function (input
|
|
|
194
194
|
else {
|
|
195
195
|
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
196
196
|
}
|
|
197
|
-
return [2
|
|
197
|
+
return [2, new __HttpRequest({
|
|
198
198
|
protocol: protocol,
|
|
199
199
|
hostname: hostname,
|
|
200
200
|
port: port,
|
|
@@ -210,13 +210,13 @@ export var serializeAws_restJson1GetFindingsReportAccountSummaryCommand = functi
|
|
|
210
210
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
211
211
|
return __generator(this, function (_c) {
|
|
212
212
|
switch (_c.label) {
|
|
213
|
-
case 0: return [4
|
|
213
|
+
case 0: return [4, context.endpoint()];
|
|
214
214
|
case 1:
|
|
215
215
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
216
216
|
headers = {};
|
|
217
217
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/internal/findingsReports";
|
|
218
218
|
query = __assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.dailyReportsOnly !== undefined && { dailyReportsOnly: input.dailyReportsOnly.toString() }));
|
|
219
|
-
return [2
|
|
219
|
+
return [2, new __HttpRequest({
|
|
220
220
|
protocol: protocol,
|
|
221
221
|
hostname: hostname,
|
|
222
222
|
port: port,
|
|
@@ -233,7 +233,7 @@ export var serializeAws_restJson1GetNotificationConfigurationCommand = function
|
|
|
233
233
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
234
234
|
return __generator(this, function (_c) {
|
|
235
235
|
switch (_c.label) {
|
|
236
|
-
case 0: return [4
|
|
236
|
+
case 0: return [4, context.endpoint()];
|
|
237
237
|
case 1:
|
|
238
238
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
239
239
|
headers = {};
|
|
@@ -249,7 +249,7 @@ export var serializeAws_restJson1GetNotificationConfigurationCommand = function
|
|
|
249
249
|
else {
|
|
250
250
|
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
251
251
|
}
|
|
252
|
-
return [2
|
|
252
|
+
return [2, new __HttpRequest({
|
|
253
253
|
protocol: protocol,
|
|
254
254
|
hostname: hostname,
|
|
255
255
|
port: port,
|
|
@@ -265,7 +265,7 @@ export var serializeAws_restJson1GetPolicyCommand = function (input, context) {
|
|
|
265
265
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
266
266
|
return __generator(this, function (_c) {
|
|
267
267
|
switch (_c.label) {
|
|
268
|
-
case 0: return [4
|
|
268
|
+
case 0: return [4, context.endpoint()];
|
|
269
269
|
case 1:
|
|
270
270
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
271
271
|
headers = {};
|
|
@@ -281,7 +281,7 @@ export var serializeAws_restJson1GetPolicyCommand = function (input, context) {
|
|
|
281
281
|
else {
|
|
282
282
|
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
283
283
|
}
|
|
284
|
-
return [2
|
|
284
|
+
return [2, new __HttpRequest({
|
|
285
285
|
protocol: protocol,
|
|
286
286
|
hostname: hostname,
|
|
287
287
|
port: port,
|
|
@@ -297,7 +297,7 @@ export var serializeAws_restJson1GetProfileCommand = function (input, context) {
|
|
|
297
297
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
298
298
|
return __generator(this, function (_c) {
|
|
299
299
|
switch (_c.label) {
|
|
300
|
-
case 0: return [4
|
|
300
|
+
case 0: return [4, context.endpoint()];
|
|
301
301
|
case 1:
|
|
302
302
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
303
303
|
headers = __assign({}, (isSerializableHeaderValue(input.accept) && { accept: input.accept }));
|
|
@@ -314,7 +314,7 @@ export var serializeAws_restJson1GetProfileCommand = function (input, context) {
|
|
|
314
314
|
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
315
315
|
}
|
|
316
316
|
query = __assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.period !== undefined && { period: input.period })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.maxDepth !== undefined && { maxDepth: input.maxDepth.toString() }));
|
|
317
|
-
return [2
|
|
317
|
+
return [2, new __HttpRequest({
|
|
318
318
|
protocol: protocol,
|
|
319
319
|
hostname: hostname,
|
|
320
320
|
port: port,
|
|
@@ -331,7 +331,7 @@ export var serializeAws_restJson1GetRecommendationsCommand = function (input, co
|
|
|
331
331
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
332
332
|
return __generator(this, function (_c) {
|
|
333
333
|
switch (_c.label) {
|
|
334
|
-
case 0: return [4
|
|
334
|
+
case 0: return [4, context.endpoint()];
|
|
335
335
|
case 1:
|
|
336
336
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
337
337
|
headers = {};
|
|
@@ -348,7 +348,7 @@ export var serializeAws_restJson1GetRecommendationsCommand = function (input, co
|
|
|
348
348
|
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
349
349
|
}
|
|
350
350
|
query = __assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.locale !== undefined && { locale: input.locale }));
|
|
351
|
-
return [2
|
|
351
|
+
return [2, new __HttpRequest({
|
|
352
352
|
protocol: protocol,
|
|
353
353
|
hostname: hostname,
|
|
354
354
|
port: port,
|
|
@@ -365,7 +365,7 @@ export var serializeAws_restJson1ListFindingsReportsCommand = function (input, c
|
|
|
365
365
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
366
366
|
return __generator(this, function (_c) {
|
|
367
367
|
switch (_c.label) {
|
|
368
|
-
case 0: return [4
|
|
368
|
+
case 0: return [4, context.endpoint()];
|
|
369
369
|
case 1:
|
|
370
370
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
371
371
|
headers = {};
|
|
@@ -382,7 +382,7 @@ export var serializeAws_restJson1ListFindingsReportsCommand = function (input, c
|
|
|
382
382
|
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
383
383
|
}
|
|
384
384
|
query = __assign(__assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.dailyReportsOnly !== undefined && { dailyReportsOnly: input.dailyReportsOnly.toString() }));
|
|
385
|
-
return [2
|
|
385
|
+
return [2, new __HttpRequest({
|
|
386
386
|
protocol: protocol,
|
|
387
387
|
hostname: hostname,
|
|
388
388
|
port: port,
|
|
@@ -399,7 +399,7 @@ export var serializeAws_restJson1ListProfileTimesCommand = function (input, cont
|
|
|
399
399
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
400
400
|
return __generator(this, function (_c) {
|
|
401
401
|
switch (_c.label) {
|
|
402
|
-
case 0: return [4
|
|
402
|
+
case 0: return [4, context.endpoint()];
|
|
403
403
|
case 1:
|
|
404
404
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
405
405
|
headers = {};
|
|
@@ -416,7 +416,7 @@ export var serializeAws_restJson1ListProfileTimesCommand = function (input, cont
|
|
|
416
416
|
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
417
417
|
}
|
|
418
418
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.period !== undefined && { period: input.period })), (input.orderBy !== undefined && { orderBy: input.orderBy })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
419
|
-
return [2
|
|
419
|
+
return [2, new __HttpRequest({
|
|
420
420
|
protocol: protocol,
|
|
421
421
|
hostname: hostname,
|
|
422
422
|
port: port,
|
|
@@ -433,13 +433,13 @@ export var serializeAws_restJson1ListProfilingGroupsCommand = function (input, c
|
|
|
433
433
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
434
434
|
return __generator(this, function (_c) {
|
|
435
435
|
switch (_c.label) {
|
|
436
|
-
case 0: return [4
|
|
436
|
+
case 0: return [4, context.endpoint()];
|
|
437
437
|
case 1:
|
|
438
438
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
439
439
|
headers = {};
|
|
440
440
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profilingGroups";
|
|
441
441
|
query = __assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.includeDescription !== undefined && { includeDescription: input.includeDescription.toString() }));
|
|
442
|
-
return [2
|
|
442
|
+
return [2, new __HttpRequest({
|
|
443
443
|
protocol: protocol,
|
|
444
444
|
hostname: hostname,
|
|
445
445
|
port: port,
|
|
@@ -456,7 +456,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
456
456
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
457
457
|
return __generator(this, function (_c) {
|
|
458
458
|
switch (_c.label) {
|
|
459
|
-
case 0: return [4
|
|
459
|
+
case 0: return [4, context.endpoint()];
|
|
460
460
|
case 1:
|
|
461
461
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
462
462
|
headers = {};
|
|
@@ -471,7 +471,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
471
471
|
else {
|
|
472
472
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
473
473
|
}
|
|
474
|
-
return [2
|
|
474
|
+
return [2, new __HttpRequest({
|
|
475
475
|
protocol: protocol,
|
|
476
476
|
hostname: hostname,
|
|
477
477
|
port: port,
|
|
@@ -487,7 +487,7 @@ export var serializeAws_restJson1PostAgentProfileCommand = function (input, cont
|
|
|
487
487
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
488
488
|
return __generator(this, function (_c) {
|
|
489
489
|
switch (_c.label) {
|
|
490
|
-
case 0: return [4
|
|
490
|
+
case 0: return [4, context.endpoint()];
|
|
491
491
|
case 1:
|
|
492
492
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
493
493
|
headers = __assign({ "content-type": "application/octet-stream" }, (isSerializableHeaderValue(input.contentType) && { "content-type": input.contentType }));
|
|
@@ -507,7 +507,7 @@ export var serializeAws_restJson1PostAgentProfileCommand = function (input, cont
|
|
|
507
507
|
if (input.agentProfile !== undefined) {
|
|
508
508
|
body = input.agentProfile;
|
|
509
509
|
}
|
|
510
|
-
return [2
|
|
510
|
+
return [2, new __HttpRequest({
|
|
511
511
|
protocol: protocol,
|
|
512
512
|
hostname: hostname,
|
|
513
513
|
port: port,
|
|
@@ -524,7 +524,7 @@ export var serializeAws_restJson1PutPermissionCommand = function (input, context
|
|
|
524
524
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
525
525
|
return __generator(this, function (_c) {
|
|
526
526
|
switch (_c.label) {
|
|
527
|
-
case 0: return [4
|
|
527
|
+
case 0: return [4, context.endpoint()];
|
|
528
528
|
case 1:
|
|
529
529
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
530
530
|
headers = {
|
|
@@ -554,7 +554,7 @@ export var serializeAws_restJson1PutPermissionCommand = function (input, context
|
|
|
554
554
|
}
|
|
555
555
|
body = JSON.stringify(__assign(__assign({}, (input.principals !== undefined &&
|
|
556
556
|
input.principals !== null && { principals: serializeAws_restJson1Principals(input.principals, context) })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId })));
|
|
557
|
-
return [2
|
|
557
|
+
return [2, new __HttpRequest({
|
|
558
558
|
protocol: protocol,
|
|
559
559
|
hostname: hostname,
|
|
560
560
|
port: port,
|
|
@@ -570,7 +570,7 @@ export var serializeAws_restJson1RemoveNotificationChannelCommand = function (in
|
|
|
570
570
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
571
571
|
return __generator(this, function (_c) {
|
|
572
572
|
switch (_c.label) {
|
|
573
|
-
case 0: return [4
|
|
573
|
+
case 0: return [4, context.endpoint()];
|
|
574
574
|
case 1:
|
|
575
575
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
576
576
|
headers = {};
|
|
@@ -596,7 +596,7 @@ export var serializeAws_restJson1RemoveNotificationChannelCommand = function (in
|
|
|
596
596
|
else {
|
|
597
597
|
throw new Error("No value provided for input HTTP label: channelId.");
|
|
598
598
|
}
|
|
599
|
-
return [2
|
|
599
|
+
return [2, new __HttpRequest({
|
|
600
600
|
protocol: protocol,
|
|
601
601
|
hostname: hostname,
|
|
602
602
|
port: port,
|
|
@@ -612,7 +612,7 @@ export var serializeAws_restJson1RemovePermissionCommand = function (input, cont
|
|
|
612
612
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
613
613
|
return __generator(this, function (_c) {
|
|
614
614
|
switch (_c.label) {
|
|
615
|
-
case 0: return [4
|
|
615
|
+
case 0: return [4, context.endpoint()];
|
|
616
616
|
case 1:
|
|
617
617
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
618
618
|
headers = {};
|
|
@@ -639,7 +639,7 @@ export var serializeAws_restJson1RemovePermissionCommand = function (input, cont
|
|
|
639
639
|
throw new Error("No value provided for input HTTP label: actionGroup.");
|
|
640
640
|
}
|
|
641
641
|
query = __assign({}, (input.revisionId !== undefined && { revisionId: input.revisionId }));
|
|
642
|
-
return [2
|
|
642
|
+
return [2, new __HttpRequest({
|
|
643
643
|
protocol: protocol,
|
|
644
644
|
hostname: hostname,
|
|
645
645
|
port: port,
|
|
@@ -656,7 +656,7 @@ export var serializeAws_restJson1SubmitFeedbackCommand = function (input, contex
|
|
|
656
656
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
657
657
|
return __generator(this, function (_c) {
|
|
658
658
|
switch (_c.label) {
|
|
659
|
-
case 0: return [4
|
|
659
|
+
case 0: return [4, context.endpoint()];
|
|
660
660
|
case 1:
|
|
661
661
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
662
662
|
headers = {
|
|
@@ -685,7 +685,7 @@ export var serializeAws_restJson1SubmitFeedbackCommand = function (input, contex
|
|
|
685
685
|
throw new Error("No value provided for input HTTP label: anomalyInstanceId.");
|
|
686
686
|
}
|
|
687
687
|
body = JSON.stringify(__assign(__assign({}, (input.comment !== undefined && input.comment !== null && { comment: input.comment })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
688
|
-
return [2
|
|
688
|
+
return [2, new __HttpRequest({
|
|
689
689
|
protocol: protocol,
|
|
690
690
|
hostname: hostname,
|
|
691
691
|
port: port,
|
|
@@ -701,7 +701,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
701
701
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
702
702
|
return __generator(this, function (_c) {
|
|
703
703
|
switch (_c.label) {
|
|
704
|
-
case 0: return [4
|
|
704
|
+
case 0: return [4, context.endpoint()];
|
|
705
705
|
case 1:
|
|
706
706
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
707
707
|
headers = {
|
|
@@ -720,7 +720,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
720
720
|
}
|
|
721
721
|
body = JSON.stringify(__assign({}, (input.tags !== undefined &&
|
|
722
722
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
723
|
-
return [2
|
|
723
|
+
return [2, new __HttpRequest({
|
|
724
724
|
protocol: protocol,
|
|
725
725
|
hostname: hostname,
|
|
726
726
|
port: port,
|
|
@@ -736,7 +736,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
736
736
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
737
737
|
return __generator(this, function (_c) {
|
|
738
738
|
switch (_c.label) {
|
|
739
|
-
case 0: return [4
|
|
739
|
+
case 0: return [4, context.endpoint()];
|
|
740
740
|
case 1:
|
|
741
741
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
742
742
|
headers = {};
|
|
@@ -752,7 +752,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
752
752
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
753
753
|
}
|
|
754
754
|
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
755
|
-
return [2
|
|
755
|
+
return [2, new __HttpRequest({
|
|
756
756
|
protocol: protocol,
|
|
757
757
|
hostname: hostname,
|
|
758
758
|
port: port,
|
|
@@ -769,7 +769,7 @@ export var serializeAws_restJson1UpdateProfilingGroupCommand = function (input,
|
|
|
769
769
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
770
770
|
return __generator(this, function (_c) {
|
|
771
771
|
switch (_c.label) {
|
|
772
|
-
case 0: return [4
|
|
772
|
+
case 0: return [4, context.endpoint()];
|
|
773
773
|
case 1:
|
|
774
774
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
775
775
|
headers = {
|
|
@@ -790,7 +790,7 @@ export var serializeAws_restJson1UpdateProfilingGroupCommand = function (input,
|
|
|
790
790
|
input.agentOrchestrationConfig !== null && {
|
|
791
791
|
agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
|
|
792
792
|
})));
|
|
793
|
-
return [2
|
|
793
|
+
return [2, new __HttpRequest({
|
|
794
794
|
protocol: protocol,
|
|
795
795
|
hostname: hostname,
|
|
796
796
|
port: port,
|
|
@@ -808,7 +808,7 @@ export var deserializeAws_restJson1AddNotificationChannelsCommand = function (ou
|
|
|
808
808
|
switch (_c.label) {
|
|
809
809
|
case 0:
|
|
810
810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
811
|
-
return [2
|
|
811
|
+
return [2, deserializeAws_restJson1AddNotificationChannelsCommandError(output, context)];
|
|
812
812
|
}
|
|
813
813
|
contents = {
|
|
814
814
|
$metadata: deserializeMetadata(output),
|
|
@@ -816,13 +816,13 @@ export var deserializeAws_restJson1AddNotificationChannelsCommand = function (ou
|
|
|
816
816
|
};
|
|
817
817
|
_a = __expectNonNull;
|
|
818
818
|
_b = __expectObject;
|
|
819
|
-
return [4
|
|
819
|
+
return [4, parseBody(output.body, context)];
|
|
820
820
|
case 1:
|
|
821
821
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
822
822
|
if (data.notificationConfiguration !== undefined && data.notificationConfiguration !== null) {
|
|
823
823
|
contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
|
|
824
824
|
}
|
|
825
|
-
return [2
|
|
825
|
+
return [2, Promise.resolve(contents)];
|
|
826
826
|
}
|
|
827
827
|
});
|
|
828
828
|
}); };
|
|
@@ -834,63 +834,63 @@ var deserializeAws_restJson1AddNotificationChannelsCommandError = function (outp
|
|
|
834
834
|
case 0:
|
|
835
835
|
_a = [__assign({}, output)];
|
|
836
836
|
_j = {};
|
|
837
|
-
return [4
|
|
837
|
+
return [4, parseBody(output.body, context)];
|
|
838
838
|
case 1:
|
|
839
839
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
840
840
|
errorCode = "UnknownError";
|
|
841
841
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
842
|
_b = errorCode;
|
|
843
843
|
switch (_b) {
|
|
844
|
-
case "ConflictException": return [3
|
|
845
|
-
case "com.amazonaws.codeguruprofiler#ConflictException": return [3
|
|
846
|
-
case "InternalServerException": return [3
|
|
847
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
848
|
-
case "ResourceNotFoundException": return [3
|
|
849
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
850
|
-
case "ServiceQuotaExceededException": return [3
|
|
851
|
-
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException": return [3
|
|
852
|
-
case "ThrottlingException": return [3
|
|
853
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
854
|
-
case "ValidationException": return [3
|
|
855
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
856
|
-
}
|
|
857
|
-
return [3
|
|
844
|
+
case "ConflictException": return [3, 2];
|
|
845
|
+
case "com.amazonaws.codeguruprofiler#ConflictException": return [3, 2];
|
|
846
|
+
case "InternalServerException": return [3, 4];
|
|
847
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 4];
|
|
848
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
849
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 6];
|
|
850
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
851
|
+
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException": return [3, 8];
|
|
852
|
+
case "ThrottlingException": return [3, 10];
|
|
853
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 10];
|
|
854
|
+
case "ValidationException": return [3, 12];
|
|
855
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 12];
|
|
856
|
+
}
|
|
857
|
+
return [3, 14];
|
|
858
858
|
case 2:
|
|
859
859
|
_c = [{}];
|
|
860
|
-
return [4
|
|
860
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
861
861
|
case 3:
|
|
862
862
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
863
|
-
return [3
|
|
863
|
+
return [3, 15];
|
|
864
864
|
case 4:
|
|
865
865
|
_d = [{}];
|
|
866
|
-
return [4
|
|
866
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
867
867
|
case 5:
|
|
868
868
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
869
|
-
return [3
|
|
869
|
+
return [3, 15];
|
|
870
870
|
case 6:
|
|
871
871
|
_e = [{}];
|
|
872
|
-
return [4
|
|
872
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
873
873
|
case 7:
|
|
874
874
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
875
|
-
return [3
|
|
875
|
+
return [3, 15];
|
|
876
876
|
case 8:
|
|
877
877
|
_f = [{}];
|
|
878
|
-
return [4
|
|
878
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
879
879
|
case 9:
|
|
880
880
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
881
|
-
return [3
|
|
881
|
+
return [3, 15];
|
|
882
882
|
case 10:
|
|
883
883
|
_g = [{}];
|
|
884
|
-
return [4
|
|
884
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
885
885
|
case 11:
|
|
886
886
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
887
|
-
return [3
|
|
887
|
+
return [3, 15];
|
|
888
888
|
case 12:
|
|
889
889
|
_h = [{}];
|
|
890
|
-
return [4
|
|
890
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
891
891
|
case 13:
|
|
892
892
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
893
|
-
return [3
|
|
893
|
+
return [3, 15];
|
|
894
894
|
case 14:
|
|
895
895
|
parsedBody = parsedOutput.body;
|
|
896
896
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -900,7 +900,7 @@ var deserializeAws_restJson1AddNotificationChannelsCommandError = function (outp
|
|
|
900
900
|
message = response.message || response.Message || errorCode;
|
|
901
901
|
response.message = message;
|
|
902
902
|
delete response.Message;
|
|
903
|
-
return [2
|
|
903
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
904
904
|
}
|
|
905
905
|
});
|
|
906
906
|
}); };
|
|
@@ -910,7 +910,7 @@ export var deserializeAws_restJson1BatchGetFrameMetricDataCommand = function (ou
|
|
|
910
910
|
switch (_c.label) {
|
|
911
911
|
case 0:
|
|
912
912
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
|
-
return [2
|
|
913
|
+
return [2, deserializeAws_restJson1BatchGetFrameMetricDataCommandError(output, context)];
|
|
914
914
|
}
|
|
915
915
|
contents = {
|
|
916
916
|
$metadata: deserializeMetadata(output),
|
|
@@ -923,7 +923,7 @@ export var deserializeAws_restJson1BatchGetFrameMetricDataCommand = function (ou
|
|
|
923
923
|
};
|
|
924
924
|
_a = __expectNonNull;
|
|
925
925
|
_b = __expectObject;
|
|
926
|
-
return [4
|
|
926
|
+
return [4, parseBody(output.body, context)];
|
|
927
927
|
case 1:
|
|
928
928
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
929
929
|
if (data.endTime !== undefined && data.endTime !== null) {
|
|
@@ -944,7 +944,7 @@ export var deserializeAws_restJson1BatchGetFrameMetricDataCommand = function (ou
|
|
|
944
944
|
if (data.unprocessedEndTimes !== undefined && data.unprocessedEndTimes !== null) {
|
|
945
945
|
contents.unprocessedEndTimes = deserializeAws_restJson1UnprocessedEndTimeMap(data.unprocessedEndTimes, context);
|
|
946
946
|
}
|
|
947
|
-
return [2
|
|
947
|
+
return [2, Promise.resolve(contents)];
|
|
948
948
|
}
|
|
949
949
|
});
|
|
950
950
|
}); };
|
|
@@ -956,47 +956,47 @@ var deserializeAws_restJson1BatchGetFrameMetricDataCommandError = function (outp
|
|
|
956
956
|
case 0:
|
|
957
957
|
_a = [__assign({}, output)];
|
|
958
958
|
_g = {};
|
|
959
|
-
return [4
|
|
959
|
+
return [4, parseBody(output.body, context)];
|
|
960
960
|
case 1:
|
|
961
961
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
962
962
|
errorCode = "UnknownError";
|
|
963
963
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
964
|
_b = errorCode;
|
|
965
965
|
switch (_b) {
|
|
966
|
-
case "InternalServerException": return [3
|
|
967
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
968
|
-
case "ResourceNotFoundException": return [3
|
|
969
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
970
|
-
case "ThrottlingException": return [3
|
|
971
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
972
|
-
case "ValidationException": return [3
|
|
973
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
974
|
-
}
|
|
975
|
-
return [3
|
|
966
|
+
case "InternalServerException": return [3, 2];
|
|
967
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
968
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
969
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
970
|
+
case "ThrottlingException": return [3, 6];
|
|
971
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
972
|
+
case "ValidationException": return [3, 8];
|
|
973
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
974
|
+
}
|
|
975
|
+
return [3, 10];
|
|
976
976
|
case 2:
|
|
977
977
|
_c = [{}];
|
|
978
|
-
return [4
|
|
978
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
979
979
|
case 3:
|
|
980
980
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
981
|
-
return [3
|
|
981
|
+
return [3, 11];
|
|
982
982
|
case 4:
|
|
983
983
|
_d = [{}];
|
|
984
|
-
return [4
|
|
984
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
985
985
|
case 5:
|
|
986
986
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
987
|
-
return [3
|
|
987
|
+
return [3, 11];
|
|
988
988
|
case 6:
|
|
989
989
|
_e = [{}];
|
|
990
|
-
return [4
|
|
990
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
991
991
|
case 7:
|
|
992
992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
993
|
-
return [3
|
|
993
|
+
return [3, 11];
|
|
994
994
|
case 8:
|
|
995
995
|
_f = [{}];
|
|
996
|
-
return [4
|
|
996
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
997
997
|
case 9:
|
|
998
998
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
999
|
-
return [3
|
|
999
|
+
return [3, 11];
|
|
1000
1000
|
case 10:
|
|
1001
1001
|
parsedBody = parsedOutput.body;
|
|
1002
1002
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1006,7 +1006,7 @@ var deserializeAws_restJson1BatchGetFrameMetricDataCommandError = function (outp
|
|
|
1006
1006
|
message = response.message || response.Message || errorCode;
|
|
1007
1007
|
response.message = message;
|
|
1008
1008
|
delete response.Message;
|
|
1009
|
-
return [2
|
|
1009
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
1012
1012
|
}); };
|
|
@@ -1016,18 +1016,18 @@ export var deserializeAws_restJson1ConfigureAgentCommand = function (output, con
|
|
|
1016
1016
|
switch (_b.label) {
|
|
1017
1017
|
case 0:
|
|
1018
1018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return [2
|
|
1019
|
+
return [2, deserializeAws_restJson1ConfigureAgentCommandError(output, context)];
|
|
1020
1020
|
}
|
|
1021
1021
|
contents = {
|
|
1022
1022
|
$metadata: deserializeMetadata(output),
|
|
1023
1023
|
configuration: undefined,
|
|
1024
1024
|
};
|
|
1025
1025
|
_a = __expectObject;
|
|
1026
|
-
return [4
|
|
1026
|
+
return [4, parseBody(output.body, context)];
|
|
1027
1027
|
case 1:
|
|
1028
1028
|
data = _a.apply(void 0, [_b.sent()]);
|
|
1029
1029
|
contents.configuration = deserializeAws_restJson1AgentConfiguration(data, context);
|
|
1030
|
-
return [2
|
|
1030
|
+
return [2, Promise.resolve(contents)];
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
1033
|
}); };
|
|
@@ -1039,47 +1039,47 @@ var deserializeAws_restJson1ConfigureAgentCommandError = function (output, conte
|
|
|
1039
1039
|
case 0:
|
|
1040
1040
|
_a = [__assign({}, output)];
|
|
1041
1041
|
_g = {};
|
|
1042
|
-
return [4
|
|
1042
|
+
return [4, parseBody(output.body, context)];
|
|
1043
1043
|
case 1:
|
|
1044
1044
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1045
1045
|
errorCode = "UnknownError";
|
|
1046
1046
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
1047
|
_b = errorCode;
|
|
1048
1048
|
switch (_b) {
|
|
1049
|
-
case "InternalServerException": return [3
|
|
1050
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1051
|
-
case "ResourceNotFoundException": return [3
|
|
1052
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1053
|
-
case "ThrottlingException": return [3
|
|
1054
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1055
|
-
case "ValidationException": return [3
|
|
1056
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1057
|
-
}
|
|
1058
|
-
return [3
|
|
1049
|
+
case "InternalServerException": return [3, 2];
|
|
1050
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1051
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1052
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
1053
|
+
case "ThrottlingException": return [3, 6];
|
|
1054
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
1055
|
+
case "ValidationException": return [3, 8];
|
|
1056
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
1057
|
+
}
|
|
1058
|
+
return [3, 10];
|
|
1059
1059
|
case 2:
|
|
1060
1060
|
_c = [{}];
|
|
1061
|
-
return [4
|
|
1061
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1062
1062
|
case 3:
|
|
1063
1063
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1064
|
-
return [3
|
|
1064
|
+
return [3, 11];
|
|
1065
1065
|
case 4:
|
|
1066
1066
|
_d = [{}];
|
|
1067
|
-
return [4
|
|
1067
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1068
1068
|
case 5:
|
|
1069
1069
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1070
|
-
return [3
|
|
1070
|
+
return [3, 11];
|
|
1071
1071
|
case 6:
|
|
1072
1072
|
_e = [{}];
|
|
1073
|
-
return [4
|
|
1073
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1074
1074
|
case 7:
|
|
1075
1075
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1076
|
-
return [3
|
|
1076
|
+
return [3, 11];
|
|
1077
1077
|
case 8:
|
|
1078
1078
|
_f = [{}];
|
|
1079
|
-
return [4
|
|
1079
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1080
1080
|
case 9:
|
|
1081
1081
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1082
|
-
return [3
|
|
1082
|
+
return [3, 11];
|
|
1083
1083
|
case 10:
|
|
1084
1084
|
parsedBody = parsedOutput.body;
|
|
1085
1085
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1089,7 +1089,7 @@ var deserializeAws_restJson1ConfigureAgentCommandError = function (output, conte
|
|
|
1089
1089
|
message = response.message || response.Message || errorCode;
|
|
1090
1090
|
response.message = message;
|
|
1091
1091
|
delete response.Message;
|
|
1092
|
-
return [2
|
|
1092
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1093
1093
|
}
|
|
1094
1094
|
});
|
|
1095
1095
|
}); };
|
|
@@ -1099,18 +1099,18 @@ export var deserializeAws_restJson1CreateProfilingGroupCommand = function (outpu
|
|
|
1099
1099
|
switch (_b.label) {
|
|
1100
1100
|
case 0:
|
|
1101
1101
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1102
|
-
return [2
|
|
1102
|
+
return [2, deserializeAws_restJson1CreateProfilingGroupCommandError(output, context)];
|
|
1103
1103
|
}
|
|
1104
1104
|
contents = {
|
|
1105
1105
|
$metadata: deserializeMetadata(output),
|
|
1106
1106
|
profilingGroup: undefined,
|
|
1107
1107
|
};
|
|
1108
1108
|
_a = __expectObject;
|
|
1109
|
-
return [4
|
|
1109
|
+
return [4, parseBody(output.body, context)];
|
|
1110
1110
|
case 1:
|
|
1111
1111
|
data = _a.apply(void 0, [_b.sent()]);
|
|
1112
1112
|
contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
|
|
1113
|
-
return [2
|
|
1113
|
+
return [2, Promise.resolve(contents)];
|
|
1114
1114
|
}
|
|
1115
1115
|
});
|
|
1116
1116
|
}); };
|
|
@@ -1122,55 +1122,55 @@ var deserializeAws_restJson1CreateProfilingGroupCommandError = function (output,
|
|
|
1122
1122
|
case 0:
|
|
1123
1123
|
_a = [__assign({}, output)];
|
|
1124
1124
|
_h = {};
|
|
1125
|
-
return [4
|
|
1125
|
+
return [4, parseBody(output.body, context)];
|
|
1126
1126
|
case 1:
|
|
1127
1127
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1128
1128
|
errorCode = "UnknownError";
|
|
1129
1129
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1130
|
_b = errorCode;
|
|
1131
1131
|
switch (_b) {
|
|
1132
|
-
case "ConflictException": return [3
|
|
1133
|
-
case "com.amazonaws.codeguruprofiler#ConflictException": return [3
|
|
1134
|
-
case "InternalServerException": return [3
|
|
1135
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1136
|
-
case "ServiceQuotaExceededException": return [3
|
|
1137
|
-
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException": return [3
|
|
1138
|
-
case "ThrottlingException": return [3
|
|
1139
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1140
|
-
case "ValidationException": return [3
|
|
1141
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1142
|
-
}
|
|
1143
|
-
return [3
|
|
1132
|
+
case "ConflictException": return [3, 2];
|
|
1133
|
+
case "com.amazonaws.codeguruprofiler#ConflictException": return [3, 2];
|
|
1134
|
+
case "InternalServerException": return [3, 4];
|
|
1135
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 4];
|
|
1136
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
1137
|
+
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException": return [3, 6];
|
|
1138
|
+
case "ThrottlingException": return [3, 8];
|
|
1139
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 8];
|
|
1140
|
+
case "ValidationException": return [3, 10];
|
|
1141
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 10];
|
|
1142
|
+
}
|
|
1143
|
+
return [3, 12];
|
|
1144
1144
|
case 2:
|
|
1145
1145
|
_c = [{}];
|
|
1146
|
-
return [4
|
|
1146
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1147
1147
|
case 3:
|
|
1148
1148
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1149
|
-
return [3
|
|
1149
|
+
return [3, 13];
|
|
1150
1150
|
case 4:
|
|
1151
1151
|
_d = [{}];
|
|
1152
|
-
return [4
|
|
1152
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1153
1153
|
case 5:
|
|
1154
1154
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1155
|
-
return [3
|
|
1155
|
+
return [3, 13];
|
|
1156
1156
|
case 6:
|
|
1157
1157
|
_e = [{}];
|
|
1158
|
-
return [4
|
|
1158
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1159
1159
|
case 7:
|
|
1160
1160
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1161
|
-
return [3
|
|
1161
|
+
return [3, 13];
|
|
1162
1162
|
case 8:
|
|
1163
1163
|
_f = [{}];
|
|
1164
|
-
return [4
|
|
1164
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1165
1165
|
case 9:
|
|
1166
1166
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1167
|
-
return [3
|
|
1167
|
+
return [3, 13];
|
|
1168
1168
|
case 10:
|
|
1169
1169
|
_g = [{}];
|
|
1170
|
-
return [4
|
|
1170
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1171
1171
|
case 11:
|
|
1172
1172
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1173
|
-
return [3
|
|
1173
|
+
return [3, 13];
|
|
1174
1174
|
case 12:
|
|
1175
1175
|
parsedBody = parsedOutput.body;
|
|
1176
1176
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1180,7 +1180,7 @@ var deserializeAws_restJson1CreateProfilingGroupCommandError = function (output,
|
|
|
1180
1180
|
message = response.message || response.Message || errorCode;
|
|
1181
1181
|
response.message = message;
|
|
1182
1182
|
delete response.Message;
|
|
1183
|
-
return [2
|
|
1183
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1184
1184
|
}
|
|
1185
1185
|
});
|
|
1186
1186
|
}); };
|
|
@@ -1190,15 +1190,15 @@ export var deserializeAws_restJson1DeleteProfilingGroupCommand = function (outpu
|
|
|
1190
1190
|
switch (_a.label) {
|
|
1191
1191
|
case 0:
|
|
1192
1192
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1193
|
-
return [2
|
|
1193
|
+
return [2, deserializeAws_restJson1DeleteProfilingGroupCommandError(output, context)];
|
|
1194
1194
|
}
|
|
1195
1195
|
contents = {
|
|
1196
1196
|
$metadata: deserializeMetadata(output),
|
|
1197
1197
|
};
|
|
1198
|
-
return [4
|
|
1198
|
+
return [4, collectBody(output.body, context)];
|
|
1199
1199
|
case 1:
|
|
1200
1200
|
_a.sent();
|
|
1201
|
-
return [2
|
|
1201
|
+
return [2, Promise.resolve(contents)];
|
|
1202
1202
|
}
|
|
1203
1203
|
});
|
|
1204
1204
|
}); };
|
|
@@ -1210,55 +1210,55 @@ var deserializeAws_restJson1DeleteProfilingGroupCommandError = function (output,
|
|
|
1210
1210
|
case 0:
|
|
1211
1211
|
_a = [__assign({}, output)];
|
|
1212
1212
|
_h = {};
|
|
1213
|
-
return [4
|
|
1213
|
+
return [4, parseBody(output.body, context)];
|
|
1214
1214
|
case 1:
|
|
1215
1215
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1216
1216
|
errorCode = "UnknownError";
|
|
1217
1217
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1218
1218
|
_b = errorCode;
|
|
1219
1219
|
switch (_b) {
|
|
1220
|
-
case "ConflictException": return [3
|
|
1221
|
-
case "com.amazonaws.codeguruprofiler#ConflictException": return [3
|
|
1222
|
-
case "InternalServerException": return [3
|
|
1223
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1224
|
-
case "ResourceNotFoundException": return [3
|
|
1225
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1226
|
-
case "ThrottlingException": return [3
|
|
1227
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1228
|
-
case "ValidationException": return [3
|
|
1229
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1230
|
-
}
|
|
1231
|
-
return [3
|
|
1220
|
+
case "ConflictException": return [3, 2];
|
|
1221
|
+
case "com.amazonaws.codeguruprofiler#ConflictException": return [3, 2];
|
|
1222
|
+
case "InternalServerException": return [3, 4];
|
|
1223
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 4];
|
|
1224
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1225
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 6];
|
|
1226
|
+
case "ThrottlingException": return [3, 8];
|
|
1227
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 8];
|
|
1228
|
+
case "ValidationException": return [3, 10];
|
|
1229
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 10];
|
|
1230
|
+
}
|
|
1231
|
+
return [3, 12];
|
|
1232
1232
|
case 2:
|
|
1233
1233
|
_c = [{}];
|
|
1234
|
-
return [4
|
|
1234
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1235
1235
|
case 3:
|
|
1236
1236
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1237
|
-
return [3
|
|
1237
|
+
return [3, 13];
|
|
1238
1238
|
case 4:
|
|
1239
1239
|
_d = [{}];
|
|
1240
|
-
return [4
|
|
1240
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1241
1241
|
case 5:
|
|
1242
1242
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1243
|
-
return [3
|
|
1243
|
+
return [3, 13];
|
|
1244
1244
|
case 6:
|
|
1245
1245
|
_e = [{}];
|
|
1246
|
-
return [4
|
|
1246
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1247
1247
|
case 7:
|
|
1248
1248
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1249
|
-
return [3
|
|
1249
|
+
return [3, 13];
|
|
1250
1250
|
case 8:
|
|
1251
1251
|
_f = [{}];
|
|
1252
|
-
return [4
|
|
1252
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1253
1253
|
case 9:
|
|
1254
1254
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1255
|
-
return [3
|
|
1255
|
+
return [3, 13];
|
|
1256
1256
|
case 10:
|
|
1257
1257
|
_g = [{}];
|
|
1258
|
-
return [4
|
|
1258
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1259
1259
|
case 11:
|
|
1260
1260
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1261
|
-
return [3
|
|
1261
|
+
return [3, 13];
|
|
1262
1262
|
case 12:
|
|
1263
1263
|
parsedBody = parsedOutput.body;
|
|
1264
1264
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1268,7 +1268,7 @@ var deserializeAws_restJson1DeleteProfilingGroupCommandError = function (output,
|
|
|
1268
1268
|
message = response.message || response.Message || errorCode;
|
|
1269
1269
|
response.message = message;
|
|
1270
1270
|
delete response.Message;
|
|
1271
|
-
return [2
|
|
1271
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1272
1272
|
}
|
|
1273
1273
|
});
|
|
1274
1274
|
}); };
|
|
@@ -1278,18 +1278,18 @@ export var deserializeAws_restJson1DescribeProfilingGroupCommand = function (out
|
|
|
1278
1278
|
switch (_b.label) {
|
|
1279
1279
|
case 0:
|
|
1280
1280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1281
|
-
return [2
|
|
1281
|
+
return [2, deserializeAws_restJson1DescribeProfilingGroupCommandError(output, context)];
|
|
1282
1282
|
}
|
|
1283
1283
|
contents = {
|
|
1284
1284
|
$metadata: deserializeMetadata(output),
|
|
1285
1285
|
profilingGroup: undefined,
|
|
1286
1286
|
};
|
|
1287
1287
|
_a = __expectObject;
|
|
1288
|
-
return [4
|
|
1288
|
+
return [4, parseBody(output.body, context)];
|
|
1289
1289
|
case 1:
|
|
1290
1290
|
data = _a.apply(void 0, [_b.sent()]);
|
|
1291
1291
|
contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
|
|
1292
|
-
return [2
|
|
1292
|
+
return [2, Promise.resolve(contents)];
|
|
1293
1293
|
}
|
|
1294
1294
|
});
|
|
1295
1295
|
}); };
|
|
@@ -1301,47 +1301,47 @@ var deserializeAws_restJson1DescribeProfilingGroupCommandError = function (outpu
|
|
|
1301
1301
|
case 0:
|
|
1302
1302
|
_a = [__assign({}, output)];
|
|
1303
1303
|
_g = {};
|
|
1304
|
-
return [4
|
|
1304
|
+
return [4, parseBody(output.body, context)];
|
|
1305
1305
|
case 1:
|
|
1306
1306
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1307
1307
|
errorCode = "UnknownError";
|
|
1308
1308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
1309
|
_b = errorCode;
|
|
1310
1310
|
switch (_b) {
|
|
1311
|
-
case "InternalServerException": return [3
|
|
1312
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1313
|
-
case "ResourceNotFoundException": return [3
|
|
1314
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1315
|
-
case "ThrottlingException": return [3
|
|
1316
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1317
|
-
case "ValidationException": return [3
|
|
1318
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1319
|
-
}
|
|
1320
|
-
return [3
|
|
1311
|
+
case "InternalServerException": return [3, 2];
|
|
1312
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1313
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1314
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
1315
|
+
case "ThrottlingException": return [3, 6];
|
|
1316
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
1317
|
+
case "ValidationException": return [3, 8];
|
|
1318
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
1319
|
+
}
|
|
1320
|
+
return [3, 10];
|
|
1321
1321
|
case 2:
|
|
1322
1322
|
_c = [{}];
|
|
1323
|
-
return [4
|
|
1323
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1324
1324
|
case 3:
|
|
1325
1325
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1326
|
-
return [3
|
|
1326
|
+
return [3, 11];
|
|
1327
1327
|
case 4:
|
|
1328
1328
|
_d = [{}];
|
|
1329
|
-
return [4
|
|
1329
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1330
1330
|
case 5:
|
|
1331
1331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1332
|
-
return [3
|
|
1332
|
+
return [3, 11];
|
|
1333
1333
|
case 6:
|
|
1334
1334
|
_e = [{}];
|
|
1335
|
-
return [4
|
|
1335
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1336
1336
|
case 7:
|
|
1337
1337
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1338
|
-
return [3
|
|
1338
|
+
return [3, 11];
|
|
1339
1339
|
case 8:
|
|
1340
1340
|
_f = [{}];
|
|
1341
|
-
return [4
|
|
1341
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1342
1342
|
case 9:
|
|
1343
1343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1344
|
-
return [3
|
|
1344
|
+
return [3, 11];
|
|
1345
1345
|
case 10:
|
|
1346
1346
|
parsedBody = parsedOutput.body;
|
|
1347
1347
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1351,7 +1351,7 @@ var deserializeAws_restJson1DescribeProfilingGroupCommandError = function (outpu
|
|
|
1351
1351
|
message = response.message || response.Message || errorCode;
|
|
1352
1352
|
response.message = message;
|
|
1353
1353
|
delete response.Message;
|
|
1354
|
-
return [2
|
|
1354
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1355
1355
|
}
|
|
1356
1356
|
});
|
|
1357
1357
|
}); };
|
|
@@ -1361,7 +1361,7 @@ export var deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = func
|
|
|
1361
1361
|
switch (_c.label) {
|
|
1362
1362
|
case 0:
|
|
1363
1363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return [2
|
|
1364
|
+
return [2, deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError(output, context)];
|
|
1365
1365
|
}
|
|
1366
1366
|
contents = {
|
|
1367
1367
|
$metadata: deserializeMetadata(output),
|
|
@@ -1370,7 +1370,7 @@ export var deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = func
|
|
|
1370
1370
|
};
|
|
1371
1371
|
_a = __expectNonNull;
|
|
1372
1372
|
_b = __expectObject;
|
|
1373
|
-
return [4
|
|
1373
|
+
return [4, parseBody(output.body, context)];
|
|
1374
1374
|
case 1:
|
|
1375
1375
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1376
1376
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -1379,7 +1379,7 @@ export var deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = func
|
|
|
1379
1379
|
if (data.reportSummaries !== undefined && data.reportSummaries !== null) {
|
|
1380
1380
|
contents.reportSummaries = deserializeAws_restJson1FindingsReportSummaries(data.reportSummaries, context);
|
|
1381
1381
|
}
|
|
1382
|
-
return [2
|
|
1382
|
+
return [2, Promise.resolve(contents)];
|
|
1383
1383
|
}
|
|
1384
1384
|
});
|
|
1385
1385
|
}); };
|
|
@@ -1391,39 +1391,39 @@ var deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = functi
|
|
|
1391
1391
|
case 0:
|
|
1392
1392
|
_a = [__assign({}, output)];
|
|
1393
1393
|
_f = {};
|
|
1394
|
-
return [4
|
|
1394
|
+
return [4, parseBody(output.body, context)];
|
|
1395
1395
|
case 1:
|
|
1396
1396
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1397
1397
|
errorCode = "UnknownError";
|
|
1398
1398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
1399
|
_b = errorCode;
|
|
1400
1400
|
switch (_b) {
|
|
1401
|
-
case "InternalServerException": return [3
|
|
1402
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1403
|
-
case "ThrottlingException": return [3
|
|
1404
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1405
|
-
case "ValidationException": return [3
|
|
1406
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1407
|
-
}
|
|
1408
|
-
return [3
|
|
1401
|
+
case "InternalServerException": return [3, 2];
|
|
1402
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1403
|
+
case "ThrottlingException": return [3, 4];
|
|
1404
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 4];
|
|
1405
|
+
case "ValidationException": return [3, 6];
|
|
1406
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 6];
|
|
1407
|
+
}
|
|
1408
|
+
return [3, 8];
|
|
1409
1409
|
case 2:
|
|
1410
1410
|
_c = [{}];
|
|
1411
|
-
return [4
|
|
1411
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1412
1412
|
case 3:
|
|
1413
1413
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1414
|
-
return [3
|
|
1414
|
+
return [3, 9];
|
|
1415
1415
|
case 4:
|
|
1416
1416
|
_d = [{}];
|
|
1417
|
-
return [4
|
|
1417
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1418
1418
|
case 5:
|
|
1419
1419
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1420
|
-
return [3
|
|
1420
|
+
return [3, 9];
|
|
1421
1421
|
case 6:
|
|
1422
1422
|
_e = [{}];
|
|
1423
|
-
return [4
|
|
1423
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1424
1424
|
case 7:
|
|
1425
1425
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1426
|
-
return [3
|
|
1426
|
+
return [3, 9];
|
|
1427
1427
|
case 8:
|
|
1428
1428
|
parsedBody = parsedOutput.body;
|
|
1429
1429
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1433,7 +1433,7 @@ var deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = functi
|
|
|
1433
1433
|
message = response.message || response.Message || errorCode;
|
|
1434
1434
|
response.message = message;
|
|
1435
1435
|
delete response.Message;
|
|
1436
|
-
return [2
|
|
1436
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1437
1437
|
}
|
|
1438
1438
|
});
|
|
1439
1439
|
}); };
|
|
@@ -1443,7 +1443,7 @@ export var deserializeAws_restJson1GetNotificationConfigurationCommand = functio
|
|
|
1443
1443
|
switch (_c.label) {
|
|
1444
1444
|
case 0:
|
|
1445
1445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1446
|
-
return [2
|
|
1446
|
+
return [2, deserializeAws_restJson1GetNotificationConfigurationCommandError(output, context)];
|
|
1447
1447
|
}
|
|
1448
1448
|
contents = {
|
|
1449
1449
|
$metadata: deserializeMetadata(output),
|
|
@@ -1451,13 +1451,13 @@ export var deserializeAws_restJson1GetNotificationConfigurationCommand = functio
|
|
|
1451
1451
|
};
|
|
1452
1452
|
_a = __expectNonNull;
|
|
1453
1453
|
_b = __expectObject;
|
|
1454
|
-
return [4
|
|
1454
|
+
return [4, parseBody(output.body, context)];
|
|
1455
1455
|
case 1:
|
|
1456
1456
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1457
1457
|
if (data.notificationConfiguration !== undefined && data.notificationConfiguration !== null) {
|
|
1458
1458
|
contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
|
|
1459
1459
|
}
|
|
1460
|
-
return [2
|
|
1460
|
+
return [2, Promise.resolve(contents)];
|
|
1461
1461
|
}
|
|
1462
1462
|
});
|
|
1463
1463
|
}); };
|
|
@@ -1469,47 +1469,47 @@ var deserializeAws_restJson1GetNotificationConfigurationCommandError = function
|
|
|
1469
1469
|
case 0:
|
|
1470
1470
|
_a = [__assign({}, output)];
|
|
1471
1471
|
_g = {};
|
|
1472
|
-
return [4
|
|
1472
|
+
return [4, parseBody(output.body, context)];
|
|
1473
1473
|
case 1:
|
|
1474
1474
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1475
1475
|
errorCode = "UnknownError";
|
|
1476
1476
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
1477
|
_b = errorCode;
|
|
1478
1478
|
switch (_b) {
|
|
1479
|
-
case "InternalServerException": return [3
|
|
1480
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1481
|
-
case "ResourceNotFoundException": return [3
|
|
1482
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1483
|
-
case "ThrottlingException": return [3
|
|
1484
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1485
|
-
case "ValidationException": return [3
|
|
1486
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1487
|
-
}
|
|
1488
|
-
return [3
|
|
1479
|
+
case "InternalServerException": return [3, 2];
|
|
1480
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1481
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1482
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
1483
|
+
case "ThrottlingException": return [3, 6];
|
|
1484
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
1485
|
+
case "ValidationException": return [3, 8];
|
|
1486
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
1487
|
+
}
|
|
1488
|
+
return [3, 10];
|
|
1489
1489
|
case 2:
|
|
1490
1490
|
_c = [{}];
|
|
1491
|
-
return [4
|
|
1491
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1492
1492
|
case 3:
|
|
1493
1493
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1494
|
-
return [3
|
|
1494
|
+
return [3, 11];
|
|
1495
1495
|
case 4:
|
|
1496
1496
|
_d = [{}];
|
|
1497
|
-
return [4
|
|
1497
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1498
1498
|
case 5:
|
|
1499
1499
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1500
|
-
return [3
|
|
1500
|
+
return [3, 11];
|
|
1501
1501
|
case 6:
|
|
1502
1502
|
_e = [{}];
|
|
1503
|
-
return [4
|
|
1503
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1504
1504
|
case 7:
|
|
1505
1505
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1506
|
-
return [3
|
|
1506
|
+
return [3, 11];
|
|
1507
1507
|
case 8:
|
|
1508
1508
|
_f = [{}];
|
|
1509
|
-
return [4
|
|
1509
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1510
1510
|
case 9:
|
|
1511
1511
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1512
|
-
return [3
|
|
1512
|
+
return [3, 11];
|
|
1513
1513
|
case 10:
|
|
1514
1514
|
parsedBody = parsedOutput.body;
|
|
1515
1515
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1519,7 +1519,7 @@ var deserializeAws_restJson1GetNotificationConfigurationCommandError = function
|
|
|
1519
1519
|
message = response.message || response.Message || errorCode;
|
|
1520
1520
|
response.message = message;
|
|
1521
1521
|
delete response.Message;
|
|
1522
|
-
return [2
|
|
1522
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1523
1523
|
}
|
|
1524
1524
|
});
|
|
1525
1525
|
}); };
|
|
@@ -1529,7 +1529,7 @@ export var deserializeAws_restJson1GetPolicyCommand = function (output, context)
|
|
|
1529
1529
|
switch (_c.label) {
|
|
1530
1530
|
case 0:
|
|
1531
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1532
|
-
return [2
|
|
1532
|
+
return [2, deserializeAws_restJson1GetPolicyCommandError(output, context)];
|
|
1533
1533
|
}
|
|
1534
1534
|
contents = {
|
|
1535
1535
|
$metadata: deserializeMetadata(output),
|
|
@@ -1538,7 +1538,7 @@ export var deserializeAws_restJson1GetPolicyCommand = function (output, context)
|
|
|
1538
1538
|
};
|
|
1539
1539
|
_a = __expectNonNull;
|
|
1540
1540
|
_b = __expectObject;
|
|
1541
|
-
return [4
|
|
1541
|
+
return [4, parseBody(output.body, context)];
|
|
1542
1542
|
case 1:
|
|
1543
1543
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1544
1544
|
if (data.policy !== undefined && data.policy !== null) {
|
|
@@ -1547,7 +1547,7 @@ export var deserializeAws_restJson1GetPolicyCommand = function (output, context)
|
|
|
1547
1547
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
1548
1548
|
contents.revisionId = __expectString(data.revisionId);
|
|
1549
1549
|
}
|
|
1550
|
-
return [2
|
|
1550
|
+
return [2, Promise.resolve(contents)];
|
|
1551
1551
|
}
|
|
1552
1552
|
});
|
|
1553
1553
|
}); };
|
|
@@ -1559,39 +1559,39 @@ var deserializeAws_restJson1GetPolicyCommandError = function (output, context) {
|
|
|
1559
1559
|
case 0:
|
|
1560
1560
|
_a = [__assign({}, output)];
|
|
1561
1561
|
_f = {};
|
|
1562
|
-
return [4
|
|
1562
|
+
return [4, parseBody(output.body, context)];
|
|
1563
1563
|
case 1:
|
|
1564
1564
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1565
1565
|
errorCode = "UnknownError";
|
|
1566
1566
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1567
|
_b = errorCode;
|
|
1568
1568
|
switch (_b) {
|
|
1569
|
-
case "InternalServerException": return [3
|
|
1570
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1571
|
-
case "ResourceNotFoundException": return [3
|
|
1572
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1573
|
-
case "ThrottlingException": return [3
|
|
1574
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1575
|
-
}
|
|
1576
|
-
return [3
|
|
1569
|
+
case "InternalServerException": return [3, 2];
|
|
1570
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1571
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1572
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
1573
|
+
case "ThrottlingException": return [3, 6];
|
|
1574
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
1575
|
+
}
|
|
1576
|
+
return [3, 8];
|
|
1577
1577
|
case 2:
|
|
1578
1578
|
_c = [{}];
|
|
1579
|
-
return [4
|
|
1579
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1580
1580
|
case 3:
|
|
1581
1581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1582
|
-
return [3
|
|
1582
|
+
return [3, 9];
|
|
1583
1583
|
case 4:
|
|
1584
1584
|
_d = [{}];
|
|
1585
|
-
return [4
|
|
1585
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1586
1586
|
case 5:
|
|
1587
1587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3
|
|
1588
|
+
return [3, 9];
|
|
1589
1589
|
case 6:
|
|
1590
1590
|
_e = [{}];
|
|
1591
|
-
return [4
|
|
1591
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1592
1592
|
case 7:
|
|
1593
1593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
-
return [3
|
|
1594
|
+
return [3, 9];
|
|
1595
1595
|
case 8:
|
|
1596
1596
|
parsedBody = parsedOutput.body;
|
|
1597
1597
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1601,7 +1601,7 @@ var deserializeAws_restJson1GetPolicyCommandError = function (output, context) {
|
|
|
1601
1601
|
message = response.message || response.Message || errorCode;
|
|
1602
1602
|
response.message = message;
|
|
1603
1603
|
delete response.Message;
|
|
1604
|
-
return [2
|
|
1604
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1605
1605
|
}
|
|
1606
1606
|
});
|
|
1607
1607
|
}); };
|
|
@@ -1611,7 +1611,7 @@ export var deserializeAws_restJson1GetProfileCommand = function (output, context
|
|
|
1611
1611
|
switch (_a.label) {
|
|
1612
1612
|
case 0:
|
|
1613
1613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1614
|
-
return [2
|
|
1614
|
+
return [2, deserializeAws_restJson1GetProfileCommandError(output, context)];
|
|
1615
1615
|
}
|
|
1616
1616
|
contents = {
|
|
1617
1617
|
$metadata: deserializeMetadata(output),
|
|
@@ -1625,11 +1625,11 @@ export var deserializeAws_restJson1GetProfileCommand = function (output, context
|
|
|
1625
1625
|
if (output.headers["content-encoding"] !== undefined) {
|
|
1626
1626
|
contents.contentEncoding = output.headers["content-encoding"];
|
|
1627
1627
|
}
|
|
1628
|
-
return [4
|
|
1628
|
+
return [4, collectBody(output.body, context)];
|
|
1629
1629
|
case 1:
|
|
1630
1630
|
data = _a.sent();
|
|
1631
1631
|
contents.profile = data;
|
|
1632
|
-
return [2
|
|
1632
|
+
return [2, Promise.resolve(contents)];
|
|
1633
1633
|
}
|
|
1634
1634
|
});
|
|
1635
1635
|
}); };
|
|
@@ -1641,47 +1641,47 @@ var deserializeAws_restJson1GetProfileCommandError = function (output, context)
|
|
|
1641
1641
|
case 0:
|
|
1642
1642
|
_a = [__assign({}, output)];
|
|
1643
1643
|
_g = {};
|
|
1644
|
-
return [4
|
|
1644
|
+
return [4, parseBody(output.body, context)];
|
|
1645
1645
|
case 1:
|
|
1646
1646
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1647
1647
|
errorCode = "UnknownError";
|
|
1648
1648
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
1649
|
_b = errorCode;
|
|
1650
1650
|
switch (_b) {
|
|
1651
|
-
case "InternalServerException": return [3
|
|
1652
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1653
|
-
case "ResourceNotFoundException": return [3
|
|
1654
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1655
|
-
case "ThrottlingException": return [3
|
|
1656
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1657
|
-
case "ValidationException": return [3
|
|
1658
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1659
|
-
}
|
|
1660
|
-
return [3
|
|
1651
|
+
case "InternalServerException": return [3, 2];
|
|
1652
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1653
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1654
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
1655
|
+
case "ThrottlingException": return [3, 6];
|
|
1656
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
1657
|
+
case "ValidationException": return [3, 8];
|
|
1658
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
1659
|
+
}
|
|
1660
|
+
return [3, 10];
|
|
1661
1661
|
case 2:
|
|
1662
1662
|
_c = [{}];
|
|
1663
|
-
return [4
|
|
1663
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1664
1664
|
case 3:
|
|
1665
1665
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1666
|
-
return [3
|
|
1666
|
+
return [3, 11];
|
|
1667
1667
|
case 4:
|
|
1668
1668
|
_d = [{}];
|
|
1669
|
-
return [4
|
|
1669
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1670
1670
|
case 5:
|
|
1671
1671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1672
|
-
return [3
|
|
1672
|
+
return [3, 11];
|
|
1673
1673
|
case 6:
|
|
1674
1674
|
_e = [{}];
|
|
1675
|
-
return [4
|
|
1675
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1676
1676
|
case 7:
|
|
1677
1677
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1678
|
-
return [3
|
|
1678
|
+
return [3, 11];
|
|
1679
1679
|
case 8:
|
|
1680
1680
|
_f = [{}];
|
|
1681
|
-
return [4
|
|
1681
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1682
1682
|
case 9:
|
|
1683
1683
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1684
|
-
return [3
|
|
1684
|
+
return [3, 11];
|
|
1685
1685
|
case 10:
|
|
1686
1686
|
parsedBody = parsedOutput.body;
|
|
1687
1687
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1691,7 +1691,7 @@ var deserializeAws_restJson1GetProfileCommandError = function (output, context)
|
|
|
1691
1691
|
message = response.message || response.Message || errorCode;
|
|
1692
1692
|
response.message = message;
|
|
1693
1693
|
delete response.Message;
|
|
1694
|
-
return [2
|
|
1694
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1695
1695
|
}
|
|
1696
1696
|
});
|
|
1697
1697
|
}); };
|
|
@@ -1701,7 +1701,7 @@ export var deserializeAws_restJson1GetRecommendationsCommand = function (output,
|
|
|
1701
1701
|
switch (_c.label) {
|
|
1702
1702
|
case 0:
|
|
1703
1703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
|
-
return [2
|
|
1704
|
+
return [2, deserializeAws_restJson1GetRecommendationsCommandError(output, context)];
|
|
1705
1705
|
}
|
|
1706
1706
|
contents = {
|
|
1707
1707
|
$metadata: deserializeMetadata(output),
|
|
@@ -1713,7 +1713,7 @@ export var deserializeAws_restJson1GetRecommendationsCommand = function (output,
|
|
|
1713
1713
|
};
|
|
1714
1714
|
_a = __expectNonNull;
|
|
1715
1715
|
_b = __expectObject;
|
|
1716
|
-
return [4
|
|
1716
|
+
return [4, parseBody(output.body, context)];
|
|
1717
1717
|
case 1:
|
|
1718
1718
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1719
1719
|
if (data.anomalies !== undefined && data.anomalies !== null) {
|
|
@@ -1731,7 +1731,7 @@ export var deserializeAws_restJson1GetRecommendationsCommand = function (output,
|
|
|
1731
1731
|
if (data.recommendations !== undefined && data.recommendations !== null) {
|
|
1732
1732
|
contents.recommendations = deserializeAws_restJson1Recommendations(data.recommendations, context);
|
|
1733
1733
|
}
|
|
1734
|
-
return [2
|
|
1734
|
+
return [2, Promise.resolve(contents)];
|
|
1735
1735
|
}
|
|
1736
1736
|
});
|
|
1737
1737
|
}); };
|
|
@@ -1743,47 +1743,47 @@ var deserializeAws_restJson1GetRecommendationsCommandError = function (output, c
|
|
|
1743
1743
|
case 0:
|
|
1744
1744
|
_a = [__assign({}, output)];
|
|
1745
1745
|
_g = {};
|
|
1746
|
-
return [4
|
|
1746
|
+
return [4, parseBody(output.body, context)];
|
|
1747
1747
|
case 1:
|
|
1748
1748
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1749
1749
|
errorCode = "UnknownError";
|
|
1750
1750
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1751
1751
|
_b = errorCode;
|
|
1752
1752
|
switch (_b) {
|
|
1753
|
-
case "InternalServerException": return [3
|
|
1754
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1755
|
-
case "ResourceNotFoundException": return [3
|
|
1756
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1757
|
-
case "ThrottlingException": return [3
|
|
1758
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1759
|
-
case "ValidationException": return [3
|
|
1760
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1761
|
-
}
|
|
1762
|
-
return [3
|
|
1753
|
+
case "InternalServerException": return [3, 2];
|
|
1754
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1755
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1756
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
1757
|
+
case "ThrottlingException": return [3, 6];
|
|
1758
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
1759
|
+
case "ValidationException": return [3, 8];
|
|
1760
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
1761
|
+
}
|
|
1762
|
+
return [3, 10];
|
|
1763
1763
|
case 2:
|
|
1764
1764
|
_c = [{}];
|
|
1765
|
-
return [4
|
|
1765
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1766
1766
|
case 3:
|
|
1767
1767
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1768
|
-
return [3
|
|
1768
|
+
return [3, 11];
|
|
1769
1769
|
case 4:
|
|
1770
1770
|
_d = [{}];
|
|
1771
|
-
return [4
|
|
1771
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1772
1772
|
case 5:
|
|
1773
1773
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1774
|
-
return [3
|
|
1774
|
+
return [3, 11];
|
|
1775
1775
|
case 6:
|
|
1776
1776
|
_e = [{}];
|
|
1777
|
-
return [4
|
|
1777
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1778
1778
|
case 7:
|
|
1779
1779
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1780
|
-
return [3
|
|
1780
|
+
return [3, 11];
|
|
1781
1781
|
case 8:
|
|
1782
1782
|
_f = [{}];
|
|
1783
|
-
return [4
|
|
1783
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1784
1784
|
case 9:
|
|
1785
1785
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1786
|
-
return [3
|
|
1786
|
+
return [3, 11];
|
|
1787
1787
|
case 10:
|
|
1788
1788
|
parsedBody = parsedOutput.body;
|
|
1789
1789
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1793,7 +1793,7 @@ var deserializeAws_restJson1GetRecommendationsCommandError = function (output, c
|
|
|
1793
1793
|
message = response.message || response.Message || errorCode;
|
|
1794
1794
|
response.message = message;
|
|
1795
1795
|
delete response.Message;
|
|
1796
|
-
return [2
|
|
1796
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1797
1797
|
}
|
|
1798
1798
|
});
|
|
1799
1799
|
}); };
|
|
@@ -1803,7 +1803,7 @@ export var deserializeAws_restJson1ListFindingsReportsCommand = function (output
|
|
|
1803
1803
|
switch (_c.label) {
|
|
1804
1804
|
case 0:
|
|
1805
1805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1806
|
-
return [2
|
|
1806
|
+
return [2, deserializeAws_restJson1ListFindingsReportsCommandError(output, context)];
|
|
1807
1807
|
}
|
|
1808
1808
|
contents = {
|
|
1809
1809
|
$metadata: deserializeMetadata(output),
|
|
@@ -1812,7 +1812,7 @@ export var deserializeAws_restJson1ListFindingsReportsCommand = function (output
|
|
|
1812
1812
|
};
|
|
1813
1813
|
_a = __expectNonNull;
|
|
1814
1814
|
_b = __expectObject;
|
|
1815
|
-
return [4
|
|
1815
|
+
return [4, parseBody(output.body, context)];
|
|
1816
1816
|
case 1:
|
|
1817
1817
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1818
1818
|
if (data.findingsReportSummaries !== undefined && data.findingsReportSummaries !== null) {
|
|
@@ -1821,7 +1821,7 @@ export var deserializeAws_restJson1ListFindingsReportsCommand = function (output
|
|
|
1821
1821
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1822
1822
|
contents.nextToken = __expectString(data.nextToken);
|
|
1823
1823
|
}
|
|
1824
|
-
return [2
|
|
1824
|
+
return [2, Promise.resolve(contents)];
|
|
1825
1825
|
}
|
|
1826
1826
|
});
|
|
1827
1827
|
}); };
|
|
@@ -1833,47 +1833,47 @@ var deserializeAws_restJson1ListFindingsReportsCommandError = function (output,
|
|
|
1833
1833
|
case 0:
|
|
1834
1834
|
_a = [__assign({}, output)];
|
|
1835
1835
|
_g = {};
|
|
1836
|
-
return [4
|
|
1836
|
+
return [4, parseBody(output.body, context)];
|
|
1837
1837
|
case 1:
|
|
1838
1838
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1839
1839
|
errorCode = "UnknownError";
|
|
1840
1840
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1841
|
_b = errorCode;
|
|
1842
1842
|
switch (_b) {
|
|
1843
|
-
case "InternalServerException": return [3
|
|
1844
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1845
|
-
case "ResourceNotFoundException": return [3
|
|
1846
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1847
|
-
case "ThrottlingException": return [3
|
|
1848
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1849
|
-
case "ValidationException": return [3
|
|
1850
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1851
|
-
}
|
|
1852
|
-
return [3
|
|
1843
|
+
case "InternalServerException": return [3, 2];
|
|
1844
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1845
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1846
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
1847
|
+
case "ThrottlingException": return [3, 6];
|
|
1848
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
1849
|
+
case "ValidationException": return [3, 8];
|
|
1850
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
1851
|
+
}
|
|
1852
|
+
return [3, 10];
|
|
1853
1853
|
case 2:
|
|
1854
1854
|
_c = [{}];
|
|
1855
|
-
return [4
|
|
1855
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1856
1856
|
case 3:
|
|
1857
1857
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1858
|
-
return [3
|
|
1858
|
+
return [3, 11];
|
|
1859
1859
|
case 4:
|
|
1860
1860
|
_d = [{}];
|
|
1861
|
-
return [4
|
|
1861
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1862
1862
|
case 5:
|
|
1863
1863
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1864
|
-
return [3
|
|
1864
|
+
return [3, 11];
|
|
1865
1865
|
case 6:
|
|
1866
1866
|
_e = [{}];
|
|
1867
|
-
return [4
|
|
1867
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1868
1868
|
case 7:
|
|
1869
1869
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1870
|
-
return [3
|
|
1870
|
+
return [3, 11];
|
|
1871
1871
|
case 8:
|
|
1872
1872
|
_f = [{}];
|
|
1873
|
-
return [4
|
|
1873
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1874
1874
|
case 9:
|
|
1875
1875
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1876
|
-
return [3
|
|
1876
|
+
return [3, 11];
|
|
1877
1877
|
case 10:
|
|
1878
1878
|
parsedBody = parsedOutput.body;
|
|
1879
1879
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1883,7 +1883,7 @@ var deserializeAws_restJson1ListFindingsReportsCommandError = function (output,
|
|
|
1883
1883
|
message = response.message || response.Message || errorCode;
|
|
1884
1884
|
response.message = message;
|
|
1885
1885
|
delete response.Message;
|
|
1886
|
-
return [2
|
|
1886
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1887
1887
|
}
|
|
1888
1888
|
});
|
|
1889
1889
|
}); };
|
|
@@ -1893,7 +1893,7 @@ export var deserializeAws_restJson1ListProfileTimesCommand = function (output, c
|
|
|
1893
1893
|
switch (_c.label) {
|
|
1894
1894
|
case 0:
|
|
1895
1895
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
|
-
return [2
|
|
1896
|
+
return [2, deserializeAws_restJson1ListProfileTimesCommandError(output, context)];
|
|
1897
1897
|
}
|
|
1898
1898
|
contents = {
|
|
1899
1899
|
$metadata: deserializeMetadata(output),
|
|
@@ -1902,7 +1902,7 @@ export var deserializeAws_restJson1ListProfileTimesCommand = function (output, c
|
|
|
1902
1902
|
};
|
|
1903
1903
|
_a = __expectNonNull;
|
|
1904
1904
|
_b = __expectObject;
|
|
1905
|
-
return [4
|
|
1905
|
+
return [4, parseBody(output.body, context)];
|
|
1906
1906
|
case 1:
|
|
1907
1907
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1908
1908
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -1911,7 +1911,7 @@ export var deserializeAws_restJson1ListProfileTimesCommand = function (output, c
|
|
|
1911
1911
|
if (data.profileTimes !== undefined && data.profileTimes !== null) {
|
|
1912
1912
|
contents.profileTimes = deserializeAws_restJson1ProfileTimes(data.profileTimes, context);
|
|
1913
1913
|
}
|
|
1914
|
-
return [2
|
|
1914
|
+
return [2, Promise.resolve(contents)];
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
}); };
|
|
@@ -1923,47 +1923,47 @@ var deserializeAws_restJson1ListProfileTimesCommandError = function (output, con
|
|
|
1923
1923
|
case 0:
|
|
1924
1924
|
_a = [__assign({}, output)];
|
|
1925
1925
|
_g = {};
|
|
1926
|
-
return [4
|
|
1926
|
+
return [4, parseBody(output.body, context)];
|
|
1927
1927
|
case 1:
|
|
1928
1928
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1929
1929
|
errorCode = "UnknownError";
|
|
1930
1930
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1931
1931
|
_b = errorCode;
|
|
1932
1932
|
switch (_b) {
|
|
1933
|
-
case "InternalServerException": return [3
|
|
1934
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
1935
|
-
case "ResourceNotFoundException": return [3
|
|
1936
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
1937
|
-
case "ThrottlingException": return [3
|
|
1938
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
1939
|
-
case "ValidationException": return [3
|
|
1940
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
1941
|
-
}
|
|
1942
|
-
return [3
|
|
1933
|
+
case "InternalServerException": return [3, 2];
|
|
1934
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
1935
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1936
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
1937
|
+
case "ThrottlingException": return [3, 6];
|
|
1938
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
1939
|
+
case "ValidationException": return [3, 8];
|
|
1940
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
1941
|
+
}
|
|
1942
|
+
return [3, 10];
|
|
1943
1943
|
case 2:
|
|
1944
1944
|
_c = [{}];
|
|
1945
|
-
return [4
|
|
1945
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1946
1946
|
case 3:
|
|
1947
1947
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1948
|
-
return [3
|
|
1948
|
+
return [3, 11];
|
|
1949
1949
|
case 4:
|
|
1950
1950
|
_d = [{}];
|
|
1951
|
-
return [4
|
|
1951
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1952
1952
|
case 5:
|
|
1953
1953
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1954
|
-
return [3
|
|
1954
|
+
return [3, 11];
|
|
1955
1955
|
case 6:
|
|
1956
1956
|
_e = [{}];
|
|
1957
|
-
return [4
|
|
1957
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1958
1958
|
case 7:
|
|
1959
1959
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1960
|
-
return [3
|
|
1960
|
+
return [3, 11];
|
|
1961
1961
|
case 8:
|
|
1962
1962
|
_f = [{}];
|
|
1963
|
-
return [4
|
|
1963
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1964
1964
|
case 9:
|
|
1965
1965
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1966
|
-
return [3
|
|
1966
|
+
return [3, 11];
|
|
1967
1967
|
case 10:
|
|
1968
1968
|
parsedBody = parsedOutput.body;
|
|
1969
1969
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1973,7 +1973,7 @@ var deserializeAws_restJson1ListProfileTimesCommandError = function (output, con
|
|
|
1973
1973
|
message = response.message || response.Message || errorCode;
|
|
1974
1974
|
response.message = message;
|
|
1975
1975
|
delete response.Message;
|
|
1976
|
-
return [2
|
|
1976
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1977
1977
|
}
|
|
1978
1978
|
});
|
|
1979
1979
|
}); };
|
|
@@ -1983,7 +1983,7 @@ export var deserializeAws_restJson1ListProfilingGroupsCommand = function (output
|
|
|
1983
1983
|
switch (_c.label) {
|
|
1984
1984
|
case 0:
|
|
1985
1985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1986
|
-
return [2
|
|
1986
|
+
return [2, deserializeAws_restJson1ListProfilingGroupsCommandError(output, context)];
|
|
1987
1987
|
}
|
|
1988
1988
|
contents = {
|
|
1989
1989
|
$metadata: deserializeMetadata(output),
|
|
@@ -1993,7 +1993,7 @@ export var deserializeAws_restJson1ListProfilingGroupsCommand = function (output
|
|
|
1993
1993
|
};
|
|
1994
1994
|
_a = __expectNonNull;
|
|
1995
1995
|
_b = __expectObject;
|
|
1996
|
-
return [4
|
|
1996
|
+
return [4, parseBody(output.body, context)];
|
|
1997
1997
|
case 1:
|
|
1998
1998
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1999
1999
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2005,7 +2005,7 @@ export var deserializeAws_restJson1ListProfilingGroupsCommand = function (output
|
|
|
2005
2005
|
if (data.profilingGroups !== undefined && data.profilingGroups !== null) {
|
|
2006
2006
|
contents.profilingGroups = deserializeAws_restJson1ProfilingGroupDescriptions(data.profilingGroups, context);
|
|
2007
2007
|
}
|
|
2008
|
-
return [2
|
|
2008
|
+
return [2, Promise.resolve(contents)];
|
|
2009
2009
|
}
|
|
2010
2010
|
});
|
|
2011
2011
|
}); };
|
|
@@ -2017,31 +2017,31 @@ var deserializeAws_restJson1ListProfilingGroupsCommandError = function (output,
|
|
|
2017
2017
|
case 0:
|
|
2018
2018
|
_a = [__assign({}, output)];
|
|
2019
2019
|
_e = {};
|
|
2020
|
-
return [4
|
|
2020
|
+
return [4, parseBody(output.body, context)];
|
|
2021
2021
|
case 1:
|
|
2022
2022
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2023
2023
|
errorCode = "UnknownError";
|
|
2024
2024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
2025
|
_b = errorCode;
|
|
2026
2026
|
switch (_b) {
|
|
2027
|
-
case "InternalServerException": return [3
|
|
2028
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2029
|
-
case "ThrottlingException": return [3
|
|
2030
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
2027
|
+
case "InternalServerException": return [3, 2];
|
|
2028
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
2029
|
+
case "ThrottlingException": return [3, 4];
|
|
2030
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 4];
|
|
2031
2031
|
}
|
|
2032
|
-
return [3
|
|
2032
|
+
return [3, 6];
|
|
2033
2033
|
case 2:
|
|
2034
2034
|
_c = [{}];
|
|
2035
|
-
return [4
|
|
2035
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2036
2036
|
case 3:
|
|
2037
2037
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2038
|
-
return [3
|
|
2038
|
+
return [3, 7];
|
|
2039
2039
|
case 4:
|
|
2040
2040
|
_d = [{}];
|
|
2041
|
-
return [4
|
|
2041
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2042
2042
|
case 5:
|
|
2043
2043
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2044
|
-
return [3
|
|
2044
|
+
return [3, 7];
|
|
2045
2045
|
case 6:
|
|
2046
2046
|
parsedBody = parsedOutput.body;
|
|
2047
2047
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2051,7 +2051,7 @@ var deserializeAws_restJson1ListProfilingGroupsCommandError = function (output,
|
|
|
2051
2051
|
message = response.message || response.Message || errorCode;
|
|
2052
2052
|
response.message = message;
|
|
2053
2053
|
delete response.Message;
|
|
2054
|
-
return [2
|
|
2054
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2055
2055
|
}
|
|
2056
2056
|
});
|
|
2057
2057
|
}); };
|
|
@@ -2061,7 +2061,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2061
2061
|
switch (_c.label) {
|
|
2062
2062
|
case 0:
|
|
2063
2063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2064
|
-
return [2
|
|
2064
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2065
2065
|
}
|
|
2066
2066
|
contents = {
|
|
2067
2067
|
$metadata: deserializeMetadata(output),
|
|
@@ -2069,13 +2069,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2069
2069
|
};
|
|
2070
2070
|
_a = __expectNonNull;
|
|
2071
2071
|
_b = __expectObject;
|
|
2072
|
-
return [4
|
|
2072
|
+
return [4, parseBody(output.body, context)];
|
|
2073
2073
|
case 1:
|
|
2074
2074
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2075
2075
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2076
2076
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2077
2077
|
}
|
|
2078
|
-
return [2
|
|
2078
|
+
return [2, Promise.resolve(contents)];
|
|
2079
2079
|
}
|
|
2080
2080
|
});
|
|
2081
2081
|
}); };
|
|
@@ -2087,39 +2087,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2087
2087
|
case 0:
|
|
2088
2088
|
_a = [__assign({}, output)];
|
|
2089
2089
|
_f = {};
|
|
2090
|
-
return [4
|
|
2090
|
+
return [4, parseBody(output.body, context)];
|
|
2091
2091
|
case 1:
|
|
2092
2092
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2093
2093
|
errorCode = "UnknownError";
|
|
2094
2094
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2095
2095
|
_b = errorCode;
|
|
2096
2096
|
switch (_b) {
|
|
2097
|
-
case "InternalServerException": return [3
|
|
2098
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2099
|
-
case "ResourceNotFoundException": return [3
|
|
2100
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2101
|
-
case "ValidationException": return [3
|
|
2102
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2103
|
-
}
|
|
2104
|
-
return [3
|
|
2097
|
+
case "InternalServerException": return [3, 2];
|
|
2098
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
2099
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2100
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
2101
|
+
case "ValidationException": return [3, 6];
|
|
2102
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 6];
|
|
2103
|
+
}
|
|
2104
|
+
return [3, 8];
|
|
2105
2105
|
case 2:
|
|
2106
2106
|
_c = [{}];
|
|
2107
|
-
return [4
|
|
2107
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2108
2108
|
case 3:
|
|
2109
2109
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2110
|
-
return [3
|
|
2110
|
+
return [3, 9];
|
|
2111
2111
|
case 4:
|
|
2112
2112
|
_d = [{}];
|
|
2113
|
-
return [4
|
|
2113
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2114
2114
|
case 5:
|
|
2115
2115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2116
|
-
return [3
|
|
2116
|
+
return [3, 9];
|
|
2117
2117
|
case 6:
|
|
2118
2118
|
_e = [{}];
|
|
2119
|
-
return [4
|
|
2119
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2120
2120
|
case 7:
|
|
2121
2121
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2122
|
-
return [3
|
|
2122
|
+
return [3, 9];
|
|
2123
2123
|
case 8:
|
|
2124
2124
|
parsedBody = parsedOutput.body;
|
|
2125
2125
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2129,7 +2129,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2129
2129
|
message = response.message || response.Message || errorCode;
|
|
2130
2130
|
response.message = message;
|
|
2131
2131
|
delete response.Message;
|
|
2132
|
-
return [2
|
|
2132
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
2135
|
}); };
|
|
@@ -2139,15 +2139,15 @@ export var deserializeAws_restJson1PostAgentProfileCommand = function (output, c
|
|
|
2139
2139
|
switch (_a.label) {
|
|
2140
2140
|
case 0:
|
|
2141
2141
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2142
|
-
return [2
|
|
2142
|
+
return [2, deserializeAws_restJson1PostAgentProfileCommandError(output, context)];
|
|
2143
2143
|
}
|
|
2144
2144
|
contents = {
|
|
2145
2145
|
$metadata: deserializeMetadata(output),
|
|
2146
2146
|
};
|
|
2147
|
-
return [4
|
|
2147
|
+
return [4, collectBody(output.body, context)];
|
|
2148
2148
|
case 1:
|
|
2149
2149
|
_a.sent();
|
|
2150
|
-
return [2
|
|
2150
|
+
return [2, Promise.resolve(contents)];
|
|
2151
2151
|
}
|
|
2152
2152
|
});
|
|
2153
2153
|
}); };
|
|
@@ -2159,47 +2159,47 @@ var deserializeAws_restJson1PostAgentProfileCommandError = function (output, con
|
|
|
2159
2159
|
case 0:
|
|
2160
2160
|
_a = [__assign({}, output)];
|
|
2161
2161
|
_g = {};
|
|
2162
|
-
return [4
|
|
2162
|
+
return [4, parseBody(output.body, context)];
|
|
2163
2163
|
case 1:
|
|
2164
2164
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2165
2165
|
errorCode = "UnknownError";
|
|
2166
2166
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2167
2167
|
_b = errorCode;
|
|
2168
2168
|
switch (_b) {
|
|
2169
|
-
case "InternalServerException": return [3
|
|
2170
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2171
|
-
case "ResourceNotFoundException": return [3
|
|
2172
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2173
|
-
case "ThrottlingException": return [3
|
|
2174
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
2175
|
-
case "ValidationException": return [3
|
|
2176
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2177
|
-
}
|
|
2178
|
-
return [3
|
|
2169
|
+
case "InternalServerException": return [3, 2];
|
|
2170
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
2171
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2172
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
2173
|
+
case "ThrottlingException": return [3, 6];
|
|
2174
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
2175
|
+
case "ValidationException": return [3, 8];
|
|
2176
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
2177
|
+
}
|
|
2178
|
+
return [3, 10];
|
|
2179
2179
|
case 2:
|
|
2180
2180
|
_c = [{}];
|
|
2181
|
-
return [4
|
|
2181
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2182
2182
|
case 3:
|
|
2183
2183
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2184
|
-
return [3
|
|
2184
|
+
return [3, 11];
|
|
2185
2185
|
case 4:
|
|
2186
2186
|
_d = [{}];
|
|
2187
|
-
return [4
|
|
2187
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2188
2188
|
case 5:
|
|
2189
2189
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2190
|
-
return [3
|
|
2190
|
+
return [3, 11];
|
|
2191
2191
|
case 6:
|
|
2192
2192
|
_e = [{}];
|
|
2193
|
-
return [4
|
|
2193
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2194
2194
|
case 7:
|
|
2195
2195
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2196
|
-
return [3
|
|
2196
|
+
return [3, 11];
|
|
2197
2197
|
case 8:
|
|
2198
2198
|
_f = [{}];
|
|
2199
|
-
return [4
|
|
2199
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2200
2200
|
case 9:
|
|
2201
2201
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2202
|
-
return [3
|
|
2202
|
+
return [3, 11];
|
|
2203
2203
|
case 10:
|
|
2204
2204
|
parsedBody = parsedOutput.body;
|
|
2205
2205
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2209,7 +2209,7 @@ var deserializeAws_restJson1PostAgentProfileCommandError = function (output, con
|
|
|
2209
2209
|
message = response.message || response.Message || errorCode;
|
|
2210
2210
|
response.message = message;
|
|
2211
2211
|
delete response.Message;
|
|
2212
|
-
return [2
|
|
2212
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2213
2213
|
}
|
|
2214
2214
|
});
|
|
2215
2215
|
}); };
|
|
@@ -2219,7 +2219,7 @@ export var deserializeAws_restJson1PutPermissionCommand = function (output, cont
|
|
|
2219
2219
|
switch (_c.label) {
|
|
2220
2220
|
case 0:
|
|
2221
2221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2222
|
-
return [2
|
|
2222
|
+
return [2, deserializeAws_restJson1PutPermissionCommandError(output, context)];
|
|
2223
2223
|
}
|
|
2224
2224
|
contents = {
|
|
2225
2225
|
$metadata: deserializeMetadata(output),
|
|
@@ -2228,7 +2228,7 @@ export var deserializeAws_restJson1PutPermissionCommand = function (output, cont
|
|
|
2228
2228
|
};
|
|
2229
2229
|
_a = __expectNonNull;
|
|
2230
2230
|
_b = __expectObject;
|
|
2231
|
-
return [4
|
|
2231
|
+
return [4, parseBody(output.body, context)];
|
|
2232
2232
|
case 1:
|
|
2233
2233
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2234
2234
|
if (data.policy !== undefined && data.policy !== null) {
|
|
@@ -2237,7 +2237,7 @@ export var deserializeAws_restJson1PutPermissionCommand = function (output, cont
|
|
|
2237
2237
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
2238
2238
|
contents.revisionId = __expectString(data.revisionId);
|
|
2239
2239
|
}
|
|
2240
|
-
return [2
|
|
2240
|
+
return [2, Promise.resolve(contents)];
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
2243
|
}); };
|
|
@@ -2249,55 +2249,55 @@ var deserializeAws_restJson1PutPermissionCommandError = function (output, contex
|
|
|
2249
2249
|
case 0:
|
|
2250
2250
|
_a = [__assign({}, output)];
|
|
2251
2251
|
_h = {};
|
|
2252
|
-
return [4
|
|
2252
|
+
return [4, parseBody(output.body, context)];
|
|
2253
2253
|
case 1:
|
|
2254
2254
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2255
2255
|
errorCode = "UnknownError";
|
|
2256
2256
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
2257
|
_b = errorCode;
|
|
2258
2258
|
switch (_b) {
|
|
2259
|
-
case "ConflictException": return [3
|
|
2260
|
-
case "com.amazonaws.codeguruprofiler#ConflictException": return [3
|
|
2261
|
-
case "InternalServerException": return [3
|
|
2262
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2263
|
-
case "ResourceNotFoundException": return [3
|
|
2264
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2265
|
-
case "ThrottlingException": return [3
|
|
2266
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
2267
|
-
case "ValidationException": return [3
|
|
2268
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2269
|
-
}
|
|
2270
|
-
return [3
|
|
2259
|
+
case "ConflictException": return [3, 2];
|
|
2260
|
+
case "com.amazonaws.codeguruprofiler#ConflictException": return [3, 2];
|
|
2261
|
+
case "InternalServerException": return [3, 4];
|
|
2262
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 4];
|
|
2263
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2264
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 6];
|
|
2265
|
+
case "ThrottlingException": return [3, 8];
|
|
2266
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 8];
|
|
2267
|
+
case "ValidationException": return [3, 10];
|
|
2268
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 10];
|
|
2269
|
+
}
|
|
2270
|
+
return [3, 12];
|
|
2271
2271
|
case 2:
|
|
2272
2272
|
_c = [{}];
|
|
2273
|
-
return [4
|
|
2273
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2274
2274
|
case 3:
|
|
2275
2275
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2276
|
-
return [3
|
|
2276
|
+
return [3, 13];
|
|
2277
2277
|
case 4:
|
|
2278
2278
|
_d = [{}];
|
|
2279
|
-
return [4
|
|
2279
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2280
2280
|
case 5:
|
|
2281
2281
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2282
|
-
return [3
|
|
2282
|
+
return [3, 13];
|
|
2283
2283
|
case 6:
|
|
2284
2284
|
_e = [{}];
|
|
2285
|
-
return [4
|
|
2285
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2286
2286
|
case 7:
|
|
2287
2287
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2288
|
-
return [3
|
|
2288
|
+
return [3, 13];
|
|
2289
2289
|
case 8:
|
|
2290
2290
|
_f = [{}];
|
|
2291
|
-
return [4
|
|
2291
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2292
2292
|
case 9:
|
|
2293
2293
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2294
|
-
return [3
|
|
2294
|
+
return [3, 13];
|
|
2295
2295
|
case 10:
|
|
2296
2296
|
_g = [{}];
|
|
2297
|
-
return [4
|
|
2297
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2298
2298
|
case 11:
|
|
2299
2299
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2300
|
-
return [3
|
|
2300
|
+
return [3, 13];
|
|
2301
2301
|
case 12:
|
|
2302
2302
|
parsedBody = parsedOutput.body;
|
|
2303
2303
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2307,7 +2307,7 @@ var deserializeAws_restJson1PutPermissionCommandError = function (output, contex
|
|
|
2307
2307
|
message = response.message || response.Message || errorCode;
|
|
2308
2308
|
response.message = message;
|
|
2309
2309
|
delete response.Message;
|
|
2310
|
-
return [2
|
|
2310
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2311
2311
|
}
|
|
2312
2312
|
});
|
|
2313
2313
|
}); };
|
|
@@ -2317,7 +2317,7 @@ export var deserializeAws_restJson1RemoveNotificationChannelCommand = function (
|
|
|
2317
2317
|
switch (_c.label) {
|
|
2318
2318
|
case 0:
|
|
2319
2319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2320
|
-
return [2
|
|
2320
|
+
return [2, deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context)];
|
|
2321
2321
|
}
|
|
2322
2322
|
contents = {
|
|
2323
2323
|
$metadata: deserializeMetadata(output),
|
|
@@ -2325,13 +2325,13 @@ export var deserializeAws_restJson1RemoveNotificationChannelCommand = function (
|
|
|
2325
2325
|
};
|
|
2326
2326
|
_a = __expectNonNull;
|
|
2327
2327
|
_b = __expectObject;
|
|
2328
|
-
return [4
|
|
2328
|
+
return [4, parseBody(output.body, context)];
|
|
2329
2329
|
case 1:
|
|
2330
2330
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2331
2331
|
if (data.notificationConfiguration !== undefined && data.notificationConfiguration !== null) {
|
|
2332
2332
|
contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
|
|
2333
2333
|
}
|
|
2334
|
-
return [2
|
|
2334
|
+
return [2, Promise.resolve(contents)];
|
|
2335
2335
|
}
|
|
2336
2336
|
});
|
|
2337
2337
|
}); };
|
|
@@ -2343,47 +2343,47 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
|
|
|
2343
2343
|
case 0:
|
|
2344
2344
|
_a = [__assign({}, output)];
|
|
2345
2345
|
_g = {};
|
|
2346
|
-
return [4
|
|
2346
|
+
return [4, parseBody(output.body, context)];
|
|
2347
2347
|
case 1:
|
|
2348
2348
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2349
2349
|
errorCode = "UnknownError";
|
|
2350
2350
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2351
2351
|
_b = errorCode;
|
|
2352
2352
|
switch (_b) {
|
|
2353
|
-
case "InternalServerException": return [3
|
|
2354
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2355
|
-
case "ResourceNotFoundException": return [3
|
|
2356
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2357
|
-
case "ThrottlingException": return [3
|
|
2358
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
2359
|
-
case "ValidationException": return [3
|
|
2360
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2361
|
-
}
|
|
2362
|
-
return [3
|
|
2353
|
+
case "InternalServerException": return [3, 2];
|
|
2354
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
2355
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2356
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
2357
|
+
case "ThrottlingException": return [3, 6];
|
|
2358
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
2359
|
+
case "ValidationException": return [3, 8];
|
|
2360
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
2361
|
+
}
|
|
2362
|
+
return [3, 10];
|
|
2363
2363
|
case 2:
|
|
2364
2364
|
_c = [{}];
|
|
2365
|
-
return [4
|
|
2365
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2366
2366
|
case 3:
|
|
2367
2367
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2368
|
-
return [3
|
|
2368
|
+
return [3, 11];
|
|
2369
2369
|
case 4:
|
|
2370
2370
|
_d = [{}];
|
|
2371
|
-
return [4
|
|
2371
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2372
2372
|
case 5:
|
|
2373
2373
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2374
|
-
return [3
|
|
2374
|
+
return [3, 11];
|
|
2375
2375
|
case 6:
|
|
2376
2376
|
_e = [{}];
|
|
2377
|
-
return [4
|
|
2377
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2378
2378
|
case 7:
|
|
2379
2379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2380
|
-
return [3
|
|
2380
|
+
return [3, 11];
|
|
2381
2381
|
case 8:
|
|
2382
2382
|
_f = [{}];
|
|
2383
|
-
return [4
|
|
2383
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2384
2384
|
case 9:
|
|
2385
2385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2386
|
-
return [3
|
|
2386
|
+
return [3, 11];
|
|
2387
2387
|
case 10:
|
|
2388
2388
|
parsedBody = parsedOutput.body;
|
|
2389
2389
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2393,7 +2393,7 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
|
|
|
2393
2393
|
message = response.message || response.Message || errorCode;
|
|
2394
2394
|
response.message = message;
|
|
2395
2395
|
delete response.Message;
|
|
2396
|
-
return [2
|
|
2396
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2397
2397
|
}
|
|
2398
2398
|
});
|
|
2399
2399
|
}); };
|
|
@@ -2403,7 +2403,7 @@ export var deserializeAws_restJson1RemovePermissionCommand = function (output, c
|
|
|
2403
2403
|
switch (_c.label) {
|
|
2404
2404
|
case 0:
|
|
2405
2405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2406
|
-
return [2
|
|
2406
|
+
return [2, deserializeAws_restJson1RemovePermissionCommandError(output, context)];
|
|
2407
2407
|
}
|
|
2408
2408
|
contents = {
|
|
2409
2409
|
$metadata: deserializeMetadata(output),
|
|
@@ -2412,7 +2412,7 @@ export var deserializeAws_restJson1RemovePermissionCommand = function (output, c
|
|
|
2412
2412
|
};
|
|
2413
2413
|
_a = __expectNonNull;
|
|
2414
2414
|
_b = __expectObject;
|
|
2415
|
-
return [4
|
|
2415
|
+
return [4, parseBody(output.body, context)];
|
|
2416
2416
|
case 1:
|
|
2417
2417
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2418
2418
|
if (data.policy !== undefined && data.policy !== null) {
|
|
@@ -2421,7 +2421,7 @@ export var deserializeAws_restJson1RemovePermissionCommand = function (output, c
|
|
|
2421
2421
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
2422
2422
|
contents.revisionId = __expectString(data.revisionId);
|
|
2423
2423
|
}
|
|
2424
|
-
return [2
|
|
2424
|
+
return [2, Promise.resolve(contents)];
|
|
2425
2425
|
}
|
|
2426
2426
|
});
|
|
2427
2427
|
}); };
|
|
@@ -2433,55 +2433,55 @@ var deserializeAws_restJson1RemovePermissionCommandError = function (output, con
|
|
|
2433
2433
|
case 0:
|
|
2434
2434
|
_a = [__assign({}, output)];
|
|
2435
2435
|
_h = {};
|
|
2436
|
-
return [4
|
|
2436
|
+
return [4, parseBody(output.body, context)];
|
|
2437
2437
|
case 1:
|
|
2438
2438
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2439
2439
|
errorCode = "UnknownError";
|
|
2440
2440
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2441
2441
|
_b = errorCode;
|
|
2442
2442
|
switch (_b) {
|
|
2443
|
-
case "ConflictException": return [3
|
|
2444
|
-
case "com.amazonaws.codeguruprofiler#ConflictException": return [3
|
|
2445
|
-
case "InternalServerException": return [3
|
|
2446
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2447
|
-
case "ResourceNotFoundException": return [3
|
|
2448
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2449
|
-
case "ThrottlingException": return [3
|
|
2450
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
2451
|
-
case "ValidationException": return [3
|
|
2452
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2453
|
-
}
|
|
2454
|
-
return [3
|
|
2443
|
+
case "ConflictException": return [3, 2];
|
|
2444
|
+
case "com.amazonaws.codeguruprofiler#ConflictException": return [3, 2];
|
|
2445
|
+
case "InternalServerException": return [3, 4];
|
|
2446
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 4];
|
|
2447
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2448
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 6];
|
|
2449
|
+
case "ThrottlingException": return [3, 8];
|
|
2450
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 8];
|
|
2451
|
+
case "ValidationException": return [3, 10];
|
|
2452
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 10];
|
|
2453
|
+
}
|
|
2454
|
+
return [3, 12];
|
|
2455
2455
|
case 2:
|
|
2456
2456
|
_c = [{}];
|
|
2457
|
-
return [4
|
|
2457
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2458
2458
|
case 3:
|
|
2459
2459
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2460
|
-
return [3
|
|
2460
|
+
return [3, 13];
|
|
2461
2461
|
case 4:
|
|
2462
2462
|
_d = [{}];
|
|
2463
|
-
return [4
|
|
2463
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2464
2464
|
case 5:
|
|
2465
2465
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2466
|
-
return [3
|
|
2466
|
+
return [3, 13];
|
|
2467
2467
|
case 6:
|
|
2468
2468
|
_e = [{}];
|
|
2469
|
-
return [4
|
|
2469
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2470
2470
|
case 7:
|
|
2471
2471
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2472
|
-
return [3
|
|
2472
|
+
return [3, 13];
|
|
2473
2473
|
case 8:
|
|
2474
2474
|
_f = [{}];
|
|
2475
|
-
return [4
|
|
2475
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2476
2476
|
case 9:
|
|
2477
2477
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2478
|
-
return [3
|
|
2478
|
+
return [3, 13];
|
|
2479
2479
|
case 10:
|
|
2480
2480
|
_g = [{}];
|
|
2481
|
-
return [4
|
|
2481
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2482
2482
|
case 11:
|
|
2483
2483
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2484
|
-
return [3
|
|
2484
|
+
return [3, 13];
|
|
2485
2485
|
case 12:
|
|
2486
2486
|
parsedBody = parsedOutput.body;
|
|
2487
2487
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2491,7 +2491,7 @@ var deserializeAws_restJson1RemovePermissionCommandError = function (output, con
|
|
|
2491
2491
|
message = response.message || response.Message || errorCode;
|
|
2492
2492
|
response.message = message;
|
|
2493
2493
|
delete response.Message;
|
|
2494
|
-
return [2
|
|
2494
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2495
2495
|
}
|
|
2496
2496
|
});
|
|
2497
2497
|
}); };
|
|
@@ -2501,15 +2501,15 @@ export var deserializeAws_restJson1SubmitFeedbackCommand = function (output, con
|
|
|
2501
2501
|
switch (_a.label) {
|
|
2502
2502
|
case 0:
|
|
2503
2503
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2504
|
-
return [2
|
|
2504
|
+
return [2, deserializeAws_restJson1SubmitFeedbackCommandError(output, context)];
|
|
2505
2505
|
}
|
|
2506
2506
|
contents = {
|
|
2507
2507
|
$metadata: deserializeMetadata(output),
|
|
2508
2508
|
};
|
|
2509
|
-
return [4
|
|
2509
|
+
return [4, collectBody(output.body, context)];
|
|
2510
2510
|
case 1:
|
|
2511
2511
|
_a.sent();
|
|
2512
|
-
return [2
|
|
2512
|
+
return [2, Promise.resolve(contents)];
|
|
2513
2513
|
}
|
|
2514
2514
|
});
|
|
2515
2515
|
}); };
|
|
@@ -2521,47 +2521,47 @@ var deserializeAws_restJson1SubmitFeedbackCommandError = function (output, conte
|
|
|
2521
2521
|
case 0:
|
|
2522
2522
|
_a = [__assign({}, output)];
|
|
2523
2523
|
_g = {};
|
|
2524
|
-
return [4
|
|
2524
|
+
return [4, parseBody(output.body, context)];
|
|
2525
2525
|
case 1:
|
|
2526
2526
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2527
2527
|
errorCode = "UnknownError";
|
|
2528
2528
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
2529
|
_b = errorCode;
|
|
2530
2530
|
switch (_b) {
|
|
2531
|
-
case "InternalServerException": return [3
|
|
2532
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2533
|
-
case "ResourceNotFoundException": return [3
|
|
2534
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2535
|
-
case "ThrottlingException": return [3
|
|
2536
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
2537
|
-
case "ValidationException": return [3
|
|
2538
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2539
|
-
}
|
|
2540
|
-
return [3
|
|
2531
|
+
case "InternalServerException": return [3, 2];
|
|
2532
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
2533
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2534
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
2535
|
+
case "ThrottlingException": return [3, 6];
|
|
2536
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 6];
|
|
2537
|
+
case "ValidationException": return [3, 8];
|
|
2538
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 8];
|
|
2539
|
+
}
|
|
2540
|
+
return [3, 10];
|
|
2541
2541
|
case 2:
|
|
2542
2542
|
_c = [{}];
|
|
2543
|
-
return [4
|
|
2543
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2544
2544
|
case 3:
|
|
2545
2545
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2546
|
-
return [3
|
|
2546
|
+
return [3, 11];
|
|
2547
2547
|
case 4:
|
|
2548
2548
|
_d = [{}];
|
|
2549
|
-
return [4
|
|
2549
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2550
2550
|
case 5:
|
|
2551
2551
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2552
|
-
return [3
|
|
2552
|
+
return [3, 11];
|
|
2553
2553
|
case 6:
|
|
2554
2554
|
_e = [{}];
|
|
2555
|
-
return [4
|
|
2555
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2556
2556
|
case 7:
|
|
2557
2557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2558
|
-
return [3
|
|
2558
|
+
return [3, 11];
|
|
2559
2559
|
case 8:
|
|
2560
2560
|
_f = [{}];
|
|
2561
|
-
return [4
|
|
2561
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2562
2562
|
case 9:
|
|
2563
2563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2564
|
-
return [3
|
|
2564
|
+
return [3, 11];
|
|
2565
2565
|
case 10:
|
|
2566
2566
|
parsedBody = parsedOutput.body;
|
|
2567
2567
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2571,7 +2571,7 @@ var deserializeAws_restJson1SubmitFeedbackCommandError = function (output, conte
|
|
|
2571
2571
|
message = response.message || response.Message || errorCode;
|
|
2572
2572
|
response.message = message;
|
|
2573
2573
|
delete response.Message;
|
|
2574
|
-
return [2
|
|
2574
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2575
2575
|
}
|
|
2576
2576
|
});
|
|
2577
2577
|
}); };
|
|
@@ -2581,15 +2581,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2581
2581
|
switch (_a.label) {
|
|
2582
2582
|
case 0:
|
|
2583
2583
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2584
|
-
return [2
|
|
2584
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2585
2585
|
}
|
|
2586
2586
|
contents = {
|
|
2587
2587
|
$metadata: deserializeMetadata(output),
|
|
2588
2588
|
};
|
|
2589
|
-
return [4
|
|
2589
|
+
return [4, collectBody(output.body, context)];
|
|
2590
2590
|
case 1:
|
|
2591
2591
|
_a.sent();
|
|
2592
|
-
return [2
|
|
2592
|
+
return [2, Promise.resolve(contents)];
|
|
2593
2593
|
}
|
|
2594
2594
|
});
|
|
2595
2595
|
}); };
|
|
@@ -2601,39 +2601,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2601
2601
|
case 0:
|
|
2602
2602
|
_a = [__assign({}, output)];
|
|
2603
2603
|
_f = {};
|
|
2604
|
-
return [4
|
|
2604
|
+
return [4, parseBody(output.body, context)];
|
|
2605
2605
|
case 1:
|
|
2606
2606
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2607
2607
|
errorCode = "UnknownError";
|
|
2608
2608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2609
|
_b = errorCode;
|
|
2610
2610
|
switch (_b) {
|
|
2611
|
-
case "InternalServerException": return [3
|
|
2612
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2613
|
-
case "ResourceNotFoundException": return [3
|
|
2614
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2615
|
-
case "ValidationException": return [3
|
|
2616
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2617
|
-
}
|
|
2618
|
-
return [3
|
|
2611
|
+
case "InternalServerException": return [3, 2];
|
|
2612
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
2613
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2614
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
2615
|
+
case "ValidationException": return [3, 6];
|
|
2616
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 6];
|
|
2617
|
+
}
|
|
2618
|
+
return [3, 8];
|
|
2619
2619
|
case 2:
|
|
2620
2620
|
_c = [{}];
|
|
2621
|
-
return [4
|
|
2621
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2622
2622
|
case 3:
|
|
2623
2623
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2624
|
-
return [3
|
|
2624
|
+
return [3, 9];
|
|
2625
2625
|
case 4:
|
|
2626
2626
|
_d = [{}];
|
|
2627
|
-
return [4
|
|
2627
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2628
2628
|
case 5:
|
|
2629
2629
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2630
|
-
return [3
|
|
2630
|
+
return [3, 9];
|
|
2631
2631
|
case 6:
|
|
2632
2632
|
_e = [{}];
|
|
2633
|
-
return [4
|
|
2633
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2634
2634
|
case 7:
|
|
2635
2635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2636
|
-
return [3
|
|
2636
|
+
return [3, 9];
|
|
2637
2637
|
case 8:
|
|
2638
2638
|
parsedBody = parsedOutput.body;
|
|
2639
2639
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2643,7 +2643,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2643
2643
|
message = response.message || response.Message || errorCode;
|
|
2644
2644
|
response.message = message;
|
|
2645
2645
|
delete response.Message;
|
|
2646
|
-
return [2
|
|
2646
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2647
2647
|
}
|
|
2648
2648
|
});
|
|
2649
2649
|
}); };
|
|
@@ -2653,15 +2653,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2653
2653
|
switch (_a.label) {
|
|
2654
2654
|
case 0:
|
|
2655
2655
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2656
|
-
return [2
|
|
2656
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2657
2657
|
}
|
|
2658
2658
|
contents = {
|
|
2659
2659
|
$metadata: deserializeMetadata(output),
|
|
2660
2660
|
};
|
|
2661
|
-
return [4
|
|
2661
|
+
return [4, collectBody(output.body, context)];
|
|
2662
2662
|
case 1:
|
|
2663
2663
|
_a.sent();
|
|
2664
|
-
return [2
|
|
2664
|
+
return [2, Promise.resolve(contents)];
|
|
2665
2665
|
}
|
|
2666
2666
|
});
|
|
2667
2667
|
}); };
|
|
@@ -2673,39 +2673,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2673
2673
|
case 0:
|
|
2674
2674
|
_a = [__assign({}, output)];
|
|
2675
2675
|
_f = {};
|
|
2676
|
-
return [4
|
|
2676
|
+
return [4, parseBody(output.body, context)];
|
|
2677
2677
|
case 1:
|
|
2678
2678
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2679
2679
|
errorCode = "UnknownError";
|
|
2680
2680
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2681
2681
|
_b = errorCode;
|
|
2682
2682
|
switch (_b) {
|
|
2683
|
-
case "InternalServerException": return [3
|
|
2684
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2685
|
-
case "ResourceNotFoundException": return [3
|
|
2686
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2687
|
-
case "ValidationException": return [3
|
|
2688
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2689
|
-
}
|
|
2690
|
-
return [3
|
|
2683
|
+
case "InternalServerException": return [3, 2];
|
|
2684
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 2];
|
|
2685
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2686
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 4];
|
|
2687
|
+
case "ValidationException": return [3, 6];
|
|
2688
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 6];
|
|
2689
|
+
}
|
|
2690
|
+
return [3, 8];
|
|
2691
2691
|
case 2:
|
|
2692
2692
|
_c = [{}];
|
|
2693
|
-
return [4
|
|
2693
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2694
2694
|
case 3:
|
|
2695
2695
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2696
|
-
return [3
|
|
2696
|
+
return [3, 9];
|
|
2697
2697
|
case 4:
|
|
2698
2698
|
_d = [{}];
|
|
2699
|
-
return [4
|
|
2699
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2700
2700
|
case 5:
|
|
2701
2701
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2702
|
-
return [3
|
|
2702
|
+
return [3, 9];
|
|
2703
2703
|
case 6:
|
|
2704
2704
|
_e = [{}];
|
|
2705
|
-
return [4
|
|
2705
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2706
2706
|
case 7:
|
|
2707
2707
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2708
|
-
return [3
|
|
2708
|
+
return [3, 9];
|
|
2709
2709
|
case 8:
|
|
2710
2710
|
parsedBody = parsedOutput.body;
|
|
2711
2711
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2715,7 +2715,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2715
2715
|
message = response.message || response.Message || errorCode;
|
|
2716
2716
|
response.message = message;
|
|
2717
2717
|
delete response.Message;
|
|
2718
|
-
return [2
|
|
2718
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2719
2719
|
}
|
|
2720
2720
|
});
|
|
2721
2721
|
}); };
|
|
@@ -2725,18 +2725,18 @@ export var deserializeAws_restJson1UpdateProfilingGroupCommand = function (outpu
|
|
|
2725
2725
|
switch (_b.label) {
|
|
2726
2726
|
case 0:
|
|
2727
2727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2728
|
-
return [2
|
|
2728
|
+
return [2, deserializeAws_restJson1UpdateProfilingGroupCommandError(output, context)];
|
|
2729
2729
|
}
|
|
2730
2730
|
contents = {
|
|
2731
2731
|
$metadata: deserializeMetadata(output),
|
|
2732
2732
|
profilingGroup: undefined,
|
|
2733
2733
|
};
|
|
2734
2734
|
_a = __expectObject;
|
|
2735
|
-
return [4
|
|
2735
|
+
return [4, parseBody(output.body, context)];
|
|
2736
2736
|
case 1:
|
|
2737
2737
|
data = _a.apply(void 0, [_b.sent()]);
|
|
2738
2738
|
contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
|
|
2739
|
-
return [2
|
|
2739
|
+
return [2, Promise.resolve(contents)];
|
|
2740
2740
|
}
|
|
2741
2741
|
});
|
|
2742
2742
|
}); };
|
|
@@ -2748,55 +2748,55 @@ var deserializeAws_restJson1UpdateProfilingGroupCommandError = function (output,
|
|
|
2748
2748
|
case 0:
|
|
2749
2749
|
_a = [__assign({}, output)];
|
|
2750
2750
|
_h = {};
|
|
2751
|
-
return [4
|
|
2751
|
+
return [4, parseBody(output.body, context)];
|
|
2752
2752
|
case 1:
|
|
2753
2753
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2754
2754
|
errorCode = "UnknownError";
|
|
2755
2755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
2756
|
_b = errorCode;
|
|
2757
2757
|
switch (_b) {
|
|
2758
|
-
case "ConflictException": return [3
|
|
2759
|
-
case "com.amazonaws.codeguruprofiler#ConflictException": return [3
|
|
2760
|
-
case "InternalServerException": return [3
|
|
2761
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3
|
|
2762
|
-
case "ResourceNotFoundException": return [3
|
|
2763
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3
|
|
2764
|
-
case "ThrottlingException": return [3
|
|
2765
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3
|
|
2766
|
-
case "ValidationException": return [3
|
|
2767
|
-
case "com.amazonaws.codeguruprofiler#ValidationException": return [3
|
|
2768
|
-
}
|
|
2769
|
-
return [3
|
|
2758
|
+
case "ConflictException": return [3, 2];
|
|
2759
|
+
case "com.amazonaws.codeguruprofiler#ConflictException": return [3, 2];
|
|
2760
|
+
case "InternalServerException": return [3, 4];
|
|
2761
|
+
case "com.amazonaws.codeguruprofiler#InternalServerException": return [3, 4];
|
|
2762
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2763
|
+
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException": return [3, 6];
|
|
2764
|
+
case "ThrottlingException": return [3, 8];
|
|
2765
|
+
case "com.amazonaws.codeguruprofiler#ThrottlingException": return [3, 8];
|
|
2766
|
+
case "ValidationException": return [3, 10];
|
|
2767
|
+
case "com.amazonaws.codeguruprofiler#ValidationException": return [3, 10];
|
|
2768
|
+
}
|
|
2769
|
+
return [3, 12];
|
|
2770
2770
|
case 2:
|
|
2771
2771
|
_c = [{}];
|
|
2772
|
-
return [4
|
|
2772
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2773
2773
|
case 3:
|
|
2774
2774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2775
|
-
return [3
|
|
2775
|
+
return [3, 13];
|
|
2776
2776
|
case 4:
|
|
2777
2777
|
_d = [{}];
|
|
2778
|
-
return [4
|
|
2778
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2779
2779
|
case 5:
|
|
2780
2780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2781
|
-
return [3
|
|
2781
|
+
return [3, 13];
|
|
2782
2782
|
case 6:
|
|
2783
2783
|
_e = [{}];
|
|
2784
|
-
return [4
|
|
2784
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2785
2785
|
case 7:
|
|
2786
2786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2787
|
-
return [3
|
|
2787
|
+
return [3, 13];
|
|
2788
2788
|
case 8:
|
|
2789
2789
|
_f = [{}];
|
|
2790
|
-
return [4
|
|
2790
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2791
2791
|
case 9:
|
|
2792
2792
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2793
|
-
return [3
|
|
2793
|
+
return [3, 13];
|
|
2794
2794
|
case 10:
|
|
2795
2795
|
_g = [{}];
|
|
2796
|
-
return [4
|
|
2796
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2797
2797
|
case 11:
|
|
2798
2798
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2799
|
-
return [3
|
|
2799
|
+
return [3, 13];
|
|
2800
2800
|
case 12:
|
|
2801
2801
|
parsedBody = parsedOutput.body;
|
|
2802
2802
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2806,7 +2806,7 @@ var deserializeAws_restJson1UpdateProfilingGroupCommandError = function (output,
|
|
|
2806
2806
|
message = response.message || response.Message || errorCode;
|
|
2807
2807
|
response.message = message;
|
|
2808
2808
|
delete response.Message;
|
|
2809
|
-
return [2
|
|
2809
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2810
2810
|
}
|
|
2811
2811
|
});
|
|
2812
2812
|
}); };
|
|
@@ -2823,7 +2823,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2823
2823
|
if (data.message !== undefined && data.message !== null) {
|
|
2824
2824
|
contents.message = __expectString(data.message);
|
|
2825
2825
|
}
|
|
2826
|
-
return [2
|
|
2826
|
+
return [2, contents];
|
|
2827
2827
|
});
|
|
2828
2828
|
}); };
|
|
2829
2829
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2840,7 +2840,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2840
2840
|
if (data.message !== undefined && data.message !== null) {
|
|
2841
2841
|
contents.message = __expectString(data.message);
|
|
2842
2842
|
}
|
|
2843
|
-
return [2
|
|
2843
|
+
return [2, contents];
|
|
2844
2844
|
});
|
|
2845
2845
|
}); };
|
|
2846
2846
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2856,7 +2856,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2856
2856
|
if (data.message !== undefined && data.message !== null) {
|
|
2857
2857
|
contents.message = __expectString(data.message);
|
|
2858
2858
|
}
|
|
2859
|
-
return [2
|
|
2859
|
+
return [2, contents];
|
|
2860
2860
|
});
|
|
2861
2861
|
}); };
|
|
2862
2862
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2873,7 +2873,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2873
2873
|
if (data.message !== undefined && data.message !== null) {
|
|
2874
2874
|
contents.message = __expectString(data.message);
|
|
2875
2875
|
}
|
|
2876
|
-
return [2
|
|
2876
|
+
return [2, contents];
|
|
2877
2877
|
});
|
|
2878
2878
|
}); };
|
|
2879
2879
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2890,7 +2890,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
2890
2890
|
if (data.message !== undefined && data.message !== null) {
|
|
2891
2891
|
contents.message = __expectString(data.message);
|
|
2892
2892
|
}
|
|
2893
|
-
return [2
|
|
2893
|
+
return [2, contents];
|
|
2894
2894
|
});
|
|
2895
2895
|
}); };
|
|
2896
2896
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2906,7 +2906,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
2906
2906
|
if (data.message !== undefined && data.message !== null) {
|
|
2907
2907
|
contents.message = __expectString(data.message);
|
|
2908
2908
|
}
|
|
2909
|
-
return [2
|
|
2909
|
+
return [2, contents];
|
|
2910
2910
|
});
|
|
2911
2911
|
}); };
|
|
2912
2912
|
var serializeAws_restJson1AgentOrchestrationConfig = function (input, context) {
|
|
@@ -3416,7 +3416,6 @@ var deserializeMetadata = function (output) {
|
|
|
3416
3416
|
cfId: output.headers["x-amz-cf-id"],
|
|
3417
3417
|
});
|
|
3418
3418
|
};
|
|
3419
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3420
3419
|
var collectBody = function (streamBody, context) {
|
|
3421
3420
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3422
3421
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3424,7 +3423,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3424
3423
|
}
|
|
3425
3424
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3426
3425
|
};
|
|
3427
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3428
3426
|
var collectBodyString = function (streamBody, context) {
|
|
3429
3427
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3430
3428
|
};
|
|
@@ -3443,9 +3441,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3443
3441
|
return {};
|
|
3444
3442
|
});
|
|
3445
3443
|
};
|
|
3446
|
-
/**
|
|
3447
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3448
|
-
*/
|
|
3449
3444
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3450
3445
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3451
3446
|
var sanitizeErrorCode = function (rawValue) {
|