@aws-sdk/client-security-ir 3.893.0 → 3.894.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/index.js +2114 -10
- package/package.json +6 -6
- package/dist-cjs/SecurityIR.js +0 -55
- package/dist-cjs/SecurityIRClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/BatchGetMemberAccountDetailsCommand.js +0 -26
- package/dist-cjs/commands/CancelMembershipCommand.js +0 -26
- package/dist-cjs/commands/CloseCaseCommand.js +0 -26
- package/dist-cjs/commands/CreateCaseCommand.js +0 -27
- package/dist-cjs/commands/CreateCaseCommentCommand.js +0 -27
- package/dist-cjs/commands/CreateMembershipCommand.js +0 -27
- package/dist-cjs/commands/GetCaseAttachmentDownloadUrlCommand.js +0 -27
- package/dist-cjs/commands/GetCaseAttachmentUploadUrlCommand.js +0 -27
- package/dist-cjs/commands/GetCaseCommand.js +0 -27
- package/dist-cjs/commands/GetMembershipCommand.js +0 -27
- package/dist-cjs/commands/ListCaseEditsCommand.js +0 -26
- package/dist-cjs/commands/ListCasesCommand.js +0 -27
- package/dist-cjs/commands/ListCommentsCommand.js +0 -27
- package/dist-cjs/commands/ListMembershipsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateCaseCommand.js +0 -27
- package/dist-cjs/commands/UpdateCaseCommentCommand.js +0 -27
- package/dist-cjs/commands/UpdateCaseStatusCommand.js +0 -26
- package/dist-cjs/commands/UpdateMembershipCommand.js +0 -27
- package/dist-cjs/commands/UpdateResolverTypeCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -25
- package/dist-cjs/endpoint/EndpointParameters.js +0 -15
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/SecurityIRServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -390
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListCaseEditsPaginator.js +0 -7
- package/dist-cjs/pagination/ListCasesPaginator.js +0 -7
- package/dist-cjs/pagination/ListCommentsPaginator.js +0 -7
- package/dist-cjs/pagination/ListMembershipsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -8
- package/dist-cjs/protocols/Aws_restJson1.js +0 -960
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,960 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateResolverTypeCommand = exports.de_UpdateMembershipCommand = exports.de_UpdateCaseStatusCommand = exports.de_UpdateCaseCommentCommand = exports.de_UpdateCaseCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMembershipsCommand = exports.de_ListCommentsCommand = exports.de_ListCasesCommand = exports.de_ListCaseEditsCommand = exports.de_GetMembershipCommand = exports.de_GetCaseAttachmentUploadUrlCommand = exports.de_GetCaseAttachmentDownloadUrlCommand = exports.de_GetCaseCommand = exports.de_CreateMembershipCommand = exports.de_CreateCaseCommentCommand = exports.de_CreateCaseCommand = exports.de_CloseCaseCommand = exports.de_CancelMembershipCommand = exports.de_BatchGetMemberAccountDetailsCommand = exports.se_UpdateResolverTypeCommand = exports.se_UpdateMembershipCommand = exports.se_UpdateCaseStatusCommand = exports.se_UpdateCaseCommentCommand = exports.se_UpdateCaseCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListMembershipsCommand = exports.se_ListCommentsCommand = exports.se_ListCasesCommand = exports.se_ListCaseEditsCommand = exports.se_GetMembershipCommand = exports.se_GetCaseAttachmentUploadUrlCommand = exports.se_GetCaseAttachmentDownloadUrlCommand = exports.se_GetCaseCommand = exports.se_CreateMembershipCommand = exports.se_CreateCaseCommentCommand = exports.se_CreateCaseCommand = exports.se_CloseCaseCommand = exports.se_CancelMembershipCommand = exports.se_BatchGetMemberAccountDetailsCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const SecurityIRServiceException_1 = require("../models/SecurityIRServiceException");
|
|
10
|
-
const se_BatchGetMemberAccountDetailsCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/v1/membership/{membershipId}/batch-member-details");
|
|
16
|
-
b.p("membershipId", () => input.membershipId, "{membershipId}", false);
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
-
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
exports.se_BatchGetMemberAccountDetailsCommand = se_BatchGetMemberAccountDetailsCommand;
|
|
25
|
-
const se_CancelMembershipCommand = async (input, context) => {
|
|
26
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
27
|
-
const headers = {};
|
|
28
|
-
b.bp("/v1/membership/{membershipId}");
|
|
29
|
-
b.p("membershipId", () => input.membershipId, "{membershipId}", false);
|
|
30
|
-
let body;
|
|
31
|
-
b.m("PUT").h(headers).b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
exports.se_CancelMembershipCommand = se_CancelMembershipCommand;
|
|
35
|
-
const se_CloseCaseCommand = async (input, context) => {
|
|
36
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
37
|
-
const headers = {};
|
|
38
|
-
b.bp("/v1/cases/{caseId}/close-case");
|
|
39
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
40
|
-
let body;
|
|
41
|
-
b.m("POST").h(headers).b(body);
|
|
42
|
-
return b.build();
|
|
43
|
-
};
|
|
44
|
-
exports.se_CloseCaseCommand = se_CloseCaseCommand;
|
|
45
|
-
const se_CreateCaseCommand = async (input, context) => {
|
|
46
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
47
|
-
const headers = {
|
|
48
|
-
"content-type": "application/json",
|
|
49
|
-
};
|
|
50
|
-
b.bp("/v1/create-case");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
53
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
54
|
-
description: [],
|
|
55
|
-
engagementType: [],
|
|
56
|
-
impactedAccounts: (_) => (0, smithy_client_1._json)(_),
|
|
57
|
-
impactedAwsRegions: (_) => (0, smithy_client_1._json)(_),
|
|
58
|
-
impactedServices: (_) => (0, smithy_client_1._json)(_),
|
|
59
|
-
reportedIncidentStartDate: (_) => _.getTime() / 1_000,
|
|
60
|
-
resolverType: [],
|
|
61
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
62
|
-
threatActorIpAddresses: (_) => (0, smithy_client_1._json)(_),
|
|
63
|
-
title: [],
|
|
64
|
-
watchers: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
-
}));
|
|
66
|
-
b.m("POST").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
exports.se_CreateCaseCommand = se_CreateCaseCommand;
|
|
70
|
-
const se_CreateCaseCommentCommand = async (input, context) => {
|
|
71
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
72
|
-
const headers = {
|
|
73
|
-
"content-type": "application/json",
|
|
74
|
-
};
|
|
75
|
-
b.bp("/v1/cases/{caseId}/create-comment");
|
|
76
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
77
|
-
let body;
|
|
78
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
79
|
-
body: [],
|
|
80
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
81
|
-
}));
|
|
82
|
-
b.m("POST").h(headers).b(body);
|
|
83
|
-
return b.build();
|
|
84
|
-
};
|
|
85
|
-
exports.se_CreateCaseCommentCommand = se_CreateCaseCommentCommand;
|
|
86
|
-
const se_CreateMembershipCommand = async (input, context) => {
|
|
87
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
};
|
|
91
|
-
b.bp("/v1/membership");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
94
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
95
|
-
coverEntireOrganization: [],
|
|
96
|
-
incidentResponseTeam: (_) => (0, smithy_client_1._json)(_),
|
|
97
|
-
membershipName: [],
|
|
98
|
-
optInFeatures: (_) => (0, smithy_client_1._json)(_),
|
|
99
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
100
|
-
}));
|
|
101
|
-
b.m("POST").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
exports.se_CreateMembershipCommand = se_CreateMembershipCommand;
|
|
105
|
-
const se_GetCaseCommand = async (input, context) => {
|
|
106
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
107
|
-
const headers = {};
|
|
108
|
-
b.bp("/v1/cases/{caseId}/get-case");
|
|
109
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
110
|
-
let body;
|
|
111
|
-
b.m("GET").h(headers).b(body);
|
|
112
|
-
return b.build();
|
|
113
|
-
};
|
|
114
|
-
exports.se_GetCaseCommand = se_GetCaseCommand;
|
|
115
|
-
const se_GetCaseAttachmentDownloadUrlCommand = async (input, context) => {
|
|
116
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
117
|
-
const headers = {};
|
|
118
|
-
b.bp("/v1/cases/{caseId}/get-presigned-url/{attachmentId}");
|
|
119
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
120
|
-
b.p("attachmentId", () => input.attachmentId, "{attachmentId}", false);
|
|
121
|
-
let body;
|
|
122
|
-
b.m("GET").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
exports.se_GetCaseAttachmentDownloadUrlCommand = se_GetCaseAttachmentDownloadUrlCommand;
|
|
126
|
-
const se_GetCaseAttachmentUploadUrlCommand = async (input, context) => {
|
|
127
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
128
|
-
const headers = {
|
|
129
|
-
"content-type": "application/json",
|
|
130
|
-
};
|
|
131
|
-
b.bp("/v1/cases/{caseId}/get-presigned-url");
|
|
132
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
133
|
-
let body;
|
|
134
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
135
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
136
|
-
contentLength: [],
|
|
137
|
-
fileName: [],
|
|
138
|
-
}));
|
|
139
|
-
b.m("POST").h(headers).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
exports.se_GetCaseAttachmentUploadUrlCommand = se_GetCaseAttachmentUploadUrlCommand;
|
|
143
|
-
const se_GetMembershipCommand = async (input, context) => {
|
|
144
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
145
|
-
const headers = {};
|
|
146
|
-
b.bp("/v1/membership/{membershipId}");
|
|
147
|
-
b.p("membershipId", () => input.membershipId, "{membershipId}", false);
|
|
148
|
-
let body;
|
|
149
|
-
b.m("GET").h(headers).b(body);
|
|
150
|
-
return b.build();
|
|
151
|
-
};
|
|
152
|
-
exports.se_GetMembershipCommand = se_GetMembershipCommand;
|
|
153
|
-
const se_ListCaseEditsCommand = async (input, context) => {
|
|
154
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
155
|
-
const headers = {
|
|
156
|
-
"content-type": "application/json",
|
|
157
|
-
};
|
|
158
|
-
b.bp("/v1/cases/{caseId}/list-case-edits");
|
|
159
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
162
|
-
maxResults: [],
|
|
163
|
-
nextToken: [],
|
|
164
|
-
}));
|
|
165
|
-
b.m("POST").h(headers).b(body);
|
|
166
|
-
return b.build();
|
|
167
|
-
};
|
|
168
|
-
exports.se_ListCaseEditsCommand = se_ListCaseEditsCommand;
|
|
169
|
-
const se_ListCasesCommand = async (input, context) => {
|
|
170
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
171
|
-
const headers = {
|
|
172
|
-
"content-type": "application/json",
|
|
173
|
-
};
|
|
174
|
-
b.bp("/v1/list-cases");
|
|
175
|
-
let body;
|
|
176
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
177
|
-
maxResults: [],
|
|
178
|
-
nextToken: [],
|
|
179
|
-
}));
|
|
180
|
-
b.m("POST").h(headers).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
exports.se_ListCasesCommand = se_ListCasesCommand;
|
|
184
|
-
const se_ListCommentsCommand = async (input, context) => {
|
|
185
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
186
|
-
const headers = {
|
|
187
|
-
"content-type": "application/json",
|
|
188
|
-
};
|
|
189
|
-
b.bp("/v1/cases/{caseId}/list-comments");
|
|
190
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
191
|
-
let body;
|
|
192
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
193
|
-
maxResults: [],
|
|
194
|
-
nextToken: [],
|
|
195
|
-
}));
|
|
196
|
-
b.m("POST").h(headers).b(body);
|
|
197
|
-
return b.build();
|
|
198
|
-
};
|
|
199
|
-
exports.se_ListCommentsCommand = se_ListCommentsCommand;
|
|
200
|
-
const se_ListMembershipsCommand = async (input, context) => {
|
|
201
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
202
|
-
const headers = {
|
|
203
|
-
"content-type": "application/json",
|
|
204
|
-
};
|
|
205
|
-
b.bp("/v1/memberships");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
208
|
-
maxResults: [],
|
|
209
|
-
nextToken: [],
|
|
210
|
-
}));
|
|
211
|
-
b.m("POST").h(headers).b(body);
|
|
212
|
-
return b.build();
|
|
213
|
-
};
|
|
214
|
-
exports.se_ListMembershipsCommand = se_ListMembershipsCommand;
|
|
215
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
216
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
217
|
-
const headers = {};
|
|
218
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
219
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
220
|
-
let body;
|
|
221
|
-
b.m("GET").h(headers).b(body);
|
|
222
|
-
return b.build();
|
|
223
|
-
};
|
|
224
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
225
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
226
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
227
|
-
const headers = {
|
|
228
|
-
"content-type": "application/json",
|
|
229
|
-
};
|
|
230
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
231
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
232
|
-
let body;
|
|
233
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
234
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
235
|
-
}));
|
|
236
|
-
b.m("POST").h(headers).b(body);
|
|
237
|
-
return b.build();
|
|
238
|
-
};
|
|
239
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
240
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
241
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
242
|
-
const headers = {};
|
|
243
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
244
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
245
|
-
const query = (0, smithy_client_1.map)({
|
|
246
|
-
[_tK]: [(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
247
|
-
});
|
|
248
|
-
let body;
|
|
249
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
250
|
-
return b.build();
|
|
251
|
-
};
|
|
252
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
253
|
-
const se_UpdateCaseCommand = async (input, context) => {
|
|
254
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
255
|
-
const headers = {
|
|
256
|
-
"content-type": "application/json",
|
|
257
|
-
};
|
|
258
|
-
b.bp("/v1/cases/{caseId}/update-case");
|
|
259
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
260
|
-
let body;
|
|
261
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
262
|
-
actualIncidentStartDate: (_) => _.getTime() / 1_000,
|
|
263
|
-
description: [],
|
|
264
|
-
engagementType: [],
|
|
265
|
-
impactedAccountsToAdd: (_) => (0, smithy_client_1._json)(_),
|
|
266
|
-
impactedAccountsToDelete: (_) => (0, smithy_client_1._json)(_),
|
|
267
|
-
impactedAwsRegionsToAdd: (_) => (0, smithy_client_1._json)(_),
|
|
268
|
-
impactedAwsRegionsToDelete: (_) => (0, smithy_client_1._json)(_),
|
|
269
|
-
impactedServicesToAdd: (_) => (0, smithy_client_1._json)(_),
|
|
270
|
-
impactedServicesToDelete: (_) => (0, smithy_client_1._json)(_),
|
|
271
|
-
reportedIncidentStartDate: (_) => _.getTime() / 1_000,
|
|
272
|
-
threatActorIpAddressesToAdd: (_) => (0, smithy_client_1._json)(_),
|
|
273
|
-
threatActorIpAddressesToDelete: (_) => (0, smithy_client_1._json)(_),
|
|
274
|
-
title: [],
|
|
275
|
-
watchersToAdd: (_) => (0, smithy_client_1._json)(_),
|
|
276
|
-
watchersToDelete: (_) => (0, smithy_client_1._json)(_),
|
|
277
|
-
}));
|
|
278
|
-
b.m("POST").h(headers).b(body);
|
|
279
|
-
return b.build();
|
|
280
|
-
};
|
|
281
|
-
exports.se_UpdateCaseCommand = se_UpdateCaseCommand;
|
|
282
|
-
const se_UpdateCaseCommentCommand = async (input, context) => {
|
|
283
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
284
|
-
const headers = {
|
|
285
|
-
"content-type": "application/json",
|
|
286
|
-
};
|
|
287
|
-
b.bp("/v1/cases/{caseId}/update-case-comment/{commentId}");
|
|
288
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
289
|
-
b.p("commentId", () => input.commentId, "{commentId}", false);
|
|
290
|
-
let body;
|
|
291
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
292
|
-
body: [],
|
|
293
|
-
}));
|
|
294
|
-
b.m("PUT").h(headers).b(body);
|
|
295
|
-
return b.build();
|
|
296
|
-
};
|
|
297
|
-
exports.se_UpdateCaseCommentCommand = se_UpdateCaseCommentCommand;
|
|
298
|
-
const se_UpdateCaseStatusCommand = async (input, context) => {
|
|
299
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
300
|
-
const headers = {
|
|
301
|
-
"content-type": "application/json",
|
|
302
|
-
};
|
|
303
|
-
b.bp("/v1/cases/{caseId}/update-case-status");
|
|
304
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
307
|
-
caseStatus: [],
|
|
308
|
-
}));
|
|
309
|
-
b.m("POST").h(headers).b(body);
|
|
310
|
-
return b.build();
|
|
311
|
-
};
|
|
312
|
-
exports.se_UpdateCaseStatusCommand = se_UpdateCaseStatusCommand;
|
|
313
|
-
const se_UpdateMembershipCommand = async (input, context) => {
|
|
314
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
315
|
-
const headers = {
|
|
316
|
-
"content-type": "application/json",
|
|
317
|
-
};
|
|
318
|
-
b.bp("/v1/membership/{membershipId}/update-membership");
|
|
319
|
-
b.p("membershipId", () => input.membershipId, "{membershipId}", false);
|
|
320
|
-
let body;
|
|
321
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
322
|
-
incidentResponseTeam: (_) => (0, smithy_client_1._json)(_),
|
|
323
|
-
membershipAccountsConfigurationsUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
324
|
-
membershipName: [],
|
|
325
|
-
optInFeatures: (_) => (0, smithy_client_1._json)(_),
|
|
326
|
-
undoMembershipCancellation: [],
|
|
327
|
-
}));
|
|
328
|
-
b.m("PUT").h(headers).b(body);
|
|
329
|
-
return b.build();
|
|
330
|
-
};
|
|
331
|
-
exports.se_UpdateMembershipCommand = se_UpdateMembershipCommand;
|
|
332
|
-
const se_UpdateResolverTypeCommand = async (input, context) => {
|
|
333
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
334
|
-
const headers = {
|
|
335
|
-
"content-type": "application/json",
|
|
336
|
-
};
|
|
337
|
-
b.bp("/v1/cases/{caseId}/update-resolver-type");
|
|
338
|
-
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
339
|
-
let body;
|
|
340
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
341
|
-
resolverType: [],
|
|
342
|
-
}));
|
|
343
|
-
b.m("POST").h(headers).b(body);
|
|
344
|
-
return b.build();
|
|
345
|
-
};
|
|
346
|
-
exports.se_UpdateResolverTypeCommand = se_UpdateResolverTypeCommand;
|
|
347
|
-
const de_BatchGetMemberAccountDetailsCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
const contents = (0, smithy_client_1.map)({
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
});
|
|
354
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
355
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
356
|
-
errors: smithy_client_1._json,
|
|
357
|
-
items: smithy_client_1._json,
|
|
358
|
-
});
|
|
359
|
-
Object.assign(contents, doc);
|
|
360
|
-
return contents;
|
|
361
|
-
};
|
|
362
|
-
exports.de_BatchGetMemberAccountDetailsCommand = de_BatchGetMemberAccountDetailsCommand;
|
|
363
|
-
const de_CancelMembershipCommand = async (output, context) => {
|
|
364
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
|
-
return de_CommandError(output, context);
|
|
366
|
-
}
|
|
367
|
-
const contents = (0, smithy_client_1.map)({
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
});
|
|
370
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
371
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
372
|
-
membershipId: smithy_client_1.expectString,
|
|
373
|
-
});
|
|
374
|
-
Object.assign(contents, doc);
|
|
375
|
-
return contents;
|
|
376
|
-
};
|
|
377
|
-
exports.de_CancelMembershipCommand = de_CancelMembershipCommand;
|
|
378
|
-
const de_CloseCaseCommand = async (output, context) => {
|
|
379
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
380
|
-
return de_CommandError(output, context);
|
|
381
|
-
}
|
|
382
|
-
const contents = (0, smithy_client_1.map)({
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
});
|
|
385
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
386
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
387
|
-
caseStatus: smithy_client_1.expectString,
|
|
388
|
-
closedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
389
|
-
});
|
|
390
|
-
Object.assign(contents, doc);
|
|
391
|
-
return contents;
|
|
392
|
-
};
|
|
393
|
-
exports.de_CloseCaseCommand = de_CloseCaseCommand;
|
|
394
|
-
const de_CreateCaseCommand = async (output, context) => {
|
|
395
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
396
|
-
return de_CommandError(output, context);
|
|
397
|
-
}
|
|
398
|
-
const contents = (0, smithy_client_1.map)({
|
|
399
|
-
$metadata: deserializeMetadata(output),
|
|
400
|
-
});
|
|
401
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
402
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
403
|
-
caseId: smithy_client_1.expectString,
|
|
404
|
-
});
|
|
405
|
-
Object.assign(contents, doc);
|
|
406
|
-
return contents;
|
|
407
|
-
};
|
|
408
|
-
exports.de_CreateCaseCommand = de_CreateCaseCommand;
|
|
409
|
-
const de_CreateCaseCommentCommand = async (output, context) => {
|
|
410
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
411
|
-
return de_CommandError(output, context);
|
|
412
|
-
}
|
|
413
|
-
const contents = (0, smithy_client_1.map)({
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
});
|
|
416
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
417
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
418
|
-
commentId: smithy_client_1.expectString,
|
|
419
|
-
});
|
|
420
|
-
Object.assign(contents, doc);
|
|
421
|
-
return contents;
|
|
422
|
-
};
|
|
423
|
-
exports.de_CreateCaseCommentCommand = de_CreateCaseCommentCommand;
|
|
424
|
-
const de_CreateMembershipCommand = async (output, context) => {
|
|
425
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
426
|
-
return de_CommandError(output, context);
|
|
427
|
-
}
|
|
428
|
-
const contents = (0, smithy_client_1.map)({
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
});
|
|
431
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
432
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
433
|
-
membershipId: smithy_client_1.expectString,
|
|
434
|
-
});
|
|
435
|
-
Object.assign(contents, doc);
|
|
436
|
-
return contents;
|
|
437
|
-
};
|
|
438
|
-
exports.de_CreateMembershipCommand = de_CreateMembershipCommand;
|
|
439
|
-
const de_GetCaseCommand = async (output, context) => {
|
|
440
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
-
return de_CommandError(output, context);
|
|
442
|
-
}
|
|
443
|
-
const contents = (0, smithy_client_1.map)({
|
|
444
|
-
$metadata: deserializeMetadata(output),
|
|
445
|
-
});
|
|
446
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
447
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
448
|
-
actualIncidentStartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
449
|
-
caseArn: smithy_client_1.expectString,
|
|
450
|
-
caseAttachments: (_) => de_CaseAttachmentsList(_, context),
|
|
451
|
-
caseStatus: smithy_client_1.expectString,
|
|
452
|
-
closedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
453
|
-
closureCode: smithy_client_1.expectString,
|
|
454
|
-
createdDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
455
|
-
description: smithy_client_1.expectString,
|
|
456
|
-
engagementType: smithy_client_1.expectString,
|
|
457
|
-
impactedAccounts: smithy_client_1._json,
|
|
458
|
-
impactedAwsRegions: smithy_client_1._json,
|
|
459
|
-
impactedServices: smithy_client_1._json,
|
|
460
|
-
lastUpdatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
461
|
-
pendingAction: smithy_client_1.expectString,
|
|
462
|
-
reportedIncidentStartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
463
|
-
resolverType: smithy_client_1.expectString,
|
|
464
|
-
threatActorIpAddresses: smithy_client_1._json,
|
|
465
|
-
title: smithy_client_1.expectString,
|
|
466
|
-
watchers: smithy_client_1._json,
|
|
467
|
-
});
|
|
468
|
-
Object.assign(contents, doc);
|
|
469
|
-
return contents;
|
|
470
|
-
};
|
|
471
|
-
exports.de_GetCaseCommand = de_GetCaseCommand;
|
|
472
|
-
const de_GetCaseAttachmentDownloadUrlCommand = async (output, context) => {
|
|
473
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
474
|
-
return de_CommandError(output, context);
|
|
475
|
-
}
|
|
476
|
-
const contents = (0, smithy_client_1.map)({
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
});
|
|
479
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
480
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
481
|
-
attachmentPresignedUrl: smithy_client_1.expectString,
|
|
482
|
-
});
|
|
483
|
-
Object.assign(contents, doc);
|
|
484
|
-
return contents;
|
|
485
|
-
};
|
|
486
|
-
exports.de_GetCaseAttachmentDownloadUrlCommand = de_GetCaseAttachmentDownloadUrlCommand;
|
|
487
|
-
const de_GetCaseAttachmentUploadUrlCommand = async (output, context) => {
|
|
488
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
489
|
-
return de_CommandError(output, context);
|
|
490
|
-
}
|
|
491
|
-
const contents = (0, smithy_client_1.map)({
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
});
|
|
494
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
495
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
496
|
-
attachmentPresignedUrl: smithy_client_1.expectString,
|
|
497
|
-
});
|
|
498
|
-
Object.assign(contents, doc);
|
|
499
|
-
return contents;
|
|
500
|
-
};
|
|
501
|
-
exports.de_GetCaseAttachmentUploadUrlCommand = de_GetCaseAttachmentUploadUrlCommand;
|
|
502
|
-
const de_GetMembershipCommand = async (output, context) => {
|
|
503
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
504
|
-
return de_CommandError(output, context);
|
|
505
|
-
}
|
|
506
|
-
const contents = (0, smithy_client_1.map)({
|
|
507
|
-
$metadata: deserializeMetadata(output),
|
|
508
|
-
});
|
|
509
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
510
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
511
|
-
accountId: smithy_client_1.expectString,
|
|
512
|
-
customerType: smithy_client_1.expectString,
|
|
513
|
-
incidentResponseTeam: smithy_client_1._json,
|
|
514
|
-
membershipAccountsConfigurations: smithy_client_1._json,
|
|
515
|
-
membershipActivationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
516
|
-
membershipArn: smithy_client_1.expectString,
|
|
517
|
-
membershipDeactivationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
518
|
-
membershipId: smithy_client_1.expectString,
|
|
519
|
-
membershipName: smithy_client_1.expectString,
|
|
520
|
-
membershipStatus: smithy_client_1.expectString,
|
|
521
|
-
numberOfAccountsCovered: smithy_client_1.expectLong,
|
|
522
|
-
optInFeatures: smithy_client_1._json,
|
|
523
|
-
region: smithy_client_1.expectString,
|
|
524
|
-
});
|
|
525
|
-
Object.assign(contents, doc);
|
|
526
|
-
return contents;
|
|
527
|
-
};
|
|
528
|
-
exports.de_GetMembershipCommand = de_GetMembershipCommand;
|
|
529
|
-
const de_ListCaseEditsCommand = async (output, context) => {
|
|
530
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
531
|
-
return de_CommandError(output, context);
|
|
532
|
-
}
|
|
533
|
-
const contents = (0, smithy_client_1.map)({
|
|
534
|
-
$metadata: deserializeMetadata(output),
|
|
535
|
-
});
|
|
536
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
537
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
538
|
-
items: (_) => de_CaseEditItems(_, context),
|
|
539
|
-
nextToken: smithy_client_1.expectString,
|
|
540
|
-
total: smithy_client_1.expectInt32,
|
|
541
|
-
});
|
|
542
|
-
Object.assign(contents, doc);
|
|
543
|
-
return contents;
|
|
544
|
-
};
|
|
545
|
-
exports.de_ListCaseEditsCommand = de_ListCaseEditsCommand;
|
|
546
|
-
const de_ListCasesCommand = async (output, context) => {
|
|
547
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
548
|
-
return de_CommandError(output, context);
|
|
549
|
-
}
|
|
550
|
-
const contents = (0, smithy_client_1.map)({
|
|
551
|
-
$metadata: deserializeMetadata(output),
|
|
552
|
-
});
|
|
553
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
554
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
555
|
-
items: (_) => de_ListCasesItems(_, context),
|
|
556
|
-
nextToken: smithy_client_1.expectString,
|
|
557
|
-
total: smithy_client_1.expectLong,
|
|
558
|
-
});
|
|
559
|
-
Object.assign(contents, doc);
|
|
560
|
-
return contents;
|
|
561
|
-
};
|
|
562
|
-
exports.de_ListCasesCommand = de_ListCasesCommand;
|
|
563
|
-
const de_ListCommentsCommand = async (output, context) => {
|
|
564
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
565
|
-
return de_CommandError(output, context);
|
|
566
|
-
}
|
|
567
|
-
const contents = (0, smithy_client_1.map)({
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
});
|
|
570
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
571
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
572
|
-
items: (_) => de_ListCommentsItems(_, context),
|
|
573
|
-
nextToken: smithy_client_1.expectString,
|
|
574
|
-
total: smithy_client_1.expectInt32,
|
|
575
|
-
});
|
|
576
|
-
Object.assign(contents, doc);
|
|
577
|
-
return contents;
|
|
578
|
-
};
|
|
579
|
-
exports.de_ListCommentsCommand = de_ListCommentsCommand;
|
|
580
|
-
const de_ListMembershipsCommand = async (output, context) => {
|
|
581
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
582
|
-
return de_CommandError(output, context);
|
|
583
|
-
}
|
|
584
|
-
const contents = (0, smithy_client_1.map)({
|
|
585
|
-
$metadata: deserializeMetadata(output),
|
|
586
|
-
});
|
|
587
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
588
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
589
|
-
items: smithy_client_1._json,
|
|
590
|
-
nextToken: smithy_client_1.expectString,
|
|
591
|
-
});
|
|
592
|
-
Object.assign(contents, doc);
|
|
593
|
-
return contents;
|
|
594
|
-
};
|
|
595
|
-
exports.de_ListMembershipsCommand = de_ListMembershipsCommand;
|
|
596
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
597
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
|
-
return de_CommandError(output, context);
|
|
599
|
-
}
|
|
600
|
-
const contents = (0, smithy_client_1.map)({
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
});
|
|
603
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
604
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
605
|
-
tags: smithy_client_1._json,
|
|
606
|
-
});
|
|
607
|
-
Object.assign(contents, doc);
|
|
608
|
-
return contents;
|
|
609
|
-
};
|
|
610
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
611
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
612
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
613
|
-
return de_CommandError(output, context);
|
|
614
|
-
}
|
|
615
|
-
const contents = (0, smithy_client_1.map)({
|
|
616
|
-
$metadata: deserializeMetadata(output),
|
|
617
|
-
});
|
|
618
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
619
|
-
return contents;
|
|
620
|
-
};
|
|
621
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
622
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
623
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
624
|
-
return de_CommandError(output, context);
|
|
625
|
-
}
|
|
626
|
-
const contents = (0, smithy_client_1.map)({
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
});
|
|
629
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
630
|
-
return contents;
|
|
631
|
-
};
|
|
632
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
633
|
-
const de_UpdateCaseCommand = async (output, context) => {
|
|
634
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
635
|
-
return de_CommandError(output, context);
|
|
636
|
-
}
|
|
637
|
-
const contents = (0, smithy_client_1.map)({
|
|
638
|
-
$metadata: deserializeMetadata(output),
|
|
639
|
-
});
|
|
640
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
641
|
-
return contents;
|
|
642
|
-
};
|
|
643
|
-
exports.de_UpdateCaseCommand = de_UpdateCaseCommand;
|
|
644
|
-
const de_UpdateCaseCommentCommand = async (output, context) => {
|
|
645
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
646
|
-
return de_CommandError(output, context);
|
|
647
|
-
}
|
|
648
|
-
const contents = (0, smithy_client_1.map)({
|
|
649
|
-
$metadata: deserializeMetadata(output),
|
|
650
|
-
});
|
|
651
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
652
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
653
|
-
body: smithy_client_1.expectString,
|
|
654
|
-
commentId: smithy_client_1.expectString,
|
|
655
|
-
});
|
|
656
|
-
Object.assign(contents, doc);
|
|
657
|
-
return contents;
|
|
658
|
-
};
|
|
659
|
-
exports.de_UpdateCaseCommentCommand = de_UpdateCaseCommentCommand;
|
|
660
|
-
const de_UpdateCaseStatusCommand = async (output, context) => {
|
|
661
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
662
|
-
return de_CommandError(output, context);
|
|
663
|
-
}
|
|
664
|
-
const contents = (0, smithy_client_1.map)({
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
});
|
|
667
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
668
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
669
|
-
caseStatus: smithy_client_1.expectString,
|
|
670
|
-
});
|
|
671
|
-
Object.assign(contents, doc);
|
|
672
|
-
return contents;
|
|
673
|
-
};
|
|
674
|
-
exports.de_UpdateCaseStatusCommand = de_UpdateCaseStatusCommand;
|
|
675
|
-
const de_UpdateMembershipCommand = async (output, context) => {
|
|
676
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
-
return de_CommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const contents = (0, smithy_client_1.map)({
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
});
|
|
682
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
683
|
-
return contents;
|
|
684
|
-
};
|
|
685
|
-
exports.de_UpdateMembershipCommand = de_UpdateMembershipCommand;
|
|
686
|
-
const de_UpdateResolverTypeCommand = async (output, context) => {
|
|
687
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
-
return de_CommandError(output, context);
|
|
689
|
-
}
|
|
690
|
-
const contents = (0, smithy_client_1.map)({
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
692
|
-
});
|
|
693
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
694
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
695
|
-
caseId: smithy_client_1.expectString,
|
|
696
|
-
caseStatus: smithy_client_1.expectString,
|
|
697
|
-
resolverType: smithy_client_1.expectString,
|
|
698
|
-
});
|
|
699
|
-
Object.assign(contents, doc);
|
|
700
|
-
return contents;
|
|
701
|
-
};
|
|
702
|
-
exports.de_UpdateResolverTypeCommand = de_UpdateResolverTypeCommand;
|
|
703
|
-
const de_CommandError = async (output, context) => {
|
|
704
|
-
const parsedOutput = {
|
|
705
|
-
...output,
|
|
706
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
707
|
-
};
|
|
708
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
709
|
-
switch (errorCode) {
|
|
710
|
-
case "AccessDeniedException":
|
|
711
|
-
case "com.amazonaws.securityir#AccessDeniedException":
|
|
712
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
713
|
-
case "ConflictException":
|
|
714
|
-
case "com.amazonaws.securityir#ConflictException":
|
|
715
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
716
|
-
case "InternalServerException":
|
|
717
|
-
case "com.amazonaws.securityir#InternalServerException":
|
|
718
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
719
|
-
case "InvalidTokenException":
|
|
720
|
-
case "com.amazonaws.securityir#InvalidTokenException":
|
|
721
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ResourceNotFoundException":
|
|
723
|
-
case "com.amazonaws.securityir#ResourceNotFoundException":
|
|
724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
725
|
-
case "SecurityIncidentResponseNotActiveException":
|
|
726
|
-
case "com.amazonaws.securityir#SecurityIncidentResponseNotActiveException":
|
|
727
|
-
throw await de_SecurityIncidentResponseNotActiveExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ServiceQuotaExceededException":
|
|
729
|
-
case "com.amazonaws.securityir#ServiceQuotaExceededException":
|
|
730
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ThrottlingException":
|
|
732
|
-
case "com.amazonaws.securityir#ThrottlingException":
|
|
733
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
734
|
-
case "ValidationException":
|
|
735
|
-
case "com.amazonaws.securityir#ValidationException":
|
|
736
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
737
|
-
default:
|
|
738
|
-
const parsedBody = parsedOutput.body;
|
|
739
|
-
return throwDefaultError({
|
|
740
|
-
output,
|
|
741
|
-
parsedBody,
|
|
742
|
-
errorCode,
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
};
|
|
746
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(SecurityIRServiceException_1.SecurityIRServiceException);
|
|
747
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
748
|
-
const contents = (0, smithy_client_1.map)({});
|
|
749
|
-
const data = parsedOutput.body;
|
|
750
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
751
|
-
message: smithy_client_1.expectString,
|
|
752
|
-
});
|
|
753
|
-
Object.assign(contents, doc);
|
|
754
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
755
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
756
|
-
...contents,
|
|
757
|
-
});
|
|
758
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
759
|
-
};
|
|
760
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
761
|
-
const contents = (0, smithy_client_1.map)({});
|
|
762
|
-
const data = parsedOutput.body;
|
|
763
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
764
|
-
message: smithy_client_1.expectString,
|
|
765
|
-
resourceId: smithy_client_1.expectString,
|
|
766
|
-
resourceType: smithy_client_1.expectString,
|
|
767
|
-
});
|
|
768
|
-
Object.assign(contents, doc);
|
|
769
|
-
const exception = new models_0_1.ConflictException({
|
|
770
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
771
|
-
...contents,
|
|
772
|
-
});
|
|
773
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
774
|
-
};
|
|
775
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
776
|
-
const contents = (0, smithy_client_1.map)({
|
|
777
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
778
|
-
});
|
|
779
|
-
const data = parsedOutput.body;
|
|
780
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
781
|
-
message: smithy_client_1.expectString,
|
|
782
|
-
});
|
|
783
|
-
Object.assign(contents, doc);
|
|
784
|
-
const exception = new models_0_1.InternalServerException({
|
|
785
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
786
|
-
...contents,
|
|
787
|
-
});
|
|
788
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
789
|
-
};
|
|
790
|
-
const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
|
|
791
|
-
const contents = (0, smithy_client_1.map)({});
|
|
792
|
-
const data = parsedOutput.body;
|
|
793
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
794
|
-
message: smithy_client_1.expectString,
|
|
795
|
-
});
|
|
796
|
-
Object.assign(contents, doc);
|
|
797
|
-
const exception = new models_0_1.InvalidTokenException({
|
|
798
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
799
|
-
...contents,
|
|
800
|
-
});
|
|
801
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
802
|
-
};
|
|
803
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
804
|
-
const contents = (0, smithy_client_1.map)({});
|
|
805
|
-
const data = parsedOutput.body;
|
|
806
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
807
|
-
message: smithy_client_1.expectString,
|
|
808
|
-
});
|
|
809
|
-
Object.assign(contents, doc);
|
|
810
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
811
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
812
|
-
...contents,
|
|
813
|
-
});
|
|
814
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
815
|
-
};
|
|
816
|
-
const de_SecurityIncidentResponseNotActiveExceptionRes = async (parsedOutput, context) => {
|
|
817
|
-
const contents = (0, smithy_client_1.map)({});
|
|
818
|
-
const data = parsedOutput.body;
|
|
819
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
820
|
-
message: smithy_client_1.expectString,
|
|
821
|
-
});
|
|
822
|
-
Object.assign(contents, doc);
|
|
823
|
-
const exception = new models_0_1.SecurityIncidentResponseNotActiveException({
|
|
824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
825
|
-
...contents,
|
|
826
|
-
});
|
|
827
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
828
|
-
};
|
|
829
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
830
|
-
const contents = (0, smithy_client_1.map)({});
|
|
831
|
-
const data = parsedOutput.body;
|
|
832
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
833
|
-
message: smithy_client_1.expectString,
|
|
834
|
-
quotaCode: smithy_client_1.expectString,
|
|
835
|
-
resourceId: smithy_client_1.expectString,
|
|
836
|
-
resourceType: smithy_client_1.expectString,
|
|
837
|
-
serviceCode: smithy_client_1.expectString,
|
|
838
|
-
});
|
|
839
|
-
Object.assign(contents, doc);
|
|
840
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
841
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
842
|
-
...contents,
|
|
843
|
-
});
|
|
844
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
845
|
-
};
|
|
846
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
847
|
-
const contents = (0, smithy_client_1.map)({
|
|
848
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
849
|
-
});
|
|
850
|
-
const data = parsedOutput.body;
|
|
851
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
852
|
-
message: smithy_client_1.expectString,
|
|
853
|
-
quotaCode: smithy_client_1.expectString,
|
|
854
|
-
serviceCode: smithy_client_1.expectString,
|
|
855
|
-
});
|
|
856
|
-
Object.assign(contents, doc);
|
|
857
|
-
const exception = new models_0_1.ThrottlingException({
|
|
858
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
859
|
-
...contents,
|
|
860
|
-
});
|
|
861
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
862
|
-
};
|
|
863
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
864
|
-
const contents = (0, smithy_client_1.map)({});
|
|
865
|
-
const data = parsedOutput.body;
|
|
866
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
867
|
-
fieldList: smithy_client_1._json,
|
|
868
|
-
message: smithy_client_1.expectString,
|
|
869
|
-
reason: smithy_client_1.expectString,
|
|
870
|
-
});
|
|
871
|
-
Object.assign(contents, doc);
|
|
872
|
-
const exception = new models_0_1.ValidationException({
|
|
873
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
874
|
-
...contents,
|
|
875
|
-
});
|
|
876
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
877
|
-
};
|
|
878
|
-
const de_CaseAttachmentAttributes = (output, context) => {
|
|
879
|
-
return (0, smithy_client_1.take)(output, {
|
|
880
|
-
attachmentId: smithy_client_1.expectString,
|
|
881
|
-
attachmentStatus: smithy_client_1.expectString,
|
|
882
|
-
createdDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
883
|
-
creator: smithy_client_1.expectString,
|
|
884
|
-
fileName: smithy_client_1.expectString,
|
|
885
|
-
});
|
|
886
|
-
};
|
|
887
|
-
const de_CaseAttachmentsList = (output, context) => {
|
|
888
|
-
const retVal = (output || [])
|
|
889
|
-
.filter((e) => e != null)
|
|
890
|
-
.map((entry) => {
|
|
891
|
-
return de_CaseAttachmentAttributes(entry, context);
|
|
892
|
-
});
|
|
893
|
-
return retVal;
|
|
894
|
-
};
|
|
895
|
-
const de_CaseEditItem = (output, context) => {
|
|
896
|
-
return (0, smithy_client_1.take)(output, {
|
|
897
|
-
action: smithy_client_1.expectString,
|
|
898
|
-
eventTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
899
|
-
message: smithy_client_1.expectString,
|
|
900
|
-
principal: smithy_client_1.expectString,
|
|
901
|
-
});
|
|
902
|
-
};
|
|
903
|
-
const de_CaseEditItems = (output, context) => {
|
|
904
|
-
const retVal = (output || [])
|
|
905
|
-
.filter((e) => e != null)
|
|
906
|
-
.map((entry) => {
|
|
907
|
-
return de_CaseEditItem(entry, context);
|
|
908
|
-
});
|
|
909
|
-
return retVal;
|
|
910
|
-
};
|
|
911
|
-
const de_ListCasesItem = (output, context) => {
|
|
912
|
-
return (0, smithy_client_1.take)(output, {
|
|
913
|
-
caseArn: smithy_client_1.expectString,
|
|
914
|
-
caseId: smithy_client_1.expectString,
|
|
915
|
-
caseStatus: smithy_client_1.expectString,
|
|
916
|
-
closedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
917
|
-
createdDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
918
|
-
engagementType: smithy_client_1.expectString,
|
|
919
|
-
lastUpdatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
920
|
-
pendingAction: smithy_client_1.expectString,
|
|
921
|
-
resolverType: smithy_client_1.expectString,
|
|
922
|
-
title: smithy_client_1.expectString,
|
|
923
|
-
});
|
|
924
|
-
};
|
|
925
|
-
const de_ListCasesItems = (output, context) => {
|
|
926
|
-
const retVal = (output || [])
|
|
927
|
-
.filter((e) => e != null)
|
|
928
|
-
.map((entry) => {
|
|
929
|
-
return de_ListCasesItem(entry, context);
|
|
930
|
-
});
|
|
931
|
-
return retVal;
|
|
932
|
-
};
|
|
933
|
-
const de_ListCommentsItem = (output, context) => {
|
|
934
|
-
return (0, smithy_client_1.take)(output, {
|
|
935
|
-
body: smithy_client_1.expectString,
|
|
936
|
-
commentId: smithy_client_1.expectString,
|
|
937
|
-
createdDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
938
|
-
creator: smithy_client_1.expectString,
|
|
939
|
-
lastUpdatedBy: smithy_client_1.expectString,
|
|
940
|
-
lastUpdatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
941
|
-
});
|
|
942
|
-
};
|
|
943
|
-
const de_ListCommentsItems = (output, context) => {
|
|
944
|
-
const retVal = (output || [])
|
|
945
|
-
.filter((e) => e != null)
|
|
946
|
-
.map((entry) => {
|
|
947
|
-
return de_ListCommentsItem(entry, context);
|
|
948
|
-
});
|
|
949
|
-
return retVal;
|
|
950
|
-
};
|
|
951
|
-
const deserializeMetadata = (output) => ({
|
|
952
|
-
httpStatusCode: output.statusCode,
|
|
953
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
954
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
955
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
956
|
-
});
|
|
957
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
958
|
-
const _rAS = "retryAfterSeconds";
|
|
959
|
-
const _ra = "retry-after";
|
|
960
|
-
const _tK = "tagKeys";
|