@aws-sdk/client-shield 3.306.0 → 3.310.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/commands/AssociateDRTLogBucketCommand.js +2 -2
- package/dist-cjs/commands/AssociateDRTRoleCommand.js +2 -2
- package/dist-cjs/commands/AssociateHealthCheckCommand.js +2 -2
- package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +2 -2
- package/dist-cjs/commands/CreateProtectionCommand.js +2 -2
- package/dist-cjs/commands/CreateProtectionGroupCommand.js +2 -2
- package/dist-cjs/commands/CreateSubscriptionCommand.js +2 -2
- package/dist-cjs/commands/DeleteProtectionCommand.js +2 -2
- package/dist-cjs/commands/DeleteProtectionGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteSubscriptionCommand.js +2 -2
- package/dist-cjs/commands/DescribeAttackCommand.js +2 -2
- package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +2 -2
- package/dist-cjs/commands/DescribeDRTAccessCommand.js +2 -2
- package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +2 -2
- package/dist-cjs/commands/DescribeProtectionCommand.js +2 -2
- package/dist-cjs/commands/DescribeProtectionGroupCommand.js +2 -2
- package/dist-cjs/commands/DescribeSubscriptionCommand.js +2 -2
- package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +2 -2
- package/dist-cjs/commands/DisableProactiveEngagementCommand.js +2 -2
- package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +2 -2
- package/dist-cjs/commands/DisassociateDRTRoleCommand.js +2 -2
- package/dist-cjs/commands/DisassociateHealthCheckCommand.js +2 -2
- package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +2 -2
- package/dist-cjs/commands/EnableProactiveEngagementCommand.js +2 -2
- package/dist-cjs/commands/GetSubscriptionStateCommand.js +2 -2
- package/dist-cjs/commands/ListAttacksCommand.js +2 -2
- package/dist-cjs/commands/ListProtectionGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListProtectionsCommand.js +2 -2
- package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +2 -2
- package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdateProtectionGroupCommand.js +2 -2
- package/dist-cjs/commands/UpdateSubscriptionCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +691 -733
- package/dist-es/commands/AssociateDRTLogBucketCommand.js +3 -3
- package/dist-es/commands/AssociateDRTRoleCommand.js +3 -3
- package/dist-es/commands/AssociateHealthCheckCommand.js +3 -3
- package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +3 -3
- package/dist-es/commands/CreateProtectionCommand.js +3 -3
- package/dist-es/commands/CreateProtectionGroupCommand.js +3 -3
- package/dist-es/commands/CreateSubscriptionCommand.js +3 -3
- package/dist-es/commands/DeleteProtectionCommand.js +3 -3
- package/dist-es/commands/DeleteProtectionGroupCommand.js +3 -3
- package/dist-es/commands/DeleteSubscriptionCommand.js +3 -3
- package/dist-es/commands/DescribeAttackCommand.js +3 -3
- package/dist-es/commands/DescribeAttackStatisticsCommand.js +3 -3
- package/dist-es/commands/DescribeDRTAccessCommand.js +3 -3
- package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +3 -3
- package/dist-es/commands/DescribeProtectionCommand.js +3 -3
- package/dist-es/commands/DescribeProtectionGroupCommand.js +3 -3
- package/dist-es/commands/DescribeSubscriptionCommand.js +3 -3
- package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +3 -3
- package/dist-es/commands/DisableProactiveEngagementCommand.js +3 -3
- package/dist-es/commands/DisassociateDRTLogBucketCommand.js +3 -3
- package/dist-es/commands/DisassociateDRTRoleCommand.js +3 -3
- package/dist-es/commands/DisassociateHealthCheckCommand.js +3 -3
- package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +3 -3
- package/dist-es/commands/EnableProactiveEngagementCommand.js +3 -3
- package/dist-es/commands/GetSubscriptionStateCommand.js +3 -3
- package/dist-es/commands/ListAttacksCommand.js +3 -3
- package/dist-es/commands/ListProtectionGroupsCommand.js +3 -3
- package/dist-es/commands/ListProtectionsCommand.js +3 -3
- package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +3 -3
- package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +3 -3
- package/dist-es/commands/UpdateProtectionGroupCommand.js +3 -3
- package/dist-es/commands/UpdateSubscriptionCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +617 -659
- package/dist-types/protocols/Aws_json1_1.d.ts +288 -72
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -72
- package/package.json +35 -35
|
@@ -1,386 +1,386 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const ShieldServiceException_1 = require("../models/ShieldServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_AssociateDRTLogBucketCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.1",
|
|
12
12
|
"x-amz-target": "AWSShield_20160616.AssociateDRTLogBucket",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_AssociateDRTLogBucketRequest(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_AssociateDRTLogBucketCommand = se_AssociateDRTLogBucketCommand;
|
|
19
|
+
const se_AssociateDRTRoleCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.1",
|
|
22
22
|
"x-amz-target": "AWSShield_20160616.AssociateDRTRole",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_AssociateDRTRoleRequest(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_AssociateDRTRoleCommand = se_AssociateDRTRoleCommand;
|
|
29
|
+
const se_AssociateHealthCheckCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.1",
|
|
32
32
|
"x-amz-target": "AWSShield_20160616.AssociateHealthCheck",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_AssociateHealthCheckRequest(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_AssociateHealthCheckCommand = se_AssociateHealthCheckCommand;
|
|
39
|
+
const se_AssociateProactiveEngagementDetailsCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.1",
|
|
42
42
|
"x-amz-target": "AWSShield_20160616.AssociateProactiveEngagementDetails",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_AssociateProactiveEngagementDetailsRequest(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_AssociateProactiveEngagementDetailsCommand = se_AssociateProactiveEngagementDetailsCommand;
|
|
49
|
+
const se_CreateProtectionCommand = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.1",
|
|
52
52
|
"x-amz-target": "AWSShield_20160616.CreateProtection",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_CreateProtectionRequest(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_CreateProtectionCommand = se_CreateProtectionCommand;
|
|
59
|
+
const se_CreateProtectionGroupCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "AWSShield_20160616.CreateProtectionGroup",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_CreateProtectionGroupRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_CreateProtectionGroupCommand = se_CreateProtectionGroupCommand;
|
|
69
|
+
const se_CreateSubscriptionCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "AWSShield_20160616.CreateSubscription",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_CreateSubscriptionRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_CreateSubscriptionCommand = se_CreateSubscriptionCommand;
|
|
79
|
+
const se_DeleteProtectionCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.1",
|
|
82
82
|
"x-amz-target": "AWSShield_20160616.DeleteProtection",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_DeleteProtectionRequest(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_DeleteProtectionCommand = se_DeleteProtectionCommand;
|
|
89
|
+
const se_DeleteProtectionGroupCommand = async (input, context) => {
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/x-amz-json-1.1",
|
|
92
92
|
"x-amz-target": "AWSShield_20160616.DeleteProtectionGroup",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify(se_DeleteProtectionGroupRequest(input, context));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_DeleteProtectionGroupCommand = se_DeleteProtectionGroupCommand;
|
|
99
|
+
const se_DeleteSubscriptionCommand = async (input, context) => {
|
|
100
100
|
const headers = {
|
|
101
101
|
"content-type": "application/x-amz-json-1.1",
|
|
102
102
|
"x-amz-target": "AWSShield_20160616.DeleteSubscription",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(se_DeleteSubscriptionRequest(input, context));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_DeleteSubscriptionCommand = se_DeleteSubscriptionCommand;
|
|
109
|
+
const se_DescribeAttackCommand = async (input, context) => {
|
|
110
110
|
const headers = {
|
|
111
111
|
"content-type": "application/x-amz-json-1.1",
|
|
112
112
|
"x-amz-target": "AWSShield_20160616.DescribeAttack",
|
|
113
113
|
};
|
|
114
114
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
115
|
+
body = JSON.stringify(se_DescribeAttackRequest(input, context));
|
|
116
116
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
117
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
118
|
+
exports.se_DescribeAttackCommand = se_DescribeAttackCommand;
|
|
119
|
+
const se_DescribeAttackStatisticsCommand = async (input, context) => {
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/x-amz-json-1.1",
|
|
122
122
|
"x-amz-target": "AWSShield_20160616.DescribeAttackStatistics",
|
|
123
123
|
};
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify(se_DescribeAttackStatisticsRequest(input, context));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
|
-
exports.
|
|
129
|
-
const
|
|
128
|
+
exports.se_DescribeAttackStatisticsCommand = se_DescribeAttackStatisticsCommand;
|
|
129
|
+
const se_DescribeDRTAccessCommand = async (input, context) => {
|
|
130
130
|
const headers = {
|
|
131
131
|
"content-type": "application/x-amz-json-1.1",
|
|
132
132
|
"x-amz-target": "AWSShield_20160616.DescribeDRTAccess",
|
|
133
133
|
};
|
|
134
134
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(se_DescribeDRTAccessRequest(input, context));
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
138
|
+
exports.se_DescribeDRTAccessCommand = se_DescribeDRTAccessCommand;
|
|
139
|
+
const se_DescribeEmergencyContactSettingsCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-amz-json-1.1",
|
|
142
142
|
"x-amz-target": "AWSShield_20160616.DescribeEmergencyContactSettings",
|
|
143
143
|
};
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify(se_DescribeEmergencyContactSettingsRequest(input, context));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
148
|
+
exports.se_DescribeEmergencyContactSettingsCommand = se_DescribeEmergencyContactSettingsCommand;
|
|
149
|
+
const se_DescribeProtectionCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "AWSShield_20160616.DescribeProtection",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_DescribeProtectionRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
exports.
|
|
159
|
-
const
|
|
158
|
+
exports.se_DescribeProtectionCommand = se_DescribeProtectionCommand;
|
|
159
|
+
const se_DescribeProtectionGroupCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "AWSShield_20160616.DescribeProtectionGroup",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_DescribeProtectionGroupRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_DescribeProtectionGroupCommand = se_DescribeProtectionGroupCommand;
|
|
169
|
+
const se_DescribeSubscriptionCommand = async (input, context) => {
|
|
170
170
|
const headers = {
|
|
171
171
|
"content-type": "application/x-amz-json-1.1",
|
|
172
172
|
"x-amz-target": "AWSShield_20160616.DescribeSubscription",
|
|
173
173
|
};
|
|
174
174
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
175
|
+
body = JSON.stringify(se_DescribeSubscriptionRequest(input, context));
|
|
176
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
177
|
};
|
|
178
|
-
exports.
|
|
179
|
-
const
|
|
178
|
+
exports.se_DescribeSubscriptionCommand = se_DescribeSubscriptionCommand;
|
|
179
|
+
const se_DisableApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
180
180
|
const headers = {
|
|
181
181
|
"content-type": "application/x-amz-json-1.1",
|
|
182
182
|
"x-amz-target": "AWSShield_20160616.DisableApplicationLayerAutomaticResponse",
|
|
183
183
|
};
|
|
184
184
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
185
|
+
body = JSON.stringify(se_DisableApplicationLayerAutomaticResponseRequest(input, context));
|
|
186
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
187
|
};
|
|
188
|
-
exports.
|
|
189
|
-
const
|
|
188
|
+
exports.se_DisableApplicationLayerAutomaticResponseCommand = se_DisableApplicationLayerAutomaticResponseCommand;
|
|
189
|
+
const se_DisableProactiveEngagementCommand = async (input, context) => {
|
|
190
190
|
const headers = {
|
|
191
191
|
"content-type": "application/x-amz-json-1.1",
|
|
192
192
|
"x-amz-target": "AWSShield_20160616.DisableProactiveEngagement",
|
|
193
193
|
};
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify(se_DisableProactiveEngagementRequest(input, context));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
198
|
+
exports.se_DisableProactiveEngagementCommand = se_DisableProactiveEngagementCommand;
|
|
199
|
+
const se_DisassociateDRTLogBucketCommand = async (input, context) => {
|
|
200
200
|
const headers = {
|
|
201
201
|
"content-type": "application/x-amz-json-1.1",
|
|
202
202
|
"x-amz-target": "AWSShield_20160616.DisassociateDRTLogBucket",
|
|
203
203
|
};
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
205
|
+
body = JSON.stringify(se_DisassociateDRTLogBucketRequest(input, context));
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_DisassociateDRTLogBucketCommand = se_DisassociateDRTLogBucketCommand;
|
|
209
|
+
const se_DisassociateDRTRoleCommand = async (input, context) => {
|
|
210
210
|
const headers = {
|
|
211
211
|
"content-type": "application/x-amz-json-1.1",
|
|
212
212
|
"x-amz-target": "AWSShield_20160616.DisassociateDRTRole",
|
|
213
213
|
};
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify(se_DisassociateDRTRoleRequest(input, context));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
218
|
+
exports.se_DisassociateDRTRoleCommand = se_DisassociateDRTRoleCommand;
|
|
219
|
+
const se_DisassociateHealthCheckCommand = async (input, context) => {
|
|
220
220
|
const headers = {
|
|
221
221
|
"content-type": "application/x-amz-json-1.1",
|
|
222
222
|
"x-amz-target": "AWSShield_20160616.DisassociateHealthCheck",
|
|
223
223
|
};
|
|
224
224
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
225
|
+
body = JSON.stringify(se_DisassociateHealthCheckRequest(input, context));
|
|
226
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_DisassociateHealthCheckCommand = se_DisassociateHealthCheckCommand;
|
|
229
|
+
const se_EnableApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/x-amz-json-1.1",
|
|
232
232
|
"x-amz-target": "AWSShield_20160616.EnableApplicationLayerAutomaticResponse",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify(se_EnableApplicationLayerAutomaticResponseRequest(input, context));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
|
-
exports.
|
|
239
|
-
const
|
|
238
|
+
exports.se_EnableApplicationLayerAutomaticResponseCommand = se_EnableApplicationLayerAutomaticResponseCommand;
|
|
239
|
+
const se_EnableProactiveEngagementCommand = async (input, context) => {
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/x-amz-json-1.1",
|
|
242
242
|
"x-amz-target": "AWSShield_20160616.EnableProactiveEngagement",
|
|
243
243
|
};
|
|
244
244
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify(se_EnableProactiveEngagementRequest(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_EnableProactiveEngagementCommand = se_EnableProactiveEngagementCommand;
|
|
249
|
+
const se_GetSubscriptionStateCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.1",
|
|
252
252
|
"x-amz-target": "AWSShield_20160616.GetSubscriptionState",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_GetSubscriptionStateRequest(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
exports.
|
|
259
|
-
const
|
|
258
|
+
exports.se_GetSubscriptionStateCommand = se_GetSubscriptionStateCommand;
|
|
259
|
+
const se_ListAttacksCommand = async (input, context) => {
|
|
260
260
|
const headers = {
|
|
261
261
|
"content-type": "application/x-amz-json-1.1",
|
|
262
262
|
"x-amz-target": "AWSShield_20160616.ListAttacks",
|
|
263
263
|
};
|
|
264
264
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
265
|
+
body = JSON.stringify(se_ListAttacksRequest(input, context));
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
268
|
+
exports.se_ListAttacksCommand = se_ListAttacksCommand;
|
|
269
|
+
const se_ListProtectionGroupsCommand = async (input, context) => {
|
|
270
270
|
const headers = {
|
|
271
271
|
"content-type": "application/x-amz-json-1.1",
|
|
272
272
|
"x-amz-target": "AWSShield_20160616.ListProtectionGroups",
|
|
273
273
|
};
|
|
274
274
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
275
|
+
body = JSON.stringify(se_ListProtectionGroupsRequest(input, context));
|
|
276
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
277
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
278
|
+
exports.se_ListProtectionGroupsCommand = se_ListProtectionGroupsCommand;
|
|
279
|
+
const se_ListProtectionsCommand = async (input, context) => {
|
|
280
280
|
const headers = {
|
|
281
281
|
"content-type": "application/x-amz-json-1.1",
|
|
282
282
|
"x-amz-target": "AWSShield_20160616.ListProtections",
|
|
283
283
|
};
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify(se_ListProtectionsRequest(input, context));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
288
|
+
exports.se_ListProtectionsCommand = se_ListProtectionsCommand;
|
|
289
|
+
const se_ListResourcesInProtectionGroupCommand = async (input, context) => {
|
|
290
290
|
const headers = {
|
|
291
291
|
"content-type": "application/x-amz-json-1.1",
|
|
292
292
|
"x-amz-target": "AWSShield_20160616.ListResourcesInProtectionGroup",
|
|
293
293
|
};
|
|
294
294
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
295
|
+
body = JSON.stringify(se_ListResourcesInProtectionGroupRequest(input, context));
|
|
296
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
297
|
};
|
|
298
|
-
exports.
|
|
299
|
-
const
|
|
298
|
+
exports.se_ListResourcesInProtectionGroupCommand = se_ListResourcesInProtectionGroupCommand;
|
|
299
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
300
300
|
const headers = {
|
|
301
301
|
"content-type": "application/x-amz-json-1.1",
|
|
302
302
|
"x-amz-target": "AWSShield_20160616.ListTagsForResource",
|
|
303
303
|
};
|
|
304
304
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
305
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
306
306
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
307
|
};
|
|
308
|
-
exports.
|
|
309
|
-
const
|
|
308
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
309
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
310
310
|
const headers = {
|
|
311
311
|
"content-type": "application/x-amz-json-1.1",
|
|
312
312
|
"x-amz-target": "AWSShield_20160616.TagResource",
|
|
313
313
|
};
|
|
314
314
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
315
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
316
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
317
|
};
|
|
318
|
-
exports.
|
|
319
|
-
const
|
|
318
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
319
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
320
320
|
const headers = {
|
|
321
321
|
"content-type": "application/x-amz-json-1.1",
|
|
322
322
|
"x-amz-target": "AWSShield_20160616.UntagResource",
|
|
323
323
|
};
|
|
324
324
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
325
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
326
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
327
|
};
|
|
328
|
-
exports.
|
|
329
|
-
const
|
|
328
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
329
|
+
const se_UpdateApplicationLayerAutomaticResponseCommand = async (input, context) => {
|
|
330
330
|
const headers = {
|
|
331
331
|
"content-type": "application/x-amz-json-1.1",
|
|
332
332
|
"x-amz-target": "AWSShield_20160616.UpdateApplicationLayerAutomaticResponse",
|
|
333
333
|
};
|
|
334
334
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
335
|
+
body = JSON.stringify(se_UpdateApplicationLayerAutomaticResponseRequest(input, context));
|
|
336
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
337
|
};
|
|
338
|
-
exports.
|
|
339
|
-
const
|
|
338
|
+
exports.se_UpdateApplicationLayerAutomaticResponseCommand = se_UpdateApplicationLayerAutomaticResponseCommand;
|
|
339
|
+
const se_UpdateEmergencyContactSettingsCommand = async (input, context) => {
|
|
340
340
|
const headers = {
|
|
341
341
|
"content-type": "application/x-amz-json-1.1",
|
|
342
342
|
"x-amz-target": "AWSShield_20160616.UpdateEmergencyContactSettings",
|
|
343
343
|
};
|
|
344
344
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
345
|
+
body = JSON.stringify(se_UpdateEmergencyContactSettingsRequest(input, context));
|
|
346
346
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
347
|
};
|
|
348
|
-
exports.
|
|
349
|
-
const
|
|
348
|
+
exports.se_UpdateEmergencyContactSettingsCommand = se_UpdateEmergencyContactSettingsCommand;
|
|
349
|
+
const se_UpdateProtectionGroupCommand = async (input, context) => {
|
|
350
350
|
const headers = {
|
|
351
351
|
"content-type": "application/x-amz-json-1.1",
|
|
352
352
|
"x-amz-target": "AWSShield_20160616.UpdateProtectionGroup",
|
|
353
353
|
};
|
|
354
354
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
355
|
+
body = JSON.stringify(se_UpdateProtectionGroupRequest(input, context));
|
|
356
356
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
357
|
};
|
|
358
|
-
exports.
|
|
359
|
-
const
|
|
358
|
+
exports.se_UpdateProtectionGroupCommand = se_UpdateProtectionGroupCommand;
|
|
359
|
+
const se_UpdateSubscriptionCommand = async (input, context) => {
|
|
360
360
|
const headers = {
|
|
361
361
|
"content-type": "application/x-amz-json-1.1",
|
|
362
362
|
"x-amz-target": "AWSShield_20160616.UpdateSubscription",
|
|
363
363
|
};
|
|
364
364
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
365
|
+
body = JSON.stringify(se_UpdateSubscriptionRequest(input, context));
|
|
366
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
367
|
};
|
|
368
|
-
exports.
|
|
369
|
-
const
|
|
368
|
+
exports.se_UpdateSubscriptionCommand = se_UpdateSubscriptionCommand;
|
|
369
|
+
const de_AssociateDRTLogBucketCommand = async (output, context) => {
|
|
370
370
|
if (output.statusCode >= 300) {
|
|
371
|
-
return
|
|
371
|
+
return de_AssociateDRTLogBucketCommandError(output, context);
|
|
372
372
|
}
|
|
373
373
|
const data = await parseBody(output.body, context);
|
|
374
374
|
let contents = {};
|
|
375
|
-
contents =
|
|
375
|
+
contents = de_AssociateDRTLogBucketResponse(data, context);
|
|
376
376
|
const response = {
|
|
377
377
|
$metadata: deserializeMetadata(output),
|
|
378
378
|
...contents,
|
|
379
379
|
};
|
|
380
380
|
return Promise.resolve(response);
|
|
381
381
|
};
|
|
382
|
-
exports.
|
|
383
|
-
const
|
|
382
|
+
exports.de_AssociateDRTLogBucketCommand = de_AssociateDRTLogBucketCommand;
|
|
383
|
+
const de_AssociateDRTLogBucketCommandError = async (output, context) => {
|
|
384
384
|
const parsedOutput = {
|
|
385
385
|
...output,
|
|
386
386
|
body: await parseErrorBody(output.body, context),
|
|
@@ -389,28 +389,28 @@ const deserializeAws_json1_1AssociateDRTLogBucketCommandError = async (output, c
|
|
|
389
389
|
switch (errorCode) {
|
|
390
390
|
case "AccessDeniedForDependencyException":
|
|
391
391
|
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
392
|
-
throw await
|
|
392
|
+
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
393
393
|
case "InternalErrorException":
|
|
394
394
|
case "com.amazonaws.shield#InternalErrorException":
|
|
395
|
-
throw await
|
|
395
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
396
396
|
case "InvalidOperationException":
|
|
397
397
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
398
|
-
throw await
|
|
398
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
399
399
|
case "InvalidParameterException":
|
|
400
400
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
401
|
-
throw await
|
|
401
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
402
402
|
case "LimitsExceededException":
|
|
403
403
|
case "com.amazonaws.shield#LimitsExceededException":
|
|
404
|
-
throw await
|
|
404
|
+
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
405
405
|
case "NoAssociatedRoleException":
|
|
406
406
|
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
407
|
-
throw await
|
|
407
|
+
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
408
408
|
case "OptimisticLockException":
|
|
409
409
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
410
|
-
throw await
|
|
410
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
411
411
|
case "ResourceNotFoundException":
|
|
412
412
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
413
|
-
throw await
|
|
413
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
414
414
|
default:
|
|
415
415
|
const parsedBody = parsedOutput.body;
|
|
416
416
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -421,21 +421,21 @@ const deserializeAws_json1_1AssociateDRTLogBucketCommandError = async (output, c
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
|
-
const
|
|
424
|
+
const de_AssociateDRTRoleCommand = async (output, context) => {
|
|
425
425
|
if (output.statusCode >= 300) {
|
|
426
|
-
return
|
|
426
|
+
return de_AssociateDRTRoleCommandError(output, context);
|
|
427
427
|
}
|
|
428
428
|
const data = await parseBody(output.body, context);
|
|
429
429
|
let contents = {};
|
|
430
|
-
contents =
|
|
430
|
+
contents = de_AssociateDRTRoleResponse(data, context);
|
|
431
431
|
const response = {
|
|
432
432
|
$metadata: deserializeMetadata(output),
|
|
433
433
|
...contents,
|
|
434
434
|
};
|
|
435
435
|
return Promise.resolve(response);
|
|
436
436
|
};
|
|
437
|
-
exports.
|
|
438
|
-
const
|
|
437
|
+
exports.de_AssociateDRTRoleCommand = de_AssociateDRTRoleCommand;
|
|
438
|
+
const de_AssociateDRTRoleCommandError = async (output, context) => {
|
|
439
439
|
const parsedOutput = {
|
|
440
440
|
...output,
|
|
441
441
|
body: await parseErrorBody(output.body, context),
|
|
@@ -444,22 +444,22 @@ const deserializeAws_json1_1AssociateDRTRoleCommandError = async (output, contex
|
|
|
444
444
|
switch (errorCode) {
|
|
445
445
|
case "AccessDeniedForDependencyException":
|
|
446
446
|
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
447
|
-
throw await
|
|
447
|
+
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
448
448
|
case "InternalErrorException":
|
|
449
449
|
case "com.amazonaws.shield#InternalErrorException":
|
|
450
|
-
throw await
|
|
450
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
451
451
|
case "InvalidOperationException":
|
|
452
452
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
453
|
-
throw await
|
|
453
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
454
454
|
case "InvalidParameterException":
|
|
455
455
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
456
|
-
throw await
|
|
456
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
457
457
|
case "OptimisticLockException":
|
|
458
458
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
459
|
-
throw await
|
|
459
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
460
460
|
case "ResourceNotFoundException":
|
|
461
461
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
462
|
-
throw await
|
|
462
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
463
463
|
default:
|
|
464
464
|
const parsedBody = parsedOutput.body;
|
|
465
465
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -470,21 +470,21 @@ const deserializeAws_json1_1AssociateDRTRoleCommandError = async (output, contex
|
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
|
-
const
|
|
473
|
+
const de_AssociateHealthCheckCommand = async (output, context) => {
|
|
474
474
|
if (output.statusCode >= 300) {
|
|
475
|
-
return
|
|
475
|
+
return de_AssociateHealthCheckCommandError(output, context);
|
|
476
476
|
}
|
|
477
477
|
const data = await parseBody(output.body, context);
|
|
478
478
|
let contents = {};
|
|
479
|
-
contents =
|
|
479
|
+
contents = de_AssociateHealthCheckResponse(data, context);
|
|
480
480
|
const response = {
|
|
481
481
|
$metadata: deserializeMetadata(output),
|
|
482
482
|
...contents,
|
|
483
483
|
};
|
|
484
484
|
return Promise.resolve(response);
|
|
485
485
|
};
|
|
486
|
-
exports.
|
|
487
|
-
const
|
|
486
|
+
exports.de_AssociateHealthCheckCommand = de_AssociateHealthCheckCommand;
|
|
487
|
+
const de_AssociateHealthCheckCommandError = async (output, context) => {
|
|
488
488
|
const parsedOutput = {
|
|
489
489
|
...output,
|
|
490
490
|
body: await parseErrorBody(output.body, context),
|
|
@@ -493,22 +493,22 @@ const deserializeAws_json1_1AssociateHealthCheckCommandError = async (output, co
|
|
|
493
493
|
switch (errorCode) {
|
|
494
494
|
case "InternalErrorException":
|
|
495
495
|
case "com.amazonaws.shield#InternalErrorException":
|
|
496
|
-
throw await
|
|
496
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
497
497
|
case "InvalidParameterException":
|
|
498
498
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
499
|
-
throw await
|
|
499
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
500
500
|
case "InvalidResourceException":
|
|
501
501
|
case "com.amazonaws.shield#InvalidResourceException":
|
|
502
|
-
throw await
|
|
502
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
503
503
|
case "LimitsExceededException":
|
|
504
504
|
case "com.amazonaws.shield#LimitsExceededException":
|
|
505
|
-
throw await
|
|
505
|
+
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
506
506
|
case "OptimisticLockException":
|
|
507
507
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
508
|
-
throw await
|
|
508
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
509
509
|
case "ResourceNotFoundException":
|
|
510
510
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
511
|
-
throw await
|
|
511
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
512
512
|
default:
|
|
513
513
|
const parsedBody = parsedOutput.body;
|
|
514
514
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -519,21 +519,21 @@ const deserializeAws_json1_1AssociateHealthCheckCommandError = async (output, co
|
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
-
const
|
|
522
|
+
const de_AssociateProactiveEngagementDetailsCommand = async (output, context) => {
|
|
523
523
|
if (output.statusCode >= 300) {
|
|
524
|
-
return
|
|
524
|
+
return de_AssociateProactiveEngagementDetailsCommandError(output, context);
|
|
525
525
|
}
|
|
526
526
|
const data = await parseBody(output.body, context);
|
|
527
527
|
let contents = {};
|
|
528
|
-
contents =
|
|
528
|
+
contents = de_AssociateProactiveEngagementDetailsResponse(data, context);
|
|
529
529
|
const response = {
|
|
530
530
|
$metadata: deserializeMetadata(output),
|
|
531
531
|
...contents,
|
|
532
532
|
};
|
|
533
533
|
return Promise.resolve(response);
|
|
534
534
|
};
|
|
535
|
-
exports.
|
|
536
|
-
const
|
|
535
|
+
exports.de_AssociateProactiveEngagementDetailsCommand = de_AssociateProactiveEngagementDetailsCommand;
|
|
536
|
+
const de_AssociateProactiveEngagementDetailsCommandError = async (output, context) => {
|
|
537
537
|
const parsedOutput = {
|
|
538
538
|
...output,
|
|
539
539
|
body: await parseErrorBody(output.body, context),
|
|
@@ -542,19 +542,19 @@ const deserializeAws_json1_1AssociateProactiveEngagementDetailsCommandError = as
|
|
|
542
542
|
switch (errorCode) {
|
|
543
543
|
case "InternalErrorException":
|
|
544
544
|
case "com.amazonaws.shield#InternalErrorException":
|
|
545
|
-
throw await
|
|
545
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
546
546
|
case "InvalidOperationException":
|
|
547
547
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
548
|
-
throw await
|
|
548
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
549
549
|
case "InvalidParameterException":
|
|
550
550
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
551
|
-
throw await
|
|
551
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
552
552
|
case "OptimisticLockException":
|
|
553
553
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
554
|
-
throw await
|
|
554
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
555
555
|
case "ResourceNotFoundException":
|
|
556
556
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
557
|
-
throw await
|
|
557
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
558
558
|
default:
|
|
559
559
|
const parsedBody = parsedOutput.body;
|
|
560
560
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -565,21 +565,21 @@ const deserializeAws_json1_1AssociateProactiveEngagementDetailsCommandError = as
|
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
|
-
const
|
|
568
|
+
const de_CreateProtectionCommand = async (output, context) => {
|
|
569
569
|
if (output.statusCode >= 300) {
|
|
570
|
-
return
|
|
570
|
+
return de_CreateProtectionCommandError(output, context);
|
|
571
571
|
}
|
|
572
572
|
const data = await parseBody(output.body, context);
|
|
573
573
|
let contents = {};
|
|
574
|
-
contents =
|
|
574
|
+
contents = de_CreateProtectionResponse(data, context);
|
|
575
575
|
const response = {
|
|
576
576
|
$metadata: deserializeMetadata(output),
|
|
577
577
|
...contents,
|
|
578
578
|
};
|
|
579
579
|
return Promise.resolve(response);
|
|
580
580
|
};
|
|
581
|
-
exports.
|
|
582
|
-
const
|
|
581
|
+
exports.de_CreateProtectionCommand = de_CreateProtectionCommand;
|
|
582
|
+
const de_CreateProtectionCommandError = async (output, context) => {
|
|
583
583
|
const parsedOutput = {
|
|
584
584
|
...output,
|
|
585
585
|
body: await parseErrorBody(output.body, context),
|
|
@@ -588,28 +588,28 @@ const deserializeAws_json1_1CreateProtectionCommandError = async (output, contex
|
|
|
588
588
|
switch (errorCode) {
|
|
589
589
|
case "InternalErrorException":
|
|
590
590
|
case "com.amazonaws.shield#InternalErrorException":
|
|
591
|
-
throw await
|
|
591
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
592
592
|
case "InvalidOperationException":
|
|
593
593
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
595
595
|
case "InvalidParameterException":
|
|
596
596
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
597
|
-
throw await
|
|
597
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
598
598
|
case "InvalidResourceException":
|
|
599
599
|
case "com.amazonaws.shield#InvalidResourceException":
|
|
600
|
-
throw await
|
|
600
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
601
601
|
case "LimitsExceededException":
|
|
602
602
|
case "com.amazonaws.shield#LimitsExceededException":
|
|
603
|
-
throw await
|
|
603
|
+
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
604
604
|
case "OptimisticLockException":
|
|
605
605
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
606
|
-
throw await
|
|
606
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
607
607
|
case "ResourceAlreadyExistsException":
|
|
608
608
|
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
609
|
-
throw await
|
|
609
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
610
610
|
case "ResourceNotFoundException":
|
|
611
611
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
612
|
-
throw await
|
|
612
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
613
613
|
default:
|
|
614
614
|
const parsedBody = parsedOutput.body;
|
|
615
615
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -620,21 +620,21 @@ const deserializeAws_json1_1CreateProtectionCommandError = async (output, contex
|
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
|
-
const
|
|
623
|
+
const de_CreateProtectionGroupCommand = async (output, context) => {
|
|
624
624
|
if (output.statusCode >= 300) {
|
|
625
|
-
return
|
|
625
|
+
return de_CreateProtectionGroupCommandError(output, context);
|
|
626
626
|
}
|
|
627
627
|
const data = await parseBody(output.body, context);
|
|
628
628
|
let contents = {};
|
|
629
|
-
contents =
|
|
629
|
+
contents = de_CreateProtectionGroupResponse(data, context);
|
|
630
630
|
const response = {
|
|
631
631
|
$metadata: deserializeMetadata(output),
|
|
632
632
|
...contents,
|
|
633
633
|
};
|
|
634
634
|
return Promise.resolve(response);
|
|
635
635
|
};
|
|
636
|
-
exports.
|
|
637
|
-
const
|
|
636
|
+
exports.de_CreateProtectionGroupCommand = de_CreateProtectionGroupCommand;
|
|
637
|
+
const de_CreateProtectionGroupCommandError = async (output, context) => {
|
|
638
638
|
const parsedOutput = {
|
|
639
639
|
...output,
|
|
640
640
|
body: await parseErrorBody(output.body, context),
|
|
@@ -643,22 +643,22 @@ const deserializeAws_json1_1CreateProtectionGroupCommandError = async (output, c
|
|
|
643
643
|
switch (errorCode) {
|
|
644
644
|
case "InternalErrorException":
|
|
645
645
|
case "com.amazonaws.shield#InternalErrorException":
|
|
646
|
-
throw await
|
|
646
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
647
647
|
case "InvalidParameterException":
|
|
648
648
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
649
|
-
throw await
|
|
649
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
650
650
|
case "LimitsExceededException":
|
|
651
651
|
case "com.amazonaws.shield#LimitsExceededException":
|
|
652
|
-
throw await
|
|
652
|
+
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
653
653
|
case "OptimisticLockException":
|
|
654
654
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
655
|
-
throw await
|
|
655
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
656
656
|
case "ResourceAlreadyExistsException":
|
|
657
657
|
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
658
|
-
throw await
|
|
658
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
659
659
|
case "ResourceNotFoundException":
|
|
660
660
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
661
|
-
throw await
|
|
661
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
662
662
|
default:
|
|
663
663
|
const parsedBody = parsedOutput.body;
|
|
664
664
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -669,21 +669,21 @@ const deserializeAws_json1_1CreateProtectionGroupCommandError = async (output, c
|
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
|
-
const
|
|
672
|
+
const de_CreateSubscriptionCommand = async (output, context) => {
|
|
673
673
|
if (output.statusCode >= 300) {
|
|
674
|
-
return
|
|
674
|
+
return de_CreateSubscriptionCommandError(output, context);
|
|
675
675
|
}
|
|
676
676
|
const data = await parseBody(output.body, context);
|
|
677
677
|
let contents = {};
|
|
678
|
-
contents =
|
|
678
|
+
contents = de_CreateSubscriptionResponse(data, context);
|
|
679
679
|
const response = {
|
|
680
680
|
$metadata: deserializeMetadata(output),
|
|
681
681
|
...contents,
|
|
682
682
|
};
|
|
683
683
|
return Promise.resolve(response);
|
|
684
684
|
};
|
|
685
|
-
exports.
|
|
686
|
-
const
|
|
685
|
+
exports.de_CreateSubscriptionCommand = de_CreateSubscriptionCommand;
|
|
686
|
+
const de_CreateSubscriptionCommandError = async (output, context) => {
|
|
687
687
|
const parsedOutput = {
|
|
688
688
|
...output,
|
|
689
689
|
body: await parseErrorBody(output.body, context),
|
|
@@ -692,10 +692,10 @@ const deserializeAws_json1_1CreateSubscriptionCommandError = async (output, cont
|
|
|
692
692
|
switch (errorCode) {
|
|
693
693
|
case "InternalErrorException":
|
|
694
694
|
case "com.amazonaws.shield#InternalErrorException":
|
|
695
|
-
throw await
|
|
695
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
696
696
|
case "ResourceAlreadyExistsException":
|
|
697
697
|
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
698
|
-
throw await
|
|
698
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
699
699
|
default:
|
|
700
700
|
const parsedBody = parsedOutput.body;
|
|
701
701
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -706,21 +706,21 @@ const deserializeAws_json1_1CreateSubscriptionCommandError = async (output, cont
|
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
|
-
const
|
|
709
|
+
const de_DeleteProtectionCommand = async (output, context) => {
|
|
710
710
|
if (output.statusCode >= 300) {
|
|
711
|
-
return
|
|
711
|
+
return de_DeleteProtectionCommandError(output, context);
|
|
712
712
|
}
|
|
713
713
|
const data = await parseBody(output.body, context);
|
|
714
714
|
let contents = {};
|
|
715
|
-
contents =
|
|
715
|
+
contents = de_DeleteProtectionResponse(data, context);
|
|
716
716
|
const response = {
|
|
717
717
|
$metadata: deserializeMetadata(output),
|
|
718
718
|
...contents,
|
|
719
719
|
};
|
|
720
720
|
return Promise.resolve(response);
|
|
721
721
|
};
|
|
722
|
-
exports.
|
|
723
|
-
const
|
|
722
|
+
exports.de_DeleteProtectionCommand = de_DeleteProtectionCommand;
|
|
723
|
+
const de_DeleteProtectionCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
726
|
body: await parseErrorBody(output.body, context),
|
|
@@ -729,13 +729,13 @@ const deserializeAws_json1_1DeleteProtectionCommandError = async (output, contex
|
|
|
729
729
|
switch (errorCode) {
|
|
730
730
|
case "InternalErrorException":
|
|
731
731
|
case "com.amazonaws.shield#InternalErrorException":
|
|
732
|
-
throw await
|
|
732
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
733
733
|
case "OptimisticLockException":
|
|
734
734
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
735
|
-
throw await
|
|
735
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
736
736
|
case "ResourceNotFoundException":
|
|
737
737
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
738
|
-
throw await
|
|
738
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
739
739
|
default:
|
|
740
740
|
const parsedBody = parsedOutput.body;
|
|
741
741
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -746,21 +746,21 @@ const deserializeAws_json1_1DeleteProtectionCommandError = async (output, contex
|
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
748
|
};
|
|
749
|
-
const
|
|
749
|
+
const de_DeleteProtectionGroupCommand = async (output, context) => {
|
|
750
750
|
if (output.statusCode >= 300) {
|
|
751
|
-
return
|
|
751
|
+
return de_DeleteProtectionGroupCommandError(output, context);
|
|
752
752
|
}
|
|
753
753
|
const data = await parseBody(output.body, context);
|
|
754
754
|
let contents = {};
|
|
755
|
-
contents =
|
|
755
|
+
contents = de_DeleteProtectionGroupResponse(data, context);
|
|
756
756
|
const response = {
|
|
757
757
|
$metadata: deserializeMetadata(output),
|
|
758
758
|
...contents,
|
|
759
759
|
};
|
|
760
760
|
return Promise.resolve(response);
|
|
761
761
|
};
|
|
762
|
-
exports.
|
|
763
|
-
const
|
|
762
|
+
exports.de_DeleteProtectionGroupCommand = de_DeleteProtectionGroupCommand;
|
|
763
|
+
const de_DeleteProtectionGroupCommandError = async (output, context) => {
|
|
764
764
|
const parsedOutput = {
|
|
765
765
|
...output,
|
|
766
766
|
body: await parseErrorBody(output.body, context),
|
|
@@ -769,13 +769,13 @@ const deserializeAws_json1_1DeleteProtectionGroupCommandError = async (output, c
|
|
|
769
769
|
switch (errorCode) {
|
|
770
770
|
case "InternalErrorException":
|
|
771
771
|
case "com.amazonaws.shield#InternalErrorException":
|
|
772
|
-
throw await
|
|
772
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
773
773
|
case "OptimisticLockException":
|
|
774
774
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
775
|
-
throw await
|
|
775
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
776
776
|
case "ResourceNotFoundException":
|
|
777
777
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
778
|
-
throw await
|
|
778
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
779
779
|
default:
|
|
780
780
|
const parsedBody = parsedOutput.body;
|
|
781
781
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -786,21 +786,21 @@ const deserializeAws_json1_1DeleteProtectionGroupCommandError = async (output, c
|
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
|
-
const
|
|
789
|
+
const de_DeleteSubscriptionCommand = async (output, context) => {
|
|
790
790
|
if (output.statusCode >= 300) {
|
|
791
|
-
return
|
|
791
|
+
return de_DeleteSubscriptionCommandError(output, context);
|
|
792
792
|
}
|
|
793
793
|
const data = await parseBody(output.body, context);
|
|
794
794
|
let contents = {};
|
|
795
|
-
contents =
|
|
795
|
+
contents = de_DeleteSubscriptionResponse(data, context);
|
|
796
796
|
const response = {
|
|
797
797
|
$metadata: deserializeMetadata(output),
|
|
798
798
|
...contents,
|
|
799
799
|
};
|
|
800
800
|
return Promise.resolve(response);
|
|
801
801
|
};
|
|
802
|
-
exports.
|
|
803
|
-
const
|
|
802
|
+
exports.de_DeleteSubscriptionCommand = de_DeleteSubscriptionCommand;
|
|
803
|
+
const de_DeleteSubscriptionCommandError = async (output, context) => {
|
|
804
804
|
const parsedOutput = {
|
|
805
805
|
...output,
|
|
806
806
|
body: await parseErrorBody(output.body, context),
|
|
@@ -809,13 +809,13 @@ const deserializeAws_json1_1DeleteSubscriptionCommandError = async (output, cont
|
|
|
809
809
|
switch (errorCode) {
|
|
810
810
|
case "InternalErrorException":
|
|
811
811
|
case "com.amazonaws.shield#InternalErrorException":
|
|
812
|
-
throw await
|
|
812
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
813
813
|
case "LockedSubscriptionException":
|
|
814
814
|
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
815
|
-
throw await
|
|
815
|
+
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
816
816
|
case "ResourceNotFoundException":
|
|
817
817
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
818
|
-
throw await
|
|
818
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
819
819
|
default:
|
|
820
820
|
const parsedBody = parsedOutput.body;
|
|
821
821
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -826,21 +826,21 @@ const deserializeAws_json1_1DeleteSubscriptionCommandError = async (output, cont
|
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
|
-
const
|
|
829
|
+
const de_DescribeAttackCommand = async (output, context) => {
|
|
830
830
|
if (output.statusCode >= 300) {
|
|
831
|
-
return
|
|
831
|
+
return de_DescribeAttackCommandError(output, context);
|
|
832
832
|
}
|
|
833
833
|
const data = await parseBody(output.body, context);
|
|
834
834
|
let contents = {};
|
|
835
|
-
contents =
|
|
835
|
+
contents = de_DescribeAttackResponse(data, context);
|
|
836
836
|
const response = {
|
|
837
837
|
$metadata: deserializeMetadata(output),
|
|
838
838
|
...contents,
|
|
839
839
|
};
|
|
840
840
|
return Promise.resolve(response);
|
|
841
841
|
};
|
|
842
|
-
exports.
|
|
843
|
-
const
|
|
842
|
+
exports.de_DescribeAttackCommand = de_DescribeAttackCommand;
|
|
843
|
+
const de_DescribeAttackCommandError = async (output, context) => {
|
|
844
844
|
const parsedOutput = {
|
|
845
845
|
...output,
|
|
846
846
|
body: await parseErrorBody(output.body, context),
|
|
@@ -849,10 +849,10 @@ const deserializeAws_json1_1DescribeAttackCommandError = async (output, context)
|
|
|
849
849
|
switch (errorCode) {
|
|
850
850
|
case "AccessDeniedException":
|
|
851
851
|
case "com.amazonaws.shield#AccessDeniedException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
853
853
|
case "InternalErrorException":
|
|
854
854
|
case "com.amazonaws.shield#InternalErrorException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
856
856
|
default:
|
|
857
857
|
const parsedBody = parsedOutput.body;
|
|
858
858
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -863,21 +863,21 @@ const deserializeAws_json1_1DescribeAttackCommandError = async (output, context)
|
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
865
|
};
|
|
866
|
-
const
|
|
866
|
+
const de_DescribeAttackStatisticsCommand = async (output, context) => {
|
|
867
867
|
if (output.statusCode >= 300) {
|
|
868
|
-
return
|
|
868
|
+
return de_DescribeAttackStatisticsCommandError(output, context);
|
|
869
869
|
}
|
|
870
870
|
const data = await parseBody(output.body, context);
|
|
871
871
|
let contents = {};
|
|
872
|
-
contents =
|
|
872
|
+
contents = de_DescribeAttackStatisticsResponse(data, context);
|
|
873
873
|
const response = {
|
|
874
874
|
$metadata: deserializeMetadata(output),
|
|
875
875
|
...contents,
|
|
876
876
|
};
|
|
877
877
|
return Promise.resolve(response);
|
|
878
878
|
};
|
|
879
|
-
exports.
|
|
880
|
-
const
|
|
879
|
+
exports.de_DescribeAttackStatisticsCommand = de_DescribeAttackStatisticsCommand;
|
|
880
|
+
const de_DescribeAttackStatisticsCommandError = async (output, context) => {
|
|
881
881
|
const parsedOutput = {
|
|
882
882
|
...output,
|
|
883
883
|
body: await parseErrorBody(output.body, context),
|
|
@@ -886,7 +886,7 @@ const deserializeAws_json1_1DescribeAttackStatisticsCommandError = async (output
|
|
|
886
886
|
switch (errorCode) {
|
|
887
887
|
case "InternalErrorException":
|
|
888
888
|
case "com.amazonaws.shield#InternalErrorException":
|
|
889
|
-
throw await
|
|
889
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
890
890
|
default:
|
|
891
891
|
const parsedBody = parsedOutput.body;
|
|
892
892
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -897,21 +897,21 @@ const deserializeAws_json1_1DescribeAttackStatisticsCommandError = async (output
|
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
|
-
const
|
|
900
|
+
const de_DescribeDRTAccessCommand = async (output, context) => {
|
|
901
901
|
if (output.statusCode >= 300) {
|
|
902
|
-
return
|
|
902
|
+
return de_DescribeDRTAccessCommandError(output, context);
|
|
903
903
|
}
|
|
904
904
|
const data = await parseBody(output.body, context);
|
|
905
905
|
let contents = {};
|
|
906
|
-
contents =
|
|
906
|
+
contents = de_DescribeDRTAccessResponse(data, context);
|
|
907
907
|
const response = {
|
|
908
908
|
$metadata: deserializeMetadata(output),
|
|
909
909
|
...contents,
|
|
910
910
|
};
|
|
911
911
|
return Promise.resolve(response);
|
|
912
912
|
};
|
|
913
|
-
exports.
|
|
914
|
-
const
|
|
913
|
+
exports.de_DescribeDRTAccessCommand = de_DescribeDRTAccessCommand;
|
|
914
|
+
const de_DescribeDRTAccessCommandError = async (output, context) => {
|
|
915
915
|
const parsedOutput = {
|
|
916
916
|
...output,
|
|
917
917
|
body: await parseErrorBody(output.body, context),
|
|
@@ -920,10 +920,10 @@ const deserializeAws_json1_1DescribeDRTAccessCommandError = async (output, conte
|
|
|
920
920
|
switch (errorCode) {
|
|
921
921
|
case "InternalErrorException":
|
|
922
922
|
case "com.amazonaws.shield#InternalErrorException":
|
|
923
|
-
throw await
|
|
923
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
924
924
|
case "ResourceNotFoundException":
|
|
925
925
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
926
|
-
throw await
|
|
926
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
927
927
|
default:
|
|
928
928
|
const parsedBody = parsedOutput.body;
|
|
929
929
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -934,21 +934,21 @@ const deserializeAws_json1_1DescribeDRTAccessCommandError = async (output, conte
|
|
|
934
934
|
});
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
const
|
|
937
|
+
const de_DescribeEmergencyContactSettingsCommand = async (output, context) => {
|
|
938
938
|
if (output.statusCode >= 300) {
|
|
939
|
-
return
|
|
939
|
+
return de_DescribeEmergencyContactSettingsCommandError(output, context);
|
|
940
940
|
}
|
|
941
941
|
const data = await parseBody(output.body, context);
|
|
942
942
|
let contents = {};
|
|
943
|
-
contents =
|
|
943
|
+
contents = de_DescribeEmergencyContactSettingsResponse(data, context);
|
|
944
944
|
const response = {
|
|
945
945
|
$metadata: deserializeMetadata(output),
|
|
946
946
|
...contents,
|
|
947
947
|
};
|
|
948
948
|
return Promise.resolve(response);
|
|
949
949
|
};
|
|
950
|
-
exports.
|
|
951
|
-
const
|
|
950
|
+
exports.de_DescribeEmergencyContactSettingsCommand = de_DescribeEmergencyContactSettingsCommand;
|
|
951
|
+
const de_DescribeEmergencyContactSettingsCommandError = async (output, context) => {
|
|
952
952
|
const parsedOutput = {
|
|
953
953
|
...output,
|
|
954
954
|
body: await parseErrorBody(output.body, context),
|
|
@@ -957,10 +957,10 @@ const deserializeAws_json1_1DescribeEmergencyContactSettingsCommandError = async
|
|
|
957
957
|
switch (errorCode) {
|
|
958
958
|
case "InternalErrorException":
|
|
959
959
|
case "com.amazonaws.shield#InternalErrorException":
|
|
960
|
-
throw await
|
|
960
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
961
961
|
case "ResourceNotFoundException":
|
|
962
962
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
963
|
-
throw await
|
|
963
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
964
964
|
default:
|
|
965
965
|
const parsedBody = parsedOutput.body;
|
|
966
966
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -971,21 +971,21 @@ const deserializeAws_json1_1DescribeEmergencyContactSettingsCommandError = async
|
|
|
971
971
|
});
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
|
-
const
|
|
974
|
+
const de_DescribeProtectionCommand = async (output, context) => {
|
|
975
975
|
if (output.statusCode >= 300) {
|
|
976
|
-
return
|
|
976
|
+
return de_DescribeProtectionCommandError(output, context);
|
|
977
977
|
}
|
|
978
978
|
const data = await parseBody(output.body, context);
|
|
979
979
|
let contents = {};
|
|
980
|
-
contents =
|
|
980
|
+
contents = de_DescribeProtectionResponse(data, context);
|
|
981
981
|
const response = {
|
|
982
982
|
$metadata: deserializeMetadata(output),
|
|
983
983
|
...contents,
|
|
984
984
|
};
|
|
985
985
|
return Promise.resolve(response);
|
|
986
986
|
};
|
|
987
|
-
exports.
|
|
988
|
-
const
|
|
987
|
+
exports.de_DescribeProtectionCommand = de_DescribeProtectionCommand;
|
|
988
|
+
const de_DescribeProtectionCommandError = async (output, context) => {
|
|
989
989
|
const parsedOutput = {
|
|
990
990
|
...output,
|
|
991
991
|
body: await parseErrorBody(output.body, context),
|
|
@@ -994,13 +994,13 @@ const deserializeAws_json1_1DescribeProtectionCommandError = async (output, cont
|
|
|
994
994
|
switch (errorCode) {
|
|
995
995
|
case "InternalErrorException":
|
|
996
996
|
case "com.amazonaws.shield#InternalErrorException":
|
|
997
|
-
throw await
|
|
997
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
998
998
|
case "InvalidParameterException":
|
|
999
999
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1000
|
-
throw await
|
|
1000
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1001
1001
|
case "ResourceNotFoundException":
|
|
1002
1002
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1003
|
-
throw await
|
|
1003
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1004
1004
|
default:
|
|
1005
1005
|
const parsedBody = parsedOutput.body;
|
|
1006
1006
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1011,21 +1011,21 @@ const deserializeAws_json1_1DescribeProtectionCommandError = async (output, cont
|
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
1013
|
};
|
|
1014
|
-
const
|
|
1014
|
+
const de_DescribeProtectionGroupCommand = async (output, context) => {
|
|
1015
1015
|
if (output.statusCode >= 300) {
|
|
1016
|
-
return
|
|
1016
|
+
return de_DescribeProtectionGroupCommandError(output, context);
|
|
1017
1017
|
}
|
|
1018
1018
|
const data = await parseBody(output.body, context);
|
|
1019
1019
|
let contents = {};
|
|
1020
|
-
contents =
|
|
1020
|
+
contents = de_DescribeProtectionGroupResponse(data, context);
|
|
1021
1021
|
const response = {
|
|
1022
1022
|
$metadata: deserializeMetadata(output),
|
|
1023
1023
|
...contents,
|
|
1024
1024
|
};
|
|
1025
1025
|
return Promise.resolve(response);
|
|
1026
1026
|
};
|
|
1027
|
-
exports.
|
|
1028
|
-
const
|
|
1027
|
+
exports.de_DescribeProtectionGroupCommand = de_DescribeProtectionGroupCommand;
|
|
1028
|
+
const de_DescribeProtectionGroupCommandError = async (output, context) => {
|
|
1029
1029
|
const parsedOutput = {
|
|
1030
1030
|
...output,
|
|
1031
1031
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1034,10 +1034,10 @@ const deserializeAws_json1_1DescribeProtectionGroupCommandError = async (output,
|
|
|
1034
1034
|
switch (errorCode) {
|
|
1035
1035
|
case "InternalErrorException":
|
|
1036
1036
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1037
|
-
throw await
|
|
1037
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1038
1038
|
case "ResourceNotFoundException":
|
|
1039
1039
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1040
|
-
throw await
|
|
1040
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1041
1041
|
default:
|
|
1042
1042
|
const parsedBody = parsedOutput.body;
|
|
1043
1043
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1048,21 +1048,21 @@ const deserializeAws_json1_1DescribeProtectionGroupCommandError = async (output,
|
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
1050
|
};
|
|
1051
|
-
const
|
|
1051
|
+
const de_DescribeSubscriptionCommand = async (output, context) => {
|
|
1052
1052
|
if (output.statusCode >= 300) {
|
|
1053
|
-
return
|
|
1053
|
+
return de_DescribeSubscriptionCommandError(output, context);
|
|
1054
1054
|
}
|
|
1055
1055
|
const data = await parseBody(output.body, context);
|
|
1056
1056
|
let contents = {};
|
|
1057
|
-
contents =
|
|
1057
|
+
contents = de_DescribeSubscriptionResponse(data, context);
|
|
1058
1058
|
const response = {
|
|
1059
1059
|
$metadata: deserializeMetadata(output),
|
|
1060
1060
|
...contents,
|
|
1061
1061
|
};
|
|
1062
1062
|
return Promise.resolve(response);
|
|
1063
1063
|
};
|
|
1064
|
-
exports.
|
|
1065
|
-
const
|
|
1064
|
+
exports.de_DescribeSubscriptionCommand = de_DescribeSubscriptionCommand;
|
|
1065
|
+
const de_DescribeSubscriptionCommandError = async (output, context) => {
|
|
1066
1066
|
const parsedOutput = {
|
|
1067
1067
|
...output,
|
|
1068
1068
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1071,10 +1071,10 @@ const deserializeAws_json1_1DescribeSubscriptionCommandError = async (output, co
|
|
|
1071
1071
|
switch (errorCode) {
|
|
1072
1072
|
case "InternalErrorException":
|
|
1073
1073
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1074
|
-
throw await
|
|
1074
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1075
1075
|
case "ResourceNotFoundException":
|
|
1076
1076
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1077
|
-
throw await
|
|
1077
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1078
1078
|
default:
|
|
1079
1079
|
const parsedBody = parsedOutput.body;
|
|
1080
1080
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1085,21 +1085,21 @@ const deserializeAws_json1_1DescribeSubscriptionCommandError = async (output, co
|
|
|
1085
1085
|
});
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
|
-
const
|
|
1088
|
+
const de_DisableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
1089
1089
|
if (output.statusCode >= 300) {
|
|
1090
|
-
return
|
|
1090
|
+
return de_DisableApplicationLayerAutomaticResponseCommandError(output, context);
|
|
1091
1091
|
}
|
|
1092
1092
|
const data = await parseBody(output.body, context);
|
|
1093
1093
|
let contents = {};
|
|
1094
|
-
contents =
|
|
1094
|
+
contents = de_DisableApplicationLayerAutomaticResponseResponse(data, context);
|
|
1095
1095
|
const response = {
|
|
1096
1096
|
$metadata: deserializeMetadata(output),
|
|
1097
1097
|
...contents,
|
|
1098
1098
|
};
|
|
1099
1099
|
return Promise.resolve(response);
|
|
1100
1100
|
};
|
|
1101
|
-
exports.
|
|
1102
|
-
const
|
|
1101
|
+
exports.de_DisableApplicationLayerAutomaticResponseCommand = de_DisableApplicationLayerAutomaticResponseCommand;
|
|
1102
|
+
const de_DisableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1103
1103
|
const parsedOutput = {
|
|
1104
1104
|
...output,
|
|
1105
1105
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1108,19 +1108,19 @@ const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommandError
|
|
|
1108
1108
|
switch (errorCode) {
|
|
1109
1109
|
case "InternalErrorException":
|
|
1110
1110
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1111
|
-
throw await
|
|
1111
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1112
1112
|
case "InvalidOperationException":
|
|
1113
1113
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
1114
|
-
throw await
|
|
1114
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1115
1115
|
case "InvalidParameterException":
|
|
1116
1116
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1117
|
-
throw await
|
|
1117
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1118
1118
|
case "OptimisticLockException":
|
|
1119
1119
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1120
|
-
throw await
|
|
1120
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1121
1121
|
case "ResourceNotFoundException":
|
|
1122
1122
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1123
|
-
throw await
|
|
1123
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1124
1124
|
default:
|
|
1125
1125
|
const parsedBody = parsedOutput.body;
|
|
1126
1126
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1131,21 +1131,21 @@ const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommandError
|
|
|
1131
1131
|
});
|
|
1132
1132
|
}
|
|
1133
1133
|
};
|
|
1134
|
-
const
|
|
1134
|
+
const de_DisableProactiveEngagementCommand = async (output, context) => {
|
|
1135
1135
|
if (output.statusCode >= 300) {
|
|
1136
|
-
return
|
|
1136
|
+
return de_DisableProactiveEngagementCommandError(output, context);
|
|
1137
1137
|
}
|
|
1138
1138
|
const data = await parseBody(output.body, context);
|
|
1139
1139
|
let contents = {};
|
|
1140
|
-
contents =
|
|
1140
|
+
contents = de_DisableProactiveEngagementResponse(data, context);
|
|
1141
1141
|
const response = {
|
|
1142
1142
|
$metadata: deserializeMetadata(output),
|
|
1143
1143
|
...contents,
|
|
1144
1144
|
};
|
|
1145
1145
|
return Promise.resolve(response);
|
|
1146
1146
|
};
|
|
1147
|
-
exports.
|
|
1148
|
-
const
|
|
1147
|
+
exports.de_DisableProactiveEngagementCommand = de_DisableProactiveEngagementCommand;
|
|
1148
|
+
const de_DisableProactiveEngagementCommandError = async (output, context) => {
|
|
1149
1149
|
const parsedOutput = {
|
|
1150
1150
|
...output,
|
|
1151
1151
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1154,19 +1154,19 @@ const deserializeAws_json1_1DisableProactiveEngagementCommandError = async (outp
|
|
|
1154
1154
|
switch (errorCode) {
|
|
1155
1155
|
case "InternalErrorException":
|
|
1156
1156
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1157
|
-
throw await
|
|
1157
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1158
1158
|
case "InvalidOperationException":
|
|
1159
1159
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
1160
|
-
throw await
|
|
1160
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1161
1161
|
case "InvalidParameterException":
|
|
1162
1162
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1163
|
-
throw await
|
|
1163
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1164
1164
|
case "OptimisticLockException":
|
|
1165
1165
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1166
|
-
throw await
|
|
1166
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1167
1167
|
case "ResourceNotFoundException":
|
|
1168
1168
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1169
|
-
throw await
|
|
1169
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1170
1170
|
default:
|
|
1171
1171
|
const parsedBody = parsedOutput.body;
|
|
1172
1172
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1177,21 +1177,21 @@ const deserializeAws_json1_1DisableProactiveEngagementCommandError = async (outp
|
|
|
1177
1177
|
});
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
-
const
|
|
1180
|
+
const de_DisassociateDRTLogBucketCommand = async (output, context) => {
|
|
1181
1181
|
if (output.statusCode >= 300) {
|
|
1182
|
-
return
|
|
1182
|
+
return de_DisassociateDRTLogBucketCommandError(output, context);
|
|
1183
1183
|
}
|
|
1184
1184
|
const data = await parseBody(output.body, context);
|
|
1185
1185
|
let contents = {};
|
|
1186
|
-
contents =
|
|
1186
|
+
contents = de_DisassociateDRTLogBucketResponse(data, context);
|
|
1187
1187
|
const response = {
|
|
1188
1188
|
$metadata: deserializeMetadata(output),
|
|
1189
1189
|
...contents,
|
|
1190
1190
|
};
|
|
1191
1191
|
return Promise.resolve(response);
|
|
1192
1192
|
};
|
|
1193
|
-
exports.
|
|
1194
|
-
const
|
|
1193
|
+
exports.de_DisassociateDRTLogBucketCommand = de_DisassociateDRTLogBucketCommand;
|
|
1194
|
+
const de_DisassociateDRTLogBucketCommandError = async (output, context) => {
|
|
1195
1195
|
const parsedOutput = {
|
|
1196
1196
|
...output,
|
|
1197
1197
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1200,22 +1200,22 @@ const deserializeAws_json1_1DisassociateDRTLogBucketCommandError = async (output
|
|
|
1200
1200
|
switch (errorCode) {
|
|
1201
1201
|
case "AccessDeniedForDependencyException":
|
|
1202
1202
|
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
1203
|
-
throw await
|
|
1203
|
+
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
1204
1204
|
case "InternalErrorException":
|
|
1205
1205
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1206
|
-
throw await
|
|
1206
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1207
1207
|
case "InvalidOperationException":
|
|
1208
1208
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
1209
|
-
throw await
|
|
1209
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1210
1210
|
case "NoAssociatedRoleException":
|
|
1211
1211
|
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
1212
|
-
throw await
|
|
1212
|
+
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
1213
1213
|
case "OptimisticLockException":
|
|
1214
1214
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1215
|
-
throw await
|
|
1215
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1216
1216
|
case "ResourceNotFoundException":
|
|
1217
1217
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1218
|
-
throw await
|
|
1218
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1219
1219
|
default:
|
|
1220
1220
|
const parsedBody = parsedOutput.body;
|
|
1221
1221
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1226,21 +1226,21 @@ const deserializeAws_json1_1DisassociateDRTLogBucketCommandError = async (output
|
|
|
1226
1226
|
});
|
|
1227
1227
|
}
|
|
1228
1228
|
};
|
|
1229
|
-
const
|
|
1229
|
+
const de_DisassociateDRTRoleCommand = async (output, context) => {
|
|
1230
1230
|
if (output.statusCode >= 300) {
|
|
1231
|
-
return
|
|
1231
|
+
return de_DisassociateDRTRoleCommandError(output, context);
|
|
1232
1232
|
}
|
|
1233
1233
|
const data = await parseBody(output.body, context);
|
|
1234
1234
|
let contents = {};
|
|
1235
|
-
contents =
|
|
1235
|
+
contents = de_DisassociateDRTRoleResponse(data, context);
|
|
1236
1236
|
const response = {
|
|
1237
1237
|
$metadata: deserializeMetadata(output),
|
|
1238
1238
|
...contents,
|
|
1239
1239
|
};
|
|
1240
1240
|
return Promise.resolve(response);
|
|
1241
1241
|
};
|
|
1242
|
-
exports.
|
|
1243
|
-
const
|
|
1242
|
+
exports.de_DisassociateDRTRoleCommand = de_DisassociateDRTRoleCommand;
|
|
1243
|
+
const de_DisassociateDRTRoleCommandError = async (output, context) => {
|
|
1244
1244
|
const parsedOutput = {
|
|
1245
1245
|
...output,
|
|
1246
1246
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1249,16 +1249,16 @@ const deserializeAws_json1_1DisassociateDRTRoleCommandError = async (output, con
|
|
|
1249
1249
|
switch (errorCode) {
|
|
1250
1250
|
case "InternalErrorException":
|
|
1251
1251
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1252
|
-
throw await
|
|
1252
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1253
1253
|
case "InvalidOperationException":
|
|
1254
1254
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
1255
|
-
throw await
|
|
1255
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1256
1256
|
case "OptimisticLockException":
|
|
1257
1257
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1258
|
-
throw await
|
|
1258
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1259
1259
|
case "ResourceNotFoundException":
|
|
1260
1260
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1261
|
-
throw await
|
|
1261
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1262
1262
|
default:
|
|
1263
1263
|
const parsedBody = parsedOutput.body;
|
|
1264
1264
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1269,21 +1269,21 @@ const deserializeAws_json1_1DisassociateDRTRoleCommandError = async (output, con
|
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
|
-
const
|
|
1272
|
+
const de_DisassociateHealthCheckCommand = async (output, context) => {
|
|
1273
1273
|
if (output.statusCode >= 300) {
|
|
1274
|
-
return
|
|
1274
|
+
return de_DisassociateHealthCheckCommandError(output, context);
|
|
1275
1275
|
}
|
|
1276
1276
|
const data = await parseBody(output.body, context);
|
|
1277
1277
|
let contents = {};
|
|
1278
|
-
contents =
|
|
1278
|
+
contents = de_DisassociateHealthCheckResponse(data, context);
|
|
1279
1279
|
const response = {
|
|
1280
1280
|
$metadata: deserializeMetadata(output),
|
|
1281
1281
|
...contents,
|
|
1282
1282
|
};
|
|
1283
1283
|
return Promise.resolve(response);
|
|
1284
1284
|
};
|
|
1285
|
-
exports.
|
|
1286
|
-
const
|
|
1285
|
+
exports.de_DisassociateHealthCheckCommand = de_DisassociateHealthCheckCommand;
|
|
1286
|
+
const de_DisassociateHealthCheckCommandError = async (output, context) => {
|
|
1287
1287
|
const parsedOutput = {
|
|
1288
1288
|
...output,
|
|
1289
1289
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1292,19 +1292,19 @@ const deserializeAws_json1_1DisassociateHealthCheckCommandError = async (output,
|
|
|
1292
1292
|
switch (errorCode) {
|
|
1293
1293
|
case "InternalErrorException":
|
|
1294
1294
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1295
|
-
throw await
|
|
1295
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1296
1296
|
case "InvalidParameterException":
|
|
1297
1297
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1298
|
-
throw await
|
|
1298
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1299
1299
|
case "InvalidResourceException":
|
|
1300
1300
|
case "com.amazonaws.shield#InvalidResourceException":
|
|
1301
|
-
throw await
|
|
1301
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1302
1302
|
case "OptimisticLockException":
|
|
1303
1303
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1304
|
-
throw await
|
|
1304
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1305
1305
|
case "ResourceNotFoundException":
|
|
1306
1306
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1307
|
-
throw await
|
|
1307
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1308
1308
|
default:
|
|
1309
1309
|
const parsedBody = parsedOutput.body;
|
|
1310
1310
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1315,21 +1315,21 @@ const deserializeAws_json1_1DisassociateHealthCheckCommandError = async (output,
|
|
|
1315
1315
|
});
|
|
1316
1316
|
}
|
|
1317
1317
|
};
|
|
1318
|
-
const
|
|
1318
|
+
const de_EnableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
1319
1319
|
if (output.statusCode >= 300) {
|
|
1320
|
-
return
|
|
1320
|
+
return de_EnableApplicationLayerAutomaticResponseCommandError(output, context);
|
|
1321
1321
|
}
|
|
1322
1322
|
const data = await parseBody(output.body, context);
|
|
1323
1323
|
let contents = {};
|
|
1324
|
-
contents =
|
|
1324
|
+
contents = de_EnableApplicationLayerAutomaticResponseResponse(data, context);
|
|
1325
1325
|
const response = {
|
|
1326
1326
|
$metadata: deserializeMetadata(output),
|
|
1327
1327
|
...contents,
|
|
1328
1328
|
};
|
|
1329
1329
|
return Promise.resolve(response);
|
|
1330
1330
|
};
|
|
1331
|
-
exports.
|
|
1332
|
-
const
|
|
1331
|
+
exports.de_EnableApplicationLayerAutomaticResponseCommand = de_EnableApplicationLayerAutomaticResponseCommand;
|
|
1332
|
+
const de_EnableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1333
1333
|
const parsedOutput = {
|
|
1334
1334
|
...output,
|
|
1335
1335
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1338,22 +1338,22 @@ const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommandError
|
|
|
1338
1338
|
switch (errorCode) {
|
|
1339
1339
|
case "InternalErrorException":
|
|
1340
1340
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1341
|
-
throw await
|
|
1341
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1342
1342
|
case "InvalidOperationException":
|
|
1343
1343
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
1344
|
-
throw await
|
|
1344
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1345
1345
|
case "InvalidParameterException":
|
|
1346
1346
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1347
|
-
throw await
|
|
1347
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1348
1348
|
case "LimitsExceededException":
|
|
1349
1349
|
case "com.amazonaws.shield#LimitsExceededException":
|
|
1350
|
-
throw await
|
|
1350
|
+
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
1351
1351
|
case "OptimisticLockException":
|
|
1352
1352
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1353
|
-
throw await
|
|
1353
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1354
1354
|
case "ResourceNotFoundException":
|
|
1355
1355
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1356
|
-
throw await
|
|
1356
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
1357
|
default:
|
|
1358
1358
|
const parsedBody = parsedOutput.body;
|
|
1359
1359
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1364,21 +1364,21 @@ const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommandError
|
|
|
1364
1364
|
});
|
|
1365
1365
|
}
|
|
1366
1366
|
};
|
|
1367
|
-
const
|
|
1367
|
+
const de_EnableProactiveEngagementCommand = async (output, context) => {
|
|
1368
1368
|
if (output.statusCode >= 300) {
|
|
1369
|
-
return
|
|
1369
|
+
return de_EnableProactiveEngagementCommandError(output, context);
|
|
1370
1370
|
}
|
|
1371
1371
|
const data = await parseBody(output.body, context);
|
|
1372
1372
|
let contents = {};
|
|
1373
|
-
contents =
|
|
1373
|
+
contents = de_EnableProactiveEngagementResponse(data, context);
|
|
1374
1374
|
const response = {
|
|
1375
1375
|
$metadata: deserializeMetadata(output),
|
|
1376
1376
|
...contents,
|
|
1377
1377
|
};
|
|
1378
1378
|
return Promise.resolve(response);
|
|
1379
1379
|
};
|
|
1380
|
-
exports.
|
|
1381
|
-
const
|
|
1380
|
+
exports.de_EnableProactiveEngagementCommand = de_EnableProactiveEngagementCommand;
|
|
1381
|
+
const de_EnableProactiveEngagementCommandError = async (output, context) => {
|
|
1382
1382
|
const parsedOutput = {
|
|
1383
1383
|
...output,
|
|
1384
1384
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1387,19 +1387,19 @@ const deserializeAws_json1_1EnableProactiveEngagementCommandError = async (outpu
|
|
|
1387
1387
|
switch (errorCode) {
|
|
1388
1388
|
case "InternalErrorException":
|
|
1389
1389
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1390
|
-
throw await
|
|
1390
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1391
1391
|
case "InvalidOperationException":
|
|
1392
1392
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
1393
|
-
throw await
|
|
1393
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1394
1394
|
case "InvalidParameterException":
|
|
1395
1395
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1396
|
-
throw await
|
|
1396
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1397
1397
|
case "OptimisticLockException":
|
|
1398
1398
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1399
|
-
throw await
|
|
1399
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1400
1400
|
case "ResourceNotFoundException":
|
|
1401
1401
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1402
|
-
throw await
|
|
1402
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1403
1403
|
default:
|
|
1404
1404
|
const parsedBody = parsedOutput.body;
|
|
1405
1405
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1410,21 +1410,21 @@ const deserializeAws_json1_1EnableProactiveEngagementCommandError = async (outpu
|
|
|
1410
1410
|
});
|
|
1411
1411
|
}
|
|
1412
1412
|
};
|
|
1413
|
-
const
|
|
1413
|
+
const de_GetSubscriptionStateCommand = async (output, context) => {
|
|
1414
1414
|
if (output.statusCode >= 300) {
|
|
1415
|
-
return
|
|
1415
|
+
return de_GetSubscriptionStateCommandError(output, context);
|
|
1416
1416
|
}
|
|
1417
1417
|
const data = await parseBody(output.body, context);
|
|
1418
1418
|
let contents = {};
|
|
1419
|
-
contents =
|
|
1419
|
+
contents = de_GetSubscriptionStateResponse(data, context);
|
|
1420
1420
|
const response = {
|
|
1421
1421
|
$metadata: deserializeMetadata(output),
|
|
1422
1422
|
...contents,
|
|
1423
1423
|
};
|
|
1424
1424
|
return Promise.resolve(response);
|
|
1425
1425
|
};
|
|
1426
|
-
exports.
|
|
1427
|
-
const
|
|
1426
|
+
exports.de_GetSubscriptionStateCommand = de_GetSubscriptionStateCommand;
|
|
1427
|
+
const de_GetSubscriptionStateCommandError = async (output, context) => {
|
|
1428
1428
|
const parsedOutput = {
|
|
1429
1429
|
...output,
|
|
1430
1430
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1433,7 +1433,7 @@ const deserializeAws_json1_1GetSubscriptionStateCommandError = async (output, co
|
|
|
1433
1433
|
switch (errorCode) {
|
|
1434
1434
|
case "InternalErrorException":
|
|
1435
1435
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1436
|
-
throw await
|
|
1436
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1437
1437
|
default:
|
|
1438
1438
|
const parsedBody = parsedOutput.body;
|
|
1439
1439
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1444,21 +1444,21 @@ const deserializeAws_json1_1GetSubscriptionStateCommandError = async (output, co
|
|
|
1444
1444
|
});
|
|
1445
1445
|
}
|
|
1446
1446
|
};
|
|
1447
|
-
const
|
|
1447
|
+
const de_ListAttacksCommand = async (output, context) => {
|
|
1448
1448
|
if (output.statusCode >= 300) {
|
|
1449
|
-
return
|
|
1449
|
+
return de_ListAttacksCommandError(output, context);
|
|
1450
1450
|
}
|
|
1451
1451
|
const data = await parseBody(output.body, context);
|
|
1452
1452
|
let contents = {};
|
|
1453
|
-
contents =
|
|
1453
|
+
contents = de_ListAttacksResponse(data, context);
|
|
1454
1454
|
const response = {
|
|
1455
1455
|
$metadata: deserializeMetadata(output),
|
|
1456
1456
|
...contents,
|
|
1457
1457
|
};
|
|
1458
1458
|
return Promise.resolve(response);
|
|
1459
1459
|
};
|
|
1460
|
-
exports.
|
|
1461
|
-
const
|
|
1460
|
+
exports.de_ListAttacksCommand = de_ListAttacksCommand;
|
|
1461
|
+
const de_ListAttacksCommandError = async (output, context) => {
|
|
1462
1462
|
const parsedOutput = {
|
|
1463
1463
|
...output,
|
|
1464
1464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1467,13 +1467,13 @@ const deserializeAws_json1_1ListAttacksCommandError = async (output, context) =>
|
|
|
1467
1467
|
switch (errorCode) {
|
|
1468
1468
|
case "InternalErrorException":
|
|
1469
1469
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1470
|
-
throw await
|
|
1470
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1471
1471
|
case "InvalidOperationException":
|
|
1472
1472
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
1473
|
-
throw await
|
|
1473
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1474
1474
|
case "InvalidParameterException":
|
|
1475
1475
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1476
|
-
throw await
|
|
1476
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1477
1477
|
default:
|
|
1478
1478
|
const parsedBody = parsedOutput.body;
|
|
1479
1479
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1484,21 +1484,21 @@ const deserializeAws_json1_1ListAttacksCommandError = async (output, context) =>
|
|
|
1484
1484
|
});
|
|
1485
1485
|
}
|
|
1486
1486
|
};
|
|
1487
|
-
const
|
|
1487
|
+
const de_ListProtectionGroupsCommand = async (output, context) => {
|
|
1488
1488
|
if (output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
1489
|
+
return de_ListProtectionGroupsCommandError(output, context);
|
|
1490
1490
|
}
|
|
1491
1491
|
const data = await parseBody(output.body, context);
|
|
1492
1492
|
let contents = {};
|
|
1493
|
-
contents =
|
|
1493
|
+
contents = de_ListProtectionGroupsResponse(data, context);
|
|
1494
1494
|
const response = {
|
|
1495
1495
|
$metadata: deserializeMetadata(output),
|
|
1496
1496
|
...contents,
|
|
1497
1497
|
};
|
|
1498
1498
|
return Promise.resolve(response);
|
|
1499
1499
|
};
|
|
1500
|
-
exports.
|
|
1501
|
-
const
|
|
1500
|
+
exports.de_ListProtectionGroupsCommand = de_ListProtectionGroupsCommand;
|
|
1501
|
+
const de_ListProtectionGroupsCommandError = async (output, context) => {
|
|
1502
1502
|
const parsedOutput = {
|
|
1503
1503
|
...output,
|
|
1504
1504
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1507,13 +1507,13 @@ const deserializeAws_json1_1ListProtectionGroupsCommandError = async (output, co
|
|
|
1507
1507
|
switch (errorCode) {
|
|
1508
1508
|
case "InternalErrorException":
|
|
1509
1509
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1510
|
-
throw await
|
|
1510
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1511
1511
|
case "InvalidPaginationTokenException":
|
|
1512
1512
|
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1513
|
-
throw await
|
|
1513
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1514
1514
|
case "ResourceNotFoundException":
|
|
1515
1515
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1516
|
-
throw await
|
|
1516
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1517
1517
|
default:
|
|
1518
1518
|
const parsedBody = parsedOutput.body;
|
|
1519
1519
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1524,21 +1524,21 @@ const deserializeAws_json1_1ListProtectionGroupsCommandError = async (output, co
|
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
1526
|
};
|
|
1527
|
-
const
|
|
1527
|
+
const de_ListProtectionsCommand = async (output, context) => {
|
|
1528
1528
|
if (output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
1529
|
+
return de_ListProtectionsCommandError(output, context);
|
|
1530
1530
|
}
|
|
1531
1531
|
const data = await parseBody(output.body, context);
|
|
1532
1532
|
let contents = {};
|
|
1533
|
-
contents =
|
|
1533
|
+
contents = de_ListProtectionsResponse(data, context);
|
|
1534
1534
|
const response = {
|
|
1535
1535
|
$metadata: deserializeMetadata(output),
|
|
1536
1536
|
...contents,
|
|
1537
1537
|
};
|
|
1538
1538
|
return Promise.resolve(response);
|
|
1539
1539
|
};
|
|
1540
|
-
exports.
|
|
1541
|
-
const
|
|
1540
|
+
exports.de_ListProtectionsCommand = de_ListProtectionsCommand;
|
|
1541
|
+
const de_ListProtectionsCommandError = async (output, context) => {
|
|
1542
1542
|
const parsedOutput = {
|
|
1543
1543
|
...output,
|
|
1544
1544
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1547,13 +1547,13 @@ const deserializeAws_json1_1ListProtectionsCommandError = async (output, context
|
|
|
1547
1547
|
switch (errorCode) {
|
|
1548
1548
|
case "InternalErrorException":
|
|
1549
1549
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1550
|
-
throw await
|
|
1550
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1551
1551
|
case "InvalidPaginationTokenException":
|
|
1552
1552
|
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1553
|
-
throw await
|
|
1553
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1554
1554
|
case "ResourceNotFoundException":
|
|
1555
1555
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1556
|
-
throw await
|
|
1556
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1557
1557
|
default:
|
|
1558
1558
|
const parsedBody = parsedOutput.body;
|
|
1559
1559
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1564,21 +1564,21 @@ const deserializeAws_json1_1ListProtectionsCommandError = async (output, context
|
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
1566
|
};
|
|
1567
|
-
const
|
|
1567
|
+
const de_ListResourcesInProtectionGroupCommand = async (output, context) => {
|
|
1568
1568
|
if (output.statusCode >= 300) {
|
|
1569
|
-
return
|
|
1569
|
+
return de_ListResourcesInProtectionGroupCommandError(output, context);
|
|
1570
1570
|
}
|
|
1571
1571
|
const data = await parseBody(output.body, context);
|
|
1572
1572
|
let contents = {};
|
|
1573
|
-
contents =
|
|
1573
|
+
contents = de_ListResourcesInProtectionGroupResponse(data, context);
|
|
1574
1574
|
const response = {
|
|
1575
1575
|
$metadata: deserializeMetadata(output),
|
|
1576
1576
|
...contents,
|
|
1577
1577
|
};
|
|
1578
1578
|
return Promise.resolve(response);
|
|
1579
1579
|
};
|
|
1580
|
-
exports.
|
|
1581
|
-
const
|
|
1580
|
+
exports.de_ListResourcesInProtectionGroupCommand = de_ListResourcesInProtectionGroupCommand;
|
|
1581
|
+
const de_ListResourcesInProtectionGroupCommandError = async (output, context) => {
|
|
1582
1582
|
const parsedOutput = {
|
|
1583
1583
|
...output,
|
|
1584
1584
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1587,13 +1587,13 @@ const deserializeAws_json1_1ListResourcesInProtectionGroupCommandError = async (
|
|
|
1587
1587
|
switch (errorCode) {
|
|
1588
1588
|
case "InternalErrorException":
|
|
1589
1589
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1590
|
-
throw await
|
|
1590
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1591
1591
|
case "InvalidPaginationTokenException":
|
|
1592
1592
|
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1593
|
-
throw await
|
|
1593
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1594
1594
|
case "ResourceNotFoundException":
|
|
1595
1595
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1596
|
-
throw await
|
|
1596
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1597
1597
|
default:
|
|
1598
1598
|
const parsedBody = parsedOutput.body;
|
|
1599
1599
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1604,21 +1604,21 @@ const deserializeAws_json1_1ListResourcesInProtectionGroupCommandError = async (
|
|
|
1604
1604
|
});
|
|
1605
1605
|
}
|
|
1606
1606
|
};
|
|
1607
|
-
const
|
|
1607
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1608
1608
|
if (output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
1609
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1610
1610
|
}
|
|
1611
1611
|
const data = await parseBody(output.body, context);
|
|
1612
1612
|
let contents = {};
|
|
1613
|
-
contents =
|
|
1613
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
1614
1614
|
const response = {
|
|
1615
1615
|
$metadata: deserializeMetadata(output),
|
|
1616
1616
|
...contents,
|
|
1617
1617
|
};
|
|
1618
1618
|
return Promise.resolve(response);
|
|
1619
1619
|
};
|
|
1620
|
-
exports.
|
|
1621
|
-
const
|
|
1620
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1621
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1622
1622
|
const parsedOutput = {
|
|
1623
1623
|
...output,
|
|
1624
1624
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1627,13 +1627,13 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1627
1627
|
switch (errorCode) {
|
|
1628
1628
|
case "InternalErrorException":
|
|
1629
1629
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1630
|
-
throw await
|
|
1630
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1631
1631
|
case "InvalidResourceException":
|
|
1632
1632
|
case "com.amazonaws.shield#InvalidResourceException":
|
|
1633
|
-
throw await
|
|
1633
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1634
1634
|
case "ResourceNotFoundException":
|
|
1635
1635
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1636
|
-
throw await
|
|
1636
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1637
1637
|
default:
|
|
1638
1638
|
const parsedBody = parsedOutput.body;
|
|
1639
1639
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1644,21 +1644,21 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
1646
|
};
|
|
1647
|
-
const
|
|
1647
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1648
1648
|
if (output.statusCode >= 300) {
|
|
1649
|
-
return
|
|
1649
|
+
return de_TagResourceCommandError(output, context);
|
|
1650
1650
|
}
|
|
1651
1651
|
const data = await parseBody(output.body, context);
|
|
1652
1652
|
let contents = {};
|
|
1653
|
-
contents =
|
|
1653
|
+
contents = de_TagResourceResponse(data, context);
|
|
1654
1654
|
const response = {
|
|
1655
1655
|
$metadata: deserializeMetadata(output),
|
|
1656
1656
|
...contents,
|
|
1657
1657
|
};
|
|
1658
1658
|
return Promise.resolve(response);
|
|
1659
1659
|
};
|
|
1660
|
-
exports.
|
|
1661
|
-
const
|
|
1660
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1661
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1662
1662
|
const parsedOutput = {
|
|
1663
1663
|
...output,
|
|
1664
1664
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1667,16 +1667,16 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1667
1667
|
switch (errorCode) {
|
|
1668
1668
|
case "InternalErrorException":
|
|
1669
1669
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1670
|
-
throw await
|
|
1670
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1671
1671
|
case "InvalidParameterException":
|
|
1672
1672
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1673
|
-
throw await
|
|
1673
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1674
1674
|
case "InvalidResourceException":
|
|
1675
1675
|
case "com.amazonaws.shield#InvalidResourceException":
|
|
1676
|
-
throw await
|
|
1676
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1677
1677
|
case "ResourceNotFoundException":
|
|
1678
1678
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1679
|
-
throw await
|
|
1679
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1680
1680
|
default:
|
|
1681
1681
|
const parsedBody = parsedOutput.body;
|
|
1682
1682
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1687,21 +1687,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1687
1687
|
});
|
|
1688
1688
|
}
|
|
1689
1689
|
};
|
|
1690
|
-
const
|
|
1690
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1691
1691
|
if (output.statusCode >= 300) {
|
|
1692
|
-
return
|
|
1692
|
+
return de_UntagResourceCommandError(output, context);
|
|
1693
1693
|
}
|
|
1694
1694
|
const data = await parseBody(output.body, context);
|
|
1695
1695
|
let contents = {};
|
|
1696
|
-
contents =
|
|
1696
|
+
contents = de_UntagResourceResponse(data, context);
|
|
1697
1697
|
const response = {
|
|
1698
1698
|
$metadata: deserializeMetadata(output),
|
|
1699
1699
|
...contents,
|
|
1700
1700
|
};
|
|
1701
1701
|
return Promise.resolve(response);
|
|
1702
1702
|
};
|
|
1703
|
-
exports.
|
|
1704
|
-
const
|
|
1703
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1704
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1705
1705
|
const parsedOutput = {
|
|
1706
1706
|
...output,
|
|
1707
1707
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1710,16 +1710,16 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1710
1710
|
switch (errorCode) {
|
|
1711
1711
|
case "InternalErrorException":
|
|
1712
1712
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1713
|
-
throw await
|
|
1713
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1714
1714
|
case "InvalidParameterException":
|
|
1715
1715
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1716
|
-
throw await
|
|
1716
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1717
1717
|
case "InvalidResourceException":
|
|
1718
1718
|
case "com.amazonaws.shield#InvalidResourceException":
|
|
1719
|
-
throw await
|
|
1719
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1720
1720
|
case "ResourceNotFoundException":
|
|
1721
1721
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1722
|
-
throw await
|
|
1722
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1723
1723
|
default:
|
|
1724
1724
|
const parsedBody = parsedOutput.body;
|
|
1725
1725
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1730,21 +1730,21 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1730
1730
|
});
|
|
1731
1731
|
}
|
|
1732
1732
|
};
|
|
1733
|
-
const
|
|
1733
|
+
const de_UpdateApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
1734
1734
|
if (output.statusCode >= 300) {
|
|
1735
|
-
return
|
|
1735
|
+
return de_UpdateApplicationLayerAutomaticResponseCommandError(output, context);
|
|
1736
1736
|
}
|
|
1737
1737
|
const data = await parseBody(output.body, context);
|
|
1738
1738
|
let contents = {};
|
|
1739
|
-
contents =
|
|
1739
|
+
contents = de_UpdateApplicationLayerAutomaticResponseResponse(data, context);
|
|
1740
1740
|
const response = {
|
|
1741
1741
|
$metadata: deserializeMetadata(output),
|
|
1742
1742
|
...contents,
|
|
1743
1743
|
};
|
|
1744
1744
|
return Promise.resolve(response);
|
|
1745
1745
|
};
|
|
1746
|
-
exports.
|
|
1747
|
-
const
|
|
1746
|
+
exports.de_UpdateApplicationLayerAutomaticResponseCommand = de_UpdateApplicationLayerAutomaticResponseCommand;
|
|
1747
|
+
const de_UpdateApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1748
1748
|
const parsedOutput = {
|
|
1749
1749
|
...output,
|
|
1750
1750
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1753,19 +1753,19 @@ const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommandError
|
|
|
1753
1753
|
switch (errorCode) {
|
|
1754
1754
|
case "InternalErrorException":
|
|
1755
1755
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1756
|
-
throw await
|
|
1756
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1757
1757
|
case "InvalidOperationException":
|
|
1758
1758
|
case "com.amazonaws.shield#InvalidOperationException":
|
|
1759
|
-
throw await
|
|
1759
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1760
1760
|
case "InvalidParameterException":
|
|
1761
1761
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1762
|
-
throw await
|
|
1762
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1763
1763
|
case "OptimisticLockException":
|
|
1764
1764
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1765
|
-
throw await
|
|
1765
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1766
1766
|
case "ResourceNotFoundException":
|
|
1767
1767
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1768
|
-
throw await
|
|
1768
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1769
1769
|
default:
|
|
1770
1770
|
const parsedBody = parsedOutput.body;
|
|
1771
1771
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1776,21 +1776,21 @@ const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommandError
|
|
|
1776
1776
|
});
|
|
1777
1777
|
}
|
|
1778
1778
|
};
|
|
1779
|
-
const
|
|
1779
|
+
const de_UpdateEmergencyContactSettingsCommand = async (output, context) => {
|
|
1780
1780
|
if (output.statusCode >= 300) {
|
|
1781
|
-
return
|
|
1781
|
+
return de_UpdateEmergencyContactSettingsCommandError(output, context);
|
|
1782
1782
|
}
|
|
1783
1783
|
const data = await parseBody(output.body, context);
|
|
1784
1784
|
let contents = {};
|
|
1785
|
-
contents =
|
|
1785
|
+
contents = de_UpdateEmergencyContactSettingsResponse(data, context);
|
|
1786
1786
|
const response = {
|
|
1787
1787
|
$metadata: deserializeMetadata(output),
|
|
1788
1788
|
...contents,
|
|
1789
1789
|
};
|
|
1790
1790
|
return Promise.resolve(response);
|
|
1791
1791
|
};
|
|
1792
|
-
exports.
|
|
1793
|
-
const
|
|
1792
|
+
exports.de_UpdateEmergencyContactSettingsCommand = de_UpdateEmergencyContactSettingsCommand;
|
|
1793
|
+
const de_UpdateEmergencyContactSettingsCommandError = async (output, context) => {
|
|
1794
1794
|
const parsedOutput = {
|
|
1795
1795
|
...output,
|
|
1796
1796
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1799,16 +1799,16 @@ const deserializeAws_json1_1UpdateEmergencyContactSettingsCommandError = async (
|
|
|
1799
1799
|
switch (errorCode) {
|
|
1800
1800
|
case "InternalErrorException":
|
|
1801
1801
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1802
|
-
throw await
|
|
1802
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1803
1803
|
case "InvalidParameterException":
|
|
1804
1804
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1805
|
-
throw await
|
|
1805
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1806
1806
|
case "OptimisticLockException":
|
|
1807
1807
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1808
|
-
throw await
|
|
1808
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1809
1809
|
case "ResourceNotFoundException":
|
|
1810
1810
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1811
|
-
throw await
|
|
1811
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1812
1812
|
default:
|
|
1813
1813
|
const parsedBody = parsedOutput.body;
|
|
1814
1814
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1819,21 +1819,21 @@ const deserializeAws_json1_1UpdateEmergencyContactSettingsCommandError = async (
|
|
|
1819
1819
|
});
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
|
-
const
|
|
1822
|
+
const de_UpdateProtectionGroupCommand = async (output, context) => {
|
|
1823
1823
|
if (output.statusCode >= 300) {
|
|
1824
|
-
return
|
|
1824
|
+
return de_UpdateProtectionGroupCommandError(output, context);
|
|
1825
1825
|
}
|
|
1826
1826
|
const data = await parseBody(output.body, context);
|
|
1827
1827
|
let contents = {};
|
|
1828
|
-
contents =
|
|
1828
|
+
contents = de_UpdateProtectionGroupResponse(data, context);
|
|
1829
1829
|
const response = {
|
|
1830
1830
|
$metadata: deserializeMetadata(output),
|
|
1831
1831
|
...contents,
|
|
1832
1832
|
};
|
|
1833
1833
|
return Promise.resolve(response);
|
|
1834
1834
|
};
|
|
1835
|
-
exports.
|
|
1836
|
-
const
|
|
1835
|
+
exports.de_UpdateProtectionGroupCommand = de_UpdateProtectionGroupCommand;
|
|
1836
|
+
const de_UpdateProtectionGroupCommandError = async (output, context) => {
|
|
1837
1837
|
const parsedOutput = {
|
|
1838
1838
|
...output,
|
|
1839
1839
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1842,16 +1842,16 @@ const deserializeAws_json1_1UpdateProtectionGroupCommandError = async (output, c
|
|
|
1842
1842
|
switch (errorCode) {
|
|
1843
1843
|
case "InternalErrorException":
|
|
1844
1844
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1845
|
-
throw await
|
|
1845
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1846
1846
|
case "InvalidParameterException":
|
|
1847
1847
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1848
|
-
throw await
|
|
1848
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1849
1849
|
case "OptimisticLockException":
|
|
1850
1850
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1851
|
-
throw await
|
|
1851
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1852
1852
|
case "ResourceNotFoundException":
|
|
1853
1853
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1854
|
-
throw await
|
|
1854
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1855
1855
|
default:
|
|
1856
1856
|
const parsedBody = parsedOutput.body;
|
|
1857
1857
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1862,21 +1862,21 @@ const deserializeAws_json1_1UpdateProtectionGroupCommandError = async (output, c
|
|
|
1862
1862
|
});
|
|
1863
1863
|
}
|
|
1864
1864
|
};
|
|
1865
|
-
const
|
|
1865
|
+
const de_UpdateSubscriptionCommand = async (output, context) => {
|
|
1866
1866
|
if (output.statusCode >= 300) {
|
|
1867
|
-
return
|
|
1867
|
+
return de_UpdateSubscriptionCommandError(output, context);
|
|
1868
1868
|
}
|
|
1869
1869
|
const data = await parseBody(output.body, context);
|
|
1870
1870
|
let contents = {};
|
|
1871
|
-
contents =
|
|
1871
|
+
contents = de_UpdateSubscriptionResponse(data, context);
|
|
1872
1872
|
const response = {
|
|
1873
1873
|
$metadata: deserializeMetadata(output),
|
|
1874
1874
|
...contents,
|
|
1875
1875
|
};
|
|
1876
1876
|
return Promise.resolve(response);
|
|
1877
1877
|
};
|
|
1878
|
-
exports.
|
|
1879
|
-
const
|
|
1878
|
+
exports.de_UpdateSubscriptionCommand = de_UpdateSubscriptionCommand;
|
|
1879
|
+
const de_UpdateSubscriptionCommandError = async (output, context) => {
|
|
1880
1880
|
const parsedOutput = {
|
|
1881
1881
|
...output,
|
|
1882
1882
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1885,19 +1885,19 @@ const deserializeAws_json1_1UpdateSubscriptionCommandError = async (output, cont
|
|
|
1885
1885
|
switch (errorCode) {
|
|
1886
1886
|
case "InternalErrorException":
|
|
1887
1887
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1888
|
-
throw await
|
|
1888
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1889
1889
|
case "InvalidParameterException":
|
|
1890
1890
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1891
|
-
throw await
|
|
1891
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1892
1892
|
case "LockedSubscriptionException":
|
|
1893
1893
|
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
1894
|
-
throw await
|
|
1894
|
+
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
1895
1895
|
case "OptimisticLockException":
|
|
1896
1896
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1897
|
-
throw await
|
|
1897
|
+
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1898
1898
|
case "ResourceNotFoundException":
|
|
1899
1899
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1900
|
-
throw await
|
|
1900
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1901
1901
|
default:
|
|
1902
1902
|
const parsedBody = parsedOutput.body;
|
|
1903
1903
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1908,717 +1908,689 @@ const deserializeAws_json1_1UpdateSubscriptionCommandError = async (output, cont
|
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
};
|
|
1911
|
-
const
|
|
1911
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1912
1912
|
const body = parsedOutput.body;
|
|
1913
|
-
const deserialized =
|
|
1913
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1914
1914
|
const exception = new models_0_1.AccessDeniedException({
|
|
1915
1915
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1916
1916
|
...deserialized,
|
|
1917
1917
|
});
|
|
1918
1918
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1919
1919
|
};
|
|
1920
|
-
const
|
|
1920
|
+
const de_AccessDeniedForDependencyExceptionRes = async (parsedOutput, context) => {
|
|
1921
1921
|
const body = parsedOutput.body;
|
|
1922
|
-
const deserialized =
|
|
1922
|
+
const deserialized = de_AccessDeniedForDependencyException(body, context);
|
|
1923
1923
|
const exception = new models_0_1.AccessDeniedForDependencyException({
|
|
1924
1924
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1925
1925
|
...deserialized,
|
|
1926
1926
|
});
|
|
1927
1927
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1928
1928
|
};
|
|
1929
|
-
const
|
|
1929
|
+
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1930
1930
|
const body = parsedOutput.body;
|
|
1931
|
-
const deserialized =
|
|
1931
|
+
const deserialized = de_InternalErrorException(body, context);
|
|
1932
1932
|
const exception = new models_0_1.InternalErrorException({
|
|
1933
1933
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1934
1934
|
...deserialized,
|
|
1935
1935
|
});
|
|
1936
1936
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1937
1937
|
};
|
|
1938
|
-
const
|
|
1938
|
+
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
1939
1939
|
const body = parsedOutput.body;
|
|
1940
|
-
const deserialized =
|
|
1940
|
+
const deserialized = de_InvalidOperationException(body, context);
|
|
1941
1941
|
const exception = new models_0_1.InvalidOperationException({
|
|
1942
1942
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1943
1943
|
...deserialized,
|
|
1944
1944
|
});
|
|
1945
1945
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1946
1946
|
};
|
|
1947
|
-
const
|
|
1947
|
+
const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
1948
1948
|
const body = parsedOutput.body;
|
|
1949
|
-
const deserialized =
|
|
1949
|
+
const deserialized = de_InvalidPaginationTokenException(body, context);
|
|
1950
1950
|
const exception = new models_0_1.InvalidPaginationTokenException({
|
|
1951
1951
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1952
1952
|
...deserialized,
|
|
1953
1953
|
});
|
|
1954
1954
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1955
1955
|
};
|
|
1956
|
-
const
|
|
1956
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1957
1957
|
const body = parsedOutput.body;
|
|
1958
|
-
const deserialized =
|
|
1958
|
+
const deserialized = de_InvalidParameterException(body, context);
|
|
1959
1959
|
const exception = new models_0_1.InvalidParameterException({
|
|
1960
1960
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1961
1961
|
...deserialized,
|
|
1962
1962
|
});
|
|
1963
1963
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1964
1964
|
};
|
|
1965
|
-
const
|
|
1965
|
+
const de_InvalidResourceExceptionRes = async (parsedOutput, context) => {
|
|
1966
1966
|
const body = parsedOutput.body;
|
|
1967
|
-
const deserialized =
|
|
1967
|
+
const deserialized = de_InvalidResourceException(body, context);
|
|
1968
1968
|
const exception = new models_0_1.InvalidResourceException({
|
|
1969
1969
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1970
1970
|
...deserialized,
|
|
1971
1971
|
});
|
|
1972
1972
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1973
1973
|
};
|
|
1974
|
-
const
|
|
1974
|
+
const de_LimitsExceededExceptionRes = async (parsedOutput, context) => {
|
|
1975
1975
|
const body = parsedOutput.body;
|
|
1976
|
-
const deserialized =
|
|
1976
|
+
const deserialized = de_LimitsExceededException(body, context);
|
|
1977
1977
|
const exception = new models_0_1.LimitsExceededException({
|
|
1978
1978
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1979
1979
|
...deserialized,
|
|
1980
1980
|
});
|
|
1981
1981
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1982
1982
|
};
|
|
1983
|
-
const
|
|
1983
|
+
const de_LockedSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
1984
1984
|
const body = parsedOutput.body;
|
|
1985
|
-
const deserialized =
|
|
1985
|
+
const deserialized = de_LockedSubscriptionException(body, context);
|
|
1986
1986
|
const exception = new models_0_1.LockedSubscriptionException({
|
|
1987
1987
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1988
1988
|
...deserialized,
|
|
1989
1989
|
});
|
|
1990
1990
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1991
1991
|
};
|
|
1992
|
-
const
|
|
1992
|
+
const de_NoAssociatedRoleExceptionRes = async (parsedOutput, context) => {
|
|
1993
1993
|
const body = parsedOutput.body;
|
|
1994
|
-
const deserialized =
|
|
1994
|
+
const deserialized = de_NoAssociatedRoleException(body, context);
|
|
1995
1995
|
const exception = new models_0_1.NoAssociatedRoleException({
|
|
1996
1996
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1997
1997
|
...deserialized,
|
|
1998
1998
|
});
|
|
1999
1999
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2000
2000
|
};
|
|
2001
|
-
const
|
|
2001
|
+
const de_OptimisticLockExceptionRes = async (parsedOutput, context) => {
|
|
2002
2002
|
const body = parsedOutput.body;
|
|
2003
|
-
const deserialized =
|
|
2003
|
+
const deserialized = de_OptimisticLockException(body, context);
|
|
2004
2004
|
const exception = new models_0_1.OptimisticLockException({
|
|
2005
2005
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2006
2006
|
...deserialized,
|
|
2007
2007
|
});
|
|
2008
2008
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2009
2009
|
};
|
|
2010
|
-
const
|
|
2010
|
+
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2011
2011
|
const body = parsedOutput.body;
|
|
2012
|
-
const deserialized =
|
|
2012
|
+
const deserialized = de_ResourceAlreadyExistsException(body, context);
|
|
2013
2013
|
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
2014
2014
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2015
2015
|
...deserialized,
|
|
2016
2016
|
});
|
|
2017
2017
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2018
2018
|
};
|
|
2019
|
-
const
|
|
2019
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2020
2020
|
const body = parsedOutput.body;
|
|
2021
|
-
const deserialized =
|
|
2021
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
2022
2022
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2023
2023
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2024
2024
|
...deserialized,
|
|
2025
2025
|
});
|
|
2026
2026
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2027
2027
|
};
|
|
2028
|
-
const
|
|
2028
|
+
const se_AssociateDRTLogBucketRequest = (input, context) => {
|
|
2029
2029
|
return {
|
|
2030
2030
|
...(input.LogBucket != null && { LogBucket: input.LogBucket }),
|
|
2031
2031
|
};
|
|
2032
2032
|
};
|
|
2033
|
-
const
|
|
2033
|
+
const se_AssociateDRTRoleRequest = (input, context) => {
|
|
2034
2034
|
return {
|
|
2035
2035
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
2036
2036
|
};
|
|
2037
2037
|
};
|
|
2038
|
-
const
|
|
2038
|
+
const se_AssociateHealthCheckRequest = (input, context) => {
|
|
2039
2039
|
return {
|
|
2040
2040
|
...(input.HealthCheckArn != null && { HealthCheckArn: input.HealthCheckArn }),
|
|
2041
2041
|
...(input.ProtectionId != null && { ProtectionId: input.ProtectionId }),
|
|
2042
2042
|
};
|
|
2043
2043
|
};
|
|
2044
|
-
const
|
|
2044
|
+
const se_AssociateProactiveEngagementDetailsRequest = (input, context) => {
|
|
2045
2045
|
return {
|
|
2046
2046
|
...(input.EmergencyContactList != null && {
|
|
2047
|
-
EmergencyContactList:
|
|
2047
|
+
EmergencyContactList: se_EmergencyContactList(input.EmergencyContactList, context),
|
|
2048
2048
|
}),
|
|
2049
2049
|
};
|
|
2050
2050
|
};
|
|
2051
|
-
const
|
|
2051
|
+
const se_BlockAction = (input, context) => {
|
|
2052
2052
|
return {};
|
|
2053
2053
|
};
|
|
2054
|
-
const
|
|
2054
|
+
const se_CountAction = (input, context) => {
|
|
2055
2055
|
return {};
|
|
2056
2056
|
};
|
|
2057
|
-
const
|
|
2057
|
+
const se_CreateProtectionGroupRequest = (input, context) => {
|
|
2058
2058
|
return {
|
|
2059
2059
|
...(input.Aggregation != null && { Aggregation: input.Aggregation }),
|
|
2060
|
-
...(input.Members != null && { Members:
|
|
2060
|
+
...(input.Members != null && { Members: se_ProtectionGroupMembers(input.Members, context) }),
|
|
2061
2061
|
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
2062
2062
|
...(input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }),
|
|
2063
2063
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
2064
|
-
...(input.Tags != null && { Tags:
|
|
2064
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2065
2065
|
};
|
|
2066
2066
|
};
|
|
2067
|
-
const
|
|
2067
|
+
const se_CreateProtectionRequest = (input, context) => {
|
|
2068
2068
|
return {
|
|
2069
2069
|
...(input.Name != null && { Name: input.Name }),
|
|
2070
2070
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2071
|
-
...(input.Tags != null && { Tags:
|
|
2071
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2072
2072
|
};
|
|
2073
2073
|
};
|
|
2074
|
-
const
|
|
2074
|
+
const se_CreateSubscriptionRequest = (input, context) => {
|
|
2075
2075
|
return {};
|
|
2076
2076
|
};
|
|
2077
|
-
const
|
|
2077
|
+
const se_DeleteProtectionGroupRequest = (input, context) => {
|
|
2078
2078
|
return {
|
|
2079
2079
|
...(input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }),
|
|
2080
2080
|
};
|
|
2081
2081
|
};
|
|
2082
|
-
const
|
|
2082
|
+
const se_DeleteProtectionRequest = (input, context) => {
|
|
2083
2083
|
return {
|
|
2084
2084
|
...(input.ProtectionId != null && { ProtectionId: input.ProtectionId }),
|
|
2085
2085
|
};
|
|
2086
2086
|
};
|
|
2087
|
-
const
|
|
2087
|
+
const se_DeleteSubscriptionRequest = (input, context) => {
|
|
2088
2088
|
return {};
|
|
2089
2089
|
};
|
|
2090
|
-
const
|
|
2090
|
+
const se_DescribeAttackRequest = (input, context) => {
|
|
2091
2091
|
return {
|
|
2092
2092
|
...(input.AttackId != null && { AttackId: input.AttackId }),
|
|
2093
2093
|
};
|
|
2094
2094
|
};
|
|
2095
|
-
const
|
|
2095
|
+
const se_DescribeAttackStatisticsRequest = (input, context) => {
|
|
2096
2096
|
return {};
|
|
2097
2097
|
};
|
|
2098
|
-
const
|
|
2098
|
+
const se_DescribeDRTAccessRequest = (input, context) => {
|
|
2099
2099
|
return {};
|
|
2100
2100
|
};
|
|
2101
|
-
const
|
|
2101
|
+
const se_DescribeEmergencyContactSettingsRequest = (input, context) => {
|
|
2102
2102
|
return {};
|
|
2103
2103
|
};
|
|
2104
|
-
const
|
|
2104
|
+
const se_DescribeProtectionGroupRequest = (input, context) => {
|
|
2105
2105
|
return {
|
|
2106
2106
|
...(input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }),
|
|
2107
2107
|
};
|
|
2108
2108
|
};
|
|
2109
|
-
const
|
|
2109
|
+
const se_DescribeProtectionRequest = (input, context) => {
|
|
2110
2110
|
return {
|
|
2111
2111
|
...(input.ProtectionId != null && { ProtectionId: input.ProtectionId }),
|
|
2112
2112
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2113
2113
|
};
|
|
2114
2114
|
};
|
|
2115
|
-
const
|
|
2115
|
+
const se_DescribeSubscriptionRequest = (input, context) => {
|
|
2116
2116
|
return {};
|
|
2117
2117
|
};
|
|
2118
|
-
const
|
|
2118
|
+
const se_DisableApplicationLayerAutomaticResponseRequest = (input, context) => {
|
|
2119
2119
|
return {
|
|
2120
2120
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2121
2121
|
};
|
|
2122
2122
|
};
|
|
2123
|
-
const
|
|
2123
|
+
const se_DisableProactiveEngagementRequest = (input, context) => {
|
|
2124
2124
|
return {};
|
|
2125
2125
|
};
|
|
2126
|
-
const
|
|
2126
|
+
const se_DisassociateDRTLogBucketRequest = (input, context) => {
|
|
2127
2127
|
return {
|
|
2128
2128
|
...(input.LogBucket != null && { LogBucket: input.LogBucket }),
|
|
2129
2129
|
};
|
|
2130
2130
|
};
|
|
2131
|
-
const
|
|
2131
|
+
const se_DisassociateDRTRoleRequest = (input, context) => {
|
|
2132
2132
|
return {};
|
|
2133
2133
|
};
|
|
2134
|
-
const
|
|
2134
|
+
const se_DisassociateHealthCheckRequest = (input, context) => {
|
|
2135
2135
|
return {
|
|
2136
2136
|
...(input.HealthCheckArn != null && { HealthCheckArn: input.HealthCheckArn }),
|
|
2137
2137
|
...(input.ProtectionId != null && { ProtectionId: input.ProtectionId }),
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
|
-
const
|
|
2140
|
+
const se_EmergencyContact = (input, context) => {
|
|
2141
2141
|
return {
|
|
2142
2142
|
...(input.ContactNotes != null && { ContactNotes: input.ContactNotes }),
|
|
2143
2143
|
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
2144
2144
|
...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
|
|
2145
2145
|
};
|
|
2146
2146
|
};
|
|
2147
|
-
const
|
|
2147
|
+
const se_EmergencyContactList = (input, context) => {
|
|
2148
2148
|
return input
|
|
2149
2149
|
.filter((e) => e != null)
|
|
2150
2150
|
.map((entry) => {
|
|
2151
|
-
return
|
|
2151
|
+
return se_EmergencyContact(entry, context);
|
|
2152
2152
|
});
|
|
2153
2153
|
};
|
|
2154
|
-
const
|
|
2154
|
+
const se_EnableApplicationLayerAutomaticResponseRequest = (input, context) => {
|
|
2155
2155
|
return {
|
|
2156
|
-
...(input.Action != null && { Action:
|
|
2156
|
+
...(input.Action != null && { Action: se_ResponseAction(input.Action, context) }),
|
|
2157
2157
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2158
2158
|
};
|
|
2159
2159
|
};
|
|
2160
|
-
const
|
|
2160
|
+
const se_EnableProactiveEngagementRequest = (input, context) => {
|
|
2161
2161
|
return {};
|
|
2162
2162
|
};
|
|
2163
|
-
const
|
|
2163
|
+
const se_GetSubscriptionStateRequest = (input, context) => {
|
|
2164
2164
|
return {};
|
|
2165
2165
|
};
|
|
2166
|
-
const
|
|
2166
|
+
const se_InclusionProtectionFilters = (input, context) => {
|
|
2167
2167
|
return {
|
|
2168
|
-
...(input.ProtectionNames != null && {
|
|
2169
|
-
|
|
2170
|
-
}),
|
|
2171
|
-
...(input.ResourceArns != null && {
|
|
2172
|
-
ResourceArns: serializeAws_json1_1ResourceArnFilters(input.ResourceArns, context),
|
|
2173
|
-
}),
|
|
2168
|
+
...(input.ProtectionNames != null && { ProtectionNames: se_ProtectionNameFilters(input.ProtectionNames, context) }),
|
|
2169
|
+
...(input.ResourceArns != null && { ResourceArns: se_ResourceArnFilters(input.ResourceArns, context) }),
|
|
2174
2170
|
...(input.ResourceTypes != null && {
|
|
2175
|
-
ResourceTypes:
|
|
2171
|
+
ResourceTypes: se_ProtectedResourceTypeFilters(input.ResourceTypes, context),
|
|
2176
2172
|
}),
|
|
2177
2173
|
};
|
|
2178
2174
|
};
|
|
2179
|
-
const
|
|
2175
|
+
const se_InclusionProtectionGroupFilters = (input, context) => {
|
|
2180
2176
|
return {
|
|
2181
2177
|
...(input.Aggregations != null && {
|
|
2182
|
-
Aggregations:
|
|
2183
|
-
}),
|
|
2184
|
-
...(input.Patterns != null && {
|
|
2185
|
-
Patterns: serializeAws_json1_1ProtectionGroupPatternFilters(input.Patterns, context),
|
|
2178
|
+
Aggregations: se_ProtectionGroupAggregationFilters(input.Aggregations, context),
|
|
2186
2179
|
}),
|
|
2180
|
+
...(input.Patterns != null && { Patterns: se_ProtectionGroupPatternFilters(input.Patterns, context) }),
|
|
2187
2181
|
...(input.ProtectionGroupIds != null && {
|
|
2188
|
-
ProtectionGroupIds:
|
|
2182
|
+
ProtectionGroupIds: se_ProtectionGroupIdFilters(input.ProtectionGroupIds, context),
|
|
2189
2183
|
}),
|
|
2190
2184
|
...(input.ResourceTypes != null && {
|
|
2191
|
-
ResourceTypes:
|
|
2185
|
+
ResourceTypes: se_ProtectedResourceTypeFilters(input.ResourceTypes, context),
|
|
2192
2186
|
}),
|
|
2193
2187
|
};
|
|
2194
2188
|
};
|
|
2195
|
-
const
|
|
2189
|
+
const se_ListAttacksRequest = (input, context) => {
|
|
2196
2190
|
return {
|
|
2197
|
-
...(input.EndTime != null && { EndTime:
|
|
2191
|
+
...(input.EndTime != null && { EndTime: se_TimeRange(input.EndTime, context) }),
|
|
2198
2192
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2199
2193
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2200
|
-
...(input.ResourceArns != null && {
|
|
2201
|
-
|
|
2202
|
-
}),
|
|
2203
|
-
...(input.StartTime != null && { StartTime: serializeAws_json1_1TimeRange(input.StartTime, context) }),
|
|
2194
|
+
...(input.ResourceArns != null && { ResourceArns: se_ResourceArnFilterList(input.ResourceArns, context) }),
|
|
2195
|
+
...(input.StartTime != null && { StartTime: se_TimeRange(input.StartTime, context) }),
|
|
2204
2196
|
};
|
|
2205
2197
|
};
|
|
2206
|
-
const
|
|
2198
|
+
const se_ListProtectionGroupsRequest = (input, context) => {
|
|
2207
2199
|
return {
|
|
2208
2200
|
...(input.InclusionFilters != null && {
|
|
2209
|
-
InclusionFilters:
|
|
2201
|
+
InclusionFilters: se_InclusionProtectionGroupFilters(input.InclusionFilters, context),
|
|
2210
2202
|
}),
|
|
2211
2203
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2212
2204
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2213
2205
|
};
|
|
2214
2206
|
};
|
|
2215
|
-
const
|
|
2207
|
+
const se_ListProtectionsRequest = (input, context) => {
|
|
2216
2208
|
return {
|
|
2217
2209
|
...(input.InclusionFilters != null && {
|
|
2218
|
-
InclusionFilters:
|
|
2210
|
+
InclusionFilters: se_InclusionProtectionFilters(input.InclusionFilters, context),
|
|
2219
2211
|
}),
|
|
2220
2212
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2221
2213
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2222
2214
|
};
|
|
2223
2215
|
};
|
|
2224
|
-
const
|
|
2216
|
+
const se_ListResourcesInProtectionGroupRequest = (input, context) => {
|
|
2225
2217
|
return {
|
|
2226
2218
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2227
2219
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2228
2220
|
...(input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }),
|
|
2229
2221
|
};
|
|
2230
2222
|
};
|
|
2231
|
-
const
|
|
2223
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2232
2224
|
return {
|
|
2233
2225
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
2234
2226
|
};
|
|
2235
2227
|
};
|
|
2236
|
-
const
|
|
2228
|
+
const se_ProtectedResourceTypeFilters = (input, context) => {
|
|
2237
2229
|
return input
|
|
2238
2230
|
.filter((e) => e != null)
|
|
2239
2231
|
.map((entry) => {
|
|
2240
2232
|
return entry;
|
|
2241
2233
|
});
|
|
2242
2234
|
};
|
|
2243
|
-
const
|
|
2235
|
+
const se_ProtectionGroupAggregationFilters = (input, context) => {
|
|
2244
2236
|
return input
|
|
2245
2237
|
.filter((e) => e != null)
|
|
2246
2238
|
.map((entry) => {
|
|
2247
2239
|
return entry;
|
|
2248
2240
|
});
|
|
2249
2241
|
};
|
|
2250
|
-
const
|
|
2242
|
+
const se_ProtectionGroupIdFilters = (input, context) => {
|
|
2251
2243
|
return input
|
|
2252
2244
|
.filter((e) => e != null)
|
|
2253
2245
|
.map((entry) => {
|
|
2254
2246
|
return entry;
|
|
2255
2247
|
});
|
|
2256
2248
|
};
|
|
2257
|
-
const
|
|
2249
|
+
const se_ProtectionGroupMembers = (input, context) => {
|
|
2258
2250
|
return input
|
|
2259
2251
|
.filter((e) => e != null)
|
|
2260
2252
|
.map((entry) => {
|
|
2261
2253
|
return entry;
|
|
2262
2254
|
});
|
|
2263
2255
|
};
|
|
2264
|
-
const
|
|
2256
|
+
const se_ProtectionGroupPatternFilters = (input, context) => {
|
|
2265
2257
|
return input
|
|
2266
2258
|
.filter((e) => e != null)
|
|
2267
2259
|
.map((entry) => {
|
|
2268
2260
|
return entry;
|
|
2269
2261
|
});
|
|
2270
2262
|
};
|
|
2271
|
-
const
|
|
2263
|
+
const se_ProtectionNameFilters = (input, context) => {
|
|
2272
2264
|
return input
|
|
2273
2265
|
.filter((e) => e != null)
|
|
2274
2266
|
.map((entry) => {
|
|
2275
2267
|
return entry;
|
|
2276
2268
|
});
|
|
2277
2269
|
};
|
|
2278
|
-
const
|
|
2270
|
+
const se_ResourceArnFilterList = (input, context) => {
|
|
2279
2271
|
return input
|
|
2280
2272
|
.filter((e) => e != null)
|
|
2281
2273
|
.map((entry) => {
|
|
2282
2274
|
return entry;
|
|
2283
2275
|
});
|
|
2284
2276
|
};
|
|
2285
|
-
const
|
|
2277
|
+
const se_ResourceArnFilters = (input, context) => {
|
|
2286
2278
|
return input
|
|
2287
2279
|
.filter((e) => e != null)
|
|
2288
2280
|
.map((entry) => {
|
|
2289
2281
|
return entry;
|
|
2290
2282
|
});
|
|
2291
2283
|
};
|
|
2292
|
-
const
|
|
2284
|
+
const se_ResponseAction = (input, context) => {
|
|
2293
2285
|
return {
|
|
2294
|
-
...(input.Block != null && { Block:
|
|
2295
|
-
...(input.Count != null && { Count:
|
|
2286
|
+
...(input.Block != null && { Block: se_BlockAction(input.Block, context) }),
|
|
2287
|
+
...(input.Count != null && { Count: se_CountAction(input.Count, context) }),
|
|
2296
2288
|
};
|
|
2297
2289
|
};
|
|
2298
|
-
const
|
|
2290
|
+
const se_Tag = (input, context) => {
|
|
2299
2291
|
return {
|
|
2300
2292
|
...(input.Key != null && { Key: input.Key }),
|
|
2301
2293
|
...(input.Value != null && { Value: input.Value }),
|
|
2302
2294
|
};
|
|
2303
2295
|
};
|
|
2304
|
-
const
|
|
2296
|
+
const se_TagKeyList = (input, context) => {
|
|
2305
2297
|
return input
|
|
2306
2298
|
.filter((e) => e != null)
|
|
2307
2299
|
.map((entry) => {
|
|
2308
2300
|
return entry;
|
|
2309
2301
|
});
|
|
2310
2302
|
};
|
|
2311
|
-
const
|
|
2303
|
+
const se_TagList = (input, context) => {
|
|
2312
2304
|
return input
|
|
2313
2305
|
.filter((e) => e != null)
|
|
2314
2306
|
.map((entry) => {
|
|
2315
|
-
return
|
|
2307
|
+
return se_Tag(entry, context);
|
|
2316
2308
|
});
|
|
2317
2309
|
};
|
|
2318
|
-
const
|
|
2310
|
+
const se_TagResourceRequest = (input, context) => {
|
|
2319
2311
|
return {
|
|
2320
2312
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
2321
|
-
...(input.Tags != null && { Tags:
|
|
2313
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2322
2314
|
};
|
|
2323
2315
|
};
|
|
2324
|
-
const
|
|
2316
|
+
const se_TimeRange = (input, context) => {
|
|
2325
2317
|
return {
|
|
2326
2318
|
...(input.FromInclusive != null && { FromInclusive: Math.round(input.FromInclusive.getTime() / 1000) }),
|
|
2327
2319
|
...(input.ToExclusive != null && { ToExclusive: Math.round(input.ToExclusive.getTime() / 1000) }),
|
|
2328
2320
|
};
|
|
2329
2321
|
};
|
|
2330
|
-
const
|
|
2322
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
2331
2323
|
return {
|
|
2332
2324
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
2333
|
-
...(input.TagKeys != null && { TagKeys:
|
|
2325
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
2334
2326
|
};
|
|
2335
2327
|
};
|
|
2336
|
-
const
|
|
2328
|
+
const se_UpdateApplicationLayerAutomaticResponseRequest = (input, context) => {
|
|
2337
2329
|
return {
|
|
2338
|
-
...(input.Action != null && { Action:
|
|
2330
|
+
...(input.Action != null && { Action: se_ResponseAction(input.Action, context) }),
|
|
2339
2331
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2340
2332
|
};
|
|
2341
2333
|
};
|
|
2342
|
-
const
|
|
2334
|
+
const se_UpdateEmergencyContactSettingsRequest = (input, context) => {
|
|
2343
2335
|
return {
|
|
2344
2336
|
...(input.EmergencyContactList != null && {
|
|
2345
|
-
EmergencyContactList:
|
|
2337
|
+
EmergencyContactList: se_EmergencyContactList(input.EmergencyContactList, context),
|
|
2346
2338
|
}),
|
|
2347
2339
|
};
|
|
2348
2340
|
};
|
|
2349
|
-
const
|
|
2341
|
+
const se_UpdateProtectionGroupRequest = (input, context) => {
|
|
2350
2342
|
return {
|
|
2351
2343
|
...(input.Aggregation != null && { Aggregation: input.Aggregation }),
|
|
2352
|
-
...(input.Members != null && { Members:
|
|
2344
|
+
...(input.Members != null && { Members: se_ProtectionGroupMembers(input.Members, context) }),
|
|
2353
2345
|
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
2354
2346
|
...(input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }),
|
|
2355
2347
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
2356
2348
|
};
|
|
2357
2349
|
};
|
|
2358
|
-
const
|
|
2350
|
+
const se_UpdateSubscriptionRequest = (input, context) => {
|
|
2359
2351
|
return {
|
|
2360
2352
|
...(input.AutoRenew != null && { AutoRenew: input.AutoRenew }),
|
|
2361
2353
|
};
|
|
2362
2354
|
};
|
|
2363
|
-
const
|
|
2355
|
+
const de_AccessDeniedException = (output, context) => {
|
|
2364
2356
|
return {
|
|
2365
2357
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2366
2358
|
};
|
|
2367
2359
|
};
|
|
2368
|
-
const
|
|
2360
|
+
const de_AccessDeniedForDependencyException = (output, context) => {
|
|
2369
2361
|
return {
|
|
2370
2362
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2371
2363
|
};
|
|
2372
2364
|
};
|
|
2373
|
-
const
|
|
2365
|
+
const de_ApplicationLayerAutomaticResponseConfiguration = (output, context) => {
|
|
2374
2366
|
return {
|
|
2375
|
-
Action: output.Action != null ?
|
|
2367
|
+
Action: output.Action != null ? de_ResponseAction(output.Action, context) : undefined,
|
|
2376
2368
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2377
2369
|
};
|
|
2378
2370
|
};
|
|
2379
|
-
const
|
|
2371
|
+
const de_AssociateDRTLogBucketResponse = (output, context) => {
|
|
2380
2372
|
return {};
|
|
2381
2373
|
};
|
|
2382
|
-
const
|
|
2374
|
+
const de_AssociateDRTRoleResponse = (output, context) => {
|
|
2383
2375
|
return {};
|
|
2384
2376
|
};
|
|
2385
|
-
const
|
|
2377
|
+
const de_AssociateHealthCheckResponse = (output, context) => {
|
|
2386
2378
|
return {};
|
|
2387
2379
|
};
|
|
2388
|
-
const
|
|
2380
|
+
const de_AssociateProactiveEngagementDetailsResponse = (output, context) => {
|
|
2389
2381
|
return {};
|
|
2390
2382
|
};
|
|
2391
|
-
const
|
|
2383
|
+
const de_AttackDetail = (output, context) => {
|
|
2392
2384
|
return {
|
|
2393
|
-
AttackCounters: output.AttackCounters != null
|
|
2394
|
-
? deserializeAws_json1_1SummarizedCounterList(output.AttackCounters, context)
|
|
2395
|
-
: undefined,
|
|
2385
|
+
AttackCounters: output.AttackCounters != null ? de_SummarizedCounterList(output.AttackCounters, context) : undefined,
|
|
2396
2386
|
AttackId: (0, smithy_client_1.expectString)(output.AttackId),
|
|
2397
|
-
AttackProperties: output.AttackProperties != null
|
|
2398
|
-
? deserializeAws_json1_1AttackProperties(output.AttackProperties, context)
|
|
2399
|
-
: undefined,
|
|
2387
|
+
AttackProperties: output.AttackProperties != null ? de_AttackProperties(output.AttackProperties, context) : undefined,
|
|
2400
2388
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2401
|
-
Mitigations: output.Mitigations != null ?
|
|
2389
|
+
Mitigations: output.Mitigations != null ? de_MitigationList(output.Mitigations, context) : undefined,
|
|
2402
2390
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
2403
2391
|
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2404
|
-
SubResources: output.SubResources != null
|
|
2405
|
-
? deserializeAws_json1_1SubResourceSummaryList(output.SubResources, context)
|
|
2406
|
-
: undefined,
|
|
2392
|
+
SubResources: output.SubResources != null ? de_SubResourceSummaryList(output.SubResources, context) : undefined,
|
|
2407
2393
|
};
|
|
2408
2394
|
};
|
|
2409
|
-
const
|
|
2395
|
+
const de_AttackProperties = (output, context) => {
|
|
2410
2396
|
const retVal = (output || [])
|
|
2411
2397
|
.filter((e) => e != null)
|
|
2412
2398
|
.map((entry) => {
|
|
2413
2399
|
if (entry === null) {
|
|
2414
2400
|
return null;
|
|
2415
2401
|
}
|
|
2416
|
-
return
|
|
2402
|
+
return de_AttackProperty(entry, context);
|
|
2417
2403
|
});
|
|
2418
2404
|
return retVal;
|
|
2419
2405
|
};
|
|
2420
|
-
const
|
|
2406
|
+
const de_AttackProperty = (output, context) => {
|
|
2421
2407
|
return {
|
|
2422
2408
|
AttackLayer: (0, smithy_client_1.expectString)(output.AttackLayer),
|
|
2423
2409
|
AttackPropertyIdentifier: (0, smithy_client_1.expectString)(output.AttackPropertyIdentifier),
|
|
2424
|
-
TopContributors: output.TopContributors != null
|
|
2425
|
-
? deserializeAws_json1_1TopContributors(output.TopContributors, context)
|
|
2426
|
-
: undefined,
|
|
2410
|
+
TopContributors: output.TopContributors != null ? de_TopContributors(output.TopContributors, context) : undefined,
|
|
2427
2411
|
Total: (0, smithy_client_1.expectLong)(output.Total),
|
|
2428
2412
|
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
2429
2413
|
};
|
|
2430
2414
|
};
|
|
2431
|
-
const
|
|
2415
|
+
const de_AttackStatisticsDataItem = (output, context) => {
|
|
2432
2416
|
return {
|
|
2433
2417
|
AttackCount: (0, smithy_client_1.expectLong)(output.AttackCount),
|
|
2434
|
-
AttackVolume: output.AttackVolume != null ?
|
|
2418
|
+
AttackVolume: output.AttackVolume != null ? de_AttackVolume(output.AttackVolume, context) : undefined,
|
|
2435
2419
|
};
|
|
2436
2420
|
};
|
|
2437
|
-
const
|
|
2421
|
+
const de_AttackStatisticsDataList = (output, context) => {
|
|
2438
2422
|
const retVal = (output || [])
|
|
2439
2423
|
.filter((e) => e != null)
|
|
2440
2424
|
.map((entry) => {
|
|
2441
2425
|
if (entry === null) {
|
|
2442
2426
|
return null;
|
|
2443
2427
|
}
|
|
2444
|
-
return
|
|
2428
|
+
return de_AttackStatisticsDataItem(entry, context);
|
|
2445
2429
|
});
|
|
2446
2430
|
return retVal;
|
|
2447
2431
|
};
|
|
2448
|
-
const
|
|
2432
|
+
const de_AttackSummaries = (output, context) => {
|
|
2449
2433
|
const retVal = (output || [])
|
|
2450
2434
|
.filter((e) => e != null)
|
|
2451
2435
|
.map((entry) => {
|
|
2452
2436
|
if (entry === null) {
|
|
2453
2437
|
return null;
|
|
2454
2438
|
}
|
|
2455
|
-
return
|
|
2439
|
+
return de_AttackSummary(entry, context);
|
|
2456
2440
|
});
|
|
2457
2441
|
return retVal;
|
|
2458
2442
|
};
|
|
2459
|
-
const
|
|
2443
|
+
const de_AttackSummary = (output, context) => {
|
|
2460
2444
|
return {
|
|
2461
2445
|
AttackId: (0, smithy_client_1.expectString)(output.AttackId),
|
|
2462
|
-
AttackVectors: output.AttackVectors != null
|
|
2463
|
-
? deserializeAws_json1_1AttackVectorDescriptionList(output.AttackVectors, context)
|
|
2464
|
-
: undefined,
|
|
2446
|
+
AttackVectors: output.AttackVectors != null ? de_AttackVectorDescriptionList(output.AttackVectors, context) : undefined,
|
|
2465
2447
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2466
2448
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
2467
2449
|
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2468
2450
|
};
|
|
2469
2451
|
};
|
|
2470
|
-
const
|
|
2452
|
+
const de_AttackVectorDescription = (output, context) => {
|
|
2471
2453
|
return {
|
|
2472
2454
|
VectorType: (0, smithy_client_1.expectString)(output.VectorType),
|
|
2473
2455
|
};
|
|
2474
2456
|
};
|
|
2475
|
-
const
|
|
2457
|
+
const de_AttackVectorDescriptionList = (output, context) => {
|
|
2476
2458
|
const retVal = (output || [])
|
|
2477
2459
|
.filter((e) => e != null)
|
|
2478
2460
|
.map((entry) => {
|
|
2479
2461
|
if (entry === null) {
|
|
2480
2462
|
return null;
|
|
2481
2463
|
}
|
|
2482
|
-
return
|
|
2464
|
+
return de_AttackVectorDescription(entry, context);
|
|
2483
2465
|
});
|
|
2484
2466
|
return retVal;
|
|
2485
2467
|
};
|
|
2486
|
-
const
|
|
2468
|
+
const de_AttackVolume = (output, context) => {
|
|
2487
2469
|
return {
|
|
2488
|
-
BitsPerSecond: output.BitsPerSecond != null
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
PacketsPerSecond: output.PacketsPerSecond != null
|
|
2492
|
-
? deserializeAws_json1_1AttackVolumeStatistics(output.PacketsPerSecond, context)
|
|
2493
|
-
: undefined,
|
|
2494
|
-
RequestsPerSecond: output.RequestsPerSecond != null
|
|
2495
|
-
? deserializeAws_json1_1AttackVolumeStatistics(output.RequestsPerSecond, context)
|
|
2496
|
-
: undefined,
|
|
2470
|
+
BitsPerSecond: output.BitsPerSecond != null ? de_AttackVolumeStatistics(output.BitsPerSecond, context) : undefined,
|
|
2471
|
+
PacketsPerSecond: output.PacketsPerSecond != null ? de_AttackVolumeStatistics(output.PacketsPerSecond, context) : undefined,
|
|
2472
|
+
RequestsPerSecond: output.RequestsPerSecond != null ? de_AttackVolumeStatistics(output.RequestsPerSecond, context) : undefined,
|
|
2497
2473
|
};
|
|
2498
2474
|
};
|
|
2499
|
-
const
|
|
2475
|
+
const de_AttackVolumeStatistics = (output, context) => {
|
|
2500
2476
|
return {
|
|
2501
2477
|
Max: (0, smithy_client_1.limitedParseDouble)(output.Max),
|
|
2502
2478
|
};
|
|
2503
2479
|
};
|
|
2504
|
-
const
|
|
2480
|
+
const de_BlockAction = (output, context) => {
|
|
2505
2481
|
return {};
|
|
2506
2482
|
};
|
|
2507
|
-
const
|
|
2483
|
+
const de_Contributor = (output, context) => {
|
|
2508
2484
|
return {
|
|
2509
2485
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2510
2486
|
Value: (0, smithy_client_1.expectLong)(output.Value),
|
|
2511
2487
|
};
|
|
2512
2488
|
};
|
|
2513
|
-
const
|
|
2489
|
+
const de_CountAction = (output, context) => {
|
|
2514
2490
|
return {};
|
|
2515
2491
|
};
|
|
2516
|
-
const
|
|
2492
|
+
const de_CreateProtectionGroupResponse = (output, context) => {
|
|
2517
2493
|
return {};
|
|
2518
2494
|
};
|
|
2519
|
-
const
|
|
2495
|
+
const de_CreateProtectionResponse = (output, context) => {
|
|
2520
2496
|
return {
|
|
2521
2497
|
ProtectionId: (0, smithy_client_1.expectString)(output.ProtectionId),
|
|
2522
2498
|
};
|
|
2523
2499
|
};
|
|
2524
|
-
const
|
|
2500
|
+
const de_CreateSubscriptionResponse = (output, context) => {
|
|
2525
2501
|
return {};
|
|
2526
2502
|
};
|
|
2527
|
-
const
|
|
2503
|
+
const de_DeleteProtectionGroupResponse = (output, context) => {
|
|
2528
2504
|
return {};
|
|
2529
2505
|
};
|
|
2530
|
-
const
|
|
2506
|
+
const de_DeleteProtectionResponse = (output, context) => {
|
|
2531
2507
|
return {};
|
|
2532
2508
|
};
|
|
2533
|
-
const
|
|
2509
|
+
const de_DeleteSubscriptionResponse = (output, context) => {
|
|
2534
2510
|
return {};
|
|
2535
2511
|
};
|
|
2536
|
-
const
|
|
2512
|
+
const de_DescribeAttackResponse = (output, context) => {
|
|
2537
2513
|
return {
|
|
2538
|
-
Attack: output.Attack != null ?
|
|
2514
|
+
Attack: output.Attack != null ? de_AttackDetail(output.Attack, context) : undefined,
|
|
2539
2515
|
};
|
|
2540
2516
|
};
|
|
2541
|
-
const
|
|
2517
|
+
const de_DescribeAttackStatisticsResponse = (output, context) => {
|
|
2542
2518
|
return {
|
|
2543
|
-
DataItems: output.DataItems != null ?
|
|
2544
|
-
TimeRange: output.TimeRange != null ?
|
|
2519
|
+
DataItems: output.DataItems != null ? de_AttackStatisticsDataList(output.DataItems, context) : undefined,
|
|
2520
|
+
TimeRange: output.TimeRange != null ? de_TimeRange(output.TimeRange, context) : undefined,
|
|
2545
2521
|
};
|
|
2546
2522
|
};
|
|
2547
|
-
const
|
|
2523
|
+
const de_DescribeDRTAccessResponse = (output, context) => {
|
|
2548
2524
|
return {
|
|
2549
|
-
LogBucketList: output.LogBucketList != null ?
|
|
2525
|
+
LogBucketList: output.LogBucketList != null ? de_LogBucketList(output.LogBucketList, context) : undefined,
|
|
2550
2526
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
2551
2527
|
};
|
|
2552
2528
|
};
|
|
2553
|
-
const
|
|
2529
|
+
const de_DescribeEmergencyContactSettingsResponse = (output, context) => {
|
|
2554
2530
|
return {
|
|
2555
|
-
EmergencyContactList: output.EmergencyContactList != null
|
|
2556
|
-
? deserializeAws_json1_1EmergencyContactList(output.EmergencyContactList, context)
|
|
2557
|
-
: undefined,
|
|
2531
|
+
EmergencyContactList: output.EmergencyContactList != null ? de_EmergencyContactList(output.EmergencyContactList, context) : undefined,
|
|
2558
2532
|
};
|
|
2559
2533
|
};
|
|
2560
|
-
const
|
|
2534
|
+
const de_DescribeProtectionGroupResponse = (output, context) => {
|
|
2561
2535
|
return {
|
|
2562
|
-
ProtectionGroup: output.ProtectionGroup != null
|
|
2563
|
-
? deserializeAws_json1_1ProtectionGroup(output.ProtectionGroup, context)
|
|
2564
|
-
: undefined,
|
|
2536
|
+
ProtectionGroup: output.ProtectionGroup != null ? de_ProtectionGroup(output.ProtectionGroup, context) : undefined,
|
|
2565
2537
|
};
|
|
2566
2538
|
};
|
|
2567
|
-
const
|
|
2539
|
+
const de_DescribeProtectionResponse = (output, context) => {
|
|
2568
2540
|
return {
|
|
2569
|
-
Protection: output.Protection != null ?
|
|
2541
|
+
Protection: output.Protection != null ? de_Protection(output.Protection, context) : undefined,
|
|
2570
2542
|
};
|
|
2571
2543
|
};
|
|
2572
|
-
const
|
|
2544
|
+
const de_DescribeSubscriptionResponse = (output, context) => {
|
|
2573
2545
|
return {
|
|
2574
|
-
Subscription: output.Subscription != null ?
|
|
2546
|
+
Subscription: output.Subscription != null ? de_Subscription(output.Subscription, context) : undefined,
|
|
2575
2547
|
};
|
|
2576
2548
|
};
|
|
2577
|
-
const
|
|
2549
|
+
const de_DisableApplicationLayerAutomaticResponseResponse = (output, context) => {
|
|
2578
2550
|
return {};
|
|
2579
2551
|
};
|
|
2580
|
-
const
|
|
2552
|
+
const de_DisableProactiveEngagementResponse = (output, context) => {
|
|
2581
2553
|
return {};
|
|
2582
2554
|
};
|
|
2583
|
-
const
|
|
2555
|
+
const de_DisassociateDRTLogBucketResponse = (output, context) => {
|
|
2584
2556
|
return {};
|
|
2585
2557
|
};
|
|
2586
|
-
const
|
|
2558
|
+
const de_DisassociateDRTRoleResponse = (output, context) => {
|
|
2587
2559
|
return {};
|
|
2588
2560
|
};
|
|
2589
|
-
const
|
|
2561
|
+
const de_DisassociateHealthCheckResponse = (output, context) => {
|
|
2590
2562
|
return {};
|
|
2591
2563
|
};
|
|
2592
|
-
const
|
|
2564
|
+
const de_EmergencyContact = (output, context) => {
|
|
2593
2565
|
return {
|
|
2594
2566
|
ContactNotes: (0, smithy_client_1.expectString)(output.ContactNotes),
|
|
2595
2567
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
2596
2568
|
PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
|
|
2597
2569
|
};
|
|
2598
2570
|
};
|
|
2599
|
-
const
|
|
2571
|
+
const de_EmergencyContactList = (output, context) => {
|
|
2600
2572
|
const retVal = (output || [])
|
|
2601
2573
|
.filter((e) => e != null)
|
|
2602
2574
|
.map((entry) => {
|
|
2603
2575
|
if (entry === null) {
|
|
2604
2576
|
return null;
|
|
2605
2577
|
}
|
|
2606
|
-
return
|
|
2578
|
+
return de_EmergencyContact(entry, context);
|
|
2607
2579
|
});
|
|
2608
2580
|
return retVal;
|
|
2609
2581
|
};
|
|
2610
|
-
const
|
|
2582
|
+
const de_EnableApplicationLayerAutomaticResponseResponse = (output, context) => {
|
|
2611
2583
|
return {};
|
|
2612
2584
|
};
|
|
2613
|
-
const
|
|
2585
|
+
const de_EnableProactiveEngagementResponse = (output, context) => {
|
|
2614
2586
|
return {};
|
|
2615
2587
|
};
|
|
2616
|
-
const
|
|
2588
|
+
const de_GetSubscriptionStateResponse = (output, context) => {
|
|
2617
2589
|
return {
|
|
2618
2590
|
SubscriptionState: (0, smithy_client_1.expectString)(output.SubscriptionState),
|
|
2619
2591
|
};
|
|
2620
2592
|
};
|
|
2621
|
-
const
|
|
2593
|
+
const de_HealthCheckIds = (output, context) => {
|
|
2622
2594
|
const retVal = (output || [])
|
|
2623
2595
|
.filter((e) => e != null)
|
|
2624
2596
|
.map((entry) => {
|
|
@@ -2629,96 +2601,92 @@ const deserializeAws_json1_1HealthCheckIds = (output, context) => {
|
|
|
2629
2601
|
});
|
|
2630
2602
|
return retVal;
|
|
2631
2603
|
};
|
|
2632
|
-
const
|
|
2604
|
+
const de_InternalErrorException = (output, context) => {
|
|
2633
2605
|
return {
|
|
2634
2606
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2635
2607
|
};
|
|
2636
2608
|
};
|
|
2637
|
-
const
|
|
2609
|
+
const de_InvalidOperationException = (output, context) => {
|
|
2638
2610
|
return {
|
|
2639
2611
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2640
2612
|
};
|
|
2641
2613
|
};
|
|
2642
|
-
const
|
|
2614
|
+
const de_InvalidPaginationTokenException = (output, context) => {
|
|
2643
2615
|
return {
|
|
2644
2616
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2645
2617
|
};
|
|
2646
2618
|
};
|
|
2647
|
-
const
|
|
2619
|
+
const de_InvalidParameterException = (output, context) => {
|
|
2648
2620
|
return {
|
|
2649
|
-
fields: output.fields != null ?
|
|
2621
|
+
fields: output.fields != null ? de_ValidationExceptionFieldList(output.fields, context) : undefined,
|
|
2650
2622
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2651
2623
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2652
2624
|
};
|
|
2653
2625
|
};
|
|
2654
|
-
const
|
|
2626
|
+
const de_InvalidResourceException = (output, context) => {
|
|
2655
2627
|
return {
|
|
2656
2628
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2657
2629
|
};
|
|
2658
2630
|
};
|
|
2659
|
-
const
|
|
2631
|
+
const de_Limit = (output, context) => {
|
|
2660
2632
|
return {
|
|
2661
2633
|
Max: (0, smithy_client_1.expectLong)(output.Max),
|
|
2662
2634
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2663
2635
|
};
|
|
2664
2636
|
};
|
|
2665
|
-
const
|
|
2637
|
+
const de_Limits = (output, context) => {
|
|
2666
2638
|
const retVal = (output || [])
|
|
2667
2639
|
.filter((e) => e != null)
|
|
2668
2640
|
.map((entry) => {
|
|
2669
2641
|
if (entry === null) {
|
|
2670
2642
|
return null;
|
|
2671
2643
|
}
|
|
2672
|
-
return
|
|
2644
|
+
return de_Limit(entry, context);
|
|
2673
2645
|
});
|
|
2674
2646
|
return retVal;
|
|
2675
2647
|
};
|
|
2676
|
-
const
|
|
2648
|
+
const de_LimitsExceededException = (output, context) => {
|
|
2677
2649
|
return {
|
|
2678
2650
|
Limit: (0, smithy_client_1.expectLong)(output.Limit),
|
|
2679
2651
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2680
2652
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2681
2653
|
};
|
|
2682
2654
|
};
|
|
2683
|
-
const
|
|
2655
|
+
const de_ListAttacksResponse = (output, context) => {
|
|
2684
2656
|
return {
|
|
2685
|
-
AttackSummaries: output.AttackSummaries != null
|
|
2686
|
-
? deserializeAws_json1_1AttackSummaries(output.AttackSummaries, context)
|
|
2687
|
-
: undefined,
|
|
2657
|
+
AttackSummaries: output.AttackSummaries != null ? de_AttackSummaries(output.AttackSummaries, context) : undefined,
|
|
2688
2658
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2689
2659
|
};
|
|
2690
2660
|
};
|
|
2691
|
-
const
|
|
2661
|
+
const de_ListProtectionGroupsResponse = (output, context) => {
|
|
2692
2662
|
return {
|
|
2693
2663
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2694
|
-
ProtectionGroups: output.ProtectionGroups != null
|
|
2695
|
-
? deserializeAws_json1_1ProtectionGroups(output.ProtectionGroups, context)
|
|
2696
|
-
: undefined,
|
|
2664
|
+
ProtectionGroups: output.ProtectionGroups != null ? de_ProtectionGroups(output.ProtectionGroups, context) : undefined,
|
|
2697
2665
|
};
|
|
2698
2666
|
};
|
|
2699
|
-
const
|
|
2667
|
+
const de_ListProtectionsResponse = (output, context) => {
|
|
2700
2668
|
return {
|
|
2701
2669
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2702
|
-
Protections: output.Protections != null ?
|
|
2670
|
+
Protections: output.Protections != null ? de_Protections(output.Protections, context) : undefined,
|
|
2703
2671
|
};
|
|
2704
2672
|
};
|
|
2705
|
-
const
|
|
2673
|
+
const de_ListResourcesInProtectionGroupResponse = (output, context) => {
|
|
2706
2674
|
return {
|
|
2707
2675
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2708
|
-
ResourceArns: output.ResourceArns != null ?
|
|
2676
|
+
ResourceArns: output.ResourceArns != null ? de_ResourceArnList(output.ResourceArns, context) : undefined,
|
|
2709
2677
|
};
|
|
2710
2678
|
};
|
|
2711
|
-
const
|
|
2679
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2712
2680
|
return {
|
|
2713
|
-
Tags: output.Tags != null ?
|
|
2681
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2714
2682
|
};
|
|
2715
2683
|
};
|
|
2716
|
-
const
|
|
2684
|
+
const de_LockedSubscriptionException = (output, context) => {
|
|
2717
2685
|
return {
|
|
2718
2686
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2719
2687
|
};
|
|
2720
2688
|
};
|
|
2721
|
-
const
|
|
2689
|
+
const de_LogBucketList = (output, context) => {
|
|
2722
2690
|
const retVal = (output || [])
|
|
2723
2691
|
.filter((e) => e != null)
|
|
2724
2692
|
.map((entry) => {
|
|
@@ -2729,68 +2697,68 @@ const deserializeAws_json1_1LogBucketList = (output, context) => {
|
|
|
2729
2697
|
});
|
|
2730
2698
|
return retVal;
|
|
2731
2699
|
};
|
|
2732
|
-
const
|
|
2700
|
+
const de_Mitigation = (output, context) => {
|
|
2733
2701
|
return {
|
|
2734
2702
|
MitigationName: (0, smithy_client_1.expectString)(output.MitigationName),
|
|
2735
2703
|
};
|
|
2736
2704
|
};
|
|
2737
|
-
const
|
|
2705
|
+
const de_MitigationList = (output, context) => {
|
|
2738
2706
|
const retVal = (output || [])
|
|
2739
2707
|
.filter((e) => e != null)
|
|
2740
2708
|
.map((entry) => {
|
|
2741
2709
|
if (entry === null) {
|
|
2742
2710
|
return null;
|
|
2743
2711
|
}
|
|
2744
|
-
return
|
|
2712
|
+
return de_Mitigation(entry, context);
|
|
2745
2713
|
});
|
|
2746
2714
|
return retVal;
|
|
2747
2715
|
};
|
|
2748
|
-
const
|
|
2716
|
+
const de_NoAssociatedRoleException = (output, context) => {
|
|
2749
2717
|
return {
|
|
2750
2718
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2751
2719
|
};
|
|
2752
2720
|
};
|
|
2753
|
-
const
|
|
2721
|
+
const de_OptimisticLockException = (output, context) => {
|
|
2754
2722
|
return {
|
|
2755
2723
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2756
2724
|
};
|
|
2757
2725
|
};
|
|
2758
|
-
const
|
|
2726
|
+
const de_Protection = (output, context) => {
|
|
2759
2727
|
return {
|
|
2760
2728
|
ApplicationLayerAutomaticResponseConfiguration: output.ApplicationLayerAutomaticResponseConfiguration != null
|
|
2761
|
-
?
|
|
2729
|
+
? de_ApplicationLayerAutomaticResponseConfiguration(output.ApplicationLayerAutomaticResponseConfiguration, context)
|
|
2762
2730
|
: undefined,
|
|
2763
|
-
HealthCheckIds: output.HealthCheckIds != null ?
|
|
2731
|
+
HealthCheckIds: output.HealthCheckIds != null ? de_HealthCheckIds(output.HealthCheckIds, context) : undefined,
|
|
2764
2732
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2765
2733
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2766
2734
|
ProtectionArn: (0, smithy_client_1.expectString)(output.ProtectionArn),
|
|
2767
2735
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
2768
2736
|
};
|
|
2769
2737
|
};
|
|
2770
|
-
const
|
|
2738
|
+
const de_ProtectionGroup = (output, context) => {
|
|
2771
2739
|
return {
|
|
2772
2740
|
Aggregation: (0, smithy_client_1.expectString)(output.Aggregation),
|
|
2773
|
-
Members: output.Members != null ?
|
|
2741
|
+
Members: output.Members != null ? de_ProtectionGroupMembers(output.Members, context) : undefined,
|
|
2774
2742
|
Pattern: (0, smithy_client_1.expectString)(output.Pattern),
|
|
2775
2743
|
ProtectionGroupArn: (0, smithy_client_1.expectString)(output.ProtectionGroupArn),
|
|
2776
2744
|
ProtectionGroupId: (0, smithy_client_1.expectString)(output.ProtectionGroupId),
|
|
2777
2745
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
2778
2746
|
};
|
|
2779
2747
|
};
|
|
2780
|
-
const
|
|
2748
|
+
const de_ProtectionGroupArbitraryPatternLimits = (output, context) => {
|
|
2781
2749
|
return {
|
|
2782
2750
|
MaxMembers: (0, smithy_client_1.expectLong)(output.MaxMembers),
|
|
2783
2751
|
};
|
|
2784
2752
|
};
|
|
2785
|
-
const
|
|
2753
|
+
const de_ProtectionGroupLimits = (output, context) => {
|
|
2786
2754
|
return {
|
|
2787
2755
|
MaxProtectionGroups: (0, smithy_client_1.expectLong)(output.MaxProtectionGroups),
|
|
2788
2756
|
PatternTypeLimits: output.PatternTypeLimits != null
|
|
2789
|
-
?
|
|
2757
|
+
? de_ProtectionGroupPatternTypeLimits(output.PatternTypeLimits, context)
|
|
2790
2758
|
: undefined,
|
|
2791
2759
|
};
|
|
2792
2760
|
};
|
|
2793
|
-
const
|
|
2761
|
+
const de_ProtectionGroupMembers = (output, context) => {
|
|
2794
2762
|
const retVal = (output || [])
|
|
2795
2763
|
.filter((e) => e != null)
|
|
2796
2764
|
.map((entry) => {
|
|
@@ -2801,49 +2769,47 @@ const deserializeAws_json1_1ProtectionGroupMembers = (output, context) => {
|
|
|
2801
2769
|
});
|
|
2802
2770
|
return retVal;
|
|
2803
2771
|
};
|
|
2804
|
-
const
|
|
2772
|
+
const de_ProtectionGroupPatternTypeLimits = (output, context) => {
|
|
2805
2773
|
return {
|
|
2806
2774
|
ArbitraryPatternLimits: output.ArbitraryPatternLimits != null
|
|
2807
|
-
?
|
|
2775
|
+
? de_ProtectionGroupArbitraryPatternLimits(output.ArbitraryPatternLimits, context)
|
|
2808
2776
|
: undefined,
|
|
2809
2777
|
};
|
|
2810
2778
|
};
|
|
2811
|
-
const
|
|
2779
|
+
const de_ProtectionGroups = (output, context) => {
|
|
2812
2780
|
const retVal = (output || [])
|
|
2813
2781
|
.filter((e) => e != null)
|
|
2814
2782
|
.map((entry) => {
|
|
2815
2783
|
if (entry === null) {
|
|
2816
2784
|
return null;
|
|
2817
2785
|
}
|
|
2818
|
-
return
|
|
2786
|
+
return de_ProtectionGroup(entry, context);
|
|
2819
2787
|
});
|
|
2820
2788
|
return retVal;
|
|
2821
2789
|
};
|
|
2822
|
-
const
|
|
2790
|
+
const de_ProtectionLimits = (output, context) => {
|
|
2823
2791
|
return {
|
|
2824
|
-
ProtectedResourceTypeLimits: output.ProtectedResourceTypeLimits != null
|
|
2825
|
-
? deserializeAws_json1_1Limits(output.ProtectedResourceTypeLimits, context)
|
|
2826
|
-
: undefined,
|
|
2792
|
+
ProtectedResourceTypeLimits: output.ProtectedResourceTypeLimits != null ? de_Limits(output.ProtectedResourceTypeLimits, context) : undefined,
|
|
2827
2793
|
};
|
|
2828
2794
|
};
|
|
2829
|
-
const
|
|
2795
|
+
const de_Protections = (output, context) => {
|
|
2830
2796
|
const retVal = (output || [])
|
|
2831
2797
|
.filter((e) => e != null)
|
|
2832
2798
|
.map((entry) => {
|
|
2833
2799
|
if (entry === null) {
|
|
2834
2800
|
return null;
|
|
2835
2801
|
}
|
|
2836
|
-
return
|
|
2802
|
+
return de_Protection(entry, context);
|
|
2837
2803
|
});
|
|
2838
2804
|
return retVal;
|
|
2839
2805
|
};
|
|
2840
|
-
const
|
|
2806
|
+
const de_ResourceAlreadyExistsException = (output, context) => {
|
|
2841
2807
|
return {
|
|
2842
2808
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2843
2809
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2844
2810
|
};
|
|
2845
2811
|
};
|
|
2846
|
-
const
|
|
2812
|
+
const de_ResourceArnList = (output, context) => {
|
|
2847
2813
|
const retVal = (output || [])
|
|
2848
2814
|
.filter((e) => e != null)
|
|
2849
2815
|
.map((entry) => {
|
|
@@ -2854,83 +2820,75 @@ const deserializeAws_json1_1ResourceArnList = (output, context) => {
|
|
|
2854
2820
|
});
|
|
2855
2821
|
return retVal;
|
|
2856
2822
|
};
|
|
2857
|
-
const
|
|
2823
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2858
2824
|
return {
|
|
2859
2825
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2860
2826
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2861
2827
|
};
|
|
2862
2828
|
};
|
|
2863
|
-
const
|
|
2829
|
+
const de_ResponseAction = (output, context) => {
|
|
2864
2830
|
return {
|
|
2865
|
-
Block: output.Block != null ?
|
|
2866
|
-
Count: output.Count != null ?
|
|
2831
|
+
Block: output.Block != null ? de_BlockAction(output.Block, context) : undefined,
|
|
2832
|
+
Count: output.Count != null ? de_CountAction(output.Count, context) : undefined,
|
|
2867
2833
|
};
|
|
2868
2834
|
};
|
|
2869
|
-
const
|
|
2835
|
+
const de_SubResourceSummary = (output, context) => {
|
|
2870
2836
|
return {
|
|
2871
|
-
AttackVectors: output.AttackVectors != null
|
|
2872
|
-
|
|
2873
|
-
: undefined,
|
|
2874
|
-
Counters: output.Counters != null ? deserializeAws_json1_1SummarizedCounterList(output.Counters, context) : undefined,
|
|
2837
|
+
AttackVectors: output.AttackVectors != null ? de_SummarizedAttackVectorList(output.AttackVectors, context) : undefined,
|
|
2838
|
+
Counters: output.Counters != null ? de_SummarizedCounterList(output.Counters, context) : undefined,
|
|
2875
2839
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2876
2840
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2877
2841
|
};
|
|
2878
2842
|
};
|
|
2879
|
-
const
|
|
2843
|
+
const de_SubResourceSummaryList = (output, context) => {
|
|
2880
2844
|
const retVal = (output || [])
|
|
2881
2845
|
.filter((e) => e != null)
|
|
2882
2846
|
.map((entry) => {
|
|
2883
2847
|
if (entry === null) {
|
|
2884
2848
|
return null;
|
|
2885
2849
|
}
|
|
2886
|
-
return
|
|
2850
|
+
return de_SubResourceSummary(entry, context);
|
|
2887
2851
|
});
|
|
2888
2852
|
return retVal;
|
|
2889
2853
|
};
|
|
2890
|
-
const
|
|
2854
|
+
const de_Subscription = (output, context) => {
|
|
2891
2855
|
return {
|
|
2892
2856
|
AutoRenew: (0, smithy_client_1.expectString)(output.AutoRenew),
|
|
2893
2857
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2894
|
-
Limits: output.Limits != null ?
|
|
2858
|
+
Limits: output.Limits != null ? de_Limits(output.Limits, context) : undefined,
|
|
2895
2859
|
ProactiveEngagementStatus: (0, smithy_client_1.expectString)(output.ProactiveEngagementStatus),
|
|
2896
2860
|
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2897
2861
|
SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
|
|
2898
|
-
SubscriptionLimits: output.SubscriptionLimits != null
|
|
2899
|
-
? deserializeAws_json1_1SubscriptionLimits(output.SubscriptionLimits, context)
|
|
2900
|
-
: undefined,
|
|
2862
|
+
SubscriptionLimits: output.SubscriptionLimits != null ? de_SubscriptionLimits(output.SubscriptionLimits, context) : undefined,
|
|
2901
2863
|
TimeCommitmentInSeconds: (0, smithy_client_1.expectLong)(output.TimeCommitmentInSeconds),
|
|
2902
2864
|
};
|
|
2903
2865
|
};
|
|
2904
|
-
const
|
|
2866
|
+
const de_SubscriptionLimits = (output, context) => {
|
|
2905
2867
|
return {
|
|
2906
2868
|
ProtectionGroupLimits: output.ProtectionGroupLimits != null
|
|
2907
|
-
?
|
|
2908
|
-
: undefined,
|
|
2909
|
-
ProtectionLimits: output.ProtectionLimits != null
|
|
2910
|
-
? deserializeAws_json1_1ProtectionLimits(output.ProtectionLimits, context)
|
|
2869
|
+
? de_ProtectionGroupLimits(output.ProtectionGroupLimits, context)
|
|
2911
2870
|
: undefined,
|
|
2871
|
+
ProtectionLimits: output.ProtectionLimits != null ? de_ProtectionLimits(output.ProtectionLimits, context) : undefined,
|
|
2912
2872
|
};
|
|
2913
2873
|
};
|
|
2914
|
-
const
|
|
2874
|
+
const de_SummarizedAttackVector = (output, context) => {
|
|
2915
2875
|
return {
|
|
2916
|
-
VectorCounters: output.VectorCounters != null
|
|
2917
|
-
? deserializeAws_json1_1SummarizedCounterList(output.VectorCounters, context)
|
|
2918
|
-
: undefined,
|
|
2876
|
+
VectorCounters: output.VectorCounters != null ? de_SummarizedCounterList(output.VectorCounters, context) : undefined,
|
|
2919
2877
|
VectorType: (0, smithy_client_1.expectString)(output.VectorType),
|
|
2920
2878
|
};
|
|
2921
2879
|
};
|
|
2922
|
-
const
|
|
2880
|
+
const de_SummarizedAttackVectorList = (output, context) => {
|
|
2923
2881
|
const retVal = (output || [])
|
|
2924
2882
|
.filter((e) => e != null)
|
|
2925
2883
|
.map((entry) => {
|
|
2926
2884
|
if (entry === null) {
|
|
2927
2885
|
return null;
|
|
2928
2886
|
}
|
|
2929
|
-
return
|
|
2887
|
+
return de_SummarizedAttackVector(entry, context);
|
|
2930
2888
|
});
|
|
2931
2889
|
return retVal;
|
|
2932
2890
|
};
|
|
2933
|
-
const
|
|
2891
|
+
const de_SummarizedCounter = (output, context) => {
|
|
2934
2892
|
return {
|
|
2935
2893
|
Average: (0, smithy_client_1.limitedParseDouble)(output.Average),
|
|
2936
2894
|
Max: (0, smithy_client_1.limitedParseDouble)(output.Max),
|
|
@@ -2940,38 +2898,38 @@ const deserializeAws_json1_1SummarizedCounter = (output, context) => {
|
|
|
2940
2898
|
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
2941
2899
|
};
|
|
2942
2900
|
};
|
|
2943
|
-
const
|
|
2901
|
+
const de_SummarizedCounterList = (output, context) => {
|
|
2944
2902
|
const retVal = (output || [])
|
|
2945
2903
|
.filter((e) => e != null)
|
|
2946
2904
|
.map((entry) => {
|
|
2947
2905
|
if (entry === null) {
|
|
2948
2906
|
return null;
|
|
2949
2907
|
}
|
|
2950
|
-
return
|
|
2908
|
+
return de_SummarizedCounter(entry, context);
|
|
2951
2909
|
});
|
|
2952
2910
|
return retVal;
|
|
2953
2911
|
};
|
|
2954
|
-
const
|
|
2912
|
+
const de_Tag = (output, context) => {
|
|
2955
2913
|
return {
|
|
2956
2914
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2957
2915
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2958
2916
|
};
|
|
2959
2917
|
};
|
|
2960
|
-
const
|
|
2918
|
+
const de_TagList = (output, context) => {
|
|
2961
2919
|
const retVal = (output || [])
|
|
2962
2920
|
.filter((e) => e != null)
|
|
2963
2921
|
.map((entry) => {
|
|
2964
2922
|
if (entry === null) {
|
|
2965
2923
|
return null;
|
|
2966
2924
|
}
|
|
2967
|
-
return
|
|
2925
|
+
return de_Tag(entry, context);
|
|
2968
2926
|
});
|
|
2969
2927
|
return retVal;
|
|
2970
2928
|
};
|
|
2971
|
-
const
|
|
2929
|
+
const de_TagResourceResponse = (output, context) => {
|
|
2972
2930
|
return {};
|
|
2973
2931
|
};
|
|
2974
|
-
const
|
|
2932
|
+
const de_TimeRange = (output, context) => {
|
|
2975
2933
|
return {
|
|
2976
2934
|
FromInclusive: output.FromInclusive != null
|
|
2977
2935
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FromInclusive)))
|
|
@@ -2981,46 +2939,46 @@ const deserializeAws_json1_1TimeRange = (output, context) => {
|
|
|
2981
2939
|
: undefined,
|
|
2982
2940
|
};
|
|
2983
2941
|
};
|
|
2984
|
-
const
|
|
2942
|
+
const de_TopContributors = (output, context) => {
|
|
2985
2943
|
const retVal = (output || [])
|
|
2986
2944
|
.filter((e) => e != null)
|
|
2987
2945
|
.map((entry) => {
|
|
2988
2946
|
if (entry === null) {
|
|
2989
2947
|
return null;
|
|
2990
2948
|
}
|
|
2991
|
-
return
|
|
2949
|
+
return de_Contributor(entry, context);
|
|
2992
2950
|
});
|
|
2993
2951
|
return retVal;
|
|
2994
2952
|
};
|
|
2995
|
-
const
|
|
2953
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
2996
2954
|
return {};
|
|
2997
2955
|
};
|
|
2998
|
-
const
|
|
2956
|
+
const de_UpdateApplicationLayerAutomaticResponseResponse = (output, context) => {
|
|
2999
2957
|
return {};
|
|
3000
2958
|
};
|
|
3001
|
-
const
|
|
2959
|
+
const de_UpdateEmergencyContactSettingsResponse = (output, context) => {
|
|
3002
2960
|
return {};
|
|
3003
2961
|
};
|
|
3004
|
-
const
|
|
2962
|
+
const de_UpdateProtectionGroupResponse = (output, context) => {
|
|
3005
2963
|
return {};
|
|
3006
2964
|
};
|
|
3007
|
-
const
|
|
2965
|
+
const de_UpdateSubscriptionResponse = (output, context) => {
|
|
3008
2966
|
return {};
|
|
3009
2967
|
};
|
|
3010
|
-
const
|
|
2968
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
3011
2969
|
return {
|
|
3012
2970
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3013
2971
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3014
2972
|
};
|
|
3015
2973
|
};
|
|
3016
|
-
const
|
|
2974
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3017
2975
|
const retVal = (output || [])
|
|
3018
2976
|
.filter((e) => e != null)
|
|
3019
2977
|
.map((entry) => {
|
|
3020
2978
|
if (entry === null) {
|
|
3021
2979
|
return null;
|
|
3022
2980
|
}
|
|
3023
|
-
return
|
|
2981
|
+
return de_ValidationExceptionField(entry, context);
|
|
3024
2982
|
});
|
|
3025
2983
|
return retVal;
|
|
3026
2984
|
};
|