@aws-sdk/client-network-firewall 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/README.md +2 -1
- package/{dist/cjs → dist-cjs}/NetworkFirewall.js +3 -3
- package/{dist/cjs → dist-cjs}/NetworkFirewallClient.js +10 -10
- package/{dist/cjs → dist-cjs}/commands/AssociateFirewallPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/AssociateSubnetsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateFirewallCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateFirewallPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateRuleGroupCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteFirewallCommand.js +4 -4
- package/{dist/cjs → dist-cjs}/commands/DeleteFirewallPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteResourcePolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteRuleGroupCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeFirewallCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeFirewallPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeLoggingConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeResourcePolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeRuleGroupCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DisassociateSubnetsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListFirewallPoliciesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListFirewallsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListRuleGroupsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutResourcePolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateFirewallDeleteProtectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateFirewallDescriptionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateFirewallPolicyChangeProtectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateFirewallPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateLoggingConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateRuleGroupCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateSubnetChangeProtectionCommand.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 +35 -13
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListFirewallPoliciesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListFirewallsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListRuleGroupsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListTagsForResourcePaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_0.js +76 -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}/NetworkFirewall.js +2 -82
- package/dist-es/NetworkFirewallClient.js +37 -0
- package/{dist/es → dist-es}/commands/AssociateFirewallPolicyCommand.js +4 -34
- package/{dist/es → dist-es}/commands/AssociateSubnetsCommand.js +4 -35
- package/dist-es/commands/CreateFirewallCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CreateFirewallPolicyCommand.js +4 -33
- package/{dist/es → dist-es}/commands/CreateRuleGroupCommand.js +4 -33
- package/dist-es/commands/DeleteFirewallCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DeleteFirewallPolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteResourcePolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteRuleGroupCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeFirewallCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeFirewallPolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeLoggingConfigurationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeResourcePolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeRuleGroupCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DisassociateSubnetsCommand.js +4 -33
- package/{dist/es → dist-es}/commands/ListFirewallPoliciesCommand.js +4 -32
- package/{dist/es → dist-es}/commands/ListFirewallsCommand.js +4 -33
- package/{dist/es → dist-es}/commands/ListRuleGroupsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -36
- package/dist-es/commands/PutResourcePolicyCommand.js +39 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -35
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -36
- package/{dist/es → dist-es}/commands/UpdateFirewallDeleteProtectionCommand.js +4 -33
- package/{dist/es → dist-es}/commands/UpdateFirewallDescriptionCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateFirewallPolicyChangeProtectionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateFirewallPolicyCommand.js +4 -30
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +39 -0
- package/{dist/es → dist-es}/commands/UpdateRuleGroupCommand.js +4 -35
- package/{dist/es → dist-es}/commands/UpdateSubnetChangeProtectionCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +17 -326
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListFirewallPoliciesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListFirewallsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListRuleGroupsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListTagsForResourcePaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_0.js +845 -783
- 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}/NetworkFirewall.d.ts +6 -4
- package/{dist/types → dist-types}/NetworkFirewallClient.d.ts +10 -9
- package/{dist/types → dist-types}/commands/AssociateFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AssociateSubnetsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateFirewallCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateRuleGroupCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteFirewallCommand.d.ts +5 -4
- package/{dist/types → dist-types}/commands/DeleteFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteRuleGroupCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeFirewallCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeLoggingConfigurationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeRuleGroupCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DisassociateSubnetsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListFirewallPoliciesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListFirewallsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListRuleGroupsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateFirewallDeleteProtectionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateFirewallDescriptionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateFirewallPolicyChangeProtectionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateLoggingConfigurationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateRuleGroupCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateSubnetChangeProtectionCommand.d.ts +3 -3
- 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/ts3.4 → dist-types}/models/models_0.d.ts +2944 -2853
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListFirewallPoliciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListFirewallsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRuleGroupsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_0.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → 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/NetworkFirewall.d.ts +6 -4
- package/{dist/types → dist-types}/ts3.4/NetworkFirewallClient.d.ts +10 -9
- package/{dist/types → dist-types}/ts3.4/commands/AssociateFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/AssociateSubnetsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateFirewallCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateRuleGroupCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteFirewallCommand.d.ts +5 -4
- package/{dist/types → dist-types}/ts3.4/commands/DeleteFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRuleGroupCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeFirewallCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeLoggingConfigurationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRuleGroupCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateSubnetsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListFirewallPoliciesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListFirewallsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListRuleGroupsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/PutResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateFirewallDeleteProtectionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateFirewallDescriptionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateFirewallPolicyChangeProtectionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateFirewallPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateRuleGroupCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateSubnetChangeProtectionCommand.d.ts +3 -3
- 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 +2944 -2853
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListFirewallPoliciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListFirewallsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRuleGroupsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_0.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/NetworkFirewall.ts +0 -1251
- package/NetworkFirewallClient.ts +0 -446
- package/commands/AssociateFirewallPolicyCommand.ts +0 -98
- package/commands/AssociateSubnetsCommand.ts +0 -99
- package/commands/CreateFirewallCommand.ts +0 -100
- package/commands/CreateFirewallPolicyCommand.ts +0 -97
- package/commands/CreateRuleGroupCommand.ts +0 -97
- package/commands/DeleteFirewallCommand.ts +0 -103
- package/commands/DeleteFirewallPolicyCommand.ts +0 -94
- package/commands/DeleteResourcePolicyCommand.ts +0 -94
- package/commands/DeleteRuleGroupCommand.ts +0 -94
- package/commands/DescribeFirewallCommand.ts +0 -94
- package/commands/DescribeFirewallPolicyCommand.ts +0 -94
- package/commands/DescribeLoggingConfigurationCommand.ts +0 -99
- package/commands/DescribeResourcePolicyCommand.ts +0 -94
- package/commands/DescribeRuleGroupCommand.ts +0 -94
- package/commands/DisassociateSubnetsCommand.ts +0 -97
- package/commands/ListFirewallPoliciesCommand.ts +0 -96
- package/commands/ListFirewallsCommand.ts +0 -97
- package/commands/ListRuleGroupsCommand.ts +0 -96
- package/commands/ListTagsForResourceCommand.ts +0 -100
- package/commands/PutResourcePolicyCommand.ts +0 -108
- package/commands/TagResourceCommand.ts +0 -99
- package/commands/UntagResourceCommand.ts +0 -100
- package/commands/UpdateFirewallDeleteProtectionCommand.ts +0 -105
- package/commands/UpdateFirewallDescriptionCommand.ts +0 -98
- package/commands/UpdateFirewallPolicyChangeProtectionCommand.ts +0 -105
- package/commands/UpdateFirewallPolicyCommand.ts +0 -94
- package/commands/UpdateLoggingConfigurationCommand.ts +0 -122
- package/commands/UpdateRuleGroupCommand.ts +0 -99
- package/commands/UpdateSubnetChangeProtectionCommand.ts +0 -99
- package/dist/cjs/NetworkFirewall.js.map +0 -1
- package/dist/cjs/NetworkFirewallClient.js.map +0 -1
- package/dist/cjs/commands/AssociateFirewallPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/AssociateSubnetsCommand.js.map +0 -1
- package/dist/cjs/commands/CreateFirewallCommand.js.map +0 -1
- package/dist/cjs/commands/CreateFirewallPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/CreateRuleGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteFirewallCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteFirewallPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRuleGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeFirewallCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeFirewallPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeLoggingConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRuleGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateSubnetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListFirewallPoliciesCommand.js.map +0 -1
- package/dist/cjs/commands/ListFirewallsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRuleGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateFirewallDeleteProtectionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateFirewallDescriptionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateFirewallPolicyChangeProtectionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateFirewallPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateLoggingConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateRuleGroupCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateSubnetChangeProtectionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListFirewallPoliciesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListFirewallsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRuleGroupsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_0.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/NetworkFirewall.js.map +0 -1
- package/dist/es/NetworkFirewallClient.js +0 -122
- package/dist/es/NetworkFirewallClient.js.map +0 -1
- package/dist/es/commands/AssociateFirewallPolicyCommand.js.map +0 -1
- package/dist/es/commands/AssociateSubnetsCommand.js.map +0 -1
- package/dist/es/commands/CreateFirewallCommand.js +0 -71
- package/dist/es/commands/CreateFirewallCommand.js.map +0 -1
- package/dist/es/commands/CreateFirewallPolicyCommand.js.map +0 -1
- package/dist/es/commands/CreateRuleGroupCommand.js.map +0 -1
- package/dist/es/commands/DeleteFirewallCommand.js +0 -74
- package/dist/es/commands/DeleteFirewallCommand.js.map +0 -1
- package/dist/es/commands/DeleteFirewallPolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteRuleGroupCommand.js.map +0 -1
- package/dist/es/commands/DescribeFirewallCommand.js.map +0 -1
- package/dist/es/commands/DescribeFirewallPolicyCommand.js.map +0 -1
- package/dist/es/commands/DescribeLoggingConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DescribeResourcePolicyCommand.js.map +0 -1
- package/dist/es/commands/DescribeRuleGroupCommand.js.map +0 -1
- package/dist/es/commands/DisassociateSubnetsCommand.js.map +0 -1
- package/dist/es/commands/ListFirewallPoliciesCommand.js.map +0 -1
- package/dist/es/commands/ListFirewallsCommand.js.map +0 -1
- package/dist/es/commands/ListRuleGroupsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PutResourcePolicyCommand.js +0 -79
- package/dist/es/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateFirewallDeleteProtectionCommand.js.map +0 -1
- package/dist/es/commands/UpdateFirewallDescriptionCommand.js.map +0 -1
- package/dist/es/commands/UpdateFirewallPolicyChangeProtectionCommand.js.map +0 -1
- package/dist/es/commands/UpdateFirewallPolicyCommand.js.map +0 -1
- package/dist/es/commands/UpdateLoggingConfigurationCommand.js +0 -90
- package/dist/es/commands/UpdateLoggingConfigurationCommand.js.map +0 -1
- package/dist/es/commands/UpdateRuleGroupCommand.js.map +0 -1
- package/dist/es/commands/UpdateSubnetChangeProtectionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -38
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListFirewallPoliciesPaginator.js.map +0 -1
- package/dist/es/pagination/ListFirewallsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRuleGroupsPaginator.js.map +0 -1
- package/dist/es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_0.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 -91
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -3458
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListFirewallPoliciesPaginator.ts +0 -58
- package/pagination/ListFirewallsPaginator.ts +0 -58
- package/pagination/ListRuleGroupsPaginator.ts +0 -58
- package/pagination/ListTagsForResourcePaginator.ts +0 -58
- package/protocols/Aws_json1_0.ts +0 -5391
- 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_0AssociateFirewallPolicyCommand = function (input,
|
|
|
9
9
|
"x-amz-target": "NetworkFirewall_20201112.AssociateFirewallPolicy",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_0AssociateFirewallPolicyRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_0AssociateSubnetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_0AssociateSubnetsCommand = function (input, contex
|
|
|
20
20
|
"x-amz-target": "NetworkFirewall_20201112.AssociateSubnets",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_0AssociateSubnetsRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_0CreateFirewallCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_0CreateFirewallCommand = function (input, context)
|
|
|
31
31
|
"x-amz-target": "NetworkFirewall_20201112.CreateFirewall",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_0CreateFirewallRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_0CreateFirewallPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_0CreateFirewallPolicyCommand = function (input, co
|
|
|
42
42
|
"x-amz-target": "NetworkFirewall_20201112.CreateFirewallPolicy",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_0CreateFirewallPolicyRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_0CreateRuleGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_0CreateRuleGroupCommand = function (input, context
|
|
|
53
53
|
"x-amz-target": "NetworkFirewall_20201112.CreateRuleGroup",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_0CreateRuleGroupRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_0DeleteFirewallCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_0DeleteFirewallCommand = function (input, context)
|
|
|
64
64
|
"x-amz-target": "NetworkFirewall_20201112.DeleteFirewall",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_0DeleteFirewallRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_0DeleteFirewallPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_0DeleteFirewallPolicyCommand = function (input, co
|
|
|
75
75
|
"x-amz-target": "NetworkFirewall_20201112.DeleteFirewallPolicy",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_0DeleteFirewallPolicyRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_0DeleteResourcePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_0DeleteResourcePolicyCommand = function (input, co
|
|
|
86
86
|
"x-amz-target": "NetworkFirewall_20201112.DeleteResourcePolicy",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_0DeleteResourcePolicyRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_0DeleteRuleGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_0DeleteRuleGroupCommand = function (input, context
|
|
|
97
97
|
"x-amz-target": "NetworkFirewall_20201112.DeleteRuleGroup",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_0DeleteRuleGroupRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_0DescribeFirewallCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_0DescribeFirewallCommand = function (input, contex
|
|
|
108
108
|
"x-amz-target": "NetworkFirewall_20201112.DescribeFirewall",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_0DescribeFirewallRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_0DescribeFirewallPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_0DescribeFirewallPolicyCommand = function (input,
|
|
|
119
119
|
"x-amz-target": "NetworkFirewall_20201112.DescribeFirewallPolicy",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_0DescribeFirewallPolicyRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_0DescribeLoggingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_0DescribeLoggingConfigurationCommand = function (i
|
|
|
130
130
|
"x-amz-target": "NetworkFirewall_20201112.DescribeLoggingConfiguration",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_0DescribeLoggingConfigurationRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_0DescribeResourcePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_0DescribeResourcePolicyCommand = function (input,
|
|
|
141
141
|
"x-amz-target": "NetworkFirewall_20201112.DescribeResourcePolicy",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_0DescribeResourcePolicyRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_0DescribeRuleGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_0DescribeRuleGroupCommand = function (input, conte
|
|
|
152
152
|
"x-amz-target": "NetworkFirewall_20201112.DescribeRuleGroup",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_0DescribeRuleGroupRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_0DisassociateSubnetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_0DisassociateSubnetsCommand = function (input, con
|
|
|
163
163
|
"x-amz-target": "NetworkFirewall_20201112.DisassociateSubnets",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_0DisassociateSubnetsRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_0ListFirewallPoliciesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_0ListFirewallPoliciesCommand = function (input, co
|
|
|
174
174
|
"x-amz-target": "NetworkFirewall_20201112.ListFirewallPolicies",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_0ListFirewallPoliciesRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_0ListFirewallsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_0ListFirewallsCommand = function (input, context)
|
|
|
185
185
|
"x-amz-target": "NetworkFirewall_20201112.ListFirewalls",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_0ListFirewallsRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_0ListRuleGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_0ListRuleGroupsCommand = function (input, context)
|
|
|
196
196
|
"x-amz-target": "NetworkFirewall_20201112.ListRuleGroups",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_0ListRuleGroupsRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_0ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_0ListTagsForResourceCommand = function (input, con
|
|
|
207
207
|
"x-amz-target": "NetworkFirewall_20201112.ListTagsForResource",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_0PutResourcePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_0PutResourcePolicyCommand = function (input, conte
|
|
|
218
218
|
"x-amz-target": "NetworkFirewall_20201112.PutResourcePolicy",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_0PutResourcePolicyRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_0TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_0TagResourceCommand = function (input, context) {
|
|
|
229
229
|
"x-amz-target": "NetworkFirewall_20201112.TagResource",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_0UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_0UntagResourceCommand = function (input, context)
|
|
|
240
240
|
"x-amz-target": "NetworkFirewall_20201112.UntagResource",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_0UpdateFirewallDeleteProtectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_0UpdateFirewallDeleteProtectionCommand = function
|
|
|
251
251
|
"x-amz-target": "NetworkFirewall_20201112.UpdateFirewallDeleteProtection",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_0UpdateFirewallDeleteProtectionRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_0UpdateFirewallDescriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_0UpdateFirewallDescriptionCommand = function (inpu
|
|
|
262
262
|
"x-amz-target": "NetworkFirewall_20201112.UpdateFirewallDescription",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_0UpdateFirewallDescriptionRequest(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_0UpdateFirewallPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_0UpdateFirewallPolicyCommand = function (input, co
|
|
|
273
273
|
"x-amz-target": "NetworkFirewall_20201112.UpdateFirewallPolicy",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_0UpdateFirewallPolicyRequest(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = fun
|
|
|
284
284
|
"x-amz-target": "NetworkFirewall_20201112.UpdateFirewallPolicyChangeProtection",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_0UpdateFirewallPolicyChangeProtectionRequest(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_0UpdateLoggingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_0UpdateLoggingConfigurationCommand = function (inp
|
|
|
295
295
|
"x-amz-target": "NetworkFirewall_20201112.UpdateLoggingConfiguration",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_0UpdateLoggingConfigurationRequest(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_0UpdateRuleGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_0UpdateRuleGroupCommand = function (input, context
|
|
|
306
306
|
"x-amz-target": "NetworkFirewall_20201112.UpdateRuleGroup",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_0UpdateRuleGroupRequest(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var serializeAws_json1_0UpdateSubnetChangeProtectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -317,7 +317,7 @@ export var serializeAws_json1_0UpdateSubnetChangeProtectionCommand = function (i
|
|
|
317
317
|
"x-amz-target": "NetworkFirewall_20201112.UpdateSubnetChangeProtection",
|
|
318
318
|
};
|
|
319
319
|
body = JSON.stringify(serializeAws_json1_0UpdateSubnetChangeProtectionRequest(input, context));
|
|
320
|
-
return [2
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
321
|
});
|
|
322
322
|
}); };
|
|
323
323
|
export var deserializeAws_json1_0AssociateFirewallPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -326,15 +326,15 @@ export var deserializeAws_json1_0AssociateFirewallPolicyCommand = function (outp
|
|
|
326
326
|
switch (_a.label) {
|
|
327
327
|
case 0:
|
|
328
328
|
if (output.statusCode >= 300) {
|
|
329
|
-
return [2
|
|
329
|
+
return [2, deserializeAws_json1_0AssociateFirewallPolicyCommandError(output, context)];
|
|
330
330
|
}
|
|
331
|
-
return [4
|
|
331
|
+
return [4, parseBody(output.body, context)];
|
|
332
332
|
case 1:
|
|
333
333
|
data = _a.sent();
|
|
334
334
|
contents = {};
|
|
335
335
|
contents = deserializeAws_json1_0AssociateFirewallPolicyResponse(data, context);
|
|
336
336
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
337
|
-
return [2
|
|
337
|
+
return [2, Promise.resolve(response)];
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
340
|
}); };
|
|
@@ -346,63 +346,63 @@ var deserializeAws_json1_0AssociateFirewallPolicyCommandError = function (output
|
|
|
346
346
|
case 0:
|
|
347
347
|
_a = [__assign({}, output)];
|
|
348
348
|
_j = {};
|
|
349
|
-
return [4
|
|
349
|
+
return [4, parseBody(output.body, context)];
|
|
350
350
|
case 1:
|
|
351
351
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
352
352
|
errorCode = "UnknownError";
|
|
353
353
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
354
354
|
_b = errorCode;
|
|
355
355
|
switch (_b) {
|
|
356
|
-
case "InternalServerError": return [3
|
|
357
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
358
|
-
case "InvalidOperationException": return [3
|
|
359
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3
|
|
360
|
-
case "InvalidRequestException": return [3
|
|
361
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
362
|
-
case "InvalidTokenException": return [3
|
|
363
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
364
|
-
case "ResourceNotFoundException": return [3
|
|
365
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
366
|
-
case "ThrottlingException": return [3
|
|
367
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
356
|
+
case "InternalServerError": return [3, 2];
|
|
357
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
358
|
+
case "InvalidOperationException": return [3, 4];
|
|
359
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3, 4];
|
|
360
|
+
case "InvalidRequestException": return [3, 6];
|
|
361
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 6];
|
|
362
|
+
case "InvalidTokenException": return [3, 8];
|
|
363
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 8];
|
|
364
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
365
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 10];
|
|
366
|
+
case "ThrottlingException": return [3, 12];
|
|
367
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 12];
|
|
368
368
|
}
|
|
369
|
-
return [3
|
|
369
|
+
return [3, 14];
|
|
370
370
|
case 2:
|
|
371
371
|
_c = [{}];
|
|
372
|
-
return [4
|
|
372
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
373
373
|
case 3:
|
|
374
374
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
375
|
-
return [3
|
|
375
|
+
return [3, 15];
|
|
376
376
|
case 4:
|
|
377
377
|
_d = [{}];
|
|
378
|
-
return [4
|
|
378
|
+
return [4, deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context)];
|
|
379
379
|
case 5:
|
|
380
380
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
381
|
-
return [3
|
|
381
|
+
return [3, 15];
|
|
382
382
|
case 6:
|
|
383
383
|
_e = [{}];
|
|
384
|
-
return [4
|
|
384
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
385
385
|
case 7:
|
|
386
386
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
387
|
-
return [3
|
|
387
|
+
return [3, 15];
|
|
388
388
|
case 8:
|
|
389
389
|
_f = [{}];
|
|
390
|
-
return [4
|
|
390
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
391
391
|
case 9:
|
|
392
392
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
393
|
-
return [3
|
|
393
|
+
return [3, 15];
|
|
394
394
|
case 10:
|
|
395
395
|
_g = [{}];
|
|
396
|
-
return [4
|
|
396
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
397
397
|
case 11:
|
|
398
398
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
399
|
-
return [3
|
|
399
|
+
return [3, 15];
|
|
400
400
|
case 12:
|
|
401
401
|
_h = [{}];
|
|
402
|
-
return [4
|
|
402
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
403
403
|
case 13:
|
|
404
404
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
405
|
-
return [3
|
|
405
|
+
return [3, 15];
|
|
406
406
|
case 14:
|
|
407
407
|
parsedBody = parsedOutput.body;
|
|
408
408
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -412,7 +412,7 @@ var deserializeAws_json1_0AssociateFirewallPolicyCommandError = function (output
|
|
|
412
412
|
message = response.message || response.Message || errorCode;
|
|
413
413
|
response.message = message;
|
|
414
414
|
delete response.Message;
|
|
415
|
-
return [2
|
|
415
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
}); };
|
|
@@ -422,15 +422,15 @@ export var deserializeAws_json1_0AssociateSubnetsCommand = function (output, con
|
|
|
422
422
|
switch (_a.label) {
|
|
423
423
|
case 0:
|
|
424
424
|
if (output.statusCode >= 300) {
|
|
425
|
-
return [2
|
|
425
|
+
return [2, deserializeAws_json1_0AssociateSubnetsCommandError(output, context)];
|
|
426
426
|
}
|
|
427
|
-
return [4
|
|
427
|
+
return [4, parseBody(output.body, context)];
|
|
428
428
|
case 1:
|
|
429
429
|
data = _a.sent();
|
|
430
430
|
contents = {};
|
|
431
431
|
contents = deserializeAws_json1_0AssociateSubnetsResponse(data, context);
|
|
432
432
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
433
|
-
return [2
|
|
433
|
+
return [2, Promise.resolve(response)];
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
436
|
}); };
|
|
@@ -442,71 +442,71 @@ var deserializeAws_json1_0AssociateSubnetsCommandError = function (output, conte
|
|
|
442
442
|
case 0:
|
|
443
443
|
_a = [__assign({}, output)];
|
|
444
444
|
_k = {};
|
|
445
|
-
return [4
|
|
445
|
+
return [4, parseBody(output.body, context)];
|
|
446
446
|
case 1:
|
|
447
447
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
448
448
|
errorCode = "UnknownError";
|
|
449
449
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
450
|
_b = errorCode;
|
|
451
451
|
switch (_b) {
|
|
452
|
-
case "InsufficientCapacityException": return [3
|
|
453
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException": return [3
|
|
454
|
-
case "InternalServerError": return [3
|
|
455
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
456
|
-
case "InvalidOperationException": return [3
|
|
457
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3
|
|
458
|
-
case "InvalidRequestException": return [3
|
|
459
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
460
|
-
case "InvalidTokenException": return [3
|
|
461
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
462
|
-
case "ResourceNotFoundException": return [3
|
|
463
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
464
|
-
case "ThrottlingException": return [3
|
|
465
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
452
|
+
case "InsufficientCapacityException": return [3, 2];
|
|
453
|
+
case "com.amazonaws.networkfirewall#InsufficientCapacityException": return [3, 2];
|
|
454
|
+
case "InternalServerError": return [3, 4];
|
|
455
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 4];
|
|
456
|
+
case "InvalidOperationException": return [3, 6];
|
|
457
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3, 6];
|
|
458
|
+
case "InvalidRequestException": return [3, 8];
|
|
459
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 8];
|
|
460
|
+
case "InvalidTokenException": return [3, 10];
|
|
461
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 10];
|
|
462
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
463
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 12];
|
|
464
|
+
case "ThrottlingException": return [3, 14];
|
|
465
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 14];
|
|
466
466
|
}
|
|
467
|
-
return [3
|
|
467
|
+
return [3, 16];
|
|
468
468
|
case 2:
|
|
469
469
|
_c = [{}];
|
|
470
|
-
return [4
|
|
470
|
+
return [4, deserializeAws_json1_0InsufficientCapacityExceptionResponse(parsedOutput, context)];
|
|
471
471
|
case 3:
|
|
472
472
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
473
|
-
return [3
|
|
473
|
+
return [3, 17];
|
|
474
474
|
case 4:
|
|
475
475
|
_d = [{}];
|
|
476
|
-
return [4
|
|
476
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
477
477
|
case 5:
|
|
478
478
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
479
|
-
return [3
|
|
479
|
+
return [3, 17];
|
|
480
480
|
case 6:
|
|
481
481
|
_e = [{}];
|
|
482
|
-
return [4
|
|
482
|
+
return [4, deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context)];
|
|
483
483
|
case 7:
|
|
484
484
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
485
|
-
return [3
|
|
485
|
+
return [3, 17];
|
|
486
486
|
case 8:
|
|
487
487
|
_f = [{}];
|
|
488
|
-
return [4
|
|
488
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
489
489
|
case 9:
|
|
490
490
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
491
|
-
return [3
|
|
491
|
+
return [3, 17];
|
|
492
492
|
case 10:
|
|
493
493
|
_g = [{}];
|
|
494
|
-
return [4
|
|
494
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
495
495
|
case 11:
|
|
496
496
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
497
|
-
return [3
|
|
497
|
+
return [3, 17];
|
|
498
498
|
case 12:
|
|
499
499
|
_h = [{}];
|
|
500
|
-
return [4
|
|
500
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
501
501
|
case 13:
|
|
502
502
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
503
|
-
return [3
|
|
503
|
+
return [3, 17];
|
|
504
504
|
case 14:
|
|
505
505
|
_j = [{}];
|
|
506
|
-
return [4
|
|
506
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
507
507
|
case 15:
|
|
508
508
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
509
|
-
return [3
|
|
509
|
+
return [3, 17];
|
|
510
510
|
case 16:
|
|
511
511
|
parsedBody = parsedOutput.body;
|
|
512
512
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -516,7 +516,7 @@ var deserializeAws_json1_0AssociateSubnetsCommandError = function (output, conte
|
|
|
516
516
|
message = response.message || response.Message || errorCode;
|
|
517
517
|
response.message = message;
|
|
518
518
|
delete response.Message;
|
|
519
|
-
return [2
|
|
519
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
522
|
}); };
|
|
@@ -526,15 +526,15 @@ export var deserializeAws_json1_0CreateFirewallCommand = function (output, conte
|
|
|
526
526
|
switch (_a.label) {
|
|
527
527
|
case 0:
|
|
528
528
|
if (output.statusCode >= 300) {
|
|
529
|
-
return [2
|
|
529
|
+
return [2, deserializeAws_json1_0CreateFirewallCommandError(output, context)];
|
|
530
530
|
}
|
|
531
|
-
return [4
|
|
531
|
+
return [4, parseBody(output.body, context)];
|
|
532
532
|
case 1:
|
|
533
533
|
data = _a.sent();
|
|
534
534
|
contents = {};
|
|
535
535
|
contents = deserializeAws_json1_0CreateFirewallResponse(data, context);
|
|
536
536
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
537
|
-
return [2
|
|
537
|
+
return [2, Promise.resolve(response)];
|
|
538
538
|
}
|
|
539
539
|
});
|
|
540
540
|
}); };
|
|
@@ -546,63 +546,63 @@ var deserializeAws_json1_0CreateFirewallCommandError = function (output, context
|
|
|
546
546
|
case 0:
|
|
547
547
|
_a = [__assign({}, output)];
|
|
548
548
|
_j = {};
|
|
549
|
-
return [4
|
|
549
|
+
return [4, parseBody(output.body, context)];
|
|
550
550
|
case 1:
|
|
551
551
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
552
552
|
errorCode = "UnknownError";
|
|
553
553
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
554
|
_b = errorCode;
|
|
555
555
|
switch (_b) {
|
|
556
|
-
case "InsufficientCapacityException": return [3
|
|
557
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException": return [3
|
|
558
|
-
case "InternalServerError": return [3
|
|
559
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
560
|
-
case "InvalidOperationException": return [3
|
|
561
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3
|
|
562
|
-
case "InvalidRequestException": return [3
|
|
563
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
564
|
-
case "LimitExceededException": return [3
|
|
565
|
-
case "com.amazonaws.networkfirewall#LimitExceededException": return [3
|
|
566
|
-
case "ThrottlingException": return [3
|
|
567
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
556
|
+
case "InsufficientCapacityException": return [3, 2];
|
|
557
|
+
case "com.amazonaws.networkfirewall#InsufficientCapacityException": return [3, 2];
|
|
558
|
+
case "InternalServerError": return [3, 4];
|
|
559
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 4];
|
|
560
|
+
case "InvalidOperationException": return [3, 6];
|
|
561
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3, 6];
|
|
562
|
+
case "InvalidRequestException": return [3, 8];
|
|
563
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 8];
|
|
564
|
+
case "LimitExceededException": return [3, 10];
|
|
565
|
+
case "com.amazonaws.networkfirewall#LimitExceededException": return [3, 10];
|
|
566
|
+
case "ThrottlingException": return [3, 12];
|
|
567
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 12];
|
|
568
568
|
}
|
|
569
|
-
return [3
|
|
569
|
+
return [3, 14];
|
|
570
570
|
case 2:
|
|
571
571
|
_c = [{}];
|
|
572
|
-
return [4
|
|
572
|
+
return [4, deserializeAws_json1_0InsufficientCapacityExceptionResponse(parsedOutput, context)];
|
|
573
573
|
case 3:
|
|
574
574
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
575
|
-
return [3
|
|
575
|
+
return [3, 15];
|
|
576
576
|
case 4:
|
|
577
577
|
_d = [{}];
|
|
578
|
-
return [4
|
|
578
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
579
579
|
case 5:
|
|
580
580
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
581
|
-
return [3
|
|
581
|
+
return [3, 15];
|
|
582
582
|
case 6:
|
|
583
583
|
_e = [{}];
|
|
584
|
-
return [4
|
|
584
|
+
return [4, deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context)];
|
|
585
585
|
case 7:
|
|
586
586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
587
|
-
return [3
|
|
587
|
+
return [3, 15];
|
|
588
588
|
case 8:
|
|
589
589
|
_f = [{}];
|
|
590
|
-
return [4
|
|
590
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
591
591
|
case 9:
|
|
592
592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
593
|
-
return [3
|
|
593
|
+
return [3, 15];
|
|
594
594
|
case 10:
|
|
595
595
|
_g = [{}];
|
|
596
|
-
return [4
|
|
596
|
+
return [4, deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)];
|
|
597
597
|
case 11:
|
|
598
598
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
599
|
-
return [3
|
|
599
|
+
return [3, 15];
|
|
600
600
|
case 12:
|
|
601
601
|
_h = [{}];
|
|
602
|
-
return [4
|
|
602
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
603
603
|
case 13:
|
|
604
604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
605
|
-
return [3
|
|
605
|
+
return [3, 15];
|
|
606
606
|
case 14:
|
|
607
607
|
parsedBody = parsedOutput.body;
|
|
608
608
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -612,7 +612,7 @@ var deserializeAws_json1_0CreateFirewallCommandError = function (output, context
|
|
|
612
612
|
message = response.message || response.Message || errorCode;
|
|
613
613
|
response.message = message;
|
|
614
614
|
delete response.Message;
|
|
615
|
-
return [2
|
|
615
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
618
|
}); };
|
|
@@ -622,15 +622,15 @@ export var deserializeAws_json1_0CreateFirewallPolicyCommand = function (output,
|
|
|
622
622
|
switch (_a.label) {
|
|
623
623
|
case 0:
|
|
624
624
|
if (output.statusCode >= 300) {
|
|
625
|
-
return [2
|
|
625
|
+
return [2, deserializeAws_json1_0CreateFirewallPolicyCommandError(output, context)];
|
|
626
626
|
}
|
|
627
|
-
return [4
|
|
627
|
+
return [4, parseBody(output.body, context)];
|
|
628
628
|
case 1:
|
|
629
629
|
data = _a.sent();
|
|
630
630
|
contents = {};
|
|
631
631
|
contents = deserializeAws_json1_0CreateFirewallPolicyResponse(data, context);
|
|
632
632
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
633
|
-
return [2
|
|
633
|
+
return [2, Promise.resolve(response)];
|
|
634
634
|
}
|
|
635
635
|
});
|
|
636
636
|
}); };
|
|
@@ -642,55 +642,55 @@ var deserializeAws_json1_0CreateFirewallPolicyCommandError = function (output, c
|
|
|
642
642
|
case 0:
|
|
643
643
|
_a = [__assign({}, output)];
|
|
644
644
|
_h = {};
|
|
645
|
-
return [4
|
|
645
|
+
return [4, parseBody(output.body, context)];
|
|
646
646
|
case 1:
|
|
647
647
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
648
648
|
errorCode = "UnknownError";
|
|
649
649
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
650
|
_b = errorCode;
|
|
651
651
|
switch (_b) {
|
|
652
|
-
case "InsufficientCapacityException": return [3
|
|
653
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException": return [3
|
|
654
|
-
case "InternalServerError": return [3
|
|
655
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
656
|
-
case "InvalidRequestException": return [3
|
|
657
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
658
|
-
case "LimitExceededException": return [3
|
|
659
|
-
case "com.amazonaws.networkfirewall#LimitExceededException": return [3
|
|
660
|
-
case "ThrottlingException": return [3
|
|
661
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
652
|
+
case "InsufficientCapacityException": return [3, 2];
|
|
653
|
+
case "com.amazonaws.networkfirewall#InsufficientCapacityException": return [3, 2];
|
|
654
|
+
case "InternalServerError": return [3, 4];
|
|
655
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 4];
|
|
656
|
+
case "InvalidRequestException": return [3, 6];
|
|
657
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 6];
|
|
658
|
+
case "LimitExceededException": return [3, 8];
|
|
659
|
+
case "com.amazonaws.networkfirewall#LimitExceededException": return [3, 8];
|
|
660
|
+
case "ThrottlingException": return [3, 10];
|
|
661
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
662
662
|
}
|
|
663
|
-
return [3
|
|
663
|
+
return [3, 12];
|
|
664
664
|
case 2:
|
|
665
665
|
_c = [{}];
|
|
666
|
-
return [4
|
|
666
|
+
return [4, deserializeAws_json1_0InsufficientCapacityExceptionResponse(parsedOutput, context)];
|
|
667
667
|
case 3:
|
|
668
668
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
669
|
-
return [3
|
|
669
|
+
return [3, 13];
|
|
670
670
|
case 4:
|
|
671
671
|
_d = [{}];
|
|
672
|
-
return [4
|
|
672
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
673
673
|
case 5:
|
|
674
674
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
675
|
-
return [3
|
|
675
|
+
return [3, 13];
|
|
676
676
|
case 6:
|
|
677
677
|
_e = [{}];
|
|
678
|
-
return [4
|
|
678
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
679
679
|
case 7:
|
|
680
680
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
681
|
-
return [3
|
|
681
|
+
return [3, 13];
|
|
682
682
|
case 8:
|
|
683
683
|
_f = [{}];
|
|
684
|
-
return [4
|
|
684
|
+
return [4, deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)];
|
|
685
685
|
case 9:
|
|
686
686
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
687
|
-
return [3
|
|
687
|
+
return [3, 13];
|
|
688
688
|
case 10:
|
|
689
689
|
_g = [{}];
|
|
690
|
-
return [4
|
|
690
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
691
691
|
case 11:
|
|
692
692
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
693
|
-
return [3
|
|
693
|
+
return [3, 13];
|
|
694
694
|
case 12:
|
|
695
695
|
parsedBody = parsedOutput.body;
|
|
696
696
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -700,7 +700,7 @@ var deserializeAws_json1_0CreateFirewallPolicyCommandError = function (output, c
|
|
|
700
700
|
message = response.message || response.Message || errorCode;
|
|
701
701
|
response.message = message;
|
|
702
702
|
delete response.Message;
|
|
703
|
-
return [2
|
|
703
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
704
704
|
}
|
|
705
705
|
});
|
|
706
706
|
}); };
|
|
@@ -710,15 +710,15 @@ export var deserializeAws_json1_0CreateRuleGroupCommand = function (output, cont
|
|
|
710
710
|
switch (_a.label) {
|
|
711
711
|
case 0:
|
|
712
712
|
if (output.statusCode >= 300) {
|
|
713
|
-
return [2
|
|
713
|
+
return [2, deserializeAws_json1_0CreateRuleGroupCommandError(output, context)];
|
|
714
714
|
}
|
|
715
|
-
return [4
|
|
715
|
+
return [4, parseBody(output.body, context)];
|
|
716
716
|
case 1:
|
|
717
717
|
data = _a.sent();
|
|
718
718
|
contents = {};
|
|
719
719
|
contents = deserializeAws_json1_0CreateRuleGroupResponse(data, context);
|
|
720
720
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
721
|
-
return [2
|
|
721
|
+
return [2, Promise.resolve(response)];
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
724
|
}); };
|
|
@@ -730,55 +730,55 @@ var deserializeAws_json1_0CreateRuleGroupCommandError = function (output, contex
|
|
|
730
730
|
case 0:
|
|
731
731
|
_a = [__assign({}, output)];
|
|
732
732
|
_h = {};
|
|
733
|
-
return [4
|
|
733
|
+
return [4, parseBody(output.body, context)];
|
|
734
734
|
case 1:
|
|
735
735
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
736
736
|
errorCode = "UnknownError";
|
|
737
737
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
738
738
|
_b = errorCode;
|
|
739
739
|
switch (_b) {
|
|
740
|
-
case "InsufficientCapacityException": return [3
|
|
741
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException": return [3
|
|
742
|
-
case "InternalServerError": return [3
|
|
743
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
744
|
-
case "InvalidRequestException": return [3
|
|
745
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
746
|
-
case "LimitExceededException": return [3
|
|
747
|
-
case "com.amazonaws.networkfirewall#LimitExceededException": return [3
|
|
748
|
-
case "ThrottlingException": return [3
|
|
749
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
740
|
+
case "InsufficientCapacityException": return [3, 2];
|
|
741
|
+
case "com.amazonaws.networkfirewall#InsufficientCapacityException": return [3, 2];
|
|
742
|
+
case "InternalServerError": return [3, 4];
|
|
743
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 4];
|
|
744
|
+
case "InvalidRequestException": return [3, 6];
|
|
745
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 6];
|
|
746
|
+
case "LimitExceededException": return [3, 8];
|
|
747
|
+
case "com.amazonaws.networkfirewall#LimitExceededException": return [3, 8];
|
|
748
|
+
case "ThrottlingException": return [3, 10];
|
|
749
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
750
750
|
}
|
|
751
|
-
return [3
|
|
751
|
+
return [3, 12];
|
|
752
752
|
case 2:
|
|
753
753
|
_c = [{}];
|
|
754
|
-
return [4
|
|
754
|
+
return [4, deserializeAws_json1_0InsufficientCapacityExceptionResponse(parsedOutput, context)];
|
|
755
755
|
case 3:
|
|
756
756
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
757
|
-
return [3
|
|
757
|
+
return [3, 13];
|
|
758
758
|
case 4:
|
|
759
759
|
_d = [{}];
|
|
760
|
-
return [4
|
|
760
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
761
761
|
case 5:
|
|
762
762
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
763
|
-
return [3
|
|
763
|
+
return [3, 13];
|
|
764
764
|
case 6:
|
|
765
765
|
_e = [{}];
|
|
766
|
-
return [4
|
|
766
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
767
767
|
case 7:
|
|
768
768
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
769
|
-
return [3
|
|
769
|
+
return [3, 13];
|
|
770
770
|
case 8:
|
|
771
771
|
_f = [{}];
|
|
772
|
-
return [4
|
|
772
|
+
return [4, deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)];
|
|
773
773
|
case 9:
|
|
774
774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
775
|
-
return [3
|
|
775
|
+
return [3, 13];
|
|
776
776
|
case 10:
|
|
777
777
|
_g = [{}];
|
|
778
|
-
return [4
|
|
778
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
779
779
|
case 11:
|
|
780
780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
781
|
-
return [3
|
|
781
|
+
return [3, 13];
|
|
782
782
|
case 12:
|
|
783
783
|
parsedBody = parsedOutput.body;
|
|
784
784
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -788,7 +788,7 @@ var deserializeAws_json1_0CreateRuleGroupCommandError = function (output, contex
|
|
|
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_0DeleteFirewallCommand = function (output, conte
|
|
|
798
798
|
switch (_a.label) {
|
|
799
799
|
case 0:
|
|
800
800
|
if (output.statusCode >= 300) {
|
|
801
|
-
return [2
|
|
801
|
+
return [2, deserializeAws_json1_0DeleteFirewallCommandError(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_0DeleteFirewallResponse(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,63 +818,63 @@ var deserializeAws_json1_0DeleteFirewallCommandError = function (output, context
|
|
|
818
818
|
case 0:
|
|
819
819
|
_a = [__assign({}, output)];
|
|
820
820
|
_j = {};
|
|
821
|
-
return [4
|
|
821
|
+
return [4, parseBody(output.body, context)];
|
|
822
822
|
case 1:
|
|
823
823
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
824
824
|
errorCode = "UnknownError";
|
|
825
825
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
826
|
_b = errorCode;
|
|
827
827
|
switch (_b) {
|
|
828
|
-
case "InternalServerError": return [3
|
|
829
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
830
|
-
case "InvalidOperationException": return [3
|
|
831
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3
|
|
832
|
-
case "InvalidRequestException": return [3
|
|
833
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
834
|
-
case "ResourceNotFoundException": return [3
|
|
835
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
836
|
-
case "ThrottlingException": return [3
|
|
837
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
838
|
-
case "UnsupportedOperationException": return [3
|
|
839
|
-
case "com.amazonaws.networkfirewall#UnsupportedOperationException": return [3
|
|
828
|
+
case "InternalServerError": return [3, 2];
|
|
829
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
830
|
+
case "InvalidOperationException": return [3, 4];
|
|
831
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3, 4];
|
|
832
|
+
case "InvalidRequestException": return [3, 6];
|
|
833
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 6];
|
|
834
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
835
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
836
|
+
case "ThrottlingException": return [3, 10];
|
|
837
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
838
|
+
case "UnsupportedOperationException": return [3, 12];
|
|
839
|
+
case "com.amazonaws.networkfirewall#UnsupportedOperationException": return [3, 12];
|
|
840
840
|
}
|
|
841
|
-
return [3
|
|
841
|
+
return [3, 14];
|
|
842
842
|
case 2:
|
|
843
843
|
_c = [{}];
|
|
844
|
-
return [4
|
|
844
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
845
845
|
case 3:
|
|
846
846
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
847
|
-
return [3
|
|
847
|
+
return [3, 15];
|
|
848
848
|
case 4:
|
|
849
849
|
_d = [{}];
|
|
850
|
-
return [4
|
|
850
|
+
return [4, deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context)];
|
|
851
851
|
case 5:
|
|
852
852
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
853
|
-
return [3
|
|
853
|
+
return [3, 15];
|
|
854
854
|
case 6:
|
|
855
855
|
_e = [{}];
|
|
856
|
-
return [4
|
|
856
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
857
857
|
case 7:
|
|
858
858
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
859
|
-
return [3
|
|
859
|
+
return [3, 15];
|
|
860
860
|
case 8:
|
|
861
861
|
_f = [{}];
|
|
862
|
-
return [4
|
|
862
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
863
863
|
case 9:
|
|
864
864
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
865
|
-
return [3
|
|
865
|
+
return [3, 15];
|
|
866
866
|
case 10:
|
|
867
867
|
_g = [{}];
|
|
868
|
-
return [4
|
|
868
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
869
869
|
case 11:
|
|
870
870
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
871
|
-
return [3
|
|
871
|
+
return [3, 15];
|
|
872
872
|
case 12:
|
|
873
873
|
_h = [{}];
|
|
874
|
-
return [4
|
|
874
|
+
return [4, deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
875
875
|
case 13:
|
|
876
876
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
877
|
-
return [3
|
|
877
|
+
return [3, 15];
|
|
878
878
|
case 14:
|
|
879
879
|
parsedBody = parsedOutput.body;
|
|
880
880
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -884,7 +884,7 @@ var deserializeAws_json1_0DeleteFirewallCommandError = function (output, context
|
|
|
884
884
|
message = response.message || response.Message || errorCode;
|
|
885
885
|
response.message = message;
|
|
886
886
|
delete response.Message;
|
|
887
|
-
return [2
|
|
887
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
888
888
|
}
|
|
889
889
|
});
|
|
890
890
|
}); };
|
|
@@ -894,15 +894,15 @@ export var deserializeAws_json1_0DeleteFirewallPolicyCommand = function (output,
|
|
|
894
894
|
switch (_a.label) {
|
|
895
895
|
case 0:
|
|
896
896
|
if (output.statusCode >= 300) {
|
|
897
|
-
return [2
|
|
897
|
+
return [2, deserializeAws_json1_0DeleteFirewallPolicyCommandError(output, context)];
|
|
898
898
|
}
|
|
899
|
-
return [4
|
|
899
|
+
return [4, parseBody(output.body, context)];
|
|
900
900
|
case 1:
|
|
901
901
|
data = _a.sent();
|
|
902
902
|
contents = {};
|
|
903
903
|
contents = deserializeAws_json1_0DeleteFirewallPolicyResponse(data, context);
|
|
904
904
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
905
|
-
return [2
|
|
905
|
+
return [2, Promise.resolve(response)];
|
|
906
906
|
}
|
|
907
907
|
});
|
|
908
908
|
}); };
|
|
@@ -914,63 +914,63 @@ var deserializeAws_json1_0DeleteFirewallPolicyCommandError = function (output, c
|
|
|
914
914
|
case 0:
|
|
915
915
|
_a = [__assign({}, output)];
|
|
916
916
|
_j = {};
|
|
917
|
-
return [4
|
|
917
|
+
return [4, parseBody(output.body, context)];
|
|
918
918
|
case 1:
|
|
919
919
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
920
920
|
errorCode = "UnknownError";
|
|
921
921
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
922
|
_b = errorCode;
|
|
923
923
|
switch (_b) {
|
|
924
|
-
case "InternalServerError": return [3
|
|
925
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
926
|
-
case "InvalidOperationException": return [3
|
|
927
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3
|
|
928
|
-
case "InvalidRequestException": return [3
|
|
929
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
930
|
-
case "ResourceNotFoundException": return [3
|
|
931
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
932
|
-
case "ThrottlingException": return [3
|
|
933
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
934
|
-
case "UnsupportedOperationException": return [3
|
|
935
|
-
case "com.amazonaws.networkfirewall#UnsupportedOperationException": return [3
|
|
924
|
+
case "InternalServerError": return [3, 2];
|
|
925
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
926
|
+
case "InvalidOperationException": return [3, 4];
|
|
927
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3, 4];
|
|
928
|
+
case "InvalidRequestException": return [3, 6];
|
|
929
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 6];
|
|
930
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
931
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
932
|
+
case "ThrottlingException": return [3, 10];
|
|
933
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
934
|
+
case "UnsupportedOperationException": return [3, 12];
|
|
935
|
+
case "com.amazonaws.networkfirewall#UnsupportedOperationException": return [3, 12];
|
|
936
936
|
}
|
|
937
|
-
return [3
|
|
937
|
+
return [3, 14];
|
|
938
938
|
case 2:
|
|
939
939
|
_c = [{}];
|
|
940
|
-
return [4
|
|
940
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
941
941
|
case 3:
|
|
942
942
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
943
|
-
return [3
|
|
943
|
+
return [3, 15];
|
|
944
944
|
case 4:
|
|
945
945
|
_d = [{}];
|
|
946
|
-
return [4
|
|
946
|
+
return [4, deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context)];
|
|
947
947
|
case 5:
|
|
948
948
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
949
|
-
return [3
|
|
949
|
+
return [3, 15];
|
|
950
950
|
case 6:
|
|
951
951
|
_e = [{}];
|
|
952
|
-
return [4
|
|
952
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
953
953
|
case 7:
|
|
954
954
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
955
|
-
return [3
|
|
955
|
+
return [3, 15];
|
|
956
956
|
case 8:
|
|
957
957
|
_f = [{}];
|
|
958
|
-
return [4
|
|
958
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
959
959
|
case 9:
|
|
960
960
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
961
|
-
return [3
|
|
961
|
+
return [3, 15];
|
|
962
962
|
case 10:
|
|
963
963
|
_g = [{}];
|
|
964
|
-
return [4
|
|
964
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
965
965
|
case 11:
|
|
966
966
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
967
|
-
return [3
|
|
967
|
+
return [3, 15];
|
|
968
968
|
case 12:
|
|
969
969
|
_h = [{}];
|
|
970
|
-
return [4
|
|
970
|
+
return [4, deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
971
971
|
case 13:
|
|
972
972
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
973
|
-
return [3
|
|
973
|
+
return [3, 15];
|
|
974
974
|
case 14:
|
|
975
975
|
parsedBody = parsedOutput.body;
|
|
976
976
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -980,7 +980,7 @@ var deserializeAws_json1_0DeleteFirewallPolicyCommandError = function (output, c
|
|
|
980
980
|
message = response.message || response.Message || errorCode;
|
|
981
981
|
response.message = message;
|
|
982
982
|
delete response.Message;
|
|
983
|
-
return [2
|
|
983
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
984
984
|
}
|
|
985
985
|
});
|
|
986
986
|
}); };
|
|
@@ -990,77 +990,85 @@ export var deserializeAws_json1_0DeleteResourcePolicyCommand = function (output,
|
|
|
990
990
|
switch (_a.label) {
|
|
991
991
|
case 0:
|
|
992
992
|
if (output.statusCode >= 300) {
|
|
993
|
-
return [2
|
|
993
|
+
return [2, deserializeAws_json1_0DeleteResourcePolicyCommandError(output, context)];
|
|
994
994
|
}
|
|
995
|
-
return [4
|
|
995
|
+
return [4, parseBody(output.body, context)];
|
|
996
996
|
case 1:
|
|
997
997
|
data = _a.sent();
|
|
998
998
|
contents = {};
|
|
999
999
|
contents = deserializeAws_json1_0DeleteResourcePolicyResponse(data, context);
|
|
1000
1000
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1001
|
-
return [2
|
|
1001
|
+
return [2, Promise.resolve(response)];
|
|
1002
1002
|
}
|
|
1003
1003
|
});
|
|
1004
1004
|
}); };
|
|
1005
1005
|
var deserializeAws_json1_0DeleteResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1006
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1007
|
-
var
|
|
1008
|
-
return __generator(this, function (
|
|
1009
|
-
switch (
|
|
1006
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1007
|
+
var _h;
|
|
1008
|
+
return __generator(this, function (_j) {
|
|
1009
|
+
switch (_j.label) {
|
|
1010
1010
|
case 0:
|
|
1011
1011
|
_a = [__assign({}, output)];
|
|
1012
|
-
|
|
1013
|
-
return [4
|
|
1012
|
+
_h = {};
|
|
1013
|
+
return [4, parseBody(output.body, context)];
|
|
1014
1014
|
case 1:
|
|
1015
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1015
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1016
1016
|
errorCode = "UnknownError";
|
|
1017
1017
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
1018
|
_b = errorCode;
|
|
1019
1019
|
switch (_b) {
|
|
1020
|
-
case "InternalServerError": return [3
|
|
1021
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1022
|
-
case "InvalidRequestException": return [3
|
|
1023
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1024
|
-
case "
|
|
1025
|
-
case "com.amazonaws.networkfirewall#
|
|
1026
|
-
case "
|
|
1027
|
-
case "com.amazonaws.networkfirewall#
|
|
1020
|
+
case "InternalServerError": return [3, 2];
|
|
1021
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1022
|
+
case "InvalidRequestException": return [3, 4];
|
|
1023
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1024
|
+
case "InvalidResourcePolicyException": return [3, 6];
|
|
1025
|
+
case "com.amazonaws.networkfirewall#InvalidResourcePolicyException": return [3, 6];
|
|
1026
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1027
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
1028
|
+
case "ThrottlingException": return [3, 10];
|
|
1029
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
1028
1030
|
}
|
|
1029
|
-
return [3
|
|
1031
|
+
return [3, 12];
|
|
1030
1032
|
case 2:
|
|
1031
1033
|
_c = [{}];
|
|
1032
|
-
return [4
|
|
1034
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1033
1035
|
case 3:
|
|
1034
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1035
|
-
return [3
|
|
1036
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1037
|
+
return [3, 13];
|
|
1036
1038
|
case 4:
|
|
1037
1039
|
_d = [{}];
|
|
1038
|
-
return [4
|
|
1040
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1039
1041
|
case 5:
|
|
1040
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
1041
|
-
return [3
|
|
1042
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1043
|
+
return [3, 13];
|
|
1042
1044
|
case 6:
|
|
1043
1045
|
_e = [{}];
|
|
1044
|
-
return [4
|
|
1046
|
+
return [4, deserializeAws_json1_0InvalidResourcePolicyExceptionResponse(parsedOutput, context)];
|
|
1045
1047
|
case 7:
|
|
1046
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
1047
|
-
return [3
|
|
1048
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1049
|
+
return [3, 13];
|
|
1048
1050
|
case 8:
|
|
1049
1051
|
_f = [{}];
|
|
1050
|
-
return [4
|
|
1052
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1051
1053
|
case 9:
|
|
1052
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
1053
|
-
return [3
|
|
1054
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1055
|
+
return [3, 13];
|
|
1054
1056
|
case 10:
|
|
1057
|
+
_g = [{}];
|
|
1058
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1059
|
+
case 11:
|
|
1060
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1061
|
+
return [3, 13];
|
|
1062
|
+
case 12:
|
|
1055
1063
|
parsedBody = parsedOutput.body;
|
|
1056
1064
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1057
1065
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1058
|
-
|
|
1059
|
-
case
|
|
1066
|
+
_j.label = 13;
|
|
1067
|
+
case 13:
|
|
1060
1068
|
message = response.message || response.Message || errorCode;
|
|
1061
1069
|
response.message = message;
|
|
1062
1070
|
delete response.Message;
|
|
1063
|
-
return [2
|
|
1071
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1064
1072
|
}
|
|
1065
1073
|
});
|
|
1066
1074
|
}); };
|
|
@@ -1070,15 +1078,15 @@ export var deserializeAws_json1_0DeleteRuleGroupCommand = function (output, cont
|
|
|
1070
1078
|
switch (_a.label) {
|
|
1071
1079
|
case 0:
|
|
1072
1080
|
if (output.statusCode >= 300) {
|
|
1073
|
-
return [2
|
|
1081
|
+
return [2, deserializeAws_json1_0DeleteRuleGroupCommandError(output, context)];
|
|
1074
1082
|
}
|
|
1075
|
-
return [4
|
|
1083
|
+
return [4, parseBody(output.body, context)];
|
|
1076
1084
|
case 1:
|
|
1077
1085
|
data = _a.sent();
|
|
1078
1086
|
contents = {};
|
|
1079
1087
|
contents = deserializeAws_json1_0DeleteRuleGroupResponse(data, context);
|
|
1080
1088
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1081
|
-
return [2
|
|
1089
|
+
return [2, Promise.resolve(response)];
|
|
1082
1090
|
}
|
|
1083
1091
|
});
|
|
1084
1092
|
}); };
|
|
@@ -1090,63 +1098,63 @@ var deserializeAws_json1_0DeleteRuleGroupCommandError = function (output, contex
|
|
|
1090
1098
|
case 0:
|
|
1091
1099
|
_a = [__assign({}, output)];
|
|
1092
1100
|
_j = {};
|
|
1093
|
-
return [4
|
|
1101
|
+
return [4, parseBody(output.body, context)];
|
|
1094
1102
|
case 1:
|
|
1095
1103
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1096
1104
|
errorCode = "UnknownError";
|
|
1097
1105
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
1106
|
_b = errorCode;
|
|
1099
1107
|
switch (_b) {
|
|
1100
|
-
case "InternalServerError": return [3
|
|
1101
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1102
|
-
case "InvalidOperationException": return [3
|
|
1103
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3
|
|
1104
|
-
case "InvalidRequestException": return [3
|
|
1105
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1106
|
-
case "ResourceNotFoundException": return [3
|
|
1107
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1108
|
-
case "ThrottlingException": return [3
|
|
1109
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1110
|
-
case "UnsupportedOperationException": return [3
|
|
1111
|
-
case "com.amazonaws.networkfirewall#UnsupportedOperationException": return [3
|
|
1108
|
+
case "InternalServerError": return [3, 2];
|
|
1109
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1110
|
+
case "InvalidOperationException": return [3, 4];
|
|
1111
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3, 4];
|
|
1112
|
+
case "InvalidRequestException": return [3, 6];
|
|
1113
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 6];
|
|
1114
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1115
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
1116
|
+
case "ThrottlingException": return [3, 10];
|
|
1117
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
1118
|
+
case "UnsupportedOperationException": return [3, 12];
|
|
1119
|
+
case "com.amazonaws.networkfirewall#UnsupportedOperationException": return [3, 12];
|
|
1112
1120
|
}
|
|
1113
|
-
return [3
|
|
1121
|
+
return [3, 14];
|
|
1114
1122
|
case 2:
|
|
1115
1123
|
_c = [{}];
|
|
1116
|
-
return [4
|
|
1124
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1117
1125
|
case 3:
|
|
1118
1126
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1119
|
-
return [3
|
|
1127
|
+
return [3, 15];
|
|
1120
1128
|
case 4:
|
|
1121
1129
|
_d = [{}];
|
|
1122
|
-
return [4
|
|
1130
|
+
return [4, deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context)];
|
|
1123
1131
|
case 5:
|
|
1124
1132
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1125
|
-
return [3
|
|
1133
|
+
return [3, 15];
|
|
1126
1134
|
case 6:
|
|
1127
1135
|
_e = [{}];
|
|
1128
|
-
return [4
|
|
1136
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1129
1137
|
case 7:
|
|
1130
1138
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1131
|
-
return [3
|
|
1139
|
+
return [3, 15];
|
|
1132
1140
|
case 8:
|
|
1133
1141
|
_f = [{}];
|
|
1134
|
-
return [4
|
|
1142
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1135
1143
|
case 9:
|
|
1136
1144
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1137
|
-
return [3
|
|
1145
|
+
return [3, 15];
|
|
1138
1146
|
case 10:
|
|
1139
1147
|
_g = [{}];
|
|
1140
|
-
return [4
|
|
1148
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1141
1149
|
case 11:
|
|
1142
1150
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1143
|
-
return [3
|
|
1151
|
+
return [3, 15];
|
|
1144
1152
|
case 12:
|
|
1145
1153
|
_h = [{}];
|
|
1146
|
-
return [4
|
|
1154
|
+
return [4, deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1147
1155
|
case 13:
|
|
1148
1156
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1149
|
-
return [3
|
|
1157
|
+
return [3, 15];
|
|
1150
1158
|
case 14:
|
|
1151
1159
|
parsedBody = parsedOutput.body;
|
|
1152
1160
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1156,7 +1164,7 @@ var deserializeAws_json1_0DeleteRuleGroupCommandError = function (output, contex
|
|
|
1156
1164
|
message = response.message || response.Message || errorCode;
|
|
1157
1165
|
response.message = message;
|
|
1158
1166
|
delete response.Message;
|
|
1159
|
-
return [2
|
|
1167
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1160
1168
|
}
|
|
1161
1169
|
});
|
|
1162
1170
|
}); };
|
|
@@ -1166,15 +1174,15 @@ export var deserializeAws_json1_0DescribeFirewallCommand = function (output, con
|
|
|
1166
1174
|
switch (_a.label) {
|
|
1167
1175
|
case 0:
|
|
1168
1176
|
if (output.statusCode >= 300) {
|
|
1169
|
-
return [2
|
|
1177
|
+
return [2, deserializeAws_json1_0DescribeFirewallCommandError(output, context)];
|
|
1170
1178
|
}
|
|
1171
|
-
return [4
|
|
1179
|
+
return [4, parseBody(output.body, context)];
|
|
1172
1180
|
case 1:
|
|
1173
1181
|
data = _a.sent();
|
|
1174
1182
|
contents = {};
|
|
1175
1183
|
contents = deserializeAws_json1_0DescribeFirewallResponse(data, context);
|
|
1176
1184
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1177
|
-
return [2
|
|
1185
|
+
return [2, Promise.resolve(response)];
|
|
1178
1186
|
}
|
|
1179
1187
|
});
|
|
1180
1188
|
}); };
|
|
@@ -1186,47 +1194,47 @@ var deserializeAws_json1_0DescribeFirewallCommandError = function (output, conte
|
|
|
1186
1194
|
case 0:
|
|
1187
1195
|
_a = [__assign({}, output)];
|
|
1188
1196
|
_g = {};
|
|
1189
|
-
return [4
|
|
1197
|
+
return [4, parseBody(output.body, context)];
|
|
1190
1198
|
case 1:
|
|
1191
1199
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1192
1200
|
errorCode = "UnknownError";
|
|
1193
1201
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1202
|
_b = errorCode;
|
|
1195
1203
|
switch (_b) {
|
|
1196
|
-
case "InternalServerError": return [3
|
|
1197
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1198
|
-
case "InvalidRequestException": return [3
|
|
1199
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1200
|
-
case "ResourceNotFoundException": return [3
|
|
1201
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1202
|
-
case "ThrottlingException": return [3
|
|
1203
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1204
|
+
case "InternalServerError": return [3, 2];
|
|
1205
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1206
|
+
case "InvalidRequestException": return [3, 4];
|
|
1207
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1208
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1209
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 6];
|
|
1210
|
+
case "ThrottlingException": return [3, 8];
|
|
1211
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 8];
|
|
1204
1212
|
}
|
|
1205
|
-
return [3
|
|
1213
|
+
return [3, 10];
|
|
1206
1214
|
case 2:
|
|
1207
1215
|
_c = [{}];
|
|
1208
|
-
return [4
|
|
1216
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1209
1217
|
case 3:
|
|
1210
1218
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1211
|
-
return [3
|
|
1219
|
+
return [3, 11];
|
|
1212
1220
|
case 4:
|
|
1213
1221
|
_d = [{}];
|
|
1214
|
-
return [4
|
|
1222
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1215
1223
|
case 5:
|
|
1216
1224
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1217
|
-
return [3
|
|
1225
|
+
return [3, 11];
|
|
1218
1226
|
case 6:
|
|
1219
1227
|
_e = [{}];
|
|
1220
|
-
return [4
|
|
1228
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1221
1229
|
case 7:
|
|
1222
1230
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1223
|
-
return [3
|
|
1231
|
+
return [3, 11];
|
|
1224
1232
|
case 8:
|
|
1225
1233
|
_f = [{}];
|
|
1226
|
-
return [4
|
|
1234
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1227
1235
|
case 9:
|
|
1228
1236
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1229
|
-
return [3
|
|
1237
|
+
return [3, 11];
|
|
1230
1238
|
case 10:
|
|
1231
1239
|
parsedBody = parsedOutput.body;
|
|
1232
1240
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1236,7 +1244,7 @@ var deserializeAws_json1_0DescribeFirewallCommandError = function (output, conte
|
|
|
1236
1244
|
message = response.message || response.Message || errorCode;
|
|
1237
1245
|
response.message = message;
|
|
1238
1246
|
delete response.Message;
|
|
1239
|
-
return [2
|
|
1247
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1240
1248
|
}
|
|
1241
1249
|
});
|
|
1242
1250
|
}); };
|
|
@@ -1246,15 +1254,15 @@ export var deserializeAws_json1_0DescribeFirewallPolicyCommand = function (outpu
|
|
|
1246
1254
|
switch (_a.label) {
|
|
1247
1255
|
case 0:
|
|
1248
1256
|
if (output.statusCode >= 300) {
|
|
1249
|
-
return [2
|
|
1257
|
+
return [2, deserializeAws_json1_0DescribeFirewallPolicyCommandError(output, context)];
|
|
1250
1258
|
}
|
|
1251
|
-
return [4
|
|
1259
|
+
return [4, parseBody(output.body, context)];
|
|
1252
1260
|
case 1:
|
|
1253
1261
|
data = _a.sent();
|
|
1254
1262
|
contents = {};
|
|
1255
1263
|
contents = deserializeAws_json1_0DescribeFirewallPolicyResponse(data, context);
|
|
1256
1264
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1257
|
-
return [2
|
|
1265
|
+
return [2, Promise.resolve(response)];
|
|
1258
1266
|
}
|
|
1259
1267
|
});
|
|
1260
1268
|
}); };
|
|
@@ -1266,47 +1274,47 @@ var deserializeAws_json1_0DescribeFirewallPolicyCommandError = function (output,
|
|
|
1266
1274
|
case 0:
|
|
1267
1275
|
_a = [__assign({}, output)];
|
|
1268
1276
|
_g = {};
|
|
1269
|
-
return [4
|
|
1277
|
+
return [4, parseBody(output.body, context)];
|
|
1270
1278
|
case 1:
|
|
1271
1279
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1272
1280
|
errorCode = "UnknownError";
|
|
1273
1281
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
1282
|
_b = errorCode;
|
|
1275
1283
|
switch (_b) {
|
|
1276
|
-
case "InternalServerError": return [3
|
|
1277
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1278
|
-
case "InvalidRequestException": return [3
|
|
1279
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1280
|
-
case "ResourceNotFoundException": return [3
|
|
1281
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1282
|
-
case "ThrottlingException": return [3
|
|
1283
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1284
|
+
case "InternalServerError": return [3, 2];
|
|
1285
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1286
|
+
case "InvalidRequestException": return [3, 4];
|
|
1287
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1288
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1289
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 6];
|
|
1290
|
+
case "ThrottlingException": return [3, 8];
|
|
1291
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 8];
|
|
1284
1292
|
}
|
|
1285
|
-
return [3
|
|
1293
|
+
return [3, 10];
|
|
1286
1294
|
case 2:
|
|
1287
1295
|
_c = [{}];
|
|
1288
|
-
return [4
|
|
1296
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1289
1297
|
case 3:
|
|
1290
1298
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1291
|
-
return [3
|
|
1299
|
+
return [3, 11];
|
|
1292
1300
|
case 4:
|
|
1293
1301
|
_d = [{}];
|
|
1294
|
-
return [4
|
|
1302
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1295
1303
|
case 5:
|
|
1296
1304
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1297
|
-
return [3
|
|
1305
|
+
return [3, 11];
|
|
1298
1306
|
case 6:
|
|
1299
1307
|
_e = [{}];
|
|
1300
|
-
return [4
|
|
1308
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1301
1309
|
case 7:
|
|
1302
1310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1303
|
-
return [3
|
|
1311
|
+
return [3, 11];
|
|
1304
1312
|
case 8:
|
|
1305
1313
|
_f = [{}];
|
|
1306
|
-
return [4
|
|
1314
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1307
1315
|
case 9:
|
|
1308
1316
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1309
|
-
return [3
|
|
1317
|
+
return [3, 11];
|
|
1310
1318
|
case 10:
|
|
1311
1319
|
parsedBody = parsedOutput.body;
|
|
1312
1320
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1316,7 +1324,7 @@ var deserializeAws_json1_0DescribeFirewallPolicyCommandError = function (output,
|
|
|
1316
1324
|
message = response.message || response.Message || errorCode;
|
|
1317
1325
|
response.message = message;
|
|
1318
1326
|
delete response.Message;
|
|
1319
|
-
return [2
|
|
1327
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1320
1328
|
}
|
|
1321
1329
|
});
|
|
1322
1330
|
}); };
|
|
@@ -1326,15 +1334,15 @@ export var deserializeAws_json1_0DescribeLoggingConfigurationCommand = function
|
|
|
1326
1334
|
switch (_a.label) {
|
|
1327
1335
|
case 0:
|
|
1328
1336
|
if (output.statusCode >= 300) {
|
|
1329
|
-
return [2
|
|
1337
|
+
return [2, deserializeAws_json1_0DescribeLoggingConfigurationCommandError(output, context)];
|
|
1330
1338
|
}
|
|
1331
|
-
return [4
|
|
1339
|
+
return [4, parseBody(output.body, context)];
|
|
1332
1340
|
case 1:
|
|
1333
1341
|
data = _a.sent();
|
|
1334
1342
|
contents = {};
|
|
1335
1343
|
contents = deserializeAws_json1_0DescribeLoggingConfigurationResponse(data, context);
|
|
1336
1344
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1337
|
-
return [2
|
|
1345
|
+
return [2, Promise.resolve(response)];
|
|
1338
1346
|
}
|
|
1339
1347
|
});
|
|
1340
1348
|
}); };
|
|
@@ -1346,47 +1354,47 @@ var deserializeAws_json1_0DescribeLoggingConfigurationCommandError = function (o
|
|
|
1346
1354
|
case 0:
|
|
1347
1355
|
_a = [__assign({}, output)];
|
|
1348
1356
|
_g = {};
|
|
1349
|
-
return [4
|
|
1357
|
+
return [4, parseBody(output.body, context)];
|
|
1350
1358
|
case 1:
|
|
1351
1359
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1352
1360
|
errorCode = "UnknownError";
|
|
1353
1361
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1362
|
_b = errorCode;
|
|
1355
1363
|
switch (_b) {
|
|
1356
|
-
case "InternalServerError": return [3
|
|
1357
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1358
|
-
case "InvalidRequestException": return [3
|
|
1359
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1360
|
-
case "ResourceNotFoundException": return [3
|
|
1361
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1362
|
-
case "ThrottlingException": return [3
|
|
1363
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1364
|
+
case "InternalServerError": return [3, 2];
|
|
1365
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1366
|
+
case "InvalidRequestException": return [3, 4];
|
|
1367
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1368
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1369
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 6];
|
|
1370
|
+
case "ThrottlingException": return [3, 8];
|
|
1371
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 8];
|
|
1364
1372
|
}
|
|
1365
|
-
return [3
|
|
1373
|
+
return [3, 10];
|
|
1366
1374
|
case 2:
|
|
1367
1375
|
_c = [{}];
|
|
1368
|
-
return [4
|
|
1376
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1369
1377
|
case 3:
|
|
1370
1378
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1371
|
-
return [3
|
|
1379
|
+
return [3, 11];
|
|
1372
1380
|
case 4:
|
|
1373
1381
|
_d = [{}];
|
|
1374
|
-
return [4
|
|
1382
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1375
1383
|
case 5:
|
|
1376
1384
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1377
|
-
return [3
|
|
1385
|
+
return [3, 11];
|
|
1378
1386
|
case 6:
|
|
1379
1387
|
_e = [{}];
|
|
1380
|
-
return [4
|
|
1388
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1381
1389
|
case 7:
|
|
1382
1390
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1383
|
-
return [3
|
|
1391
|
+
return [3, 11];
|
|
1384
1392
|
case 8:
|
|
1385
1393
|
_f = [{}];
|
|
1386
|
-
return [4
|
|
1394
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1387
1395
|
case 9:
|
|
1388
1396
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1389
|
-
return [3
|
|
1397
|
+
return [3, 11];
|
|
1390
1398
|
case 10:
|
|
1391
1399
|
parsedBody = parsedOutput.body;
|
|
1392
1400
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1396,7 +1404,7 @@ var deserializeAws_json1_0DescribeLoggingConfigurationCommandError = function (o
|
|
|
1396
1404
|
message = response.message || response.Message || errorCode;
|
|
1397
1405
|
response.message = message;
|
|
1398
1406
|
delete response.Message;
|
|
1399
|
-
return [2
|
|
1407
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1400
1408
|
}
|
|
1401
1409
|
});
|
|
1402
1410
|
}); };
|
|
@@ -1406,15 +1414,15 @@ export var deserializeAws_json1_0DescribeResourcePolicyCommand = function (outpu
|
|
|
1406
1414
|
switch (_a.label) {
|
|
1407
1415
|
case 0:
|
|
1408
1416
|
if (output.statusCode >= 300) {
|
|
1409
|
-
return [2
|
|
1417
|
+
return [2, deserializeAws_json1_0DescribeResourcePolicyCommandError(output, context)];
|
|
1410
1418
|
}
|
|
1411
|
-
return [4
|
|
1419
|
+
return [4, parseBody(output.body, context)];
|
|
1412
1420
|
case 1:
|
|
1413
1421
|
data = _a.sent();
|
|
1414
1422
|
contents = {};
|
|
1415
1423
|
contents = deserializeAws_json1_0DescribeResourcePolicyResponse(data, context);
|
|
1416
1424
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1417
|
-
return [2
|
|
1425
|
+
return [2, Promise.resolve(response)];
|
|
1418
1426
|
}
|
|
1419
1427
|
});
|
|
1420
1428
|
}); };
|
|
@@ -1426,47 +1434,47 @@ var deserializeAws_json1_0DescribeResourcePolicyCommandError = function (output,
|
|
|
1426
1434
|
case 0:
|
|
1427
1435
|
_a = [__assign({}, output)];
|
|
1428
1436
|
_g = {};
|
|
1429
|
-
return [4
|
|
1437
|
+
return [4, parseBody(output.body, context)];
|
|
1430
1438
|
case 1:
|
|
1431
1439
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1432
1440
|
errorCode = "UnknownError";
|
|
1433
1441
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
1442
|
_b = errorCode;
|
|
1435
1443
|
switch (_b) {
|
|
1436
|
-
case "InternalServerError": return [3
|
|
1437
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1438
|
-
case "InvalidRequestException": return [3
|
|
1439
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1440
|
-
case "ResourceNotFoundException": return [3
|
|
1441
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1442
|
-
case "ThrottlingException": return [3
|
|
1443
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1444
|
+
case "InternalServerError": return [3, 2];
|
|
1445
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1446
|
+
case "InvalidRequestException": return [3, 4];
|
|
1447
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1448
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1449
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 6];
|
|
1450
|
+
case "ThrottlingException": return [3, 8];
|
|
1451
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 8];
|
|
1444
1452
|
}
|
|
1445
|
-
return [3
|
|
1453
|
+
return [3, 10];
|
|
1446
1454
|
case 2:
|
|
1447
1455
|
_c = [{}];
|
|
1448
|
-
return [4
|
|
1456
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1449
1457
|
case 3:
|
|
1450
1458
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1451
|
-
return [3
|
|
1459
|
+
return [3, 11];
|
|
1452
1460
|
case 4:
|
|
1453
1461
|
_d = [{}];
|
|
1454
|
-
return [4
|
|
1462
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1455
1463
|
case 5:
|
|
1456
1464
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1457
|
-
return [3
|
|
1465
|
+
return [3, 11];
|
|
1458
1466
|
case 6:
|
|
1459
1467
|
_e = [{}];
|
|
1460
|
-
return [4
|
|
1468
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1461
1469
|
case 7:
|
|
1462
1470
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1463
|
-
return [3
|
|
1471
|
+
return [3, 11];
|
|
1464
1472
|
case 8:
|
|
1465
1473
|
_f = [{}];
|
|
1466
|
-
return [4
|
|
1474
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1467
1475
|
case 9:
|
|
1468
1476
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1469
|
-
return [3
|
|
1477
|
+
return [3, 11];
|
|
1470
1478
|
case 10:
|
|
1471
1479
|
parsedBody = parsedOutput.body;
|
|
1472
1480
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1476,7 +1484,7 @@ var deserializeAws_json1_0DescribeResourcePolicyCommandError = function (output,
|
|
|
1476
1484
|
message = response.message || response.Message || errorCode;
|
|
1477
1485
|
response.message = message;
|
|
1478
1486
|
delete response.Message;
|
|
1479
|
-
return [2
|
|
1487
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1480
1488
|
}
|
|
1481
1489
|
});
|
|
1482
1490
|
}); };
|
|
@@ -1486,15 +1494,15 @@ export var deserializeAws_json1_0DescribeRuleGroupCommand = function (output, co
|
|
|
1486
1494
|
switch (_a.label) {
|
|
1487
1495
|
case 0:
|
|
1488
1496
|
if (output.statusCode >= 300) {
|
|
1489
|
-
return [2
|
|
1497
|
+
return [2, deserializeAws_json1_0DescribeRuleGroupCommandError(output, context)];
|
|
1490
1498
|
}
|
|
1491
|
-
return [4
|
|
1499
|
+
return [4, parseBody(output.body, context)];
|
|
1492
1500
|
case 1:
|
|
1493
1501
|
data = _a.sent();
|
|
1494
1502
|
contents = {};
|
|
1495
1503
|
contents = deserializeAws_json1_0DescribeRuleGroupResponse(data, context);
|
|
1496
1504
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1497
|
-
return [2
|
|
1505
|
+
return [2, Promise.resolve(response)];
|
|
1498
1506
|
}
|
|
1499
1507
|
});
|
|
1500
1508
|
}); };
|
|
@@ -1506,47 +1514,47 @@ var deserializeAws_json1_0DescribeRuleGroupCommandError = function (output, cont
|
|
|
1506
1514
|
case 0:
|
|
1507
1515
|
_a = [__assign({}, output)];
|
|
1508
1516
|
_g = {};
|
|
1509
|
-
return [4
|
|
1517
|
+
return [4, parseBody(output.body, context)];
|
|
1510
1518
|
case 1:
|
|
1511
1519
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1512
1520
|
errorCode = "UnknownError";
|
|
1513
1521
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1522
|
_b = errorCode;
|
|
1515
1523
|
switch (_b) {
|
|
1516
|
-
case "InternalServerError": return [3
|
|
1517
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1518
|
-
case "InvalidRequestException": return [3
|
|
1519
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1520
|
-
case "ResourceNotFoundException": return [3
|
|
1521
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1522
|
-
case "ThrottlingException": return [3
|
|
1523
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1524
|
+
case "InternalServerError": return [3, 2];
|
|
1525
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1526
|
+
case "InvalidRequestException": return [3, 4];
|
|
1527
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1528
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1529
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 6];
|
|
1530
|
+
case "ThrottlingException": return [3, 8];
|
|
1531
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 8];
|
|
1524
1532
|
}
|
|
1525
|
-
return [3
|
|
1533
|
+
return [3, 10];
|
|
1526
1534
|
case 2:
|
|
1527
1535
|
_c = [{}];
|
|
1528
|
-
return [4
|
|
1536
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1529
1537
|
case 3:
|
|
1530
1538
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1531
|
-
return [3
|
|
1539
|
+
return [3, 11];
|
|
1532
1540
|
case 4:
|
|
1533
1541
|
_d = [{}];
|
|
1534
|
-
return [4
|
|
1542
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1535
1543
|
case 5:
|
|
1536
1544
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1537
|
-
return [3
|
|
1545
|
+
return [3, 11];
|
|
1538
1546
|
case 6:
|
|
1539
1547
|
_e = [{}];
|
|
1540
|
-
return [4
|
|
1548
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1541
1549
|
case 7:
|
|
1542
1550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1543
|
-
return [3
|
|
1551
|
+
return [3, 11];
|
|
1544
1552
|
case 8:
|
|
1545
1553
|
_f = [{}];
|
|
1546
|
-
return [4
|
|
1554
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1547
1555
|
case 9:
|
|
1548
1556
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1549
|
-
return [3
|
|
1557
|
+
return [3, 11];
|
|
1550
1558
|
case 10:
|
|
1551
1559
|
parsedBody = parsedOutput.body;
|
|
1552
1560
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1556,7 +1564,7 @@ var deserializeAws_json1_0DescribeRuleGroupCommandError = function (output, cont
|
|
|
1556
1564
|
message = response.message || response.Message || errorCode;
|
|
1557
1565
|
response.message = message;
|
|
1558
1566
|
delete response.Message;
|
|
1559
|
-
return [2
|
|
1567
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1560
1568
|
}
|
|
1561
1569
|
});
|
|
1562
1570
|
}); };
|
|
@@ -1566,15 +1574,15 @@ export var deserializeAws_json1_0DisassociateSubnetsCommand = function (output,
|
|
|
1566
1574
|
switch (_a.label) {
|
|
1567
1575
|
case 0:
|
|
1568
1576
|
if (output.statusCode >= 300) {
|
|
1569
|
-
return [2
|
|
1577
|
+
return [2, deserializeAws_json1_0DisassociateSubnetsCommandError(output, context)];
|
|
1570
1578
|
}
|
|
1571
|
-
return [4
|
|
1579
|
+
return [4, parseBody(output.body, context)];
|
|
1572
1580
|
case 1:
|
|
1573
1581
|
data = _a.sent();
|
|
1574
1582
|
contents = {};
|
|
1575
1583
|
contents = deserializeAws_json1_0DisassociateSubnetsResponse(data, context);
|
|
1576
1584
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1577
|
-
return [2
|
|
1585
|
+
return [2, Promise.resolve(response)];
|
|
1578
1586
|
}
|
|
1579
1587
|
});
|
|
1580
1588
|
}); };
|
|
@@ -1586,63 +1594,63 @@ var deserializeAws_json1_0DisassociateSubnetsCommandError = function (output, co
|
|
|
1586
1594
|
case 0:
|
|
1587
1595
|
_a = [__assign({}, output)];
|
|
1588
1596
|
_j = {};
|
|
1589
|
-
return [4
|
|
1597
|
+
return [4, parseBody(output.body, context)];
|
|
1590
1598
|
case 1:
|
|
1591
1599
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1592
1600
|
errorCode = "UnknownError";
|
|
1593
1601
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1602
|
_b = errorCode;
|
|
1595
1603
|
switch (_b) {
|
|
1596
|
-
case "InternalServerError": return [3
|
|
1597
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1598
|
-
case "InvalidOperationException": return [3
|
|
1599
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3
|
|
1600
|
-
case "InvalidRequestException": return [3
|
|
1601
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1602
|
-
case "InvalidTokenException": return [3
|
|
1603
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
1604
|
-
case "ResourceNotFoundException": return [3
|
|
1605
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1606
|
-
case "ThrottlingException": return [3
|
|
1607
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1604
|
+
case "InternalServerError": return [3, 2];
|
|
1605
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1606
|
+
case "InvalidOperationException": return [3, 4];
|
|
1607
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException": return [3, 4];
|
|
1608
|
+
case "InvalidRequestException": return [3, 6];
|
|
1609
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 6];
|
|
1610
|
+
case "InvalidTokenException": return [3, 8];
|
|
1611
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 8];
|
|
1612
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1613
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 10];
|
|
1614
|
+
case "ThrottlingException": return [3, 12];
|
|
1615
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 12];
|
|
1608
1616
|
}
|
|
1609
|
-
return [3
|
|
1617
|
+
return [3, 14];
|
|
1610
1618
|
case 2:
|
|
1611
1619
|
_c = [{}];
|
|
1612
|
-
return [4
|
|
1620
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1613
1621
|
case 3:
|
|
1614
1622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1615
|
-
return [3
|
|
1623
|
+
return [3, 15];
|
|
1616
1624
|
case 4:
|
|
1617
1625
|
_d = [{}];
|
|
1618
|
-
return [4
|
|
1626
|
+
return [4, deserializeAws_json1_0InvalidOperationExceptionResponse(parsedOutput, context)];
|
|
1619
1627
|
case 5:
|
|
1620
1628
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1621
|
-
return [3
|
|
1629
|
+
return [3, 15];
|
|
1622
1630
|
case 6:
|
|
1623
1631
|
_e = [{}];
|
|
1624
|
-
return [4
|
|
1632
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1625
1633
|
case 7:
|
|
1626
1634
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1627
|
-
return [3
|
|
1635
|
+
return [3, 15];
|
|
1628
1636
|
case 8:
|
|
1629
1637
|
_f = [{}];
|
|
1630
|
-
return [4
|
|
1638
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
1631
1639
|
case 9:
|
|
1632
1640
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1633
|
-
return [3
|
|
1641
|
+
return [3, 15];
|
|
1634
1642
|
case 10:
|
|
1635
1643
|
_g = [{}];
|
|
1636
|
-
return [4
|
|
1644
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1637
1645
|
case 11:
|
|
1638
1646
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1639
|
-
return [3
|
|
1647
|
+
return [3, 15];
|
|
1640
1648
|
case 12:
|
|
1641
1649
|
_h = [{}];
|
|
1642
|
-
return [4
|
|
1650
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1643
1651
|
case 13:
|
|
1644
1652
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1645
|
-
return [3
|
|
1653
|
+
return [3, 15];
|
|
1646
1654
|
case 14:
|
|
1647
1655
|
parsedBody = parsedOutput.body;
|
|
1648
1656
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1652,7 +1660,7 @@ var deserializeAws_json1_0DisassociateSubnetsCommandError = function (output, co
|
|
|
1652
1660
|
message = response.message || response.Message || errorCode;
|
|
1653
1661
|
response.message = message;
|
|
1654
1662
|
delete response.Message;
|
|
1655
|
-
return [2
|
|
1663
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1656
1664
|
}
|
|
1657
1665
|
});
|
|
1658
1666
|
}); };
|
|
@@ -1662,15 +1670,15 @@ export var deserializeAws_json1_0ListFirewallPoliciesCommand = function (output,
|
|
|
1662
1670
|
switch (_a.label) {
|
|
1663
1671
|
case 0:
|
|
1664
1672
|
if (output.statusCode >= 300) {
|
|
1665
|
-
return [2
|
|
1673
|
+
return [2, deserializeAws_json1_0ListFirewallPoliciesCommandError(output, context)];
|
|
1666
1674
|
}
|
|
1667
|
-
return [4
|
|
1675
|
+
return [4, parseBody(output.body, context)];
|
|
1668
1676
|
case 1:
|
|
1669
1677
|
data = _a.sent();
|
|
1670
1678
|
contents = {};
|
|
1671
1679
|
contents = deserializeAws_json1_0ListFirewallPoliciesResponse(data, context);
|
|
1672
1680
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1673
|
-
return [2
|
|
1681
|
+
return [2, Promise.resolve(response)];
|
|
1674
1682
|
}
|
|
1675
1683
|
});
|
|
1676
1684
|
}); };
|
|
@@ -1682,39 +1690,39 @@ var deserializeAws_json1_0ListFirewallPoliciesCommandError = function (output, c
|
|
|
1682
1690
|
case 0:
|
|
1683
1691
|
_a = [__assign({}, output)];
|
|
1684
1692
|
_f = {};
|
|
1685
|
-
return [4
|
|
1693
|
+
return [4, parseBody(output.body, context)];
|
|
1686
1694
|
case 1:
|
|
1687
1695
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1688
1696
|
errorCode = "UnknownError";
|
|
1689
1697
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1698
|
_b = errorCode;
|
|
1691
1699
|
switch (_b) {
|
|
1692
|
-
case "InternalServerError": return [3
|
|
1693
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1694
|
-
case "InvalidRequestException": return [3
|
|
1695
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1696
|
-
case "ThrottlingException": return [3
|
|
1697
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1700
|
+
case "InternalServerError": return [3, 2];
|
|
1701
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1702
|
+
case "InvalidRequestException": return [3, 4];
|
|
1703
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1704
|
+
case "ThrottlingException": return [3, 6];
|
|
1705
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 6];
|
|
1698
1706
|
}
|
|
1699
|
-
return [3
|
|
1707
|
+
return [3, 8];
|
|
1700
1708
|
case 2:
|
|
1701
1709
|
_c = [{}];
|
|
1702
|
-
return [4
|
|
1710
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1703
1711
|
case 3:
|
|
1704
1712
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1705
|
-
return [3
|
|
1713
|
+
return [3, 9];
|
|
1706
1714
|
case 4:
|
|
1707
1715
|
_d = [{}];
|
|
1708
|
-
return [4
|
|
1716
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1709
1717
|
case 5:
|
|
1710
1718
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1711
|
-
return [3
|
|
1719
|
+
return [3, 9];
|
|
1712
1720
|
case 6:
|
|
1713
1721
|
_e = [{}];
|
|
1714
|
-
return [4
|
|
1722
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1715
1723
|
case 7:
|
|
1716
1724
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1717
|
-
return [3
|
|
1725
|
+
return [3, 9];
|
|
1718
1726
|
case 8:
|
|
1719
1727
|
parsedBody = parsedOutput.body;
|
|
1720
1728
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1724,7 +1732,7 @@ var deserializeAws_json1_0ListFirewallPoliciesCommandError = function (output, c
|
|
|
1724
1732
|
message = response.message || response.Message || errorCode;
|
|
1725
1733
|
response.message = message;
|
|
1726
1734
|
delete response.Message;
|
|
1727
|
-
return [2
|
|
1735
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1728
1736
|
}
|
|
1729
1737
|
});
|
|
1730
1738
|
}); };
|
|
@@ -1734,15 +1742,15 @@ export var deserializeAws_json1_0ListFirewallsCommand = function (output, contex
|
|
|
1734
1742
|
switch (_a.label) {
|
|
1735
1743
|
case 0:
|
|
1736
1744
|
if (output.statusCode >= 300) {
|
|
1737
|
-
return [2
|
|
1745
|
+
return [2, deserializeAws_json1_0ListFirewallsCommandError(output, context)];
|
|
1738
1746
|
}
|
|
1739
|
-
return [4
|
|
1747
|
+
return [4, parseBody(output.body, context)];
|
|
1740
1748
|
case 1:
|
|
1741
1749
|
data = _a.sent();
|
|
1742
1750
|
contents = {};
|
|
1743
1751
|
contents = deserializeAws_json1_0ListFirewallsResponse(data, context);
|
|
1744
1752
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1745
|
-
return [2
|
|
1753
|
+
return [2, Promise.resolve(response)];
|
|
1746
1754
|
}
|
|
1747
1755
|
});
|
|
1748
1756
|
}); };
|
|
@@ -1754,39 +1762,39 @@ var deserializeAws_json1_0ListFirewallsCommandError = function (output, context)
|
|
|
1754
1762
|
case 0:
|
|
1755
1763
|
_a = [__assign({}, output)];
|
|
1756
1764
|
_f = {};
|
|
1757
|
-
return [4
|
|
1765
|
+
return [4, parseBody(output.body, context)];
|
|
1758
1766
|
case 1:
|
|
1759
1767
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1760
1768
|
errorCode = "UnknownError";
|
|
1761
1769
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1770
|
_b = errorCode;
|
|
1763
1771
|
switch (_b) {
|
|
1764
|
-
case "InternalServerError": return [3
|
|
1765
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1766
|
-
case "InvalidRequestException": return [3
|
|
1767
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1768
|
-
case "ThrottlingException": return [3
|
|
1769
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1772
|
+
case "InternalServerError": return [3, 2];
|
|
1773
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1774
|
+
case "InvalidRequestException": return [3, 4];
|
|
1775
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1776
|
+
case "ThrottlingException": return [3, 6];
|
|
1777
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 6];
|
|
1770
1778
|
}
|
|
1771
|
-
return [3
|
|
1779
|
+
return [3, 8];
|
|
1772
1780
|
case 2:
|
|
1773
1781
|
_c = [{}];
|
|
1774
|
-
return [4
|
|
1782
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1775
1783
|
case 3:
|
|
1776
1784
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1777
|
-
return [3
|
|
1785
|
+
return [3, 9];
|
|
1778
1786
|
case 4:
|
|
1779
1787
|
_d = [{}];
|
|
1780
|
-
return [4
|
|
1788
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1781
1789
|
case 5:
|
|
1782
1790
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1783
|
-
return [3
|
|
1791
|
+
return [3, 9];
|
|
1784
1792
|
case 6:
|
|
1785
1793
|
_e = [{}];
|
|
1786
|
-
return [4
|
|
1794
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1787
1795
|
case 7:
|
|
1788
1796
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1789
|
-
return [3
|
|
1797
|
+
return [3, 9];
|
|
1790
1798
|
case 8:
|
|
1791
1799
|
parsedBody = parsedOutput.body;
|
|
1792
1800
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1796,7 +1804,7 @@ var deserializeAws_json1_0ListFirewallsCommandError = function (output, context)
|
|
|
1796
1804
|
message = response.message || response.Message || errorCode;
|
|
1797
1805
|
response.message = message;
|
|
1798
1806
|
delete response.Message;
|
|
1799
|
-
return [2
|
|
1807
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1800
1808
|
}
|
|
1801
1809
|
});
|
|
1802
1810
|
}); };
|
|
@@ -1806,15 +1814,15 @@ export var deserializeAws_json1_0ListRuleGroupsCommand = function (output, conte
|
|
|
1806
1814
|
switch (_a.label) {
|
|
1807
1815
|
case 0:
|
|
1808
1816
|
if (output.statusCode >= 300) {
|
|
1809
|
-
return [2
|
|
1817
|
+
return [2, deserializeAws_json1_0ListRuleGroupsCommandError(output, context)];
|
|
1810
1818
|
}
|
|
1811
|
-
return [4
|
|
1819
|
+
return [4, parseBody(output.body, context)];
|
|
1812
1820
|
case 1:
|
|
1813
1821
|
data = _a.sent();
|
|
1814
1822
|
contents = {};
|
|
1815
1823
|
contents = deserializeAws_json1_0ListRuleGroupsResponse(data, context);
|
|
1816
1824
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1817
|
-
return [2
|
|
1825
|
+
return [2, Promise.resolve(response)];
|
|
1818
1826
|
}
|
|
1819
1827
|
});
|
|
1820
1828
|
}); };
|
|
@@ -1826,39 +1834,39 @@ var deserializeAws_json1_0ListRuleGroupsCommandError = function (output, context
|
|
|
1826
1834
|
case 0:
|
|
1827
1835
|
_a = [__assign({}, output)];
|
|
1828
1836
|
_f = {};
|
|
1829
|
-
return [4
|
|
1837
|
+
return [4, parseBody(output.body, context)];
|
|
1830
1838
|
case 1:
|
|
1831
1839
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1832
1840
|
errorCode = "UnknownError";
|
|
1833
1841
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1834
1842
|
_b = errorCode;
|
|
1835
1843
|
switch (_b) {
|
|
1836
|
-
case "InternalServerError": return [3
|
|
1837
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1838
|
-
case "InvalidRequestException": return [3
|
|
1839
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1840
|
-
case "ThrottlingException": return [3
|
|
1841
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1844
|
+
case "InternalServerError": return [3, 2];
|
|
1845
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1846
|
+
case "InvalidRequestException": return [3, 4];
|
|
1847
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1848
|
+
case "ThrottlingException": return [3, 6];
|
|
1849
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 6];
|
|
1842
1850
|
}
|
|
1843
|
-
return [3
|
|
1851
|
+
return [3, 8];
|
|
1844
1852
|
case 2:
|
|
1845
1853
|
_c = [{}];
|
|
1846
|
-
return [4
|
|
1854
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1847
1855
|
case 3:
|
|
1848
1856
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1849
|
-
return [3
|
|
1857
|
+
return [3, 9];
|
|
1850
1858
|
case 4:
|
|
1851
1859
|
_d = [{}];
|
|
1852
|
-
return [4
|
|
1860
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1853
1861
|
case 5:
|
|
1854
1862
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1855
|
-
return [3
|
|
1863
|
+
return [3, 9];
|
|
1856
1864
|
case 6:
|
|
1857
1865
|
_e = [{}];
|
|
1858
|
-
return [4
|
|
1866
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1859
1867
|
case 7:
|
|
1860
1868
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1861
|
-
return [3
|
|
1869
|
+
return [3, 9];
|
|
1862
1870
|
case 8:
|
|
1863
1871
|
parsedBody = parsedOutput.body;
|
|
1864
1872
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1868,7 +1876,7 @@ var deserializeAws_json1_0ListRuleGroupsCommandError = function (output, context
|
|
|
1868
1876
|
message = response.message || response.Message || errorCode;
|
|
1869
1877
|
response.message = message;
|
|
1870
1878
|
delete response.Message;
|
|
1871
|
-
return [2
|
|
1879
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1872
1880
|
}
|
|
1873
1881
|
});
|
|
1874
1882
|
}); };
|
|
@@ -1878,15 +1886,15 @@ export var deserializeAws_json1_0ListTagsForResourceCommand = function (output,
|
|
|
1878
1886
|
switch (_a.label) {
|
|
1879
1887
|
case 0:
|
|
1880
1888
|
if (output.statusCode >= 300) {
|
|
1881
|
-
return [2
|
|
1889
|
+
return [2, deserializeAws_json1_0ListTagsForResourceCommandError(output, context)];
|
|
1882
1890
|
}
|
|
1883
|
-
return [4
|
|
1891
|
+
return [4, parseBody(output.body, context)];
|
|
1884
1892
|
case 1:
|
|
1885
1893
|
data = _a.sent();
|
|
1886
1894
|
contents = {};
|
|
1887
1895
|
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
1888
1896
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1889
|
-
return [2
|
|
1897
|
+
return [2, Promise.resolve(response)];
|
|
1890
1898
|
}
|
|
1891
1899
|
});
|
|
1892
1900
|
}); };
|
|
@@ -1898,31 +1906,31 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
1898
1906
|
case 0:
|
|
1899
1907
|
_a = [__assign({}, output)];
|
|
1900
1908
|
_e = {};
|
|
1901
|
-
return [4
|
|
1909
|
+
return [4, parseBody(output.body, context)];
|
|
1902
1910
|
case 1:
|
|
1903
1911
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1904
1912
|
errorCode = "UnknownError";
|
|
1905
1913
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
1914
|
_b = errorCode;
|
|
1907
1915
|
switch (_b) {
|
|
1908
|
-
case "InvalidRequestException": return [3
|
|
1909
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1910
|
-
case "ResourceNotFoundException": return [3
|
|
1911
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1916
|
+
case "InvalidRequestException": return [3, 2];
|
|
1917
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 2];
|
|
1918
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1919
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 4];
|
|
1912
1920
|
}
|
|
1913
|
-
return [3
|
|
1921
|
+
return [3, 6];
|
|
1914
1922
|
case 2:
|
|
1915
1923
|
_c = [{}];
|
|
1916
|
-
return [4
|
|
1924
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1917
1925
|
case 3:
|
|
1918
1926
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1919
|
-
return [3
|
|
1927
|
+
return [3, 7];
|
|
1920
1928
|
case 4:
|
|
1921
1929
|
_d = [{}];
|
|
1922
|
-
return [4
|
|
1930
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1923
1931
|
case 5:
|
|
1924
1932
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1925
|
-
return [3
|
|
1933
|
+
return [3, 7];
|
|
1926
1934
|
case 6:
|
|
1927
1935
|
parsedBody = parsedOutput.body;
|
|
1928
1936
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1932,7 +1940,7 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
1932
1940
|
message = response.message || response.Message || errorCode;
|
|
1933
1941
|
response.message = message;
|
|
1934
1942
|
delete response.Message;
|
|
1935
|
-
return [2
|
|
1943
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1936
1944
|
}
|
|
1937
1945
|
});
|
|
1938
1946
|
}); };
|
|
@@ -1942,15 +1950,15 @@ export var deserializeAws_json1_0PutResourcePolicyCommand = function (output, co
|
|
|
1942
1950
|
switch (_a.label) {
|
|
1943
1951
|
case 0:
|
|
1944
1952
|
if (output.statusCode >= 300) {
|
|
1945
|
-
return [2
|
|
1953
|
+
return [2, deserializeAws_json1_0PutResourcePolicyCommandError(output, context)];
|
|
1946
1954
|
}
|
|
1947
|
-
return [4
|
|
1955
|
+
return [4, parseBody(output.body, context)];
|
|
1948
1956
|
case 1:
|
|
1949
1957
|
data = _a.sent();
|
|
1950
1958
|
contents = {};
|
|
1951
1959
|
contents = deserializeAws_json1_0PutResourcePolicyResponse(data, context);
|
|
1952
1960
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1953
|
-
return [2
|
|
1961
|
+
return [2, Promise.resolve(response)];
|
|
1954
1962
|
}
|
|
1955
1963
|
});
|
|
1956
1964
|
}); };
|
|
@@ -1962,55 +1970,55 @@ var deserializeAws_json1_0PutResourcePolicyCommandError = function (output, cont
|
|
|
1962
1970
|
case 0:
|
|
1963
1971
|
_a = [__assign({}, output)];
|
|
1964
1972
|
_h = {};
|
|
1965
|
-
return [4
|
|
1973
|
+
return [4, parseBody(output.body, context)];
|
|
1966
1974
|
case 1:
|
|
1967
1975
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1968
1976
|
errorCode = "UnknownError";
|
|
1969
1977
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
1978
|
_b = errorCode;
|
|
1971
1979
|
switch (_b) {
|
|
1972
|
-
case "InternalServerError": return [3
|
|
1973
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
1974
|
-
case "InvalidRequestException": return [3
|
|
1975
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
1976
|
-
case "InvalidResourcePolicyException": return [3
|
|
1977
|
-
case "com.amazonaws.networkfirewall#InvalidResourcePolicyException": return [3
|
|
1978
|
-
case "ResourceNotFoundException": return [3
|
|
1979
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
1980
|
-
case "ThrottlingException": return [3
|
|
1981
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
1980
|
+
case "InternalServerError": return [3, 2];
|
|
1981
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
1982
|
+
case "InvalidRequestException": return [3, 4];
|
|
1983
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
1984
|
+
case "InvalidResourcePolicyException": return [3, 6];
|
|
1985
|
+
case "com.amazonaws.networkfirewall#InvalidResourcePolicyException": return [3, 6];
|
|
1986
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1987
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
1988
|
+
case "ThrottlingException": return [3, 10];
|
|
1989
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
1982
1990
|
}
|
|
1983
|
-
return [3
|
|
1991
|
+
return [3, 12];
|
|
1984
1992
|
case 2:
|
|
1985
1993
|
_c = [{}];
|
|
1986
|
-
return [4
|
|
1994
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
1987
1995
|
case 3:
|
|
1988
1996
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1989
|
-
return [3
|
|
1997
|
+
return [3, 13];
|
|
1990
1998
|
case 4:
|
|
1991
1999
|
_d = [{}];
|
|
1992
|
-
return [4
|
|
2000
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1993
2001
|
case 5:
|
|
1994
2002
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1995
|
-
return [3
|
|
2003
|
+
return [3, 13];
|
|
1996
2004
|
case 6:
|
|
1997
2005
|
_e = [{}];
|
|
1998
|
-
return [4
|
|
2006
|
+
return [4, deserializeAws_json1_0InvalidResourcePolicyExceptionResponse(parsedOutput, context)];
|
|
1999
2007
|
case 7:
|
|
2000
2008
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2001
|
-
return [3
|
|
2009
|
+
return [3, 13];
|
|
2002
2010
|
case 8:
|
|
2003
2011
|
_f = [{}];
|
|
2004
|
-
return [4
|
|
2012
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2005
2013
|
case 9:
|
|
2006
2014
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2007
|
-
return [3
|
|
2015
|
+
return [3, 13];
|
|
2008
2016
|
case 10:
|
|
2009
2017
|
_g = [{}];
|
|
2010
|
-
return [4
|
|
2018
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2011
2019
|
case 11:
|
|
2012
2020
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2013
|
-
return [3
|
|
2021
|
+
return [3, 13];
|
|
2014
2022
|
case 12:
|
|
2015
2023
|
parsedBody = parsedOutput.body;
|
|
2016
2024
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2020,7 +2028,7 @@ var deserializeAws_json1_0PutResourcePolicyCommandError = function (output, cont
|
|
|
2020
2028
|
message = response.message || response.Message || errorCode;
|
|
2021
2029
|
response.message = message;
|
|
2022
2030
|
delete response.Message;
|
|
2023
|
-
return [2
|
|
2031
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2024
2032
|
}
|
|
2025
2033
|
});
|
|
2026
2034
|
}); };
|
|
@@ -2030,15 +2038,15 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
|
|
|
2030
2038
|
switch (_a.label) {
|
|
2031
2039
|
case 0:
|
|
2032
2040
|
if (output.statusCode >= 300) {
|
|
2033
|
-
return [2
|
|
2041
|
+
return [2, deserializeAws_json1_0TagResourceCommandError(output, context)];
|
|
2034
2042
|
}
|
|
2035
|
-
return [4
|
|
2043
|
+
return [4, parseBody(output.body, context)];
|
|
2036
2044
|
case 1:
|
|
2037
2045
|
data = _a.sent();
|
|
2038
2046
|
contents = {};
|
|
2039
2047
|
contents = deserializeAws_json1_0TagResourceResponse(data, context);
|
|
2040
2048
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2041
|
-
return [2
|
|
2049
|
+
return [2, Promise.resolve(response)];
|
|
2042
2050
|
}
|
|
2043
2051
|
});
|
|
2044
2052
|
}); };
|
|
@@ -2050,31 +2058,31 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
2050
2058
|
case 0:
|
|
2051
2059
|
_a = [__assign({}, output)];
|
|
2052
2060
|
_e = {};
|
|
2053
|
-
return [4
|
|
2061
|
+
return [4, parseBody(output.body, context)];
|
|
2054
2062
|
case 1:
|
|
2055
2063
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2056
2064
|
errorCode = "UnknownError";
|
|
2057
2065
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
2066
|
_b = errorCode;
|
|
2059
2067
|
switch (_b) {
|
|
2060
|
-
case "InvalidRequestException": return [3
|
|
2061
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2062
|
-
case "ResourceNotFoundException": return [3
|
|
2063
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2068
|
+
case "InvalidRequestException": return [3, 2];
|
|
2069
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 2];
|
|
2070
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2071
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 4];
|
|
2064
2072
|
}
|
|
2065
|
-
return [3
|
|
2073
|
+
return [3, 6];
|
|
2066
2074
|
case 2:
|
|
2067
2075
|
_c = [{}];
|
|
2068
|
-
return [4
|
|
2076
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2069
2077
|
case 3:
|
|
2070
2078
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2071
|
-
return [3
|
|
2079
|
+
return [3, 7];
|
|
2072
2080
|
case 4:
|
|
2073
2081
|
_d = [{}];
|
|
2074
|
-
return [4
|
|
2082
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2075
2083
|
case 5:
|
|
2076
2084
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2077
|
-
return [3
|
|
2085
|
+
return [3, 7];
|
|
2078
2086
|
case 6:
|
|
2079
2087
|
parsedBody = parsedOutput.body;
|
|
2080
2088
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2084,7 +2092,7 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
2084
2092
|
message = response.message || response.Message || errorCode;
|
|
2085
2093
|
response.message = message;
|
|
2086
2094
|
delete response.Message;
|
|
2087
|
-
return [2
|
|
2095
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2088
2096
|
}
|
|
2089
2097
|
});
|
|
2090
2098
|
}); };
|
|
@@ -2094,15 +2102,15 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
|
|
|
2094
2102
|
switch (_a.label) {
|
|
2095
2103
|
case 0:
|
|
2096
2104
|
if (output.statusCode >= 300) {
|
|
2097
|
-
return [2
|
|
2105
|
+
return [2, deserializeAws_json1_0UntagResourceCommandError(output, context)];
|
|
2098
2106
|
}
|
|
2099
|
-
return [4
|
|
2107
|
+
return [4, parseBody(output.body, context)];
|
|
2100
2108
|
case 1:
|
|
2101
2109
|
data = _a.sent();
|
|
2102
2110
|
contents = {};
|
|
2103
2111
|
contents = deserializeAws_json1_0UntagResourceResponse(data, context);
|
|
2104
2112
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2105
|
-
return [2
|
|
2113
|
+
return [2, Promise.resolve(response)];
|
|
2106
2114
|
}
|
|
2107
2115
|
});
|
|
2108
2116
|
}); };
|
|
@@ -2114,31 +2122,31 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
2114
2122
|
case 0:
|
|
2115
2123
|
_a = [__assign({}, output)];
|
|
2116
2124
|
_e = {};
|
|
2117
|
-
return [4
|
|
2125
|
+
return [4, parseBody(output.body, context)];
|
|
2118
2126
|
case 1:
|
|
2119
2127
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2120
2128
|
errorCode = "UnknownError";
|
|
2121
2129
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
2130
|
_b = errorCode;
|
|
2123
2131
|
switch (_b) {
|
|
2124
|
-
case "InvalidRequestException": return [3
|
|
2125
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2126
|
-
case "ResourceNotFoundException": return [3
|
|
2127
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2132
|
+
case "InvalidRequestException": return [3, 2];
|
|
2133
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 2];
|
|
2134
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2135
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 4];
|
|
2128
2136
|
}
|
|
2129
|
-
return [3
|
|
2137
|
+
return [3, 6];
|
|
2130
2138
|
case 2:
|
|
2131
2139
|
_c = [{}];
|
|
2132
|
-
return [4
|
|
2140
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2133
2141
|
case 3:
|
|
2134
2142
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2135
|
-
return [3
|
|
2143
|
+
return [3, 7];
|
|
2136
2144
|
case 4:
|
|
2137
2145
|
_d = [{}];
|
|
2138
|
-
return [4
|
|
2146
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2139
2147
|
case 5:
|
|
2140
2148
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2141
|
-
return [3
|
|
2149
|
+
return [3, 7];
|
|
2142
2150
|
case 6:
|
|
2143
2151
|
parsedBody = parsedOutput.body;
|
|
2144
2152
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2148,7 +2156,7 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
2148
2156
|
message = response.message || response.Message || errorCode;
|
|
2149
2157
|
response.message = message;
|
|
2150
2158
|
delete response.Message;
|
|
2151
|
-
return [2
|
|
2159
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2152
2160
|
}
|
|
2153
2161
|
});
|
|
2154
2162
|
}); };
|
|
@@ -2158,15 +2166,15 @@ export var deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = functio
|
|
|
2158
2166
|
switch (_a.label) {
|
|
2159
2167
|
case 0:
|
|
2160
2168
|
if (output.statusCode >= 300) {
|
|
2161
|
-
return [2
|
|
2169
|
+
return [2, deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError(output, context)];
|
|
2162
2170
|
}
|
|
2163
|
-
return [4
|
|
2171
|
+
return [4, parseBody(output.body, context)];
|
|
2164
2172
|
case 1:
|
|
2165
2173
|
data = _a.sent();
|
|
2166
2174
|
contents = {};
|
|
2167
2175
|
contents = deserializeAws_json1_0UpdateFirewallDeleteProtectionResponse(data, context);
|
|
2168
2176
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2169
|
-
return [2
|
|
2177
|
+
return [2, Promise.resolve(response)];
|
|
2170
2178
|
}
|
|
2171
2179
|
});
|
|
2172
2180
|
}); };
|
|
@@ -2178,63 +2186,63 @@ var deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = function
|
|
|
2178
2186
|
case 0:
|
|
2179
2187
|
_a = [__assign({}, output)];
|
|
2180
2188
|
_j = {};
|
|
2181
|
-
return [4
|
|
2189
|
+
return [4, parseBody(output.body, context)];
|
|
2182
2190
|
case 1:
|
|
2183
2191
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2184
2192
|
errorCode = "UnknownError";
|
|
2185
2193
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2186
2194
|
_b = errorCode;
|
|
2187
2195
|
switch (_b) {
|
|
2188
|
-
case "InternalServerError": return [3
|
|
2189
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
2190
|
-
case "InvalidRequestException": return [3
|
|
2191
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2192
|
-
case "InvalidTokenException": return [3
|
|
2193
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
2194
|
-
case "ResourceNotFoundException": return [3
|
|
2195
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2196
|
-
case "ResourceOwnerCheckException": return [3
|
|
2197
|
-
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException": return [3
|
|
2198
|
-
case "ThrottlingException": return [3
|
|
2199
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
2196
|
+
case "InternalServerError": return [3, 2];
|
|
2197
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
2198
|
+
case "InvalidRequestException": return [3, 4];
|
|
2199
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
2200
|
+
case "InvalidTokenException": return [3, 6];
|
|
2201
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 6];
|
|
2202
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2203
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
2204
|
+
case "ResourceOwnerCheckException": return [3, 10];
|
|
2205
|
+
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException": return [3, 10];
|
|
2206
|
+
case "ThrottlingException": return [3, 12];
|
|
2207
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 12];
|
|
2200
2208
|
}
|
|
2201
|
-
return [3
|
|
2209
|
+
return [3, 14];
|
|
2202
2210
|
case 2:
|
|
2203
2211
|
_c = [{}];
|
|
2204
|
-
return [4
|
|
2212
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
2205
2213
|
case 3:
|
|
2206
2214
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2207
|
-
return [3
|
|
2215
|
+
return [3, 15];
|
|
2208
2216
|
case 4:
|
|
2209
2217
|
_d = [{}];
|
|
2210
|
-
return [4
|
|
2218
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2211
2219
|
case 5:
|
|
2212
2220
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2213
|
-
return [3
|
|
2221
|
+
return [3, 15];
|
|
2214
2222
|
case 6:
|
|
2215
2223
|
_e = [{}];
|
|
2216
|
-
return [4
|
|
2224
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
2217
2225
|
case 7:
|
|
2218
2226
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2219
|
-
return [3
|
|
2227
|
+
return [3, 15];
|
|
2220
2228
|
case 8:
|
|
2221
2229
|
_f = [{}];
|
|
2222
|
-
return [4
|
|
2230
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2223
2231
|
case 9:
|
|
2224
2232
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2225
|
-
return [3
|
|
2233
|
+
return [3, 15];
|
|
2226
2234
|
case 10:
|
|
2227
2235
|
_g = [{}];
|
|
2228
|
-
return [4
|
|
2236
|
+
return [4, deserializeAws_json1_0ResourceOwnerCheckExceptionResponse(parsedOutput, context)];
|
|
2229
2237
|
case 11:
|
|
2230
2238
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2231
|
-
return [3
|
|
2239
|
+
return [3, 15];
|
|
2232
2240
|
case 12:
|
|
2233
2241
|
_h = [{}];
|
|
2234
|
-
return [4
|
|
2242
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2235
2243
|
case 13:
|
|
2236
2244
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2237
|
-
return [3
|
|
2245
|
+
return [3, 15];
|
|
2238
2246
|
case 14:
|
|
2239
2247
|
parsedBody = parsedOutput.body;
|
|
2240
2248
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2244,7 +2252,7 @@ var deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = function
|
|
|
2244
2252
|
message = response.message || response.Message || errorCode;
|
|
2245
2253
|
response.message = message;
|
|
2246
2254
|
delete response.Message;
|
|
2247
|
-
return [2
|
|
2255
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2248
2256
|
}
|
|
2249
2257
|
});
|
|
2250
2258
|
}); };
|
|
@@ -2254,15 +2262,15 @@ export var deserializeAws_json1_0UpdateFirewallDescriptionCommand = function (ou
|
|
|
2254
2262
|
switch (_a.label) {
|
|
2255
2263
|
case 0:
|
|
2256
2264
|
if (output.statusCode >= 300) {
|
|
2257
|
-
return [2
|
|
2265
|
+
return [2, deserializeAws_json1_0UpdateFirewallDescriptionCommandError(output, context)];
|
|
2258
2266
|
}
|
|
2259
|
-
return [4
|
|
2267
|
+
return [4, parseBody(output.body, context)];
|
|
2260
2268
|
case 1:
|
|
2261
2269
|
data = _a.sent();
|
|
2262
2270
|
contents = {};
|
|
2263
2271
|
contents = deserializeAws_json1_0UpdateFirewallDescriptionResponse(data, context);
|
|
2264
2272
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2265
|
-
return [2
|
|
2273
|
+
return [2, Promise.resolve(response)];
|
|
2266
2274
|
}
|
|
2267
2275
|
});
|
|
2268
2276
|
}); };
|
|
@@ -2274,55 +2282,55 @@ var deserializeAws_json1_0UpdateFirewallDescriptionCommandError = function (outp
|
|
|
2274
2282
|
case 0:
|
|
2275
2283
|
_a = [__assign({}, output)];
|
|
2276
2284
|
_h = {};
|
|
2277
|
-
return [4
|
|
2285
|
+
return [4, parseBody(output.body, context)];
|
|
2278
2286
|
case 1:
|
|
2279
2287
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2280
2288
|
errorCode = "UnknownError";
|
|
2281
2289
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2290
|
_b = errorCode;
|
|
2283
2291
|
switch (_b) {
|
|
2284
|
-
case "InternalServerError": return [3
|
|
2285
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
2286
|
-
case "InvalidRequestException": return [3
|
|
2287
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2288
|
-
case "InvalidTokenException": return [3
|
|
2289
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
2290
|
-
case "ResourceNotFoundException": return [3
|
|
2291
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2292
|
-
case "ThrottlingException": return [3
|
|
2293
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
2292
|
+
case "InternalServerError": return [3, 2];
|
|
2293
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
2294
|
+
case "InvalidRequestException": return [3, 4];
|
|
2295
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
2296
|
+
case "InvalidTokenException": return [3, 6];
|
|
2297
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 6];
|
|
2298
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2299
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
2300
|
+
case "ThrottlingException": return [3, 10];
|
|
2301
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
2294
2302
|
}
|
|
2295
|
-
return [3
|
|
2303
|
+
return [3, 12];
|
|
2296
2304
|
case 2:
|
|
2297
2305
|
_c = [{}];
|
|
2298
|
-
return [4
|
|
2306
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
2299
2307
|
case 3:
|
|
2300
2308
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2301
|
-
return [3
|
|
2309
|
+
return [3, 13];
|
|
2302
2310
|
case 4:
|
|
2303
2311
|
_d = [{}];
|
|
2304
|
-
return [4
|
|
2312
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2305
2313
|
case 5:
|
|
2306
2314
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2307
|
-
return [3
|
|
2315
|
+
return [3, 13];
|
|
2308
2316
|
case 6:
|
|
2309
2317
|
_e = [{}];
|
|
2310
|
-
return [4
|
|
2318
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
2311
2319
|
case 7:
|
|
2312
2320
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2313
|
-
return [3
|
|
2321
|
+
return [3, 13];
|
|
2314
2322
|
case 8:
|
|
2315
2323
|
_f = [{}];
|
|
2316
|
-
return [4
|
|
2324
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2317
2325
|
case 9:
|
|
2318
2326
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2319
|
-
return [3
|
|
2327
|
+
return [3, 13];
|
|
2320
2328
|
case 10:
|
|
2321
2329
|
_g = [{}];
|
|
2322
|
-
return [4
|
|
2330
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2323
2331
|
case 11:
|
|
2324
2332
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2325
|
-
return [3
|
|
2333
|
+
return [3, 13];
|
|
2326
2334
|
case 12:
|
|
2327
2335
|
parsedBody = parsedOutput.body;
|
|
2328
2336
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2332,7 +2340,7 @@ var deserializeAws_json1_0UpdateFirewallDescriptionCommandError = function (outp
|
|
|
2332
2340
|
message = response.message || response.Message || errorCode;
|
|
2333
2341
|
response.message = message;
|
|
2334
2342
|
delete response.Message;
|
|
2335
|
-
return [2
|
|
2343
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2336
2344
|
}
|
|
2337
2345
|
});
|
|
2338
2346
|
}); };
|
|
@@ -2342,15 +2350,15 @@ export var deserializeAws_json1_0UpdateFirewallPolicyCommand = function (output,
|
|
|
2342
2350
|
switch (_a.label) {
|
|
2343
2351
|
case 0:
|
|
2344
2352
|
if (output.statusCode >= 300) {
|
|
2345
|
-
return [2
|
|
2353
|
+
return [2, deserializeAws_json1_0UpdateFirewallPolicyCommandError(output, context)];
|
|
2346
2354
|
}
|
|
2347
|
-
return [4
|
|
2355
|
+
return [4, parseBody(output.body, context)];
|
|
2348
2356
|
case 1:
|
|
2349
2357
|
data = _a.sent();
|
|
2350
2358
|
contents = {};
|
|
2351
2359
|
contents = deserializeAws_json1_0UpdateFirewallPolicyResponse(data, context);
|
|
2352
2360
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2353
|
-
return [2
|
|
2361
|
+
return [2, Promise.resolve(response)];
|
|
2354
2362
|
}
|
|
2355
2363
|
});
|
|
2356
2364
|
}); };
|
|
@@ -2362,55 +2370,55 @@ var deserializeAws_json1_0UpdateFirewallPolicyCommandError = function (output, c
|
|
|
2362
2370
|
case 0:
|
|
2363
2371
|
_a = [__assign({}, output)];
|
|
2364
2372
|
_h = {};
|
|
2365
|
-
return [4
|
|
2373
|
+
return [4, parseBody(output.body, context)];
|
|
2366
2374
|
case 1:
|
|
2367
2375
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2368
2376
|
errorCode = "UnknownError";
|
|
2369
2377
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
2378
|
_b = errorCode;
|
|
2371
2379
|
switch (_b) {
|
|
2372
|
-
case "InternalServerError": return [3
|
|
2373
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
2374
|
-
case "InvalidRequestException": return [3
|
|
2375
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2376
|
-
case "InvalidTokenException": return [3
|
|
2377
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
2378
|
-
case "ResourceNotFoundException": return [3
|
|
2379
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2380
|
-
case "ThrottlingException": return [3
|
|
2381
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
2380
|
+
case "InternalServerError": return [3, 2];
|
|
2381
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
2382
|
+
case "InvalidRequestException": return [3, 4];
|
|
2383
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
2384
|
+
case "InvalidTokenException": return [3, 6];
|
|
2385
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 6];
|
|
2386
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2387
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
2388
|
+
case "ThrottlingException": return [3, 10];
|
|
2389
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
2382
2390
|
}
|
|
2383
|
-
return [3
|
|
2391
|
+
return [3, 12];
|
|
2384
2392
|
case 2:
|
|
2385
2393
|
_c = [{}];
|
|
2386
|
-
return [4
|
|
2394
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
2387
2395
|
case 3:
|
|
2388
2396
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2389
|
-
return [3
|
|
2397
|
+
return [3, 13];
|
|
2390
2398
|
case 4:
|
|
2391
2399
|
_d = [{}];
|
|
2392
|
-
return [4
|
|
2400
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2393
2401
|
case 5:
|
|
2394
2402
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2395
|
-
return [3
|
|
2403
|
+
return [3, 13];
|
|
2396
2404
|
case 6:
|
|
2397
2405
|
_e = [{}];
|
|
2398
|
-
return [4
|
|
2406
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
2399
2407
|
case 7:
|
|
2400
2408
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2401
|
-
return [3
|
|
2409
|
+
return [3, 13];
|
|
2402
2410
|
case 8:
|
|
2403
2411
|
_f = [{}];
|
|
2404
|
-
return [4
|
|
2412
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2405
2413
|
case 9:
|
|
2406
2414
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2407
|
-
return [3
|
|
2415
|
+
return [3, 13];
|
|
2408
2416
|
case 10:
|
|
2409
2417
|
_g = [{}];
|
|
2410
|
-
return [4
|
|
2418
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2411
2419
|
case 11:
|
|
2412
2420
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2413
|
-
return [3
|
|
2421
|
+
return [3, 13];
|
|
2414
2422
|
case 12:
|
|
2415
2423
|
parsedBody = parsedOutput.body;
|
|
2416
2424
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2420,7 +2428,7 @@ var deserializeAws_json1_0UpdateFirewallPolicyCommandError = function (output, c
|
|
|
2420
2428
|
message = response.message || response.Message || errorCode;
|
|
2421
2429
|
response.message = message;
|
|
2422
2430
|
delete response.Message;
|
|
2423
|
-
return [2
|
|
2431
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2424
2432
|
}
|
|
2425
2433
|
});
|
|
2426
2434
|
}); };
|
|
@@ -2430,15 +2438,15 @@ export var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = f
|
|
|
2430
2438
|
switch (_a.label) {
|
|
2431
2439
|
case 0:
|
|
2432
2440
|
if (output.statusCode >= 300) {
|
|
2433
|
-
return [2
|
|
2441
|
+
return [2, deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError(output, context)];
|
|
2434
2442
|
}
|
|
2435
|
-
return [4
|
|
2443
|
+
return [4, parseBody(output.body, context)];
|
|
2436
2444
|
case 1:
|
|
2437
2445
|
data = _a.sent();
|
|
2438
2446
|
contents = {};
|
|
2439
2447
|
contents = deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionResponse(data, context);
|
|
2440
2448
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2441
|
-
return [2
|
|
2449
|
+
return [2, Promise.resolve(response)];
|
|
2442
2450
|
}
|
|
2443
2451
|
});
|
|
2444
2452
|
}); };
|
|
@@ -2450,63 +2458,63 @@ var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = fun
|
|
|
2450
2458
|
case 0:
|
|
2451
2459
|
_a = [__assign({}, output)];
|
|
2452
2460
|
_j = {};
|
|
2453
|
-
return [4
|
|
2461
|
+
return [4, parseBody(output.body, context)];
|
|
2454
2462
|
case 1:
|
|
2455
2463
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2456
2464
|
errorCode = "UnknownError";
|
|
2457
2465
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
2466
|
_b = errorCode;
|
|
2459
2467
|
switch (_b) {
|
|
2460
|
-
case "InternalServerError": return [3
|
|
2461
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
2462
|
-
case "InvalidRequestException": return [3
|
|
2463
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2464
|
-
case "InvalidTokenException": return [3
|
|
2465
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
2466
|
-
case "ResourceNotFoundException": return [3
|
|
2467
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2468
|
-
case "ResourceOwnerCheckException": return [3
|
|
2469
|
-
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException": return [3
|
|
2470
|
-
case "ThrottlingException": return [3
|
|
2471
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
2468
|
+
case "InternalServerError": return [3, 2];
|
|
2469
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
2470
|
+
case "InvalidRequestException": return [3, 4];
|
|
2471
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
2472
|
+
case "InvalidTokenException": return [3, 6];
|
|
2473
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 6];
|
|
2474
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2475
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
2476
|
+
case "ResourceOwnerCheckException": return [3, 10];
|
|
2477
|
+
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException": return [3, 10];
|
|
2478
|
+
case "ThrottlingException": return [3, 12];
|
|
2479
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 12];
|
|
2472
2480
|
}
|
|
2473
|
-
return [3
|
|
2481
|
+
return [3, 14];
|
|
2474
2482
|
case 2:
|
|
2475
2483
|
_c = [{}];
|
|
2476
|
-
return [4
|
|
2484
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
2477
2485
|
case 3:
|
|
2478
2486
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2479
|
-
return [3
|
|
2487
|
+
return [3, 15];
|
|
2480
2488
|
case 4:
|
|
2481
2489
|
_d = [{}];
|
|
2482
|
-
return [4
|
|
2490
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2483
2491
|
case 5:
|
|
2484
2492
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2485
|
-
return [3
|
|
2493
|
+
return [3, 15];
|
|
2486
2494
|
case 6:
|
|
2487
2495
|
_e = [{}];
|
|
2488
|
-
return [4
|
|
2496
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
2489
2497
|
case 7:
|
|
2490
2498
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2491
|
-
return [3
|
|
2499
|
+
return [3, 15];
|
|
2492
2500
|
case 8:
|
|
2493
2501
|
_f = [{}];
|
|
2494
|
-
return [4
|
|
2502
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2495
2503
|
case 9:
|
|
2496
2504
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2497
|
-
return [3
|
|
2505
|
+
return [3, 15];
|
|
2498
2506
|
case 10:
|
|
2499
2507
|
_g = [{}];
|
|
2500
|
-
return [4
|
|
2508
|
+
return [4, deserializeAws_json1_0ResourceOwnerCheckExceptionResponse(parsedOutput, context)];
|
|
2501
2509
|
case 11:
|
|
2502
2510
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2503
|
-
return [3
|
|
2511
|
+
return [3, 15];
|
|
2504
2512
|
case 12:
|
|
2505
2513
|
_h = [{}];
|
|
2506
|
-
return [4
|
|
2514
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2507
2515
|
case 13:
|
|
2508
2516
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2509
|
-
return [3
|
|
2517
|
+
return [3, 15];
|
|
2510
2518
|
case 14:
|
|
2511
2519
|
parsedBody = parsedOutput.body;
|
|
2512
2520
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2516,7 +2524,7 @@ var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = fun
|
|
|
2516
2524
|
message = response.message || response.Message || errorCode;
|
|
2517
2525
|
response.message = message;
|
|
2518
2526
|
delete response.Message;
|
|
2519
|
-
return [2
|
|
2527
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2520
2528
|
}
|
|
2521
2529
|
});
|
|
2522
2530
|
}); };
|
|
@@ -2526,15 +2534,15 @@ export var deserializeAws_json1_0UpdateLoggingConfigurationCommand = function (o
|
|
|
2526
2534
|
switch (_a.label) {
|
|
2527
2535
|
case 0:
|
|
2528
2536
|
if (output.statusCode >= 300) {
|
|
2529
|
-
return [2
|
|
2537
|
+
return [2, deserializeAws_json1_0UpdateLoggingConfigurationCommandError(output, context)];
|
|
2530
2538
|
}
|
|
2531
|
-
return [4
|
|
2539
|
+
return [4, parseBody(output.body, context)];
|
|
2532
2540
|
case 1:
|
|
2533
2541
|
data = _a.sent();
|
|
2534
2542
|
contents = {};
|
|
2535
2543
|
contents = deserializeAws_json1_0UpdateLoggingConfigurationResponse(data, context);
|
|
2536
2544
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2537
|
-
return [2
|
|
2545
|
+
return [2, Promise.resolve(response)];
|
|
2538
2546
|
}
|
|
2539
2547
|
});
|
|
2540
2548
|
}); };
|
|
@@ -2546,63 +2554,63 @@ var deserializeAws_json1_0UpdateLoggingConfigurationCommandError = function (out
|
|
|
2546
2554
|
case 0:
|
|
2547
2555
|
_a = [__assign({}, output)];
|
|
2548
2556
|
_j = {};
|
|
2549
|
-
return [4
|
|
2557
|
+
return [4, parseBody(output.body, context)];
|
|
2550
2558
|
case 1:
|
|
2551
2559
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2552
2560
|
errorCode = "UnknownError";
|
|
2553
2561
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2554
2562
|
_b = errorCode;
|
|
2555
2563
|
switch (_b) {
|
|
2556
|
-
case "InternalServerError": return [3
|
|
2557
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
2558
|
-
case "InvalidRequestException": return [3
|
|
2559
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2560
|
-
case "InvalidTokenException": return [3
|
|
2561
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
2562
|
-
case "LogDestinationPermissionException": return [3
|
|
2563
|
-
case "com.amazonaws.networkfirewall#LogDestinationPermissionException": return [3
|
|
2564
|
-
case "ResourceNotFoundException": return [3
|
|
2565
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2566
|
-
case "ThrottlingException": return [3
|
|
2567
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
2564
|
+
case "InternalServerError": return [3, 2];
|
|
2565
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
2566
|
+
case "InvalidRequestException": return [3, 4];
|
|
2567
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
2568
|
+
case "InvalidTokenException": return [3, 6];
|
|
2569
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 6];
|
|
2570
|
+
case "LogDestinationPermissionException": return [3, 8];
|
|
2571
|
+
case "com.amazonaws.networkfirewall#LogDestinationPermissionException": return [3, 8];
|
|
2572
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2573
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 10];
|
|
2574
|
+
case "ThrottlingException": return [3, 12];
|
|
2575
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 12];
|
|
2568
2576
|
}
|
|
2569
|
-
return [3
|
|
2577
|
+
return [3, 14];
|
|
2570
2578
|
case 2:
|
|
2571
2579
|
_c = [{}];
|
|
2572
|
-
return [4
|
|
2580
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
2573
2581
|
case 3:
|
|
2574
2582
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2575
|
-
return [3
|
|
2583
|
+
return [3, 15];
|
|
2576
2584
|
case 4:
|
|
2577
2585
|
_d = [{}];
|
|
2578
|
-
return [4
|
|
2586
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2579
2587
|
case 5:
|
|
2580
2588
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2581
|
-
return [3
|
|
2589
|
+
return [3, 15];
|
|
2582
2590
|
case 6:
|
|
2583
2591
|
_e = [{}];
|
|
2584
|
-
return [4
|
|
2592
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
2585
2593
|
case 7:
|
|
2586
2594
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2587
|
-
return [3
|
|
2595
|
+
return [3, 15];
|
|
2588
2596
|
case 8:
|
|
2589
2597
|
_f = [{}];
|
|
2590
|
-
return [4
|
|
2598
|
+
return [4, deserializeAws_json1_0LogDestinationPermissionExceptionResponse(parsedOutput, context)];
|
|
2591
2599
|
case 9:
|
|
2592
2600
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2593
|
-
return [3
|
|
2601
|
+
return [3, 15];
|
|
2594
2602
|
case 10:
|
|
2595
2603
|
_g = [{}];
|
|
2596
|
-
return [4
|
|
2604
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2597
2605
|
case 11:
|
|
2598
2606
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2599
|
-
return [3
|
|
2607
|
+
return [3, 15];
|
|
2600
2608
|
case 12:
|
|
2601
2609
|
_h = [{}];
|
|
2602
|
-
return [4
|
|
2610
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2603
2611
|
case 13:
|
|
2604
2612
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2605
|
-
return [3
|
|
2613
|
+
return [3, 15];
|
|
2606
2614
|
case 14:
|
|
2607
2615
|
parsedBody = parsedOutput.body;
|
|
2608
2616
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2612,7 +2620,7 @@ var deserializeAws_json1_0UpdateLoggingConfigurationCommandError = function (out
|
|
|
2612
2620
|
message = response.message || response.Message || errorCode;
|
|
2613
2621
|
response.message = message;
|
|
2614
2622
|
delete response.Message;
|
|
2615
|
-
return [2
|
|
2623
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2616
2624
|
}
|
|
2617
2625
|
});
|
|
2618
2626
|
}); };
|
|
@@ -2622,15 +2630,15 @@ export var deserializeAws_json1_0UpdateRuleGroupCommand = function (output, cont
|
|
|
2622
2630
|
switch (_a.label) {
|
|
2623
2631
|
case 0:
|
|
2624
2632
|
if (output.statusCode >= 300) {
|
|
2625
|
-
return [2
|
|
2633
|
+
return [2, deserializeAws_json1_0UpdateRuleGroupCommandError(output, context)];
|
|
2626
2634
|
}
|
|
2627
|
-
return [4
|
|
2635
|
+
return [4, parseBody(output.body, context)];
|
|
2628
2636
|
case 1:
|
|
2629
2637
|
data = _a.sent();
|
|
2630
2638
|
contents = {};
|
|
2631
2639
|
contents = deserializeAws_json1_0UpdateRuleGroupResponse(data, context);
|
|
2632
2640
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2633
|
-
return [2
|
|
2641
|
+
return [2, Promise.resolve(response)];
|
|
2634
2642
|
}
|
|
2635
2643
|
});
|
|
2636
2644
|
}); };
|
|
@@ -2642,55 +2650,55 @@ var deserializeAws_json1_0UpdateRuleGroupCommandError = function (output, contex
|
|
|
2642
2650
|
case 0:
|
|
2643
2651
|
_a = [__assign({}, output)];
|
|
2644
2652
|
_h = {};
|
|
2645
|
-
return [4
|
|
2653
|
+
return [4, parseBody(output.body, context)];
|
|
2646
2654
|
case 1:
|
|
2647
2655
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2648
2656
|
errorCode = "UnknownError";
|
|
2649
2657
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2650
2658
|
_b = errorCode;
|
|
2651
2659
|
switch (_b) {
|
|
2652
|
-
case "InternalServerError": return [3
|
|
2653
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
2654
|
-
case "InvalidRequestException": return [3
|
|
2655
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2656
|
-
case "InvalidTokenException": return [3
|
|
2657
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
2658
|
-
case "ResourceNotFoundException": return [3
|
|
2659
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2660
|
-
case "ThrottlingException": return [3
|
|
2661
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
2660
|
+
case "InternalServerError": return [3, 2];
|
|
2661
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
2662
|
+
case "InvalidRequestException": return [3, 4];
|
|
2663
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
2664
|
+
case "InvalidTokenException": return [3, 6];
|
|
2665
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 6];
|
|
2666
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2667
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
2668
|
+
case "ThrottlingException": return [3, 10];
|
|
2669
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 10];
|
|
2662
2670
|
}
|
|
2663
|
-
return [3
|
|
2671
|
+
return [3, 12];
|
|
2664
2672
|
case 2:
|
|
2665
2673
|
_c = [{}];
|
|
2666
|
-
return [4
|
|
2674
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
2667
2675
|
case 3:
|
|
2668
2676
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2669
|
-
return [3
|
|
2677
|
+
return [3, 13];
|
|
2670
2678
|
case 4:
|
|
2671
2679
|
_d = [{}];
|
|
2672
|
-
return [4
|
|
2680
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2673
2681
|
case 5:
|
|
2674
2682
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2675
|
-
return [3
|
|
2683
|
+
return [3, 13];
|
|
2676
2684
|
case 6:
|
|
2677
2685
|
_e = [{}];
|
|
2678
|
-
return [4
|
|
2686
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
2679
2687
|
case 7:
|
|
2680
2688
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2681
|
-
return [3
|
|
2689
|
+
return [3, 13];
|
|
2682
2690
|
case 8:
|
|
2683
2691
|
_f = [{}];
|
|
2684
|
-
return [4
|
|
2692
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2685
2693
|
case 9:
|
|
2686
2694
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2687
|
-
return [3
|
|
2695
|
+
return [3, 13];
|
|
2688
2696
|
case 10:
|
|
2689
2697
|
_g = [{}];
|
|
2690
|
-
return [4
|
|
2698
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2691
2699
|
case 11:
|
|
2692
2700
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2693
|
-
return [3
|
|
2701
|
+
return [3, 13];
|
|
2694
2702
|
case 12:
|
|
2695
2703
|
parsedBody = parsedOutput.body;
|
|
2696
2704
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2700,7 +2708,7 @@ var deserializeAws_json1_0UpdateRuleGroupCommandError = function (output, contex
|
|
|
2700
2708
|
message = response.message || response.Message || errorCode;
|
|
2701
2709
|
response.message = message;
|
|
2702
2710
|
delete response.Message;
|
|
2703
|
-
return [2
|
|
2711
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2704
2712
|
}
|
|
2705
2713
|
});
|
|
2706
2714
|
}); };
|
|
@@ -2710,15 +2718,15 @@ export var deserializeAws_json1_0UpdateSubnetChangeProtectionCommand = function
|
|
|
2710
2718
|
switch (_a.label) {
|
|
2711
2719
|
case 0:
|
|
2712
2720
|
if (output.statusCode >= 300) {
|
|
2713
|
-
return [2
|
|
2721
|
+
return [2, deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError(output, context)];
|
|
2714
2722
|
}
|
|
2715
|
-
return [4
|
|
2723
|
+
return [4, parseBody(output.body, context)];
|
|
2716
2724
|
case 1:
|
|
2717
2725
|
data = _a.sent();
|
|
2718
2726
|
contents = {};
|
|
2719
2727
|
contents = deserializeAws_json1_0UpdateSubnetChangeProtectionResponse(data, context);
|
|
2720
2728
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2721
|
-
return [2
|
|
2729
|
+
return [2, Promise.resolve(response)];
|
|
2722
2730
|
}
|
|
2723
2731
|
});
|
|
2724
2732
|
}); };
|
|
@@ -2730,63 +2738,63 @@ var deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = function (o
|
|
|
2730
2738
|
case 0:
|
|
2731
2739
|
_a = [__assign({}, output)];
|
|
2732
2740
|
_j = {};
|
|
2733
|
-
return [4
|
|
2741
|
+
return [4, parseBody(output.body, context)];
|
|
2734
2742
|
case 1:
|
|
2735
2743
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2736
2744
|
errorCode = "UnknownError";
|
|
2737
2745
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2738
2746
|
_b = errorCode;
|
|
2739
2747
|
switch (_b) {
|
|
2740
|
-
case "InternalServerError": return [3
|
|
2741
|
-
case "com.amazonaws.networkfirewall#InternalServerError": return [3
|
|
2742
|
-
case "InvalidRequestException": return [3
|
|
2743
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3
|
|
2744
|
-
case "InvalidTokenException": return [3
|
|
2745
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3
|
|
2746
|
-
case "ResourceNotFoundException": return [3
|
|
2747
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3
|
|
2748
|
-
case "ResourceOwnerCheckException": return [3
|
|
2749
|
-
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException": return [3
|
|
2750
|
-
case "ThrottlingException": return [3
|
|
2751
|
-
case "com.amazonaws.networkfirewall#ThrottlingException": return [3
|
|
2748
|
+
case "InternalServerError": return [3, 2];
|
|
2749
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
2750
|
+
case "InvalidRequestException": return [3, 4];
|
|
2751
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
2752
|
+
case "InvalidTokenException": return [3, 6];
|
|
2753
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 6];
|
|
2754
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2755
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
2756
|
+
case "ResourceOwnerCheckException": return [3, 10];
|
|
2757
|
+
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException": return [3, 10];
|
|
2758
|
+
case "ThrottlingException": return [3, 12];
|
|
2759
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 12];
|
|
2752
2760
|
}
|
|
2753
|
-
return [3
|
|
2761
|
+
return [3, 14];
|
|
2754
2762
|
case 2:
|
|
2755
2763
|
_c = [{}];
|
|
2756
|
-
return [4
|
|
2764
|
+
return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
2757
2765
|
case 3:
|
|
2758
2766
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2759
|
-
return [3
|
|
2767
|
+
return [3, 15];
|
|
2760
2768
|
case 4:
|
|
2761
2769
|
_d = [{}];
|
|
2762
|
-
return [4
|
|
2770
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2763
2771
|
case 5:
|
|
2764
2772
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2765
|
-
return [3
|
|
2773
|
+
return [3, 15];
|
|
2766
2774
|
case 6:
|
|
2767
2775
|
_e = [{}];
|
|
2768
|
-
return [4
|
|
2776
|
+
return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
2769
2777
|
case 7:
|
|
2770
2778
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2771
|
-
return [3
|
|
2779
|
+
return [3, 15];
|
|
2772
2780
|
case 8:
|
|
2773
2781
|
_f = [{}];
|
|
2774
|
-
return [4
|
|
2782
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2775
2783
|
case 9:
|
|
2776
2784
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2777
|
-
return [3
|
|
2785
|
+
return [3, 15];
|
|
2778
2786
|
case 10:
|
|
2779
2787
|
_g = [{}];
|
|
2780
|
-
return [4
|
|
2788
|
+
return [4, deserializeAws_json1_0ResourceOwnerCheckExceptionResponse(parsedOutput, context)];
|
|
2781
2789
|
case 11:
|
|
2782
2790
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2783
|
-
return [3
|
|
2791
|
+
return [3, 15];
|
|
2784
2792
|
case 12:
|
|
2785
2793
|
_h = [{}];
|
|
2786
|
-
return [4
|
|
2794
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2787
2795
|
case 13:
|
|
2788
2796
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2789
|
-
return [3
|
|
2797
|
+
return [3, 15];
|
|
2790
2798
|
case 14:
|
|
2791
2799
|
parsedBody = parsedOutput.body;
|
|
2792
2800
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2796,7 +2804,7 @@ var deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = function (o
|
|
|
2796
2804
|
message = response.message || response.Message || errorCode;
|
|
2797
2805
|
response.message = message;
|
|
2798
2806
|
delete response.Message;
|
|
2799
|
-
return [2
|
|
2807
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2800
2808
|
}
|
|
2801
2809
|
});
|
|
2802
2810
|
}); };
|
|
@@ -2806,7 +2814,7 @@ var deserializeAws_json1_0InsufficientCapacityExceptionResponse = function (pars
|
|
|
2806
2814
|
body = parsedOutput.body;
|
|
2807
2815
|
deserialized = deserializeAws_json1_0InsufficientCapacityException(body, context);
|
|
2808
2816
|
contents = __assign({ name: "InsufficientCapacityException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2809
|
-
return [2
|
|
2817
|
+
return [2, contents];
|
|
2810
2818
|
});
|
|
2811
2819
|
}); };
|
|
2812
2820
|
var deserializeAws_json1_0InternalServerErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2815,7 +2823,7 @@ var deserializeAws_json1_0InternalServerErrorResponse = function (parsedOutput,
|
|
|
2815
2823
|
body = parsedOutput.body;
|
|
2816
2824
|
deserialized = deserializeAws_json1_0InternalServerError(body, context);
|
|
2817
2825
|
contents = __assign({ name: "InternalServerError", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2818
|
-
return [2
|
|
2826
|
+
return [2, contents];
|
|
2819
2827
|
});
|
|
2820
2828
|
}); };
|
|
2821
2829
|
var deserializeAws_json1_0InvalidOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2824,7 +2832,7 @@ var deserializeAws_json1_0InvalidOperationExceptionResponse = function (parsedOu
|
|
|
2824
2832
|
body = parsedOutput.body;
|
|
2825
2833
|
deserialized = deserializeAws_json1_0InvalidOperationException(body, context);
|
|
2826
2834
|
contents = __assign({ name: "InvalidOperationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2827
|
-
return [2
|
|
2835
|
+
return [2, contents];
|
|
2828
2836
|
});
|
|
2829
2837
|
}); };
|
|
2830
2838
|
var deserializeAws_json1_0InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2833,7 +2841,7 @@ var deserializeAws_json1_0InvalidRequestExceptionResponse = function (parsedOutp
|
|
|
2833
2841
|
body = parsedOutput.body;
|
|
2834
2842
|
deserialized = deserializeAws_json1_0InvalidRequestException(body, context);
|
|
2835
2843
|
contents = __assign({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2836
|
-
return [2
|
|
2844
|
+
return [2, contents];
|
|
2837
2845
|
});
|
|
2838
2846
|
}); };
|
|
2839
2847
|
var deserializeAws_json1_0InvalidResourcePolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2842,7 +2850,7 @@ var deserializeAws_json1_0InvalidResourcePolicyExceptionResponse = function (par
|
|
|
2842
2850
|
body = parsedOutput.body;
|
|
2843
2851
|
deserialized = deserializeAws_json1_0InvalidResourcePolicyException(body, context);
|
|
2844
2852
|
contents = __assign({ name: "InvalidResourcePolicyException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2845
|
-
return [2
|
|
2853
|
+
return [2, contents];
|
|
2846
2854
|
});
|
|
2847
2855
|
}); };
|
|
2848
2856
|
var deserializeAws_json1_0InvalidTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2851,7 +2859,7 @@ var deserializeAws_json1_0InvalidTokenExceptionResponse = function (parsedOutput
|
|
|
2851
2859
|
body = parsedOutput.body;
|
|
2852
2860
|
deserialized = deserializeAws_json1_0InvalidTokenException(body, context);
|
|
2853
2861
|
contents = __assign({ name: "InvalidTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2854
|
-
return [2
|
|
2862
|
+
return [2, contents];
|
|
2855
2863
|
});
|
|
2856
2864
|
}); };
|
|
2857
2865
|
var deserializeAws_json1_0LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2860,7 +2868,7 @@ var deserializeAws_json1_0LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
2860
2868
|
body = parsedOutput.body;
|
|
2861
2869
|
deserialized = deserializeAws_json1_0LimitExceededException(body, context);
|
|
2862
2870
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2863
|
-
return [2
|
|
2871
|
+
return [2, contents];
|
|
2864
2872
|
});
|
|
2865
2873
|
}); };
|
|
2866
2874
|
var deserializeAws_json1_0LogDestinationPermissionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2869,7 +2877,7 @@ var deserializeAws_json1_0LogDestinationPermissionExceptionResponse = function (
|
|
|
2869
2877
|
body = parsedOutput.body;
|
|
2870
2878
|
deserialized = deserializeAws_json1_0LogDestinationPermissionException(body, context);
|
|
2871
2879
|
contents = __assign({ name: "LogDestinationPermissionException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2872
|
-
return [2
|
|
2880
|
+
return [2, contents];
|
|
2873
2881
|
});
|
|
2874
2882
|
}); };
|
|
2875
2883
|
var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2878,7 +2886,7 @@ var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2878
2886
|
body = parsedOutput.body;
|
|
2879
2887
|
deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
2880
2888
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2881
|
-
return [2
|
|
2889
|
+
return [2, contents];
|
|
2882
2890
|
});
|
|
2883
2891
|
}); };
|
|
2884
2892
|
var deserializeAws_json1_0ResourceOwnerCheckExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2887,7 +2895,7 @@ var deserializeAws_json1_0ResourceOwnerCheckExceptionResponse = function (parsed
|
|
|
2887
2895
|
body = parsedOutput.body;
|
|
2888
2896
|
deserialized = deserializeAws_json1_0ResourceOwnerCheckException(body, context);
|
|
2889
2897
|
contents = __assign({ name: "ResourceOwnerCheckException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2890
|
-
return [2
|
|
2898
|
+
return [2, contents];
|
|
2891
2899
|
});
|
|
2892
2900
|
}); };
|
|
2893
2901
|
var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2896,7 +2904,7 @@ var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput,
|
|
|
2896
2904
|
body = parsedOutput.body;
|
|
2897
2905
|
deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
2898
2906
|
contents = __assign({ name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2899
|
-
return [2
|
|
2907
|
+
return [2, contents];
|
|
2900
2908
|
});
|
|
2901
2909
|
}); };
|
|
2902
2910
|
var deserializeAws_json1_0UnsupportedOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2905,7 +2913,7 @@ var deserializeAws_json1_0UnsupportedOperationExceptionResponse = function (pars
|
|
|
2905
2913
|
body = parsedOutput.body;
|
|
2906
2914
|
deserialized = deserializeAws_json1_0UnsupportedOperationException(body, context);
|
|
2907
2915
|
contents = __assign({ name: "UnsupportedOperationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2908
|
-
return [2
|
|
2916
|
+
return [2, contents];
|
|
2909
2917
|
});
|
|
2910
2918
|
}); };
|
|
2911
2919
|
var serializeAws_json1_0ActionDefinition = function (input, context) {
|
|
@@ -3036,7 +3044,13 @@ var serializeAws_json1_0DisassociateSubnetsRequest = function (input, context) {
|
|
|
3036
3044
|
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_0AzSubnets(input.SubnetIds, context) })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
3037
3045
|
};
|
|
3038
3046
|
var serializeAws_json1_0FirewallPolicy = function (input, context) {
|
|
3039
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.
|
|
3047
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.StatefulDefaultActions !== undefined &&
|
|
3048
|
+
input.StatefulDefaultActions !== null && {
|
|
3049
|
+
StatefulDefaultActions: serializeAws_json1_0StatefulActions(input.StatefulDefaultActions, context),
|
|
3050
|
+
})), (input.StatefulEngineOptions !== undefined &&
|
|
3051
|
+
input.StatefulEngineOptions !== null && {
|
|
3052
|
+
StatefulEngineOptions: serializeAws_json1_0StatefulEngineOptions(input.StatefulEngineOptions, context),
|
|
3053
|
+
})), (input.StatefulRuleGroupReferences !== undefined &&
|
|
3040
3054
|
input.StatefulRuleGroupReferences !== null && {
|
|
3041
3055
|
StatefulRuleGroupReferences: serializeAws_json1_0StatefulRuleGroupReferences(input.StatefulRuleGroupReferences, context),
|
|
3042
3056
|
})), (input.StatelessCustomActions !== undefined &&
|
|
@@ -3194,11 +3208,14 @@ var serializeAws_json1_0RuleDefinition = function (input, context) {
|
|
|
3194
3208
|
}));
|
|
3195
3209
|
};
|
|
3196
3210
|
var serializeAws_json1_0RuleGroup = function (input, context) {
|
|
3197
|
-
return __assign(__assign({}, (input.RuleVariables !== undefined &&
|
|
3211
|
+
return __assign(__assign(__assign({}, (input.RuleVariables !== undefined &&
|
|
3198
3212
|
input.RuleVariables !== null && {
|
|
3199
3213
|
RuleVariables: serializeAws_json1_0RuleVariables(input.RuleVariables, context),
|
|
3200
3214
|
})), (input.RulesSource !== undefined &&
|
|
3201
|
-
input.RulesSource !== null && { RulesSource: serializeAws_json1_0RulesSource(input.RulesSource, context) }))
|
|
3215
|
+
input.RulesSource !== null && { RulesSource: serializeAws_json1_0RulesSource(input.RulesSource, context) })), (input.StatefulRuleOptions !== undefined &&
|
|
3216
|
+
input.StatefulRuleOptions !== null && {
|
|
3217
|
+
StatefulRuleOptions: serializeAws_json1_0StatefulRuleOptions(input.StatefulRuleOptions, context),
|
|
3218
|
+
}));
|
|
3202
3219
|
};
|
|
3203
3220
|
var serializeAws_json1_0RuleOption = function (input, context) {
|
|
3204
3221
|
return __assign(__assign({}, (input.Keyword !== undefined && input.Keyword !== null && { Keyword: input.Keyword })), (input.Settings !== undefined &&
|
|
@@ -3257,13 +3274,26 @@ var serializeAws_json1_0Settings = function (input, context) {
|
|
|
3257
3274
|
return entry;
|
|
3258
3275
|
});
|
|
3259
3276
|
};
|
|
3277
|
+
var serializeAws_json1_0StatefulActions = function (input, context) {
|
|
3278
|
+
return input
|
|
3279
|
+
.filter(function (e) { return e != null; })
|
|
3280
|
+
.map(function (entry) {
|
|
3281
|
+
if (entry === null) {
|
|
3282
|
+
return null;
|
|
3283
|
+
}
|
|
3284
|
+
return entry;
|
|
3285
|
+
});
|
|
3286
|
+
};
|
|
3287
|
+
var serializeAws_json1_0StatefulEngineOptions = function (input, context) {
|
|
3288
|
+
return __assign({}, (input.RuleOrder !== undefined && input.RuleOrder !== null && { RuleOrder: input.RuleOrder }));
|
|
3289
|
+
};
|
|
3260
3290
|
var serializeAws_json1_0StatefulRule = function (input, context) {
|
|
3261
3291
|
return __assign(__assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Header !== undefined &&
|
|
3262
3292
|
input.Header !== null && { Header: serializeAws_json1_0Header(input.Header, context) })), (input.RuleOptions !== undefined &&
|
|
3263
3293
|
input.RuleOptions !== null && { RuleOptions: serializeAws_json1_0RuleOptions(input.RuleOptions, context) }));
|
|
3264
3294
|
};
|
|
3265
3295
|
var serializeAws_json1_0StatefulRuleGroupReference = function (input, context) {
|
|
3266
|
-
return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
3296
|
+
return __assign(__assign({}, (input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
3267
3297
|
};
|
|
3268
3298
|
var serializeAws_json1_0StatefulRuleGroupReferences = function (input, context) {
|
|
3269
3299
|
return input
|
|
@@ -3275,6 +3305,9 @@ var serializeAws_json1_0StatefulRuleGroupReferences = function (input, context)
|
|
|
3275
3305
|
return serializeAws_json1_0StatefulRuleGroupReference(entry, context);
|
|
3276
3306
|
});
|
|
3277
3307
|
};
|
|
3308
|
+
var serializeAws_json1_0StatefulRuleOptions = function (input, context) {
|
|
3309
|
+
return __assign({}, (input.RuleOrder !== undefined && input.RuleOrder !== null && { RuleOrder: input.RuleOrder }));
|
|
3310
|
+
};
|
|
3278
3311
|
var serializeAws_json1_0StatefulRules = function (input, context) {
|
|
3279
3312
|
return input
|
|
3280
3313
|
.filter(function (e) { return e != null; })
|
|
@@ -3682,6 +3715,12 @@ var deserializeAws_json1_0FirewallPolicies = function (output, context) {
|
|
|
3682
3715
|
};
|
|
3683
3716
|
var deserializeAws_json1_0FirewallPolicy = function (output, context) {
|
|
3684
3717
|
return {
|
|
3718
|
+
StatefulDefaultActions: output.StatefulDefaultActions !== undefined && output.StatefulDefaultActions !== null
|
|
3719
|
+
? deserializeAws_json1_0StatefulActions(output.StatefulDefaultActions, context)
|
|
3720
|
+
: undefined,
|
|
3721
|
+
StatefulEngineOptions: output.StatefulEngineOptions !== undefined && output.StatefulEngineOptions !== null
|
|
3722
|
+
? deserializeAws_json1_0StatefulEngineOptions(output.StatefulEngineOptions, context)
|
|
3723
|
+
: undefined,
|
|
3685
3724
|
StatefulRuleGroupReferences: output.StatefulRuleGroupReferences !== undefined && output.StatefulRuleGroupReferences !== null
|
|
3686
3725
|
? deserializeAws_json1_0StatefulRuleGroupReferences(output.StatefulRuleGroupReferences, context)
|
|
3687
3726
|
: undefined,
|
|
@@ -3707,11 +3746,14 @@ var deserializeAws_json1_0FirewallPolicyMetadata = function (output, context) {
|
|
|
3707
3746
|
};
|
|
3708
3747
|
var deserializeAws_json1_0FirewallPolicyResponse = function (output, context) {
|
|
3709
3748
|
return {
|
|
3749
|
+
ConsumedStatefulRuleCapacity: __expectInt32(output.ConsumedStatefulRuleCapacity),
|
|
3750
|
+
ConsumedStatelessRuleCapacity: __expectInt32(output.ConsumedStatelessRuleCapacity),
|
|
3710
3751
|
Description: __expectString(output.Description),
|
|
3711
3752
|
FirewallPolicyArn: __expectString(output.FirewallPolicyArn),
|
|
3712
3753
|
FirewallPolicyId: __expectString(output.FirewallPolicyId),
|
|
3713
3754
|
FirewallPolicyName: __expectString(output.FirewallPolicyName),
|
|
3714
3755
|
FirewallPolicyStatus: __expectString(output.FirewallPolicyStatus),
|
|
3756
|
+
NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
|
|
3715
3757
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3716
3758
|
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3717
3759
|
: undefined,
|
|
@@ -3990,6 +4032,9 @@ var deserializeAws_json1_0RuleGroup = function (output, context) {
|
|
|
3990
4032
|
RulesSource: output.RulesSource !== undefined && output.RulesSource !== null
|
|
3991
4033
|
? deserializeAws_json1_0RulesSource(output.RulesSource, context)
|
|
3992
4034
|
: undefined,
|
|
4035
|
+
StatefulRuleOptions: output.StatefulRuleOptions !== undefined && output.StatefulRuleOptions !== null
|
|
4036
|
+
? deserializeAws_json1_0StatefulRuleOptions(output.StatefulRuleOptions, context)
|
|
4037
|
+
: undefined,
|
|
3993
4038
|
};
|
|
3994
4039
|
};
|
|
3995
4040
|
var deserializeAws_json1_0RuleGroupMetadata = function (output, context) {
|
|
@@ -4001,7 +4046,9 @@ var deserializeAws_json1_0RuleGroupMetadata = function (output, context) {
|
|
|
4001
4046
|
var deserializeAws_json1_0RuleGroupResponse = function (output, context) {
|
|
4002
4047
|
return {
|
|
4003
4048
|
Capacity: __expectInt32(output.Capacity),
|
|
4049
|
+
ConsumedCapacity: __expectInt32(output.ConsumedCapacity),
|
|
4004
4050
|
Description: __expectString(output.Description),
|
|
4051
|
+
NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
|
|
4005
4052
|
RuleGroupArn: __expectString(output.RuleGroupArn),
|
|
4006
4053
|
RuleGroupId: __expectString(output.RuleGroupId),
|
|
4007
4054
|
RuleGroupName: __expectString(output.RuleGroupName),
|
|
@@ -4095,6 +4142,21 @@ var deserializeAws_json1_0Settings = function (output, context) {
|
|
|
4095
4142
|
return __expectString(entry);
|
|
4096
4143
|
});
|
|
4097
4144
|
};
|
|
4145
|
+
var deserializeAws_json1_0StatefulActions = function (output, context) {
|
|
4146
|
+
return (output || [])
|
|
4147
|
+
.filter(function (e) { return e != null; })
|
|
4148
|
+
.map(function (entry) {
|
|
4149
|
+
if (entry === null) {
|
|
4150
|
+
return null;
|
|
4151
|
+
}
|
|
4152
|
+
return __expectString(entry);
|
|
4153
|
+
});
|
|
4154
|
+
};
|
|
4155
|
+
var deserializeAws_json1_0StatefulEngineOptions = function (output, context) {
|
|
4156
|
+
return {
|
|
4157
|
+
RuleOrder: __expectString(output.RuleOrder),
|
|
4158
|
+
};
|
|
4159
|
+
};
|
|
4098
4160
|
var deserializeAws_json1_0StatefulRule = function (output, context) {
|
|
4099
4161
|
return {
|
|
4100
4162
|
Action: __expectString(output.Action),
|
|
@@ -4108,6 +4170,7 @@ var deserializeAws_json1_0StatefulRule = function (output, context) {
|
|
|
4108
4170
|
};
|
|
4109
4171
|
var deserializeAws_json1_0StatefulRuleGroupReference = function (output, context) {
|
|
4110
4172
|
return {
|
|
4173
|
+
Priority: __expectInt32(output.Priority),
|
|
4111
4174
|
ResourceArn: __expectString(output.ResourceArn),
|
|
4112
4175
|
};
|
|
4113
4176
|
};
|
|
@@ -4121,6 +4184,11 @@ var deserializeAws_json1_0StatefulRuleGroupReferences = function (output, contex
|
|
|
4121
4184
|
return deserializeAws_json1_0StatefulRuleGroupReference(entry, context);
|
|
4122
4185
|
});
|
|
4123
4186
|
};
|
|
4187
|
+
var deserializeAws_json1_0StatefulRuleOptions = function (output, context) {
|
|
4188
|
+
return {
|
|
4189
|
+
RuleOrder: __expectString(output.RuleOrder),
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4124
4192
|
var deserializeAws_json1_0StatefulRules = function (output, context) {
|
|
4125
4193
|
return (output || [])
|
|
4126
4194
|
.filter(function (e) { return e != null; })
|
|
@@ -4368,7 +4436,6 @@ var deserializeMetadata = function (output) {
|
|
|
4368
4436
|
cfId: output.headers["x-amz-cf-id"],
|
|
4369
4437
|
});
|
|
4370
4438
|
};
|
|
4371
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4372
4439
|
var collectBody = function (streamBody, context) {
|
|
4373
4440
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4374
4441
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4376,7 +4443,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4376
4443
|
}
|
|
4377
4444
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4378
4445
|
};
|
|
4379
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4380
4446
|
var collectBodyString = function (streamBody, context) {
|
|
4381
4447
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4382
4448
|
};
|
|
@@ -4384,7 +4450,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4384
4450
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
4385
4451
|
return __generator(this, function (_c) {
|
|
4386
4452
|
switch (_c.label) {
|
|
4387
|
-
case 0: return [4
|
|
4453
|
+
case 0: return [4, context.endpoint()];
|
|
4388
4454
|
case 1:
|
|
4389
4455
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4390
4456
|
contents = {
|
|
@@ -4401,7 +4467,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4401
4467
|
if (body !== undefined) {
|
|
4402
4468
|
contents.body = body;
|
|
4403
4469
|
}
|
|
4404
|
-
return [2
|
|
4470
|
+
return [2, new __HttpRequest(contents)];
|
|
4405
4471
|
}
|
|
4406
4472
|
});
|
|
4407
4473
|
}); };
|
|
@@ -4413,9 +4479,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4413
4479
|
return {};
|
|
4414
4480
|
});
|
|
4415
4481
|
};
|
|
4416
|
-
/**
|
|
4417
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4418
|
-
*/
|
|
4419
4482
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4420
4483
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4421
4484
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -4440,4 +4503,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4440
4503
|
}
|
|
4441
4504
|
return "";
|
|
4442
4505
|
};
|
|
4443
|
-
//# sourceMappingURL=Aws_json1_0.js.map
|