@aws-sdk/client-inspector 3.32.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/Inspector.js +1 -2
- package/{dist/cjs → dist-cjs}/InspectorClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/AddAttributesToFindingsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateAssessmentTargetCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateAssessmentTemplateCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateExclusionsPreviewCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateResourceGroupCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteAssessmentRunCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteAssessmentTargetCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteAssessmentTemplateCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeAssessmentRunsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeAssessmentTargetsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeAssessmentTemplatesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeCrossAccountAccessRoleCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeExclusionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeFindingsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeResourceGroupsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeRulesPackagesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetAssessmentReportCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetExclusionsPreviewCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetTelemetryMetadataCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAssessmentRunAgentsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAssessmentRunsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAssessmentTargetsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAssessmentTemplatesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListEventSubscriptionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListExclusionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListFindingsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListRulesPackagesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PreviewAgentsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RegisterCrossAccountAccessRoleCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RemoveAttributesFromFindingsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/SetTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartAssessmentRunCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StopAssessmentRunCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/SubscribeToEventCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UnsubscribeFromEventCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateAssessmentTargetCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/GetExclusionsPreviewPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAssessmentRunAgentsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListAssessmentRunsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListAssessmentTargetsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListAssessmentTemplatesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListEventSubscriptionsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListExclusionsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListFindingsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListRulesPackagesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/PreviewAgentsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/Inspector.js +2 -9
- package/{dist/es → dist-es}/InspectorClient.js +2 -14
- package/{dist/es → dist-es}/commands/AddAttributesToFindingsCommand.js +4 -31
- package/dist-es/commands/CreateAssessmentTargetCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CreateAssessmentTemplateCommand.js +4 -33
- package/{dist/es → dist-es}/commands/CreateExclusionsPreviewCommand.js +4 -32
- package/{dist/es → dist-es}/commands/CreateResourceGroupCommand.js +4 -33
- package/{dist/es → dist-es}/commands/DeleteAssessmentRunCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DeleteAssessmentTargetCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DeleteAssessmentTemplateCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeAssessmentRunsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeAssessmentTargetsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeAssessmentTemplatesCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeCrossAccountAccessRoleCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeExclusionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeFindingsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeResourceGroupsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeRulesPackagesCommand.js +4 -31
- package/{dist/es → dist-es}/commands/GetAssessmentReportCommand.js +4 -31
- package/{dist/es → dist-es}/commands/GetExclusionsPreviewCommand.js +4 -32
- package/{dist/es → dist-es}/commands/GetTelemetryMetadataCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListAssessmentRunAgentsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListAssessmentRunsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListAssessmentTargetsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/ListAssessmentTemplatesCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListEventSubscriptionsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListExclusionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListFindingsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListRulesPackagesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/PreviewAgentsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/RegisterCrossAccountAccessRoleCommand.js +4 -31
- package/{dist/es → dist-es}/commands/RemoveAttributesFromFindingsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/SetTagsForResourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/StartAssessmentRunCommand.js +4 -32
- package/{dist/es → dist-es}/commands/StopAssessmentRunCommand.js +4 -31
- package/{dist/es → dist-es}/commands/SubscribeToEventCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UnsubscribeFromEventCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateAssessmentTargetCommand.js +4 -33
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -325
- package/{dist/es → dist-es}/pagination/GetExclusionsPreviewPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListAssessmentRunAgentsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListAssessmentRunsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListAssessmentTargetsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListAssessmentTemplatesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListEventSubscriptionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListExclusionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListFindingsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListRulesPackagesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/PreviewAgentsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +912 -918
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/Inspector.d.ts +2 -2
- package/{dist/types → dist-types}/InspectorClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AddAttributesToFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateAssessmentTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateAssessmentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateExclusionsPreviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateResourceGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAssessmentRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAssessmentTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAssessmentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAssessmentRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAssessmentTargetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAssessmentTemplatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeCrossAccountAccessRoleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeExclusionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeResourceGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRulesPackagesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAssessmentReportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetExclusionsPreviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetTelemetryMetadataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAssessmentRunAgentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAssessmentRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAssessmentTargetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAssessmentTemplatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListEventSubscriptionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListExclusionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRulesPackagesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PreviewAgentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RegisterCrossAccountAccessRoleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RemoveAttributesFromFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SetTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartAssessmentRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopAssessmentRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SubscribeToEventCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UnsubscribeFromEventCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateAssessmentTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/GetExclusionsPreviewPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAssessmentRunAgentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAssessmentRunsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAssessmentTargetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAssessmentTemplatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListEventSubscriptionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListExclusionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListFindingsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRulesPackagesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/PreviewAgentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Inspector.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/InspectorClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/AddAttributesToFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateAssessmentTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateAssessmentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateExclusionsPreviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateResourceGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAssessmentRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAssessmentTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAssessmentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAssessmentRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAssessmentTargetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAssessmentTemplatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeCrossAccountAccessRoleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeExclusionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeResourceGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRulesPackagesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetAssessmentReportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetExclusionsPreviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetTelemetryMetadataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAssessmentRunAgentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAssessmentRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAssessmentTargetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAssessmentTemplatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListEventSubscriptionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListExclusionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListRulesPackagesCommand.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/PreviewAgentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RegisterCrossAccountAccessRoleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RemoveAttributesFromFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/SetTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartAssessmentRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopAssessmentRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/SubscribeToEventCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UnsubscribeFromEventCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateAssessmentTargetCommand.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/GetExclusionsPreviewPaginator.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/ListAssessmentRunAgentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAssessmentRunsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAssessmentTargetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAssessmentTemplatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListEventSubscriptionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListExclusionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListFindingsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRulesPackagesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/PreviewAgentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/Inspector.ts +0 -1424
- package/InspectorClient.ts +0 -427
- package/commands/AddAttributesToFindingsCommand.ts +0 -95
- package/commands/CreateAssessmentTargetCommand.ts +0 -101
- package/commands/CreateAssessmentTemplateCommand.ts +0 -97
- package/commands/CreateExclusionsPreviewCommand.ts +0 -96
- package/commands/CreateResourceGroupCommand.ts +0 -97
- package/commands/DeleteAssessmentRunCommand.ts +0 -95
- package/commands/DeleteAssessmentTargetCommand.ts +0 -95
- package/commands/DeleteAssessmentTemplateCommand.ts +0 -95
- package/commands/DescribeAssessmentRunsCommand.ts +0 -95
- package/commands/DescribeAssessmentTargetsCommand.ts +0 -98
- package/commands/DescribeAssessmentTemplatesCommand.ts +0 -100
- package/commands/DescribeCrossAccountAccessRoleCommand.ts +0 -103
- package/commands/DescribeExclusionsCommand.ts +0 -94
- package/commands/DescribeFindingsCommand.ts +0 -94
- package/commands/DescribeResourceGroupsCommand.ts +0 -95
- package/commands/DescribeRulesPackagesCommand.ts +0 -95
- package/commands/GetAssessmentReportCommand.ts +0 -95
- package/commands/GetExclusionsPreviewCommand.ts +0 -96
- package/commands/GetTelemetryMetadataCommand.ts +0 -95
- package/commands/ListAssessmentRunAgentsCommand.ts +0 -95
- package/commands/ListAssessmentRunsCommand.ts +0 -95
- package/commands/ListAssessmentTargetsCommand.ts +0 -96
- package/commands/ListAssessmentTemplatesCommand.ts +0 -95
- package/commands/ListEventSubscriptionsCommand.ts +0 -95
- package/commands/ListExclusionsCommand.ts +0 -94
- package/commands/ListFindingsCommand.ts +0 -95
- package/commands/ListRulesPackagesCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/PreviewAgentsCommand.ts +0 -95
- package/commands/RegisterCrossAccountAccessRoleCommand.ts +0 -101
- package/commands/RemoveAttributesFromFindingsCommand.ts +0 -100
- package/commands/SetTagsForResourceCommand.ts +0 -95
- package/commands/StartAssessmentRunCommand.ts +0 -96
- package/commands/StopAssessmentRunCommand.ts +0 -95
- package/commands/SubscribeToEventCommand.ts +0 -95
- package/commands/UnsubscribeFromEventCommand.ts +0 -95
- package/commands/UpdateAssessmentTargetCommand.ts +0 -97
- package/dist/cjs/Inspector.js.map +0 -1
- package/dist/cjs/InspectorClient.js.map +0 -1
- package/dist/cjs/commands/AddAttributesToFindingsCommand.js.map +0 -1
- package/dist/cjs/commands/CreateAssessmentTargetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateAssessmentTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/CreateExclusionsPreviewCommand.js.map +0 -1
- package/dist/cjs/commands/CreateResourceGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAssessmentRunCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAssessmentTargetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAssessmentTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAssessmentRunsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAssessmentTargetsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAssessmentTemplatesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeExclusionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeFindingsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeResourceGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRulesPackagesCommand.js.map +0 -1
- package/dist/cjs/commands/GetAssessmentReportCommand.js.map +0 -1
- package/dist/cjs/commands/GetExclusionsPreviewCommand.js.map +0 -1
- package/dist/cjs/commands/GetTelemetryMetadataCommand.js.map +0 -1
- package/dist/cjs/commands/ListAssessmentRunAgentsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAssessmentRunsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAssessmentTargetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAssessmentTemplatesCommand.js.map +0 -1
- package/dist/cjs/commands/ListEventSubscriptionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListExclusionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListFindingsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRulesPackagesCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PreviewAgentsCommand.js.map +0 -1
- package/dist/cjs/commands/RegisterCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveAttributesFromFindingsCommand.js.map +0 -1
- package/dist/cjs/commands/SetTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartAssessmentRunCommand.js.map +0 -1
- package/dist/cjs/commands/StopAssessmentRunCommand.js.map +0 -1
- package/dist/cjs/commands/SubscribeToEventCommand.js.map +0 -1
- package/dist/cjs/commands/UnsubscribeFromEventCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateAssessmentTargetCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/GetExclusionsPreviewPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListAssessmentRunAgentsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAssessmentRunsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAssessmentTargetsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAssessmentTemplatesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListEventSubscriptionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListExclusionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRulesPackagesPaginator.js.map +0 -1
- package/dist/cjs/pagination/PreviewAgentsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Inspector.js.map +0 -1
- package/dist/es/InspectorClient.js.map +0 -1
- package/dist/es/commands/AddAttributesToFindingsCommand.js.map +0 -1
- package/dist/es/commands/CreateAssessmentTargetCommand.js +0 -72
- package/dist/es/commands/CreateAssessmentTargetCommand.js.map +0 -1
- package/dist/es/commands/CreateAssessmentTemplateCommand.js.map +0 -1
- package/dist/es/commands/CreateExclusionsPreviewCommand.js.map +0 -1
- package/dist/es/commands/CreateResourceGroupCommand.js.map +0 -1
- package/dist/es/commands/DeleteAssessmentRunCommand.js.map +0 -1
- package/dist/es/commands/DeleteAssessmentTargetCommand.js.map +0 -1
- package/dist/es/commands/DeleteAssessmentTemplateCommand.js.map +0 -1
- package/dist/es/commands/DescribeAssessmentRunsCommand.js.map +0 -1
- package/dist/es/commands/DescribeAssessmentTargetsCommand.js.map +0 -1
- package/dist/es/commands/DescribeAssessmentTemplatesCommand.js.map +0 -1
- package/dist/es/commands/DescribeCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist/es/commands/DescribeExclusionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeFindingsCommand.js.map +0 -1
- package/dist/es/commands/DescribeResourceGroupsCommand.js.map +0 -1
- package/dist/es/commands/DescribeRulesPackagesCommand.js.map +0 -1
- package/dist/es/commands/GetAssessmentReportCommand.js.map +0 -1
- package/dist/es/commands/GetExclusionsPreviewCommand.js.map +0 -1
- package/dist/es/commands/GetTelemetryMetadataCommand.js.map +0 -1
- package/dist/es/commands/ListAssessmentRunAgentsCommand.js.map +0 -1
- package/dist/es/commands/ListAssessmentRunsCommand.js.map +0 -1
- package/dist/es/commands/ListAssessmentTargetsCommand.js.map +0 -1
- package/dist/es/commands/ListAssessmentTemplatesCommand.js.map +0 -1
- package/dist/es/commands/ListEventSubscriptionsCommand.js.map +0 -1
- package/dist/es/commands/ListExclusionsCommand.js.map +0 -1
- package/dist/es/commands/ListFindingsCommand.js.map +0 -1
- package/dist/es/commands/ListRulesPackagesCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PreviewAgentsCommand.js.map +0 -1
- package/dist/es/commands/RegisterCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist/es/commands/RemoveAttributesFromFindingsCommand.js.map +0 -1
- package/dist/es/commands/SetTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StartAssessmentRunCommand.js.map +0 -1
- package/dist/es/commands/StopAssessmentRunCommand.js.map +0 -1
- package/dist/es/commands/SubscribeToEventCommand.js.map +0 -1
- package/dist/es/commands/UnsubscribeFromEventCommand.js.map +0 -1
- package/dist/es/commands/UpdateAssessmentTargetCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -52
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/GetExclusionsPreviewPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListAssessmentRunAgentsPaginator.js.map +0 -1
- package/dist/es/pagination/ListAssessmentRunsPaginator.js.map +0 -1
- package/dist/es/pagination/ListAssessmentTargetsPaginator.js.map +0 -1
- package/dist/es/pagination/ListAssessmentTemplatesPaginator.js.map +0 -1
- package/dist/es/pagination/ListEventSubscriptionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListExclusionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRulesPackagesPaginator.js.map +0 -1
- package/dist/es/pagination/PreviewAgentsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -86
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -3381
- package/pagination/GetExclusionsPreviewPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListAssessmentRunAgentsPaginator.ts +0 -58
- package/pagination/ListAssessmentRunsPaginator.ts +0 -58
- package/pagination/ListAssessmentTargetsPaginator.ts +0 -58
- package/pagination/ListAssessmentTemplatesPaginator.ts +0 -58
- package/pagination/ListEventSubscriptionsPaginator.ts +0 -58
- package/pagination/ListExclusionsPaginator.ts +0 -58
- package/pagination/ListFindingsPaginator.ts +0 -58
- package/pagination/ListRulesPackagesPaginator.ts +0 -58
- package/pagination/PreviewAgentsPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -5925
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1AddAttributesToFindingsCommand = function (input,
|
|
|
9
9
|
"x-amz-target": "InspectorService.AddAttributesToFindings",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1AddAttributesToFindingsRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateAssessmentTargetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateAssessmentTargetCommand = function (input,
|
|
|
20
20
|
"x-amz-target": "InspectorService.CreateAssessmentTarget",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateAssessmentTargetRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateAssessmentTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateAssessmentTemplateCommand = function (input
|
|
|
31
31
|
"x-amz-target": "InspectorService.CreateAssessmentTemplate",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateAssessmentTemplateRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CreateExclusionsPreviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreateExclusionsPreviewCommand = function (input,
|
|
|
42
42
|
"x-amz-target": "InspectorService.CreateExclusionsPreview",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CreateExclusionsPreviewRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1CreateResourceGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1CreateResourceGroupCommand = function (input, con
|
|
|
53
53
|
"x-amz-target": "InspectorService.CreateResourceGroup",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1CreateResourceGroupRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeleteAssessmentRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteAssessmentRunCommand = function (input, con
|
|
|
64
64
|
"x-amz-target": "InspectorService.DeleteAssessmentRun",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeleteAssessmentRunRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DeleteAssessmentTargetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DeleteAssessmentTargetCommand = function (input,
|
|
|
75
75
|
"x-amz-target": "InspectorService.DeleteAssessmentTarget",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DeleteAssessmentTargetRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DeleteAssessmentTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DeleteAssessmentTemplateCommand = function (input
|
|
|
86
86
|
"x-amz-target": "InspectorService.DeleteAssessmentTemplate",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DeleteAssessmentTemplateRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DescribeAssessmentRunsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DescribeAssessmentRunsCommand = function (input,
|
|
|
97
97
|
"x-amz-target": "InspectorService.DescribeAssessmentRuns",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DescribeAssessmentRunsRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DescribeAssessmentTargetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DescribeAssessmentTargetsCommand = function (inpu
|
|
|
108
108
|
"x-amz-target": "InspectorService.DescribeAssessmentTargets",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DescribeAssessmentTargetsRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1DescribeAssessmentTemplatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DescribeAssessmentTemplatesCommand = function (in
|
|
|
119
119
|
"x-amz-target": "InspectorService.DescribeAssessmentTemplates",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1DescribeAssessmentTemplatesRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1DescribeCrossAccountAccessRoleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DescribeCrossAccountAccessRoleCommand = function
|
|
|
130
130
|
"x-amz-target": "InspectorService.DescribeCrossAccountAccessRole",
|
|
131
131
|
};
|
|
132
132
|
body = "{}";
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1DescribeExclusionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1DescribeExclusionsCommand = function (input, cont
|
|
|
141
141
|
"x-amz-target": "InspectorService.DescribeExclusions",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1DescribeExclusionsRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1DescribeFindingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1DescribeFindingsCommand = function (input, contex
|
|
|
152
152
|
"x-amz-target": "InspectorService.DescribeFindings",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1DescribeFindingsRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1DescribeResourceGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1DescribeResourceGroupsCommand = function (input,
|
|
|
163
163
|
"x-amz-target": "InspectorService.DescribeResourceGroups",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1DescribeResourceGroupsRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1DescribeRulesPackagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1DescribeRulesPackagesCommand = function (input, c
|
|
|
174
174
|
"x-amz-target": "InspectorService.DescribeRulesPackages",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1DescribeRulesPackagesRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1GetAssessmentReportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1GetAssessmentReportCommand = function (input, con
|
|
|
185
185
|
"x-amz-target": "InspectorService.GetAssessmentReport",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1GetAssessmentReportRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1GetExclusionsPreviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1GetExclusionsPreviewCommand = function (input, co
|
|
|
196
196
|
"x-amz-target": "InspectorService.GetExclusionsPreview",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1GetExclusionsPreviewRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1GetTelemetryMetadataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1GetTelemetryMetadataCommand = function (input, co
|
|
|
207
207
|
"x-amz-target": "InspectorService.GetTelemetryMetadata",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1GetTelemetryMetadataRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1ListAssessmentRunAgentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1ListAssessmentRunAgentsCommand = function (input,
|
|
|
218
218
|
"x-amz-target": "InspectorService.ListAssessmentRunAgents",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1ListAssessmentRunAgentsRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1ListAssessmentRunsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1ListAssessmentRunsCommand = function (input, cont
|
|
|
229
229
|
"x-amz-target": "InspectorService.ListAssessmentRuns",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1ListAssessmentRunsRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1ListAssessmentTargetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1ListAssessmentTargetsCommand = function (input, c
|
|
|
240
240
|
"x-amz-target": "InspectorService.ListAssessmentTargets",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1ListAssessmentTargetsRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1ListAssessmentTemplatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1ListAssessmentTemplatesCommand = function (input,
|
|
|
251
251
|
"x-amz-target": "InspectorService.ListAssessmentTemplates",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1ListAssessmentTemplatesRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_1ListEventSubscriptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_1ListEventSubscriptionsCommand = function (input,
|
|
|
262
262
|
"x-amz-target": "InspectorService.ListEventSubscriptions",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_1ListEventSubscriptionsRequest(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_1ListExclusionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_1ListExclusionsCommand = function (input, context)
|
|
|
273
273
|
"x-amz-target": "InspectorService.ListExclusions",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_1ListExclusionsRequest(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_1ListFindingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_1ListFindingsCommand = function (input, context) {
|
|
|
284
284
|
"x-amz-target": "InspectorService.ListFindings",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_1ListFindingsRequest(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_1ListRulesPackagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_1ListRulesPackagesCommand = function (input, conte
|
|
|
295
295
|
"x-amz-target": "InspectorService.ListRulesPackages",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_1ListRulesPackagesRequest(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
306
306
|
"x-amz-target": "InspectorService.ListTagsForResource",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var serializeAws_json1_1PreviewAgentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -317,7 +317,7 @@ export var serializeAws_json1_1PreviewAgentsCommand = function (input, context)
|
|
|
317
317
|
"x-amz-target": "InspectorService.PreviewAgents",
|
|
318
318
|
};
|
|
319
319
|
body = JSON.stringify(serializeAws_json1_1PreviewAgentsRequest(input, context));
|
|
320
|
-
return [2
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
321
|
});
|
|
322
322
|
}); };
|
|
323
323
|
export var serializeAws_json1_1RegisterCrossAccountAccessRoleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -328,7 +328,7 @@ export var serializeAws_json1_1RegisterCrossAccountAccessRoleCommand = function
|
|
|
328
328
|
"x-amz-target": "InspectorService.RegisterCrossAccountAccessRole",
|
|
329
329
|
};
|
|
330
330
|
body = JSON.stringify(serializeAws_json1_1RegisterCrossAccountAccessRoleRequest(input, context));
|
|
331
|
-
return [2
|
|
331
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
332
332
|
});
|
|
333
333
|
}); };
|
|
334
334
|
export var serializeAws_json1_1RemoveAttributesFromFindingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -339,7 +339,7 @@ export var serializeAws_json1_1RemoveAttributesFromFindingsCommand = function (i
|
|
|
339
339
|
"x-amz-target": "InspectorService.RemoveAttributesFromFindings",
|
|
340
340
|
};
|
|
341
341
|
body = JSON.stringify(serializeAws_json1_1RemoveAttributesFromFindingsRequest(input, context));
|
|
342
|
-
return [2
|
|
342
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
343
343
|
});
|
|
344
344
|
}); };
|
|
345
345
|
export var serializeAws_json1_1SetTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -350,7 +350,7 @@ export var serializeAws_json1_1SetTagsForResourceCommand = function (input, cont
|
|
|
350
350
|
"x-amz-target": "InspectorService.SetTagsForResource",
|
|
351
351
|
};
|
|
352
352
|
body = JSON.stringify(serializeAws_json1_1SetTagsForResourceRequest(input, context));
|
|
353
|
-
return [2
|
|
353
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
354
354
|
});
|
|
355
355
|
}); };
|
|
356
356
|
export var serializeAws_json1_1StartAssessmentRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -361,7 +361,7 @@ export var serializeAws_json1_1StartAssessmentRunCommand = function (input, cont
|
|
|
361
361
|
"x-amz-target": "InspectorService.StartAssessmentRun",
|
|
362
362
|
};
|
|
363
363
|
body = JSON.stringify(serializeAws_json1_1StartAssessmentRunRequest(input, context));
|
|
364
|
-
return [2
|
|
364
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
365
365
|
});
|
|
366
366
|
}); };
|
|
367
367
|
export var serializeAws_json1_1StopAssessmentRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -372,7 +372,7 @@ export var serializeAws_json1_1StopAssessmentRunCommand = function (input, conte
|
|
|
372
372
|
"x-amz-target": "InspectorService.StopAssessmentRun",
|
|
373
373
|
};
|
|
374
374
|
body = JSON.stringify(serializeAws_json1_1StopAssessmentRunRequest(input, context));
|
|
375
|
-
return [2
|
|
375
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
376
376
|
});
|
|
377
377
|
}); };
|
|
378
378
|
export var serializeAws_json1_1SubscribeToEventCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -383,7 +383,7 @@ export var serializeAws_json1_1SubscribeToEventCommand = function (input, contex
|
|
|
383
383
|
"x-amz-target": "InspectorService.SubscribeToEvent",
|
|
384
384
|
};
|
|
385
385
|
body = JSON.stringify(serializeAws_json1_1SubscribeToEventRequest(input, context));
|
|
386
|
-
return [2
|
|
386
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
387
387
|
});
|
|
388
388
|
}); };
|
|
389
389
|
export var serializeAws_json1_1UnsubscribeFromEventCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -394,7 +394,7 @@ export var serializeAws_json1_1UnsubscribeFromEventCommand = function (input, co
|
|
|
394
394
|
"x-amz-target": "InspectorService.UnsubscribeFromEvent",
|
|
395
395
|
};
|
|
396
396
|
body = JSON.stringify(serializeAws_json1_1UnsubscribeFromEventRequest(input, context));
|
|
397
|
-
return [2
|
|
397
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
398
398
|
});
|
|
399
399
|
}); };
|
|
400
400
|
export var serializeAws_json1_1UpdateAssessmentTargetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -405,7 +405,7 @@ export var serializeAws_json1_1UpdateAssessmentTargetCommand = function (input,
|
|
|
405
405
|
"x-amz-target": "InspectorService.UpdateAssessmentTarget",
|
|
406
406
|
};
|
|
407
407
|
body = JSON.stringify(serializeAws_json1_1UpdateAssessmentTargetRequest(input, context));
|
|
408
|
-
return [2
|
|
408
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
409
409
|
});
|
|
410
410
|
}); };
|
|
411
411
|
export var deserializeAws_json1_1AddAttributesToFindingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -414,15 +414,15 @@ export var deserializeAws_json1_1AddAttributesToFindingsCommand = function (outp
|
|
|
414
414
|
switch (_a.label) {
|
|
415
415
|
case 0:
|
|
416
416
|
if (output.statusCode >= 300) {
|
|
417
|
-
return [2
|
|
417
|
+
return [2, deserializeAws_json1_1AddAttributesToFindingsCommandError(output, context)];
|
|
418
418
|
}
|
|
419
|
-
return [4
|
|
419
|
+
return [4, parseBody(output.body, context)];
|
|
420
420
|
case 1:
|
|
421
421
|
data = _a.sent();
|
|
422
422
|
contents = {};
|
|
423
423
|
contents = deserializeAws_json1_1AddAttributesToFindingsResponse(data, context);
|
|
424
424
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
425
|
-
return [2
|
|
425
|
+
return [2, Promise.resolve(response)];
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
428
|
}); };
|
|
@@ -434,55 +434,55 @@ var deserializeAws_json1_1AddAttributesToFindingsCommandError = function (output
|
|
|
434
434
|
case 0:
|
|
435
435
|
_a = [__assign({}, output)];
|
|
436
436
|
_h = {};
|
|
437
|
-
return [4
|
|
437
|
+
return [4, parseBody(output.body, context)];
|
|
438
438
|
case 1:
|
|
439
439
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
440
440
|
errorCode = "UnknownError";
|
|
441
441
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
442
|
_b = errorCode;
|
|
443
443
|
switch (_b) {
|
|
444
|
-
case "AccessDeniedException": return [3
|
|
445
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
446
|
-
case "InternalException": return [3
|
|
447
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
448
|
-
case "InvalidInputException": return [3
|
|
449
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
450
|
-
case "NoSuchEntityException": return [3
|
|
451
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
452
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
453
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
444
|
+
case "AccessDeniedException": return [3, 2];
|
|
445
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
446
|
+
case "InternalException": return [3, 4];
|
|
447
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
448
|
+
case "InvalidInputException": return [3, 6];
|
|
449
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
450
|
+
case "NoSuchEntityException": return [3, 8];
|
|
451
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
452
|
+
case "ServiceTemporarilyUnavailableException": return [3, 10];
|
|
453
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 10];
|
|
454
454
|
}
|
|
455
|
-
return [3
|
|
455
|
+
return [3, 12];
|
|
456
456
|
case 2:
|
|
457
457
|
_c = [{}];
|
|
458
|
-
return [4
|
|
458
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
459
459
|
case 3:
|
|
460
460
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
461
|
-
return [3
|
|
461
|
+
return [3, 13];
|
|
462
462
|
case 4:
|
|
463
463
|
_d = [{}];
|
|
464
|
-
return [4
|
|
464
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
465
465
|
case 5:
|
|
466
466
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
467
|
-
return [3
|
|
467
|
+
return [3, 13];
|
|
468
468
|
case 6:
|
|
469
469
|
_e = [{}];
|
|
470
|
-
return [4
|
|
470
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
471
471
|
case 7:
|
|
472
472
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
473
|
-
return [3
|
|
473
|
+
return [3, 13];
|
|
474
474
|
case 8:
|
|
475
475
|
_f = [{}];
|
|
476
|
-
return [4
|
|
476
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
477
477
|
case 9:
|
|
478
478
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
479
|
-
return [3
|
|
479
|
+
return [3, 13];
|
|
480
480
|
case 10:
|
|
481
481
|
_g = [{}];
|
|
482
|
-
return [4
|
|
482
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
483
483
|
case 11:
|
|
484
484
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
485
|
-
return [3
|
|
485
|
+
return [3, 13];
|
|
486
486
|
case 12:
|
|
487
487
|
parsedBody = parsedOutput.body;
|
|
488
488
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -492,7 +492,7 @@ var deserializeAws_json1_1AddAttributesToFindingsCommandError = function (output
|
|
|
492
492
|
message = response.message || response.Message || errorCode;
|
|
493
493
|
response.message = message;
|
|
494
494
|
delete response.Message;
|
|
495
|
-
return [2
|
|
495
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
}); };
|
|
@@ -502,15 +502,15 @@ export var deserializeAws_json1_1CreateAssessmentTargetCommand = function (outpu
|
|
|
502
502
|
switch (_a.label) {
|
|
503
503
|
case 0:
|
|
504
504
|
if (output.statusCode >= 300) {
|
|
505
|
-
return [2
|
|
505
|
+
return [2, deserializeAws_json1_1CreateAssessmentTargetCommandError(output, context)];
|
|
506
506
|
}
|
|
507
|
-
return [4
|
|
507
|
+
return [4, parseBody(output.body, context)];
|
|
508
508
|
case 1:
|
|
509
509
|
data = _a.sent();
|
|
510
510
|
contents = {};
|
|
511
511
|
contents = deserializeAws_json1_1CreateAssessmentTargetResponse(data, context);
|
|
512
512
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
513
|
-
return [2
|
|
513
|
+
return [2, Promise.resolve(response)];
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
}); };
|
|
@@ -522,71 +522,71 @@ var deserializeAws_json1_1CreateAssessmentTargetCommandError = function (output,
|
|
|
522
522
|
case 0:
|
|
523
523
|
_a = [__assign({}, output)];
|
|
524
524
|
_k = {};
|
|
525
|
-
return [4
|
|
525
|
+
return [4, parseBody(output.body, context)];
|
|
526
526
|
case 1:
|
|
527
527
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
528
528
|
errorCode = "UnknownError";
|
|
529
529
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
530
|
_b = errorCode;
|
|
531
531
|
switch (_b) {
|
|
532
|
-
case "AccessDeniedException": return [3
|
|
533
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
534
|
-
case "InternalException": return [3
|
|
535
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
536
|
-
case "InvalidCrossAccountRoleException": return [3
|
|
537
|
-
case "com.amazonaws.inspector#InvalidCrossAccountRoleException": return [3
|
|
538
|
-
case "InvalidInputException": return [3
|
|
539
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
540
|
-
case "LimitExceededException": return [3
|
|
541
|
-
case "com.amazonaws.inspector#LimitExceededException": return [3
|
|
542
|
-
case "NoSuchEntityException": return [3
|
|
543
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
544
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
545
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
532
|
+
case "AccessDeniedException": return [3, 2];
|
|
533
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
534
|
+
case "InternalException": return [3, 4];
|
|
535
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
536
|
+
case "InvalidCrossAccountRoleException": return [3, 6];
|
|
537
|
+
case "com.amazonaws.inspector#InvalidCrossAccountRoleException": return [3, 6];
|
|
538
|
+
case "InvalidInputException": return [3, 8];
|
|
539
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 8];
|
|
540
|
+
case "LimitExceededException": return [3, 10];
|
|
541
|
+
case "com.amazonaws.inspector#LimitExceededException": return [3, 10];
|
|
542
|
+
case "NoSuchEntityException": return [3, 12];
|
|
543
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 12];
|
|
544
|
+
case "ServiceTemporarilyUnavailableException": return [3, 14];
|
|
545
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 14];
|
|
546
546
|
}
|
|
547
|
-
return [3
|
|
547
|
+
return [3, 16];
|
|
548
548
|
case 2:
|
|
549
549
|
_c = [{}];
|
|
550
|
-
return [4
|
|
550
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
551
551
|
case 3:
|
|
552
552
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
553
|
-
return [3
|
|
553
|
+
return [3, 17];
|
|
554
554
|
case 4:
|
|
555
555
|
_d = [{}];
|
|
556
|
-
return [4
|
|
556
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
557
557
|
case 5:
|
|
558
558
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
559
|
-
return [3
|
|
559
|
+
return [3, 17];
|
|
560
560
|
case 6:
|
|
561
561
|
_e = [{}];
|
|
562
|
-
return [4
|
|
562
|
+
return [4, deserializeAws_json1_1InvalidCrossAccountRoleExceptionResponse(parsedOutput, context)];
|
|
563
563
|
case 7:
|
|
564
564
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
565
|
-
return [3
|
|
565
|
+
return [3, 17];
|
|
566
566
|
case 8:
|
|
567
567
|
_f = [{}];
|
|
568
|
-
return [4
|
|
568
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
569
569
|
case 9:
|
|
570
570
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
571
|
-
return [3
|
|
571
|
+
return [3, 17];
|
|
572
572
|
case 10:
|
|
573
573
|
_g = [{}];
|
|
574
|
-
return [4
|
|
574
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
575
575
|
case 11:
|
|
576
576
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
577
|
-
return [3
|
|
577
|
+
return [3, 17];
|
|
578
578
|
case 12:
|
|
579
579
|
_h = [{}];
|
|
580
|
-
return [4
|
|
580
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
581
581
|
case 13:
|
|
582
582
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
583
|
-
return [3
|
|
583
|
+
return [3, 17];
|
|
584
584
|
case 14:
|
|
585
585
|
_j = [{}];
|
|
586
|
-
return [4
|
|
586
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
587
587
|
case 15:
|
|
588
588
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
589
|
-
return [3
|
|
589
|
+
return [3, 17];
|
|
590
590
|
case 16:
|
|
591
591
|
parsedBody = parsedOutput.body;
|
|
592
592
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -596,7 +596,7 @@ var deserializeAws_json1_1CreateAssessmentTargetCommandError = function (output,
|
|
|
596
596
|
message = response.message || response.Message || errorCode;
|
|
597
597
|
response.message = message;
|
|
598
598
|
delete response.Message;
|
|
599
|
-
return [2
|
|
599
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
600
600
|
}
|
|
601
601
|
});
|
|
602
602
|
}); };
|
|
@@ -606,15 +606,15 @@ export var deserializeAws_json1_1CreateAssessmentTemplateCommand = function (out
|
|
|
606
606
|
switch (_a.label) {
|
|
607
607
|
case 0:
|
|
608
608
|
if (output.statusCode >= 300) {
|
|
609
|
-
return [2
|
|
609
|
+
return [2, deserializeAws_json1_1CreateAssessmentTemplateCommandError(output, context)];
|
|
610
610
|
}
|
|
611
|
-
return [4
|
|
611
|
+
return [4, parseBody(output.body, context)];
|
|
612
612
|
case 1:
|
|
613
613
|
data = _a.sent();
|
|
614
614
|
contents = {};
|
|
615
615
|
contents = deserializeAws_json1_1CreateAssessmentTemplateResponse(data, context);
|
|
616
616
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
617
|
-
return [2
|
|
617
|
+
return [2, Promise.resolve(response)];
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
620
|
}); };
|
|
@@ -626,63 +626,63 @@ var deserializeAws_json1_1CreateAssessmentTemplateCommandError = function (outpu
|
|
|
626
626
|
case 0:
|
|
627
627
|
_a = [__assign({}, output)];
|
|
628
628
|
_j = {};
|
|
629
|
-
return [4
|
|
629
|
+
return [4, parseBody(output.body, context)];
|
|
630
630
|
case 1:
|
|
631
631
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
632
632
|
errorCode = "UnknownError";
|
|
633
633
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
634
634
|
_b = errorCode;
|
|
635
635
|
switch (_b) {
|
|
636
|
-
case "AccessDeniedException": return [3
|
|
637
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
638
|
-
case "InternalException": return [3
|
|
639
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
640
|
-
case "InvalidInputException": return [3
|
|
641
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
642
|
-
case "LimitExceededException": return [3
|
|
643
|
-
case "com.amazonaws.inspector#LimitExceededException": return [3
|
|
644
|
-
case "NoSuchEntityException": return [3
|
|
645
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
646
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
647
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
636
|
+
case "AccessDeniedException": return [3, 2];
|
|
637
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
638
|
+
case "InternalException": return [3, 4];
|
|
639
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
640
|
+
case "InvalidInputException": return [3, 6];
|
|
641
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
642
|
+
case "LimitExceededException": return [3, 8];
|
|
643
|
+
case "com.amazonaws.inspector#LimitExceededException": return [3, 8];
|
|
644
|
+
case "NoSuchEntityException": return [3, 10];
|
|
645
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 10];
|
|
646
|
+
case "ServiceTemporarilyUnavailableException": return [3, 12];
|
|
647
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 12];
|
|
648
648
|
}
|
|
649
|
-
return [3
|
|
649
|
+
return [3, 14];
|
|
650
650
|
case 2:
|
|
651
651
|
_c = [{}];
|
|
652
|
-
return [4
|
|
652
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
653
653
|
case 3:
|
|
654
654
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
655
|
-
return [3
|
|
655
|
+
return [3, 15];
|
|
656
656
|
case 4:
|
|
657
657
|
_d = [{}];
|
|
658
|
-
return [4
|
|
658
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
659
659
|
case 5:
|
|
660
660
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
661
|
-
return [3
|
|
661
|
+
return [3, 15];
|
|
662
662
|
case 6:
|
|
663
663
|
_e = [{}];
|
|
664
|
-
return [4
|
|
664
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
665
665
|
case 7:
|
|
666
666
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
667
|
-
return [3
|
|
667
|
+
return [3, 15];
|
|
668
668
|
case 8:
|
|
669
669
|
_f = [{}];
|
|
670
|
-
return [4
|
|
670
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
671
671
|
case 9:
|
|
672
672
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
673
|
-
return [3
|
|
673
|
+
return [3, 15];
|
|
674
674
|
case 10:
|
|
675
675
|
_g = [{}];
|
|
676
|
-
return [4
|
|
676
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
677
677
|
case 11:
|
|
678
678
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
679
|
-
return [3
|
|
679
|
+
return [3, 15];
|
|
680
680
|
case 12:
|
|
681
681
|
_h = [{}];
|
|
682
|
-
return [4
|
|
682
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
683
683
|
case 13:
|
|
684
684
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
685
|
-
return [3
|
|
685
|
+
return [3, 15];
|
|
686
686
|
case 14:
|
|
687
687
|
parsedBody = parsedOutput.body;
|
|
688
688
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -692,7 +692,7 @@ var deserializeAws_json1_1CreateAssessmentTemplateCommandError = function (outpu
|
|
|
692
692
|
message = response.message || response.Message || errorCode;
|
|
693
693
|
response.message = message;
|
|
694
694
|
delete response.Message;
|
|
695
|
-
return [2
|
|
695
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
696
696
|
}
|
|
697
697
|
});
|
|
698
698
|
}); };
|
|
@@ -702,15 +702,15 @@ export var deserializeAws_json1_1CreateExclusionsPreviewCommand = function (outp
|
|
|
702
702
|
switch (_a.label) {
|
|
703
703
|
case 0:
|
|
704
704
|
if (output.statusCode >= 300) {
|
|
705
|
-
return [2
|
|
705
|
+
return [2, deserializeAws_json1_1CreateExclusionsPreviewCommandError(output, context)];
|
|
706
706
|
}
|
|
707
|
-
return [4
|
|
707
|
+
return [4, parseBody(output.body, context)];
|
|
708
708
|
case 1:
|
|
709
709
|
data = _a.sent();
|
|
710
710
|
contents = {};
|
|
711
711
|
contents = deserializeAws_json1_1CreateExclusionsPreviewResponse(data, context);
|
|
712
712
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
713
|
-
return [2
|
|
713
|
+
return [2, Promise.resolve(response)];
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
716
|
}); };
|
|
@@ -722,63 +722,63 @@ var deserializeAws_json1_1CreateExclusionsPreviewCommandError = function (output
|
|
|
722
722
|
case 0:
|
|
723
723
|
_a = [__assign({}, output)];
|
|
724
724
|
_j = {};
|
|
725
|
-
return [4
|
|
725
|
+
return [4, parseBody(output.body, context)];
|
|
726
726
|
case 1:
|
|
727
727
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
728
728
|
errorCode = "UnknownError";
|
|
729
729
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
730
|
_b = errorCode;
|
|
731
731
|
switch (_b) {
|
|
732
|
-
case "AccessDeniedException": return [3
|
|
733
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
734
|
-
case "InternalException": return [3
|
|
735
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
736
|
-
case "InvalidInputException": return [3
|
|
737
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
738
|
-
case "NoSuchEntityException": return [3
|
|
739
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
740
|
-
case "PreviewGenerationInProgressException": return [3
|
|
741
|
-
case "com.amazonaws.inspector#PreviewGenerationInProgressException": return [3
|
|
742
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
743
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
732
|
+
case "AccessDeniedException": return [3, 2];
|
|
733
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
734
|
+
case "InternalException": return [3, 4];
|
|
735
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
736
|
+
case "InvalidInputException": return [3, 6];
|
|
737
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
738
|
+
case "NoSuchEntityException": return [3, 8];
|
|
739
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
740
|
+
case "PreviewGenerationInProgressException": return [3, 10];
|
|
741
|
+
case "com.amazonaws.inspector#PreviewGenerationInProgressException": return [3, 10];
|
|
742
|
+
case "ServiceTemporarilyUnavailableException": return [3, 12];
|
|
743
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 12];
|
|
744
744
|
}
|
|
745
|
-
return [3
|
|
745
|
+
return [3, 14];
|
|
746
746
|
case 2:
|
|
747
747
|
_c = [{}];
|
|
748
|
-
return [4
|
|
748
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
749
749
|
case 3:
|
|
750
750
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
751
|
-
return [3
|
|
751
|
+
return [3, 15];
|
|
752
752
|
case 4:
|
|
753
753
|
_d = [{}];
|
|
754
|
-
return [4
|
|
754
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
755
755
|
case 5:
|
|
756
756
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
757
|
-
return [3
|
|
757
|
+
return [3, 15];
|
|
758
758
|
case 6:
|
|
759
759
|
_e = [{}];
|
|
760
|
-
return [4
|
|
760
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
761
761
|
case 7:
|
|
762
762
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
763
|
-
return [3
|
|
763
|
+
return [3, 15];
|
|
764
764
|
case 8:
|
|
765
765
|
_f = [{}];
|
|
766
|
-
return [4
|
|
766
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
767
767
|
case 9:
|
|
768
768
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
769
|
-
return [3
|
|
769
|
+
return [3, 15];
|
|
770
770
|
case 10:
|
|
771
771
|
_g = [{}];
|
|
772
|
-
return [4
|
|
772
|
+
return [4, deserializeAws_json1_1PreviewGenerationInProgressExceptionResponse(parsedOutput, context)];
|
|
773
773
|
case 11:
|
|
774
774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
775
|
-
return [3
|
|
775
|
+
return [3, 15];
|
|
776
776
|
case 12:
|
|
777
777
|
_h = [{}];
|
|
778
|
-
return [4
|
|
778
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
779
779
|
case 13:
|
|
780
780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
781
|
-
return [3
|
|
781
|
+
return [3, 15];
|
|
782
782
|
case 14:
|
|
783
783
|
parsedBody = parsedOutput.body;
|
|
784
784
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -788,7 +788,7 @@ var deserializeAws_json1_1CreateExclusionsPreviewCommandError = function (output
|
|
|
788
788
|
message = response.message || response.Message || errorCode;
|
|
789
789
|
response.message = message;
|
|
790
790
|
delete response.Message;
|
|
791
|
-
return [2
|
|
791
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
792
792
|
}
|
|
793
793
|
});
|
|
794
794
|
}); };
|
|
@@ -798,15 +798,15 @@ export var deserializeAws_json1_1CreateResourceGroupCommand = function (output,
|
|
|
798
798
|
switch (_a.label) {
|
|
799
799
|
case 0:
|
|
800
800
|
if (output.statusCode >= 300) {
|
|
801
|
-
return [2
|
|
801
|
+
return [2, deserializeAws_json1_1CreateResourceGroupCommandError(output, context)];
|
|
802
802
|
}
|
|
803
|
-
return [4
|
|
803
|
+
return [4, parseBody(output.body, context)];
|
|
804
804
|
case 1:
|
|
805
805
|
data = _a.sent();
|
|
806
806
|
contents = {};
|
|
807
807
|
contents = deserializeAws_json1_1CreateResourceGroupResponse(data, context);
|
|
808
808
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
809
|
-
return [2
|
|
809
|
+
return [2, Promise.resolve(response)];
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
812
|
}); };
|
|
@@ -818,55 +818,55 @@ var deserializeAws_json1_1CreateResourceGroupCommandError = function (output, co
|
|
|
818
818
|
case 0:
|
|
819
819
|
_a = [__assign({}, output)];
|
|
820
820
|
_h = {};
|
|
821
|
-
return [4
|
|
821
|
+
return [4, parseBody(output.body, context)];
|
|
822
822
|
case 1:
|
|
823
823
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
824
824
|
errorCode = "UnknownError";
|
|
825
825
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
826
|
_b = errorCode;
|
|
827
827
|
switch (_b) {
|
|
828
|
-
case "AccessDeniedException": return [3
|
|
829
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
830
|
-
case "InternalException": return [3
|
|
831
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
832
|
-
case "InvalidInputException": return [3
|
|
833
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
834
|
-
case "LimitExceededException": return [3
|
|
835
|
-
case "com.amazonaws.inspector#LimitExceededException": return [3
|
|
836
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
837
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
828
|
+
case "AccessDeniedException": return [3, 2];
|
|
829
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
830
|
+
case "InternalException": return [3, 4];
|
|
831
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
832
|
+
case "InvalidInputException": return [3, 6];
|
|
833
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
834
|
+
case "LimitExceededException": return [3, 8];
|
|
835
|
+
case "com.amazonaws.inspector#LimitExceededException": return [3, 8];
|
|
836
|
+
case "ServiceTemporarilyUnavailableException": return [3, 10];
|
|
837
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 10];
|
|
838
838
|
}
|
|
839
|
-
return [3
|
|
839
|
+
return [3, 12];
|
|
840
840
|
case 2:
|
|
841
841
|
_c = [{}];
|
|
842
|
-
return [4
|
|
842
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
843
843
|
case 3:
|
|
844
844
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
845
|
-
return [3
|
|
845
|
+
return [3, 13];
|
|
846
846
|
case 4:
|
|
847
847
|
_d = [{}];
|
|
848
|
-
return [4
|
|
848
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
849
849
|
case 5:
|
|
850
850
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
851
|
-
return [3
|
|
851
|
+
return [3, 13];
|
|
852
852
|
case 6:
|
|
853
853
|
_e = [{}];
|
|
854
|
-
return [4
|
|
854
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
855
855
|
case 7:
|
|
856
856
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
857
|
-
return [3
|
|
857
|
+
return [3, 13];
|
|
858
858
|
case 8:
|
|
859
859
|
_f = [{}];
|
|
860
|
-
return [4
|
|
860
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
861
861
|
case 9:
|
|
862
862
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
863
|
-
return [3
|
|
863
|
+
return [3, 13];
|
|
864
864
|
case 10:
|
|
865
865
|
_g = [{}];
|
|
866
|
-
return [4
|
|
866
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
867
867
|
case 11:
|
|
868
868
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
869
|
-
return [3
|
|
869
|
+
return [3, 13];
|
|
870
870
|
case 12:
|
|
871
871
|
parsedBody = parsedOutput.body;
|
|
872
872
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -876,7 +876,7 @@ var deserializeAws_json1_1CreateResourceGroupCommandError = function (output, co
|
|
|
876
876
|
message = response.message || response.Message || errorCode;
|
|
877
877
|
response.message = message;
|
|
878
878
|
delete response.Message;
|
|
879
|
-
return [2
|
|
879
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
882
|
}); };
|
|
@@ -886,15 +886,15 @@ export var deserializeAws_json1_1DeleteAssessmentRunCommand = function (output,
|
|
|
886
886
|
switch (_a.label) {
|
|
887
887
|
case 0:
|
|
888
888
|
if (output.statusCode >= 300) {
|
|
889
|
-
return [2
|
|
889
|
+
return [2, deserializeAws_json1_1DeleteAssessmentRunCommandError(output, context)];
|
|
890
890
|
}
|
|
891
|
-
return [4
|
|
891
|
+
return [4, collectBody(output.body, context)];
|
|
892
892
|
case 1:
|
|
893
893
|
_a.sent();
|
|
894
894
|
response = {
|
|
895
895
|
$metadata: deserializeMetadata(output),
|
|
896
896
|
};
|
|
897
|
-
return [2
|
|
897
|
+
return [2, Promise.resolve(response)];
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
900
|
}); };
|
|
@@ -906,63 +906,63 @@ var deserializeAws_json1_1DeleteAssessmentRunCommandError = function (output, co
|
|
|
906
906
|
case 0:
|
|
907
907
|
_a = [__assign({}, output)];
|
|
908
908
|
_j = {};
|
|
909
|
-
return [4
|
|
909
|
+
return [4, parseBody(output.body, context)];
|
|
910
910
|
case 1:
|
|
911
911
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
912
912
|
errorCode = "UnknownError";
|
|
913
913
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
914
|
_b = errorCode;
|
|
915
915
|
switch (_b) {
|
|
916
|
-
case "AccessDeniedException": return [3
|
|
917
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
918
|
-
case "AssessmentRunInProgressException": return [3
|
|
919
|
-
case "com.amazonaws.inspector#AssessmentRunInProgressException": return [3
|
|
920
|
-
case "InternalException": return [3
|
|
921
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
922
|
-
case "InvalidInputException": return [3
|
|
923
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
924
|
-
case "NoSuchEntityException": return [3
|
|
925
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
926
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
927
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
916
|
+
case "AccessDeniedException": return [3, 2];
|
|
917
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
918
|
+
case "AssessmentRunInProgressException": return [3, 4];
|
|
919
|
+
case "com.amazonaws.inspector#AssessmentRunInProgressException": return [3, 4];
|
|
920
|
+
case "InternalException": return [3, 6];
|
|
921
|
+
case "com.amazonaws.inspector#InternalException": return [3, 6];
|
|
922
|
+
case "InvalidInputException": return [3, 8];
|
|
923
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 8];
|
|
924
|
+
case "NoSuchEntityException": return [3, 10];
|
|
925
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 10];
|
|
926
|
+
case "ServiceTemporarilyUnavailableException": return [3, 12];
|
|
927
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 12];
|
|
928
928
|
}
|
|
929
|
-
return [3
|
|
929
|
+
return [3, 14];
|
|
930
930
|
case 2:
|
|
931
931
|
_c = [{}];
|
|
932
|
-
return [4
|
|
932
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
933
933
|
case 3:
|
|
934
934
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
935
|
-
return [3
|
|
935
|
+
return [3, 15];
|
|
936
936
|
case 4:
|
|
937
937
|
_d = [{}];
|
|
938
|
-
return [4
|
|
938
|
+
return [4, deserializeAws_json1_1AssessmentRunInProgressExceptionResponse(parsedOutput, context)];
|
|
939
939
|
case 5:
|
|
940
940
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
941
|
-
return [3
|
|
941
|
+
return [3, 15];
|
|
942
942
|
case 6:
|
|
943
943
|
_e = [{}];
|
|
944
|
-
return [4
|
|
944
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
945
945
|
case 7:
|
|
946
946
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
947
|
-
return [3
|
|
947
|
+
return [3, 15];
|
|
948
948
|
case 8:
|
|
949
949
|
_f = [{}];
|
|
950
|
-
return [4
|
|
950
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
951
951
|
case 9:
|
|
952
952
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
953
|
-
return [3
|
|
953
|
+
return [3, 15];
|
|
954
954
|
case 10:
|
|
955
955
|
_g = [{}];
|
|
956
|
-
return [4
|
|
956
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
957
957
|
case 11:
|
|
958
958
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
959
|
-
return [3
|
|
959
|
+
return [3, 15];
|
|
960
960
|
case 12:
|
|
961
961
|
_h = [{}];
|
|
962
|
-
return [4
|
|
962
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
963
963
|
case 13:
|
|
964
964
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
965
|
-
return [3
|
|
965
|
+
return [3, 15];
|
|
966
966
|
case 14:
|
|
967
967
|
parsedBody = parsedOutput.body;
|
|
968
968
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -972,7 +972,7 @@ var deserializeAws_json1_1DeleteAssessmentRunCommandError = function (output, co
|
|
|
972
972
|
message = response.message || response.Message || errorCode;
|
|
973
973
|
response.message = message;
|
|
974
974
|
delete response.Message;
|
|
975
|
-
return [2
|
|
975
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
976
976
|
}
|
|
977
977
|
});
|
|
978
978
|
}); };
|
|
@@ -982,15 +982,15 @@ export var deserializeAws_json1_1DeleteAssessmentTargetCommand = function (outpu
|
|
|
982
982
|
switch (_a.label) {
|
|
983
983
|
case 0:
|
|
984
984
|
if (output.statusCode >= 300) {
|
|
985
|
-
return [2
|
|
985
|
+
return [2, deserializeAws_json1_1DeleteAssessmentTargetCommandError(output, context)];
|
|
986
986
|
}
|
|
987
|
-
return [4
|
|
987
|
+
return [4, collectBody(output.body, context)];
|
|
988
988
|
case 1:
|
|
989
989
|
_a.sent();
|
|
990
990
|
response = {
|
|
991
991
|
$metadata: deserializeMetadata(output),
|
|
992
992
|
};
|
|
993
|
-
return [2
|
|
993
|
+
return [2, Promise.resolve(response)];
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
996
|
}); };
|
|
@@ -1002,63 +1002,63 @@ var deserializeAws_json1_1DeleteAssessmentTargetCommandError = function (output,
|
|
|
1002
1002
|
case 0:
|
|
1003
1003
|
_a = [__assign({}, output)];
|
|
1004
1004
|
_j = {};
|
|
1005
|
-
return [4
|
|
1005
|
+
return [4, parseBody(output.body, context)];
|
|
1006
1006
|
case 1:
|
|
1007
1007
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1008
1008
|
errorCode = "UnknownError";
|
|
1009
1009
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
1010
|
_b = errorCode;
|
|
1011
1011
|
switch (_b) {
|
|
1012
|
-
case "AccessDeniedException": return [3
|
|
1013
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
1014
|
-
case "AssessmentRunInProgressException": return [3
|
|
1015
|
-
case "com.amazonaws.inspector#AssessmentRunInProgressException": return [3
|
|
1016
|
-
case "InternalException": return [3
|
|
1017
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1018
|
-
case "InvalidInputException": return [3
|
|
1019
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1020
|
-
case "NoSuchEntityException": return [3
|
|
1021
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
1022
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
1023
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
1012
|
+
case "AccessDeniedException": return [3, 2];
|
|
1013
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
1014
|
+
case "AssessmentRunInProgressException": return [3, 4];
|
|
1015
|
+
case "com.amazonaws.inspector#AssessmentRunInProgressException": return [3, 4];
|
|
1016
|
+
case "InternalException": return [3, 6];
|
|
1017
|
+
case "com.amazonaws.inspector#InternalException": return [3, 6];
|
|
1018
|
+
case "InvalidInputException": return [3, 8];
|
|
1019
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 8];
|
|
1020
|
+
case "NoSuchEntityException": return [3, 10];
|
|
1021
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 10];
|
|
1022
|
+
case "ServiceTemporarilyUnavailableException": return [3, 12];
|
|
1023
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 12];
|
|
1024
1024
|
}
|
|
1025
|
-
return [3
|
|
1025
|
+
return [3, 14];
|
|
1026
1026
|
case 2:
|
|
1027
1027
|
_c = [{}];
|
|
1028
|
-
return [4
|
|
1028
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1029
1029
|
case 3:
|
|
1030
1030
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1031
|
-
return [3
|
|
1031
|
+
return [3, 15];
|
|
1032
1032
|
case 4:
|
|
1033
1033
|
_d = [{}];
|
|
1034
|
-
return [4
|
|
1034
|
+
return [4, deserializeAws_json1_1AssessmentRunInProgressExceptionResponse(parsedOutput, context)];
|
|
1035
1035
|
case 5:
|
|
1036
1036
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1037
|
-
return [3
|
|
1037
|
+
return [3, 15];
|
|
1038
1038
|
case 6:
|
|
1039
1039
|
_e = [{}];
|
|
1040
|
-
return [4
|
|
1040
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1041
1041
|
case 7:
|
|
1042
1042
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1043
|
-
return [3
|
|
1043
|
+
return [3, 15];
|
|
1044
1044
|
case 8:
|
|
1045
1045
|
_f = [{}];
|
|
1046
|
-
return [4
|
|
1046
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1047
1047
|
case 9:
|
|
1048
1048
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1049
|
-
return [3
|
|
1049
|
+
return [3, 15];
|
|
1050
1050
|
case 10:
|
|
1051
1051
|
_g = [{}];
|
|
1052
|
-
return [4
|
|
1052
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
1053
1053
|
case 11:
|
|
1054
1054
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1055
|
-
return [3
|
|
1055
|
+
return [3, 15];
|
|
1056
1056
|
case 12:
|
|
1057
1057
|
_h = [{}];
|
|
1058
|
-
return [4
|
|
1058
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
1059
1059
|
case 13:
|
|
1060
1060
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1061
|
-
return [3
|
|
1061
|
+
return [3, 15];
|
|
1062
1062
|
case 14:
|
|
1063
1063
|
parsedBody = parsedOutput.body;
|
|
1064
1064
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1068,7 +1068,7 @@ var deserializeAws_json1_1DeleteAssessmentTargetCommandError = function (output,
|
|
|
1068
1068
|
message = response.message || response.Message || errorCode;
|
|
1069
1069
|
response.message = message;
|
|
1070
1070
|
delete response.Message;
|
|
1071
|
-
return [2
|
|
1071
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1072
1072
|
}
|
|
1073
1073
|
});
|
|
1074
1074
|
}); };
|
|
@@ -1078,15 +1078,15 @@ export var deserializeAws_json1_1DeleteAssessmentTemplateCommand = function (out
|
|
|
1078
1078
|
switch (_a.label) {
|
|
1079
1079
|
case 0:
|
|
1080
1080
|
if (output.statusCode >= 300) {
|
|
1081
|
-
return [2
|
|
1081
|
+
return [2, deserializeAws_json1_1DeleteAssessmentTemplateCommandError(output, context)];
|
|
1082
1082
|
}
|
|
1083
|
-
return [4
|
|
1083
|
+
return [4, collectBody(output.body, context)];
|
|
1084
1084
|
case 1:
|
|
1085
1085
|
_a.sent();
|
|
1086
1086
|
response = {
|
|
1087
1087
|
$metadata: deserializeMetadata(output),
|
|
1088
1088
|
};
|
|
1089
|
-
return [2
|
|
1089
|
+
return [2, Promise.resolve(response)];
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
}); };
|
|
@@ -1098,63 +1098,63 @@ var deserializeAws_json1_1DeleteAssessmentTemplateCommandError = function (outpu
|
|
|
1098
1098
|
case 0:
|
|
1099
1099
|
_a = [__assign({}, output)];
|
|
1100
1100
|
_j = {};
|
|
1101
|
-
return [4
|
|
1101
|
+
return [4, parseBody(output.body, context)];
|
|
1102
1102
|
case 1:
|
|
1103
1103
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1104
1104
|
errorCode = "UnknownError";
|
|
1105
1105
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
1106
|
_b = errorCode;
|
|
1107
1107
|
switch (_b) {
|
|
1108
|
-
case "AccessDeniedException": return [3
|
|
1109
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
1110
|
-
case "AssessmentRunInProgressException": return [3
|
|
1111
|
-
case "com.amazonaws.inspector#AssessmentRunInProgressException": return [3
|
|
1112
|
-
case "InternalException": return [3
|
|
1113
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1114
|
-
case "InvalidInputException": return [3
|
|
1115
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1116
|
-
case "NoSuchEntityException": return [3
|
|
1117
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
1118
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
1119
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
1108
|
+
case "AccessDeniedException": return [3, 2];
|
|
1109
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
1110
|
+
case "AssessmentRunInProgressException": return [3, 4];
|
|
1111
|
+
case "com.amazonaws.inspector#AssessmentRunInProgressException": return [3, 4];
|
|
1112
|
+
case "InternalException": return [3, 6];
|
|
1113
|
+
case "com.amazonaws.inspector#InternalException": return [3, 6];
|
|
1114
|
+
case "InvalidInputException": return [3, 8];
|
|
1115
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 8];
|
|
1116
|
+
case "NoSuchEntityException": return [3, 10];
|
|
1117
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 10];
|
|
1118
|
+
case "ServiceTemporarilyUnavailableException": return [3, 12];
|
|
1119
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 12];
|
|
1120
1120
|
}
|
|
1121
|
-
return [3
|
|
1121
|
+
return [3, 14];
|
|
1122
1122
|
case 2:
|
|
1123
1123
|
_c = [{}];
|
|
1124
|
-
return [4
|
|
1124
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1125
1125
|
case 3:
|
|
1126
1126
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1127
|
-
return [3
|
|
1127
|
+
return [3, 15];
|
|
1128
1128
|
case 4:
|
|
1129
1129
|
_d = [{}];
|
|
1130
|
-
return [4
|
|
1130
|
+
return [4, deserializeAws_json1_1AssessmentRunInProgressExceptionResponse(parsedOutput, context)];
|
|
1131
1131
|
case 5:
|
|
1132
1132
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1133
|
-
return [3
|
|
1133
|
+
return [3, 15];
|
|
1134
1134
|
case 6:
|
|
1135
1135
|
_e = [{}];
|
|
1136
|
-
return [4
|
|
1136
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1137
1137
|
case 7:
|
|
1138
1138
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1139
|
-
return [3
|
|
1139
|
+
return [3, 15];
|
|
1140
1140
|
case 8:
|
|
1141
1141
|
_f = [{}];
|
|
1142
|
-
return [4
|
|
1142
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1143
1143
|
case 9:
|
|
1144
1144
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1145
|
-
return [3
|
|
1145
|
+
return [3, 15];
|
|
1146
1146
|
case 10:
|
|
1147
1147
|
_g = [{}];
|
|
1148
|
-
return [4
|
|
1148
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
1149
1149
|
case 11:
|
|
1150
1150
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1151
|
-
return [3
|
|
1151
|
+
return [3, 15];
|
|
1152
1152
|
case 12:
|
|
1153
1153
|
_h = [{}];
|
|
1154
|
-
return [4
|
|
1154
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
1155
1155
|
case 13:
|
|
1156
1156
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1157
|
-
return [3
|
|
1157
|
+
return [3, 15];
|
|
1158
1158
|
case 14:
|
|
1159
1159
|
parsedBody = parsedOutput.body;
|
|
1160
1160
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1164,7 +1164,7 @@ var deserializeAws_json1_1DeleteAssessmentTemplateCommandError = function (outpu
|
|
|
1164
1164
|
message = response.message || response.Message || errorCode;
|
|
1165
1165
|
response.message = message;
|
|
1166
1166
|
delete response.Message;
|
|
1167
|
-
return [2
|
|
1167
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
1170
|
}); };
|
|
@@ -1174,15 +1174,15 @@ export var deserializeAws_json1_1DescribeAssessmentRunsCommand = function (outpu
|
|
|
1174
1174
|
switch (_a.label) {
|
|
1175
1175
|
case 0:
|
|
1176
1176
|
if (output.statusCode >= 300) {
|
|
1177
|
-
return [2
|
|
1177
|
+
return [2, deserializeAws_json1_1DescribeAssessmentRunsCommandError(output, context)];
|
|
1178
1178
|
}
|
|
1179
|
-
return [4
|
|
1179
|
+
return [4, parseBody(output.body, context)];
|
|
1180
1180
|
case 1:
|
|
1181
1181
|
data = _a.sent();
|
|
1182
1182
|
contents = {};
|
|
1183
1183
|
contents = deserializeAws_json1_1DescribeAssessmentRunsResponse(data, context);
|
|
1184
1184
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1185
|
-
return [2
|
|
1185
|
+
return [2, Promise.resolve(response)];
|
|
1186
1186
|
}
|
|
1187
1187
|
});
|
|
1188
1188
|
}); };
|
|
@@ -1194,31 +1194,31 @@ var deserializeAws_json1_1DescribeAssessmentRunsCommandError = function (output,
|
|
|
1194
1194
|
case 0:
|
|
1195
1195
|
_a = [__assign({}, output)];
|
|
1196
1196
|
_e = {};
|
|
1197
|
-
return [4
|
|
1197
|
+
return [4, parseBody(output.body, context)];
|
|
1198
1198
|
case 1:
|
|
1199
1199
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1200
1200
|
errorCode = "UnknownError";
|
|
1201
1201
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
1202
|
_b = errorCode;
|
|
1203
1203
|
switch (_b) {
|
|
1204
|
-
case "InternalException": return [3
|
|
1205
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1206
|
-
case "InvalidInputException": return [3
|
|
1207
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1204
|
+
case "InternalException": return [3, 2];
|
|
1205
|
+
case "com.amazonaws.inspector#InternalException": return [3, 2];
|
|
1206
|
+
case "InvalidInputException": return [3, 4];
|
|
1207
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 4];
|
|
1208
1208
|
}
|
|
1209
|
-
return [3
|
|
1209
|
+
return [3, 6];
|
|
1210
1210
|
case 2:
|
|
1211
1211
|
_c = [{}];
|
|
1212
|
-
return [4
|
|
1212
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1213
1213
|
case 3:
|
|
1214
1214
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1215
|
-
return [3
|
|
1215
|
+
return [3, 7];
|
|
1216
1216
|
case 4:
|
|
1217
1217
|
_d = [{}];
|
|
1218
|
-
return [4
|
|
1218
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1219
1219
|
case 5:
|
|
1220
1220
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1221
|
-
return [3
|
|
1221
|
+
return [3, 7];
|
|
1222
1222
|
case 6:
|
|
1223
1223
|
parsedBody = parsedOutput.body;
|
|
1224
1224
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1228,7 +1228,7 @@ var deserializeAws_json1_1DescribeAssessmentRunsCommandError = function (output,
|
|
|
1228
1228
|
message = response.message || response.Message || errorCode;
|
|
1229
1229
|
response.message = message;
|
|
1230
1230
|
delete response.Message;
|
|
1231
|
-
return [2
|
|
1231
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1232
1232
|
}
|
|
1233
1233
|
});
|
|
1234
1234
|
}); };
|
|
@@ -1238,15 +1238,15 @@ export var deserializeAws_json1_1DescribeAssessmentTargetsCommand = function (ou
|
|
|
1238
1238
|
switch (_a.label) {
|
|
1239
1239
|
case 0:
|
|
1240
1240
|
if (output.statusCode >= 300) {
|
|
1241
|
-
return [2
|
|
1241
|
+
return [2, deserializeAws_json1_1DescribeAssessmentTargetsCommandError(output, context)];
|
|
1242
1242
|
}
|
|
1243
|
-
return [4
|
|
1243
|
+
return [4, parseBody(output.body, context)];
|
|
1244
1244
|
case 1:
|
|
1245
1245
|
data = _a.sent();
|
|
1246
1246
|
contents = {};
|
|
1247
1247
|
contents = deserializeAws_json1_1DescribeAssessmentTargetsResponse(data, context);
|
|
1248
1248
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1249
|
-
return [2
|
|
1249
|
+
return [2, Promise.resolve(response)];
|
|
1250
1250
|
}
|
|
1251
1251
|
});
|
|
1252
1252
|
}); };
|
|
@@ -1258,31 +1258,31 @@ var deserializeAws_json1_1DescribeAssessmentTargetsCommandError = function (outp
|
|
|
1258
1258
|
case 0:
|
|
1259
1259
|
_a = [__assign({}, output)];
|
|
1260
1260
|
_e = {};
|
|
1261
|
-
return [4
|
|
1261
|
+
return [4, parseBody(output.body, context)];
|
|
1262
1262
|
case 1:
|
|
1263
1263
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1264
1264
|
errorCode = "UnknownError";
|
|
1265
1265
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
1266
|
_b = errorCode;
|
|
1267
1267
|
switch (_b) {
|
|
1268
|
-
case "InternalException": return [3
|
|
1269
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1270
|
-
case "InvalidInputException": return [3
|
|
1271
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1268
|
+
case "InternalException": return [3, 2];
|
|
1269
|
+
case "com.amazonaws.inspector#InternalException": return [3, 2];
|
|
1270
|
+
case "InvalidInputException": return [3, 4];
|
|
1271
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 4];
|
|
1272
1272
|
}
|
|
1273
|
-
return [3
|
|
1273
|
+
return [3, 6];
|
|
1274
1274
|
case 2:
|
|
1275
1275
|
_c = [{}];
|
|
1276
|
-
return [4
|
|
1276
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1277
1277
|
case 3:
|
|
1278
1278
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1279
|
-
return [3
|
|
1279
|
+
return [3, 7];
|
|
1280
1280
|
case 4:
|
|
1281
1281
|
_d = [{}];
|
|
1282
|
-
return [4
|
|
1282
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1283
1283
|
case 5:
|
|
1284
1284
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1285
|
-
return [3
|
|
1285
|
+
return [3, 7];
|
|
1286
1286
|
case 6:
|
|
1287
1287
|
parsedBody = parsedOutput.body;
|
|
1288
1288
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1292,7 +1292,7 @@ var deserializeAws_json1_1DescribeAssessmentTargetsCommandError = function (outp
|
|
|
1292
1292
|
message = response.message || response.Message || errorCode;
|
|
1293
1293
|
response.message = message;
|
|
1294
1294
|
delete response.Message;
|
|
1295
|
-
return [2
|
|
1295
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
}); };
|
|
@@ -1302,15 +1302,15 @@ export var deserializeAws_json1_1DescribeAssessmentTemplatesCommand = function (
|
|
|
1302
1302
|
switch (_a.label) {
|
|
1303
1303
|
case 0:
|
|
1304
1304
|
if (output.statusCode >= 300) {
|
|
1305
|
-
return [2
|
|
1305
|
+
return [2, deserializeAws_json1_1DescribeAssessmentTemplatesCommandError(output, context)];
|
|
1306
1306
|
}
|
|
1307
|
-
return [4
|
|
1307
|
+
return [4, parseBody(output.body, context)];
|
|
1308
1308
|
case 1:
|
|
1309
1309
|
data = _a.sent();
|
|
1310
1310
|
contents = {};
|
|
1311
1311
|
contents = deserializeAws_json1_1DescribeAssessmentTemplatesResponse(data, context);
|
|
1312
1312
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1313
|
-
return [2
|
|
1313
|
+
return [2, Promise.resolve(response)];
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
1316
|
}); };
|
|
@@ -1322,31 +1322,31 @@ var deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = function (ou
|
|
|
1322
1322
|
case 0:
|
|
1323
1323
|
_a = [__assign({}, output)];
|
|
1324
1324
|
_e = {};
|
|
1325
|
-
return [4
|
|
1325
|
+
return [4, parseBody(output.body, context)];
|
|
1326
1326
|
case 1:
|
|
1327
1327
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1328
1328
|
errorCode = "UnknownError";
|
|
1329
1329
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
1330
|
_b = errorCode;
|
|
1331
1331
|
switch (_b) {
|
|
1332
|
-
case "InternalException": return [3
|
|
1333
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1334
|
-
case "InvalidInputException": return [3
|
|
1335
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1332
|
+
case "InternalException": return [3, 2];
|
|
1333
|
+
case "com.amazonaws.inspector#InternalException": return [3, 2];
|
|
1334
|
+
case "InvalidInputException": return [3, 4];
|
|
1335
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 4];
|
|
1336
1336
|
}
|
|
1337
|
-
return [3
|
|
1337
|
+
return [3, 6];
|
|
1338
1338
|
case 2:
|
|
1339
1339
|
_c = [{}];
|
|
1340
|
-
return [4
|
|
1340
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1341
1341
|
case 3:
|
|
1342
1342
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1343
|
-
return [3
|
|
1343
|
+
return [3, 7];
|
|
1344
1344
|
case 4:
|
|
1345
1345
|
_d = [{}];
|
|
1346
|
-
return [4
|
|
1346
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1347
1347
|
case 5:
|
|
1348
1348
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1349
|
-
return [3
|
|
1349
|
+
return [3, 7];
|
|
1350
1350
|
case 6:
|
|
1351
1351
|
parsedBody = parsedOutput.body;
|
|
1352
1352
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1356,7 +1356,7 @@ var deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = function (ou
|
|
|
1356
1356
|
message = response.message || response.Message || errorCode;
|
|
1357
1357
|
response.message = message;
|
|
1358
1358
|
delete response.Message;
|
|
1359
|
-
return [2
|
|
1359
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1360
1360
|
}
|
|
1361
1361
|
});
|
|
1362
1362
|
}); };
|
|
@@ -1366,15 +1366,15 @@ export var deserializeAws_json1_1DescribeCrossAccountAccessRoleCommand = functio
|
|
|
1366
1366
|
switch (_a.label) {
|
|
1367
1367
|
case 0:
|
|
1368
1368
|
if (output.statusCode >= 300) {
|
|
1369
|
-
return [2
|
|
1369
|
+
return [2, deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError(output, context)];
|
|
1370
1370
|
}
|
|
1371
|
-
return [4
|
|
1371
|
+
return [4, parseBody(output.body, context)];
|
|
1372
1372
|
case 1:
|
|
1373
1373
|
data = _a.sent();
|
|
1374
1374
|
contents = {};
|
|
1375
1375
|
contents = deserializeAws_json1_1DescribeCrossAccountAccessRoleResponse(data, context);
|
|
1376
1376
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1377
|
-
return [2
|
|
1377
|
+
return [2, Promise.resolve(response)];
|
|
1378
1378
|
}
|
|
1379
1379
|
});
|
|
1380
1380
|
}); };
|
|
@@ -1386,23 +1386,23 @@ var deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError = function
|
|
|
1386
1386
|
case 0:
|
|
1387
1387
|
_a = [__assign({}, output)];
|
|
1388
1388
|
_d = {};
|
|
1389
|
-
return [4
|
|
1389
|
+
return [4, parseBody(output.body, context)];
|
|
1390
1390
|
case 1:
|
|
1391
1391
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
1392
1392
|
errorCode = "UnknownError";
|
|
1393
1393
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
1394
|
_b = errorCode;
|
|
1395
1395
|
switch (_b) {
|
|
1396
|
-
case "InternalException": return [3
|
|
1397
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1396
|
+
case "InternalException": return [3, 2];
|
|
1397
|
+
case "com.amazonaws.inspector#InternalException": return [3, 2];
|
|
1398
1398
|
}
|
|
1399
|
-
return [3
|
|
1399
|
+
return [3, 4];
|
|
1400
1400
|
case 2:
|
|
1401
1401
|
_c = [{}];
|
|
1402
|
-
return [4
|
|
1402
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1403
1403
|
case 3:
|
|
1404
1404
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1405
|
-
return [3
|
|
1405
|
+
return [3, 5];
|
|
1406
1406
|
case 4:
|
|
1407
1407
|
parsedBody = parsedOutput.body;
|
|
1408
1408
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1412,7 +1412,7 @@ var deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError = function
|
|
|
1412
1412
|
message = response.message || response.Message || errorCode;
|
|
1413
1413
|
response.message = message;
|
|
1414
1414
|
delete response.Message;
|
|
1415
|
-
return [2
|
|
1415
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1416
1416
|
}
|
|
1417
1417
|
});
|
|
1418
1418
|
}); };
|
|
@@ -1422,15 +1422,15 @@ export var deserializeAws_json1_1DescribeExclusionsCommand = function (output, c
|
|
|
1422
1422
|
switch (_a.label) {
|
|
1423
1423
|
case 0:
|
|
1424
1424
|
if (output.statusCode >= 300) {
|
|
1425
|
-
return [2
|
|
1425
|
+
return [2, deserializeAws_json1_1DescribeExclusionsCommandError(output, context)];
|
|
1426
1426
|
}
|
|
1427
|
-
return [4
|
|
1427
|
+
return [4, parseBody(output.body, context)];
|
|
1428
1428
|
case 1:
|
|
1429
1429
|
data = _a.sent();
|
|
1430
1430
|
contents = {};
|
|
1431
1431
|
contents = deserializeAws_json1_1DescribeExclusionsResponse(data, context);
|
|
1432
1432
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1433
|
-
return [2
|
|
1433
|
+
return [2, Promise.resolve(response)];
|
|
1434
1434
|
}
|
|
1435
1435
|
});
|
|
1436
1436
|
}); };
|
|
@@ -1442,31 +1442,31 @@ var deserializeAws_json1_1DescribeExclusionsCommandError = function (output, con
|
|
|
1442
1442
|
case 0:
|
|
1443
1443
|
_a = [__assign({}, output)];
|
|
1444
1444
|
_e = {};
|
|
1445
|
-
return [4
|
|
1445
|
+
return [4, parseBody(output.body, context)];
|
|
1446
1446
|
case 1:
|
|
1447
1447
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1448
1448
|
errorCode = "UnknownError";
|
|
1449
1449
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1450
1450
|
_b = errorCode;
|
|
1451
1451
|
switch (_b) {
|
|
1452
|
-
case "InternalException": return [3
|
|
1453
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1454
|
-
case "InvalidInputException": return [3
|
|
1455
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1452
|
+
case "InternalException": return [3, 2];
|
|
1453
|
+
case "com.amazonaws.inspector#InternalException": return [3, 2];
|
|
1454
|
+
case "InvalidInputException": return [3, 4];
|
|
1455
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 4];
|
|
1456
1456
|
}
|
|
1457
|
-
return [3
|
|
1457
|
+
return [3, 6];
|
|
1458
1458
|
case 2:
|
|
1459
1459
|
_c = [{}];
|
|
1460
|
-
return [4
|
|
1460
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1461
1461
|
case 3:
|
|
1462
1462
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1463
|
-
return [3
|
|
1463
|
+
return [3, 7];
|
|
1464
1464
|
case 4:
|
|
1465
1465
|
_d = [{}];
|
|
1466
|
-
return [4
|
|
1466
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1467
1467
|
case 5:
|
|
1468
1468
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1469
|
-
return [3
|
|
1469
|
+
return [3, 7];
|
|
1470
1470
|
case 6:
|
|
1471
1471
|
parsedBody = parsedOutput.body;
|
|
1472
1472
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1476,7 +1476,7 @@ var deserializeAws_json1_1DescribeExclusionsCommandError = function (output, con
|
|
|
1476
1476
|
message = response.message || response.Message || errorCode;
|
|
1477
1477
|
response.message = message;
|
|
1478
1478
|
delete response.Message;
|
|
1479
|
-
return [2
|
|
1479
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1480
1480
|
}
|
|
1481
1481
|
});
|
|
1482
1482
|
}); };
|
|
@@ -1486,15 +1486,15 @@ export var deserializeAws_json1_1DescribeFindingsCommand = function (output, con
|
|
|
1486
1486
|
switch (_a.label) {
|
|
1487
1487
|
case 0:
|
|
1488
1488
|
if (output.statusCode >= 300) {
|
|
1489
|
-
return [2
|
|
1489
|
+
return [2, deserializeAws_json1_1DescribeFindingsCommandError(output, context)];
|
|
1490
1490
|
}
|
|
1491
|
-
return [4
|
|
1491
|
+
return [4, parseBody(output.body, context)];
|
|
1492
1492
|
case 1:
|
|
1493
1493
|
data = _a.sent();
|
|
1494
1494
|
contents = {};
|
|
1495
1495
|
contents = deserializeAws_json1_1DescribeFindingsResponse(data, context);
|
|
1496
1496
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1497
|
-
return [2
|
|
1497
|
+
return [2, Promise.resolve(response)];
|
|
1498
1498
|
}
|
|
1499
1499
|
});
|
|
1500
1500
|
}); };
|
|
@@ -1506,31 +1506,31 @@ var deserializeAws_json1_1DescribeFindingsCommandError = function (output, conte
|
|
|
1506
1506
|
case 0:
|
|
1507
1507
|
_a = [__assign({}, output)];
|
|
1508
1508
|
_e = {};
|
|
1509
|
-
return [4
|
|
1509
|
+
return [4, parseBody(output.body, context)];
|
|
1510
1510
|
case 1:
|
|
1511
1511
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1512
1512
|
errorCode = "UnknownError";
|
|
1513
1513
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1514
|
_b = errorCode;
|
|
1515
1515
|
switch (_b) {
|
|
1516
|
-
case "InternalException": return [3
|
|
1517
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1518
|
-
case "InvalidInputException": return [3
|
|
1519
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1516
|
+
case "InternalException": return [3, 2];
|
|
1517
|
+
case "com.amazonaws.inspector#InternalException": return [3, 2];
|
|
1518
|
+
case "InvalidInputException": return [3, 4];
|
|
1519
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 4];
|
|
1520
1520
|
}
|
|
1521
|
-
return [3
|
|
1521
|
+
return [3, 6];
|
|
1522
1522
|
case 2:
|
|
1523
1523
|
_c = [{}];
|
|
1524
|
-
return [4
|
|
1524
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1525
1525
|
case 3:
|
|
1526
1526
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1527
|
-
return [3
|
|
1527
|
+
return [3, 7];
|
|
1528
1528
|
case 4:
|
|
1529
1529
|
_d = [{}];
|
|
1530
|
-
return [4
|
|
1530
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1531
1531
|
case 5:
|
|
1532
1532
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1533
|
-
return [3
|
|
1533
|
+
return [3, 7];
|
|
1534
1534
|
case 6:
|
|
1535
1535
|
parsedBody = parsedOutput.body;
|
|
1536
1536
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1540,7 +1540,7 @@ var deserializeAws_json1_1DescribeFindingsCommandError = function (output, conte
|
|
|
1540
1540
|
message = response.message || response.Message || errorCode;
|
|
1541
1541
|
response.message = message;
|
|
1542
1542
|
delete response.Message;
|
|
1543
|
-
return [2
|
|
1543
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1544
1544
|
}
|
|
1545
1545
|
});
|
|
1546
1546
|
}); };
|
|
@@ -1550,15 +1550,15 @@ export var deserializeAws_json1_1DescribeResourceGroupsCommand = function (outpu
|
|
|
1550
1550
|
switch (_a.label) {
|
|
1551
1551
|
case 0:
|
|
1552
1552
|
if (output.statusCode >= 300) {
|
|
1553
|
-
return [2
|
|
1553
|
+
return [2, deserializeAws_json1_1DescribeResourceGroupsCommandError(output, context)];
|
|
1554
1554
|
}
|
|
1555
|
-
return [4
|
|
1555
|
+
return [4, parseBody(output.body, context)];
|
|
1556
1556
|
case 1:
|
|
1557
1557
|
data = _a.sent();
|
|
1558
1558
|
contents = {};
|
|
1559
1559
|
contents = deserializeAws_json1_1DescribeResourceGroupsResponse(data, context);
|
|
1560
1560
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1561
|
-
return [2
|
|
1561
|
+
return [2, Promise.resolve(response)];
|
|
1562
1562
|
}
|
|
1563
1563
|
});
|
|
1564
1564
|
}); };
|
|
@@ -1570,31 +1570,31 @@ var deserializeAws_json1_1DescribeResourceGroupsCommandError = function (output,
|
|
|
1570
1570
|
case 0:
|
|
1571
1571
|
_a = [__assign({}, output)];
|
|
1572
1572
|
_e = {};
|
|
1573
|
-
return [4
|
|
1573
|
+
return [4, parseBody(output.body, context)];
|
|
1574
1574
|
case 1:
|
|
1575
1575
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1576
1576
|
errorCode = "UnknownError";
|
|
1577
1577
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
1578
|
_b = errorCode;
|
|
1579
1579
|
switch (_b) {
|
|
1580
|
-
case "InternalException": return [3
|
|
1581
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1582
|
-
case "InvalidInputException": return [3
|
|
1583
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1580
|
+
case "InternalException": return [3, 2];
|
|
1581
|
+
case "com.amazonaws.inspector#InternalException": return [3, 2];
|
|
1582
|
+
case "InvalidInputException": return [3, 4];
|
|
1583
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 4];
|
|
1584
1584
|
}
|
|
1585
|
-
return [3
|
|
1585
|
+
return [3, 6];
|
|
1586
1586
|
case 2:
|
|
1587
1587
|
_c = [{}];
|
|
1588
|
-
return [4
|
|
1588
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1589
1589
|
case 3:
|
|
1590
1590
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1591
|
-
return [3
|
|
1591
|
+
return [3, 7];
|
|
1592
1592
|
case 4:
|
|
1593
1593
|
_d = [{}];
|
|
1594
|
-
return [4
|
|
1594
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1595
1595
|
case 5:
|
|
1596
1596
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1597
|
-
return [3
|
|
1597
|
+
return [3, 7];
|
|
1598
1598
|
case 6:
|
|
1599
1599
|
parsedBody = parsedOutput.body;
|
|
1600
1600
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1604,7 +1604,7 @@ var deserializeAws_json1_1DescribeResourceGroupsCommandError = function (output,
|
|
|
1604
1604
|
message = response.message || response.Message || errorCode;
|
|
1605
1605
|
response.message = message;
|
|
1606
1606
|
delete response.Message;
|
|
1607
|
-
return [2
|
|
1607
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1608
1608
|
}
|
|
1609
1609
|
});
|
|
1610
1610
|
}); };
|
|
@@ -1614,15 +1614,15 @@ export var deserializeAws_json1_1DescribeRulesPackagesCommand = function (output
|
|
|
1614
1614
|
switch (_a.label) {
|
|
1615
1615
|
case 0:
|
|
1616
1616
|
if (output.statusCode >= 300) {
|
|
1617
|
-
return [2
|
|
1617
|
+
return [2, deserializeAws_json1_1DescribeRulesPackagesCommandError(output, context)];
|
|
1618
1618
|
}
|
|
1619
|
-
return [4
|
|
1619
|
+
return [4, parseBody(output.body, context)];
|
|
1620
1620
|
case 1:
|
|
1621
1621
|
data = _a.sent();
|
|
1622
1622
|
contents = {};
|
|
1623
1623
|
contents = deserializeAws_json1_1DescribeRulesPackagesResponse(data, context);
|
|
1624
1624
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1625
|
-
return [2
|
|
1625
|
+
return [2, Promise.resolve(response)];
|
|
1626
1626
|
}
|
|
1627
1627
|
});
|
|
1628
1628
|
}); };
|
|
@@ -1634,31 +1634,31 @@ var deserializeAws_json1_1DescribeRulesPackagesCommandError = function (output,
|
|
|
1634
1634
|
case 0:
|
|
1635
1635
|
_a = [__assign({}, output)];
|
|
1636
1636
|
_e = {};
|
|
1637
|
-
return [4
|
|
1637
|
+
return [4, parseBody(output.body, context)];
|
|
1638
1638
|
case 1:
|
|
1639
1639
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1640
1640
|
errorCode = "UnknownError";
|
|
1641
1641
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
1642
|
_b = errorCode;
|
|
1643
1643
|
switch (_b) {
|
|
1644
|
-
case "InternalException": return [3
|
|
1645
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1646
|
-
case "InvalidInputException": return [3
|
|
1647
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1644
|
+
case "InternalException": return [3, 2];
|
|
1645
|
+
case "com.amazonaws.inspector#InternalException": return [3, 2];
|
|
1646
|
+
case "InvalidInputException": return [3, 4];
|
|
1647
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 4];
|
|
1648
1648
|
}
|
|
1649
|
-
return [3
|
|
1649
|
+
return [3, 6];
|
|
1650
1650
|
case 2:
|
|
1651
1651
|
_c = [{}];
|
|
1652
|
-
return [4
|
|
1652
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1653
1653
|
case 3:
|
|
1654
1654
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1655
|
-
return [3
|
|
1655
|
+
return [3, 7];
|
|
1656
1656
|
case 4:
|
|
1657
1657
|
_d = [{}];
|
|
1658
|
-
return [4
|
|
1658
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1659
1659
|
case 5:
|
|
1660
1660
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1661
|
-
return [3
|
|
1661
|
+
return [3, 7];
|
|
1662
1662
|
case 6:
|
|
1663
1663
|
parsedBody = parsedOutput.body;
|
|
1664
1664
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1668,7 +1668,7 @@ var deserializeAws_json1_1DescribeRulesPackagesCommandError = function (output,
|
|
|
1668
1668
|
message = response.message || response.Message || errorCode;
|
|
1669
1669
|
response.message = message;
|
|
1670
1670
|
delete response.Message;
|
|
1671
|
-
return [2
|
|
1671
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1672
1672
|
}
|
|
1673
1673
|
});
|
|
1674
1674
|
}); };
|
|
@@ -1678,15 +1678,15 @@ export var deserializeAws_json1_1GetAssessmentReportCommand = function (output,
|
|
|
1678
1678
|
switch (_a.label) {
|
|
1679
1679
|
case 0:
|
|
1680
1680
|
if (output.statusCode >= 300) {
|
|
1681
|
-
return [2
|
|
1681
|
+
return [2, deserializeAws_json1_1GetAssessmentReportCommandError(output, context)];
|
|
1682
1682
|
}
|
|
1683
|
-
return [4
|
|
1683
|
+
return [4, parseBody(output.body, context)];
|
|
1684
1684
|
case 1:
|
|
1685
1685
|
data = _a.sent();
|
|
1686
1686
|
contents = {};
|
|
1687
1687
|
contents = deserializeAws_json1_1GetAssessmentReportResponse(data, context);
|
|
1688
1688
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1689
|
-
return [2
|
|
1689
|
+
return [2, Promise.resolve(response)];
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
}); };
|
|
@@ -1698,71 +1698,71 @@ var deserializeAws_json1_1GetAssessmentReportCommandError = function (output, co
|
|
|
1698
1698
|
case 0:
|
|
1699
1699
|
_a = [__assign({}, output)];
|
|
1700
1700
|
_k = {};
|
|
1701
|
-
return [4
|
|
1701
|
+
return [4, parseBody(output.body, context)];
|
|
1702
1702
|
case 1:
|
|
1703
1703
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1704
1704
|
errorCode = "UnknownError";
|
|
1705
1705
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1706
1706
|
_b = errorCode;
|
|
1707
1707
|
switch (_b) {
|
|
1708
|
-
case "AccessDeniedException": return [3
|
|
1709
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
1710
|
-
case "AssessmentRunInProgressException": return [3
|
|
1711
|
-
case "com.amazonaws.inspector#AssessmentRunInProgressException": return [3
|
|
1712
|
-
case "InternalException": return [3
|
|
1713
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1714
|
-
case "InvalidInputException": return [3
|
|
1715
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1716
|
-
case "NoSuchEntityException": return [3
|
|
1717
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
1718
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
1719
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
1720
|
-
case "UnsupportedFeatureException": return [3
|
|
1721
|
-
case "com.amazonaws.inspector#UnsupportedFeatureException": return [3
|
|
1708
|
+
case "AccessDeniedException": return [3, 2];
|
|
1709
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
1710
|
+
case "AssessmentRunInProgressException": return [3, 4];
|
|
1711
|
+
case "com.amazonaws.inspector#AssessmentRunInProgressException": return [3, 4];
|
|
1712
|
+
case "InternalException": return [3, 6];
|
|
1713
|
+
case "com.amazonaws.inspector#InternalException": return [3, 6];
|
|
1714
|
+
case "InvalidInputException": return [3, 8];
|
|
1715
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 8];
|
|
1716
|
+
case "NoSuchEntityException": return [3, 10];
|
|
1717
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 10];
|
|
1718
|
+
case "ServiceTemporarilyUnavailableException": return [3, 12];
|
|
1719
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 12];
|
|
1720
|
+
case "UnsupportedFeatureException": return [3, 14];
|
|
1721
|
+
case "com.amazonaws.inspector#UnsupportedFeatureException": return [3, 14];
|
|
1722
1722
|
}
|
|
1723
|
-
return [3
|
|
1723
|
+
return [3, 16];
|
|
1724
1724
|
case 2:
|
|
1725
1725
|
_c = [{}];
|
|
1726
|
-
return [4
|
|
1726
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1727
1727
|
case 3:
|
|
1728
1728
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1729
|
-
return [3
|
|
1729
|
+
return [3, 17];
|
|
1730
1730
|
case 4:
|
|
1731
1731
|
_d = [{}];
|
|
1732
|
-
return [4
|
|
1732
|
+
return [4, deserializeAws_json1_1AssessmentRunInProgressExceptionResponse(parsedOutput, context)];
|
|
1733
1733
|
case 5:
|
|
1734
1734
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1735
|
-
return [3
|
|
1735
|
+
return [3, 17];
|
|
1736
1736
|
case 6:
|
|
1737
1737
|
_e = [{}];
|
|
1738
|
-
return [4
|
|
1738
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1739
1739
|
case 7:
|
|
1740
1740
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1741
|
-
return [3
|
|
1741
|
+
return [3, 17];
|
|
1742
1742
|
case 8:
|
|
1743
1743
|
_f = [{}];
|
|
1744
|
-
return [4
|
|
1744
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1745
1745
|
case 9:
|
|
1746
1746
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1747
|
-
return [3
|
|
1747
|
+
return [3, 17];
|
|
1748
1748
|
case 10:
|
|
1749
1749
|
_g = [{}];
|
|
1750
|
-
return [4
|
|
1750
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
1751
1751
|
case 11:
|
|
1752
1752
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1753
|
-
return [3
|
|
1753
|
+
return [3, 17];
|
|
1754
1754
|
case 12:
|
|
1755
1755
|
_h = [{}];
|
|
1756
|
-
return [4
|
|
1756
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
1757
1757
|
case 13:
|
|
1758
1758
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1759
|
-
return [3
|
|
1759
|
+
return [3, 17];
|
|
1760
1760
|
case 14:
|
|
1761
1761
|
_j = [{}];
|
|
1762
|
-
return [4
|
|
1762
|
+
return [4, deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context)];
|
|
1763
1763
|
case 15:
|
|
1764
1764
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1765
|
-
return [3
|
|
1765
|
+
return [3, 17];
|
|
1766
1766
|
case 16:
|
|
1767
1767
|
parsedBody = parsedOutput.body;
|
|
1768
1768
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1772,7 +1772,7 @@ var deserializeAws_json1_1GetAssessmentReportCommandError = function (output, co
|
|
|
1772
1772
|
message = response.message || response.Message || errorCode;
|
|
1773
1773
|
response.message = message;
|
|
1774
1774
|
delete response.Message;
|
|
1775
|
-
return [2
|
|
1775
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1776
1776
|
}
|
|
1777
1777
|
});
|
|
1778
1778
|
}); };
|
|
@@ -1782,15 +1782,15 @@ export var deserializeAws_json1_1GetExclusionsPreviewCommand = function (output,
|
|
|
1782
1782
|
switch (_a.label) {
|
|
1783
1783
|
case 0:
|
|
1784
1784
|
if (output.statusCode >= 300) {
|
|
1785
|
-
return [2
|
|
1785
|
+
return [2, deserializeAws_json1_1GetExclusionsPreviewCommandError(output, context)];
|
|
1786
1786
|
}
|
|
1787
|
-
return [4
|
|
1787
|
+
return [4, parseBody(output.body, context)];
|
|
1788
1788
|
case 1:
|
|
1789
1789
|
data = _a.sent();
|
|
1790
1790
|
contents = {};
|
|
1791
1791
|
contents = deserializeAws_json1_1GetExclusionsPreviewResponse(data, context);
|
|
1792
1792
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1793
|
-
return [2
|
|
1793
|
+
return [2, Promise.resolve(response)];
|
|
1794
1794
|
}
|
|
1795
1795
|
});
|
|
1796
1796
|
}); };
|
|
@@ -1802,47 +1802,47 @@ var deserializeAws_json1_1GetExclusionsPreviewCommandError = function (output, c
|
|
|
1802
1802
|
case 0:
|
|
1803
1803
|
_a = [__assign({}, output)];
|
|
1804
1804
|
_g = {};
|
|
1805
|
-
return [4
|
|
1805
|
+
return [4, parseBody(output.body, context)];
|
|
1806
1806
|
case 1:
|
|
1807
1807
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1808
1808
|
errorCode = "UnknownError";
|
|
1809
1809
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1810
1810
|
_b = errorCode;
|
|
1811
1811
|
switch (_b) {
|
|
1812
|
-
case "AccessDeniedException": return [3
|
|
1813
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
1814
|
-
case "InternalException": return [3
|
|
1815
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1816
|
-
case "InvalidInputException": return [3
|
|
1817
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1818
|
-
case "NoSuchEntityException": return [3
|
|
1819
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
1812
|
+
case "AccessDeniedException": return [3, 2];
|
|
1813
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
1814
|
+
case "InternalException": return [3, 4];
|
|
1815
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
1816
|
+
case "InvalidInputException": return [3, 6];
|
|
1817
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
1818
|
+
case "NoSuchEntityException": return [3, 8];
|
|
1819
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
1820
1820
|
}
|
|
1821
|
-
return [3
|
|
1821
|
+
return [3, 10];
|
|
1822
1822
|
case 2:
|
|
1823
1823
|
_c = [{}];
|
|
1824
|
-
return [4
|
|
1824
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1825
1825
|
case 3:
|
|
1826
1826
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1827
|
-
return [3
|
|
1827
|
+
return [3, 11];
|
|
1828
1828
|
case 4:
|
|
1829
1829
|
_d = [{}];
|
|
1830
|
-
return [4
|
|
1830
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1831
1831
|
case 5:
|
|
1832
1832
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1833
|
-
return [3
|
|
1833
|
+
return [3, 11];
|
|
1834
1834
|
case 6:
|
|
1835
1835
|
_e = [{}];
|
|
1836
|
-
return [4
|
|
1836
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1837
1837
|
case 7:
|
|
1838
1838
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1839
|
-
return [3
|
|
1839
|
+
return [3, 11];
|
|
1840
1840
|
case 8:
|
|
1841
1841
|
_f = [{}];
|
|
1842
|
-
return [4
|
|
1842
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
1843
1843
|
case 9:
|
|
1844
1844
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1845
|
-
return [3
|
|
1845
|
+
return [3, 11];
|
|
1846
1846
|
case 10:
|
|
1847
1847
|
parsedBody = parsedOutput.body;
|
|
1848
1848
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1852,7 +1852,7 @@ var deserializeAws_json1_1GetExclusionsPreviewCommandError = function (output, c
|
|
|
1852
1852
|
message = response.message || response.Message || errorCode;
|
|
1853
1853
|
response.message = message;
|
|
1854
1854
|
delete response.Message;
|
|
1855
|
-
return [2
|
|
1855
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1856
1856
|
}
|
|
1857
1857
|
});
|
|
1858
1858
|
}); };
|
|
@@ -1862,15 +1862,15 @@ export var deserializeAws_json1_1GetTelemetryMetadataCommand = function (output,
|
|
|
1862
1862
|
switch (_a.label) {
|
|
1863
1863
|
case 0:
|
|
1864
1864
|
if (output.statusCode >= 300) {
|
|
1865
|
-
return [2
|
|
1865
|
+
return [2, deserializeAws_json1_1GetTelemetryMetadataCommandError(output, context)];
|
|
1866
1866
|
}
|
|
1867
|
-
return [4
|
|
1867
|
+
return [4, parseBody(output.body, context)];
|
|
1868
1868
|
case 1:
|
|
1869
1869
|
data = _a.sent();
|
|
1870
1870
|
contents = {};
|
|
1871
1871
|
contents = deserializeAws_json1_1GetTelemetryMetadataResponse(data, context);
|
|
1872
1872
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1873
|
-
return [2
|
|
1873
|
+
return [2, Promise.resolve(response)];
|
|
1874
1874
|
}
|
|
1875
1875
|
});
|
|
1876
1876
|
}); };
|
|
@@ -1882,47 +1882,47 @@ var deserializeAws_json1_1GetTelemetryMetadataCommandError = function (output, c
|
|
|
1882
1882
|
case 0:
|
|
1883
1883
|
_a = [__assign({}, output)];
|
|
1884
1884
|
_g = {};
|
|
1885
|
-
return [4
|
|
1885
|
+
return [4, parseBody(output.body, context)];
|
|
1886
1886
|
case 1:
|
|
1887
1887
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1888
1888
|
errorCode = "UnknownError";
|
|
1889
1889
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1890
1890
|
_b = errorCode;
|
|
1891
1891
|
switch (_b) {
|
|
1892
|
-
case "AccessDeniedException": return [3
|
|
1893
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
1894
|
-
case "InternalException": return [3
|
|
1895
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1896
|
-
case "InvalidInputException": return [3
|
|
1897
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1898
|
-
case "NoSuchEntityException": return [3
|
|
1899
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
1892
|
+
case "AccessDeniedException": return [3, 2];
|
|
1893
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
1894
|
+
case "InternalException": return [3, 4];
|
|
1895
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
1896
|
+
case "InvalidInputException": return [3, 6];
|
|
1897
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
1898
|
+
case "NoSuchEntityException": return [3, 8];
|
|
1899
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
1900
1900
|
}
|
|
1901
|
-
return [3
|
|
1901
|
+
return [3, 10];
|
|
1902
1902
|
case 2:
|
|
1903
1903
|
_c = [{}];
|
|
1904
|
-
return [4
|
|
1904
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1905
1905
|
case 3:
|
|
1906
1906
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1907
|
-
return [3
|
|
1907
|
+
return [3, 11];
|
|
1908
1908
|
case 4:
|
|
1909
1909
|
_d = [{}];
|
|
1910
|
-
return [4
|
|
1910
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1911
1911
|
case 5:
|
|
1912
1912
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1913
|
-
return [3
|
|
1913
|
+
return [3, 11];
|
|
1914
1914
|
case 6:
|
|
1915
1915
|
_e = [{}];
|
|
1916
|
-
return [4
|
|
1916
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1917
1917
|
case 7:
|
|
1918
1918
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1919
|
-
return [3
|
|
1919
|
+
return [3, 11];
|
|
1920
1920
|
case 8:
|
|
1921
1921
|
_f = [{}];
|
|
1922
|
-
return [4
|
|
1922
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
1923
1923
|
case 9:
|
|
1924
1924
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1925
|
-
return [3
|
|
1925
|
+
return [3, 11];
|
|
1926
1926
|
case 10:
|
|
1927
1927
|
parsedBody = parsedOutput.body;
|
|
1928
1928
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1932,7 +1932,7 @@ var deserializeAws_json1_1GetTelemetryMetadataCommandError = function (output, c
|
|
|
1932
1932
|
message = response.message || response.Message || errorCode;
|
|
1933
1933
|
response.message = message;
|
|
1934
1934
|
delete response.Message;
|
|
1935
|
-
return [2
|
|
1935
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1936
1936
|
}
|
|
1937
1937
|
});
|
|
1938
1938
|
}); };
|
|
@@ -1942,15 +1942,15 @@ export var deserializeAws_json1_1ListAssessmentRunAgentsCommand = function (outp
|
|
|
1942
1942
|
switch (_a.label) {
|
|
1943
1943
|
case 0:
|
|
1944
1944
|
if (output.statusCode >= 300) {
|
|
1945
|
-
return [2
|
|
1945
|
+
return [2, deserializeAws_json1_1ListAssessmentRunAgentsCommandError(output, context)];
|
|
1946
1946
|
}
|
|
1947
|
-
return [4
|
|
1947
|
+
return [4, parseBody(output.body, context)];
|
|
1948
1948
|
case 1:
|
|
1949
1949
|
data = _a.sent();
|
|
1950
1950
|
contents = {};
|
|
1951
1951
|
contents = deserializeAws_json1_1ListAssessmentRunAgentsResponse(data, context);
|
|
1952
1952
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1953
|
-
return [2
|
|
1953
|
+
return [2, Promise.resolve(response)];
|
|
1954
1954
|
}
|
|
1955
1955
|
});
|
|
1956
1956
|
}); };
|
|
@@ -1962,47 +1962,47 @@ var deserializeAws_json1_1ListAssessmentRunAgentsCommandError = function (output
|
|
|
1962
1962
|
case 0:
|
|
1963
1963
|
_a = [__assign({}, output)];
|
|
1964
1964
|
_g = {};
|
|
1965
|
-
return [4
|
|
1965
|
+
return [4, parseBody(output.body, context)];
|
|
1966
1966
|
case 1:
|
|
1967
1967
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1968
1968
|
errorCode = "UnknownError";
|
|
1969
1969
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
1970
|
_b = errorCode;
|
|
1971
1971
|
switch (_b) {
|
|
1972
|
-
case "AccessDeniedException": return [3
|
|
1973
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
1974
|
-
case "InternalException": return [3
|
|
1975
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
1976
|
-
case "InvalidInputException": return [3
|
|
1977
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
1978
|
-
case "NoSuchEntityException": return [3
|
|
1979
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
1972
|
+
case "AccessDeniedException": return [3, 2];
|
|
1973
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
1974
|
+
case "InternalException": return [3, 4];
|
|
1975
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
1976
|
+
case "InvalidInputException": return [3, 6];
|
|
1977
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
1978
|
+
case "NoSuchEntityException": return [3, 8];
|
|
1979
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
1980
1980
|
}
|
|
1981
|
-
return [3
|
|
1981
|
+
return [3, 10];
|
|
1982
1982
|
case 2:
|
|
1983
1983
|
_c = [{}];
|
|
1984
|
-
return [4
|
|
1984
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1985
1985
|
case 3:
|
|
1986
1986
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1987
|
-
return [3
|
|
1987
|
+
return [3, 11];
|
|
1988
1988
|
case 4:
|
|
1989
1989
|
_d = [{}];
|
|
1990
|
-
return [4
|
|
1990
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1991
1991
|
case 5:
|
|
1992
1992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1993
|
-
return [3
|
|
1993
|
+
return [3, 11];
|
|
1994
1994
|
case 6:
|
|
1995
1995
|
_e = [{}];
|
|
1996
|
-
return [4
|
|
1996
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1997
1997
|
case 7:
|
|
1998
1998
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1999
|
-
return [3
|
|
1999
|
+
return [3, 11];
|
|
2000
2000
|
case 8:
|
|
2001
2001
|
_f = [{}];
|
|
2002
|
-
return [4
|
|
2002
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2003
2003
|
case 9:
|
|
2004
2004
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2005
|
-
return [3
|
|
2005
|
+
return [3, 11];
|
|
2006
2006
|
case 10:
|
|
2007
2007
|
parsedBody = parsedOutput.body;
|
|
2008
2008
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2012,7 +2012,7 @@ var deserializeAws_json1_1ListAssessmentRunAgentsCommandError = function (output
|
|
|
2012
2012
|
message = response.message || response.Message || errorCode;
|
|
2013
2013
|
response.message = message;
|
|
2014
2014
|
delete response.Message;
|
|
2015
|
-
return [2
|
|
2015
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2016
2016
|
}
|
|
2017
2017
|
});
|
|
2018
2018
|
}); };
|
|
@@ -2022,15 +2022,15 @@ export var deserializeAws_json1_1ListAssessmentRunsCommand = function (output, c
|
|
|
2022
2022
|
switch (_a.label) {
|
|
2023
2023
|
case 0:
|
|
2024
2024
|
if (output.statusCode >= 300) {
|
|
2025
|
-
return [2
|
|
2025
|
+
return [2, deserializeAws_json1_1ListAssessmentRunsCommandError(output, context)];
|
|
2026
2026
|
}
|
|
2027
|
-
return [4
|
|
2027
|
+
return [4, parseBody(output.body, context)];
|
|
2028
2028
|
case 1:
|
|
2029
2029
|
data = _a.sent();
|
|
2030
2030
|
contents = {};
|
|
2031
2031
|
contents = deserializeAws_json1_1ListAssessmentRunsResponse(data, context);
|
|
2032
2032
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2033
|
-
return [2
|
|
2033
|
+
return [2, Promise.resolve(response)];
|
|
2034
2034
|
}
|
|
2035
2035
|
});
|
|
2036
2036
|
}); };
|
|
@@ -2042,47 +2042,47 @@ var deserializeAws_json1_1ListAssessmentRunsCommandError = function (output, con
|
|
|
2042
2042
|
case 0:
|
|
2043
2043
|
_a = [__assign({}, output)];
|
|
2044
2044
|
_g = {};
|
|
2045
|
-
return [4
|
|
2045
|
+
return [4, parseBody(output.body, context)];
|
|
2046
2046
|
case 1:
|
|
2047
2047
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2048
2048
|
errorCode = "UnknownError";
|
|
2049
2049
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2050
2050
|
_b = errorCode;
|
|
2051
2051
|
switch (_b) {
|
|
2052
|
-
case "AccessDeniedException": return [3
|
|
2053
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2054
|
-
case "InternalException": return [3
|
|
2055
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2056
|
-
case "InvalidInputException": return [3
|
|
2057
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2058
|
-
case "NoSuchEntityException": return [3
|
|
2059
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2052
|
+
case "AccessDeniedException": return [3, 2];
|
|
2053
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2054
|
+
case "InternalException": return [3, 4];
|
|
2055
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2056
|
+
case "InvalidInputException": return [3, 6];
|
|
2057
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2058
|
+
case "NoSuchEntityException": return [3, 8];
|
|
2059
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
2060
2060
|
}
|
|
2061
|
-
return [3
|
|
2061
|
+
return [3, 10];
|
|
2062
2062
|
case 2:
|
|
2063
2063
|
_c = [{}];
|
|
2064
|
-
return [4
|
|
2064
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2065
2065
|
case 3:
|
|
2066
2066
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2067
|
-
return [3
|
|
2067
|
+
return [3, 11];
|
|
2068
2068
|
case 4:
|
|
2069
2069
|
_d = [{}];
|
|
2070
|
-
return [4
|
|
2070
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2071
2071
|
case 5:
|
|
2072
2072
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2073
|
-
return [3
|
|
2073
|
+
return [3, 11];
|
|
2074
2074
|
case 6:
|
|
2075
2075
|
_e = [{}];
|
|
2076
|
-
return [4
|
|
2076
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2077
2077
|
case 7:
|
|
2078
2078
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2079
|
-
return [3
|
|
2079
|
+
return [3, 11];
|
|
2080
2080
|
case 8:
|
|
2081
2081
|
_f = [{}];
|
|
2082
|
-
return [4
|
|
2082
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2083
2083
|
case 9:
|
|
2084
2084
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2085
|
-
return [3
|
|
2085
|
+
return [3, 11];
|
|
2086
2086
|
case 10:
|
|
2087
2087
|
parsedBody = parsedOutput.body;
|
|
2088
2088
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2092,7 +2092,7 @@ var deserializeAws_json1_1ListAssessmentRunsCommandError = function (output, con
|
|
|
2092
2092
|
message = response.message || response.Message || errorCode;
|
|
2093
2093
|
response.message = message;
|
|
2094
2094
|
delete response.Message;
|
|
2095
|
-
return [2
|
|
2095
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2096
2096
|
}
|
|
2097
2097
|
});
|
|
2098
2098
|
}); };
|
|
@@ -2102,15 +2102,15 @@ export var deserializeAws_json1_1ListAssessmentTargetsCommand = function (output
|
|
|
2102
2102
|
switch (_a.label) {
|
|
2103
2103
|
case 0:
|
|
2104
2104
|
if (output.statusCode >= 300) {
|
|
2105
|
-
return [2
|
|
2105
|
+
return [2, deserializeAws_json1_1ListAssessmentTargetsCommandError(output, context)];
|
|
2106
2106
|
}
|
|
2107
|
-
return [4
|
|
2107
|
+
return [4, parseBody(output.body, context)];
|
|
2108
2108
|
case 1:
|
|
2109
2109
|
data = _a.sent();
|
|
2110
2110
|
contents = {};
|
|
2111
2111
|
contents = deserializeAws_json1_1ListAssessmentTargetsResponse(data, context);
|
|
2112
2112
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2113
|
-
return [2
|
|
2113
|
+
return [2, Promise.resolve(response)];
|
|
2114
2114
|
}
|
|
2115
2115
|
});
|
|
2116
2116
|
}); };
|
|
@@ -2122,39 +2122,39 @@ var deserializeAws_json1_1ListAssessmentTargetsCommandError = function (output,
|
|
|
2122
2122
|
case 0:
|
|
2123
2123
|
_a = [__assign({}, output)];
|
|
2124
2124
|
_f = {};
|
|
2125
|
-
return [4
|
|
2125
|
+
return [4, parseBody(output.body, context)];
|
|
2126
2126
|
case 1:
|
|
2127
2127
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2128
2128
|
errorCode = "UnknownError";
|
|
2129
2129
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2130
2130
|
_b = errorCode;
|
|
2131
2131
|
switch (_b) {
|
|
2132
|
-
case "AccessDeniedException": return [3
|
|
2133
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2134
|
-
case "InternalException": return [3
|
|
2135
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2136
|
-
case "InvalidInputException": return [3
|
|
2137
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2132
|
+
case "AccessDeniedException": return [3, 2];
|
|
2133
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2134
|
+
case "InternalException": return [3, 4];
|
|
2135
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2136
|
+
case "InvalidInputException": return [3, 6];
|
|
2137
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2138
2138
|
}
|
|
2139
|
-
return [3
|
|
2139
|
+
return [3, 8];
|
|
2140
2140
|
case 2:
|
|
2141
2141
|
_c = [{}];
|
|
2142
|
-
return [4
|
|
2142
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2143
2143
|
case 3:
|
|
2144
2144
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2145
|
-
return [3
|
|
2145
|
+
return [3, 9];
|
|
2146
2146
|
case 4:
|
|
2147
2147
|
_d = [{}];
|
|
2148
|
-
return [4
|
|
2148
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2149
2149
|
case 5:
|
|
2150
2150
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2151
|
-
return [3
|
|
2151
|
+
return [3, 9];
|
|
2152
2152
|
case 6:
|
|
2153
2153
|
_e = [{}];
|
|
2154
|
-
return [4
|
|
2154
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2155
2155
|
case 7:
|
|
2156
2156
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2157
|
-
return [3
|
|
2157
|
+
return [3, 9];
|
|
2158
2158
|
case 8:
|
|
2159
2159
|
parsedBody = parsedOutput.body;
|
|
2160
2160
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2164,7 +2164,7 @@ var deserializeAws_json1_1ListAssessmentTargetsCommandError = function (output,
|
|
|
2164
2164
|
message = response.message || response.Message || errorCode;
|
|
2165
2165
|
response.message = message;
|
|
2166
2166
|
delete response.Message;
|
|
2167
|
-
return [2
|
|
2167
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2168
2168
|
}
|
|
2169
2169
|
});
|
|
2170
2170
|
}); };
|
|
@@ -2174,15 +2174,15 @@ export var deserializeAws_json1_1ListAssessmentTemplatesCommand = function (outp
|
|
|
2174
2174
|
switch (_a.label) {
|
|
2175
2175
|
case 0:
|
|
2176
2176
|
if (output.statusCode >= 300) {
|
|
2177
|
-
return [2
|
|
2177
|
+
return [2, deserializeAws_json1_1ListAssessmentTemplatesCommandError(output, context)];
|
|
2178
2178
|
}
|
|
2179
|
-
return [4
|
|
2179
|
+
return [4, parseBody(output.body, context)];
|
|
2180
2180
|
case 1:
|
|
2181
2181
|
data = _a.sent();
|
|
2182
2182
|
contents = {};
|
|
2183
2183
|
contents = deserializeAws_json1_1ListAssessmentTemplatesResponse(data, context);
|
|
2184
2184
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2185
|
-
return [2
|
|
2185
|
+
return [2, Promise.resolve(response)];
|
|
2186
2186
|
}
|
|
2187
2187
|
});
|
|
2188
2188
|
}); };
|
|
@@ -2194,47 +2194,47 @@ var deserializeAws_json1_1ListAssessmentTemplatesCommandError = function (output
|
|
|
2194
2194
|
case 0:
|
|
2195
2195
|
_a = [__assign({}, output)];
|
|
2196
2196
|
_g = {};
|
|
2197
|
-
return [4
|
|
2197
|
+
return [4, parseBody(output.body, context)];
|
|
2198
2198
|
case 1:
|
|
2199
2199
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2200
2200
|
errorCode = "UnknownError";
|
|
2201
2201
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2202
2202
|
_b = errorCode;
|
|
2203
2203
|
switch (_b) {
|
|
2204
|
-
case "AccessDeniedException": return [3
|
|
2205
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2206
|
-
case "InternalException": return [3
|
|
2207
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2208
|
-
case "InvalidInputException": return [3
|
|
2209
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2210
|
-
case "NoSuchEntityException": return [3
|
|
2211
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2204
|
+
case "AccessDeniedException": return [3, 2];
|
|
2205
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2206
|
+
case "InternalException": return [3, 4];
|
|
2207
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2208
|
+
case "InvalidInputException": return [3, 6];
|
|
2209
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2210
|
+
case "NoSuchEntityException": return [3, 8];
|
|
2211
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
2212
2212
|
}
|
|
2213
|
-
return [3
|
|
2213
|
+
return [3, 10];
|
|
2214
2214
|
case 2:
|
|
2215
2215
|
_c = [{}];
|
|
2216
|
-
return [4
|
|
2216
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2217
2217
|
case 3:
|
|
2218
2218
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2219
|
-
return [3
|
|
2219
|
+
return [3, 11];
|
|
2220
2220
|
case 4:
|
|
2221
2221
|
_d = [{}];
|
|
2222
|
-
return [4
|
|
2222
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2223
2223
|
case 5:
|
|
2224
2224
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2225
|
-
return [3
|
|
2225
|
+
return [3, 11];
|
|
2226
2226
|
case 6:
|
|
2227
2227
|
_e = [{}];
|
|
2228
|
-
return [4
|
|
2228
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2229
2229
|
case 7:
|
|
2230
2230
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2231
|
-
return [3
|
|
2231
|
+
return [3, 11];
|
|
2232
2232
|
case 8:
|
|
2233
2233
|
_f = [{}];
|
|
2234
|
-
return [4
|
|
2234
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2235
2235
|
case 9:
|
|
2236
2236
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2237
|
-
return [3
|
|
2237
|
+
return [3, 11];
|
|
2238
2238
|
case 10:
|
|
2239
2239
|
parsedBody = parsedOutput.body;
|
|
2240
2240
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2244,7 +2244,7 @@ var deserializeAws_json1_1ListAssessmentTemplatesCommandError = function (output
|
|
|
2244
2244
|
message = response.message || response.Message || errorCode;
|
|
2245
2245
|
response.message = message;
|
|
2246
2246
|
delete response.Message;
|
|
2247
|
-
return [2
|
|
2247
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2248
2248
|
}
|
|
2249
2249
|
});
|
|
2250
2250
|
}); };
|
|
@@ -2254,15 +2254,15 @@ export var deserializeAws_json1_1ListEventSubscriptionsCommand = function (outpu
|
|
|
2254
2254
|
switch (_a.label) {
|
|
2255
2255
|
case 0:
|
|
2256
2256
|
if (output.statusCode >= 300) {
|
|
2257
|
-
return [2
|
|
2257
|
+
return [2, deserializeAws_json1_1ListEventSubscriptionsCommandError(output, context)];
|
|
2258
2258
|
}
|
|
2259
|
-
return [4
|
|
2259
|
+
return [4, parseBody(output.body, context)];
|
|
2260
2260
|
case 1:
|
|
2261
2261
|
data = _a.sent();
|
|
2262
2262
|
contents = {};
|
|
2263
2263
|
contents = deserializeAws_json1_1ListEventSubscriptionsResponse(data, context);
|
|
2264
2264
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2265
|
-
return [2
|
|
2265
|
+
return [2, Promise.resolve(response)];
|
|
2266
2266
|
}
|
|
2267
2267
|
});
|
|
2268
2268
|
}); };
|
|
@@ -2274,47 +2274,47 @@ var deserializeAws_json1_1ListEventSubscriptionsCommandError = function (output,
|
|
|
2274
2274
|
case 0:
|
|
2275
2275
|
_a = [__assign({}, output)];
|
|
2276
2276
|
_g = {};
|
|
2277
|
-
return [4
|
|
2277
|
+
return [4, parseBody(output.body, context)];
|
|
2278
2278
|
case 1:
|
|
2279
2279
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2280
2280
|
errorCode = "UnknownError";
|
|
2281
2281
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2282
|
_b = errorCode;
|
|
2283
2283
|
switch (_b) {
|
|
2284
|
-
case "AccessDeniedException": return [3
|
|
2285
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2286
|
-
case "InternalException": return [3
|
|
2287
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2288
|
-
case "InvalidInputException": return [3
|
|
2289
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2290
|
-
case "NoSuchEntityException": return [3
|
|
2291
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2284
|
+
case "AccessDeniedException": return [3, 2];
|
|
2285
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2286
|
+
case "InternalException": return [3, 4];
|
|
2287
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2288
|
+
case "InvalidInputException": return [3, 6];
|
|
2289
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2290
|
+
case "NoSuchEntityException": return [3, 8];
|
|
2291
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
2292
2292
|
}
|
|
2293
|
-
return [3
|
|
2293
|
+
return [3, 10];
|
|
2294
2294
|
case 2:
|
|
2295
2295
|
_c = [{}];
|
|
2296
|
-
return [4
|
|
2296
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2297
2297
|
case 3:
|
|
2298
2298
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2299
|
-
return [3
|
|
2299
|
+
return [3, 11];
|
|
2300
2300
|
case 4:
|
|
2301
2301
|
_d = [{}];
|
|
2302
|
-
return [4
|
|
2302
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2303
2303
|
case 5:
|
|
2304
2304
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2305
|
-
return [3
|
|
2305
|
+
return [3, 11];
|
|
2306
2306
|
case 6:
|
|
2307
2307
|
_e = [{}];
|
|
2308
|
-
return [4
|
|
2308
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2309
2309
|
case 7:
|
|
2310
2310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2311
|
-
return [3
|
|
2311
|
+
return [3, 11];
|
|
2312
2312
|
case 8:
|
|
2313
2313
|
_f = [{}];
|
|
2314
|
-
return [4
|
|
2314
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2315
2315
|
case 9:
|
|
2316
2316
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2317
|
-
return [3
|
|
2317
|
+
return [3, 11];
|
|
2318
2318
|
case 10:
|
|
2319
2319
|
parsedBody = parsedOutput.body;
|
|
2320
2320
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2324,7 +2324,7 @@ var deserializeAws_json1_1ListEventSubscriptionsCommandError = function (output,
|
|
|
2324
2324
|
message = response.message || response.Message || errorCode;
|
|
2325
2325
|
response.message = message;
|
|
2326
2326
|
delete response.Message;
|
|
2327
|
-
return [2
|
|
2327
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
2330
2330
|
}); };
|
|
@@ -2334,15 +2334,15 @@ export var deserializeAws_json1_1ListExclusionsCommand = function (output, conte
|
|
|
2334
2334
|
switch (_a.label) {
|
|
2335
2335
|
case 0:
|
|
2336
2336
|
if (output.statusCode >= 300) {
|
|
2337
|
-
return [2
|
|
2337
|
+
return [2, deserializeAws_json1_1ListExclusionsCommandError(output, context)];
|
|
2338
2338
|
}
|
|
2339
|
-
return [4
|
|
2339
|
+
return [4, parseBody(output.body, context)];
|
|
2340
2340
|
case 1:
|
|
2341
2341
|
data = _a.sent();
|
|
2342
2342
|
contents = {};
|
|
2343
2343
|
contents = deserializeAws_json1_1ListExclusionsResponse(data, context);
|
|
2344
2344
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2345
|
-
return [2
|
|
2345
|
+
return [2, Promise.resolve(response)];
|
|
2346
2346
|
}
|
|
2347
2347
|
});
|
|
2348
2348
|
}); };
|
|
@@ -2354,47 +2354,47 @@ var deserializeAws_json1_1ListExclusionsCommandError = function (output, context
|
|
|
2354
2354
|
case 0:
|
|
2355
2355
|
_a = [__assign({}, output)];
|
|
2356
2356
|
_g = {};
|
|
2357
|
-
return [4
|
|
2357
|
+
return [4, parseBody(output.body, context)];
|
|
2358
2358
|
case 1:
|
|
2359
2359
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2360
2360
|
errorCode = "UnknownError";
|
|
2361
2361
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
2362
|
_b = errorCode;
|
|
2363
2363
|
switch (_b) {
|
|
2364
|
-
case "AccessDeniedException": return [3
|
|
2365
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2366
|
-
case "InternalException": return [3
|
|
2367
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2368
|
-
case "InvalidInputException": return [3
|
|
2369
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2370
|
-
case "NoSuchEntityException": return [3
|
|
2371
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2364
|
+
case "AccessDeniedException": return [3, 2];
|
|
2365
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2366
|
+
case "InternalException": return [3, 4];
|
|
2367
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2368
|
+
case "InvalidInputException": return [3, 6];
|
|
2369
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2370
|
+
case "NoSuchEntityException": return [3, 8];
|
|
2371
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
2372
2372
|
}
|
|
2373
|
-
return [3
|
|
2373
|
+
return [3, 10];
|
|
2374
2374
|
case 2:
|
|
2375
2375
|
_c = [{}];
|
|
2376
|
-
return [4
|
|
2376
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2377
2377
|
case 3:
|
|
2378
2378
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2379
|
-
return [3
|
|
2379
|
+
return [3, 11];
|
|
2380
2380
|
case 4:
|
|
2381
2381
|
_d = [{}];
|
|
2382
|
-
return [4
|
|
2382
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2383
2383
|
case 5:
|
|
2384
2384
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2385
|
-
return [3
|
|
2385
|
+
return [3, 11];
|
|
2386
2386
|
case 6:
|
|
2387
2387
|
_e = [{}];
|
|
2388
|
-
return [4
|
|
2388
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2389
2389
|
case 7:
|
|
2390
2390
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2391
|
-
return [3
|
|
2391
|
+
return [3, 11];
|
|
2392
2392
|
case 8:
|
|
2393
2393
|
_f = [{}];
|
|
2394
|
-
return [4
|
|
2394
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2395
2395
|
case 9:
|
|
2396
2396
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2397
|
-
return [3
|
|
2397
|
+
return [3, 11];
|
|
2398
2398
|
case 10:
|
|
2399
2399
|
parsedBody = parsedOutput.body;
|
|
2400
2400
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2404,7 +2404,7 @@ var deserializeAws_json1_1ListExclusionsCommandError = function (output, context
|
|
|
2404
2404
|
message = response.message || response.Message || errorCode;
|
|
2405
2405
|
response.message = message;
|
|
2406
2406
|
delete response.Message;
|
|
2407
|
-
return [2
|
|
2407
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2408
2408
|
}
|
|
2409
2409
|
});
|
|
2410
2410
|
}); };
|
|
@@ -2414,15 +2414,15 @@ export var deserializeAws_json1_1ListFindingsCommand = function (output, context
|
|
|
2414
2414
|
switch (_a.label) {
|
|
2415
2415
|
case 0:
|
|
2416
2416
|
if (output.statusCode >= 300) {
|
|
2417
|
-
return [2
|
|
2417
|
+
return [2, deserializeAws_json1_1ListFindingsCommandError(output, context)];
|
|
2418
2418
|
}
|
|
2419
|
-
return [4
|
|
2419
|
+
return [4, parseBody(output.body, context)];
|
|
2420
2420
|
case 1:
|
|
2421
2421
|
data = _a.sent();
|
|
2422
2422
|
contents = {};
|
|
2423
2423
|
contents = deserializeAws_json1_1ListFindingsResponse(data, context);
|
|
2424
2424
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2425
|
-
return [2
|
|
2425
|
+
return [2, Promise.resolve(response)];
|
|
2426
2426
|
}
|
|
2427
2427
|
});
|
|
2428
2428
|
}); };
|
|
@@ -2434,47 +2434,47 @@ var deserializeAws_json1_1ListFindingsCommandError = function (output, context)
|
|
|
2434
2434
|
case 0:
|
|
2435
2435
|
_a = [__assign({}, output)];
|
|
2436
2436
|
_g = {};
|
|
2437
|
-
return [4
|
|
2437
|
+
return [4, parseBody(output.body, context)];
|
|
2438
2438
|
case 1:
|
|
2439
2439
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2440
2440
|
errorCode = "UnknownError";
|
|
2441
2441
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
2442
|
_b = errorCode;
|
|
2443
2443
|
switch (_b) {
|
|
2444
|
-
case "AccessDeniedException": return [3
|
|
2445
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2446
|
-
case "InternalException": return [3
|
|
2447
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2448
|
-
case "InvalidInputException": return [3
|
|
2449
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2450
|
-
case "NoSuchEntityException": return [3
|
|
2451
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2444
|
+
case "AccessDeniedException": return [3, 2];
|
|
2445
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2446
|
+
case "InternalException": return [3, 4];
|
|
2447
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2448
|
+
case "InvalidInputException": return [3, 6];
|
|
2449
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2450
|
+
case "NoSuchEntityException": return [3, 8];
|
|
2451
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
2452
2452
|
}
|
|
2453
|
-
return [3
|
|
2453
|
+
return [3, 10];
|
|
2454
2454
|
case 2:
|
|
2455
2455
|
_c = [{}];
|
|
2456
|
-
return [4
|
|
2456
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2457
2457
|
case 3:
|
|
2458
2458
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2459
|
-
return [3
|
|
2459
|
+
return [3, 11];
|
|
2460
2460
|
case 4:
|
|
2461
2461
|
_d = [{}];
|
|
2462
|
-
return [4
|
|
2462
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2463
2463
|
case 5:
|
|
2464
2464
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2465
|
-
return [3
|
|
2465
|
+
return [3, 11];
|
|
2466
2466
|
case 6:
|
|
2467
2467
|
_e = [{}];
|
|
2468
|
-
return [4
|
|
2468
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2469
2469
|
case 7:
|
|
2470
2470
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2471
|
-
return [3
|
|
2471
|
+
return [3, 11];
|
|
2472
2472
|
case 8:
|
|
2473
2473
|
_f = [{}];
|
|
2474
|
-
return [4
|
|
2474
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2475
2475
|
case 9:
|
|
2476
2476
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2477
|
-
return [3
|
|
2477
|
+
return [3, 11];
|
|
2478
2478
|
case 10:
|
|
2479
2479
|
parsedBody = parsedOutput.body;
|
|
2480
2480
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2484,7 +2484,7 @@ var deserializeAws_json1_1ListFindingsCommandError = function (output, context)
|
|
|
2484
2484
|
message = response.message || response.Message || errorCode;
|
|
2485
2485
|
response.message = message;
|
|
2486
2486
|
delete response.Message;
|
|
2487
|
-
return [2
|
|
2487
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2488
2488
|
}
|
|
2489
2489
|
});
|
|
2490
2490
|
}); };
|
|
@@ -2494,15 +2494,15 @@ export var deserializeAws_json1_1ListRulesPackagesCommand = function (output, co
|
|
|
2494
2494
|
switch (_a.label) {
|
|
2495
2495
|
case 0:
|
|
2496
2496
|
if (output.statusCode >= 300) {
|
|
2497
|
-
return [2
|
|
2497
|
+
return [2, deserializeAws_json1_1ListRulesPackagesCommandError(output, context)];
|
|
2498
2498
|
}
|
|
2499
|
-
return [4
|
|
2499
|
+
return [4, parseBody(output.body, context)];
|
|
2500
2500
|
case 1:
|
|
2501
2501
|
data = _a.sent();
|
|
2502
2502
|
contents = {};
|
|
2503
2503
|
contents = deserializeAws_json1_1ListRulesPackagesResponse(data, context);
|
|
2504
2504
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2505
|
-
return [2
|
|
2505
|
+
return [2, Promise.resolve(response)];
|
|
2506
2506
|
}
|
|
2507
2507
|
});
|
|
2508
2508
|
}); };
|
|
@@ -2514,39 +2514,39 @@ var deserializeAws_json1_1ListRulesPackagesCommandError = function (output, cont
|
|
|
2514
2514
|
case 0:
|
|
2515
2515
|
_a = [__assign({}, output)];
|
|
2516
2516
|
_f = {};
|
|
2517
|
-
return [4
|
|
2517
|
+
return [4, parseBody(output.body, context)];
|
|
2518
2518
|
case 1:
|
|
2519
2519
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2520
2520
|
errorCode = "UnknownError";
|
|
2521
2521
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2522
2522
|
_b = errorCode;
|
|
2523
2523
|
switch (_b) {
|
|
2524
|
-
case "AccessDeniedException": return [3
|
|
2525
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2526
|
-
case "InternalException": return [3
|
|
2527
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2528
|
-
case "InvalidInputException": return [3
|
|
2529
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2524
|
+
case "AccessDeniedException": return [3, 2];
|
|
2525
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2526
|
+
case "InternalException": return [3, 4];
|
|
2527
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2528
|
+
case "InvalidInputException": return [3, 6];
|
|
2529
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2530
2530
|
}
|
|
2531
|
-
return [3
|
|
2531
|
+
return [3, 8];
|
|
2532
2532
|
case 2:
|
|
2533
2533
|
_c = [{}];
|
|
2534
|
-
return [4
|
|
2534
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2535
2535
|
case 3:
|
|
2536
2536
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2537
|
-
return [3
|
|
2537
|
+
return [3, 9];
|
|
2538
2538
|
case 4:
|
|
2539
2539
|
_d = [{}];
|
|
2540
|
-
return [4
|
|
2540
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2541
2541
|
case 5:
|
|
2542
2542
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2543
|
-
return [3
|
|
2543
|
+
return [3, 9];
|
|
2544
2544
|
case 6:
|
|
2545
2545
|
_e = [{}];
|
|
2546
|
-
return [4
|
|
2546
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2547
2547
|
case 7:
|
|
2548
2548
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2549
|
-
return [3
|
|
2549
|
+
return [3, 9];
|
|
2550
2550
|
case 8:
|
|
2551
2551
|
parsedBody = parsedOutput.body;
|
|
2552
2552
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2556,7 +2556,7 @@ var deserializeAws_json1_1ListRulesPackagesCommandError = function (output, cont
|
|
|
2556
2556
|
message = response.message || response.Message || errorCode;
|
|
2557
2557
|
response.message = message;
|
|
2558
2558
|
delete response.Message;
|
|
2559
|
-
return [2
|
|
2559
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2560
2560
|
}
|
|
2561
2561
|
});
|
|
2562
2562
|
}); };
|
|
@@ -2566,15 +2566,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
2566
2566
|
switch (_a.label) {
|
|
2567
2567
|
case 0:
|
|
2568
2568
|
if (output.statusCode >= 300) {
|
|
2569
|
-
return [2
|
|
2569
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
2570
2570
|
}
|
|
2571
|
-
return [4
|
|
2571
|
+
return [4, parseBody(output.body, context)];
|
|
2572
2572
|
case 1:
|
|
2573
2573
|
data = _a.sent();
|
|
2574
2574
|
contents = {};
|
|
2575
2575
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2576
2576
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2577
|
-
return [2
|
|
2577
|
+
return [2, Promise.resolve(response)];
|
|
2578
2578
|
}
|
|
2579
2579
|
});
|
|
2580
2580
|
}); };
|
|
@@ -2586,47 +2586,47 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2586
2586
|
case 0:
|
|
2587
2587
|
_a = [__assign({}, output)];
|
|
2588
2588
|
_g = {};
|
|
2589
|
-
return [4
|
|
2589
|
+
return [4, parseBody(output.body, context)];
|
|
2590
2590
|
case 1:
|
|
2591
2591
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2592
2592
|
errorCode = "UnknownError";
|
|
2593
2593
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2594
2594
|
_b = errorCode;
|
|
2595
2595
|
switch (_b) {
|
|
2596
|
-
case "AccessDeniedException": return [3
|
|
2597
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2598
|
-
case "InternalException": return [3
|
|
2599
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2600
|
-
case "InvalidInputException": return [3
|
|
2601
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2602
|
-
case "NoSuchEntityException": return [3
|
|
2603
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2596
|
+
case "AccessDeniedException": return [3, 2];
|
|
2597
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2598
|
+
case "InternalException": return [3, 4];
|
|
2599
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2600
|
+
case "InvalidInputException": return [3, 6];
|
|
2601
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2602
|
+
case "NoSuchEntityException": return [3, 8];
|
|
2603
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
2604
2604
|
}
|
|
2605
|
-
return [3
|
|
2605
|
+
return [3, 10];
|
|
2606
2606
|
case 2:
|
|
2607
2607
|
_c = [{}];
|
|
2608
|
-
return [4
|
|
2608
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2609
2609
|
case 3:
|
|
2610
2610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2611
|
-
return [3
|
|
2611
|
+
return [3, 11];
|
|
2612
2612
|
case 4:
|
|
2613
2613
|
_d = [{}];
|
|
2614
|
-
return [4
|
|
2614
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2615
2615
|
case 5:
|
|
2616
2616
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2617
|
-
return [3
|
|
2617
|
+
return [3, 11];
|
|
2618
2618
|
case 6:
|
|
2619
2619
|
_e = [{}];
|
|
2620
|
-
return [4
|
|
2620
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2621
2621
|
case 7:
|
|
2622
2622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2623
|
-
return [3
|
|
2623
|
+
return [3, 11];
|
|
2624
2624
|
case 8:
|
|
2625
2625
|
_f = [{}];
|
|
2626
|
-
return [4
|
|
2626
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2627
2627
|
case 9:
|
|
2628
2628
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2629
|
-
return [3
|
|
2629
|
+
return [3, 11];
|
|
2630
2630
|
case 10:
|
|
2631
2631
|
parsedBody = parsedOutput.body;
|
|
2632
2632
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2636,7 +2636,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2636
2636
|
message = response.message || response.Message || errorCode;
|
|
2637
2637
|
response.message = message;
|
|
2638
2638
|
delete response.Message;
|
|
2639
|
-
return [2
|
|
2639
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2640
2640
|
}
|
|
2641
2641
|
});
|
|
2642
2642
|
}); };
|
|
@@ -2646,15 +2646,15 @@ export var deserializeAws_json1_1PreviewAgentsCommand = function (output, contex
|
|
|
2646
2646
|
switch (_a.label) {
|
|
2647
2647
|
case 0:
|
|
2648
2648
|
if (output.statusCode >= 300) {
|
|
2649
|
-
return [2
|
|
2649
|
+
return [2, deserializeAws_json1_1PreviewAgentsCommandError(output, context)];
|
|
2650
2650
|
}
|
|
2651
|
-
return [4
|
|
2651
|
+
return [4, parseBody(output.body, context)];
|
|
2652
2652
|
case 1:
|
|
2653
2653
|
data = _a.sent();
|
|
2654
2654
|
contents = {};
|
|
2655
2655
|
contents = deserializeAws_json1_1PreviewAgentsResponse(data, context);
|
|
2656
2656
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2657
|
-
return [2
|
|
2657
|
+
return [2, Promise.resolve(response)];
|
|
2658
2658
|
}
|
|
2659
2659
|
});
|
|
2660
2660
|
}); };
|
|
@@ -2666,55 +2666,55 @@ var deserializeAws_json1_1PreviewAgentsCommandError = function (output, context)
|
|
|
2666
2666
|
case 0:
|
|
2667
2667
|
_a = [__assign({}, output)];
|
|
2668
2668
|
_h = {};
|
|
2669
|
-
return [4
|
|
2669
|
+
return [4, parseBody(output.body, context)];
|
|
2670
2670
|
case 1:
|
|
2671
2671
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2672
2672
|
errorCode = "UnknownError";
|
|
2673
2673
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2674
2674
|
_b = errorCode;
|
|
2675
2675
|
switch (_b) {
|
|
2676
|
-
case "AccessDeniedException": return [3
|
|
2677
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2678
|
-
case "InternalException": return [3
|
|
2679
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2680
|
-
case "InvalidCrossAccountRoleException": return [3
|
|
2681
|
-
case "com.amazonaws.inspector#InvalidCrossAccountRoleException": return [3
|
|
2682
|
-
case "InvalidInputException": return [3
|
|
2683
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2684
|
-
case "NoSuchEntityException": return [3
|
|
2685
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2676
|
+
case "AccessDeniedException": return [3, 2];
|
|
2677
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2678
|
+
case "InternalException": return [3, 4];
|
|
2679
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2680
|
+
case "InvalidCrossAccountRoleException": return [3, 6];
|
|
2681
|
+
case "com.amazonaws.inspector#InvalidCrossAccountRoleException": return [3, 6];
|
|
2682
|
+
case "InvalidInputException": return [3, 8];
|
|
2683
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 8];
|
|
2684
|
+
case "NoSuchEntityException": return [3, 10];
|
|
2685
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 10];
|
|
2686
2686
|
}
|
|
2687
|
-
return [3
|
|
2687
|
+
return [3, 12];
|
|
2688
2688
|
case 2:
|
|
2689
2689
|
_c = [{}];
|
|
2690
|
-
return [4
|
|
2690
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2691
2691
|
case 3:
|
|
2692
2692
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2693
|
-
return [3
|
|
2693
|
+
return [3, 13];
|
|
2694
2694
|
case 4:
|
|
2695
2695
|
_d = [{}];
|
|
2696
|
-
return [4
|
|
2696
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2697
2697
|
case 5:
|
|
2698
2698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2699
|
-
return [3
|
|
2699
|
+
return [3, 13];
|
|
2700
2700
|
case 6:
|
|
2701
2701
|
_e = [{}];
|
|
2702
|
-
return [4
|
|
2702
|
+
return [4, deserializeAws_json1_1InvalidCrossAccountRoleExceptionResponse(parsedOutput, context)];
|
|
2703
2703
|
case 7:
|
|
2704
2704
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2705
|
-
return [3
|
|
2705
|
+
return [3, 13];
|
|
2706
2706
|
case 8:
|
|
2707
2707
|
_f = [{}];
|
|
2708
|
-
return [4
|
|
2708
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2709
2709
|
case 9:
|
|
2710
2710
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2711
|
-
return [3
|
|
2711
|
+
return [3, 13];
|
|
2712
2712
|
case 10:
|
|
2713
2713
|
_g = [{}];
|
|
2714
|
-
return [4
|
|
2714
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2715
2715
|
case 11:
|
|
2716
2716
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2717
|
-
return [3
|
|
2717
|
+
return [3, 13];
|
|
2718
2718
|
case 12:
|
|
2719
2719
|
parsedBody = parsedOutput.body;
|
|
2720
2720
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2724,7 +2724,7 @@ var deserializeAws_json1_1PreviewAgentsCommandError = function (output, context)
|
|
|
2724
2724
|
message = response.message || response.Message || errorCode;
|
|
2725
2725
|
response.message = message;
|
|
2726
2726
|
delete response.Message;
|
|
2727
|
-
return [2
|
|
2727
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2728
2728
|
}
|
|
2729
2729
|
});
|
|
2730
2730
|
}); };
|
|
@@ -2734,15 +2734,15 @@ export var deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand = functio
|
|
|
2734
2734
|
switch (_a.label) {
|
|
2735
2735
|
case 0:
|
|
2736
2736
|
if (output.statusCode >= 300) {
|
|
2737
|
-
return [2
|
|
2737
|
+
return [2, deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError(output, context)];
|
|
2738
2738
|
}
|
|
2739
|
-
return [4
|
|
2739
|
+
return [4, collectBody(output.body, context)];
|
|
2740
2740
|
case 1:
|
|
2741
2741
|
_a.sent();
|
|
2742
2742
|
response = {
|
|
2743
2743
|
$metadata: deserializeMetadata(output),
|
|
2744
2744
|
};
|
|
2745
|
-
return [2
|
|
2745
|
+
return [2, Promise.resolve(response)];
|
|
2746
2746
|
}
|
|
2747
2747
|
});
|
|
2748
2748
|
}); };
|
|
@@ -2754,55 +2754,55 @@ var deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = function
|
|
|
2754
2754
|
case 0:
|
|
2755
2755
|
_a = [__assign({}, output)];
|
|
2756
2756
|
_h = {};
|
|
2757
|
-
return [4
|
|
2757
|
+
return [4, parseBody(output.body, context)];
|
|
2758
2758
|
case 1:
|
|
2759
2759
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2760
2760
|
errorCode = "UnknownError";
|
|
2761
2761
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
2762
|
_b = errorCode;
|
|
2763
2763
|
switch (_b) {
|
|
2764
|
-
case "AccessDeniedException": return [3
|
|
2765
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2766
|
-
case "InternalException": return [3
|
|
2767
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2768
|
-
case "InvalidCrossAccountRoleException": return [3
|
|
2769
|
-
case "com.amazonaws.inspector#InvalidCrossAccountRoleException": return [3
|
|
2770
|
-
case "InvalidInputException": return [3
|
|
2771
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2772
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
2773
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
2764
|
+
case "AccessDeniedException": return [3, 2];
|
|
2765
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2766
|
+
case "InternalException": return [3, 4];
|
|
2767
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2768
|
+
case "InvalidCrossAccountRoleException": return [3, 6];
|
|
2769
|
+
case "com.amazonaws.inspector#InvalidCrossAccountRoleException": return [3, 6];
|
|
2770
|
+
case "InvalidInputException": return [3, 8];
|
|
2771
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 8];
|
|
2772
|
+
case "ServiceTemporarilyUnavailableException": return [3, 10];
|
|
2773
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 10];
|
|
2774
2774
|
}
|
|
2775
|
-
return [3
|
|
2775
|
+
return [3, 12];
|
|
2776
2776
|
case 2:
|
|
2777
2777
|
_c = [{}];
|
|
2778
|
-
return [4
|
|
2778
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2779
2779
|
case 3:
|
|
2780
2780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2781
|
-
return [3
|
|
2781
|
+
return [3, 13];
|
|
2782
2782
|
case 4:
|
|
2783
2783
|
_d = [{}];
|
|
2784
|
-
return [4
|
|
2784
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2785
2785
|
case 5:
|
|
2786
2786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2787
|
-
return [3
|
|
2787
|
+
return [3, 13];
|
|
2788
2788
|
case 6:
|
|
2789
2789
|
_e = [{}];
|
|
2790
|
-
return [4
|
|
2790
|
+
return [4, deserializeAws_json1_1InvalidCrossAccountRoleExceptionResponse(parsedOutput, context)];
|
|
2791
2791
|
case 7:
|
|
2792
2792
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2793
|
-
return [3
|
|
2793
|
+
return [3, 13];
|
|
2794
2794
|
case 8:
|
|
2795
2795
|
_f = [{}];
|
|
2796
|
-
return [4
|
|
2796
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2797
2797
|
case 9:
|
|
2798
2798
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2799
|
-
return [3
|
|
2799
|
+
return [3, 13];
|
|
2800
2800
|
case 10:
|
|
2801
2801
|
_g = [{}];
|
|
2802
|
-
return [4
|
|
2802
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
2803
2803
|
case 11:
|
|
2804
2804
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2805
|
-
return [3
|
|
2805
|
+
return [3, 13];
|
|
2806
2806
|
case 12:
|
|
2807
2807
|
parsedBody = parsedOutput.body;
|
|
2808
2808
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2812,7 +2812,7 @@ var deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = function
|
|
|
2812
2812
|
message = response.message || response.Message || errorCode;
|
|
2813
2813
|
response.message = message;
|
|
2814
2814
|
delete response.Message;
|
|
2815
|
-
return [2
|
|
2815
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2816
2816
|
}
|
|
2817
2817
|
});
|
|
2818
2818
|
}); };
|
|
@@ -2822,15 +2822,15 @@ export var deserializeAws_json1_1RemoveAttributesFromFindingsCommand = function
|
|
|
2822
2822
|
switch (_a.label) {
|
|
2823
2823
|
case 0:
|
|
2824
2824
|
if (output.statusCode >= 300) {
|
|
2825
|
-
return [2
|
|
2825
|
+
return [2, deserializeAws_json1_1RemoveAttributesFromFindingsCommandError(output, context)];
|
|
2826
2826
|
}
|
|
2827
|
-
return [4
|
|
2827
|
+
return [4, parseBody(output.body, context)];
|
|
2828
2828
|
case 1:
|
|
2829
2829
|
data = _a.sent();
|
|
2830
2830
|
contents = {};
|
|
2831
2831
|
contents = deserializeAws_json1_1RemoveAttributesFromFindingsResponse(data, context);
|
|
2832
2832
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2833
|
-
return [2
|
|
2833
|
+
return [2, Promise.resolve(response)];
|
|
2834
2834
|
}
|
|
2835
2835
|
});
|
|
2836
2836
|
}); };
|
|
@@ -2842,55 +2842,55 @@ var deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = function (o
|
|
|
2842
2842
|
case 0:
|
|
2843
2843
|
_a = [__assign({}, output)];
|
|
2844
2844
|
_h = {};
|
|
2845
|
-
return [4
|
|
2845
|
+
return [4, parseBody(output.body, context)];
|
|
2846
2846
|
case 1:
|
|
2847
2847
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2848
2848
|
errorCode = "UnknownError";
|
|
2849
2849
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2850
2850
|
_b = errorCode;
|
|
2851
2851
|
switch (_b) {
|
|
2852
|
-
case "AccessDeniedException": return [3
|
|
2853
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2854
|
-
case "InternalException": return [3
|
|
2855
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2856
|
-
case "InvalidInputException": return [3
|
|
2857
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2858
|
-
case "NoSuchEntityException": return [3
|
|
2859
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2860
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
2861
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
2852
|
+
case "AccessDeniedException": return [3, 2];
|
|
2853
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2854
|
+
case "InternalException": return [3, 4];
|
|
2855
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2856
|
+
case "InvalidInputException": return [3, 6];
|
|
2857
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2858
|
+
case "NoSuchEntityException": return [3, 8];
|
|
2859
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
2860
|
+
case "ServiceTemporarilyUnavailableException": return [3, 10];
|
|
2861
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 10];
|
|
2862
2862
|
}
|
|
2863
|
-
return [3
|
|
2863
|
+
return [3, 12];
|
|
2864
2864
|
case 2:
|
|
2865
2865
|
_c = [{}];
|
|
2866
|
-
return [4
|
|
2866
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2867
2867
|
case 3:
|
|
2868
2868
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2869
|
-
return [3
|
|
2869
|
+
return [3, 13];
|
|
2870
2870
|
case 4:
|
|
2871
2871
|
_d = [{}];
|
|
2872
|
-
return [4
|
|
2872
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2873
2873
|
case 5:
|
|
2874
2874
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2875
|
-
return [3
|
|
2875
|
+
return [3, 13];
|
|
2876
2876
|
case 6:
|
|
2877
2877
|
_e = [{}];
|
|
2878
|
-
return [4
|
|
2878
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2879
2879
|
case 7:
|
|
2880
2880
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2881
|
-
return [3
|
|
2881
|
+
return [3, 13];
|
|
2882
2882
|
case 8:
|
|
2883
2883
|
_f = [{}];
|
|
2884
|
-
return [4
|
|
2884
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2885
2885
|
case 9:
|
|
2886
2886
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2887
|
-
return [3
|
|
2887
|
+
return [3, 13];
|
|
2888
2888
|
case 10:
|
|
2889
2889
|
_g = [{}];
|
|
2890
|
-
return [4
|
|
2890
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
2891
2891
|
case 11:
|
|
2892
2892
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2893
|
-
return [3
|
|
2893
|
+
return [3, 13];
|
|
2894
2894
|
case 12:
|
|
2895
2895
|
parsedBody = parsedOutput.body;
|
|
2896
2896
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2900,7 +2900,7 @@ var deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = function (o
|
|
|
2900
2900
|
message = response.message || response.Message || errorCode;
|
|
2901
2901
|
response.message = message;
|
|
2902
2902
|
delete response.Message;
|
|
2903
|
-
return [2
|
|
2903
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2904
2904
|
}
|
|
2905
2905
|
});
|
|
2906
2906
|
}); };
|
|
@@ -2910,15 +2910,15 @@ export var deserializeAws_json1_1SetTagsForResourceCommand = function (output, c
|
|
|
2910
2910
|
switch (_a.label) {
|
|
2911
2911
|
case 0:
|
|
2912
2912
|
if (output.statusCode >= 300) {
|
|
2913
|
-
return [2
|
|
2913
|
+
return [2, deserializeAws_json1_1SetTagsForResourceCommandError(output, context)];
|
|
2914
2914
|
}
|
|
2915
|
-
return [4
|
|
2915
|
+
return [4, collectBody(output.body, context)];
|
|
2916
2916
|
case 1:
|
|
2917
2917
|
_a.sent();
|
|
2918
2918
|
response = {
|
|
2919
2919
|
$metadata: deserializeMetadata(output),
|
|
2920
2920
|
};
|
|
2921
|
-
return [2
|
|
2921
|
+
return [2, Promise.resolve(response)];
|
|
2922
2922
|
}
|
|
2923
2923
|
});
|
|
2924
2924
|
}); };
|
|
@@ -2930,55 +2930,55 @@ var deserializeAws_json1_1SetTagsForResourceCommandError = function (output, con
|
|
|
2930
2930
|
case 0:
|
|
2931
2931
|
_a = [__assign({}, output)];
|
|
2932
2932
|
_h = {};
|
|
2933
|
-
return [4
|
|
2933
|
+
return [4, parseBody(output.body, context)];
|
|
2934
2934
|
case 1:
|
|
2935
2935
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2936
2936
|
errorCode = "UnknownError";
|
|
2937
2937
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2938
2938
|
_b = errorCode;
|
|
2939
2939
|
switch (_b) {
|
|
2940
|
-
case "AccessDeniedException": return [3
|
|
2941
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
2942
|
-
case "InternalException": return [3
|
|
2943
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
2944
|
-
case "InvalidInputException": return [3
|
|
2945
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
2946
|
-
case "NoSuchEntityException": return [3
|
|
2947
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
2948
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
2949
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
2940
|
+
case "AccessDeniedException": return [3, 2];
|
|
2941
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
2942
|
+
case "InternalException": return [3, 4];
|
|
2943
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
2944
|
+
case "InvalidInputException": return [3, 6];
|
|
2945
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
2946
|
+
case "NoSuchEntityException": return [3, 8];
|
|
2947
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
2948
|
+
case "ServiceTemporarilyUnavailableException": return [3, 10];
|
|
2949
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 10];
|
|
2950
2950
|
}
|
|
2951
|
-
return [3
|
|
2951
|
+
return [3, 12];
|
|
2952
2952
|
case 2:
|
|
2953
2953
|
_c = [{}];
|
|
2954
|
-
return [4
|
|
2954
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2955
2955
|
case 3:
|
|
2956
2956
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2957
|
-
return [3
|
|
2957
|
+
return [3, 13];
|
|
2958
2958
|
case 4:
|
|
2959
2959
|
_d = [{}];
|
|
2960
|
-
return [4
|
|
2960
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2961
2961
|
case 5:
|
|
2962
2962
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2963
|
-
return [3
|
|
2963
|
+
return [3, 13];
|
|
2964
2964
|
case 6:
|
|
2965
2965
|
_e = [{}];
|
|
2966
|
-
return [4
|
|
2966
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2967
2967
|
case 7:
|
|
2968
2968
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2969
|
-
return [3
|
|
2969
|
+
return [3, 13];
|
|
2970
2970
|
case 8:
|
|
2971
2971
|
_f = [{}];
|
|
2972
|
-
return [4
|
|
2972
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
2973
2973
|
case 9:
|
|
2974
2974
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2975
|
-
return [3
|
|
2975
|
+
return [3, 13];
|
|
2976
2976
|
case 10:
|
|
2977
2977
|
_g = [{}];
|
|
2978
|
-
return [4
|
|
2978
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
2979
2979
|
case 11:
|
|
2980
2980
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2981
|
-
return [3
|
|
2981
|
+
return [3, 13];
|
|
2982
2982
|
case 12:
|
|
2983
2983
|
parsedBody = parsedOutput.body;
|
|
2984
2984
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2988,7 +2988,7 @@ var deserializeAws_json1_1SetTagsForResourceCommandError = function (output, con
|
|
|
2988
2988
|
message = response.message || response.Message || errorCode;
|
|
2989
2989
|
response.message = message;
|
|
2990
2990
|
delete response.Message;
|
|
2991
|
-
return [2
|
|
2991
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2992
2992
|
}
|
|
2993
2993
|
});
|
|
2994
2994
|
}); };
|
|
@@ -2998,15 +2998,15 @@ export var deserializeAws_json1_1StartAssessmentRunCommand = function (output, c
|
|
|
2998
2998
|
switch (_a.label) {
|
|
2999
2999
|
case 0:
|
|
3000
3000
|
if (output.statusCode >= 300) {
|
|
3001
|
-
return [2
|
|
3001
|
+
return [2, deserializeAws_json1_1StartAssessmentRunCommandError(output, context)];
|
|
3002
3002
|
}
|
|
3003
|
-
return [4
|
|
3003
|
+
return [4, parseBody(output.body, context)];
|
|
3004
3004
|
case 1:
|
|
3005
3005
|
data = _a.sent();
|
|
3006
3006
|
contents = {};
|
|
3007
3007
|
contents = deserializeAws_json1_1StartAssessmentRunResponse(data, context);
|
|
3008
3008
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3009
|
-
return [2
|
|
3009
|
+
return [2, Promise.resolve(response)];
|
|
3010
3010
|
}
|
|
3011
3011
|
});
|
|
3012
3012
|
}); };
|
|
@@ -3018,79 +3018,79 @@ var deserializeAws_json1_1StartAssessmentRunCommandError = function (output, con
|
|
|
3018
3018
|
case 0:
|
|
3019
3019
|
_a = [__assign({}, output)];
|
|
3020
3020
|
_l = {};
|
|
3021
|
-
return [4
|
|
3021
|
+
return [4, parseBody(output.body, context)];
|
|
3022
3022
|
case 1:
|
|
3023
3023
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
3024
3024
|
errorCode = "UnknownError";
|
|
3025
3025
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
3026
|
_b = errorCode;
|
|
3027
3027
|
switch (_b) {
|
|
3028
|
-
case "AccessDeniedException": return [3
|
|
3029
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
3030
|
-
case "AgentsAlreadyRunningAssessmentException": return [3
|
|
3031
|
-
case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException": return [3
|
|
3032
|
-
case "InternalException": return [3
|
|
3033
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
3034
|
-
case "InvalidCrossAccountRoleException": return [3
|
|
3035
|
-
case "com.amazonaws.inspector#InvalidCrossAccountRoleException": return [3
|
|
3036
|
-
case "InvalidInputException": return [3
|
|
3037
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
3038
|
-
case "LimitExceededException": return [3
|
|
3039
|
-
case "com.amazonaws.inspector#LimitExceededException": return [3
|
|
3040
|
-
case "NoSuchEntityException": return [3
|
|
3041
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
3042
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
3043
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
3028
|
+
case "AccessDeniedException": return [3, 2];
|
|
3029
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
3030
|
+
case "AgentsAlreadyRunningAssessmentException": return [3, 4];
|
|
3031
|
+
case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException": return [3, 4];
|
|
3032
|
+
case "InternalException": return [3, 6];
|
|
3033
|
+
case "com.amazonaws.inspector#InternalException": return [3, 6];
|
|
3034
|
+
case "InvalidCrossAccountRoleException": return [3, 8];
|
|
3035
|
+
case "com.amazonaws.inspector#InvalidCrossAccountRoleException": return [3, 8];
|
|
3036
|
+
case "InvalidInputException": return [3, 10];
|
|
3037
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 10];
|
|
3038
|
+
case "LimitExceededException": return [3, 12];
|
|
3039
|
+
case "com.amazonaws.inspector#LimitExceededException": return [3, 12];
|
|
3040
|
+
case "NoSuchEntityException": return [3, 14];
|
|
3041
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 14];
|
|
3042
|
+
case "ServiceTemporarilyUnavailableException": return [3, 16];
|
|
3043
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 16];
|
|
3044
3044
|
}
|
|
3045
|
-
return [3
|
|
3045
|
+
return [3, 18];
|
|
3046
3046
|
case 2:
|
|
3047
3047
|
_c = [{}];
|
|
3048
|
-
return [4
|
|
3048
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3049
3049
|
case 3:
|
|
3050
3050
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3051
|
-
return [3
|
|
3051
|
+
return [3, 19];
|
|
3052
3052
|
case 4:
|
|
3053
3053
|
_d = [{}];
|
|
3054
|
-
return [4
|
|
3054
|
+
return [4, deserializeAws_json1_1AgentsAlreadyRunningAssessmentExceptionResponse(parsedOutput, context)];
|
|
3055
3055
|
case 5:
|
|
3056
3056
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3057
|
-
return [3
|
|
3057
|
+
return [3, 19];
|
|
3058
3058
|
case 6:
|
|
3059
3059
|
_e = [{}];
|
|
3060
|
-
return [4
|
|
3060
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
3061
3061
|
case 7:
|
|
3062
3062
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3063
|
-
return [3
|
|
3063
|
+
return [3, 19];
|
|
3064
3064
|
case 8:
|
|
3065
3065
|
_f = [{}];
|
|
3066
|
-
return [4
|
|
3066
|
+
return [4, deserializeAws_json1_1InvalidCrossAccountRoleExceptionResponse(parsedOutput, context)];
|
|
3067
3067
|
case 9:
|
|
3068
3068
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3069
|
-
return [3
|
|
3069
|
+
return [3, 19];
|
|
3070
3070
|
case 10:
|
|
3071
3071
|
_g = [{}];
|
|
3072
|
-
return [4
|
|
3072
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3073
3073
|
case 11:
|
|
3074
3074
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3075
|
-
return [3
|
|
3075
|
+
return [3, 19];
|
|
3076
3076
|
case 12:
|
|
3077
3077
|
_h = [{}];
|
|
3078
|
-
return [4
|
|
3078
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3079
3079
|
case 13:
|
|
3080
3080
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3081
|
-
return [3
|
|
3081
|
+
return [3, 19];
|
|
3082
3082
|
case 14:
|
|
3083
3083
|
_j = [{}];
|
|
3084
|
-
return [4
|
|
3084
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
3085
3085
|
case 15:
|
|
3086
3086
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3087
|
-
return [3
|
|
3087
|
+
return [3, 19];
|
|
3088
3088
|
case 16:
|
|
3089
3089
|
_k = [{}];
|
|
3090
|
-
return [4
|
|
3090
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
3091
3091
|
case 17:
|
|
3092
3092
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3093
|
-
return [3
|
|
3093
|
+
return [3, 19];
|
|
3094
3094
|
case 18:
|
|
3095
3095
|
parsedBody = parsedOutput.body;
|
|
3096
3096
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3100,7 +3100,7 @@ var deserializeAws_json1_1StartAssessmentRunCommandError = function (output, con
|
|
|
3100
3100
|
message = response.message || response.Message || errorCode;
|
|
3101
3101
|
response.message = message;
|
|
3102
3102
|
delete response.Message;
|
|
3103
|
-
return [2
|
|
3103
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
3106
|
}); };
|
|
@@ -3110,15 +3110,15 @@ export var deserializeAws_json1_1StopAssessmentRunCommand = function (output, co
|
|
|
3110
3110
|
switch (_a.label) {
|
|
3111
3111
|
case 0:
|
|
3112
3112
|
if (output.statusCode >= 300) {
|
|
3113
|
-
return [2
|
|
3113
|
+
return [2, deserializeAws_json1_1StopAssessmentRunCommandError(output, context)];
|
|
3114
3114
|
}
|
|
3115
|
-
return [4
|
|
3115
|
+
return [4, collectBody(output.body, context)];
|
|
3116
3116
|
case 1:
|
|
3117
3117
|
_a.sent();
|
|
3118
3118
|
response = {
|
|
3119
3119
|
$metadata: deserializeMetadata(output),
|
|
3120
3120
|
};
|
|
3121
|
-
return [2
|
|
3121
|
+
return [2, Promise.resolve(response)];
|
|
3122
3122
|
}
|
|
3123
3123
|
});
|
|
3124
3124
|
}); };
|
|
@@ -3130,55 +3130,55 @@ var deserializeAws_json1_1StopAssessmentRunCommandError = function (output, cont
|
|
|
3130
3130
|
case 0:
|
|
3131
3131
|
_a = [__assign({}, output)];
|
|
3132
3132
|
_h = {};
|
|
3133
|
-
return [4
|
|
3133
|
+
return [4, parseBody(output.body, context)];
|
|
3134
3134
|
case 1:
|
|
3135
3135
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3136
3136
|
errorCode = "UnknownError";
|
|
3137
3137
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
3138
|
_b = errorCode;
|
|
3139
3139
|
switch (_b) {
|
|
3140
|
-
case "AccessDeniedException": return [3
|
|
3141
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
3142
|
-
case "InternalException": return [3
|
|
3143
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
3144
|
-
case "InvalidInputException": return [3
|
|
3145
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
3146
|
-
case "NoSuchEntityException": return [3
|
|
3147
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
3148
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
3149
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
3140
|
+
case "AccessDeniedException": return [3, 2];
|
|
3141
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
3142
|
+
case "InternalException": return [3, 4];
|
|
3143
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
3144
|
+
case "InvalidInputException": return [3, 6];
|
|
3145
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
3146
|
+
case "NoSuchEntityException": return [3, 8];
|
|
3147
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
3148
|
+
case "ServiceTemporarilyUnavailableException": return [3, 10];
|
|
3149
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 10];
|
|
3150
3150
|
}
|
|
3151
|
-
return [3
|
|
3151
|
+
return [3, 12];
|
|
3152
3152
|
case 2:
|
|
3153
3153
|
_c = [{}];
|
|
3154
|
-
return [4
|
|
3154
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3155
3155
|
case 3:
|
|
3156
3156
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3157
|
-
return [3
|
|
3157
|
+
return [3, 13];
|
|
3158
3158
|
case 4:
|
|
3159
3159
|
_d = [{}];
|
|
3160
|
-
return [4
|
|
3160
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
3161
3161
|
case 5:
|
|
3162
3162
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3163
|
-
return [3
|
|
3163
|
+
return [3, 13];
|
|
3164
3164
|
case 6:
|
|
3165
3165
|
_e = [{}];
|
|
3166
|
-
return [4
|
|
3166
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3167
3167
|
case 7:
|
|
3168
3168
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3169
|
-
return [3
|
|
3169
|
+
return [3, 13];
|
|
3170
3170
|
case 8:
|
|
3171
3171
|
_f = [{}];
|
|
3172
|
-
return [4
|
|
3172
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
3173
3173
|
case 9:
|
|
3174
3174
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3175
|
-
return [3
|
|
3175
|
+
return [3, 13];
|
|
3176
3176
|
case 10:
|
|
3177
3177
|
_g = [{}];
|
|
3178
|
-
return [4
|
|
3178
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
3179
3179
|
case 11:
|
|
3180
3180
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3181
|
-
return [3
|
|
3181
|
+
return [3, 13];
|
|
3182
3182
|
case 12:
|
|
3183
3183
|
parsedBody = parsedOutput.body;
|
|
3184
3184
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3188,7 +3188,7 @@ var deserializeAws_json1_1StopAssessmentRunCommandError = function (output, cont
|
|
|
3188
3188
|
message = response.message || response.Message || errorCode;
|
|
3189
3189
|
response.message = message;
|
|
3190
3190
|
delete response.Message;
|
|
3191
|
-
return [2
|
|
3191
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3192
3192
|
}
|
|
3193
3193
|
});
|
|
3194
3194
|
}); };
|
|
@@ -3198,15 +3198,15 @@ export var deserializeAws_json1_1SubscribeToEventCommand = function (output, con
|
|
|
3198
3198
|
switch (_a.label) {
|
|
3199
3199
|
case 0:
|
|
3200
3200
|
if (output.statusCode >= 300) {
|
|
3201
|
-
return [2
|
|
3201
|
+
return [2, deserializeAws_json1_1SubscribeToEventCommandError(output, context)];
|
|
3202
3202
|
}
|
|
3203
|
-
return [4
|
|
3203
|
+
return [4, collectBody(output.body, context)];
|
|
3204
3204
|
case 1:
|
|
3205
3205
|
_a.sent();
|
|
3206
3206
|
response = {
|
|
3207
3207
|
$metadata: deserializeMetadata(output),
|
|
3208
3208
|
};
|
|
3209
|
-
return [2
|
|
3209
|
+
return [2, Promise.resolve(response)];
|
|
3210
3210
|
}
|
|
3211
3211
|
});
|
|
3212
3212
|
}); };
|
|
@@ -3218,63 +3218,63 @@ var deserializeAws_json1_1SubscribeToEventCommandError = function (output, conte
|
|
|
3218
3218
|
case 0:
|
|
3219
3219
|
_a = [__assign({}, output)];
|
|
3220
3220
|
_j = {};
|
|
3221
|
-
return [4
|
|
3221
|
+
return [4, parseBody(output.body, context)];
|
|
3222
3222
|
case 1:
|
|
3223
3223
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3224
3224
|
errorCode = "UnknownError";
|
|
3225
3225
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3226
3226
|
_b = errorCode;
|
|
3227
3227
|
switch (_b) {
|
|
3228
|
-
case "AccessDeniedException": return [3
|
|
3229
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
3230
|
-
case "InternalException": return [3
|
|
3231
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
3232
|
-
case "InvalidInputException": return [3
|
|
3233
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
3234
|
-
case "LimitExceededException": return [3
|
|
3235
|
-
case "com.amazonaws.inspector#LimitExceededException": return [3
|
|
3236
|
-
case "NoSuchEntityException": return [3
|
|
3237
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
3238
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
3239
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
3228
|
+
case "AccessDeniedException": return [3, 2];
|
|
3229
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
3230
|
+
case "InternalException": return [3, 4];
|
|
3231
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
3232
|
+
case "InvalidInputException": return [3, 6];
|
|
3233
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
3234
|
+
case "LimitExceededException": return [3, 8];
|
|
3235
|
+
case "com.amazonaws.inspector#LimitExceededException": return [3, 8];
|
|
3236
|
+
case "NoSuchEntityException": return [3, 10];
|
|
3237
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 10];
|
|
3238
|
+
case "ServiceTemporarilyUnavailableException": return [3, 12];
|
|
3239
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 12];
|
|
3240
3240
|
}
|
|
3241
|
-
return [3
|
|
3241
|
+
return [3, 14];
|
|
3242
3242
|
case 2:
|
|
3243
3243
|
_c = [{}];
|
|
3244
|
-
return [4
|
|
3244
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3245
3245
|
case 3:
|
|
3246
3246
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3247
|
-
return [3
|
|
3247
|
+
return [3, 15];
|
|
3248
3248
|
case 4:
|
|
3249
3249
|
_d = [{}];
|
|
3250
|
-
return [4
|
|
3250
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
3251
3251
|
case 5:
|
|
3252
3252
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3253
|
-
return [3
|
|
3253
|
+
return [3, 15];
|
|
3254
3254
|
case 6:
|
|
3255
3255
|
_e = [{}];
|
|
3256
|
-
return [4
|
|
3256
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3257
3257
|
case 7:
|
|
3258
3258
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3259
|
-
return [3
|
|
3259
|
+
return [3, 15];
|
|
3260
3260
|
case 8:
|
|
3261
3261
|
_f = [{}];
|
|
3262
|
-
return [4
|
|
3262
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3263
3263
|
case 9:
|
|
3264
3264
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3265
|
-
return [3
|
|
3265
|
+
return [3, 15];
|
|
3266
3266
|
case 10:
|
|
3267
3267
|
_g = [{}];
|
|
3268
|
-
return [4
|
|
3268
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
3269
3269
|
case 11:
|
|
3270
3270
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3271
|
-
return [3
|
|
3271
|
+
return [3, 15];
|
|
3272
3272
|
case 12:
|
|
3273
3273
|
_h = [{}];
|
|
3274
|
-
return [4
|
|
3274
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
3275
3275
|
case 13:
|
|
3276
3276
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3277
|
-
return [3
|
|
3277
|
+
return [3, 15];
|
|
3278
3278
|
case 14:
|
|
3279
3279
|
parsedBody = parsedOutput.body;
|
|
3280
3280
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3284,7 +3284,7 @@ var deserializeAws_json1_1SubscribeToEventCommandError = function (output, conte
|
|
|
3284
3284
|
message = response.message || response.Message || errorCode;
|
|
3285
3285
|
response.message = message;
|
|
3286
3286
|
delete response.Message;
|
|
3287
|
-
return [2
|
|
3287
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3288
3288
|
}
|
|
3289
3289
|
});
|
|
3290
3290
|
}); };
|
|
@@ -3294,15 +3294,15 @@ export var deserializeAws_json1_1UnsubscribeFromEventCommand = function (output,
|
|
|
3294
3294
|
switch (_a.label) {
|
|
3295
3295
|
case 0:
|
|
3296
3296
|
if (output.statusCode >= 300) {
|
|
3297
|
-
return [2
|
|
3297
|
+
return [2, deserializeAws_json1_1UnsubscribeFromEventCommandError(output, context)];
|
|
3298
3298
|
}
|
|
3299
|
-
return [4
|
|
3299
|
+
return [4, collectBody(output.body, context)];
|
|
3300
3300
|
case 1:
|
|
3301
3301
|
_a.sent();
|
|
3302
3302
|
response = {
|
|
3303
3303
|
$metadata: deserializeMetadata(output),
|
|
3304
3304
|
};
|
|
3305
|
-
return [2
|
|
3305
|
+
return [2, Promise.resolve(response)];
|
|
3306
3306
|
}
|
|
3307
3307
|
});
|
|
3308
3308
|
}); };
|
|
@@ -3314,55 +3314,55 @@ var deserializeAws_json1_1UnsubscribeFromEventCommandError = function (output, c
|
|
|
3314
3314
|
case 0:
|
|
3315
3315
|
_a = [__assign({}, output)];
|
|
3316
3316
|
_h = {};
|
|
3317
|
-
return [4
|
|
3317
|
+
return [4, parseBody(output.body, context)];
|
|
3318
3318
|
case 1:
|
|
3319
3319
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3320
3320
|
errorCode = "UnknownError";
|
|
3321
3321
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3322
3322
|
_b = errorCode;
|
|
3323
3323
|
switch (_b) {
|
|
3324
|
-
case "AccessDeniedException": return [3
|
|
3325
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
3326
|
-
case "InternalException": return [3
|
|
3327
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
3328
|
-
case "InvalidInputException": return [3
|
|
3329
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
3330
|
-
case "NoSuchEntityException": return [3
|
|
3331
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
3332
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
3333
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
3324
|
+
case "AccessDeniedException": return [3, 2];
|
|
3325
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
3326
|
+
case "InternalException": return [3, 4];
|
|
3327
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
3328
|
+
case "InvalidInputException": return [3, 6];
|
|
3329
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
3330
|
+
case "NoSuchEntityException": return [3, 8];
|
|
3331
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
3332
|
+
case "ServiceTemporarilyUnavailableException": return [3, 10];
|
|
3333
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 10];
|
|
3334
3334
|
}
|
|
3335
|
-
return [3
|
|
3335
|
+
return [3, 12];
|
|
3336
3336
|
case 2:
|
|
3337
3337
|
_c = [{}];
|
|
3338
|
-
return [4
|
|
3338
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3339
3339
|
case 3:
|
|
3340
3340
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3341
|
-
return [3
|
|
3341
|
+
return [3, 13];
|
|
3342
3342
|
case 4:
|
|
3343
3343
|
_d = [{}];
|
|
3344
|
-
return [4
|
|
3344
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
3345
3345
|
case 5:
|
|
3346
3346
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3347
|
-
return [3
|
|
3347
|
+
return [3, 13];
|
|
3348
3348
|
case 6:
|
|
3349
3349
|
_e = [{}];
|
|
3350
|
-
return [4
|
|
3350
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3351
3351
|
case 7:
|
|
3352
3352
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3353
|
-
return [3
|
|
3353
|
+
return [3, 13];
|
|
3354
3354
|
case 8:
|
|
3355
3355
|
_f = [{}];
|
|
3356
|
-
return [4
|
|
3356
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
3357
3357
|
case 9:
|
|
3358
3358
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3359
|
-
return [3
|
|
3359
|
+
return [3, 13];
|
|
3360
3360
|
case 10:
|
|
3361
3361
|
_g = [{}];
|
|
3362
|
-
return [4
|
|
3362
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
3363
3363
|
case 11:
|
|
3364
3364
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3365
|
-
return [3
|
|
3365
|
+
return [3, 13];
|
|
3366
3366
|
case 12:
|
|
3367
3367
|
parsedBody = parsedOutput.body;
|
|
3368
3368
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3372,7 +3372,7 @@ var deserializeAws_json1_1UnsubscribeFromEventCommandError = function (output, c
|
|
|
3372
3372
|
message = response.message || response.Message || errorCode;
|
|
3373
3373
|
response.message = message;
|
|
3374
3374
|
delete response.Message;
|
|
3375
|
-
return [2
|
|
3375
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3376
3376
|
}
|
|
3377
3377
|
});
|
|
3378
3378
|
}); };
|
|
@@ -3382,15 +3382,15 @@ export var deserializeAws_json1_1UpdateAssessmentTargetCommand = function (outpu
|
|
|
3382
3382
|
switch (_a.label) {
|
|
3383
3383
|
case 0:
|
|
3384
3384
|
if (output.statusCode >= 300) {
|
|
3385
|
-
return [2
|
|
3385
|
+
return [2, deserializeAws_json1_1UpdateAssessmentTargetCommandError(output, context)];
|
|
3386
3386
|
}
|
|
3387
|
-
return [4
|
|
3387
|
+
return [4, collectBody(output.body, context)];
|
|
3388
3388
|
case 1:
|
|
3389
3389
|
_a.sent();
|
|
3390
3390
|
response = {
|
|
3391
3391
|
$metadata: deserializeMetadata(output),
|
|
3392
3392
|
};
|
|
3393
|
-
return [2
|
|
3393
|
+
return [2, Promise.resolve(response)];
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
3396
|
}); };
|
|
@@ -3402,55 +3402,55 @@ var deserializeAws_json1_1UpdateAssessmentTargetCommandError = function (output,
|
|
|
3402
3402
|
case 0:
|
|
3403
3403
|
_a = [__assign({}, output)];
|
|
3404
3404
|
_h = {};
|
|
3405
|
-
return [4
|
|
3405
|
+
return [4, parseBody(output.body, context)];
|
|
3406
3406
|
case 1:
|
|
3407
3407
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3408
3408
|
errorCode = "UnknownError";
|
|
3409
3409
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3410
3410
|
_b = errorCode;
|
|
3411
3411
|
switch (_b) {
|
|
3412
|
-
case "AccessDeniedException": return [3
|
|
3413
|
-
case "com.amazonaws.inspector#AccessDeniedException": return [3
|
|
3414
|
-
case "InternalException": return [3
|
|
3415
|
-
case "com.amazonaws.inspector#InternalException": return [3
|
|
3416
|
-
case "InvalidInputException": return [3
|
|
3417
|
-
case "com.amazonaws.inspector#InvalidInputException": return [3
|
|
3418
|
-
case "NoSuchEntityException": return [3
|
|
3419
|
-
case "com.amazonaws.inspector#NoSuchEntityException": return [3
|
|
3420
|
-
case "ServiceTemporarilyUnavailableException": return [3
|
|
3421
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3
|
|
3412
|
+
case "AccessDeniedException": return [3, 2];
|
|
3413
|
+
case "com.amazonaws.inspector#AccessDeniedException": return [3, 2];
|
|
3414
|
+
case "InternalException": return [3, 4];
|
|
3415
|
+
case "com.amazonaws.inspector#InternalException": return [3, 4];
|
|
3416
|
+
case "InvalidInputException": return [3, 6];
|
|
3417
|
+
case "com.amazonaws.inspector#InvalidInputException": return [3, 6];
|
|
3418
|
+
case "NoSuchEntityException": return [3, 8];
|
|
3419
|
+
case "com.amazonaws.inspector#NoSuchEntityException": return [3, 8];
|
|
3420
|
+
case "ServiceTemporarilyUnavailableException": return [3, 10];
|
|
3421
|
+
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException": return [3, 10];
|
|
3422
3422
|
}
|
|
3423
|
-
return [3
|
|
3423
|
+
return [3, 12];
|
|
3424
3424
|
case 2:
|
|
3425
3425
|
_c = [{}];
|
|
3426
|
-
return [4
|
|
3426
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3427
3427
|
case 3:
|
|
3428
3428
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3429
|
-
return [3
|
|
3429
|
+
return [3, 13];
|
|
3430
3430
|
case 4:
|
|
3431
3431
|
_d = [{}];
|
|
3432
|
-
return [4
|
|
3432
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
3433
3433
|
case 5:
|
|
3434
3434
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3435
|
-
return [3
|
|
3435
|
+
return [3, 13];
|
|
3436
3436
|
case 6:
|
|
3437
3437
|
_e = [{}];
|
|
3438
|
-
return [4
|
|
3438
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3439
3439
|
case 7:
|
|
3440
3440
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3441
|
-
return [3
|
|
3441
|
+
return [3, 13];
|
|
3442
3442
|
case 8:
|
|
3443
3443
|
_f = [{}];
|
|
3444
|
-
return [4
|
|
3444
|
+
return [4, deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context)];
|
|
3445
3445
|
case 9:
|
|
3446
3446
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3447
|
-
return [3
|
|
3447
|
+
return [3, 13];
|
|
3448
3448
|
case 10:
|
|
3449
3449
|
_g = [{}];
|
|
3450
|
-
return [4
|
|
3450
|
+
return [4, deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
|
|
3451
3451
|
case 11:
|
|
3452
3452
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3453
|
-
return [3
|
|
3453
|
+
return [3, 13];
|
|
3454
3454
|
case 12:
|
|
3455
3455
|
parsedBody = parsedOutput.body;
|
|
3456
3456
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3460,7 +3460,7 @@ var deserializeAws_json1_1UpdateAssessmentTargetCommandError = function (output,
|
|
|
3460
3460
|
message = response.message || response.Message || errorCode;
|
|
3461
3461
|
response.message = message;
|
|
3462
3462
|
delete response.Message;
|
|
3463
|
-
return [2
|
|
3463
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3464
3464
|
}
|
|
3465
3465
|
});
|
|
3466
3466
|
}); };
|
|
@@ -3470,7 +3470,7 @@ var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput
|
|
|
3470
3470
|
body = parsedOutput.body;
|
|
3471
3471
|
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
3472
3472
|
contents = __assign({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3473
|
-
return [2
|
|
3473
|
+
return [2, contents];
|
|
3474
3474
|
});
|
|
3475
3475
|
}); };
|
|
3476
3476
|
var deserializeAws_json1_1AgentsAlreadyRunningAssessmentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3479,7 +3479,7 @@ var deserializeAws_json1_1AgentsAlreadyRunningAssessmentExceptionResponse = func
|
|
|
3479
3479
|
body = parsedOutput.body;
|
|
3480
3480
|
deserialized = deserializeAws_json1_1AgentsAlreadyRunningAssessmentException(body, context);
|
|
3481
3481
|
contents = __assign({ name: "AgentsAlreadyRunningAssessmentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3482
|
-
return [2
|
|
3482
|
+
return [2, contents];
|
|
3483
3483
|
});
|
|
3484
3484
|
}); };
|
|
3485
3485
|
var deserializeAws_json1_1AssessmentRunInProgressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3488,7 +3488,7 @@ var deserializeAws_json1_1AssessmentRunInProgressExceptionResponse = function (p
|
|
|
3488
3488
|
body = parsedOutput.body;
|
|
3489
3489
|
deserialized = deserializeAws_json1_1AssessmentRunInProgressException(body, context);
|
|
3490
3490
|
contents = __assign({ name: "AssessmentRunInProgressException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3491
|
-
return [2
|
|
3491
|
+
return [2, contents];
|
|
3492
3492
|
});
|
|
3493
3493
|
}); };
|
|
3494
3494
|
var deserializeAws_json1_1InternalExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3497,7 +3497,7 @@ var deserializeAws_json1_1InternalExceptionResponse = function (parsedOutput, co
|
|
|
3497
3497
|
body = parsedOutput.body;
|
|
3498
3498
|
deserialized = deserializeAws_json1_1InternalException(body, context);
|
|
3499
3499
|
contents = __assign({ name: "InternalException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3500
|
-
return [2
|
|
3500
|
+
return [2, contents];
|
|
3501
3501
|
});
|
|
3502
3502
|
}); };
|
|
3503
3503
|
var deserializeAws_json1_1InvalidCrossAccountRoleExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3506,7 +3506,7 @@ var deserializeAws_json1_1InvalidCrossAccountRoleExceptionResponse = function (p
|
|
|
3506
3506
|
body = parsedOutput.body;
|
|
3507
3507
|
deserialized = deserializeAws_json1_1InvalidCrossAccountRoleException(body, context);
|
|
3508
3508
|
contents = __assign({ name: "InvalidCrossAccountRoleException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3509
|
-
return [2
|
|
3509
|
+
return [2, contents];
|
|
3510
3510
|
});
|
|
3511
3511
|
}); };
|
|
3512
3512
|
var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3515,7 +3515,7 @@ var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput
|
|
|
3515
3515
|
body = parsedOutput.body;
|
|
3516
3516
|
deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
3517
3517
|
contents = __assign({ name: "InvalidInputException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3518
|
-
return [2
|
|
3518
|
+
return [2, contents];
|
|
3519
3519
|
});
|
|
3520
3520
|
}); };
|
|
3521
3521
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3524,7 +3524,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
3524
3524
|
body = parsedOutput.body;
|
|
3525
3525
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3526
3526
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3527
|
-
return [2
|
|
3527
|
+
return [2, contents];
|
|
3528
3528
|
});
|
|
3529
3529
|
}); };
|
|
3530
3530
|
var deserializeAws_json1_1NoSuchEntityExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3533,7 +3533,7 @@ var deserializeAws_json1_1NoSuchEntityExceptionResponse = function (parsedOutput
|
|
|
3533
3533
|
body = parsedOutput.body;
|
|
3534
3534
|
deserialized = deserializeAws_json1_1NoSuchEntityException(body, context);
|
|
3535
3535
|
contents = __assign({ name: "NoSuchEntityException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3536
|
-
return [2
|
|
3536
|
+
return [2, contents];
|
|
3537
3537
|
});
|
|
3538
3538
|
}); };
|
|
3539
3539
|
var deserializeAws_json1_1PreviewGenerationInProgressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3542,7 +3542,7 @@ var deserializeAws_json1_1PreviewGenerationInProgressExceptionResponse = functio
|
|
|
3542
3542
|
body = parsedOutput.body;
|
|
3543
3543
|
deserialized = deserializeAws_json1_1PreviewGenerationInProgressException(body, context);
|
|
3544
3544
|
contents = __assign({ name: "PreviewGenerationInProgressException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3545
|
-
return [2
|
|
3545
|
+
return [2, contents];
|
|
3546
3546
|
});
|
|
3547
3547
|
}); };
|
|
3548
3548
|
var deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3551,7 +3551,7 @@ var deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse = funct
|
|
|
3551
3551
|
body = parsedOutput.body;
|
|
3552
3552
|
deserialized = deserializeAws_json1_1ServiceTemporarilyUnavailableException(body, context);
|
|
3553
3553
|
contents = __assign({ name: "ServiceTemporarilyUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3554
|
-
return [2
|
|
3554
|
+
return [2, contents];
|
|
3555
3555
|
});
|
|
3556
3556
|
}); };
|
|
3557
3557
|
var deserializeAws_json1_1UnsupportedFeatureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3560,7 +3560,7 @@ var deserializeAws_json1_1UnsupportedFeatureExceptionResponse = function (parsed
|
|
|
3560
3560
|
body = parsedOutput.body;
|
|
3561
3561
|
deserialized = deserializeAws_json1_1UnsupportedFeatureException(body, context);
|
|
3562
3562
|
contents = __assign({ name: "UnsupportedFeatureException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3563
|
-
return [2
|
|
3563
|
+
return [2, contents];
|
|
3564
3564
|
});
|
|
3565
3565
|
}); };
|
|
3566
3566
|
var serializeAws_json1_1AddAttributesToFindingsRequest = function (input, context) {
|
|
@@ -4950,7 +4950,6 @@ var deserializeMetadata = function (output) {
|
|
|
4950
4950
|
cfId: output.headers["x-amz-cf-id"],
|
|
4951
4951
|
});
|
|
4952
4952
|
};
|
|
4953
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4954
4953
|
var collectBody = function (streamBody, context) {
|
|
4955
4954
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4956
4955
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4958,7 +4957,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4958
4957
|
}
|
|
4959
4958
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4960
4959
|
};
|
|
4961
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4962
4960
|
var collectBodyString = function (streamBody, context) {
|
|
4963
4961
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4964
4962
|
};
|
|
@@ -4966,7 +4964,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4966
4964
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
4967
4965
|
return __generator(this, function (_c) {
|
|
4968
4966
|
switch (_c.label) {
|
|
4969
|
-
case 0: return [4
|
|
4967
|
+
case 0: return [4, context.endpoint()];
|
|
4970
4968
|
case 1:
|
|
4971
4969
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4972
4970
|
contents = {
|
|
@@ -4983,7 +4981,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4983
4981
|
if (body !== undefined) {
|
|
4984
4982
|
contents.body = body;
|
|
4985
4983
|
}
|
|
4986
|
-
return [2
|
|
4984
|
+
return [2, new __HttpRequest(contents)];
|
|
4987
4985
|
}
|
|
4988
4986
|
});
|
|
4989
4987
|
}); };
|
|
@@ -4995,9 +4993,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4995
4993
|
return {};
|
|
4996
4994
|
});
|
|
4997
4995
|
};
|
|
4998
|
-
/**
|
|
4999
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
5000
|
-
*/
|
|
5001
4996
|
var loadRestJsonErrorCode = function (output, data) {
|
|
5002
4997
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5003
4998
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -5022,4 +5017,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
5022
5017
|
}
|
|
5023
5018
|
return "";
|
|
5024
5019
|
};
|
|
5025
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|