@aws-sdk/client-shield 3.490.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/Shield.js +1 -83
- package/dist-cjs/ShieldClient.js +1 -43
- package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +1 -28
- package/dist-cjs/commands/AssociateDRTRoleCommand.js +1 -28
- package/dist-cjs/commands/AssociateHealthCheckCommand.js +1 -28
- package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +1 -28
- package/dist-cjs/commands/CreateProtectionCommand.js +1 -28
- package/dist-cjs/commands/CreateProtectionGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteProtectionCommand.js +1 -28
- package/dist-cjs/commands/DeleteProtectionGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DescribeAttackCommand.js +1 -28
- package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDRTAccessCommand.js +1 -28
- package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeProtectionCommand.js +1 -28
- package/dist-cjs/commands/DescribeProtectionGroupCommand.js +1 -28
- package/dist-cjs/commands/DescribeSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +1 -28
- package/dist-cjs/commands/DisableProactiveEngagementCommand.js +1 -28
- package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +1 -28
- package/dist-cjs/commands/DisassociateDRTRoleCommand.js +1 -28
- package/dist-cjs/commands/DisassociateHealthCheckCommand.js +1 -28
- package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +1 -28
- package/dist-cjs/commands/EnableProactiveEngagementCommand.js +1 -28
- package/dist-cjs/commands/GetSubscriptionStateCommand.js +1 -28
- package/dist-cjs/commands/ListAttacksCommand.js +1 -28
- package/dist-cjs/commands/ListProtectionGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListProtectionsCommand.js +1 -28
- package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +1 -28
- package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +1 -28
- package/dist-cjs/commands/UpdateProtectionGroupCommand.js +1 -28
- package/dist-cjs/commands/UpdateSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -39
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3267 -11
- package/dist-cjs/models/ShieldServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -242
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAttacksPaginator.js +1 -7
- package/dist-cjs/pagination/ListProtectionGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProtectionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListResourcesInProtectionGroupPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_json1_1.js +1 -2113
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2113 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_DescribeEmergencyContactSettingsCommand = exports.de_DescribeDRTAccessCommand = exports.de_DescribeAttackStatisticsCommand = exports.de_DescribeAttackCommand = exports.de_DeleteSubscriptionCommand = exports.de_DeleteProtectionGroupCommand = exports.de_DeleteProtectionCommand = exports.de_CreateSubscriptionCommand = exports.de_CreateProtectionGroupCommand = exports.de_CreateProtectionCommand = exports.de_AssociateProactiveEngagementDetailsCommand = exports.de_AssociateHealthCheckCommand = exports.de_AssociateDRTRoleCommand = exports.de_AssociateDRTLogBucketCommand = exports.se_UpdateSubscriptionCommand = exports.se_UpdateProtectionGroupCommand = exports.se_UpdateEmergencyContactSettingsCommand = exports.se_UpdateApplicationLayerAutomaticResponseCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourcesInProtectionGroupCommand = exports.se_ListProtectionsCommand = exports.se_ListProtectionGroupsCommand = exports.se_ListAttacksCommand = exports.se_GetSubscriptionStateCommand = exports.se_EnableProactiveEngagementCommand = exports.se_EnableApplicationLayerAutomaticResponseCommand = exports.se_DisassociateHealthCheckCommand = exports.se_DisassociateDRTRoleCommand = exports.se_DisassociateDRTLogBucketCommand = exports.se_DisableProactiveEngagementCommand = exports.se_DisableApplicationLayerAutomaticResponseCommand = exports.se_DescribeSubscriptionCommand = exports.se_DescribeProtectionGroupCommand = exports.se_DescribeProtectionCommand = exports.se_DescribeEmergencyContactSettingsCommand = exports.se_DescribeDRTAccessCommand = exports.se_DescribeAttackStatisticsCommand = exports.se_DescribeAttackCommand = exports.se_DeleteSubscriptionCommand = exports.se_DeleteProtectionGroupCommand = exports.se_DeleteProtectionCommand = exports.se_CreateSubscriptionCommand = exports.se_CreateProtectionGroupCommand = exports.se_CreateProtectionCommand = exports.se_AssociateProactiveEngagementDetailsCommand = exports.se_AssociateHealthCheckCommand = exports.se_AssociateDRTRoleCommand = exports.se_AssociateDRTLogBucketCommand = void 0;
|
|
4
|
-
exports.de_UpdateSubscriptionCommand = exports.de_UpdateProtectionGroupCommand = exports.de_UpdateEmergencyContactSettingsCommand = exports.de_UpdateApplicationLayerAutomaticResponseCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourcesInProtectionGroupCommand = exports.de_ListProtectionsCommand = exports.de_ListProtectionGroupsCommand = exports.de_ListAttacksCommand = exports.de_GetSubscriptionStateCommand = exports.de_EnableProactiveEngagementCommand = exports.de_EnableApplicationLayerAutomaticResponseCommand = exports.de_DisassociateHealthCheckCommand = exports.de_DisassociateDRTRoleCommand = exports.de_DisassociateDRTLogBucketCommand = exports.de_DisableProactiveEngagementCommand = exports.de_DisableApplicationLayerAutomaticResponseCommand = exports.de_DescribeSubscriptionCommand = exports.de_DescribeProtectionGroupCommand = exports.de_DescribeProtectionCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const ShieldServiceException_1 = require("../models/ShieldServiceException");
|
|
9
|
-
const se_AssociateDRTLogBucketCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("AssociateDRTLogBucket");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_AssociateDRTLogBucketCommand = se_AssociateDRTLogBucketCommand;
|
|
16
|
-
const se_AssociateDRTRoleCommand = async (input, context) => {
|
|
17
|
-
const headers = sharedHeaders("AssociateDRTRole");
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
-
};
|
|
22
|
-
exports.se_AssociateDRTRoleCommand = se_AssociateDRTRoleCommand;
|
|
23
|
-
const se_AssociateHealthCheckCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("AssociateHealthCheck");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
|
-
exports.se_AssociateHealthCheckCommand = se_AssociateHealthCheckCommand;
|
|
30
|
-
const se_AssociateProactiveEngagementDetailsCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("AssociateProactiveEngagementDetails");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
exports.se_AssociateProactiveEngagementDetailsCommand = se_AssociateProactiveEngagementDetailsCommand;
|
|
37
|
-
const se_CreateProtectionCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreateProtection");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
exports.se_CreateProtectionCommand = se_CreateProtectionCommand;
|
|
44
|
-
const se_CreateProtectionGroupCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("CreateProtectionGroup");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
exports.se_CreateProtectionGroupCommand = se_CreateProtectionGroupCommand;
|
|
51
|
-
const se_CreateSubscriptionCommand = async (input, context) => {
|
|
52
|
-
const headers = sharedHeaders("CreateSubscription");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
-
};
|
|
57
|
-
exports.se_CreateSubscriptionCommand = se_CreateSubscriptionCommand;
|
|
58
|
-
const se_DeleteProtectionCommand = async (input, context) => {
|
|
59
|
-
const headers = sharedHeaders("DeleteProtection");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_DeleteProtectionCommand = se_DeleteProtectionCommand;
|
|
65
|
-
const se_DeleteProtectionGroupCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("DeleteProtectionGroup");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
exports.se_DeleteProtectionGroupCommand = se_DeleteProtectionGroupCommand;
|
|
72
|
-
const se_DeleteSubscriptionCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DeleteSubscription");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
exports.se_DeleteSubscriptionCommand = se_DeleteSubscriptionCommand;
|
|
79
|
-
const se_DescribeAttackCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DescribeAttack");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.se_DescribeAttackCommand = se_DescribeAttackCommand;
|
|
86
|
-
const se_DescribeAttackStatisticsCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("DescribeAttackStatistics");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
exports.se_DescribeAttackStatisticsCommand = se_DescribeAttackStatisticsCommand;
|
|
93
|
-
const se_DescribeDRTAccessCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("DescribeDRTAccess");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
exports.se_DescribeDRTAccessCommand = se_DescribeDRTAccessCommand;
|
|
100
|
-
const se_DescribeEmergencyContactSettingsCommand = async (input, context) => {
|
|
101
|
-
const headers = sharedHeaders("DescribeEmergencyContactSettings");
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
-
};
|
|
106
|
-
exports.se_DescribeEmergencyContactSettingsCommand = se_DescribeEmergencyContactSettingsCommand;
|
|
107
|
-
const se_DescribeProtectionCommand = async (input, context) => {
|
|
108
|
-
const headers = sharedHeaders("DescribeProtection");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
exports.se_DescribeProtectionCommand = se_DescribeProtectionCommand;
|
|
114
|
-
const se_DescribeProtectionGroupCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DescribeProtectionGroup");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
exports.se_DescribeProtectionGroupCommand = se_DescribeProtectionGroupCommand;
|
|
121
|
-
const se_DescribeSubscriptionCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("DescribeSubscription");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
exports.se_DescribeSubscriptionCommand = se_DescribeSubscriptionCommand;
|
|
128
|
-
const se_DisableApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
129
|
-
const headers = sharedHeaders("DisableApplicationLayerAutomaticResponse");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
132
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
|
-
};
|
|
134
|
-
exports.se_DisableApplicationLayerAutomaticResponseCommand = se_DisableApplicationLayerAutomaticResponseCommand;
|
|
135
|
-
const se_DisableProactiveEngagementCommand = async (input, context) => {
|
|
136
|
-
const headers = sharedHeaders("DisableProactiveEngagement");
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
-
};
|
|
141
|
-
exports.se_DisableProactiveEngagementCommand = se_DisableProactiveEngagementCommand;
|
|
142
|
-
const se_DisassociateDRTLogBucketCommand = async (input, context) => {
|
|
143
|
-
const headers = sharedHeaders("DisassociateDRTLogBucket");
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
-
};
|
|
148
|
-
exports.se_DisassociateDRTLogBucketCommand = se_DisassociateDRTLogBucketCommand;
|
|
149
|
-
const se_DisassociateDRTRoleCommand = async (input, context) => {
|
|
150
|
-
const headers = sharedHeaders("DisassociateDRTRole");
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
exports.se_DisassociateDRTRoleCommand = se_DisassociateDRTRoleCommand;
|
|
156
|
-
const se_DisassociateHealthCheckCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("DisassociateHealthCheck");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
exports.se_DisassociateHealthCheckCommand = se_DisassociateHealthCheckCommand;
|
|
163
|
-
const se_EnableApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("EnableApplicationLayerAutomaticResponse");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
exports.se_EnableApplicationLayerAutomaticResponseCommand = se_EnableApplicationLayerAutomaticResponseCommand;
|
|
170
|
-
const se_EnableProactiveEngagementCommand = async (input, context) => {
|
|
171
|
-
const headers = sharedHeaders("EnableProactiveEngagement");
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
-
};
|
|
176
|
-
exports.se_EnableProactiveEngagementCommand = se_EnableProactiveEngagementCommand;
|
|
177
|
-
const se_GetSubscriptionStateCommand = async (input, context) => {
|
|
178
|
-
const headers = sharedHeaders("GetSubscriptionState");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
|
-
};
|
|
183
|
-
exports.se_GetSubscriptionStateCommand = se_GetSubscriptionStateCommand;
|
|
184
|
-
const se_ListAttacksCommand = async (input, context) => {
|
|
185
|
-
const headers = sharedHeaders("ListAttacks");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify(se_ListAttacksRequest(input, context));
|
|
188
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
|
-
};
|
|
190
|
-
exports.se_ListAttacksCommand = se_ListAttacksCommand;
|
|
191
|
-
const se_ListProtectionGroupsCommand = async (input, context) => {
|
|
192
|
-
const headers = sharedHeaders("ListProtectionGroups");
|
|
193
|
-
let body;
|
|
194
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
-
};
|
|
197
|
-
exports.se_ListProtectionGroupsCommand = se_ListProtectionGroupsCommand;
|
|
198
|
-
const se_ListProtectionsCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("ListProtections");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
exports.se_ListProtectionsCommand = se_ListProtectionsCommand;
|
|
205
|
-
const se_ListResourcesInProtectionGroupCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("ListResourcesInProtectionGroup");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
exports.se_ListResourcesInProtectionGroupCommand = se_ListResourcesInProtectionGroupCommand;
|
|
212
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
213
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
214
|
-
let body;
|
|
215
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
219
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
220
|
-
const headers = sharedHeaders("TagResource");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
226
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
227
|
-
const headers = sharedHeaders("UntagResource");
|
|
228
|
-
let body;
|
|
229
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
|
-
};
|
|
232
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
233
|
-
const se_UpdateApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
234
|
-
const headers = sharedHeaders("UpdateApplicationLayerAutomaticResponse");
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
-
};
|
|
239
|
-
exports.se_UpdateApplicationLayerAutomaticResponseCommand = se_UpdateApplicationLayerAutomaticResponseCommand;
|
|
240
|
-
const se_UpdateEmergencyContactSettingsCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("UpdateEmergencyContactSettings");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
exports.se_UpdateEmergencyContactSettingsCommand = se_UpdateEmergencyContactSettingsCommand;
|
|
247
|
-
const se_UpdateProtectionGroupCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("UpdateProtectionGroup");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
exports.se_UpdateProtectionGroupCommand = se_UpdateProtectionGroupCommand;
|
|
254
|
-
const se_UpdateSubscriptionCommand = async (input, context) => {
|
|
255
|
-
const headers = sharedHeaders("UpdateSubscription");
|
|
256
|
-
let body;
|
|
257
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
|
-
};
|
|
260
|
-
exports.se_UpdateSubscriptionCommand = se_UpdateSubscriptionCommand;
|
|
261
|
-
const de_AssociateDRTLogBucketCommand = async (output, context) => {
|
|
262
|
-
if (output.statusCode >= 300) {
|
|
263
|
-
return de_AssociateDRTLogBucketCommandError(output, context);
|
|
264
|
-
}
|
|
265
|
-
const data = await parseBody(output.body, context);
|
|
266
|
-
let contents = {};
|
|
267
|
-
contents = (0, smithy_client_1._json)(data);
|
|
268
|
-
const response = {
|
|
269
|
-
$metadata: deserializeMetadata(output),
|
|
270
|
-
...contents,
|
|
271
|
-
};
|
|
272
|
-
return response;
|
|
273
|
-
};
|
|
274
|
-
exports.de_AssociateDRTLogBucketCommand = de_AssociateDRTLogBucketCommand;
|
|
275
|
-
const de_AssociateDRTLogBucketCommandError = async (output, context) => {
|
|
276
|
-
const parsedOutput = {
|
|
277
|
-
...output,
|
|
278
|
-
body: await parseErrorBody(output.body, context),
|
|
279
|
-
};
|
|
280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
281
|
-
switch (errorCode) {
|
|
282
|
-
case "AccessDeniedForDependencyException":
|
|
283
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
284
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
285
|
-
case "InternalErrorException":
|
|
286
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
287
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
288
|
-
case "InvalidOperationException":
|
|
289
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
290
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
291
|
-
case "InvalidParameterException":
|
|
292
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
293
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
294
|
-
case "LimitsExceededException":
|
|
295
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
296
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
297
|
-
case "NoAssociatedRoleException":
|
|
298
|
-
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
299
|
-
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
300
|
-
case "OptimisticLockException":
|
|
301
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
302
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
303
|
-
case "ResourceNotFoundException":
|
|
304
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
306
|
-
default:
|
|
307
|
-
const parsedBody = parsedOutput.body;
|
|
308
|
-
return throwDefaultError({
|
|
309
|
-
output,
|
|
310
|
-
parsedBody,
|
|
311
|
-
errorCode,
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
const de_AssociateDRTRoleCommand = async (output, context) => {
|
|
316
|
-
if (output.statusCode >= 300) {
|
|
317
|
-
return de_AssociateDRTRoleCommandError(output, context);
|
|
318
|
-
}
|
|
319
|
-
const data = await parseBody(output.body, context);
|
|
320
|
-
let contents = {};
|
|
321
|
-
contents = (0, smithy_client_1._json)(data);
|
|
322
|
-
const response = {
|
|
323
|
-
$metadata: deserializeMetadata(output),
|
|
324
|
-
...contents,
|
|
325
|
-
};
|
|
326
|
-
return response;
|
|
327
|
-
};
|
|
328
|
-
exports.de_AssociateDRTRoleCommand = de_AssociateDRTRoleCommand;
|
|
329
|
-
const de_AssociateDRTRoleCommandError = async (output, context) => {
|
|
330
|
-
const parsedOutput = {
|
|
331
|
-
...output,
|
|
332
|
-
body: await parseErrorBody(output.body, context),
|
|
333
|
-
};
|
|
334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
|
-
switch (errorCode) {
|
|
336
|
-
case "AccessDeniedForDependencyException":
|
|
337
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
338
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
339
|
-
case "InternalErrorException":
|
|
340
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
341
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
342
|
-
case "InvalidOperationException":
|
|
343
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
344
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
345
|
-
case "InvalidParameterException":
|
|
346
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
347
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
348
|
-
case "OptimisticLockException":
|
|
349
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
350
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
351
|
-
case "ResourceNotFoundException":
|
|
352
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
353
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
354
|
-
default:
|
|
355
|
-
const parsedBody = parsedOutput.body;
|
|
356
|
-
return throwDefaultError({
|
|
357
|
-
output,
|
|
358
|
-
parsedBody,
|
|
359
|
-
errorCode,
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
|
-
const de_AssociateHealthCheckCommand = async (output, context) => {
|
|
364
|
-
if (output.statusCode >= 300) {
|
|
365
|
-
return de_AssociateHealthCheckCommandError(output, context);
|
|
366
|
-
}
|
|
367
|
-
const data = await parseBody(output.body, context);
|
|
368
|
-
let contents = {};
|
|
369
|
-
contents = (0, smithy_client_1._json)(data);
|
|
370
|
-
const response = {
|
|
371
|
-
$metadata: deserializeMetadata(output),
|
|
372
|
-
...contents,
|
|
373
|
-
};
|
|
374
|
-
return response;
|
|
375
|
-
};
|
|
376
|
-
exports.de_AssociateHealthCheckCommand = de_AssociateHealthCheckCommand;
|
|
377
|
-
const de_AssociateHealthCheckCommandError = async (output, context) => {
|
|
378
|
-
const parsedOutput = {
|
|
379
|
-
...output,
|
|
380
|
-
body: await parseErrorBody(output.body, context),
|
|
381
|
-
};
|
|
382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
383
|
-
switch (errorCode) {
|
|
384
|
-
case "InternalErrorException":
|
|
385
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
386
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
387
|
-
case "InvalidParameterException":
|
|
388
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
389
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
390
|
-
case "InvalidResourceException":
|
|
391
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
392
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
393
|
-
case "LimitsExceededException":
|
|
394
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
395
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
396
|
-
case "OptimisticLockException":
|
|
397
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
398
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ResourceNotFoundException":
|
|
400
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
401
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
402
|
-
default:
|
|
403
|
-
const parsedBody = parsedOutput.body;
|
|
404
|
-
return throwDefaultError({
|
|
405
|
-
output,
|
|
406
|
-
parsedBody,
|
|
407
|
-
errorCode,
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
const de_AssociateProactiveEngagementDetailsCommand = async (output, context) => {
|
|
412
|
-
if (output.statusCode >= 300) {
|
|
413
|
-
return de_AssociateProactiveEngagementDetailsCommandError(output, context);
|
|
414
|
-
}
|
|
415
|
-
const data = await parseBody(output.body, context);
|
|
416
|
-
let contents = {};
|
|
417
|
-
contents = (0, smithy_client_1._json)(data);
|
|
418
|
-
const response = {
|
|
419
|
-
$metadata: deserializeMetadata(output),
|
|
420
|
-
...contents,
|
|
421
|
-
};
|
|
422
|
-
return response;
|
|
423
|
-
};
|
|
424
|
-
exports.de_AssociateProactiveEngagementDetailsCommand = de_AssociateProactiveEngagementDetailsCommand;
|
|
425
|
-
const de_AssociateProactiveEngagementDetailsCommandError = async (output, context) => {
|
|
426
|
-
const parsedOutput = {
|
|
427
|
-
...output,
|
|
428
|
-
body: await parseErrorBody(output.body, context),
|
|
429
|
-
};
|
|
430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
|
-
switch (errorCode) {
|
|
432
|
-
case "InternalErrorException":
|
|
433
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
434
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
435
|
-
case "InvalidOperationException":
|
|
436
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
437
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
438
|
-
case "InvalidParameterException":
|
|
439
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
440
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
441
|
-
case "OptimisticLockException":
|
|
442
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
443
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
444
|
-
case "ResourceNotFoundException":
|
|
445
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
446
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
447
|
-
default:
|
|
448
|
-
const parsedBody = parsedOutput.body;
|
|
449
|
-
return throwDefaultError({
|
|
450
|
-
output,
|
|
451
|
-
parsedBody,
|
|
452
|
-
errorCode,
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
const de_CreateProtectionCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode >= 300) {
|
|
458
|
-
return de_CreateProtectionCommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const data = await parseBody(output.body, context);
|
|
461
|
-
let contents = {};
|
|
462
|
-
contents = (0, smithy_client_1._json)(data);
|
|
463
|
-
const response = {
|
|
464
|
-
$metadata: deserializeMetadata(output),
|
|
465
|
-
...contents,
|
|
466
|
-
};
|
|
467
|
-
return response;
|
|
468
|
-
};
|
|
469
|
-
exports.de_CreateProtectionCommand = de_CreateProtectionCommand;
|
|
470
|
-
const de_CreateProtectionCommandError = async (output, context) => {
|
|
471
|
-
const parsedOutput = {
|
|
472
|
-
...output,
|
|
473
|
-
body: await parseErrorBody(output.body, context),
|
|
474
|
-
};
|
|
475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
-
switch (errorCode) {
|
|
477
|
-
case "InternalErrorException":
|
|
478
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
479
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
480
|
-
case "InvalidOperationException":
|
|
481
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
482
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
483
|
-
case "InvalidParameterException":
|
|
484
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
485
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
486
|
-
case "InvalidResourceException":
|
|
487
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
488
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
489
|
-
case "LimitsExceededException":
|
|
490
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
491
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
492
|
-
case "OptimisticLockException":
|
|
493
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
494
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ResourceAlreadyExistsException":
|
|
496
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
497
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ResourceNotFoundException":
|
|
499
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode,
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
const de_CreateProtectionGroupCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode >= 300) {
|
|
512
|
-
return de_CreateProtectionGroupCommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const data = await parseBody(output.body, context);
|
|
515
|
-
let contents = {};
|
|
516
|
-
contents = (0, smithy_client_1._json)(data);
|
|
517
|
-
const response = {
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
...contents,
|
|
520
|
-
};
|
|
521
|
-
return response;
|
|
522
|
-
};
|
|
523
|
-
exports.de_CreateProtectionGroupCommand = de_CreateProtectionGroupCommand;
|
|
524
|
-
const de_CreateProtectionGroupCommandError = async (output, context) => {
|
|
525
|
-
const parsedOutput = {
|
|
526
|
-
...output,
|
|
527
|
-
body: await parseErrorBody(output.body, context),
|
|
528
|
-
};
|
|
529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
-
switch (errorCode) {
|
|
531
|
-
case "InternalErrorException":
|
|
532
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
533
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
534
|
-
case "InvalidParameterException":
|
|
535
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
536
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
537
|
-
case "LimitsExceededException":
|
|
538
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
539
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
540
|
-
case "OptimisticLockException":
|
|
541
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
542
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ResourceAlreadyExistsException":
|
|
544
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
545
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ResourceNotFoundException":
|
|
547
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
548
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
549
|
-
default:
|
|
550
|
-
const parsedBody = parsedOutput.body;
|
|
551
|
-
return throwDefaultError({
|
|
552
|
-
output,
|
|
553
|
-
parsedBody,
|
|
554
|
-
errorCode,
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
const de_CreateSubscriptionCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode >= 300) {
|
|
560
|
-
return de_CreateSubscriptionCommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const data = await parseBody(output.body, context);
|
|
563
|
-
let contents = {};
|
|
564
|
-
contents = (0, smithy_client_1._json)(data);
|
|
565
|
-
const response = {
|
|
566
|
-
$metadata: deserializeMetadata(output),
|
|
567
|
-
...contents,
|
|
568
|
-
};
|
|
569
|
-
return response;
|
|
570
|
-
};
|
|
571
|
-
exports.de_CreateSubscriptionCommand = de_CreateSubscriptionCommand;
|
|
572
|
-
const de_CreateSubscriptionCommandError = async (output, context) => {
|
|
573
|
-
const parsedOutput = {
|
|
574
|
-
...output,
|
|
575
|
-
body: await parseErrorBody(output.body, context),
|
|
576
|
-
};
|
|
577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
578
|
-
switch (errorCode) {
|
|
579
|
-
case "InternalErrorException":
|
|
580
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
581
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
582
|
-
case "ResourceAlreadyExistsException":
|
|
583
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
584
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
585
|
-
default:
|
|
586
|
-
const parsedBody = parsedOutput.body;
|
|
587
|
-
return throwDefaultError({
|
|
588
|
-
output,
|
|
589
|
-
parsedBody,
|
|
590
|
-
errorCode,
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
const de_DeleteProtectionCommand = async (output, context) => {
|
|
595
|
-
if (output.statusCode >= 300) {
|
|
596
|
-
return de_DeleteProtectionCommandError(output, context);
|
|
597
|
-
}
|
|
598
|
-
const data = await parseBody(output.body, context);
|
|
599
|
-
let contents = {};
|
|
600
|
-
contents = (0, smithy_client_1._json)(data);
|
|
601
|
-
const response = {
|
|
602
|
-
$metadata: deserializeMetadata(output),
|
|
603
|
-
...contents,
|
|
604
|
-
};
|
|
605
|
-
return response;
|
|
606
|
-
};
|
|
607
|
-
exports.de_DeleteProtectionCommand = de_DeleteProtectionCommand;
|
|
608
|
-
const de_DeleteProtectionCommandError = async (output, context) => {
|
|
609
|
-
const parsedOutput = {
|
|
610
|
-
...output,
|
|
611
|
-
body: await parseErrorBody(output.body, context),
|
|
612
|
-
};
|
|
613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
-
switch (errorCode) {
|
|
615
|
-
case "InternalErrorException":
|
|
616
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
617
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
618
|
-
case "OptimisticLockException":
|
|
619
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
620
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ResourceNotFoundException":
|
|
622
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
623
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
624
|
-
default:
|
|
625
|
-
const parsedBody = parsedOutput.body;
|
|
626
|
-
return throwDefaultError({
|
|
627
|
-
output,
|
|
628
|
-
parsedBody,
|
|
629
|
-
errorCode,
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
|
-
const de_DeleteProtectionGroupCommand = async (output, context) => {
|
|
634
|
-
if (output.statusCode >= 300) {
|
|
635
|
-
return de_DeleteProtectionGroupCommandError(output, context);
|
|
636
|
-
}
|
|
637
|
-
const data = await parseBody(output.body, context);
|
|
638
|
-
let contents = {};
|
|
639
|
-
contents = (0, smithy_client_1._json)(data);
|
|
640
|
-
const response = {
|
|
641
|
-
$metadata: deserializeMetadata(output),
|
|
642
|
-
...contents,
|
|
643
|
-
};
|
|
644
|
-
return response;
|
|
645
|
-
};
|
|
646
|
-
exports.de_DeleteProtectionGroupCommand = de_DeleteProtectionGroupCommand;
|
|
647
|
-
const de_DeleteProtectionGroupCommandError = async (output, context) => {
|
|
648
|
-
const parsedOutput = {
|
|
649
|
-
...output,
|
|
650
|
-
body: await parseErrorBody(output.body, context),
|
|
651
|
-
};
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "InternalErrorException":
|
|
655
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
656
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
657
|
-
case "OptimisticLockException":
|
|
658
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
659
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ResourceNotFoundException":
|
|
661
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
662
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
663
|
-
default:
|
|
664
|
-
const parsedBody = parsedOutput.body;
|
|
665
|
-
return throwDefaultError({
|
|
666
|
-
output,
|
|
667
|
-
parsedBody,
|
|
668
|
-
errorCode,
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
const de_DeleteSubscriptionCommand = async (output, context) => {
|
|
673
|
-
if (output.statusCode >= 300) {
|
|
674
|
-
return de_DeleteSubscriptionCommandError(output, context);
|
|
675
|
-
}
|
|
676
|
-
const data = await parseBody(output.body, context);
|
|
677
|
-
let contents = {};
|
|
678
|
-
contents = (0, smithy_client_1._json)(data);
|
|
679
|
-
const response = {
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
...contents,
|
|
682
|
-
};
|
|
683
|
-
return response;
|
|
684
|
-
};
|
|
685
|
-
exports.de_DeleteSubscriptionCommand = de_DeleteSubscriptionCommand;
|
|
686
|
-
const de_DeleteSubscriptionCommandError = async (output, context) => {
|
|
687
|
-
const parsedOutput = {
|
|
688
|
-
...output,
|
|
689
|
-
body: await parseErrorBody(output.body, context),
|
|
690
|
-
};
|
|
691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
-
switch (errorCode) {
|
|
693
|
-
case "InternalErrorException":
|
|
694
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
695
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
696
|
-
case "LockedSubscriptionException":
|
|
697
|
-
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
698
|
-
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
699
|
-
case "ResourceNotFoundException":
|
|
700
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
701
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
702
|
-
default:
|
|
703
|
-
const parsedBody = parsedOutput.body;
|
|
704
|
-
return throwDefaultError({
|
|
705
|
-
output,
|
|
706
|
-
parsedBody,
|
|
707
|
-
errorCode,
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
};
|
|
711
|
-
const de_DescribeAttackCommand = async (output, context) => {
|
|
712
|
-
if (output.statusCode >= 300) {
|
|
713
|
-
return de_DescribeAttackCommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
const data = await parseBody(output.body, context);
|
|
716
|
-
let contents = {};
|
|
717
|
-
contents = de_DescribeAttackResponse(data, context);
|
|
718
|
-
const response = {
|
|
719
|
-
$metadata: deserializeMetadata(output),
|
|
720
|
-
...contents,
|
|
721
|
-
};
|
|
722
|
-
return response;
|
|
723
|
-
};
|
|
724
|
-
exports.de_DescribeAttackCommand = de_DescribeAttackCommand;
|
|
725
|
-
const de_DescribeAttackCommandError = async (output, context) => {
|
|
726
|
-
const parsedOutput = {
|
|
727
|
-
...output,
|
|
728
|
-
body: await parseErrorBody(output.body, context),
|
|
729
|
-
};
|
|
730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
-
switch (errorCode) {
|
|
732
|
-
case "AccessDeniedException":
|
|
733
|
-
case "com.amazonaws.shield#AccessDeniedException":
|
|
734
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
735
|
-
case "InternalErrorException":
|
|
736
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
737
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
738
|
-
default:
|
|
739
|
-
const parsedBody = parsedOutput.body;
|
|
740
|
-
return throwDefaultError({
|
|
741
|
-
output,
|
|
742
|
-
parsedBody,
|
|
743
|
-
errorCode,
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
};
|
|
747
|
-
const de_DescribeAttackStatisticsCommand = async (output, context) => {
|
|
748
|
-
if (output.statusCode >= 300) {
|
|
749
|
-
return de_DescribeAttackStatisticsCommandError(output, context);
|
|
750
|
-
}
|
|
751
|
-
const data = await parseBody(output.body, context);
|
|
752
|
-
let contents = {};
|
|
753
|
-
contents = de_DescribeAttackStatisticsResponse(data, context);
|
|
754
|
-
const response = {
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
...contents,
|
|
757
|
-
};
|
|
758
|
-
return response;
|
|
759
|
-
};
|
|
760
|
-
exports.de_DescribeAttackStatisticsCommand = de_DescribeAttackStatisticsCommand;
|
|
761
|
-
const de_DescribeAttackStatisticsCommandError = async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context),
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "InternalErrorException":
|
|
769
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
770
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
771
|
-
default:
|
|
772
|
-
const parsedBody = parsedOutput.body;
|
|
773
|
-
return throwDefaultError({
|
|
774
|
-
output,
|
|
775
|
-
parsedBody,
|
|
776
|
-
errorCode,
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
};
|
|
780
|
-
const de_DescribeDRTAccessCommand = async (output, context) => {
|
|
781
|
-
if (output.statusCode >= 300) {
|
|
782
|
-
return de_DescribeDRTAccessCommandError(output, context);
|
|
783
|
-
}
|
|
784
|
-
const data = await parseBody(output.body, context);
|
|
785
|
-
let contents = {};
|
|
786
|
-
contents = (0, smithy_client_1._json)(data);
|
|
787
|
-
const response = {
|
|
788
|
-
$metadata: deserializeMetadata(output),
|
|
789
|
-
...contents,
|
|
790
|
-
};
|
|
791
|
-
return response;
|
|
792
|
-
};
|
|
793
|
-
exports.de_DescribeDRTAccessCommand = de_DescribeDRTAccessCommand;
|
|
794
|
-
const de_DescribeDRTAccessCommandError = async (output, context) => {
|
|
795
|
-
const parsedOutput = {
|
|
796
|
-
...output,
|
|
797
|
-
body: await parseErrorBody(output.body, context),
|
|
798
|
-
};
|
|
799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
|
-
switch (errorCode) {
|
|
801
|
-
case "InternalErrorException":
|
|
802
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
803
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ResourceNotFoundException":
|
|
805
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
806
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
807
|
-
default:
|
|
808
|
-
const parsedBody = parsedOutput.body;
|
|
809
|
-
return throwDefaultError({
|
|
810
|
-
output,
|
|
811
|
-
parsedBody,
|
|
812
|
-
errorCode,
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
};
|
|
816
|
-
const de_DescribeEmergencyContactSettingsCommand = async (output, context) => {
|
|
817
|
-
if (output.statusCode >= 300) {
|
|
818
|
-
return de_DescribeEmergencyContactSettingsCommandError(output, context);
|
|
819
|
-
}
|
|
820
|
-
const data = await parseBody(output.body, context);
|
|
821
|
-
let contents = {};
|
|
822
|
-
contents = (0, smithy_client_1._json)(data);
|
|
823
|
-
const response = {
|
|
824
|
-
$metadata: deserializeMetadata(output),
|
|
825
|
-
...contents,
|
|
826
|
-
};
|
|
827
|
-
return response;
|
|
828
|
-
};
|
|
829
|
-
exports.de_DescribeEmergencyContactSettingsCommand = de_DescribeEmergencyContactSettingsCommand;
|
|
830
|
-
const de_DescribeEmergencyContactSettingsCommandError = async (output, context) => {
|
|
831
|
-
const parsedOutput = {
|
|
832
|
-
...output,
|
|
833
|
-
body: await parseErrorBody(output.body, context),
|
|
834
|
-
};
|
|
835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
-
switch (errorCode) {
|
|
837
|
-
case "InternalErrorException":
|
|
838
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
839
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ResourceNotFoundException":
|
|
841
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
843
|
-
default:
|
|
844
|
-
const parsedBody = parsedOutput.body;
|
|
845
|
-
return throwDefaultError({
|
|
846
|
-
output,
|
|
847
|
-
parsedBody,
|
|
848
|
-
errorCode,
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
|
-
const de_DescribeProtectionCommand = async (output, context) => {
|
|
853
|
-
if (output.statusCode >= 300) {
|
|
854
|
-
return de_DescribeProtectionCommandError(output, context);
|
|
855
|
-
}
|
|
856
|
-
const data = await parseBody(output.body, context);
|
|
857
|
-
let contents = {};
|
|
858
|
-
contents = (0, smithy_client_1._json)(data);
|
|
859
|
-
const response = {
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
...contents,
|
|
862
|
-
};
|
|
863
|
-
return response;
|
|
864
|
-
};
|
|
865
|
-
exports.de_DescribeProtectionCommand = de_DescribeProtectionCommand;
|
|
866
|
-
const de_DescribeProtectionCommandError = async (output, context) => {
|
|
867
|
-
const parsedOutput = {
|
|
868
|
-
...output,
|
|
869
|
-
body: await parseErrorBody(output.body, context),
|
|
870
|
-
};
|
|
871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
-
switch (errorCode) {
|
|
873
|
-
case "InternalErrorException":
|
|
874
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
875
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
876
|
-
case "InvalidParameterException":
|
|
877
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
878
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ResourceNotFoundException":
|
|
880
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
881
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
882
|
-
default:
|
|
883
|
-
const parsedBody = parsedOutput.body;
|
|
884
|
-
return throwDefaultError({
|
|
885
|
-
output,
|
|
886
|
-
parsedBody,
|
|
887
|
-
errorCode,
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
};
|
|
891
|
-
const de_DescribeProtectionGroupCommand = async (output, context) => {
|
|
892
|
-
if (output.statusCode >= 300) {
|
|
893
|
-
return de_DescribeProtectionGroupCommandError(output, context);
|
|
894
|
-
}
|
|
895
|
-
const data = await parseBody(output.body, context);
|
|
896
|
-
let contents = {};
|
|
897
|
-
contents = (0, smithy_client_1._json)(data);
|
|
898
|
-
const response = {
|
|
899
|
-
$metadata: deserializeMetadata(output),
|
|
900
|
-
...contents,
|
|
901
|
-
};
|
|
902
|
-
return response;
|
|
903
|
-
};
|
|
904
|
-
exports.de_DescribeProtectionGroupCommand = de_DescribeProtectionGroupCommand;
|
|
905
|
-
const de_DescribeProtectionGroupCommandError = async (output, context) => {
|
|
906
|
-
const parsedOutput = {
|
|
907
|
-
...output,
|
|
908
|
-
body: await parseErrorBody(output.body, context),
|
|
909
|
-
};
|
|
910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
-
switch (errorCode) {
|
|
912
|
-
case "InternalErrorException":
|
|
913
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
914
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ResourceNotFoundException":
|
|
916
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode,
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
};
|
|
927
|
-
const de_DescribeSubscriptionCommand = async (output, context) => {
|
|
928
|
-
if (output.statusCode >= 300) {
|
|
929
|
-
return de_DescribeSubscriptionCommandError(output, context);
|
|
930
|
-
}
|
|
931
|
-
const data = await parseBody(output.body, context);
|
|
932
|
-
let contents = {};
|
|
933
|
-
contents = de_DescribeSubscriptionResponse(data, context);
|
|
934
|
-
const response = {
|
|
935
|
-
$metadata: deserializeMetadata(output),
|
|
936
|
-
...contents,
|
|
937
|
-
};
|
|
938
|
-
return response;
|
|
939
|
-
};
|
|
940
|
-
exports.de_DescribeSubscriptionCommand = de_DescribeSubscriptionCommand;
|
|
941
|
-
const de_DescribeSubscriptionCommandError = async (output, context) => {
|
|
942
|
-
const parsedOutput = {
|
|
943
|
-
...output,
|
|
944
|
-
body: await parseErrorBody(output.body, context),
|
|
945
|
-
};
|
|
946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
-
switch (errorCode) {
|
|
948
|
-
case "InternalErrorException":
|
|
949
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
950
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ResourceNotFoundException":
|
|
952
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
953
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
954
|
-
default:
|
|
955
|
-
const parsedBody = parsedOutput.body;
|
|
956
|
-
return throwDefaultError({
|
|
957
|
-
output,
|
|
958
|
-
parsedBody,
|
|
959
|
-
errorCode,
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
};
|
|
963
|
-
const de_DisableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
964
|
-
if (output.statusCode >= 300) {
|
|
965
|
-
return de_DisableApplicationLayerAutomaticResponseCommandError(output, context);
|
|
966
|
-
}
|
|
967
|
-
const data = await parseBody(output.body, context);
|
|
968
|
-
let contents = {};
|
|
969
|
-
contents = (0, smithy_client_1._json)(data);
|
|
970
|
-
const response = {
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
...contents,
|
|
973
|
-
};
|
|
974
|
-
return response;
|
|
975
|
-
};
|
|
976
|
-
exports.de_DisableApplicationLayerAutomaticResponseCommand = de_DisableApplicationLayerAutomaticResponseCommand;
|
|
977
|
-
const de_DisableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
978
|
-
const parsedOutput = {
|
|
979
|
-
...output,
|
|
980
|
-
body: await parseErrorBody(output.body, context),
|
|
981
|
-
};
|
|
982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
-
switch (errorCode) {
|
|
984
|
-
case "InternalErrorException":
|
|
985
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
986
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
987
|
-
case "InvalidOperationException":
|
|
988
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
989
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
990
|
-
case "InvalidParameterException":
|
|
991
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
992
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
993
|
-
case "OptimisticLockException":
|
|
994
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
995
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ResourceNotFoundException":
|
|
997
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
998
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
999
|
-
default:
|
|
1000
|
-
const parsedBody = parsedOutput.body;
|
|
1001
|
-
return throwDefaultError({
|
|
1002
|
-
output,
|
|
1003
|
-
parsedBody,
|
|
1004
|
-
errorCode,
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
|
-
const de_DisableProactiveEngagementCommand = async (output, context) => {
|
|
1009
|
-
if (output.statusCode >= 300) {
|
|
1010
|
-
return de_DisableProactiveEngagementCommandError(output, context);
|
|
1011
|
-
}
|
|
1012
|
-
const data = await parseBody(output.body, context);
|
|
1013
|
-
let contents = {};
|
|
1014
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1015
|
-
const response = {
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
...contents,
|
|
1018
|
-
};
|
|
1019
|
-
return response;
|
|
1020
|
-
};
|
|
1021
|
-
exports.de_DisableProactiveEngagementCommand = de_DisableProactiveEngagementCommand;
|
|
1022
|
-
const de_DisableProactiveEngagementCommandError = async (output, context) => {
|
|
1023
|
-
const parsedOutput = {
|
|
1024
|
-
...output,
|
|
1025
|
-
body: await parseErrorBody(output.body, context),
|
|
1026
|
-
};
|
|
1027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
|
-
switch (errorCode) {
|
|
1029
|
-
case "InternalErrorException":
|
|
1030
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1031
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "InvalidOperationException":
|
|
1033
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1034
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "InvalidParameterException":
|
|
1036
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1037
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "OptimisticLockException":
|
|
1039
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1040
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ResourceNotFoundException":
|
|
1042
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1043
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1044
|
-
default:
|
|
1045
|
-
const parsedBody = parsedOutput.body;
|
|
1046
|
-
return throwDefaultError({
|
|
1047
|
-
output,
|
|
1048
|
-
parsedBody,
|
|
1049
|
-
errorCode,
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
};
|
|
1053
|
-
const de_DisassociateDRTLogBucketCommand = async (output, context) => {
|
|
1054
|
-
if (output.statusCode >= 300) {
|
|
1055
|
-
return de_DisassociateDRTLogBucketCommandError(output, context);
|
|
1056
|
-
}
|
|
1057
|
-
const data = await parseBody(output.body, context);
|
|
1058
|
-
let contents = {};
|
|
1059
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1060
|
-
const response = {
|
|
1061
|
-
$metadata: deserializeMetadata(output),
|
|
1062
|
-
...contents,
|
|
1063
|
-
};
|
|
1064
|
-
return response;
|
|
1065
|
-
};
|
|
1066
|
-
exports.de_DisassociateDRTLogBucketCommand = de_DisassociateDRTLogBucketCommand;
|
|
1067
|
-
const de_DisassociateDRTLogBucketCommandError = async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context),
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
switch (errorCode) {
|
|
1074
|
-
case "AccessDeniedForDependencyException":
|
|
1075
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
1076
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "InternalErrorException":
|
|
1078
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1079
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "InvalidOperationException":
|
|
1081
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1082
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "NoAssociatedRoleException":
|
|
1084
|
-
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
1085
|
-
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "OptimisticLockException":
|
|
1087
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1088
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ResourceNotFoundException":
|
|
1090
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1091
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1092
|
-
default:
|
|
1093
|
-
const parsedBody = parsedOutput.body;
|
|
1094
|
-
return throwDefaultError({
|
|
1095
|
-
output,
|
|
1096
|
-
parsedBody,
|
|
1097
|
-
errorCode,
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
};
|
|
1101
|
-
const de_DisassociateDRTRoleCommand = async (output, context) => {
|
|
1102
|
-
if (output.statusCode >= 300) {
|
|
1103
|
-
return de_DisassociateDRTRoleCommandError(output, context);
|
|
1104
|
-
}
|
|
1105
|
-
const data = await parseBody(output.body, context);
|
|
1106
|
-
let contents = {};
|
|
1107
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1108
|
-
const response = {
|
|
1109
|
-
$metadata: deserializeMetadata(output),
|
|
1110
|
-
...contents,
|
|
1111
|
-
};
|
|
1112
|
-
return response;
|
|
1113
|
-
};
|
|
1114
|
-
exports.de_DisassociateDRTRoleCommand = de_DisassociateDRTRoleCommand;
|
|
1115
|
-
const de_DisassociateDRTRoleCommandError = async (output, context) => {
|
|
1116
|
-
const parsedOutput = {
|
|
1117
|
-
...output,
|
|
1118
|
-
body: await parseErrorBody(output.body, context),
|
|
1119
|
-
};
|
|
1120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
|
-
switch (errorCode) {
|
|
1122
|
-
case "InternalErrorException":
|
|
1123
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1124
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "InvalidOperationException":
|
|
1126
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1127
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "OptimisticLockException":
|
|
1129
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1130
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "ResourceNotFoundException":
|
|
1132
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1133
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1134
|
-
default:
|
|
1135
|
-
const parsedBody = parsedOutput.body;
|
|
1136
|
-
return throwDefaultError({
|
|
1137
|
-
output,
|
|
1138
|
-
parsedBody,
|
|
1139
|
-
errorCode,
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
};
|
|
1143
|
-
const de_DisassociateHealthCheckCommand = async (output, context) => {
|
|
1144
|
-
if (output.statusCode >= 300) {
|
|
1145
|
-
return de_DisassociateHealthCheckCommandError(output, context);
|
|
1146
|
-
}
|
|
1147
|
-
const data = await parseBody(output.body, context);
|
|
1148
|
-
let contents = {};
|
|
1149
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1150
|
-
const response = {
|
|
1151
|
-
$metadata: deserializeMetadata(output),
|
|
1152
|
-
...contents,
|
|
1153
|
-
};
|
|
1154
|
-
return response;
|
|
1155
|
-
};
|
|
1156
|
-
exports.de_DisassociateHealthCheckCommand = de_DisassociateHealthCheckCommand;
|
|
1157
|
-
const de_DisassociateHealthCheckCommandError = async (output, context) => {
|
|
1158
|
-
const parsedOutput = {
|
|
1159
|
-
...output,
|
|
1160
|
-
body: await parseErrorBody(output.body, context),
|
|
1161
|
-
};
|
|
1162
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
|
-
switch (errorCode) {
|
|
1164
|
-
case "InternalErrorException":
|
|
1165
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1166
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "InvalidParameterException":
|
|
1168
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1169
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "InvalidResourceException":
|
|
1171
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1172
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "OptimisticLockException":
|
|
1174
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1175
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ResourceNotFoundException":
|
|
1177
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1179
|
-
default:
|
|
1180
|
-
const parsedBody = parsedOutput.body;
|
|
1181
|
-
return throwDefaultError({
|
|
1182
|
-
output,
|
|
1183
|
-
parsedBody,
|
|
1184
|
-
errorCode,
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
|
-
const de_EnableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
1189
|
-
if (output.statusCode >= 300) {
|
|
1190
|
-
return de_EnableApplicationLayerAutomaticResponseCommandError(output, context);
|
|
1191
|
-
}
|
|
1192
|
-
const data = await parseBody(output.body, context);
|
|
1193
|
-
let contents = {};
|
|
1194
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1195
|
-
const response = {
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
...contents,
|
|
1198
|
-
};
|
|
1199
|
-
return response;
|
|
1200
|
-
};
|
|
1201
|
-
exports.de_EnableApplicationLayerAutomaticResponseCommand = de_EnableApplicationLayerAutomaticResponseCommand;
|
|
1202
|
-
const de_EnableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1203
|
-
const parsedOutput = {
|
|
1204
|
-
...output,
|
|
1205
|
-
body: await parseErrorBody(output.body, context),
|
|
1206
|
-
};
|
|
1207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
-
switch (errorCode) {
|
|
1209
|
-
case "InternalErrorException":
|
|
1210
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1211
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "InvalidOperationException":
|
|
1213
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1214
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "InvalidParameterException":
|
|
1216
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1217
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "LimitsExceededException":
|
|
1219
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
1220
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "OptimisticLockException":
|
|
1222
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1223
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ResourceNotFoundException":
|
|
1225
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1226
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1227
|
-
default:
|
|
1228
|
-
const parsedBody = parsedOutput.body;
|
|
1229
|
-
return throwDefaultError({
|
|
1230
|
-
output,
|
|
1231
|
-
parsedBody,
|
|
1232
|
-
errorCode,
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
};
|
|
1236
|
-
const de_EnableProactiveEngagementCommand = async (output, context) => {
|
|
1237
|
-
if (output.statusCode >= 300) {
|
|
1238
|
-
return de_EnableProactiveEngagementCommandError(output, context);
|
|
1239
|
-
}
|
|
1240
|
-
const data = await parseBody(output.body, context);
|
|
1241
|
-
let contents = {};
|
|
1242
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1243
|
-
const response = {
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
...contents,
|
|
1246
|
-
};
|
|
1247
|
-
return response;
|
|
1248
|
-
};
|
|
1249
|
-
exports.de_EnableProactiveEngagementCommand = de_EnableProactiveEngagementCommand;
|
|
1250
|
-
const de_EnableProactiveEngagementCommandError = async (output, context) => {
|
|
1251
|
-
const parsedOutput = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseErrorBody(output.body, context),
|
|
1254
|
-
};
|
|
1255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
-
switch (errorCode) {
|
|
1257
|
-
case "InternalErrorException":
|
|
1258
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1259
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "InvalidOperationException":
|
|
1261
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1262
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "InvalidParameterException":
|
|
1264
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1265
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "OptimisticLockException":
|
|
1267
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1268
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ResourceNotFoundException":
|
|
1270
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1271
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1272
|
-
default:
|
|
1273
|
-
const parsedBody = parsedOutput.body;
|
|
1274
|
-
return throwDefaultError({
|
|
1275
|
-
output,
|
|
1276
|
-
parsedBody,
|
|
1277
|
-
errorCode,
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
|
-
const de_GetSubscriptionStateCommand = async (output, context) => {
|
|
1282
|
-
if (output.statusCode >= 300) {
|
|
1283
|
-
return de_GetSubscriptionStateCommandError(output, context);
|
|
1284
|
-
}
|
|
1285
|
-
const data = await parseBody(output.body, context);
|
|
1286
|
-
let contents = {};
|
|
1287
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1288
|
-
const response = {
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
...contents,
|
|
1291
|
-
};
|
|
1292
|
-
return response;
|
|
1293
|
-
};
|
|
1294
|
-
exports.de_GetSubscriptionStateCommand = de_GetSubscriptionStateCommand;
|
|
1295
|
-
const de_GetSubscriptionStateCommandError = async (output, context) => {
|
|
1296
|
-
const parsedOutput = {
|
|
1297
|
-
...output,
|
|
1298
|
-
body: await parseErrorBody(output.body, context),
|
|
1299
|
-
};
|
|
1300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
-
switch (errorCode) {
|
|
1302
|
-
case "InternalErrorException":
|
|
1303
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1304
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1305
|
-
default:
|
|
1306
|
-
const parsedBody = parsedOutput.body;
|
|
1307
|
-
return throwDefaultError({
|
|
1308
|
-
output,
|
|
1309
|
-
parsedBody,
|
|
1310
|
-
errorCode,
|
|
1311
|
-
});
|
|
1312
|
-
}
|
|
1313
|
-
};
|
|
1314
|
-
const de_ListAttacksCommand = async (output, context) => {
|
|
1315
|
-
if (output.statusCode >= 300) {
|
|
1316
|
-
return de_ListAttacksCommandError(output, context);
|
|
1317
|
-
}
|
|
1318
|
-
const data = await parseBody(output.body, context);
|
|
1319
|
-
let contents = {};
|
|
1320
|
-
contents = de_ListAttacksResponse(data, context);
|
|
1321
|
-
const response = {
|
|
1322
|
-
$metadata: deserializeMetadata(output),
|
|
1323
|
-
...contents,
|
|
1324
|
-
};
|
|
1325
|
-
return response;
|
|
1326
|
-
};
|
|
1327
|
-
exports.de_ListAttacksCommand = de_ListAttacksCommand;
|
|
1328
|
-
const de_ListAttacksCommandError = async (output, context) => {
|
|
1329
|
-
const parsedOutput = {
|
|
1330
|
-
...output,
|
|
1331
|
-
body: await parseErrorBody(output.body, context),
|
|
1332
|
-
};
|
|
1333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
-
switch (errorCode) {
|
|
1335
|
-
case "InternalErrorException":
|
|
1336
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1337
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "InvalidOperationException":
|
|
1339
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1340
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "InvalidParameterException":
|
|
1342
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1343
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1344
|
-
default:
|
|
1345
|
-
const parsedBody = parsedOutput.body;
|
|
1346
|
-
return throwDefaultError({
|
|
1347
|
-
output,
|
|
1348
|
-
parsedBody,
|
|
1349
|
-
errorCode,
|
|
1350
|
-
});
|
|
1351
|
-
}
|
|
1352
|
-
};
|
|
1353
|
-
const de_ListProtectionGroupsCommand = async (output, context) => {
|
|
1354
|
-
if (output.statusCode >= 300) {
|
|
1355
|
-
return de_ListProtectionGroupsCommandError(output, context);
|
|
1356
|
-
}
|
|
1357
|
-
const data = await parseBody(output.body, context);
|
|
1358
|
-
let contents = {};
|
|
1359
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1360
|
-
const response = {
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
...contents,
|
|
1363
|
-
};
|
|
1364
|
-
return response;
|
|
1365
|
-
};
|
|
1366
|
-
exports.de_ListProtectionGroupsCommand = de_ListProtectionGroupsCommand;
|
|
1367
|
-
const de_ListProtectionGroupsCommandError = async (output, context) => {
|
|
1368
|
-
const parsedOutput = {
|
|
1369
|
-
...output,
|
|
1370
|
-
body: await parseErrorBody(output.body, context),
|
|
1371
|
-
};
|
|
1372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
|
-
switch (errorCode) {
|
|
1374
|
-
case "InternalErrorException":
|
|
1375
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1376
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InvalidPaginationTokenException":
|
|
1378
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1379
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ResourceNotFoundException":
|
|
1381
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1382
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1383
|
-
default:
|
|
1384
|
-
const parsedBody = parsedOutput.body;
|
|
1385
|
-
return throwDefaultError({
|
|
1386
|
-
output,
|
|
1387
|
-
parsedBody,
|
|
1388
|
-
errorCode,
|
|
1389
|
-
});
|
|
1390
|
-
}
|
|
1391
|
-
};
|
|
1392
|
-
const de_ListProtectionsCommand = async (output, context) => {
|
|
1393
|
-
if (output.statusCode >= 300) {
|
|
1394
|
-
return de_ListProtectionsCommandError(output, context);
|
|
1395
|
-
}
|
|
1396
|
-
const data = await parseBody(output.body, context);
|
|
1397
|
-
let contents = {};
|
|
1398
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1399
|
-
const response = {
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
...contents,
|
|
1402
|
-
};
|
|
1403
|
-
return response;
|
|
1404
|
-
};
|
|
1405
|
-
exports.de_ListProtectionsCommand = de_ListProtectionsCommand;
|
|
1406
|
-
const de_ListProtectionsCommandError = async (output, context) => {
|
|
1407
|
-
const parsedOutput = {
|
|
1408
|
-
...output,
|
|
1409
|
-
body: await parseErrorBody(output.body, context),
|
|
1410
|
-
};
|
|
1411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
-
switch (errorCode) {
|
|
1413
|
-
case "InternalErrorException":
|
|
1414
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1415
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "InvalidPaginationTokenException":
|
|
1417
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1418
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ResourceNotFoundException":
|
|
1420
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1421
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1422
|
-
default:
|
|
1423
|
-
const parsedBody = parsedOutput.body;
|
|
1424
|
-
return throwDefaultError({
|
|
1425
|
-
output,
|
|
1426
|
-
parsedBody,
|
|
1427
|
-
errorCode,
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
|
-
const de_ListResourcesInProtectionGroupCommand = async (output, context) => {
|
|
1432
|
-
if (output.statusCode >= 300) {
|
|
1433
|
-
return de_ListResourcesInProtectionGroupCommandError(output, context);
|
|
1434
|
-
}
|
|
1435
|
-
const data = await parseBody(output.body, context);
|
|
1436
|
-
let contents = {};
|
|
1437
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1438
|
-
const response = {
|
|
1439
|
-
$metadata: deserializeMetadata(output),
|
|
1440
|
-
...contents,
|
|
1441
|
-
};
|
|
1442
|
-
return response;
|
|
1443
|
-
};
|
|
1444
|
-
exports.de_ListResourcesInProtectionGroupCommand = de_ListResourcesInProtectionGroupCommand;
|
|
1445
|
-
const de_ListResourcesInProtectionGroupCommandError = async (output, context) => {
|
|
1446
|
-
const parsedOutput = {
|
|
1447
|
-
...output,
|
|
1448
|
-
body: await parseErrorBody(output.body, context),
|
|
1449
|
-
};
|
|
1450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
-
switch (errorCode) {
|
|
1452
|
-
case "InternalErrorException":
|
|
1453
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1454
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "InvalidPaginationTokenException":
|
|
1456
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1457
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ResourceNotFoundException":
|
|
1459
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1460
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1461
|
-
default:
|
|
1462
|
-
const parsedBody = parsedOutput.body;
|
|
1463
|
-
return throwDefaultError({
|
|
1464
|
-
output,
|
|
1465
|
-
parsedBody,
|
|
1466
|
-
errorCode,
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
};
|
|
1470
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1471
|
-
if (output.statusCode >= 300) {
|
|
1472
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1473
|
-
}
|
|
1474
|
-
const data = await parseBody(output.body, context);
|
|
1475
|
-
let contents = {};
|
|
1476
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1477
|
-
const response = {
|
|
1478
|
-
$metadata: deserializeMetadata(output),
|
|
1479
|
-
...contents,
|
|
1480
|
-
};
|
|
1481
|
-
return response;
|
|
1482
|
-
};
|
|
1483
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1484
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1485
|
-
const parsedOutput = {
|
|
1486
|
-
...output,
|
|
1487
|
-
body: await parseErrorBody(output.body, context),
|
|
1488
|
-
};
|
|
1489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
|
-
switch (errorCode) {
|
|
1491
|
-
case "InternalErrorException":
|
|
1492
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1493
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "InvalidResourceException":
|
|
1495
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1496
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ResourceNotFoundException":
|
|
1498
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1499
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode,
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1510
|
-
if (output.statusCode >= 300) {
|
|
1511
|
-
return de_TagResourceCommandError(output, context);
|
|
1512
|
-
}
|
|
1513
|
-
const data = await parseBody(output.body, context);
|
|
1514
|
-
let contents = {};
|
|
1515
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1516
|
-
const response = {
|
|
1517
|
-
$metadata: deserializeMetadata(output),
|
|
1518
|
-
...contents,
|
|
1519
|
-
};
|
|
1520
|
-
return response;
|
|
1521
|
-
};
|
|
1522
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1523
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1524
|
-
const parsedOutput = {
|
|
1525
|
-
...output,
|
|
1526
|
-
body: await parseErrorBody(output.body, context),
|
|
1527
|
-
};
|
|
1528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1529
|
-
switch (errorCode) {
|
|
1530
|
-
case "InternalErrorException":
|
|
1531
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1532
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "InvalidParameterException":
|
|
1534
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1535
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "InvalidResourceException":
|
|
1537
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1538
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "ResourceNotFoundException":
|
|
1540
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1541
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1542
|
-
default:
|
|
1543
|
-
const parsedBody = parsedOutput.body;
|
|
1544
|
-
return throwDefaultError({
|
|
1545
|
-
output,
|
|
1546
|
-
parsedBody,
|
|
1547
|
-
errorCode,
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
|
-
};
|
|
1551
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1552
|
-
if (output.statusCode >= 300) {
|
|
1553
|
-
return de_UntagResourceCommandError(output, context);
|
|
1554
|
-
}
|
|
1555
|
-
const data = await parseBody(output.body, context);
|
|
1556
|
-
let contents = {};
|
|
1557
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1558
|
-
const response = {
|
|
1559
|
-
$metadata: deserializeMetadata(output),
|
|
1560
|
-
...contents,
|
|
1561
|
-
};
|
|
1562
|
-
return response;
|
|
1563
|
-
};
|
|
1564
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1565
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1566
|
-
const parsedOutput = {
|
|
1567
|
-
...output,
|
|
1568
|
-
body: await parseErrorBody(output.body, context),
|
|
1569
|
-
};
|
|
1570
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
|
-
switch (errorCode) {
|
|
1572
|
-
case "InternalErrorException":
|
|
1573
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1574
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "InvalidParameterException":
|
|
1576
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1577
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "InvalidResourceException":
|
|
1579
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1580
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "ResourceNotFoundException":
|
|
1582
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1583
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
|
-
const de_UpdateApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
1594
|
-
if (output.statusCode >= 300) {
|
|
1595
|
-
return de_UpdateApplicationLayerAutomaticResponseCommandError(output, context);
|
|
1596
|
-
}
|
|
1597
|
-
const data = await parseBody(output.body, context);
|
|
1598
|
-
let contents = {};
|
|
1599
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1600
|
-
const response = {
|
|
1601
|
-
$metadata: deserializeMetadata(output),
|
|
1602
|
-
...contents,
|
|
1603
|
-
};
|
|
1604
|
-
return response;
|
|
1605
|
-
};
|
|
1606
|
-
exports.de_UpdateApplicationLayerAutomaticResponseCommand = de_UpdateApplicationLayerAutomaticResponseCommand;
|
|
1607
|
-
const de_UpdateApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1608
|
-
const parsedOutput = {
|
|
1609
|
-
...output,
|
|
1610
|
-
body: await parseErrorBody(output.body, context),
|
|
1611
|
-
};
|
|
1612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
|
-
switch (errorCode) {
|
|
1614
|
-
case "InternalErrorException":
|
|
1615
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1616
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "InvalidOperationException":
|
|
1618
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1619
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "InvalidParameterException":
|
|
1621
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1622
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "OptimisticLockException":
|
|
1624
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1625
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "ResourceNotFoundException":
|
|
1627
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1628
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1629
|
-
default:
|
|
1630
|
-
const parsedBody = parsedOutput.body;
|
|
1631
|
-
return throwDefaultError({
|
|
1632
|
-
output,
|
|
1633
|
-
parsedBody,
|
|
1634
|
-
errorCode,
|
|
1635
|
-
});
|
|
1636
|
-
}
|
|
1637
|
-
};
|
|
1638
|
-
const de_UpdateEmergencyContactSettingsCommand = async (output, context) => {
|
|
1639
|
-
if (output.statusCode >= 300) {
|
|
1640
|
-
return de_UpdateEmergencyContactSettingsCommandError(output, context);
|
|
1641
|
-
}
|
|
1642
|
-
const data = await parseBody(output.body, context);
|
|
1643
|
-
let contents = {};
|
|
1644
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1645
|
-
const response = {
|
|
1646
|
-
$metadata: deserializeMetadata(output),
|
|
1647
|
-
...contents,
|
|
1648
|
-
};
|
|
1649
|
-
return response;
|
|
1650
|
-
};
|
|
1651
|
-
exports.de_UpdateEmergencyContactSettingsCommand = de_UpdateEmergencyContactSettingsCommand;
|
|
1652
|
-
const de_UpdateEmergencyContactSettingsCommandError = async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context),
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
-
switch (errorCode) {
|
|
1659
|
-
case "InternalErrorException":
|
|
1660
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1661
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "InvalidParameterException":
|
|
1663
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1664
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "OptimisticLockException":
|
|
1666
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1667
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ResourceNotFoundException":
|
|
1669
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1671
|
-
default:
|
|
1672
|
-
const parsedBody = parsedOutput.body;
|
|
1673
|
-
return throwDefaultError({
|
|
1674
|
-
output,
|
|
1675
|
-
parsedBody,
|
|
1676
|
-
errorCode,
|
|
1677
|
-
});
|
|
1678
|
-
}
|
|
1679
|
-
};
|
|
1680
|
-
const de_UpdateProtectionGroupCommand = async (output, context) => {
|
|
1681
|
-
if (output.statusCode >= 300) {
|
|
1682
|
-
return de_UpdateProtectionGroupCommandError(output, context);
|
|
1683
|
-
}
|
|
1684
|
-
const data = await parseBody(output.body, context);
|
|
1685
|
-
let contents = {};
|
|
1686
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1687
|
-
const response = {
|
|
1688
|
-
$metadata: deserializeMetadata(output),
|
|
1689
|
-
...contents,
|
|
1690
|
-
};
|
|
1691
|
-
return response;
|
|
1692
|
-
};
|
|
1693
|
-
exports.de_UpdateProtectionGroupCommand = de_UpdateProtectionGroupCommand;
|
|
1694
|
-
const de_UpdateProtectionGroupCommandError = async (output, context) => {
|
|
1695
|
-
const parsedOutput = {
|
|
1696
|
-
...output,
|
|
1697
|
-
body: await parseErrorBody(output.body, context),
|
|
1698
|
-
};
|
|
1699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
|
-
switch (errorCode) {
|
|
1701
|
-
case "InternalErrorException":
|
|
1702
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1703
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "InvalidParameterException":
|
|
1705
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1706
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "OptimisticLockException":
|
|
1708
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1709
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "ResourceNotFoundException":
|
|
1711
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1712
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1713
|
-
default:
|
|
1714
|
-
const parsedBody = parsedOutput.body;
|
|
1715
|
-
return throwDefaultError({
|
|
1716
|
-
output,
|
|
1717
|
-
parsedBody,
|
|
1718
|
-
errorCode,
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
};
|
|
1722
|
-
const de_UpdateSubscriptionCommand = async (output, context) => {
|
|
1723
|
-
if (output.statusCode >= 300) {
|
|
1724
|
-
return de_UpdateSubscriptionCommandError(output, context);
|
|
1725
|
-
}
|
|
1726
|
-
const data = await parseBody(output.body, context);
|
|
1727
|
-
let contents = {};
|
|
1728
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1729
|
-
const response = {
|
|
1730
|
-
$metadata: deserializeMetadata(output),
|
|
1731
|
-
...contents,
|
|
1732
|
-
};
|
|
1733
|
-
return response;
|
|
1734
|
-
};
|
|
1735
|
-
exports.de_UpdateSubscriptionCommand = de_UpdateSubscriptionCommand;
|
|
1736
|
-
const de_UpdateSubscriptionCommandError = async (output, context) => {
|
|
1737
|
-
const parsedOutput = {
|
|
1738
|
-
...output,
|
|
1739
|
-
body: await parseErrorBody(output.body, context),
|
|
1740
|
-
};
|
|
1741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
-
switch (errorCode) {
|
|
1743
|
-
case "InternalErrorException":
|
|
1744
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1745
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "InvalidParameterException":
|
|
1747
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1748
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "LockedSubscriptionException":
|
|
1750
|
-
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
1751
|
-
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "OptimisticLockException":
|
|
1753
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1754
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "ResourceNotFoundException":
|
|
1756
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1757
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1758
|
-
default:
|
|
1759
|
-
const parsedBody = parsedOutput.body;
|
|
1760
|
-
return throwDefaultError({
|
|
1761
|
-
output,
|
|
1762
|
-
parsedBody,
|
|
1763
|
-
errorCode,
|
|
1764
|
-
});
|
|
1765
|
-
}
|
|
1766
|
-
};
|
|
1767
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1768
|
-
const body = parsedOutput.body;
|
|
1769
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1770
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1771
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1772
|
-
...deserialized,
|
|
1773
|
-
});
|
|
1774
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1775
|
-
};
|
|
1776
|
-
const de_AccessDeniedForDependencyExceptionRes = async (parsedOutput, context) => {
|
|
1777
|
-
const body = parsedOutput.body;
|
|
1778
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1779
|
-
const exception = new models_0_1.AccessDeniedForDependencyException({
|
|
1780
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1781
|
-
...deserialized,
|
|
1782
|
-
});
|
|
1783
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1784
|
-
};
|
|
1785
|
-
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1786
|
-
const body = parsedOutput.body;
|
|
1787
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1788
|
-
const exception = new models_0_1.InternalErrorException({
|
|
1789
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1790
|
-
...deserialized,
|
|
1791
|
-
});
|
|
1792
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1793
|
-
};
|
|
1794
|
-
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
1795
|
-
const body = parsedOutput.body;
|
|
1796
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1797
|
-
const exception = new models_0_1.InvalidOperationException({
|
|
1798
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1799
|
-
...deserialized,
|
|
1800
|
-
});
|
|
1801
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1802
|
-
};
|
|
1803
|
-
const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
1804
|
-
const body = parsedOutput.body;
|
|
1805
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1806
|
-
const exception = new models_0_1.InvalidPaginationTokenException({
|
|
1807
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1808
|
-
...deserialized,
|
|
1809
|
-
});
|
|
1810
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1811
|
-
};
|
|
1812
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1813
|
-
const body = parsedOutput.body;
|
|
1814
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1815
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
1816
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1817
|
-
...deserialized,
|
|
1818
|
-
});
|
|
1819
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1820
|
-
};
|
|
1821
|
-
const de_InvalidResourceExceptionRes = async (parsedOutput, context) => {
|
|
1822
|
-
const body = parsedOutput.body;
|
|
1823
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1824
|
-
const exception = new models_0_1.InvalidResourceException({
|
|
1825
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1826
|
-
...deserialized,
|
|
1827
|
-
});
|
|
1828
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1829
|
-
};
|
|
1830
|
-
const de_LimitsExceededExceptionRes = async (parsedOutput, context) => {
|
|
1831
|
-
const body = parsedOutput.body;
|
|
1832
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1833
|
-
const exception = new models_0_1.LimitsExceededException({
|
|
1834
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1835
|
-
...deserialized,
|
|
1836
|
-
});
|
|
1837
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1838
|
-
};
|
|
1839
|
-
const de_LockedSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
1840
|
-
const body = parsedOutput.body;
|
|
1841
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1842
|
-
const exception = new models_0_1.LockedSubscriptionException({
|
|
1843
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1844
|
-
...deserialized,
|
|
1845
|
-
});
|
|
1846
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1847
|
-
};
|
|
1848
|
-
const de_NoAssociatedRoleExceptionRes = async (parsedOutput, context) => {
|
|
1849
|
-
const body = parsedOutput.body;
|
|
1850
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1851
|
-
const exception = new models_0_1.NoAssociatedRoleException({
|
|
1852
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1853
|
-
...deserialized,
|
|
1854
|
-
});
|
|
1855
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1856
|
-
};
|
|
1857
|
-
const de_OptimisticLockExceptionRes = async (parsedOutput, context) => {
|
|
1858
|
-
const body = parsedOutput.body;
|
|
1859
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1860
|
-
const exception = new models_0_1.OptimisticLockException({
|
|
1861
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1862
|
-
...deserialized,
|
|
1863
|
-
});
|
|
1864
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1865
|
-
};
|
|
1866
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1867
|
-
const body = parsedOutput.body;
|
|
1868
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1869
|
-
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
1870
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1871
|
-
...deserialized,
|
|
1872
|
-
});
|
|
1873
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1874
|
-
};
|
|
1875
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1876
|
-
const body = parsedOutput.body;
|
|
1877
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1878
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1879
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1880
|
-
...deserialized,
|
|
1881
|
-
});
|
|
1882
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1883
|
-
};
|
|
1884
|
-
const se_ListAttacksRequest = (input, context) => {
|
|
1885
|
-
return (0, smithy_client_1.take)(input, {
|
|
1886
|
-
EndTime: (_) => se_TimeRange(_, context),
|
|
1887
|
-
MaxResults: [],
|
|
1888
|
-
NextToken: [],
|
|
1889
|
-
ResourceArns: smithy_client_1._json,
|
|
1890
|
-
StartTime: (_) => se_TimeRange(_, context),
|
|
1891
|
-
});
|
|
1892
|
-
};
|
|
1893
|
-
const se_TimeRange = (input, context) => {
|
|
1894
|
-
return (0, smithy_client_1.take)(input, {
|
|
1895
|
-
FromInclusive: (_) => Math.round(_.getTime() / 1000),
|
|
1896
|
-
ToExclusive: (_) => Math.round(_.getTime() / 1000),
|
|
1897
|
-
});
|
|
1898
|
-
};
|
|
1899
|
-
const de_AttackDetail = (output, context) => {
|
|
1900
|
-
return (0, smithy_client_1.take)(output, {
|
|
1901
|
-
AttackCounters: (_) => de_SummarizedCounterList(_, context),
|
|
1902
|
-
AttackId: smithy_client_1.expectString,
|
|
1903
|
-
AttackProperties: smithy_client_1._json,
|
|
1904
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1905
|
-
Mitigations: smithy_client_1._json,
|
|
1906
|
-
ResourceArn: smithy_client_1.expectString,
|
|
1907
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1908
|
-
SubResources: (_) => de_SubResourceSummaryList(_, context),
|
|
1909
|
-
});
|
|
1910
|
-
};
|
|
1911
|
-
const de_AttackStatisticsDataItem = (output, context) => {
|
|
1912
|
-
return (0, smithy_client_1.take)(output, {
|
|
1913
|
-
AttackCount: smithy_client_1.expectLong,
|
|
1914
|
-
AttackVolume: (_) => de_AttackVolume(_, context),
|
|
1915
|
-
});
|
|
1916
|
-
};
|
|
1917
|
-
const de_AttackStatisticsDataList = (output, context) => {
|
|
1918
|
-
const retVal = (output || [])
|
|
1919
|
-
.filter((e) => e != null)
|
|
1920
|
-
.map((entry) => {
|
|
1921
|
-
return de_AttackStatisticsDataItem(entry, context);
|
|
1922
|
-
});
|
|
1923
|
-
return retVal;
|
|
1924
|
-
};
|
|
1925
|
-
const de_AttackSummaries = (output, context) => {
|
|
1926
|
-
const retVal = (output || [])
|
|
1927
|
-
.filter((e) => e != null)
|
|
1928
|
-
.map((entry) => {
|
|
1929
|
-
return de_AttackSummary(entry, context);
|
|
1930
|
-
});
|
|
1931
|
-
return retVal;
|
|
1932
|
-
};
|
|
1933
|
-
const de_AttackSummary = (output, context) => {
|
|
1934
|
-
return (0, smithy_client_1.take)(output, {
|
|
1935
|
-
AttackId: smithy_client_1.expectString,
|
|
1936
|
-
AttackVectors: smithy_client_1._json,
|
|
1937
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1938
|
-
ResourceArn: smithy_client_1.expectString,
|
|
1939
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1940
|
-
});
|
|
1941
|
-
};
|
|
1942
|
-
const de_AttackVolume = (output, context) => {
|
|
1943
|
-
return (0, smithy_client_1.take)(output, {
|
|
1944
|
-
BitsPerSecond: (_) => de_AttackVolumeStatistics(_, context),
|
|
1945
|
-
PacketsPerSecond: (_) => de_AttackVolumeStatistics(_, context),
|
|
1946
|
-
RequestsPerSecond: (_) => de_AttackVolumeStatistics(_, context),
|
|
1947
|
-
});
|
|
1948
|
-
};
|
|
1949
|
-
const de_AttackVolumeStatistics = (output, context) => {
|
|
1950
|
-
return (0, smithy_client_1.take)(output, {
|
|
1951
|
-
Max: smithy_client_1.limitedParseDouble,
|
|
1952
|
-
});
|
|
1953
|
-
};
|
|
1954
|
-
const de_DescribeAttackResponse = (output, context) => {
|
|
1955
|
-
return (0, smithy_client_1.take)(output, {
|
|
1956
|
-
Attack: (_) => de_AttackDetail(_, context),
|
|
1957
|
-
});
|
|
1958
|
-
};
|
|
1959
|
-
const de_DescribeAttackStatisticsResponse = (output, context) => {
|
|
1960
|
-
return (0, smithy_client_1.take)(output, {
|
|
1961
|
-
DataItems: (_) => de_AttackStatisticsDataList(_, context),
|
|
1962
|
-
TimeRange: (_) => de_TimeRange(_, context),
|
|
1963
|
-
});
|
|
1964
|
-
};
|
|
1965
|
-
const de_DescribeSubscriptionResponse = (output, context) => {
|
|
1966
|
-
return (0, smithy_client_1.take)(output, {
|
|
1967
|
-
Subscription: (_) => de_Subscription(_, context),
|
|
1968
|
-
});
|
|
1969
|
-
};
|
|
1970
|
-
const de_ListAttacksResponse = (output, context) => {
|
|
1971
|
-
return (0, smithy_client_1.take)(output, {
|
|
1972
|
-
AttackSummaries: (_) => de_AttackSummaries(_, context),
|
|
1973
|
-
NextToken: smithy_client_1.expectString,
|
|
1974
|
-
});
|
|
1975
|
-
};
|
|
1976
|
-
const de_SubResourceSummary = (output, context) => {
|
|
1977
|
-
return (0, smithy_client_1.take)(output, {
|
|
1978
|
-
AttackVectors: (_) => de_SummarizedAttackVectorList(_, context),
|
|
1979
|
-
Counters: (_) => de_SummarizedCounterList(_, context),
|
|
1980
|
-
Id: smithy_client_1.expectString,
|
|
1981
|
-
Type: smithy_client_1.expectString,
|
|
1982
|
-
});
|
|
1983
|
-
};
|
|
1984
|
-
const de_SubResourceSummaryList = (output, context) => {
|
|
1985
|
-
const retVal = (output || [])
|
|
1986
|
-
.filter((e) => e != null)
|
|
1987
|
-
.map((entry) => {
|
|
1988
|
-
return de_SubResourceSummary(entry, context);
|
|
1989
|
-
});
|
|
1990
|
-
return retVal;
|
|
1991
|
-
};
|
|
1992
|
-
const de_Subscription = (output, context) => {
|
|
1993
|
-
return (0, smithy_client_1.take)(output, {
|
|
1994
|
-
AutoRenew: smithy_client_1.expectString,
|
|
1995
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1996
|
-
Limits: smithy_client_1._json,
|
|
1997
|
-
ProactiveEngagementStatus: smithy_client_1.expectString,
|
|
1998
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1999
|
-
SubscriptionArn: smithy_client_1.expectString,
|
|
2000
|
-
SubscriptionLimits: smithy_client_1._json,
|
|
2001
|
-
TimeCommitmentInSeconds: smithy_client_1.expectLong,
|
|
2002
|
-
});
|
|
2003
|
-
};
|
|
2004
|
-
const de_SummarizedAttackVector = (output, context) => {
|
|
2005
|
-
return (0, smithy_client_1.take)(output, {
|
|
2006
|
-
VectorCounters: (_) => de_SummarizedCounterList(_, context),
|
|
2007
|
-
VectorType: smithy_client_1.expectString,
|
|
2008
|
-
});
|
|
2009
|
-
};
|
|
2010
|
-
const de_SummarizedAttackVectorList = (output, context) => {
|
|
2011
|
-
const retVal = (output || [])
|
|
2012
|
-
.filter((e) => e != null)
|
|
2013
|
-
.map((entry) => {
|
|
2014
|
-
return de_SummarizedAttackVector(entry, context);
|
|
2015
|
-
});
|
|
2016
|
-
return retVal;
|
|
2017
|
-
};
|
|
2018
|
-
const de_SummarizedCounter = (output, context) => {
|
|
2019
|
-
return (0, smithy_client_1.take)(output, {
|
|
2020
|
-
Average: smithy_client_1.limitedParseDouble,
|
|
2021
|
-
Max: smithy_client_1.limitedParseDouble,
|
|
2022
|
-
N: smithy_client_1.expectInt32,
|
|
2023
|
-
Name: smithy_client_1.expectString,
|
|
2024
|
-
Sum: smithy_client_1.limitedParseDouble,
|
|
2025
|
-
Unit: smithy_client_1.expectString,
|
|
2026
|
-
});
|
|
2027
|
-
};
|
|
2028
|
-
const de_SummarizedCounterList = (output, context) => {
|
|
2029
|
-
const retVal = (output || [])
|
|
2030
|
-
.filter((e) => e != null)
|
|
2031
|
-
.map((entry) => {
|
|
2032
|
-
return de_SummarizedCounter(entry, context);
|
|
2033
|
-
});
|
|
2034
|
-
return retVal;
|
|
2035
|
-
};
|
|
2036
|
-
const de_TimeRange = (output, context) => {
|
|
2037
|
-
return (0, smithy_client_1.take)(output, {
|
|
2038
|
-
FromInclusive: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2039
|
-
ToExclusive: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2040
|
-
});
|
|
2041
|
-
};
|
|
2042
|
-
const deserializeMetadata = (output) => ({
|
|
2043
|
-
httpStatusCode: output.statusCode,
|
|
2044
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2045
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2046
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2047
|
-
});
|
|
2048
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2049
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ShieldServiceException_1.ShieldServiceException);
|
|
2050
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2051
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2052
|
-
const contents = {
|
|
2053
|
-
protocol,
|
|
2054
|
-
hostname,
|
|
2055
|
-
port,
|
|
2056
|
-
method: "POST",
|
|
2057
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2058
|
-
headers,
|
|
2059
|
-
};
|
|
2060
|
-
if (resolvedHostname !== undefined) {
|
|
2061
|
-
contents.hostname = resolvedHostname;
|
|
2062
|
-
}
|
|
2063
|
-
if (body !== undefined) {
|
|
2064
|
-
contents.body = body;
|
|
2065
|
-
}
|
|
2066
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
2067
|
-
};
|
|
2068
|
-
function sharedHeaders(operation) {
|
|
2069
|
-
return {
|
|
2070
|
-
"content-type": "application/x-amz-json-1.1",
|
|
2071
|
-
"x-amz-target": `AWSShield_20160616.${operation}`,
|
|
2072
|
-
};
|
|
2073
|
-
}
|
|
2074
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2075
|
-
if (encoded.length) {
|
|
2076
|
-
return JSON.parse(encoded);
|
|
2077
|
-
}
|
|
2078
|
-
return {};
|
|
2079
|
-
});
|
|
2080
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2081
|
-
const value = await parseBody(errorBody, context);
|
|
2082
|
-
value.message = value.message ?? value.Message;
|
|
2083
|
-
return value;
|
|
2084
|
-
};
|
|
2085
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2086
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2087
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2088
|
-
let cleanValue = rawValue;
|
|
2089
|
-
if (typeof cleanValue === "number") {
|
|
2090
|
-
cleanValue = cleanValue.toString();
|
|
2091
|
-
}
|
|
2092
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2093
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2094
|
-
}
|
|
2095
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2096
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2097
|
-
}
|
|
2098
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2099
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2100
|
-
}
|
|
2101
|
-
return cleanValue;
|
|
2102
|
-
};
|
|
2103
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2104
|
-
if (headerKey !== undefined) {
|
|
2105
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2106
|
-
}
|
|
2107
|
-
if (data.code !== undefined) {
|
|
2108
|
-
return sanitizeErrorCode(data.code);
|
|
2109
|
-
}
|
|
2110
|
-
if (data["__type"] !== undefined) {
|
|
2111
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2112
|
-
}
|
|
2113
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|