@aws-sdk/client-route53resolver 3.489.0 → 3.495.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/dist-cjs/Route53Resolver.js +1 -147
- package/dist-cjs/Route53ResolverClient.js +1 -43
- package/dist-cjs/commands/AssociateFirewallRuleGroupCommand.js +1 -28
- package/dist-cjs/commands/AssociateResolverEndpointIpAddressCommand.js +1 -28
- package/dist-cjs/commands/AssociateResolverQueryLogConfigCommand.js +1 -28
- package/dist-cjs/commands/AssociateResolverRuleCommand.js +1 -28
- package/dist-cjs/commands/CreateFirewallDomainListCommand.js +1 -28
- package/dist-cjs/commands/CreateFirewallRuleCommand.js +1 -28
- package/dist-cjs/commands/CreateFirewallRuleGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateOutpostResolverCommand.js +1 -28
- package/dist-cjs/commands/CreateResolverEndpointCommand.js +1 -28
- package/dist-cjs/commands/CreateResolverQueryLogConfigCommand.js +1 -28
- package/dist-cjs/commands/CreateResolverRuleCommand.js +1 -28
- package/dist-cjs/commands/DeleteFirewallDomainListCommand.js +1 -28
- package/dist-cjs/commands/DeleteFirewallRuleCommand.js +1 -28
- package/dist-cjs/commands/DeleteFirewallRuleGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteOutpostResolverCommand.js +1 -28
- package/dist-cjs/commands/DeleteResolverEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteResolverQueryLogConfigCommand.js +1 -28
- package/dist-cjs/commands/DeleteResolverRuleCommand.js +1 -28
- package/dist-cjs/commands/DisassociateFirewallRuleGroupCommand.js +1 -28
- package/dist-cjs/commands/DisassociateResolverEndpointIpAddressCommand.js +1 -28
- package/dist-cjs/commands/DisassociateResolverQueryLogConfigCommand.js +1 -28
- package/dist-cjs/commands/DisassociateResolverRuleCommand.js +1 -28
- package/dist-cjs/commands/GetFirewallConfigCommand.js +1 -28
- package/dist-cjs/commands/GetFirewallDomainListCommand.js +1 -28
- package/dist-cjs/commands/GetFirewallRuleGroupAssociationCommand.js +1 -28
- package/dist-cjs/commands/GetFirewallRuleGroupCommand.js +1 -28
- package/dist-cjs/commands/GetFirewallRuleGroupPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetOutpostResolverCommand.js +1 -28
- package/dist-cjs/commands/GetResolverConfigCommand.js +1 -28
- package/dist-cjs/commands/GetResolverDnssecConfigCommand.js +1 -28
- package/dist-cjs/commands/GetResolverEndpointCommand.js +1 -28
- package/dist-cjs/commands/GetResolverQueryLogConfigAssociationCommand.js +1 -28
- package/dist-cjs/commands/GetResolverQueryLogConfigCommand.js +1 -28
- package/dist-cjs/commands/GetResolverQueryLogConfigPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetResolverRuleAssociationCommand.js +1 -28
- package/dist-cjs/commands/GetResolverRuleCommand.js +1 -28
- package/dist-cjs/commands/GetResolverRulePolicyCommand.js +1 -28
- package/dist-cjs/commands/ImportFirewallDomainsCommand.js +1 -28
- package/dist-cjs/commands/ListFirewallConfigsCommand.js +1 -28
- package/dist-cjs/commands/ListFirewallDomainListsCommand.js +1 -28
- package/dist-cjs/commands/ListFirewallDomainsCommand.js +1 -28
- package/dist-cjs/commands/ListFirewallRuleGroupAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListFirewallRuleGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListFirewallRulesCommand.js +1 -28
- package/dist-cjs/commands/ListOutpostResolversCommand.js +1 -28
- package/dist-cjs/commands/ListResolverConfigsCommand.js +1 -28
- package/dist-cjs/commands/ListResolverDnssecConfigsCommand.js +1 -28
- package/dist-cjs/commands/ListResolverEndpointIpAddressesCommand.js +1 -28
- package/dist-cjs/commands/ListResolverEndpointsCommand.js +1 -28
- package/dist-cjs/commands/ListResolverQueryLogConfigAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListResolverQueryLogConfigsCommand.js +1 -28
- package/dist-cjs/commands/ListResolverRuleAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListResolverRulesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutFirewallRuleGroupPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutResolverQueryLogConfigPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutResolverRulePolicyCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateFirewallConfigCommand.js +1 -28
- package/dist-cjs/commands/UpdateFirewallDomainsCommand.js +1 -28
- package/dist-cjs/commands/UpdateFirewallRuleCommand.js +1 -28
- package/dist-cjs/commands/UpdateFirewallRuleGroupAssociationCommand.js +1 -28
- package/dist-cjs/commands/UpdateOutpostResolverCommand.js +1 -28
- package/dist-cjs/commands/UpdateResolverConfigCommand.js +1 -28
- package/dist-cjs/commands/UpdateResolverDnssecConfigCommand.js +1 -28
- package/dist-cjs/commands/UpdateResolverEndpointCommand.js +1 -28
- package/dist-cjs/commands/UpdateResolverRuleCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -71
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5991 -11
- package/dist-cjs/models/Route53ResolverServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -412
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListFirewallConfigsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFirewallDomainListsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFirewallDomainsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFirewallRuleGroupAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFirewallRuleGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFirewallRulesPaginator.js +1 -7
- package/dist-cjs/pagination/ListOutpostResolversPaginator.js +1 -7
- package/dist-cjs/pagination/ListResolverConfigsPaginator.js +1 -7
- package/dist-cjs/pagination/ListResolverDnssecConfigsPaginator.js +1 -7
- package/dist-cjs/pagination/ListResolverEndpointIpAddressesPaginator.js +1 -7
- package/dist-cjs/pagination/ListResolverEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/ListResolverQueryLogConfigAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListResolverQueryLogConfigsPaginator.js +1 -7
- package/dist-cjs/pagination/ListResolverRuleAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListResolverRulesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -20
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3954
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,3954 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_ListResolverQueryLogConfigAssociationsCommand = exports.se_ListResolverEndpointsCommand = exports.se_ListResolverEndpointIpAddressesCommand = exports.se_ListResolverDnssecConfigsCommand = exports.se_ListResolverConfigsCommand = exports.se_ListOutpostResolversCommand = exports.se_ListFirewallRulesCommand = exports.se_ListFirewallRuleGroupsCommand = exports.se_ListFirewallRuleGroupAssociationsCommand = exports.se_ListFirewallDomainsCommand = exports.se_ListFirewallDomainListsCommand = exports.se_ListFirewallConfigsCommand = exports.se_ImportFirewallDomainsCommand = exports.se_GetResolverRulePolicyCommand = exports.se_GetResolverRuleAssociationCommand = exports.se_GetResolverRuleCommand = exports.se_GetResolverQueryLogConfigPolicyCommand = exports.se_GetResolverQueryLogConfigAssociationCommand = exports.se_GetResolverQueryLogConfigCommand = exports.se_GetResolverEndpointCommand = exports.se_GetResolverDnssecConfigCommand = exports.se_GetResolverConfigCommand = exports.se_GetOutpostResolverCommand = exports.se_GetFirewallRuleGroupPolicyCommand = exports.se_GetFirewallRuleGroupAssociationCommand = exports.se_GetFirewallRuleGroupCommand = exports.se_GetFirewallDomainListCommand = exports.se_GetFirewallConfigCommand = exports.se_DisassociateResolverRuleCommand = exports.se_DisassociateResolverQueryLogConfigCommand = exports.se_DisassociateResolverEndpointIpAddressCommand = exports.se_DisassociateFirewallRuleGroupCommand = exports.se_DeleteResolverRuleCommand = exports.se_DeleteResolverQueryLogConfigCommand = exports.se_DeleteResolverEndpointCommand = exports.se_DeleteOutpostResolverCommand = exports.se_DeleteFirewallRuleGroupCommand = exports.se_DeleteFirewallRuleCommand = exports.se_DeleteFirewallDomainListCommand = exports.se_CreateResolverRuleCommand = exports.se_CreateResolverQueryLogConfigCommand = exports.se_CreateResolverEndpointCommand = exports.se_CreateOutpostResolverCommand = exports.se_CreateFirewallRuleGroupCommand = exports.se_CreateFirewallRuleCommand = exports.se_CreateFirewallDomainListCommand = exports.se_AssociateResolverRuleCommand = exports.se_AssociateResolverQueryLogConfigCommand = exports.se_AssociateResolverEndpointIpAddressCommand = exports.se_AssociateFirewallRuleGroupCommand = void 0;
|
|
4
|
-
exports.de_GetResolverQueryLogConfigCommand = exports.de_GetResolverEndpointCommand = exports.de_GetResolverDnssecConfigCommand = exports.de_GetResolverConfigCommand = exports.de_GetOutpostResolverCommand = exports.de_GetFirewallRuleGroupPolicyCommand = exports.de_GetFirewallRuleGroupAssociationCommand = exports.de_GetFirewallRuleGroupCommand = exports.de_GetFirewallDomainListCommand = exports.de_GetFirewallConfigCommand = exports.de_DisassociateResolverRuleCommand = exports.de_DisassociateResolverQueryLogConfigCommand = exports.de_DisassociateResolverEndpointIpAddressCommand = exports.de_DisassociateFirewallRuleGroupCommand = exports.de_DeleteResolverRuleCommand = exports.de_DeleteResolverQueryLogConfigCommand = exports.de_DeleteResolverEndpointCommand = exports.de_DeleteOutpostResolverCommand = exports.de_DeleteFirewallRuleGroupCommand = exports.de_DeleteFirewallRuleCommand = exports.de_DeleteFirewallDomainListCommand = exports.de_CreateResolverRuleCommand = exports.de_CreateResolverQueryLogConfigCommand = exports.de_CreateResolverEndpointCommand = exports.de_CreateOutpostResolverCommand = exports.de_CreateFirewallRuleGroupCommand = exports.de_CreateFirewallRuleCommand = exports.de_CreateFirewallDomainListCommand = exports.de_AssociateResolverRuleCommand = exports.de_AssociateResolverQueryLogConfigCommand = exports.de_AssociateResolverEndpointIpAddressCommand = exports.de_AssociateFirewallRuleGroupCommand = exports.se_UpdateResolverRuleCommand = exports.se_UpdateResolverEndpointCommand = exports.se_UpdateResolverDnssecConfigCommand = exports.se_UpdateResolverConfigCommand = exports.se_UpdateOutpostResolverCommand = exports.se_UpdateFirewallRuleGroupAssociationCommand = exports.se_UpdateFirewallRuleCommand = exports.se_UpdateFirewallDomainsCommand = exports.se_UpdateFirewallConfigCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutResolverRulePolicyCommand = exports.se_PutResolverQueryLogConfigPolicyCommand = exports.se_PutFirewallRuleGroupPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResolverRulesCommand = exports.se_ListResolverRuleAssociationsCommand = exports.se_ListResolverQueryLogConfigsCommand = void 0;
|
|
5
|
-
exports.de_UpdateResolverRuleCommand = exports.de_UpdateResolverEndpointCommand = exports.de_UpdateResolverDnssecConfigCommand = exports.de_UpdateResolverConfigCommand = exports.de_UpdateOutpostResolverCommand = exports.de_UpdateFirewallRuleGroupAssociationCommand = exports.de_UpdateFirewallRuleCommand = exports.de_UpdateFirewallDomainsCommand = exports.de_UpdateFirewallConfigCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutResolverRulePolicyCommand = exports.de_PutResolverQueryLogConfigPolicyCommand = exports.de_PutFirewallRuleGroupPolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResolverRulesCommand = exports.de_ListResolverRuleAssociationsCommand = exports.de_ListResolverQueryLogConfigsCommand = exports.de_ListResolverQueryLogConfigAssociationsCommand = exports.de_ListResolverEndpointsCommand = exports.de_ListResolverEndpointIpAddressesCommand = exports.de_ListResolverDnssecConfigsCommand = exports.de_ListResolverConfigsCommand = exports.de_ListOutpostResolversCommand = exports.de_ListFirewallRulesCommand = exports.de_ListFirewallRuleGroupsCommand = exports.de_ListFirewallRuleGroupAssociationsCommand = exports.de_ListFirewallDomainsCommand = exports.de_ListFirewallDomainListsCommand = exports.de_ListFirewallConfigsCommand = exports.de_ImportFirewallDomainsCommand = exports.de_GetResolverRulePolicyCommand = exports.de_GetResolverRuleAssociationCommand = exports.de_GetResolverRuleCommand = exports.de_GetResolverQueryLogConfigPolicyCommand = exports.de_GetResolverQueryLogConfigAssociationCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const Route53ResolverServiceException_1 = require("../models/Route53ResolverServiceException");
|
|
11
|
-
const se_AssociateFirewallRuleGroupCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("AssociateFirewallRuleGroup");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(se_AssociateFirewallRuleGroupRequest(input, context));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_AssociateFirewallRuleGroupCommand = se_AssociateFirewallRuleGroupCommand;
|
|
18
|
-
const se_AssociateResolverEndpointIpAddressCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("AssociateResolverEndpointIpAddress");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_AssociateResolverEndpointIpAddressCommand = se_AssociateResolverEndpointIpAddressCommand;
|
|
25
|
-
const se_AssociateResolverQueryLogConfigCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("AssociateResolverQueryLogConfig");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_AssociateResolverQueryLogConfigCommand = se_AssociateResolverQueryLogConfigCommand;
|
|
32
|
-
const se_AssociateResolverRuleCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("AssociateResolverRule");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_AssociateResolverRuleCommand = se_AssociateResolverRuleCommand;
|
|
39
|
-
const se_CreateFirewallDomainListCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("CreateFirewallDomainList");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(se_CreateFirewallDomainListRequest(input, context));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_CreateFirewallDomainListCommand = se_CreateFirewallDomainListCommand;
|
|
46
|
-
const se_CreateFirewallRuleCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateFirewallRule");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify(se_CreateFirewallRuleRequest(input, context));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateFirewallRuleCommand = se_CreateFirewallRuleCommand;
|
|
53
|
-
const se_CreateFirewallRuleGroupCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("CreateFirewallRuleGroup");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify(se_CreateFirewallRuleGroupRequest(input, context));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateFirewallRuleGroupCommand = se_CreateFirewallRuleGroupCommand;
|
|
60
|
-
const se_CreateOutpostResolverCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateOutpostResolver");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateOutpostResolverCommand = se_CreateOutpostResolverCommand;
|
|
67
|
-
const se_CreateResolverEndpointCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreateResolverEndpoint");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_CreateResolverEndpointCommand = se_CreateResolverEndpointCommand;
|
|
74
|
-
const se_CreateResolverQueryLogConfigCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("CreateResolverQueryLogConfig");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify(se_CreateResolverQueryLogConfigRequest(input, context));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_CreateResolverQueryLogConfigCommand = se_CreateResolverQueryLogConfigCommand;
|
|
81
|
-
const se_CreateResolverRuleCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("CreateResolverRule");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_CreateResolverRuleCommand = se_CreateResolverRuleCommand;
|
|
88
|
-
const se_DeleteFirewallDomainListCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DeleteFirewallDomainList");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DeleteFirewallDomainListCommand = se_DeleteFirewallDomainListCommand;
|
|
95
|
-
const se_DeleteFirewallRuleCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DeleteFirewallRule");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteFirewallRuleCommand = se_DeleteFirewallRuleCommand;
|
|
102
|
-
const se_DeleteFirewallRuleGroupCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteFirewallRuleGroup");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeleteFirewallRuleGroupCommand = se_DeleteFirewallRuleGroupCommand;
|
|
109
|
-
const se_DeleteOutpostResolverCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteOutpostResolver");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteOutpostResolverCommand = se_DeleteOutpostResolverCommand;
|
|
116
|
-
const se_DeleteResolverEndpointCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DeleteResolverEndpoint");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_DeleteResolverEndpointCommand = se_DeleteResolverEndpointCommand;
|
|
123
|
-
const se_DeleteResolverQueryLogConfigCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("DeleteResolverQueryLogConfig");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_DeleteResolverQueryLogConfigCommand = se_DeleteResolverQueryLogConfigCommand;
|
|
130
|
-
const se_DeleteResolverRuleCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("DeleteResolverRule");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_DeleteResolverRuleCommand = se_DeleteResolverRuleCommand;
|
|
137
|
-
const se_DisassociateFirewallRuleGroupCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("DisassociateFirewallRuleGroup");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_DisassociateFirewallRuleGroupCommand = se_DisassociateFirewallRuleGroupCommand;
|
|
144
|
-
const se_DisassociateResolverEndpointIpAddressCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DisassociateResolverEndpointIpAddress");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_DisassociateResolverEndpointIpAddressCommand = se_DisassociateResolverEndpointIpAddressCommand;
|
|
151
|
-
const se_DisassociateResolverQueryLogConfigCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("DisassociateResolverQueryLogConfig");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_DisassociateResolverQueryLogConfigCommand = se_DisassociateResolverQueryLogConfigCommand;
|
|
158
|
-
const se_DisassociateResolverRuleCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("DisassociateResolverRule");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_DisassociateResolverRuleCommand = se_DisassociateResolverRuleCommand;
|
|
165
|
-
const se_GetFirewallConfigCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("GetFirewallConfig");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_GetFirewallConfigCommand = se_GetFirewallConfigCommand;
|
|
172
|
-
const se_GetFirewallDomainListCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("GetFirewallDomainList");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_GetFirewallDomainListCommand = se_GetFirewallDomainListCommand;
|
|
179
|
-
const se_GetFirewallRuleGroupCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("GetFirewallRuleGroup");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_GetFirewallRuleGroupCommand = se_GetFirewallRuleGroupCommand;
|
|
186
|
-
const se_GetFirewallRuleGroupAssociationCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("GetFirewallRuleGroupAssociation");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_GetFirewallRuleGroupAssociationCommand = se_GetFirewallRuleGroupAssociationCommand;
|
|
193
|
-
const se_GetFirewallRuleGroupPolicyCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("GetFirewallRuleGroupPolicy");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_GetFirewallRuleGroupPolicyCommand = se_GetFirewallRuleGroupPolicyCommand;
|
|
200
|
-
const se_GetOutpostResolverCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("GetOutpostResolver");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_GetOutpostResolverCommand = se_GetOutpostResolverCommand;
|
|
207
|
-
const se_GetResolverConfigCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("GetResolverConfig");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_GetResolverConfigCommand = se_GetResolverConfigCommand;
|
|
214
|
-
const se_GetResolverDnssecConfigCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("GetResolverDnssecConfig");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_GetResolverDnssecConfigCommand = se_GetResolverDnssecConfigCommand;
|
|
221
|
-
const se_GetResolverEndpointCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("GetResolverEndpoint");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_GetResolverEndpointCommand = se_GetResolverEndpointCommand;
|
|
228
|
-
const se_GetResolverQueryLogConfigCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("GetResolverQueryLogConfig");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_GetResolverQueryLogConfigCommand = se_GetResolverQueryLogConfigCommand;
|
|
235
|
-
const se_GetResolverQueryLogConfigAssociationCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("GetResolverQueryLogConfigAssociation");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_GetResolverQueryLogConfigAssociationCommand = se_GetResolverQueryLogConfigAssociationCommand;
|
|
242
|
-
const se_GetResolverQueryLogConfigPolicyCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("GetResolverQueryLogConfigPolicy");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_GetResolverQueryLogConfigPolicyCommand = se_GetResolverQueryLogConfigPolicyCommand;
|
|
249
|
-
const se_GetResolverRuleCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("GetResolverRule");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_GetResolverRuleCommand = se_GetResolverRuleCommand;
|
|
256
|
-
const se_GetResolverRuleAssociationCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("GetResolverRuleAssociation");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_GetResolverRuleAssociationCommand = se_GetResolverRuleAssociationCommand;
|
|
263
|
-
const se_GetResolverRulePolicyCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("GetResolverRulePolicy");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_GetResolverRulePolicyCommand = se_GetResolverRulePolicyCommand;
|
|
270
|
-
const se_ImportFirewallDomainsCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("ImportFirewallDomains");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_ImportFirewallDomainsCommand = se_ImportFirewallDomainsCommand;
|
|
277
|
-
const se_ListFirewallConfigsCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("ListFirewallConfigs");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_ListFirewallConfigsCommand = se_ListFirewallConfigsCommand;
|
|
284
|
-
const se_ListFirewallDomainListsCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("ListFirewallDomainLists");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_ListFirewallDomainListsCommand = se_ListFirewallDomainListsCommand;
|
|
291
|
-
const se_ListFirewallDomainsCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("ListFirewallDomains");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_ListFirewallDomainsCommand = se_ListFirewallDomainsCommand;
|
|
298
|
-
const se_ListFirewallRuleGroupAssociationsCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("ListFirewallRuleGroupAssociations");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_ListFirewallRuleGroupAssociationsCommand = se_ListFirewallRuleGroupAssociationsCommand;
|
|
305
|
-
const se_ListFirewallRuleGroupsCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("ListFirewallRuleGroups");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_ListFirewallRuleGroupsCommand = se_ListFirewallRuleGroupsCommand;
|
|
312
|
-
const se_ListFirewallRulesCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("ListFirewallRules");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_ListFirewallRulesCommand = se_ListFirewallRulesCommand;
|
|
319
|
-
const se_ListOutpostResolversCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("ListOutpostResolvers");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_ListOutpostResolversCommand = se_ListOutpostResolversCommand;
|
|
326
|
-
const se_ListResolverConfigsCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("ListResolverConfigs");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_ListResolverConfigsCommand = se_ListResolverConfigsCommand;
|
|
333
|
-
const se_ListResolverDnssecConfigsCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("ListResolverDnssecConfigs");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_ListResolverDnssecConfigsCommand = se_ListResolverDnssecConfigsCommand;
|
|
340
|
-
const se_ListResolverEndpointIpAddressesCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("ListResolverEndpointIpAddresses");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_ListResolverEndpointIpAddressesCommand = se_ListResolverEndpointIpAddressesCommand;
|
|
347
|
-
const se_ListResolverEndpointsCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("ListResolverEndpoints");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_ListResolverEndpointsCommand = se_ListResolverEndpointsCommand;
|
|
354
|
-
const se_ListResolverQueryLogConfigAssociationsCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("ListResolverQueryLogConfigAssociations");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_ListResolverQueryLogConfigAssociationsCommand = se_ListResolverQueryLogConfigAssociationsCommand;
|
|
361
|
-
const se_ListResolverQueryLogConfigsCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("ListResolverQueryLogConfigs");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_ListResolverQueryLogConfigsCommand = se_ListResolverQueryLogConfigsCommand;
|
|
368
|
-
const se_ListResolverRuleAssociationsCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("ListResolverRuleAssociations");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_ListResolverRuleAssociationsCommand = se_ListResolverRuleAssociationsCommand;
|
|
375
|
-
const se_ListResolverRulesCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("ListResolverRules");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
exports.se_ListResolverRulesCommand = se_ListResolverRulesCommand;
|
|
382
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
389
|
-
const se_PutFirewallRuleGroupPolicyCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("PutFirewallRuleGroupPolicy");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_PutFirewallRuleGroupPolicyCommand = se_PutFirewallRuleGroupPolicyCommand;
|
|
396
|
-
const se_PutResolverQueryLogConfigPolicyCommand = async (input, context) => {
|
|
397
|
-
const headers = sharedHeaders("PutResolverQueryLogConfigPolicy");
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
exports.se_PutResolverQueryLogConfigPolicyCommand = se_PutResolverQueryLogConfigPolicyCommand;
|
|
403
|
-
const se_PutResolverRulePolicyCommand = async (input, context) => {
|
|
404
|
-
const headers = sharedHeaders("PutResolverRulePolicy");
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
407
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
-
};
|
|
409
|
-
exports.se_PutResolverRulePolicyCommand = se_PutResolverRulePolicyCommand;
|
|
410
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
411
|
-
const headers = sharedHeaders("TagResource");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
417
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
418
|
-
const headers = sharedHeaders("UntagResource");
|
|
419
|
-
let body;
|
|
420
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
421
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
422
|
-
};
|
|
423
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
424
|
-
const se_UpdateFirewallConfigCommand = async (input, context) => {
|
|
425
|
-
const headers = sharedHeaders("UpdateFirewallConfig");
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
-
};
|
|
430
|
-
exports.se_UpdateFirewallConfigCommand = se_UpdateFirewallConfigCommand;
|
|
431
|
-
const se_UpdateFirewallDomainsCommand = async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("UpdateFirewallDomains");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
|
-
};
|
|
437
|
-
exports.se_UpdateFirewallDomainsCommand = se_UpdateFirewallDomainsCommand;
|
|
438
|
-
const se_UpdateFirewallRuleCommand = async (input, context) => {
|
|
439
|
-
const headers = sharedHeaders("UpdateFirewallRule");
|
|
440
|
-
let body;
|
|
441
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
442
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
|
-
};
|
|
444
|
-
exports.se_UpdateFirewallRuleCommand = se_UpdateFirewallRuleCommand;
|
|
445
|
-
const se_UpdateFirewallRuleGroupAssociationCommand = async (input, context) => {
|
|
446
|
-
const headers = sharedHeaders("UpdateFirewallRuleGroupAssociation");
|
|
447
|
-
let body;
|
|
448
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
449
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
450
|
-
};
|
|
451
|
-
exports.se_UpdateFirewallRuleGroupAssociationCommand = se_UpdateFirewallRuleGroupAssociationCommand;
|
|
452
|
-
const se_UpdateOutpostResolverCommand = async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("UpdateOutpostResolver");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
exports.se_UpdateOutpostResolverCommand = se_UpdateOutpostResolverCommand;
|
|
459
|
-
const se_UpdateResolverConfigCommand = async (input, context) => {
|
|
460
|
-
const headers = sharedHeaders("UpdateResolverConfig");
|
|
461
|
-
let body;
|
|
462
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
463
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
464
|
-
};
|
|
465
|
-
exports.se_UpdateResolverConfigCommand = se_UpdateResolverConfigCommand;
|
|
466
|
-
const se_UpdateResolverDnssecConfigCommand = async (input, context) => {
|
|
467
|
-
const headers = sharedHeaders("UpdateResolverDnssecConfig");
|
|
468
|
-
let body;
|
|
469
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
470
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
|
-
};
|
|
472
|
-
exports.se_UpdateResolverDnssecConfigCommand = se_UpdateResolverDnssecConfigCommand;
|
|
473
|
-
const se_UpdateResolverEndpointCommand = async (input, context) => {
|
|
474
|
-
const headers = sharedHeaders("UpdateResolverEndpoint");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
-
};
|
|
479
|
-
exports.se_UpdateResolverEndpointCommand = se_UpdateResolverEndpointCommand;
|
|
480
|
-
const se_UpdateResolverRuleCommand = async (input, context) => {
|
|
481
|
-
const headers = sharedHeaders("UpdateResolverRule");
|
|
482
|
-
let body;
|
|
483
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
484
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
|
-
};
|
|
486
|
-
exports.se_UpdateResolverRuleCommand = se_UpdateResolverRuleCommand;
|
|
487
|
-
const de_AssociateFirewallRuleGroupCommand = async (output, context) => {
|
|
488
|
-
if (output.statusCode >= 300) {
|
|
489
|
-
return de_AssociateFirewallRuleGroupCommandError(output, context);
|
|
490
|
-
}
|
|
491
|
-
const data = await parseBody(output.body, context);
|
|
492
|
-
let contents = {};
|
|
493
|
-
contents = (0, smithy_client_1._json)(data);
|
|
494
|
-
const response = {
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
...contents,
|
|
497
|
-
};
|
|
498
|
-
return response;
|
|
499
|
-
};
|
|
500
|
-
exports.de_AssociateFirewallRuleGroupCommand = de_AssociateFirewallRuleGroupCommand;
|
|
501
|
-
const de_AssociateFirewallRuleGroupCommandError = async (output, context) => {
|
|
502
|
-
const parsedOutput = {
|
|
503
|
-
...output,
|
|
504
|
-
body: await parseErrorBody(output.body, context),
|
|
505
|
-
};
|
|
506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
|
-
switch (errorCode) {
|
|
508
|
-
case "AccessDeniedException":
|
|
509
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
510
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
511
|
-
case "ConflictException":
|
|
512
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
513
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
514
|
-
case "InternalServiceErrorException":
|
|
515
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
516
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
517
|
-
case "LimitExceededException":
|
|
518
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
519
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
520
|
-
case "ResourceNotFoundException":
|
|
521
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
522
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ThrottlingException":
|
|
524
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
525
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
526
|
-
case "ValidationException":
|
|
527
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
528
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
529
|
-
default:
|
|
530
|
-
const parsedBody = parsedOutput.body;
|
|
531
|
-
return throwDefaultError({
|
|
532
|
-
output,
|
|
533
|
-
parsedBody,
|
|
534
|
-
errorCode,
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
};
|
|
538
|
-
const de_AssociateResolverEndpointIpAddressCommand = async (output, context) => {
|
|
539
|
-
if (output.statusCode >= 300) {
|
|
540
|
-
return de_AssociateResolverEndpointIpAddressCommandError(output, context);
|
|
541
|
-
}
|
|
542
|
-
const data = await parseBody(output.body, context);
|
|
543
|
-
let contents = {};
|
|
544
|
-
contents = (0, smithy_client_1._json)(data);
|
|
545
|
-
const response = {
|
|
546
|
-
$metadata: deserializeMetadata(output),
|
|
547
|
-
...contents,
|
|
548
|
-
};
|
|
549
|
-
return response;
|
|
550
|
-
};
|
|
551
|
-
exports.de_AssociateResolverEndpointIpAddressCommand = de_AssociateResolverEndpointIpAddressCommand;
|
|
552
|
-
const de_AssociateResolverEndpointIpAddressCommandError = async (output, context) => {
|
|
553
|
-
const parsedOutput = {
|
|
554
|
-
...output,
|
|
555
|
-
body: await parseErrorBody(output.body, context),
|
|
556
|
-
};
|
|
557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
|
-
switch (errorCode) {
|
|
559
|
-
case "InternalServiceErrorException":
|
|
560
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
561
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
562
|
-
case "InvalidParameterException":
|
|
563
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
564
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
565
|
-
case "InvalidRequestException":
|
|
566
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
567
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
568
|
-
case "LimitExceededException":
|
|
569
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
570
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ResourceExistsException":
|
|
572
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
573
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ResourceNotFoundException":
|
|
575
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ThrottlingException":
|
|
578
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
579
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
580
|
-
default:
|
|
581
|
-
const parsedBody = parsedOutput.body;
|
|
582
|
-
return throwDefaultError({
|
|
583
|
-
output,
|
|
584
|
-
parsedBody,
|
|
585
|
-
errorCode,
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
const de_AssociateResolverQueryLogConfigCommand = async (output, context) => {
|
|
590
|
-
if (output.statusCode >= 300) {
|
|
591
|
-
return de_AssociateResolverQueryLogConfigCommandError(output, context);
|
|
592
|
-
}
|
|
593
|
-
const data = await parseBody(output.body, context);
|
|
594
|
-
let contents = {};
|
|
595
|
-
contents = (0, smithy_client_1._json)(data);
|
|
596
|
-
const response = {
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
...contents,
|
|
599
|
-
};
|
|
600
|
-
return response;
|
|
601
|
-
};
|
|
602
|
-
exports.de_AssociateResolverQueryLogConfigCommand = de_AssociateResolverQueryLogConfigCommand;
|
|
603
|
-
const de_AssociateResolverQueryLogConfigCommandError = async (output, context) => {
|
|
604
|
-
const parsedOutput = {
|
|
605
|
-
...output,
|
|
606
|
-
body: await parseErrorBody(output.body, context),
|
|
607
|
-
};
|
|
608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
-
switch (errorCode) {
|
|
610
|
-
case "AccessDeniedException":
|
|
611
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
612
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
613
|
-
case "InternalServiceErrorException":
|
|
614
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
615
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
616
|
-
case "InvalidParameterException":
|
|
617
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
618
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
619
|
-
case "InvalidRequestException":
|
|
620
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
621
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
622
|
-
case "LimitExceededException":
|
|
623
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
624
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ResourceExistsException":
|
|
626
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
627
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ResourceNotFoundException":
|
|
629
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ThrottlingException":
|
|
632
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
633
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
634
|
-
default:
|
|
635
|
-
const parsedBody = parsedOutput.body;
|
|
636
|
-
return throwDefaultError({
|
|
637
|
-
output,
|
|
638
|
-
parsedBody,
|
|
639
|
-
errorCode,
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
const de_AssociateResolverRuleCommand = async (output, context) => {
|
|
644
|
-
if (output.statusCode >= 300) {
|
|
645
|
-
return de_AssociateResolverRuleCommandError(output, context);
|
|
646
|
-
}
|
|
647
|
-
const data = await parseBody(output.body, context);
|
|
648
|
-
let contents = {};
|
|
649
|
-
contents = (0, smithy_client_1._json)(data);
|
|
650
|
-
const response = {
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
...contents,
|
|
653
|
-
};
|
|
654
|
-
return response;
|
|
655
|
-
};
|
|
656
|
-
exports.de_AssociateResolverRuleCommand = de_AssociateResolverRuleCommand;
|
|
657
|
-
const de_AssociateResolverRuleCommandError = async (output, context) => {
|
|
658
|
-
const parsedOutput = {
|
|
659
|
-
...output,
|
|
660
|
-
body: await parseErrorBody(output.body, context),
|
|
661
|
-
};
|
|
662
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
|
-
switch (errorCode) {
|
|
664
|
-
case "InternalServiceErrorException":
|
|
665
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
666
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
667
|
-
case "InvalidParameterException":
|
|
668
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
669
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
670
|
-
case "InvalidRequestException":
|
|
671
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
672
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
673
|
-
case "LimitExceededException":
|
|
674
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
675
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ResourceExistsException":
|
|
677
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
678
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
679
|
-
case "ResourceNotFoundException":
|
|
680
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
681
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
682
|
-
case "ResourceUnavailableException":
|
|
683
|
-
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
684
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
685
|
-
case "ThrottlingException":
|
|
686
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
687
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
688
|
-
default:
|
|
689
|
-
const parsedBody = parsedOutput.body;
|
|
690
|
-
return throwDefaultError({
|
|
691
|
-
output,
|
|
692
|
-
parsedBody,
|
|
693
|
-
errorCode,
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
const de_CreateFirewallDomainListCommand = async (output, context) => {
|
|
698
|
-
if (output.statusCode >= 300) {
|
|
699
|
-
return de_CreateFirewallDomainListCommandError(output, context);
|
|
700
|
-
}
|
|
701
|
-
const data = await parseBody(output.body, context);
|
|
702
|
-
let contents = {};
|
|
703
|
-
contents = (0, smithy_client_1._json)(data);
|
|
704
|
-
const response = {
|
|
705
|
-
$metadata: deserializeMetadata(output),
|
|
706
|
-
...contents,
|
|
707
|
-
};
|
|
708
|
-
return response;
|
|
709
|
-
};
|
|
710
|
-
exports.de_CreateFirewallDomainListCommand = de_CreateFirewallDomainListCommand;
|
|
711
|
-
const de_CreateFirewallDomainListCommandError = async (output, context) => {
|
|
712
|
-
const parsedOutput = {
|
|
713
|
-
...output,
|
|
714
|
-
body: await parseErrorBody(output.body, context),
|
|
715
|
-
};
|
|
716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
717
|
-
switch (errorCode) {
|
|
718
|
-
case "AccessDeniedException":
|
|
719
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
720
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InternalServiceErrorException":
|
|
722
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
723
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
724
|
-
case "LimitExceededException":
|
|
725
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
726
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ThrottlingException":
|
|
728
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
729
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ValidationException":
|
|
731
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
732
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
733
|
-
default:
|
|
734
|
-
const parsedBody = parsedOutput.body;
|
|
735
|
-
return throwDefaultError({
|
|
736
|
-
output,
|
|
737
|
-
parsedBody,
|
|
738
|
-
errorCode,
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
const de_CreateFirewallRuleCommand = async (output, context) => {
|
|
743
|
-
if (output.statusCode >= 300) {
|
|
744
|
-
return de_CreateFirewallRuleCommandError(output, context);
|
|
745
|
-
}
|
|
746
|
-
const data = await parseBody(output.body, context);
|
|
747
|
-
let contents = {};
|
|
748
|
-
contents = (0, smithy_client_1._json)(data);
|
|
749
|
-
const response = {
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
...contents,
|
|
752
|
-
};
|
|
753
|
-
return response;
|
|
754
|
-
};
|
|
755
|
-
exports.de_CreateFirewallRuleCommand = de_CreateFirewallRuleCommand;
|
|
756
|
-
const de_CreateFirewallRuleCommandError = async (output, context) => {
|
|
757
|
-
const parsedOutput = {
|
|
758
|
-
...output,
|
|
759
|
-
body: await parseErrorBody(output.body, context),
|
|
760
|
-
};
|
|
761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
|
-
switch (errorCode) {
|
|
763
|
-
case "AccessDeniedException":
|
|
764
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
765
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
766
|
-
case "InternalServiceErrorException":
|
|
767
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
768
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
769
|
-
case "LimitExceededException":
|
|
770
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
771
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ResourceNotFoundException":
|
|
773
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
774
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ThrottlingException":
|
|
776
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
777
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ValidationException":
|
|
779
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
780
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
const de_CreateFirewallRuleGroupCommand = async (output, context) => {
|
|
791
|
-
if (output.statusCode >= 300) {
|
|
792
|
-
return de_CreateFirewallRuleGroupCommandError(output, context);
|
|
793
|
-
}
|
|
794
|
-
const data = await parseBody(output.body, context);
|
|
795
|
-
let contents = {};
|
|
796
|
-
contents = (0, smithy_client_1._json)(data);
|
|
797
|
-
const response = {
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
...contents,
|
|
800
|
-
};
|
|
801
|
-
return response;
|
|
802
|
-
};
|
|
803
|
-
exports.de_CreateFirewallRuleGroupCommand = de_CreateFirewallRuleGroupCommand;
|
|
804
|
-
const de_CreateFirewallRuleGroupCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "AccessDeniedException":
|
|
812
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
813
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
814
|
-
case "InternalServiceErrorException":
|
|
815
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
816
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
817
|
-
case "LimitExceededException":
|
|
818
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
819
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ThrottlingException":
|
|
821
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
822
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ValidationException":
|
|
824
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
825
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
const de_CreateOutpostResolverCommand = async (output, context) => {
|
|
836
|
-
if (output.statusCode >= 300) {
|
|
837
|
-
return de_CreateOutpostResolverCommandError(output, context);
|
|
838
|
-
}
|
|
839
|
-
const data = await parseBody(output.body, context);
|
|
840
|
-
let contents = {};
|
|
841
|
-
contents = (0, smithy_client_1._json)(data);
|
|
842
|
-
const response = {
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
...contents,
|
|
845
|
-
};
|
|
846
|
-
return response;
|
|
847
|
-
};
|
|
848
|
-
exports.de_CreateOutpostResolverCommand = de_CreateOutpostResolverCommand;
|
|
849
|
-
const de_CreateOutpostResolverCommandError = async (output, context) => {
|
|
850
|
-
const parsedOutput = {
|
|
851
|
-
...output,
|
|
852
|
-
body: await parseErrorBody(output.body, context),
|
|
853
|
-
};
|
|
854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "AccessDeniedException":
|
|
857
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
858
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
|
-
case "InternalServiceErrorException":
|
|
860
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
861
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
862
|
-
case "ResourceNotFoundException":
|
|
863
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
864
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ServiceQuotaExceededException":
|
|
866
|
-
case "com.amazonaws.route53resolver#ServiceQuotaExceededException":
|
|
867
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
868
|
-
case "ThrottlingException":
|
|
869
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
870
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ValidationException":
|
|
872
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
873
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
874
|
-
default:
|
|
875
|
-
const parsedBody = parsedOutput.body;
|
|
876
|
-
return throwDefaultError({
|
|
877
|
-
output,
|
|
878
|
-
parsedBody,
|
|
879
|
-
errorCode,
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
const de_CreateResolverEndpointCommand = async (output, context) => {
|
|
884
|
-
if (output.statusCode >= 300) {
|
|
885
|
-
return de_CreateResolverEndpointCommandError(output, context);
|
|
886
|
-
}
|
|
887
|
-
const data = await parseBody(output.body, context);
|
|
888
|
-
let contents = {};
|
|
889
|
-
contents = (0, smithy_client_1._json)(data);
|
|
890
|
-
const response = {
|
|
891
|
-
$metadata: deserializeMetadata(output),
|
|
892
|
-
...contents,
|
|
893
|
-
};
|
|
894
|
-
return response;
|
|
895
|
-
};
|
|
896
|
-
exports.de_CreateResolverEndpointCommand = de_CreateResolverEndpointCommand;
|
|
897
|
-
const de_CreateResolverEndpointCommandError = async (output, context) => {
|
|
898
|
-
const parsedOutput = {
|
|
899
|
-
...output,
|
|
900
|
-
body: await parseErrorBody(output.body, context),
|
|
901
|
-
};
|
|
902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
|
-
switch (errorCode) {
|
|
904
|
-
case "AccessDeniedException":
|
|
905
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
906
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
907
|
-
case "InternalServiceErrorException":
|
|
908
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
909
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
910
|
-
case "InvalidParameterException":
|
|
911
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
912
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
913
|
-
case "InvalidRequestException":
|
|
914
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
915
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
916
|
-
case "LimitExceededException":
|
|
917
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
918
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
919
|
-
case "ResourceExistsException":
|
|
920
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
921
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ResourceNotFoundException":
|
|
923
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
924
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ThrottlingException":
|
|
926
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
927
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
928
|
-
default:
|
|
929
|
-
const parsedBody = parsedOutput.body;
|
|
930
|
-
return throwDefaultError({
|
|
931
|
-
output,
|
|
932
|
-
parsedBody,
|
|
933
|
-
errorCode,
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
};
|
|
937
|
-
const de_CreateResolverQueryLogConfigCommand = async (output, context) => {
|
|
938
|
-
if (output.statusCode >= 300) {
|
|
939
|
-
return de_CreateResolverQueryLogConfigCommandError(output, context);
|
|
940
|
-
}
|
|
941
|
-
const data = await parseBody(output.body, context);
|
|
942
|
-
let contents = {};
|
|
943
|
-
contents = (0, smithy_client_1._json)(data);
|
|
944
|
-
const response = {
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
...contents,
|
|
947
|
-
};
|
|
948
|
-
return response;
|
|
949
|
-
};
|
|
950
|
-
exports.de_CreateResolverQueryLogConfigCommand = de_CreateResolverQueryLogConfigCommand;
|
|
951
|
-
const de_CreateResolverQueryLogConfigCommandError = async (output, context) => {
|
|
952
|
-
const parsedOutput = {
|
|
953
|
-
...output,
|
|
954
|
-
body: await parseErrorBody(output.body, context),
|
|
955
|
-
};
|
|
956
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
|
-
switch (errorCode) {
|
|
958
|
-
case "AccessDeniedException":
|
|
959
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
960
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
961
|
-
case "InternalServiceErrorException":
|
|
962
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
963
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
964
|
-
case "InvalidParameterException":
|
|
965
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
966
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
967
|
-
case "InvalidRequestException":
|
|
968
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
969
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
970
|
-
case "LimitExceededException":
|
|
971
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
972
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ResourceExistsException":
|
|
974
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
975
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ResourceNotFoundException":
|
|
977
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
978
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ThrottlingException":
|
|
980
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
981
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
982
|
-
default:
|
|
983
|
-
const parsedBody = parsedOutput.body;
|
|
984
|
-
return throwDefaultError({
|
|
985
|
-
output,
|
|
986
|
-
parsedBody,
|
|
987
|
-
errorCode,
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
|
-
const de_CreateResolverRuleCommand = async (output, context) => {
|
|
992
|
-
if (output.statusCode >= 300) {
|
|
993
|
-
return de_CreateResolverRuleCommandError(output, context);
|
|
994
|
-
}
|
|
995
|
-
const data = await parseBody(output.body, context);
|
|
996
|
-
let contents = {};
|
|
997
|
-
contents = (0, smithy_client_1._json)(data);
|
|
998
|
-
const response = {
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
...contents,
|
|
1001
|
-
};
|
|
1002
|
-
return response;
|
|
1003
|
-
};
|
|
1004
|
-
exports.de_CreateResolverRuleCommand = de_CreateResolverRuleCommand;
|
|
1005
|
-
const de_CreateResolverRuleCommandError = async (output, context) => {
|
|
1006
|
-
const parsedOutput = {
|
|
1007
|
-
...output,
|
|
1008
|
-
body: await parseErrorBody(output.body, context),
|
|
1009
|
-
};
|
|
1010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
|
-
switch (errorCode) {
|
|
1012
|
-
case "AccessDeniedException":
|
|
1013
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1014
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "InternalServiceErrorException":
|
|
1016
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1017
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "InvalidParameterException":
|
|
1019
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1020
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "InvalidRequestException":
|
|
1022
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1023
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "LimitExceededException":
|
|
1025
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
1026
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ResourceExistsException":
|
|
1028
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
1029
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ResourceNotFoundException":
|
|
1031
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1032
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "ResourceUnavailableException":
|
|
1034
|
-
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
1035
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "ThrottlingException":
|
|
1037
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1038
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1039
|
-
default:
|
|
1040
|
-
const parsedBody = parsedOutput.body;
|
|
1041
|
-
return throwDefaultError({
|
|
1042
|
-
output,
|
|
1043
|
-
parsedBody,
|
|
1044
|
-
errorCode,
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
const de_DeleteFirewallDomainListCommand = async (output, context) => {
|
|
1049
|
-
if (output.statusCode >= 300) {
|
|
1050
|
-
return de_DeleteFirewallDomainListCommandError(output, context);
|
|
1051
|
-
}
|
|
1052
|
-
const data = await parseBody(output.body, context);
|
|
1053
|
-
let contents = {};
|
|
1054
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1055
|
-
const response = {
|
|
1056
|
-
$metadata: deserializeMetadata(output),
|
|
1057
|
-
...contents,
|
|
1058
|
-
};
|
|
1059
|
-
return response;
|
|
1060
|
-
};
|
|
1061
|
-
exports.de_DeleteFirewallDomainListCommand = de_DeleteFirewallDomainListCommand;
|
|
1062
|
-
const de_DeleteFirewallDomainListCommandError = async (output, context) => {
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "AccessDeniedException":
|
|
1070
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1071
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ConflictException":
|
|
1073
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
1074
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "InternalServiceErrorException":
|
|
1076
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1077
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ResourceNotFoundException":
|
|
1079
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "ThrottlingException":
|
|
1082
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1083
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1084
|
-
default:
|
|
1085
|
-
const parsedBody = parsedOutput.body;
|
|
1086
|
-
return throwDefaultError({
|
|
1087
|
-
output,
|
|
1088
|
-
parsedBody,
|
|
1089
|
-
errorCode,
|
|
1090
|
-
});
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
const de_DeleteFirewallRuleCommand = async (output, context) => {
|
|
1094
|
-
if (output.statusCode >= 300) {
|
|
1095
|
-
return de_DeleteFirewallRuleCommandError(output, context);
|
|
1096
|
-
}
|
|
1097
|
-
const data = await parseBody(output.body, context);
|
|
1098
|
-
let contents = {};
|
|
1099
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1100
|
-
const response = {
|
|
1101
|
-
$metadata: deserializeMetadata(output),
|
|
1102
|
-
...contents,
|
|
1103
|
-
};
|
|
1104
|
-
return response;
|
|
1105
|
-
};
|
|
1106
|
-
exports.de_DeleteFirewallRuleCommand = de_DeleteFirewallRuleCommand;
|
|
1107
|
-
const de_DeleteFirewallRuleCommandError = async (output, context) => {
|
|
1108
|
-
const parsedOutput = {
|
|
1109
|
-
...output,
|
|
1110
|
-
body: await parseErrorBody(output.body, context),
|
|
1111
|
-
};
|
|
1112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
-
switch (errorCode) {
|
|
1114
|
-
case "AccessDeniedException":
|
|
1115
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1116
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "InternalServiceErrorException":
|
|
1118
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1119
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ResourceNotFoundException":
|
|
1121
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1122
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ThrottlingException":
|
|
1124
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1125
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1126
|
-
default:
|
|
1127
|
-
const parsedBody = parsedOutput.body;
|
|
1128
|
-
return throwDefaultError({
|
|
1129
|
-
output,
|
|
1130
|
-
parsedBody,
|
|
1131
|
-
errorCode,
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
const de_DeleteFirewallRuleGroupCommand = async (output, context) => {
|
|
1136
|
-
if (output.statusCode >= 300) {
|
|
1137
|
-
return de_DeleteFirewallRuleGroupCommandError(output, context);
|
|
1138
|
-
}
|
|
1139
|
-
const data = await parseBody(output.body, context);
|
|
1140
|
-
let contents = {};
|
|
1141
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1142
|
-
const response = {
|
|
1143
|
-
$metadata: deserializeMetadata(output),
|
|
1144
|
-
...contents,
|
|
1145
|
-
};
|
|
1146
|
-
return response;
|
|
1147
|
-
};
|
|
1148
|
-
exports.de_DeleteFirewallRuleGroupCommand = de_DeleteFirewallRuleGroupCommand;
|
|
1149
|
-
const de_DeleteFirewallRuleGroupCommandError = async (output, context) => {
|
|
1150
|
-
const parsedOutput = {
|
|
1151
|
-
...output,
|
|
1152
|
-
body: await parseErrorBody(output.body, context),
|
|
1153
|
-
};
|
|
1154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
|
-
switch (errorCode) {
|
|
1156
|
-
case "AccessDeniedException":
|
|
1157
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1158
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ConflictException":
|
|
1160
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
1161
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "InternalServiceErrorException":
|
|
1163
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1164
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ResourceNotFoundException":
|
|
1166
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1167
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ThrottlingException":
|
|
1169
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1170
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ValidationException":
|
|
1172
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1173
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1174
|
-
default:
|
|
1175
|
-
const parsedBody = parsedOutput.body;
|
|
1176
|
-
return throwDefaultError({
|
|
1177
|
-
output,
|
|
1178
|
-
parsedBody,
|
|
1179
|
-
errorCode,
|
|
1180
|
-
});
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
const de_DeleteOutpostResolverCommand = async (output, context) => {
|
|
1184
|
-
if (output.statusCode >= 300) {
|
|
1185
|
-
return de_DeleteOutpostResolverCommandError(output, context);
|
|
1186
|
-
}
|
|
1187
|
-
const data = await parseBody(output.body, context);
|
|
1188
|
-
let contents = {};
|
|
1189
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1190
|
-
const response = {
|
|
1191
|
-
$metadata: deserializeMetadata(output),
|
|
1192
|
-
...contents,
|
|
1193
|
-
};
|
|
1194
|
-
return response;
|
|
1195
|
-
};
|
|
1196
|
-
exports.de_DeleteOutpostResolverCommand = de_DeleteOutpostResolverCommand;
|
|
1197
|
-
const de_DeleteOutpostResolverCommandError = async (output, context) => {
|
|
1198
|
-
const parsedOutput = {
|
|
1199
|
-
...output,
|
|
1200
|
-
body: await parseErrorBody(output.body, context),
|
|
1201
|
-
};
|
|
1202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1203
|
-
switch (errorCode) {
|
|
1204
|
-
case "AccessDeniedException":
|
|
1205
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ConflictException":
|
|
1208
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
1209
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "InternalServiceErrorException":
|
|
1211
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1212
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ResourceNotFoundException":
|
|
1214
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ThrottlingException":
|
|
1217
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1218
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ValidationException":
|
|
1220
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1222
|
-
default:
|
|
1223
|
-
const parsedBody = parsedOutput.body;
|
|
1224
|
-
return throwDefaultError({
|
|
1225
|
-
output,
|
|
1226
|
-
parsedBody,
|
|
1227
|
-
errorCode,
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
};
|
|
1231
|
-
const de_DeleteResolverEndpointCommand = async (output, context) => {
|
|
1232
|
-
if (output.statusCode >= 300) {
|
|
1233
|
-
return de_DeleteResolverEndpointCommandError(output, context);
|
|
1234
|
-
}
|
|
1235
|
-
const data = await parseBody(output.body, context);
|
|
1236
|
-
let contents = {};
|
|
1237
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1238
|
-
const response = {
|
|
1239
|
-
$metadata: deserializeMetadata(output),
|
|
1240
|
-
...contents,
|
|
1241
|
-
};
|
|
1242
|
-
return response;
|
|
1243
|
-
};
|
|
1244
|
-
exports.de_DeleteResolverEndpointCommand = de_DeleteResolverEndpointCommand;
|
|
1245
|
-
const de_DeleteResolverEndpointCommandError = async (output, context) => {
|
|
1246
|
-
const parsedOutput = {
|
|
1247
|
-
...output,
|
|
1248
|
-
body: await parseErrorBody(output.body, context),
|
|
1249
|
-
};
|
|
1250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
-
switch (errorCode) {
|
|
1252
|
-
case "InternalServiceErrorException":
|
|
1253
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1254
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "InvalidParameterException":
|
|
1256
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1257
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "InvalidRequestException":
|
|
1259
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1260
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "ResourceNotFoundException":
|
|
1262
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1263
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ThrottlingException":
|
|
1265
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1266
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1267
|
-
default:
|
|
1268
|
-
const parsedBody = parsedOutput.body;
|
|
1269
|
-
return throwDefaultError({
|
|
1270
|
-
output,
|
|
1271
|
-
parsedBody,
|
|
1272
|
-
errorCode,
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
const de_DeleteResolverQueryLogConfigCommand = async (output, context) => {
|
|
1277
|
-
if (output.statusCode >= 300) {
|
|
1278
|
-
return de_DeleteResolverQueryLogConfigCommandError(output, context);
|
|
1279
|
-
}
|
|
1280
|
-
const data = await parseBody(output.body, context);
|
|
1281
|
-
let contents = {};
|
|
1282
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1283
|
-
const response = {
|
|
1284
|
-
$metadata: deserializeMetadata(output),
|
|
1285
|
-
...contents,
|
|
1286
|
-
};
|
|
1287
|
-
return response;
|
|
1288
|
-
};
|
|
1289
|
-
exports.de_DeleteResolverQueryLogConfigCommand = de_DeleteResolverQueryLogConfigCommand;
|
|
1290
|
-
const de_DeleteResolverQueryLogConfigCommandError = async (output, context) => {
|
|
1291
|
-
const parsedOutput = {
|
|
1292
|
-
...output,
|
|
1293
|
-
body: await parseErrorBody(output.body, context),
|
|
1294
|
-
};
|
|
1295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1296
|
-
switch (errorCode) {
|
|
1297
|
-
case "AccessDeniedException":
|
|
1298
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1299
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "InternalServiceErrorException":
|
|
1301
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1302
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "InvalidParameterException":
|
|
1304
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1305
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "InvalidRequestException":
|
|
1307
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1308
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "ResourceNotFoundException":
|
|
1310
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1311
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ThrottlingException":
|
|
1313
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1314
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1315
|
-
default:
|
|
1316
|
-
const parsedBody = parsedOutput.body;
|
|
1317
|
-
return throwDefaultError({
|
|
1318
|
-
output,
|
|
1319
|
-
parsedBody,
|
|
1320
|
-
errorCode,
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
const de_DeleteResolverRuleCommand = async (output, context) => {
|
|
1325
|
-
if (output.statusCode >= 300) {
|
|
1326
|
-
return de_DeleteResolverRuleCommandError(output, context);
|
|
1327
|
-
}
|
|
1328
|
-
const data = await parseBody(output.body, context);
|
|
1329
|
-
let contents = {};
|
|
1330
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1331
|
-
const response = {
|
|
1332
|
-
$metadata: deserializeMetadata(output),
|
|
1333
|
-
...contents,
|
|
1334
|
-
};
|
|
1335
|
-
return response;
|
|
1336
|
-
};
|
|
1337
|
-
exports.de_DeleteResolverRuleCommand = de_DeleteResolverRuleCommand;
|
|
1338
|
-
const de_DeleteResolverRuleCommandError = async (output, context) => {
|
|
1339
|
-
const parsedOutput = {
|
|
1340
|
-
...output,
|
|
1341
|
-
body: await parseErrorBody(output.body, context),
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "InternalServiceErrorException":
|
|
1346
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1347
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "InvalidParameterException":
|
|
1349
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1350
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ResourceInUseException":
|
|
1352
|
-
case "com.amazonaws.route53resolver#ResourceInUseException":
|
|
1353
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ResourceNotFoundException":
|
|
1355
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ThrottlingException":
|
|
1358
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1359
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1360
|
-
default:
|
|
1361
|
-
const parsedBody = parsedOutput.body;
|
|
1362
|
-
return throwDefaultError({
|
|
1363
|
-
output,
|
|
1364
|
-
parsedBody,
|
|
1365
|
-
errorCode,
|
|
1366
|
-
});
|
|
1367
|
-
}
|
|
1368
|
-
};
|
|
1369
|
-
const de_DisassociateFirewallRuleGroupCommand = async (output, context) => {
|
|
1370
|
-
if (output.statusCode >= 300) {
|
|
1371
|
-
return de_DisassociateFirewallRuleGroupCommandError(output, context);
|
|
1372
|
-
}
|
|
1373
|
-
const data = await parseBody(output.body, context);
|
|
1374
|
-
let contents = {};
|
|
1375
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1376
|
-
const response = {
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
...contents,
|
|
1379
|
-
};
|
|
1380
|
-
return response;
|
|
1381
|
-
};
|
|
1382
|
-
exports.de_DisassociateFirewallRuleGroupCommand = de_DisassociateFirewallRuleGroupCommand;
|
|
1383
|
-
const de_DisassociateFirewallRuleGroupCommandError = async (output, context) => {
|
|
1384
|
-
const parsedOutput = {
|
|
1385
|
-
...output,
|
|
1386
|
-
body: await parseErrorBody(output.body, context),
|
|
1387
|
-
};
|
|
1388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
|
-
switch (errorCode) {
|
|
1390
|
-
case "AccessDeniedException":
|
|
1391
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1392
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ConflictException":
|
|
1394
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
1395
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "InternalServiceErrorException":
|
|
1397
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1398
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "ResourceNotFoundException":
|
|
1400
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1401
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ThrottlingException":
|
|
1403
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1404
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ValidationException":
|
|
1406
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1407
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1408
|
-
default:
|
|
1409
|
-
const parsedBody = parsedOutput.body;
|
|
1410
|
-
return throwDefaultError({
|
|
1411
|
-
output,
|
|
1412
|
-
parsedBody,
|
|
1413
|
-
errorCode,
|
|
1414
|
-
});
|
|
1415
|
-
}
|
|
1416
|
-
};
|
|
1417
|
-
const de_DisassociateResolverEndpointIpAddressCommand = async (output, context) => {
|
|
1418
|
-
if (output.statusCode >= 300) {
|
|
1419
|
-
return de_DisassociateResolverEndpointIpAddressCommandError(output, context);
|
|
1420
|
-
}
|
|
1421
|
-
const data = await parseBody(output.body, context);
|
|
1422
|
-
let contents = {};
|
|
1423
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1424
|
-
const response = {
|
|
1425
|
-
$metadata: deserializeMetadata(output),
|
|
1426
|
-
...contents,
|
|
1427
|
-
};
|
|
1428
|
-
return response;
|
|
1429
|
-
};
|
|
1430
|
-
exports.de_DisassociateResolverEndpointIpAddressCommand = de_DisassociateResolverEndpointIpAddressCommand;
|
|
1431
|
-
const de_DisassociateResolverEndpointIpAddressCommandError = async (output, context) => {
|
|
1432
|
-
const parsedOutput = {
|
|
1433
|
-
...output,
|
|
1434
|
-
body: await parseErrorBody(output.body, context),
|
|
1435
|
-
};
|
|
1436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
|
-
switch (errorCode) {
|
|
1438
|
-
case "InternalServiceErrorException":
|
|
1439
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1440
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "InvalidParameterException":
|
|
1442
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1443
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "InvalidRequestException":
|
|
1445
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1446
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "ResourceExistsException":
|
|
1448
|
-
case "com.amazonaws.route53resolver#ResourceExistsException":
|
|
1449
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ResourceNotFoundException":
|
|
1451
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1452
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "ThrottlingException":
|
|
1454
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1455
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode,
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
const de_DisassociateResolverQueryLogConfigCommand = async (output, context) => {
|
|
1466
|
-
if (output.statusCode >= 300) {
|
|
1467
|
-
return de_DisassociateResolverQueryLogConfigCommandError(output, context);
|
|
1468
|
-
}
|
|
1469
|
-
const data = await parseBody(output.body, context);
|
|
1470
|
-
let contents = {};
|
|
1471
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1472
|
-
const response = {
|
|
1473
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
-
...contents,
|
|
1475
|
-
};
|
|
1476
|
-
return response;
|
|
1477
|
-
};
|
|
1478
|
-
exports.de_DisassociateResolverQueryLogConfigCommand = de_DisassociateResolverQueryLogConfigCommand;
|
|
1479
|
-
const de_DisassociateResolverQueryLogConfigCommandError = async (output, context) => {
|
|
1480
|
-
const parsedOutput = {
|
|
1481
|
-
...output,
|
|
1482
|
-
body: await parseErrorBody(output.body, context),
|
|
1483
|
-
};
|
|
1484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
|
-
switch (errorCode) {
|
|
1486
|
-
case "AccessDeniedException":
|
|
1487
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1488
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "InternalServiceErrorException":
|
|
1490
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1491
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "InvalidParameterException":
|
|
1493
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1494
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "InvalidRequestException":
|
|
1496
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1497
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ResourceNotFoundException":
|
|
1499
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ThrottlingException":
|
|
1502
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1503
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1504
|
-
default:
|
|
1505
|
-
const parsedBody = parsedOutput.body;
|
|
1506
|
-
return throwDefaultError({
|
|
1507
|
-
output,
|
|
1508
|
-
parsedBody,
|
|
1509
|
-
errorCode,
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
};
|
|
1513
|
-
const de_DisassociateResolverRuleCommand = async (output, context) => {
|
|
1514
|
-
if (output.statusCode >= 300) {
|
|
1515
|
-
return de_DisassociateResolverRuleCommandError(output, context);
|
|
1516
|
-
}
|
|
1517
|
-
const data = await parseBody(output.body, context);
|
|
1518
|
-
let contents = {};
|
|
1519
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1520
|
-
const response = {
|
|
1521
|
-
$metadata: deserializeMetadata(output),
|
|
1522
|
-
...contents,
|
|
1523
|
-
};
|
|
1524
|
-
return response;
|
|
1525
|
-
};
|
|
1526
|
-
exports.de_DisassociateResolverRuleCommand = de_DisassociateResolverRuleCommand;
|
|
1527
|
-
const de_DisassociateResolverRuleCommandError = async (output, context) => {
|
|
1528
|
-
const parsedOutput = {
|
|
1529
|
-
...output,
|
|
1530
|
-
body: await parseErrorBody(output.body, context),
|
|
1531
|
-
};
|
|
1532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
-
switch (errorCode) {
|
|
1534
|
-
case "InternalServiceErrorException":
|
|
1535
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1536
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "InvalidParameterException":
|
|
1538
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1539
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ResourceNotFoundException":
|
|
1541
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1542
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ThrottlingException":
|
|
1544
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1545
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode,
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
|
-
const de_GetFirewallConfigCommand = async (output, context) => {
|
|
1556
|
-
if (output.statusCode >= 300) {
|
|
1557
|
-
return de_GetFirewallConfigCommandError(output, context);
|
|
1558
|
-
}
|
|
1559
|
-
const data = await parseBody(output.body, context);
|
|
1560
|
-
let contents = {};
|
|
1561
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1562
|
-
const response = {
|
|
1563
|
-
$metadata: deserializeMetadata(output),
|
|
1564
|
-
...contents,
|
|
1565
|
-
};
|
|
1566
|
-
return response;
|
|
1567
|
-
};
|
|
1568
|
-
exports.de_GetFirewallConfigCommand = de_GetFirewallConfigCommand;
|
|
1569
|
-
const de_GetFirewallConfigCommandError = async (output, context) => {
|
|
1570
|
-
const parsedOutput = {
|
|
1571
|
-
...output,
|
|
1572
|
-
body: await parseErrorBody(output.body, context),
|
|
1573
|
-
};
|
|
1574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
|
-
switch (errorCode) {
|
|
1576
|
-
case "AccessDeniedException":
|
|
1577
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1578
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "InternalServiceErrorException":
|
|
1580
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1581
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ResourceNotFoundException":
|
|
1583
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1584
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ThrottlingException":
|
|
1586
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1587
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ValidationException":
|
|
1589
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1590
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1591
|
-
default:
|
|
1592
|
-
const parsedBody = parsedOutput.body;
|
|
1593
|
-
return throwDefaultError({
|
|
1594
|
-
output,
|
|
1595
|
-
parsedBody,
|
|
1596
|
-
errorCode,
|
|
1597
|
-
});
|
|
1598
|
-
}
|
|
1599
|
-
};
|
|
1600
|
-
const de_GetFirewallDomainListCommand = async (output, context) => {
|
|
1601
|
-
if (output.statusCode >= 300) {
|
|
1602
|
-
return de_GetFirewallDomainListCommandError(output, context);
|
|
1603
|
-
}
|
|
1604
|
-
const data = await parseBody(output.body, context);
|
|
1605
|
-
let contents = {};
|
|
1606
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1607
|
-
const response = {
|
|
1608
|
-
$metadata: deserializeMetadata(output),
|
|
1609
|
-
...contents,
|
|
1610
|
-
};
|
|
1611
|
-
return response;
|
|
1612
|
-
};
|
|
1613
|
-
exports.de_GetFirewallDomainListCommand = de_GetFirewallDomainListCommand;
|
|
1614
|
-
const de_GetFirewallDomainListCommandError = async (output, context) => {
|
|
1615
|
-
const parsedOutput = {
|
|
1616
|
-
...output,
|
|
1617
|
-
body: await parseErrorBody(output.body, context),
|
|
1618
|
-
};
|
|
1619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1620
|
-
switch (errorCode) {
|
|
1621
|
-
case "AccessDeniedException":
|
|
1622
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1623
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "InternalServiceErrorException":
|
|
1625
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1626
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "ResourceNotFoundException":
|
|
1628
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1629
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "ThrottlingException":
|
|
1631
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1632
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1633
|
-
default:
|
|
1634
|
-
const parsedBody = parsedOutput.body;
|
|
1635
|
-
return throwDefaultError({
|
|
1636
|
-
output,
|
|
1637
|
-
parsedBody,
|
|
1638
|
-
errorCode,
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1641
|
-
};
|
|
1642
|
-
const de_GetFirewallRuleGroupCommand = async (output, context) => {
|
|
1643
|
-
if (output.statusCode >= 300) {
|
|
1644
|
-
return de_GetFirewallRuleGroupCommandError(output, context);
|
|
1645
|
-
}
|
|
1646
|
-
const data = await parseBody(output.body, context);
|
|
1647
|
-
let contents = {};
|
|
1648
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1649
|
-
const response = {
|
|
1650
|
-
$metadata: deserializeMetadata(output),
|
|
1651
|
-
...contents,
|
|
1652
|
-
};
|
|
1653
|
-
return response;
|
|
1654
|
-
};
|
|
1655
|
-
exports.de_GetFirewallRuleGroupCommand = de_GetFirewallRuleGroupCommand;
|
|
1656
|
-
const de_GetFirewallRuleGroupCommandError = async (output, context) => {
|
|
1657
|
-
const parsedOutput = {
|
|
1658
|
-
...output,
|
|
1659
|
-
body: await parseErrorBody(output.body, context),
|
|
1660
|
-
};
|
|
1661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
|
-
switch (errorCode) {
|
|
1663
|
-
case "AccessDeniedException":
|
|
1664
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1665
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "InternalServiceErrorException":
|
|
1667
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1668
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "ResourceNotFoundException":
|
|
1670
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1671
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "ThrottlingException":
|
|
1673
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1674
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1675
|
-
default:
|
|
1676
|
-
const parsedBody = parsedOutput.body;
|
|
1677
|
-
return throwDefaultError({
|
|
1678
|
-
output,
|
|
1679
|
-
parsedBody,
|
|
1680
|
-
errorCode,
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
};
|
|
1684
|
-
const de_GetFirewallRuleGroupAssociationCommand = async (output, context) => {
|
|
1685
|
-
if (output.statusCode >= 300) {
|
|
1686
|
-
return de_GetFirewallRuleGroupAssociationCommandError(output, context);
|
|
1687
|
-
}
|
|
1688
|
-
const data = await parseBody(output.body, context);
|
|
1689
|
-
let contents = {};
|
|
1690
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1691
|
-
const response = {
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
...contents,
|
|
1694
|
-
};
|
|
1695
|
-
return response;
|
|
1696
|
-
};
|
|
1697
|
-
exports.de_GetFirewallRuleGroupAssociationCommand = de_GetFirewallRuleGroupAssociationCommand;
|
|
1698
|
-
const de_GetFirewallRuleGroupAssociationCommandError = async (output, context) => {
|
|
1699
|
-
const parsedOutput = {
|
|
1700
|
-
...output,
|
|
1701
|
-
body: await parseErrorBody(output.body, context),
|
|
1702
|
-
};
|
|
1703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
-
switch (errorCode) {
|
|
1705
|
-
case "AccessDeniedException":
|
|
1706
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1707
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "InternalServiceErrorException":
|
|
1709
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1710
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ResourceNotFoundException":
|
|
1712
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "ThrottlingException":
|
|
1715
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1716
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1717
|
-
default:
|
|
1718
|
-
const parsedBody = parsedOutput.body;
|
|
1719
|
-
return throwDefaultError({
|
|
1720
|
-
output,
|
|
1721
|
-
parsedBody,
|
|
1722
|
-
errorCode,
|
|
1723
|
-
});
|
|
1724
|
-
}
|
|
1725
|
-
};
|
|
1726
|
-
const de_GetFirewallRuleGroupPolicyCommand = async (output, context) => {
|
|
1727
|
-
if (output.statusCode >= 300) {
|
|
1728
|
-
return de_GetFirewallRuleGroupPolicyCommandError(output, context);
|
|
1729
|
-
}
|
|
1730
|
-
const data = await parseBody(output.body, context);
|
|
1731
|
-
let contents = {};
|
|
1732
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1733
|
-
const response = {
|
|
1734
|
-
$metadata: deserializeMetadata(output),
|
|
1735
|
-
...contents,
|
|
1736
|
-
};
|
|
1737
|
-
return response;
|
|
1738
|
-
};
|
|
1739
|
-
exports.de_GetFirewallRuleGroupPolicyCommand = de_GetFirewallRuleGroupPolicyCommand;
|
|
1740
|
-
const de_GetFirewallRuleGroupPolicyCommandError = async (output, context) => {
|
|
1741
|
-
const parsedOutput = {
|
|
1742
|
-
...output,
|
|
1743
|
-
body: await parseErrorBody(output.body, context),
|
|
1744
|
-
};
|
|
1745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
|
-
switch (errorCode) {
|
|
1747
|
-
case "AccessDeniedException":
|
|
1748
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1749
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "InternalServiceErrorException":
|
|
1751
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1752
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "ResourceNotFoundException":
|
|
1754
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1755
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "ThrottlingException":
|
|
1757
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1758
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "ValidationException":
|
|
1760
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1761
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1762
|
-
default:
|
|
1763
|
-
const parsedBody = parsedOutput.body;
|
|
1764
|
-
return throwDefaultError({
|
|
1765
|
-
output,
|
|
1766
|
-
parsedBody,
|
|
1767
|
-
errorCode,
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
};
|
|
1771
|
-
const de_GetOutpostResolverCommand = async (output, context) => {
|
|
1772
|
-
if (output.statusCode >= 300) {
|
|
1773
|
-
return de_GetOutpostResolverCommandError(output, context);
|
|
1774
|
-
}
|
|
1775
|
-
const data = await parseBody(output.body, context);
|
|
1776
|
-
let contents = {};
|
|
1777
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1778
|
-
const response = {
|
|
1779
|
-
$metadata: deserializeMetadata(output),
|
|
1780
|
-
...contents,
|
|
1781
|
-
};
|
|
1782
|
-
return response;
|
|
1783
|
-
};
|
|
1784
|
-
exports.de_GetOutpostResolverCommand = de_GetOutpostResolverCommand;
|
|
1785
|
-
const de_GetOutpostResolverCommandError = async (output, context) => {
|
|
1786
|
-
const parsedOutput = {
|
|
1787
|
-
...output,
|
|
1788
|
-
body: await parseErrorBody(output.body, context),
|
|
1789
|
-
};
|
|
1790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1791
|
-
switch (errorCode) {
|
|
1792
|
-
case "AccessDeniedException":
|
|
1793
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1794
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "InternalServiceErrorException":
|
|
1796
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1797
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "ResourceNotFoundException":
|
|
1799
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1800
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ThrottlingException":
|
|
1802
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1803
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ValidationException":
|
|
1805
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1806
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1807
|
-
default:
|
|
1808
|
-
const parsedBody = parsedOutput.body;
|
|
1809
|
-
return throwDefaultError({
|
|
1810
|
-
output,
|
|
1811
|
-
parsedBody,
|
|
1812
|
-
errorCode,
|
|
1813
|
-
});
|
|
1814
|
-
}
|
|
1815
|
-
};
|
|
1816
|
-
const de_GetResolverConfigCommand = async (output, context) => {
|
|
1817
|
-
if (output.statusCode >= 300) {
|
|
1818
|
-
return de_GetResolverConfigCommandError(output, context);
|
|
1819
|
-
}
|
|
1820
|
-
const data = await parseBody(output.body, context);
|
|
1821
|
-
let contents = {};
|
|
1822
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1823
|
-
const response = {
|
|
1824
|
-
$metadata: deserializeMetadata(output),
|
|
1825
|
-
...contents,
|
|
1826
|
-
};
|
|
1827
|
-
return response;
|
|
1828
|
-
};
|
|
1829
|
-
exports.de_GetResolverConfigCommand = de_GetResolverConfigCommand;
|
|
1830
|
-
const de_GetResolverConfigCommandError = async (output, context) => {
|
|
1831
|
-
const parsedOutput = {
|
|
1832
|
-
...output,
|
|
1833
|
-
body: await parseErrorBody(output.body, context),
|
|
1834
|
-
};
|
|
1835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1836
|
-
switch (errorCode) {
|
|
1837
|
-
case "AccessDeniedException":
|
|
1838
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1839
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "InternalServiceErrorException":
|
|
1841
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1842
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "InvalidParameterException":
|
|
1844
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1845
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "ResourceNotFoundException":
|
|
1847
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1848
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "ThrottlingException":
|
|
1850
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1851
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ValidationException":
|
|
1853
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
1854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1855
|
-
default:
|
|
1856
|
-
const parsedBody = parsedOutput.body;
|
|
1857
|
-
return throwDefaultError({
|
|
1858
|
-
output,
|
|
1859
|
-
parsedBody,
|
|
1860
|
-
errorCode,
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
};
|
|
1864
|
-
const de_GetResolverDnssecConfigCommand = async (output, context) => {
|
|
1865
|
-
if (output.statusCode >= 300) {
|
|
1866
|
-
return de_GetResolverDnssecConfigCommandError(output, context);
|
|
1867
|
-
}
|
|
1868
|
-
const data = await parseBody(output.body, context);
|
|
1869
|
-
let contents = {};
|
|
1870
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1871
|
-
const response = {
|
|
1872
|
-
$metadata: deserializeMetadata(output),
|
|
1873
|
-
...contents,
|
|
1874
|
-
};
|
|
1875
|
-
return response;
|
|
1876
|
-
};
|
|
1877
|
-
exports.de_GetResolverDnssecConfigCommand = de_GetResolverDnssecConfigCommand;
|
|
1878
|
-
const de_GetResolverDnssecConfigCommandError = async (output, context) => {
|
|
1879
|
-
const parsedOutput = {
|
|
1880
|
-
...output,
|
|
1881
|
-
body: await parseErrorBody(output.body, context),
|
|
1882
|
-
};
|
|
1883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
|
-
switch (errorCode) {
|
|
1885
|
-
case "AccessDeniedException":
|
|
1886
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1887
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "InternalServiceErrorException":
|
|
1889
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1890
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "InvalidParameterException":
|
|
1892
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1893
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "InvalidRequestException":
|
|
1895
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1896
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "ResourceNotFoundException":
|
|
1898
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ThrottlingException":
|
|
1901
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1902
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1903
|
-
default:
|
|
1904
|
-
const parsedBody = parsedOutput.body;
|
|
1905
|
-
return throwDefaultError({
|
|
1906
|
-
output,
|
|
1907
|
-
parsedBody,
|
|
1908
|
-
errorCode,
|
|
1909
|
-
});
|
|
1910
|
-
}
|
|
1911
|
-
};
|
|
1912
|
-
const de_GetResolverEndpointCommand = async (output, context) => {
|
|
1913
|
-
if (output.statusCode >= 300) {
|
|
1914
|
-
return de_GetResolverEndpointCommandError(output, context);
|
|
1915
|
-
}
|
|
1916
|
-
const data = await parseBody(output.body, context);
|
|
1917
|
-
let contents = {};
|
|
1918
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1919
|
-
const response = {
|
|
1920
|
-
$metadata: deserializeMetadata(output),
|
|
1921
|
-
...contents,
|
|
1922
|
-
};
|
|
1923
|
-
return response;
|
|
1924
|
-
};
|
|
1925
|
-
exports.de_GetResolverEndpointCommand = de_GetResolverEndpointCommand;
|
|
1926
|
-
const de_GetResolverEndpointCommandError = async (output, context) => {
|
|
1927
|
-
const parsedOutput = {
|
|
1928
|
-
...output,
|
|
1929
|
-
body: await parseErrorBody(output.body, context),
|
|
1930
|
-
};
|
|
1931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
-
switch (errorCode) {
|
|
1933
|
-
case "InternalServiceErrorException":
|
|
1934
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1935
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "InvalidParameterException":
|
|
1937
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1938
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "ResourceNotFoundException":
|
|
1940
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1941
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "ThrottlingException":
|
|
1943
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1944
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1945
|
-
default:
|
|
1946
|
-
const parsedBody = parsedOutput.body;
|
|
1947
|
-
return throwDefaultError({
|
|
1948
|
-
output,
|
|
1949
|
-
parsedBody,
|
|
1950
|
-
errorCode,
|
|
1951
|
-
});
|
|
1952
|
-
}
|
|
1953
|
-
};
|
|
1954
|
-
const de_GetResolverQueryLogConfigCommand = async (output, context) => {
|
|
1955
|
-
if (output.statusCode >= 300) {
|
|
1956
|
-
return de_GetResolverQueryLogConfigCommandError(output, context);
|
|
1957
|
-
}
|
|
1958
|
-
const data = await parseBody(output.body, context);
|
|
1959
|
-
let contents = {};
|
|
1960
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1961
|
-
const response = {
|
|
1962
|
-
$metadata: deserializeMetadata(output),
|
|
1963
|
-
...contents,
|
|
1964
|
-
};
|
|
1965
|
-
return response;
|
|
1966
|
-
};
|
|
1967
|
-
exports.de_GetResolverQueryLogConfigCommand = de_GetResolverQueryLogConfigCommand;
|
|
1968
|
-
const de_GetResolverQueryLogConfigCommandError = async (output, context) => {
|
|
1969
|
-
const parsedOutput = {
|
|
1970
|
-
...output,
|
|
1971
|
-
body: await parseErrorBody(output.body, context),
|
|
1972
|
-
};
|
|
1973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1974
|
-
switch (errorCode) {
|
|
1975
|
-
case "AccessDeniedException":
|
|
1976
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
1977
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "InternalServiceErrorException":
|
|
1979
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
1980
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "InvalidParameterException":
|
|
1982
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
1983
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "InvalidRequestException":
|
|
1985
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
1986
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "ResourceNotFoundException":
|
|
1988
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
1989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "ThrottlingException":
|
|
1991
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
1992
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1993
|
-
default:
|
|
1994
|
-
const parsedBody = parsedOutput.body;
|
|
1995
|
-
return throwDefaultError({
|
|
1996
|
-
output,
|
|
1997
|
-
parsedBody,
|
|
1998
|
-
errorCode,
|
|
1999
|
-
});
|
|
2000
|
-
}
|
|
2001
|
-
};
|
|
2002
|
-
const de_GetResolverQueryLogConfigAssociationCommand = async (output, context) => {
|
|
2003
|
-
if (output.statusCode >= 300) {
|
|
2004
|
-
return de_GetResolverQueryLogConfigAssociationCommandError(output, context);
|
|
2005
|
-
}
|
|
2006
|
-
const data = await parseBody(output.body, context);
|
|
2007
|
-
let contents = {};
|
|
2008
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2009
|
-
const response = {
|
|
2010
|
-
$metadata: deserializeMetadata(output),
|
|
2011
|
-
...contents,
|
|
2012
|
-
};
|
|
2013
|
-
return response;
|
|
2014
|
-
};
|
|
2015
|
-
exports.de_GetResolverQueryLogConfigAssociationCommand = de_GetResolverQueryLogConfigAssociationCommand;
|
|
2016
|
-
const de_GetResolverQueryLogConfigAssociationCommandError = async (output, context) => {
|
|
2017
|
-
const parsedOutput = {
|
|
2018
|
-
...output,
|
|
2019
|
-
body: await parseErrorBody(output.body, context),
|
|
2020
|
-
};
|
|
2021
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
|
-
switch (errorCode) {
|
|
2023
|
-
case "AccessDeniedException":
|
|
2024
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2025
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "InternalServiceErrorException":
|
|
2027
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2028
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2029
|
-
case "InvalidParameterException":
|
|
2030
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2031
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2032
|
-
case "InvalidRequestException":
|
|
2033
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2034
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "ResourceNotFoundException":
|
|
2036
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2037
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ThrottlingException":
|
|
2039
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2040
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody,
|
|
2046
|
-
errorCode,
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
|
-
const de_GetResolverQueryLogConfigPolicyCommand = async (output, context) => {
|
|
2051
|
-
if (output.statusCode >= 300) {
|
|
2052
|
-
return de_GetResolverQueryLogConfigPolicyCommandError(output, context);
|
|
2053
|
-
}
|
|
2054
|
-
const data = await parseBody(output.body, context);
|
|
2055
|
-
let contents = {};
|
|
2056
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2057
|
-
const response = {
|
|
2058
|
-
$metadata: deserializeMetadata(output),
|
|
2059
|
-
...contents,
|
|
2060
|
-
};
|
|
2061
|
-
return response;
|
|
2062
|
-
};
|
|
2063
|
-
exports.de_GetResolverQueryLogConfigPolicyCommand = de_GetResolverQueryLogConfigPolicyCommand;
|
|
2064
|
-
const de_GetResolverQueryLogConfigPolicyCommandError = async (output, context) => {
|
|
2065
|
-
const parsedOutput = {
|
|
2066
|
-
...output,
|
|
2067
|
-
body: await parseErrorBody(output.body, context),
|
|
2068
|
-
};
|
|
2069
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2070
|
-
switch (errorCode) {
|
|
2071
|
-
case "AccessDeniedException":
|
|
2072
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2073
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "InternalServiceErrorException":
|
|
2075
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2076
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2077
|
-
case "InvalidParameterException":
|
|
2078
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2079
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "InvalidRequestException":
|
|
2081
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2082
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "UnknownResourceException":
|
|
2084
|
-
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
2085
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2086
|
-
default:
|
|
2087
|
-
const parsedBody = parsedOutput.body;
|
|
2088
|
-
return throwDefaultError({
|
|
2089
|
-
output,
|
|
2090
|
-
parsedBody,
|
|
2091
|
-
errorCode,
|
|
2092
|
-
});
|
|
2093
|
-
}
|
|
2094
|
-
};
|
|
2095
|
-
const de_GetResolverRuleCommand = async (output, context) => {
|
|
2096
|
-
if (output.statusCode >= 300) {
|
|
2097
|
-
return de_GetResolverRuleCommandError(output, context);
|
|
2098
|
-
}
|
|
2099
|
-
const data = await parseBody(output.body, context);
|
|
2100
|
-
let contents = {};
|
|
2101
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2102
|
-
const response = {
|
|
2103
|
-
$metadata: deserializeMetadata(output),
|
|
2104
|
-
...contents,
|
|
2105
|
-
};
|
|
2106
|
-
return response;
|
|
2107
|
-
};
|
|
2108
|
-
exports.de_GetResolverRuleCommand = de_GetResolverRuleCommand;
|
|
2109
|
-
const de_GetResolverRuleCommandError = async (output, context) => {
|
|
2110
|
-
const parsedOutput = {
|
|
2111
|
-
...output,
|
|
2112
|
-
body: await parseErrorBody(output.body, context),
|
|
2113
|
-
};
|
|
2114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2115
|
-
switch (errorCode) {
|
|
2116
|
-
case "InternalServiceErrorException":
|
|
2117
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2118
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "InvalidParameterException":
|
|
2120
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2121
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "ResourceNotFoundException":
|
|
2123
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2124
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "ThrottlingException":
|
|
2126
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2127
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2128
|
-
default:
|
|
2129
|
-
const parsedBody = parsedOutput.body;
|
|
2130
|
-
return throwDefaultError({
|
|
2131
|
-
output,
|
|
2132
|
-
parsedBody,
|
|
2133
|
-
errorCode,
|
|
2134
|
-
});
|
|
2135
|
-
}
|
|
2136
|
-
};
|
|
2137
|
-
const de_GetResolverRuleAssociationCommand = async (output, context) => {
|
|
2138
|
-
if (output.statusCode >= 300) {
|
|
2139
|
-
return de_GetResolverRuleAssociationCommandError(output, context);
|
|
2140
|
-
}
|
|
2141
|
-
const data = await parseBody(output.body, context);
|
|
2142
|
-
let contents = {};
|
|
2143
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2144
|
-
const response = {
|
|
2145
|
-
$metadata: deserializeMetadata(output),
|
|
2146
|
-
...contents,
|
|
2147
|
-
};
|
|
2148
|
-
return response;
|
|
2149
|
-
};
|
|
2150
|
-
exports.de_GetResolverRuleAssociationCommand = de_GetResolverRuleAssociationCommand;
|
|
2151
|
-
const de_GetResolverRuleAssociationCommandError = async (output, context) => {
|
|
2152
|
-
const parsedOutput = {
|
|
2153
|
-
...output,
|
|
2154
|
-
body: await parseErrorBody(output.body, context),
|
|
2155
|
-
};
|
|
2156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
|
-
switch (errorCode) {
|
|
2158
|
-
case "InternalServiceErrorException":
|
|
2159
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2160
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "InvalidParameterException":
|
|
2162
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2163
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "ResourceNotFoundException":
|
|
2165
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2166
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "ThrottlingException":
|
|
2168
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2169
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2170
|
-
default:
|
|
2171
|
-
const parsedBody = parsedOutput.body;
|
|
2172
|
-
return throwDefaultError({
|
|
2173
|
-
output,
|
|
2174
|
-
parsedBody,
|
|
2175
|
-
errorCode,
|
|
2176
|
-
});
|
|
2177
|
-
}
|
|
2178
|
-
};
|
|
2179
|
-
const de_GetResolverRulePolicyCommand = async (output, context) => {
|
|
2180
|
-
if (output.statusCode >= 300) {
|
|
2181
|
-
return de_GetResolverRulePolicyCommandError(output, context);
|
|
2182
|
-
}
|
|
2183
|
-
const data = await parseBody(output.body, context);
|
|
2184
|
-
let contents = {};
|
|
2185
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2186
|
-
const response = {
|
|
2187
|
-
$metadata: deserializeMetadata(output),
|
|
2188
|
-
...contents,
|
|
2189
|
-
};
|
|
2190
|
-
return response;
|
|
2191
|
-
};
|
|
2192
|
-
exports.de_GetResolverRulePolicyCommand = de_GetResolverRulePolicyCommand;
|
|
2193
|
-
const de_GetResolverRulePolicyCommandError = async (output, context) => {
|
|
2194
|
-
const parsedOutput = {
|
|
2195
|
-
...output,
|
|
2196
|
-
body: await parseErrorBody(output.body, context),
|
|
2197
|
-
};
|
|
2198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2199
|
-
switch (errorCode) {
|
|
2200
|
-
case "AccessDeniedException":
|
|
2201
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "InternalServiceErrorException":
|
|
2204
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2205
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2206
|
-
case "InvalidParameterException":
|
|
2207
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2208
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2209
|
-
case "UnknownResourceException":
|
|
2210
|
-
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
2211
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2212
|
-
default:
|
|
2213
|
-
const parsedBody = parsedOutput.body;
|
|
2214
|
-
return throwDefaultError({
|
|
2215
|
-
output,
|
|
2216
|
-
parsedBody,
|
|
2217
|
-
errorCode,
|
|
2218
|
-
});
|
|
2219
|
-
}
|
|
2220
|
-
};
|
|
2221
|
-
const de_ImportFirewallDomainsCommand = async (output, context) => {
|
|
2222
|
-
if (output.statusCode >= 300) {
|
|
2223
|
-
return de_ImportFirewallDomainsCommandError(output, context);
|
|
2224
|
-
}
|
|
2225
|
-
const data = await parseBody(output.body, context);
|
|
2226
|
-
let contents = {};
|
|
2227
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2228
|
-
const response = {
|
|
2229
|
-
$metadata: deserializeMetadata(output),
|
|
2230
|
-
...contents,
|
|
2231
|
-
};
|
|
2232
|
-
return response;
|
|
2233
|
-
};
|
|
2234
|
-
exports.de_ImportFirewallDomainsCommand = de_ImportFirewallDomainsCommand;
|
|
2235
|
-
const de_ImportFirewallDomainsCommandError = async (output, context) => {
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context),
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "AccessDeniedException":
|
|
2243
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "ConflictException":
|
|
2246
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
2247
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "InternalServiceErrorException":
|
|
2249
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2250
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "LimitExceededException":
|
|
2252
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
2253
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "ResourceNotFoundException":
|
|
2255
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "ThrottlingException":
|
|
2258
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2259
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "ValidationException":
|
|
2261
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2262
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2263
|
-
default:
|
|
2264
|
-
const parsedBody = parsedOutput.body;
|
|
2265
|
-
return throwDefaultError({
|
|
2266
|
-
output,
|
|
2267
|
-
parsedBody,
|
|
2268
|
-
errorCode,
|
|
2269
|
-
});
|
|
2270
|
-
}
|
|
2271
|
-
};
|
|
2272
|
-
const de_ListFirewallConfigsCommand = async (output, context) => {
|
|
2273
|
-
if (output.statusCode >= 300) {
|
|
2274
|
-
return de_ListFirewallConfigsCommandError(output, context);
|
|
2275
|
-
}
|
|
2276
|
-
const data = await parseBody(output.body, context);
|
|
2277
|
-
let contents = {};
|
|
2278
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2279
|
-
const response = {
|
|
2280
|
-
$metadata: deserializeMetadata(output),
|
|
2281
|
-
...contents,
|
|
2282
|
-
};
|
|
2283
|
-
return response;
|
|
2284
|
-
};
|
|
2285
|
-
exports.de_ListFirewallConfigsCommand = de_ListFirewallConfigsCommand;
|
|
2286
|
-
const de_ListFirewallConfigsCommandError = async (output, context) => {
|
|
2287
|
-
const parsedOutput = {
|
|
2288
|
-
...output,
|
|
2289
|
-
body: await parseErrorBody(output.body, context),
|
|
2290
|
-
};
|
|
2291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2292
|
-
switch (errorCode) {
|
|
2293
|
-
case "AccessDeniedException":
|
|
2294
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2295
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2296
|
-
case "InternalServiceErrorException":
|
|
2297
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2298
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "ThrottlingException":
|
|
2300
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2301
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "ValidationException":
|
|
2303
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2304
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2305
|
-
default:
|
|
2306
|
-
const parsedBody = parsedOutput.body;
|
|
2307
|
-
return throwDefaultError({
|
|
2308
|
-
output,
|
|
2309
|
-
parsedBody,
|
|
2310
|
-
errorCode,
|
|
2311
|
-
});
|
|
2312
|
-
}
|
|
2313
|
-
};
|
|
2314
|
-
const de_ListFirewallDomainListsCommand = async (output, context) => {
|
|
2315
|
-
if (output.statusCode >= 300) {
|
|
2316
|
-
return de_ListFirewallDomainListsCommandError(output, context);
|
|
2317
|
-
}
|
|
2318
|
-
const data = await parseBody(output.body, context);
|
|
2319
|
-
let contents = {};
|
|
2320
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2321
|
-
const response = {
|
|
2322
|
-
$metadata: deserializeMetadata(output),
|
|
2323
|
-
...contents,
|
|
2324
|
-
};
|
|
2325
|
-
return response;
|
|
2326
|
-
};
|
|
2327
|
-
exports.de_ListFirewallDomainListsCommand = de_ListFirewallDomainListsCommand;
|
|
2328
|
-
const de_ListFirewallDomainListsCommandError = async (output, context) => {
|
|
2329
|
-
const parsedOutput = {
|
|
2330
|
-
...output,
|
|
2331
|
-
body: await parseErrorBody(output.body, context),
|
|
2332
|
-
};
|
|
2333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
|
-
switch (errorCode) {
|
|
2335
|
-
case "AccessDeniedException":
|
|
2336
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2337
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "InternalServiceErrorException":
|
|
2339
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2340
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "ThrottlingException":
|
|
2342
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2343
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "ValidationException":
|
|
2345
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2346
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2347
|
-
default:
|
|
2348
|
-
const parsedBody = parsedOutput.body;
|
|
2349
|
-
return throwDefaultError({
|
|
2350
|
-
output,
|
|
2351
|
-
parsedBody,
|
|
2352
|
-
errorCode,
|
|
2353
|
-
});
|
|
2354
|
-
}
|
|
2355
|
-
};
|
|
2356
|
-
const de_ListFirewallDomainsCommand = async (output, context) => {
|
|
2357
|
-
if (output.statusCode >= 300) {
|
|
2358
|
-
return de_ListFirewallDomainsCommandError(output, context);
|
|
2359
|
-
}
|
|
2360
|
-
const data = await parseBody(output.body, context);
|
|
2361
|
-
let contents = {};
|
|
2362
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2363
|
-
const response = {
|
|
2364
|
-
$metadata: deserializeMetadata(output),
|
|
2365
|
-
...contents,
|
|
2366
|
-
};
|
|
2367
|
-
return response;
|
|
2368
|
-
};
|
|
2369
|
-
exports.de_ListFirewallDomainsCommand = de_ListFirewallDomainsCommand;
|
|
2370
|
-
const de_ListFirewallDomainsCommandError = async (output, context) => {
|
|
2371
|
-
const parsedOutput = {
|
|
2372
|
-
...output,
|
|
2373
|
-
body: await parseErrorBody(output.body, context),
|
|
2374
|
-
};
|
|
2375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
|
-
switch (errorCode) {
|
|
2377
|
-
case "AccessDeniedException":
|
|
2378
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2379
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2380
|
-
case "InternalServiceErrorException":
|
|
2381
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2382
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "ResourceNotFoundException":
|
|
2384
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "ThrottlingException":
|
|
2387
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "ValidationException":
|
|
2390
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2391
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2392
|
-
default:
|
|
2393
|
-
const parsedBody = parsedOutput.body;
|
|
2394
|
-
return throwDefaultError({
|
|
2395
|
-
output,
|
|
2396
|
-
parsedBody,
|
|
2397
|
-
errorCode,
|
|
2398
|
-
});
|
|
2399
|
-
}
|
|
2400
|
-
};
|
|
2401
|
-
const de_ListFirewallRuleGroupAssociationsCommand = async (output, context) => {
|
|
2402
|
-
if (output.statusCode >= 300) {
|
|
2403
|
-
return de_ListFirewallRuleGroupAssociationsCommandError(output, context);
|
|
2404
|
-
}
|
|
2405
|
-
const data = await parseBody(output.body, context);
|
|
2406
|
-
let contents = {};
|
|
2407
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2408
|
-
const response = {
|
|
2409
|
-
$metadata: deserializeMetadata(output),
|
|
2410
|
-
...contents,
|
|
2411
|
-
};
|
|
2412
|
-
return response;
|
|
2413
|
-
};
|
|
2414
|
-
exports.de_ListFirewallRuleGroupAssociationsCommand = de_ListFirewallRuleGroupAssociationsCommand;
|
|
2415
|
-
const de_ListFirewallRuleGroupAssociationsCommandError = async (output, context) => {
|
|
2416
|
-
const parsedOutput = {
|
|
2417
|
-
...output,
|
|
2418
|
-
body: await parseErrorBody(output.body, context),
|
|
2419
|
-
};
|
|
2420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2421
|
-
switch (errorCode) {
|
|
2422
|
-
case "AccessDeniedException":
|
|
2423
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2424
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "InternalServiceErrorException":
|
|
2426
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2427
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "ThrottlingException":
|
|
2429
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "ValidationException":
|
|
2432
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2434
|
-
default:
|
|
2435
|
-
const parsedBody = parsedOutput.body;
|
|
2436
|
-
return throwDefaultError({
|
|
2437
|
-
output,
|
|
2438
|
-
parsedBody,
|
|
2439
|
-
errorCode,
|
|
2440
|
-
});
|
|
2441
|
-
}
|
|
2442
|
-
};
|
|
2443
|
-
const de_ListFirewallRuleGroupsCommand = async (output, context) => {
|
|
2444
|
-
if (output.statusCode >= 300) {
|
|
2445
|
-
return de_ListFirewallRuleGroupsCommandError(output, context);
|
|
2446
|
-
}
|
|
2447
|
-
const data = await parseBody(output.body, context);
|
|
2448
|
-
let contents = {};
|
|
2449
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2450
|
-
const response = {
|
|
2451
|
-
$metadata: deserializeMetadata(output),
|
|
2452
|
-
...contents,
|
|
2453
|
-
};
|
|
2454
|
-
return response;
|
|
2455
|
-
};
|
|
2456
|
-
exports.de_ListFirewallRuleGroupsCommand = de_ListFirewallRuleGroupsCommand;
|
|
2457
|
-
const de_ListFirewallRuleGroupsCommandError = async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context),
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "AccessDeniedException":
|
|
2465
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "InternalServiceErrorException":
|
|
2468
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2469
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "ThrottlingException":
|
|
2471
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2472
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "ValidationException":
|
|
2474
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2475
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2476
|
-
default:
|
|
2477
|
-
const parsedBody = parsedOutput.body;
|
|
2478
|
-
return throwDefaultError({
|
|
2479
|
-
output,
|
|
2480
|
-
parsedBody,
|
|
2481
|
-
errorCode,
|
|
2482
|
-
});
|
|
2483
|
-
}
|
|
2484
|
-
};
|
|
2485
|
-
const de_ListFirewallRulesCommand = async (output, context) => {
|
|
2486
|
-
if (output.statusCode >= 300) {
|
|
2487
|
-
return de_ListFirewallRulesCommandError(output, context);
|
|
2488
|
-
}
|
|
2489
|
-
const data = await parseBody(output.body, context);
|
|
2490
|
-
let contents = {};
|
|
2491
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2492
|
-
const response = {
|
|
2493
|
-
$metadata: deserializeMetadata(output),
|
|
2494
|
-
...contents,
|
|
2495
|
-
};
|
|
2496
|
-
return response;
|
|
2497
|
-
};
|
|
2498
|
-
exports.de_ListFirewallRulesCommand = de_ListFirewallRulesCommand;
|
|
2499
|
-
const de_ListFirewallRulesCommandError = async (output, context) => {
|
|
2500
|
-
const parsedOutput = {
|
|
2501
|
-
...output,
|
|
2502
|
-
body: await parseErrorBody(output.body, context),
|
|
2503
|
-
};
|
|
2504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2505
|
-
switch (errorCode) {
|
|
2506
|
-
case "AccessDeniedException":
|
|
2507
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2508
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "InternalServiceErrorException":
|
|
2510
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2511
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "ResourceNotFoundException":
|
|
2513
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2514
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "ThrottlingException":
|
|
2516
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2517
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "ValidationException":
|
|
2519
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2520
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2521
|
-
default:
|
|
2522
|
-
const parsedBody = parsedOutput.body;
|
|
2523
|
-
return throwDefaultError({
|
|
2524
|
-
output,
|
|
2525
|
-
parsedBody,
|
|
2526
|
-
errorCode,
|
|
2527
|
-
});
|
|
2528
|
-
}
|
|
2529
|
-
};
|
|
2530
|
-
const de_ListOutpostResolversCommand = async (output, context) => {
|
|
2531
|
-
if (output.statusCode >= 300) {
|
|
2532
|
-
return de_ListOutpostResolversCommandError(output, context);
|
|
2533
|
-
}
|
|
2534
|
-
const data = await parseBody(output.body, context);
|
|
2535
|
-
let contents = {};
|
|
2536
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2537
|
-
const response = {
|
|
2538
|
-
$metadata: deserializeMetadata(output),
|
|
2539
|
-
...contents,
|
|
2540
|
-
};
|
|
2541
|
-
return response;
|
|
2542
|
-
};
|
|
2543
|
-
exports.de_ListOutpostResolversCommand = de_ListOutpostResolversCommand;
|
|
2544
|
-
const de_ListOutpostResolversCommandError = async (output, context) => {
|
|
2545
|
-
const parsedOutput = {
|
|
2546
|
-
...output,
|
|
2547
|
-
body: await parseErrorBody(output.body, context),
|
|
2548
|
-
};
|
|
2549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2550
|
-
switch (errorCode) {
|
|
2551
|
-
case "AccessDeniedException":
|
|
2552
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2553
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "InternalServiceErrorException":
|
|
2555
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2556
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "ResourceNotFoundException":
|
|
2558
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2559
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2560
|
-
case "ThrottlingException":
|
|
2561
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2562
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2563
|
-
case "ValidationException":
|
|
2564
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2565
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2566
|
-
default:
|
|
2567
|
-
const parsedBody = parsedOutput.body;
|
|
2568
|
-
return throwDefaultError({
|
|
2569
|
-
output,
|
|
2570
|
-
parsedBody,
|
|
2571
|
-
errorCode,
|
|
2572
|
-
});
|
|
2573
|
-
}
|
|
2574
|
-
};
|
|
2575
|
-
const de_ListResolverConfigsCommand = async (output, context) => {
|
|
2576
|
-
if (output.statusCode >= 300) {
|
|
2577
|
-
return de_ListResolverConfigsCommandError(output, context);
|
|
2578
|
-
}
|
|
2579
|
-
const data = await parseBody(output.body, context);
|
|
2580
|
-
let contents = {};
|
|
2581
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2582
|
-
const response = {
|
|
2583
|
-
$metadata: deserializeMetadata(output),
|
|
2584
|
-
...contents,
|
|
2585
|
-
};
|
|
2586
|
-
return response;
|
|
2587
|
-
};
|
|
2588
|
-
exports.de_ListResolverConfigsCommand = de_ListResolverConfigsCommand;
|
|
2589
|
-
const de_ListResolverConfigsCommandError = async (output, context) => {
|
|
2590
|
-
const parsedOutput = {
|
|
2591
|
-
...output,
|
|
2592
|
-
body: await parseErrorBody(output.body, context),
|
|
2593
|
-
};
|
|
2594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2595
|
-
switch (errorCode) {
|
|
2596
|
-
case "AccessDeniedException":
|
|
2597
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2598
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2599
|
-
case "InternalServiceErrorException":
|
|
2600
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2601
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2602
|
-
case "InvalidNextTokenException":
|
|
2603
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2604
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "InvalidParameterException":
|
|
2606
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2607
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "InvalidRequestException":
|
|
2609
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2610
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "ThrottlingException":
|
|
2612
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2613
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "ValidationException":
|
|
2615
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
2616
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2617
|
-
default:
|
|
2618
|
-
const parsedBody = parsedOutput.body;
|
|
2619
|
-
return throwDefaultError({
|
|
2620
|
-
output,
|
|
2621
|
-
parsedBody,
|
|
2622
|
-
errorCode,
|
|
2623
|
-
});
|
|
2624
|
-
}
|
|
2625
|
-
};
|
|
2626
|
-
const de_ListResolverDnssecConfigsCommand = async (output, context) => {
|
|
2627
|
-
if (output.statusCode >= 300) {
|
|
2628
|
-
return de_ListResolverDnssecConfigsCommandError(output, context);
|
|
2629
|
-
}
|
|
2630
|
-
const data = await parseBody(output.body, context);
|
|
2631
|
-
let contents = {};
|
|
2632
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2633
|
-
const response = {
|
|
2634
|
-
$metadata: deserializeMetadata(output),
|
|
2635
|
-
...contents,
|
|
2636
|
-
};
|
|
2637
|
-
return response;
|
|
2638
|
-
};
|
|
2639
|
-
exports.de_ListResolverDnssecConfigsCommand = de_ListResolverDnssecConfigsCommand;
|
|
2640
|
-
const de_ListResolverDnssecConfigsCommandError = async (output, context) => {
|
|
2641
|
-
const parsedOutput = {
|
|
2642
|
-
...output,
|
|
2643
|
-
body: await parseErrorBody(output.body, context),
|
|
2644
|
-
};
|
|
2645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2646
|
-
switch (errorCode) {
|
|
2647
|
-
case "AccessDeniedException":
|
|
2648
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2650
|
-
case "InternalServiceErrorException":
|
|
2651
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2652
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2653
|
-
case "InvalidNextTokenException":
|
|
2654
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2655
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "InvalidParameterException":
|
|
2657
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2658
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2659
|
-
case "InvalidRequestException":
|
|
2660
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2661
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2662
|
-
case "ThrottlingException":
|
|
2663
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2664
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2665
|
-
default:
|
|
2666
|
-
const parsedBody = parsedOutput.body;
|
|
2667
|
-
return throwDefaultError({
|
|
2668
|
-
output,
|
|
2669
|
-
parsedBody,
|
|
2670
|
-
errorCode,
|
|
2671
|
-
});
|
|
2672
|
-
}
|
|
2673
|
-
};
|
|
2674
|
-
const de_ListResolverEndpointIpAddressesCommand = async (output, context) => {
|
|
2675
|
-
if (output.statusCode >= 300) {
|
|
2676
|
-
return de_ListResolverEndpointIpAddressesCommandError(output, context);
|
|
2677
|
-
}
|
|
2678
|
-
const data = await parseBody(output.body, context);
|
|
2679
|
-
let contents = {};
|
|
2680
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2681
|
-
const response = {
|
|
2682
|
-
$metadata: deserializeMetadata(output),
|
|
2683
|
-
...contents,
|
|
2684
|
-
};
|
|
2685
|
-
return response;
|
|
2686
|
-
};
|
|
2687
|
-
exports.de_ListResolverEndpointIpAddressesCommand = de_ListResolverEndpointIpAddressesCommand;
|
|
2688
|
-
const de_ListResolverEndpointIpAddressesCommandError = async (output, context) => {
|
|
2689
|
-
const parsedOutput = {
|
|
2690
|
-
...output,
|
|
2691
|
-
body: await parseErrorBody(output.body, context),
|
|
2692
|
-
};
|
|
2693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2694
|
-
switch (errorCode) {
|
|
2695
|
-
case "InternalServiceErrorException":
|
|
2696
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2697
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2698
|
-
case "InvalidNextTokenException":
|
|
2699
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2700
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2701
|
-
case "InvalidParameterException":
|
|
2702
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2703
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2704
|
-
case "ResourceNotFoundException":
|
|
2705
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2706
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2707
|
-
case "ThrottlingException":
|
|
2708
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2709
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2710
|
-
default:
|
|
2711
|
-
const parsedBody = parsedOutput.body;
|
|
2712
|
-
return throwDefaultError({
|
|
2713
|
-
output,
|
|
2714
|
-
parsedBody,
|
|
2715
|
-
errorCode,
|
|
2716
|
-
});
|
|
2717
|
-
}
|
|
2718
|
-
};
|
|
2719
|
-
const de_ListResolverEndpointsCommand = async (output, context) => {
|
|
2720
|
-
if (output.statusCode >= 300) {
|
|
2721
|
-
return de_ListResolverEndpointsCommandError(output, context);
|
|
2722
|
-
}
|
|
2723
|
-
const data = await parseBody(output.body, context);
|
|
2724
|
-
let contents = {};
|
|
2725
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2726
|
-
const response = {
|
|
2727
|
-
$metadata: deserializeMetadata(output),
|
|
2728
|
-
...contents,
|
|
2729
|
-
};
|
|
2730
|
-
return response;
|
|
2731
|
-
};
|
|
2732
|
-
exports.de_ListResolverEndpointsCommand = de_ListResolverEndpointsCommand;
|
|
2733
|
-
const de_ListResolverEndpointsCommandError = async (output, context) => {
|
|
2734
|
-
const parsedOutput = {
|
|
2735
|
-
...output,
|
|
2736
|
-
body: await parseErrorBody(output.body, context),
|
|
2737
|
-
};
|
|
2738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2739
|
-
switch (errorCode) {
|
|
2740
|
-
case "InternalServiceErrorException":
|
|
2741
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2742
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "InvalidNextTokenException":
|
|
2744
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2745
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2746
|
-
case "InvalidParameterException":
|
|
2747
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2748
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2749
|
-
case "InvalidRequestException":
|
|
2750
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2751
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "ThrottlingException":
|
|
2753
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2754
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2755
|
-
default:
|
|
2756
|
-
const parsedBody = parsedOutput.body;
|
|
2757
|
-
return throwDefaultError({
|
|
2758
|
-
output,
|
|
2759
|
-
parsedBody,
|
|
2760
|
-
errorCode,
|
|
2761
|
-
});
|
|
2762
|
-
}
|
|
2763
|
-
};
|
|
2764
|
-
const de_ListResolverQueryLogConfigAssociationsCommand = async (output, context) => {
|
|
2765
|
-
if (output.statusCode >= 300) {
|
|
2766
|
-
return de_ListResolverQueryLogConfigAssociationsCommandError(output, context);
|
|
2767
|
-
}
|
|
2768
|
-
const data = await parseBody(output.body, context);
|
|
2769
|
-
let contents = {};
|
|
2770
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2771
|
-
const response = {
|
|
2772
|
-
$metadata: deserializeMetadata(output),
|
|
2773
|
-
...contents,
|
|
2774
|
-
};
|
|
2775
|
-
return response;
|
|
2776
|
-
};
|
|
2777
|
-
exports.de_ListResolverQueryLogConfigAssociationsCommand = de_ListResolverQueryLogConfigAssociationsCommand;
|
|
2778
|
-
const de_ListResolverQueryLogConfigAssociationsCommandError = async (output, context) => {
|
|
2779
|
-
const parsedOutput = {
|
|
2780
|
-
...output,
|
|
2781
|
-
body: await parseErrorBody(output.body, context),
|
|
2782
|
-
};
|
|
2783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2784
|
-
switch (errorCode) {
|
|
2785
|
-
case "AccessDeniedException":
|
|
2786
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2787
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "InternalServiceErrorException":
|
|
2789
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2790
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2791
|
-
case "InvalidParameterException":
|
|
2792
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2793
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "InvalidRequestException":
|
|
2795
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2796
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2797
|
-
case "LimitExceededException":
|
|
2798
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
2799
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "ThrottlingException":
|
|
2801
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2802
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2803
|
-
default:
|
|
2804
|
-
const parsedBody = parsedOutput.body;
|
|
2805
|
-
return throwDefaultError({
|
|
2806
|
-
output,
|
|
2807
|
-
parsedBody,
|
|
2808
|
-
errorCode,
|
|
2809
|
-
});
|
|
2810
|
-
}
|
|
2811
|
-
};
|
|
2812
|
-
const de_ListResolverQueryLogConfigsCommand = async (output, context) => {
|
|
2813
|
-
if (output.statusCode >= 300) {
|
|
2814
|
-
return de_ListResolverQueryLogConfigsCommandError(output, context);
|
|
2815
|
-
}
|
|
2816
|
-
const data = await parseBody(output.body, context);
|
|
2817
|
-
let contents = {};
|
|
2818
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2819
|
-
const response = {
|
|
2820
|
-
$metadata: deserializeMetadata(output),
|
|
2821
|
-
...contents,
|
|
2822
|
-
};
|
|
2823
|
-
return response;
|
|
2824
|
-
};
|
|
2825
|
-
exports.de_ListResolverQueryLogConfigsCommand = de_ListResolverQueryLogConfigsCommand;
|
|
2826
|
-
const de_ListResolverQueryLogConfigsCommandError = async (output, context) => {
|
|
2827
|
-
const parsedOutput = {
|
|
2828
|
-
...output,
|
|
2829
|
-
body: await parseErrorBody(output.body, context),
|
|
2830
|
-
};
|
|
2831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2832
|
-
switch (errorCode) {
|
|
2833
|
-
case "AccessDeniedException":
|
|
2834
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
2835
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "InternalServiceErrorException":
|
|
2837
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2838
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "InvalidNextTokenException":
|
|
2840
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2841
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "InvalidParameterException":
|
|
2843
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2844
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "InvalidRequestException":
|
|
2846
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2847
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "ThrottlingException":
|
|
2849
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2850
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2851
|
-
default:
|
|
2852
|
-
const parsedBody = parsedOutput.body;
|
|
2853
|
-
return throwDefaultError({
|
|
2854
|
-
output,
|
|
2855
|
-
parsedBody,
|
|
2856
|
-
errorCode,
|
|
2857
|
-
});
|
|
2858
|
-
}
|
|
2859
|
-
};
|
|
2860
|
-
const de_ListResolverRuleAssociationsCommand = async (output, context) => {
|
|
2861
|
-
if (output.statusCode >= 300) {
|
|
2862
|
-
return de_ListResolverRuleAssociationsCommandError(output, context);
|
|
2863
|
-
}
|
|
2864
|
-
const data = await parseBody(output.body, context);
|
|
2865
|
-
let contents = {};
|
|
2866
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2867
|
-
const response = {
|
|
2868
|
-
$metadata: deserializeMetadata(output),
|
|
2869
|
-
...contents,
|
|
2870
|
-
};
|
|
2871
|
-
return response;
|
|
2872
|
-
};
|
|
2873
|
-
exports.de_ListResolverRuleAssociationsCommand = de_ListResolverRuleAssociationsCommand;
|
|
2874
|
-
const de_ListResolverRuleAssociationsCommandError = async (output, context) => {
|
|
2875
|
-
const parsedOutput = {
|
|
2876
|
-
...output,
|
|
2877
|
-
body: await parseErrorBody(output.body, context),
|
|
2878
|
-
};
|
|
2879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2880
|
-
switch (errorCode) {
|
|
2881
|
-
case "InternalServiceErrorException":
|
|
2882
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2883
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "InvalidNextTokenException":
|
|
2885
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2886
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "InvalidParameterException":
|
|
2888
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2889
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "InvalidRequestException":
|
|
2891
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2892
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "ThrottlingException":
|
|
2894
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2895
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2896
|
-
default:
|
|
2897
|
-
const parsedBody = parsedOutput.body;
|
|
2898
|
-
return throwDefaultError({
|
|
2899
|
-
output,
|
|
2900
|
-
parsedBody,
|
|
2901
|
-
errorCode,
|
|
2902
|
-
});
|
|
2903
|
-
}
|
|
2904
|
-
};
|
|
2905
|
-
const de_ListResolverRulesCommand = async (output, context) => {
|
|
2906
|
-
if (output.statusCode >= 300) {
|
|
2907
|
-
return de_ListResolverRulesCommandError(output, context);
|
|
2908
|
-
}
|
|
2909
|
-
const data = await parseBody(output.body, context);
|
|
2910
|
-
let contents = {};
|
|
2911
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2912
|
-
const response = {
|
|
2913
|
-
$metadata: deserializeMetadata(output),
|
|
2914
|
-
...contents,
|
|
2915
|
-
};
|
|
2916
|
-
return response;
|
|
2917
|
-
};
|
|
2918
|
-
exports.de_ListResolverRulesCommand = de_ListResolverRulesCommand;
|
|
2919
|
-
const de_ListResolverRulesCommandError = async (output, context) => {
|
|
2920
|
-
const parsedOutput = {
|
|
2921
|
-
...output,
|
|
2922
|
-
body: await parseErrorBody(output.body, context),
|
|
2923
|
-
};
|
|
2924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
|
-
switch (errorCode) {
|
|
2926
|
-
case "InternalServiceErrorException":
|
|
2927
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2928
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "InvalidNextTokenException":
|
|
2930
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2931
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "InvalidParameterException":
|
|
2933
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2934
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "InvalidRequestException":
|
|
2936
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2937
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "ThrottlingException":
|
|
2939
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2940
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2941
|
-
default:
|
|
2942
|
-
const parsedBody = parsedOutput.body;
|
|
2943
|
-
return throwDefaultError({
|
|
2944
|
-
output,
|
|
2945
|
-
parsedBody,
|
|
2946
|
-
errorCode,
|
|
2947
|
-
});
|
|
2948
|
-
}
|
|
2949
|
-
};
|
|
2950
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2951
|
-
if (output.statusCode >= 300) {
|
|
2952
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2953
|
-
}
|
|
2954
|
-
const data = await parseBody(output.body, context);
|
|
2955
|
-
let contents = {};
|
|
2956
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2957
|
-
const response = {
|
|
2958
|
-
$metadata: deserializeMetadata(output),
|
|
2959
|
-
...contents,
|
|
2960
|
-
};
|
|
2961
|
-
return response;
|
|
2962
|
-
};
|
|
2963
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2964
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2965
|
-
const parsedOutput = {
|
|
2966
|
-
...output,
|
|
2967
|
-
body: await parseErrorBody(output.body, context),
|
|
2968
|
-
};
|
|
2969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2970
|
-
switch (errorCode) {
|
|
2971
|
-
case "InternalServiceErrorException":
|
|
2972
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
2973
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "InvalidNextTokenException":
|
|
2975
|
-
case "com.amazonaws.route53resolver#InvalidNextTokenException":
|
|
2976
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "InvalidParameterException":
|
|
2978
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
2979
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "InvalidRequestException":
|
|
2981
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
2982
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2983
|
-
case "ResourceNotFoundException":
|
|
2984
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
2985
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2986
|
-
case "ThrottlingException":
|
|
2987
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
2988
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2989
|
-
default:
|
|
2990
|
-
const parsedBody = parsedOutput.body;
|
|
2991
|
-
return throwDefaultError({
|
|
2992
|
-
output,
|
|
2993
|
-
parsedBody,
|
|
2994
|
-
errorCode,
|
|
2995
|
-
});
|
|
2996
|
-
}
|
|
2997
|
-
};
|
|
2998
|
-
const de_PutFirewallRuleGroupPolicyCommand = async (output, context) => {
|
|
2999
|
-
if (output.statusCode >= 300) {
|
|
3000
|
-
return de_PutFirewallRuleGroupPolicyCommandError(output, context);
|
|
3001
|
-
}
|
|
3002
|
-
const data = await parseBody(output.body, context);
|
|
3003
|
-
let contents = {};
|
|
3004
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3005
|
-
const response = {
|
|
3006
|
-
$metadata: deserializeMetadata(output),
|
|
3007
|
-
...contents,
|
|
3008
|
-
};
|
|
3009
|
-
return response;
|
|
3010
|
-
};
|
|
3011
|
-
exports.de_PutFirewallRuleGroupPolicyCommand = de_PutFirewallRuleGroupPolicyCommand;
|
|
3012
|
-
const de_PutFirewallRuleGroupPolicyCommandError = async (output, context) => {
|
|
3013
|
-
const parsedOutput = {
|
|
3014
|
-
...output,
|
|
3015
|
-
body: await parseErrorBody(output.body, context),
|
|
3016
|
-
};
|
|
3017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3018
|
-
switch (errorCode) {
|
|
3019
|
-
case "AccessDeniedException":
|
|
3020
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3021
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3022
|
-
case "InternalServiceErrorException":
|
|
3023
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3024
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "ResourceNotFoundException":
|
|
3026
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3027
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "ThrottlingException":
|
|
3029
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3030
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "ValidationException":
|
|
3032
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3033
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3034
|
-
default:
|
|
3035
|
-
const parsedBody = parsedOutput.body;
|
|
3036
|
-
return throwDefaultError({
|
|
3037
|
-
output,
|
|
3038
|
-
parsedBody,
|
|
3039
|
-
errorCode,
|
|
3040
|
-
});
|
|
3041
|
-
}
|
|
3042
|
-
};
|
|
3043
|
-
const de_PutResolverQueryLogConfigPolicyCommand = async (output, context) => {
|
|
3044
|
-
if (output.statusCode >= 300) {
|
|
3045
|
-
return de_PutResolverQueryLogConfigPolicyCommandError(output, context);
|
|
3046
|
-
}
|
|
3047
|
-
const data = await parseBody(output.body, context);
|
|
3048
|
-
let contents = {};
|
|
3049
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3050
|
-
const response = {
|
|
3051
|
-
$metadata: deserializeMetadata(output),
|
|
3052
|
-
...contents,
|
|
3053
|
-
};
|
|
3054
|
-
return response;
|
|
3055
|
-
};
|
|
3056
|
-
exports.de_PutResolverQueryLogConfigPolicyCommand = de_PutResolverQueryLogConfigPolicyCommand;
|
|
3057
|
-
const de_PutResolverQueryLogConfigPolicyCommandError = async (output, context) => {
|
|
3058
|
-
const parsedOutput = {
|
|
3059
|
-
...output,
|
|
3060
|
-
body: await parseErrorBody(output.body, context),
|
|
3061
|
-
};
|
|
3062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3063
|
-
switch (errorCode) {
|
|
3064
|
-
case "AccessDeniedException":
|
|
3065
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3066
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3067
|
-
case "InternalServiceErrorException":
|
|
3068
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3069
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3070
|
-
case "InvalidParameterException":
|
|
3071
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3072
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3073
|
-
case "InvalidPolicyDocument":
|
|
3074
|
-
case "com.amazonaws.route53resolver#InvalidPolicyDocument":
|
|
3075
|
-
throw await de_InvalidPolicyDocumentRes(parsedOutput, context);
|
|
3076
|
-
case "InvalidRequestException":
|
|
3077
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3078
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3079
|
-
case "UnknownResourceException":
|
|
3080
|
-
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
3081
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
3082
|
-
default:
|
|
3083
|
-
const parsedBody = parsedOutput.body;
|
|
3084
|
-
return throwDefaultError({
|
|
3085
|
-
output,
|
|
3086
|
-
parsedBody,
|
|
3087
|
-
errorCode,
|
|
3088
|
-
});
|
|
3089
|
-
}
|
|
3090
|
-
};
|
|
3091
|
-
const de_PutResolverRulePolicyCommand = async (output, context) => {
|
|
3092
|
-
if (output.statusCode >= 300) {
|
|
3093
|
-
return de_PutResolverRulePolicyCommandError(output, context);
|
|
3094
|
-
}
|
|
3095
|
-
const data = await parseBody(output.body, context);
|
|
3096
|
-
let contents = {};
|
|
3097
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3098
|
-
const response = {
|
|
3099
|
-
$metadata: deserializeMetadata(output),
|
|
3100
|
-
...contents,
|
|
3101
|
-
};
|
|
3102
|
-
return response;
|
|
3103
|
-
};
|
|
3104
|
-
exports.de_PutResolverRulePolicyCommand = de_PutResolverRulePolicyCommand;
|
|
3105
|
-
const de_PutResolverRulePolicyCommandError = async (output, context) => {
|
|
3106
|
-
const parsedOutput = {
|
|
3107
|
-
...output,
|
|
3108
|
-
body: await parseErrorBody(output.body, context),
|
|
3109
|
-
};
|
|
3110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3111
|
-
switch (errorCode) {
|
|
3112
|
-
case "AccessDeniedException":
|
|
3113
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3114
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3115
|
-
case "InternalServiceErrorException":
|
|
3116
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3117
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3118
|
-
case "InvalidParameterException":
|
|
3119
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3120
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3121
|
-
case "InvalidPolicyDocument":
|
|
3122
|
-
case "com.amazonaws.route53resolver#InvalidPolicyDocument":
|
|
3123
|
-
throw await de_InvalidPolicyDocumentRes(parsedOutput, context);
|
|
3124
|
-
case "UnknownResourceException":
|
|
3125
|
-
case "com.amazonaws.route53resolver#UnknownResourceException":
|
|
3126
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
3127
|
-
default:
|
|
3128
|
-
const parsedBody = parsedOutput.body;
|
|
3129
|
-
return throwDefaultError({
|
|
3130
|
-
output,
|
|
3131
|
-
parsedBody,
|
|
3132
|
-
errorCode,
|
|
3133
|
-
});
|
|
3134
|
-
}
|
|
3135
|
-
};
|
|
3136
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3137
|
-
if (output.statusCode >= 300) {
|
|
3138
|
-
return de_TagResourceCommandError(output, context);
|
|
3139
|
-
}
|
|
3140
|
-
const data = await parseBody(output.body, context);
|
|
3141
|
-
let contents = {};
|
|
3142
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3143
|
-
const response = {
|
|
3144
|
-
$metadata: deserializeMetadata(output),
|
|
3145
|
-
...contents,
|
|
3146
|
-
};
|
|
3147
|
-
return response;
|
|
3148
|
-
};
|
|
3149
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3150
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3151
|
-
const parsedOutput = {
|
|
3152
|
-
...output,
|
|
3153
|
-
body: await parseErrorBody(output.body, context),
|
|
3154
|
-
};
|
|
3155
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3156
|
-
switch (errorCode) {
|
|
3157
|
-
case "InternalServiceErrorException":
|
|
3158
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3159
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "InvalidParameterException":
|
|
3161
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3162
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3163
|
-
case "InvalidRequestException":
|
|
3164
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3165
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "InvalidTagException":
|
|
3167
|
-
case "com.amazonaws.route53resolver#InvalidTagException":
|
|
3168
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "LimitExceededException":
|
|
3170
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
3171
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3172
|
-
case "ResourceNotFoundException":
|
|
3173
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3174
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "ThrottlingException":
|
|
3176
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3177
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3178
|
-
default:
|
|
3179
|
-
const parsedBody = parsedOutput.body;
|
|
3180
|
-
return throwDefaultError({
|
|
3181
|
-
output,
|
|
3182
|
-
parsedBody,
|
|
3183
|
-
errorCode,
|
|
3184
|
-
});
|
|
3185
|
-
}
|
|
3186
|
-
};
|
|
3187
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3188
|
-
if (output.statusCode >= 300) {
|
|
3189
|
-
return de_UntagResourceCommandError(output, context);
|
|
3190
|
-
}
|
|
3191
|
-
const data = await parseBody(output.body, context);
|
|
3192
|
-
let contents = {};
|
|
3193
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3194
|
-
const response = {
|
|
3195
|
-
$metadata: deserializeMetadata(output),
|
|
3196
|
-
...contents,
|
|
3197
|
-
};
|
|
3198
|
-
return response;
|
|
3199
|
-
};
|
|
3200
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3201
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3202
|
-
const parsedOutput = {
|
|
3203
|
-
...output,
|
|
3204
|
-
body: await parseErrorBody(output.body, context),
|
|
3205
|
-
};
|
|
3206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3207
|
-
switch (errorCode) {
|
|
3208
|
-
case "InternalServiceErrorException":
|
|
3209
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3210
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "InvalidParameterException":
|
|
3212
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3213
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3214
|
-
case "InvalidRequestException":
|
|
3215
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3216
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3217
|
-
case "ResourceNotFoundException":
|
|
3218
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3219
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3220
|
-
case "ThrottlingException":
|
|
3221
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3222
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3223
|
-
default:
|
|
3224
|
-
const parsedBody = parsedOutput.body;
|
|
3225
|
-
return throwDefaultError({
|
|
3226
|
-
output,
|
|
3227
|
-
parsedBody,
|
|
3228
|
-
errorCode,
|
|
3229
|
-
});
|
|
3230
|
-
}
|
|
3231
|
-
};
|
|
3232
|
-
const de_UpdateFirewallConfigCommand = async (output, context) => {
|
|
3233
|
-
if (output.statusCode >= 300) {
|
|
3234
|
-
return de_UpdateFirewallConfigCommandError(output, context);
|
|
3235
|
-
}
|
|
3236
|
-
const data = await parseBody(output.body, context);
|
|
3237
|
-
let contents = {};
|
|
3238
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3239
|
-
const response = {
|
|
3240
|
-
$metadata: deserializeMetadata(output),
|
|
3241
|
-
...contents,
|
|
3242
|
-
};
|
|
3243
|
-
return response;
|
|
3244
|
-
};
|
|
3245
|
-
exports.de_UpdateFirewallConfigCommand = de_UpdateFirewallConfigCommand;
|
|
3246
|
-
const de_UpdateFirewallConfigCommandError = async (output, context) => {
|
|
3247
|
-
const parsedOutput = {
|
|
3248
|
-
...output,
|
|
3249
|
-
body: await parseErrorBody(output.body, context),
|
|
3250
|
-
};
|
|
3251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3252
|
-
switch (errorCode) {
|
|
3253
|
-
case "AccessDeniedException":
|
|
3254
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3255
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3256
|
-
case "InternalServiceErrorException":
|
|
3257
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3258
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3259
|
-
case "ResourceNotFoundException":
|
|
3260
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3261
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3262
|
-
case "ThrottlingException":
|
|
3263
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3264
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "ValidationException":
|
|
3266
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3267
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3268
|
-
default:
|
|
3269
|
-
const parsedBody = parsedOutput.body;
|
|
3270
|
-
return throwDefaultError({
|
|
3271
|
-
output,
|
|
3272
|
-
parsedBody,
|
|
3273
|
-
errorCode,
|
|
3274
|
-
});
|
|
3275
|
-
}
|
|
3276
|
-
};
|
|
3277
|
-
const de_UpdateFirewallDomainsCommand = async (output, context) => {
|
|
3278
|
-
if (output.statusCode >= 300) {
|
|
3279
|
-
return de_UpdateFirewallDomainsCommandError(output, context);
|
|
3280
|
-
}
|
|
3281
|
-
const data = await parseBody(output.body, context);
|
|
3282
|
-
let contents = {};
|
|
3283
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3284
|
-
const response = {
|
|
3285
|
-
$metadata: deserializeMetadata(output),
|
|
3286
|
-
...contents,
|
|
3287
|
-
};
|
|
3288
|
-
return response;
|
|
3289
|
-
};
|
|
3290
|
-
exports.de_UpdateFirewallDomainsCommand = de_UpdateFirewallDomainsCommand;
|
|
3291
|
-
const de_UpdateFirewallDomainsCommandError = async (output, context) => {
|
|
3292
|
-
const parsedOutput = {
|
|
3293
|
-
...output,
|
|
3294
|
-
body: await parseErrorBody(output.body, context),
|
|
3295
|
-
};
|
|
3296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3297
|
-
switch (errorCode) {
|
|
3298
|
-
case "AccessDeniedException":
|
|
3299
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3300
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "ConflictException":
|
|
3302
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
3303
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "InternalServiceErrorException":
|
|
3305
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3306
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "LimitExceededException":
|
|
3308
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
3309
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3310
|
-
case "ResourceNotFoundException":
|
|
3311
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3312
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "ThrottlingException":
|
|
3314
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3315
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "ValidationException":
|
|
3317
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3318
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3319
|
-
default:
|
|
3320
|
-
const parsedBody = parsedOutput.body;
|
|
3321
|
-
return throwDefaultError({
|
|
3322
|
-
output,
|
|
3323
|
-
parsedBody,
|
|
3324
|
-
errorCode,
|
|
3325
|
-
});
|
|
3326
|
-
}
|
|
3327
|
-
};
|
|
3328
|
-
const de_UpdateFirewallRuleCommand = async (output, context) => {
|
|
3329
|
-
if (output.statusCode >= 300) {
|
|
3330
|
-
return de_UpdateFirewallRuleCommandError(output, context);
|
|
3331
|
-
}
|
|
3332
|
-
const data = await parseBody(output.body, context);
|
|
3333
|
-
let contents = {};
|
|
3334
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3335
|
-
const response = {
|
|
3336
|
-
$metadata: deserializeMetadata(output),
|
|
3337
|
-
...contents,
|
|
3338
|
-
};
|
|
3339
|
-
return response;
|
|
3340
|
-
};
|
|
3341
|
-
exports.de_UpdateFirewallRuleCommand = de_UpdateFirewallRuleCommand;
|
|
3342
|
-
const de_UpdateFirewallRuleCommandError = async (output, context) => {
|
|
3343
|
-
const parsedOutput = {
|
|
3344
|
-
...output,
|
|
3345
|
-
body: await parseErrorBody(output.body, context),
|
|
3346
|
-
};
|
|
3347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3348
|
-
switch (errorCode) {
|
|
3349
|
-
case "AccessDeniedException":
|
|
3350
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3351
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3352
|
-
case "ConflictException":
|
|
3353
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
3354
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3355
|
-
case "InternalServiceErrorException":
|
|
3356
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3357
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3358
|
-
case "ResourceNotFoundException":
|
|
3359
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3360
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "ThrottlingException":
|
|
3362
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3363
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "ValidationException":
|
|
3365
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3366
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3367
|
-
default:
|
|
3368
|
-
const parsedBody = parsedOutput.body;
|
|
3369
|
-
return throwDefaultError({
|
|
3370
|
-
output,
|
|
3371
|
-
parsedBody,
|
|
3372
|
-
errorCode,
|
|
3373
|
-
});
|
|
3374
|
-
}
|
|
3375
|
-
};
|
|
3376
|
-
const de_UpdateFirewallRuleGroupAssociationCommand = async (output, context) => {
|
|
3377
|
-
if (output.statusCode >= 300) {
|
|
3378
|
-
return de_UpdateFirewallRuleGroupAssociationCommandError(output, context);
|
|
3379
|
-
}
|
|
3380
|
-
const data = await parseBody(output.body, context);
|
|
3381
|
-
let contents = {};
|
|
3382
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3383
|
-
const response = {
|
|
3384
|
-
$metadata: deserializeMetadata(output),
|
|
3385
|
-
...contents,
|
|
3386
|
-
};
|
|
3387
|
-
return response;
|
|
3388
|
-
};
|
|
3389
|
-
exports.de_UpdateFirewallRuleGroupAssociationCommand = de_UpdateFirewallRuleGroupAssociationCommand;
|
|
3390
|
-
const de_UpdateFirewallRuleGroupAssociationCommandError = async (output, context) => {
|
|
3391
|
-
const parsedOutput = {
|
|
3392
|
-
...output,
|
|
3393
|
-
body: await parseErrorBody(output.body, context),
|
|
3394
|
-
};
|
|
3395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
|
-
switch (errorCode) {
|
|
3397
|
-
case "AccessDeniedException":
|
|
3398
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "ConflictException":
|
|
3401
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
3402
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "InternalServiceErrorException":
|
|
3404
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3405
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "ResourceNotFoundException":
|
|
3407
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3408
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3409
|
-
case "ThrottlingException":
|
|
3410
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3411
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3412
|
-
case "ValidationException":
|
|
3413
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3414
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3415
|
-
default:
|
|
3416
|
-
const parsedBody = parsedOutput.body;
|
|
3417
|
-
return throwDefaultError({
|
|
3418
|
-
output,
|
|
3419
|
-
parsedBody,
|
|
3420
|
-
errorCode,
|
|
3421
|
-
});
|
|
3422
|
-
}
|
|
3423
|
-
};
|
|
3424
|
-
const de_UpdateOutpostResolverCommand = async (output, context) => {
|
|
3425
|
-
if (output.statusCode >= 300) {
|
|
3426
|
-
return de_UpdateOutpostResolverCommandError(output, context);
|
|
3427
|
-
}
|
|
3428
|
-
const data = await parseBody(output.body, context);
|
|
3429
|
-
let contents = {};
|
|
3430
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3431
|
-
const response = {
|
|
3432
|
-
$metadata: deserializeMetadata(output),
|
|
3433
|
-
...contents,
|
|
3434
|
-
};
|
|
3435
|
-
return response;
|
|
3436
|
-
};
|
|
3437
|
-
exports.de_UpdateOutpostResolverCommand = de_UpdateOutpostResolverCommand;
|
|
3438
|
-
const de_UpdateOutpostResolverCommandError = async (output, context) => {
|
|
3439
|
-
const parsedOutput = {
|
|
3440
|
-
...output,
|
|
3441
|
-
body: await parseErrorBody(output.body, context),
|
|
3442
|
-
};
|
|
3443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3444
|
-
switch (errorCode) {
|
|
3445
|
-
case "AccessDeniedException":
|
|
3446
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3447
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3448
|
-
case "ConflictException":
|
|
3449
|
-
case "com.amazonaws.route53resolver#ConflictException":
|
|
3450
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3451
|
-
case "InternalServiceErrorException":
|
|
3452
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3453
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3454
|
-
case "ResourceNotFoundException":
|
|
3455
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3456
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3457
|
-
case "ServiceQuotaExceededException":
|
|
3458
|
-
case "com.amazonaws.route53resolver#ServiceQuotaExceededException":
|
|
3459
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "ThrottlingException":
|
|
3461
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3462
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3463
|
-
case "ValidationException":
|
|
3464
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3465
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3466
|
-
default:
|
|
3467
|
-
const parsedBody = parsedOutput.body;
|
|
3468
|
-
return throwDefaultError({
|
|
3469
|
-
output,
|
|
3470
|
-
parsedBody,
|
|
3471
|
-
errorCode,
|
|
3472
|
-
});
|
|
3473
|
-
}
|
|
3474
|
-
};
|
|
3475
|
-
const de_UpdateResolverConfigCommand = async (output, context) => {
|
|
3476
|
-
if (output.statusCode >= 300) {
|
|
3477
|
-
return de_UpdateResolverConfigCommandError(output, context);
|
|
3478
|
-
}
|
|
3479
|
-
const data = await parseBody(output.body, context);
|
|
3480
|
-
let contents = {};
|
|
3481
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3482
|
-
const response = {
|
|
3483
|
-
$metadata: deserializeMetadata(output),
|
|
3484
|
-
...contents,
|
|
3485
|
-
};
|
|
3486
|
-
return response;
|
|
3487
|
-
};
|
|
3488
|
-
exports.de_UpdateResolverConfigCommand = de_UpdateResolverConfigCommand;
|
|
3489
|
-
const de_UpdateResolverConfigCommandError = async (output, context) => {
|
|
3490
|
-
const parsedOutput = {
|
|
3491
|
-
...output,
|
|
3492
|
-
body: await parseErrorBody(output.body, context),
|
|
3493
|
-
};
|
|
3494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3495
|
-
switch (errorCode) {
|
|
3496
|
-
case "AccessDeniedException":
|
|
3497
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3498
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "InternalServiceErrorException":
|
|
3500
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3501
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "InvalidParameterException":
|
|
3503
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3504
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3505
|
-
case "InvalidRequestException":
|
|
3506
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3507
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3508
|
-
case "LimitExceededException":
|
|
3509
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
3510
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3511
|
-
case "ResourceNotFoundException":
|
|
3512
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "ResourceUnavailableException":
|
|
3515
|
-
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
3516
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "ThrottlingException":
|
|
3518
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3519
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3520
|
-
case "ValidationException":
|
|
3521
|
-
case "com.amazonaws.route53resolver#ValidationException":
|
|
3522
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3523
|
-
default:
|
|
3524
|
-
const parsedBody = parsedOutput.body;
|
|
3525
|
-
return throwDefaultError({
|
|
3526
|
-
output,
|
|
3527
|
-
parsedBody,
|
|
3528
|
-
errorCode,
|
|
3529
|
-
});
|
|
3530
|
-
}
|
|
3531
|
-
};
|
|
3532
|
-
const de_UpdateResolverDnssecConfigCommand = async (output, context) => {
|
|
3533
|
-
if (output.statusCode >= 300) {
|
|
3534
|
-
return de_UpdateResolverDnssecConfigCommandError(output, context);
|
|
3535
|
-
}
|
|
3536
|
-
const data = await parseBody(output.body, context);
|
|
3537
|
-
let contents = {};
|
|
3538
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3539
|
-
const response = {
|
|
3540
|
-
$metadata: deserializeMetadata(output),
|
|
3541
|
-
...contents,
|
|
3542
|
-
};
|
|
3543
|
-
return response;
|
|
3544
|
-
};
|
|
3545
|
-
exports.de_UpdateResolverDnssecConfigCommand = de_UpdateResolverDnssecConfigCommand;
|
|
3546
|
-
const de_UpdateResolverDnssecConfigCommandError = async (output, context) => {
|
|
3547
|
-
const parsedOutput = {
|
|
3548
|
-
...output,
|
|
3549
|
-
body: await parseErrorBody(output.body, context),
|
|
3550
|
-
};
|
|
3551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3552
|
-
switch (errorCode) {
|
|
3553
|
-
case "AccessDeniedException":
|
|
3554
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3555
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3556
|
-
case "InternalServiceErrorException":
|
|
3557
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3558
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3559
|
-
case "InvalidParameterException":
|
|
3560
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3561
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3562
|
-
case "InvalidRequestException":
|
|
3563
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3564
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3565
|
-
case "ResourceNotFoundException":
|
|
3566
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3568
|
-
case "ThrottlingException":
|
|
3569
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3570
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3571
|
-
default:
|
|
3572
|
-
const parsedBody = parsedOutput.body;
|
|
3573
|
-
return throwDefaultError({
|
|
3574
|
-
output,
|
|
3575
|
-
parsedBody,
|
|
3576
|
-
errorCode,
|
|
3577
|
-
});
|
|
3578
|
-
}
|
|
3579
|
-
};
|
|
3580
|
-
const de_UpdateResolverEndpointCommand = async (output, context) => {
|
|
3581
|
-
if (output.statusCode >= 300) {
|
|
3582
|
-
return de_UpdateResolverEndpointCommandError(output, context);
|
|
3583
|
-
}
|
|
3584
|
-
const data = await parseBody(output.body, context);
|
|
3585
|
-
let contents = {};
|
|
3586
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3587
|
-
const response = {
|
|
3588
|
-
$metadata: deserializeMetadata(output),
|
|
3589
|
-
...contents,
|
|
3590
|
-
};
|
|
3591
|
-
return response;
|
|
3592
|
-
};
|
|
3593
|
-
exports.de_UpdateResolverEndpointCommand = de_UpdateResolverEndpointCommand;
|
|
3594
|
-
const de_UpdateResolverEndpointCommandError = async (output, context) => {
|
|
3595
|
-
const parsedOutput = {
|
|
3596
|
-
...output,
|
|
3597
|
-
body: await parseErrorBody(output.body, context),
|
|
3598
|
-
};
|
|
3599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3600
|
-
switch (errorCode) {
|
|
3601
|
-
case "AccessDeniedException":
|
|
3602
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3603
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3604
|
-
case "InternalServiceErrorException":
|
|
3605
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3606
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "InvalidParameterException":
|
|
3608
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3609
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "InvalidRequestException":
|
|
3611
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3612
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "ResourceNotFoundException":
|
|
3614
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "ThrottlingException":
|
|
3617
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3618
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3619
|
-
default:
|
|
3620
|
-
const parsedBody = parsedOutput.body;
|
|
3621
|
-
return throwDefaultError({
|
|
3622
|
-
output,
|
|
3623
|
-
parsedBody,
|
|
3624
|
-
errorCode,
|
|
3625
|
-
});
|
|
3626
|
-
}
|
|
3627
|
-
};
|
|
3628
|
-
const de_UpdateResolverRuleCommand = async (output, context) => {
|
|
3629
|
-
if (output.statusCode >= 300) {
|
|
3630
|
-
return de_UpdateResolverRuleCommandError(output, context);
|
|
3631
|
-
}
|
|
3632
|
-
const data = await parseBody(output.body, context);
|
|
3633
|
-
let contents = {};
|
|
3634
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3635
|
-
const response = {
|
|
3636
|
-
$metadata: deserializeMetadata(output),
|
|
3637
|
-
...contents,
|
|
3638
|
-
};
|
|
3639
|
-
return response;
|
|
3640
|
-
};
|
|
3641
|
-
exports.de_UpdateResolverRuleCommand = de_UpdateResolverRuleCommand;
|
|
3642
|
-
const de_UpdateResolverRuleCommandError = async (output, context) => {
|
|
3643
|
-
const parsedOutput = {
|
|
3644
|
-
...output,
|
|
3645
|
-
body: await parseErrorBody(output.body, context),
|
|
3646
|
-
};
|
|
3647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3648
|
-
switch (errorCode) {
|
|
3649
|
-
case "AccessDeniedException":
|
|
3650
|
-
case "com.amazonaws.route53resolver#AccessDeniedException":
|
|
3651
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3652
|
-
case "InternalServiceErrorException":
|
|
3653
|
-
case "com.amazonaws.route53resolver#InternalServiceErrorException":
|
|
3654
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
3655
|
-
case "InvalidParameterException":
|
|
3656
|
-
case "com.amazonaws.route53resolver#InvalidParameterException":
|
|
3657
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3658
|
-
case "InvalidRequestException":
|
|
3659
|
-
case "com.amazonaws.route53resolver#InvalidRequestException":
|
|
3660
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3661
|
-
case "LimitExceededException":
|
|
3662
|
-
case "com.amazonaws.route53resolver#LimitExceededException":
|
|
3663
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3664
|
-
case "ResourceNotFoundException":
|
|
3665
|
-
case "com.amazonaws.route53resolver#ResourceNotFoundException":
|
|
3666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3667
|
-
case "ResourceUnavailableException":
|
|
3668
|
-
case "com.amazonaws.route53resolver#ResourceUnavailableException":
|
|
3669
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3670
|
-
case "ThrottlingException":
|
|
3671
|
-
case "com.amazonaws.route53resolver#ThrottlingException":
|
|
3672
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3673
|
-
default:
|
|
3674
|
-
const parsedBody = parsedOutput.body;
|
|
3675
|
-
return throwDefaultError({
|
|
3676
|
-
output,
|
|
3677
|
-
parsedBody,
|
|
3678
|
-
errorCode,
|
|
3679
|
-
});
|
|
3680
|
-
}
|
|
3681
|
-
};
|
|
3682
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3683
|
-
const body = parsedOutput.body;
|
|
3684
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3685
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3686
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3687
|
-
...deserialized,
|
|
3688
|
-
});
|
|
3689
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3690
|
-
};
|
|
3691
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3692
|
-
const body = parsedOutput.body;
|
|
3693
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3694
|
-
const exception = new models_0_1.ConflictException({
|
|
3695
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3696
|
-
...deserialized,
|
|
3697
|
-
});
|
|
3698
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3699
|
-
};
|
|
3700
|
-
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
3701
|
-
const body = parsedOutput.body;
|
|
3702
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3703
|
-
const exception = new models_0_1.InternalServiceErrorException({
|
|
3704
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3705
|
-
...deserialized,
|
|
3706
|
-
});
|
|
3707
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3708
|
-
};
|
|
3709
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
3710
|
-
const body = parsedOutput.body;
|
|
3711
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3712
|
-
const exception = new models_0_1.InvalidNextTokenException({
|
|
3713
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3714
|
-
...deserialized,
|
|
3715
|
-
});
|
|
3716
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3717
|
-
};
|
|
3718
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
3719
|
-
const body = parsedOutput.body;
|
|
3720
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3721
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
3722
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3723
|
-
...deserialized,
|
|
3724
|
-
});
|
|
3725
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3726
|
-
};
|
|
3727
|
-
const de_InvalidPolicyDocumentRes = async (parsedOutput, context) => {
|
|
3728
|
-
const body = parsedOutput.body;
|
|
3729
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3730
|
-
const exception = new models_0_1.InvalidPolicyDocument({
|
|
3731
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3732
|
-
...deserialized,
|
|
3733
|
-
});
|
|
3734
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3735
|
-
};
|
|
3736
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
3737
|
-
const body = parsedOutput.body;
|
|
3738
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3739
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
3740
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3741
|
-
...deserialized,
|
|
3742
|
-
});
|
|
3743
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3744
|
-
};
|
|
3745
|
-
const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
3746
|
-
const body = parsedOutput.body;
|
|
3747
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3748
|
-
const exception = new models_0_1.InvalidTagException({
|
|
3749
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3750
|
-
...deserialized,
|
|
3751
|
-
});
|
|
3752
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3753
|
-
};
|
|
3754
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3755
|
-
const body = parsedOutput.body;
|
|
3756
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3757
|
-
const exception = new models_0_1.LimitExceededException({
|
|
3758
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3759
|
-
...deserialized,
|
|
3760
|
-
});
|
|
3761
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3762
|
-
};
|
|
3763
|
-
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
3764
|
-
const body = parsedOutput.body;
|
|
3765
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3766
|
-
const exception = new models_0_1.ResourceExistsException({
|
|
3767
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3768
|
-
...deserialized,
|
|
3769
|
-
});
|
|
3770
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3771
|
-
};
|
|
3772
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
3773
|
-
const body = parsedOutput.body;
|
|
3774
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3775
|
-
const exception = new models_0_1.ResourceInUseException({
|
|
3776
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3777
|
-
...deserialized,
|
|
3778
|
-
});
|
|
3779
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3780
|
-
};
|
|
3781
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3782
|
-
const body = parsedOutput.body;
|
|
3783
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3784
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3785
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3786
|
-
...deserialized,
|
|
3787
|
-
});
|
|
3788
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3789
|
-
};
|
|
3790
|
-
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3791
|
-
const body = parsedOutput.body;
|
|
3792
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3793
|
-
const exception = new models_0_1.ResourceUnavailableException({
|
|
3794
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3795
|
-
...deserialized,
|
|
3796
|
-
});
|
|
3797
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3798
|
-
};
|
|
3799
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3800
|
-
const body = parsedOutput.body;
|
|
3801
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3802
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3803
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3804
|
-
...deserialized,
|
|
3805
|
-
});
|
|
3806
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3807
|
-
};
|
|
3808
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3809
|
-
const body = parsedOutput.body;
|
|
3810
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3811
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3812
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3813
|
-
...deserialized,
|
|
3814
|
-
});
|
|
3815
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3816
|
-
};
|
|
3817
|
-
const de_UnknownResourceExceptionRes = async (parsedOutput, context) => {
|
|
3818
|
-
const body = parsedOutput.body;
|
|
3819
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3820
|
-
const exception = new models_0_1.UnknownResourceException({
|
|
3821
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3822
|
-
...deserialized,
|
|
3823
|
-
});
|
|
3824
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3825
|
-
};
|
|
3826
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3827
|
-
const body = parsedOutput.body;
|
|
3828
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3829
|
-
const exception = new models_0_1.ValidationException({
|
|
3830
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3831
|
-
...deserialized,
|
|
3832
|
-
});
|
|
3833
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3834
|
-
};
|
|
3835
|
-
const se_AssociateFirewallRuleGroupRequest = (input, context) => {
|
|
3836
|
-
return (0, smithy_client_1.take)(input, {
|
|
3837
|
-
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3838
|
-
FirewallRuleGroupId: [],
|
|
3839
|
-
MutationProtection: [],
|
|
3840
|
-
Name: [],
|
|
3841
|
-
Priority: [],
|
|
3842
|
-
Tags: smithy_client_1._json,
|
|
3843
|
-
VpcId: [],
|
|
3844
|
-
});
|
|
3845
|
-
};
|
|
3846
|
-
const se_CreateFirewallDomainListRequest = (input, context) => {
|
|
3847
|
-
return (0, smithy_client_1.take)(input, {
|
|
3848
|
-
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3849
|
-
Name: [],
|
|
3850
|
-
Tags: smithy_client_1._json,
|
|
3851
|
-
});
|
|
3852
|
-
};
|
|
3853
|
-
const se_CreateFirewallRuleGroupRequest = (input, context) => {
|
|
3854
|
-
return (0, smithy_client_1.take)(input, {
|
|
3855
|
-
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3856
|
-
Name: [],
|
|
3857
|
-
Tags: smithy_client_1._json,
|
|
3858
|
-
});
|
|
3859
|
-
};
|
|
3860
|
-
const se_CreateFirewallRuleRequest = (input, context) => {
|
|
3861
|
-
return (0, smithy_client_1.take)(input, {
|
|
3862
|
-
Action: [],
|
|
3863
|
-
BlockOverrideDnsType: [],
|
|
3864
|
-
BlockOverrideDomain: [],
|
|
3865
|
-
BlockOverrideTtl: [],
|
|
3866
|
-
BlockResponse: [],
|
|
3867
|
-
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3868
|
-
FirewallDomainListId: [],
|
|
3869
|
-
FirewallRuleGroupId: [],
|
|
3870
|
-
Name: [],
|
|
3871
|
-
Priority: [],
|
|
3872
|
-
Qtype: [],
|
|
3873
|
-
});
|
|
3874
|
-
};
|
|
3875
|
-
const se_CreateResolverQueryLogConfigRequest = (input, context) => {
|
|
3876
|
-
return (0, smithy_client_1.take)(input, {
|
|
3877
|
-
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3878
|
-
DestinationArn: [],
|
|
3879
|
-
Name: [],
|
|
3880
|
-
Tags: smithy_client_1._json,
|
|
3881
|
-
});
|
|
3882
|
-
};
|
|
3883
|
-
const deserializeMetadata = (output) => ({
|
|
3884
|
-
httpStatusCode: output.statusCode,
|
|
3885
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3886
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3887
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3888
|
-
});
|
|
3889
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3890
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(Route53ResolverServiceException_1.Route53ResolverServiceException);
|
|
3891
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3892
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3893
|
-
const contents = {
|
|
3894
|
-
protocol,
|
|
3895
|
-
hostname,
|
|
3896
|
-
port,
|
|
3897
|
-
method: "POST",
|
|
3898
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3899
|
-
headers,
|
|
3900
|
-
};
|
|
3901
|
-
if (resolvedHostname !== undefined) {
|
|
3902
|
-
contents.hostname = resolvedHostname;
|
|
3903
|
-
}
|
|
3904
|
-
if (body !== undefined) {
|
|
3905
|
-
contents.body = body;
|
|
3906
|
-
}
|
|
3907
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3908
|
-
};
|
|
3909
|
-
function sharedHeaders(operation) {
|
|
3910
|
-
return {
|
|
3911
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3912
|
-
"x-amz-target": `Route53Resolver.${operation}`,
|
|
3913
|
-
};
|
|
3914
|
-
}
|
|
3915
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3916
|
-
if (encoded.length) {
|
|
3917
|
-
return JSON.parse(encoded);
|
|
3918
|
-
}
|
|
3919
|
-
return {};
|
|
3920
|
-
});
|
|
3921
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3922
|
-
const value = await parseBody(errorBody, context);
|
|
3923
|
-
value.message = value.message ?? value.Message;
|
|
3924
|
-
return value;
|
|
3925
|
-
};
|
|
3926
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3927
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3928
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3929
|
-
let cleanValue = rawValue;
|
|
3930
|
-
if (typeof cleanValue === "number") {
|
|
3931
|
-
cleanValue = cleanValue.toString();
|
|
3932
|
-
}
|
|
3933
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3934
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3935
|
-
}
|
|
3936
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3937
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3938
|
-
}
|
|
3939
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3940
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3941
|
-
}
|
|
3942
|
-
return cleanValue;
|
|
3943
|
-
};
|
|
3944
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3945
|
-
if (headerKey !== undefined) {
|
|
3946
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3947
|
-
}
|
|
3948
|
-
if (data.code !== undefined) {
|
|
3949
|
-
return sanitizeErrorCode(data.code);
|
|
3950
|
-
}
|
|
3951
|
-
if (data["__type"] !== undefined) {
|
|
3952
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3953
|
-
}
|
|
3954
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|