@aws-sdk/client-guardduty 3.474.0 → 3.477.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/protocols/Aws_restJson1.js +372 -871
- package/dist-es/protocols/Aws_restJson1.js +373 -872
- package/package.json +5 -4
|
@@ -3,85 +3,64 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListIPSetsCommand = exports.se_ListInvitationsCommand = exports.se_ListFindingsCommand = exports.se_ListFiltersCommand = exports.se_ListDetectorsCommand = exports.se_ListCoverageCommand = exports.se_InviteMembersCommand = exports.se_GetUsageStatisticsCommand = exports.se_GetThreatIntelSetCommand = exports.se_GetRemainingFreeTrialDaysCommand = exports.se_GetMembersCommand = exports.se_GetMemberDetectorsCommand = exports.se_GetMasterAccountCommand = exports.se_GetMalwareScanSettingsCommand = exports.se_GetIPSetCommand = exports.se_GetInvitationsCountCommand = exports.se_GetFindingsStatisticsCommand = exports.se_GetFindingsCommand = exports.se_GetFilterCommand = exports.se_GetDetectorCommand = exports.se_GetCoverageStatisticsCommand = exports.se_GetAdministratorAccountCommand = exports.se_EnableOrganizationAdminAccountCommand = exports.se_DisassociateMembersCommand = exports.se_DisassociateFromMasterAccountCommand = exports.se_DisassociateFromAdministratorAccountCommand = exports.se_DisableOrganizationAdminAccountCommand = exports.se_DescribePublishingDestinationCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DescribeMalwareScansCommand = exports.se_DeleteThreatIntelSetCommand = exports.se_DeletePublishingDestinationCommand = exports.se_DeleteMembersCommand = exports.se_DeleteIPSetCommand = exports.se_DeleteInvitationsCommand = exports.se_DeleteFilterCommand = exports.se_DeleteDetectorCommand = exports.se_DeclineInvitationsCommand = exports.se_CreateThreatIntelSetCommand = exports.se_CreateSampleFindingsCommand = exports.se_CreatePublishingDestinationCommand = exports.se_CreateMembersCommand = exports.se_CreateIPSetCommand = exports.se_CreateFilterCommand = exports.se_CreateDetectorCommand = exports.se_ArchiveFindingsCommand = exports.se_AcceptInvitationCommand = exports.se_AcceptAdministratorInvitationCommand = void 0;
|
|
4
4
|
exports.de_GetFindingsStatisticsCommand = exports.de_GetFindingsCommand = exports.de_GetFilterCommand = exports.de_GetDetectorCommand = exports.de_GetCoverageStatisticsCommand = exports.de_GetAdministratorAccountCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_DisassociateMembersCommand = exports.de_DisassociateFromMasterAccountCommand = exports.de_DisassociateFromAdministratorAccountCommand = exports.de_DisableOrganizationAdminAccountCommand = exports.de_DescribePublishingDestinationCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DescribeMalwareScansCommand = exports.de_DeleteThreatIntelSetCommand = exports.de_DeletePublishingDestinationCommand = exports.de_DeleteMembersCommand = exports.de_DeleteIPSetCommand = exports.de_DeleteInvitationsCommand = exports.de_DeleteFilterCommand = exports.de_DeleteDetectorCommand = exports.de_DeclineInvitationsCommand = exports.de_CreateThreatIntelSetCommand = exports.de_CreateSampleFindingsCommand = exports.de_CreatePublishingDestinationCommand = exports.de_CreateMembersCommand = exports.de_CreateIPSetCommand = exports.de_CreateFilterCommand = exports.de_CreateDetectorCommand = exports.de_ArchiveFindingsCommand = exports.de_AcceptInvitationCommand = exports.de_AcceptAdministratorInvitationCommand = exports.se_UpdateThreatIntelSetCommand = exports.se_UpdatePublishingDestinationCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateMemberDetectorsCommand = exports.se_UpdateMalwareScanSettingsCommand = exports.se_UpdateIPSetCommand = exports.se_UpdateFindingsFeedbackCommand = exports.se_UpdateFilterCommand = exports.se_UpdateDetectorCommand = exports.se_UntagResourceCommand = exports.se_UnarchiveFindingsCommand = exports.se_TagResourceCommand = exports.se_StopMonitoringMembersCommand = exports.se_StartMonitoringMembersCommand = exports.se_StartMalwareScanCommand = exports.se_ListThreatIntelSetsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPublishingDestinationsCommand = void 0;
|
|
5
5
|
exports.de_UpdateThreatIntelSetCommand = exports.de_UpdatePublishingDestinationCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateMemberDetectorsCommand = exports.de_UpdateMalwareScanSettingsCommand = exports.de_UpdateIPSetCommand = exports.de_UpdateFindingsFeedbackCommand = exports.de_UpdateFilterCommand = exports.de_UpdateDetectorCommand = exports.de_UntagResourceCommand = exports.de_UnarchiveFindingsCommand = exports.de_TagResourceCommand = exports.de_StopMonitoringMembersCommand = exports.de_StartMonitoringMembersCommand = exports.de_StartMalwareScanCommand = exports.de_ListThreatIntelSetsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPublishingDestinationsCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListIPSetsCommand = exports.de_ListInvitationsCommand = exports.de_ListFindingsCommand = exports.de_ListFiltersCommand = exports.de_ListDetectorsCommand = exports.de_ListCoverageCommand = exports.de_InviteMembersCommand = exports.de_GetUsageStatisticsCommand = exports.de_GetThreatIntelSetCommand = exports.de_GetRemainingFreeTrialDaysCommand = exports.de_GetMembersCommand = exports.de_GetMemberDetectorsCommand = exports.de_GetMasterAccountCommand = exports.de_GetMalwareScanSettingsCommand = exports.de_GetIPSetCommand = exports.de_GetInvitationsCountCommand = void 0;
|
|
6
|
-
const
|
|
6
|
+
const core_1 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const GuardDutyServiceException_1 = require("../models/GuardDutyServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const se_AcceptAdministratorInvitationCommand = async (input, context) => {
|
|
12
|
-
const
|
|
12
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
b.bp("/detector/{DetectorId}/administrator");
|
|
17
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
20
|
administratorId: [, , `AdministratorId`],
|
|
21
21
|
invitationId: [, , `InvitationId`],
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "POST",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
23
|
+
b.m("POST").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
32
25
|
};
|
|
33
26
|
exports.se_AcceptAdministratorInvitationCommand = se_AcceptAdministratorInvitationCommand;
|
|
34
27
|
const se_AcceptInvitationCommand = async (input, context) => {
|
|
35
|
-
const
|
|
28
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
36
29
|
const headers = {
|
|
37
30
|
"content-type": "application/json",
|
|
38
31
|
};
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
b.bp("/detector/{DetectorId}/master");
|
|
33
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
41
34
|
let body;
|
|
42
35
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
36
|
invitationId: [, , `InvitationId`],
|
|
44
37
|
masterId: [, , `MasterId`],
|
|
45
38
|
}));
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
hostname,
|
|
49
|
-
port,
|
|
50
|
-
method: "POST",
|
|
51
|
-
headers,
|
|
52
|
-
path: resolvedPath,
|
|
53
|
-
body,
|
|
54
|
-
});
|
|
39
|
+
b.m("POST").h(headers).b(body);
|
|
40
|
+
return b.build();
|
|
55
41
|
};
|
|
56
42
|
exports.se_AcceptInvitationCommand = se_AcceptInvitationCommand;
|
|
57
43
|
const se_ArchiveFindingsCommand = async (input, context) => {
|
|
58
|
-
const
|
|
44
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
59
45
|
const headers = {
|
|
60
46
|
"content-type": "application/json",
|
|
61
47
|
};
|
|
62
|
-
|
|
63
|
-
|
|
48
|
+
b.bp("/detector/{DetectorId}/findings/archive");
|
|
49
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
64
50
|
let body;
|
|
65
51
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
66
52
|
findingIds: [, (_) => (0, smithy_client_1._json)(_), `FindingIds`],
|
|
67
53
|
}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hostname,
|
|
71
|
-
port,
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers,
|
|
74
|
-
path: resolvedPath,
|
|
75
|
-
body,
|
|
76
|
-
});
|
|
54
|
+
b.m("POST").h(headers).b(body);
|
|
55
|
+
return b.build();
|
|
77
56
|
};
|
|
78
57
|
exports.se_ArchiveFindingsCommand = se_ArchiveFindingsCommand;
|
|
79
58
|
const se_CreateDetectorCommand = async (input, context) => {
|
|
80
|
-
const
|
|
59
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
81
60
|
const headers = {
|
|
82
61
|
"content-type": "application/json",
|
|
83
62
|
};
|
|
84
|
-
|
|
63
|
+
b.bp("/detector");
|
|
85
64
|
let body;
|
|
86
65
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
87
66
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)(), `ClientToken`],
|
|
@@ -91,24 +70,17 @@ const se_CreateDetectorCommand = async (input, context) => {
|
|
|
91
70
|
findingPublishingFrequency: [, , `FindingPublishingFrequency`],
|
|
92
71
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
93
72
|
}));
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
hostname,
|
|
97
|
-
port,
|
|
98
|
-
method: "POST",
|
|
99
|
-
headers,
|
|
100
|
-
path: resolvedPath,
|
|
101
|
-
body,
|
|
102
|
-
});
|
|
73
|
+
b.m("POST").h(headers).b(body);
|
|
74
|
+
return b.build();
|
|
103
75
|
};
|
|
104
76
|
exports.se_CreateDetectorCommand = se_CreateDetectorCommand;
|
|
105
77
|
const se_CreateFilterCommand = async (input, context) => {
|
|
106
|
-
const
|
|
78
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
107
79
|
const headers = {
|
|
108
80
|
"content-type": "application/json",
|
|
109
81
|
};
|
|
110
|
-
|
|
111
|
-
|
|
82
|
+
b.bp("/detector/{DetectorId}/filter");
|
|
83
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
112
84
|
let body;
|
|
113
85
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
114
86
|
action: [, , `Action`],
|
|
@@ -119,24 +91,17 @@ const se_CreateFilterCommand = async (input, context) => {
|
|
|
119
91
|
rank: [, , `Rank`],
|
|
120
92
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
121
93
|
}));
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
hostname,
|
|
125
|
-
port,
|
|
126
|
-
method: "POST",
|
|
127
|
-
headers,
|
|
128
|
-
path: resolvedPath,
|
|
129
|
-
body,
|
|
130
|
-
});
|
|
94
|
+
b.m("POST").h(headers).b(body);
|
|
95
|
+
return b.build();
|
|
131
96
|
};
|
|
132
97
|
exports.se_CreateFilterCommand = se_CreateFilterCommand;
|
|
133
98
|
const se_CreateIPSetCommand = async (input, context) => {
|
|
134
|
-
const
|
|
99
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
135
100
|
const headers = {
|
|
136
101
|
"content-type": "application/json",
|
|
137
102
|
};
|
|
138
|
-
|
|
139
|
-
|
|
103
|
+
b.bp("/detector/{DetectorId}/ipset");
|
|
104
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
140
105
|
let body;
|
|
141
106
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
142
107
|
activate: [, , `Activate`],
|
|
@@ -146,93 +111,64 @@ const se_CreateIPSetCommand = async (input, context) => {
|
|
|
146
111
|
name: [, , `Name`],
|
|
147
112
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
148
113
|
}));
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
hostname,
|
|
152
|
-
port,
|
|
153
|
-
method: "POST",
|
|
154
|
-
headers,
|
|
155
|
-
path: resolvedPath,
|
|
156
|
-
body,
|
|
157
|
-
});
|
|
114
|
+
b.m("POST").h(headers).b(body);
|
|
115
|
+
return b.build();
|
|
158
116
|
};
|
|
159
117
|
exports.se_CreateIPSetCommand = se_CreateIPSetCommand;
|
|
160
118
|
const se_CreateMembersCommand = async (input, context) => {
|
|
161
|
-
const
|
|
119
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
162
120
|
const headers = {
|
|
163
121
|
"content-type": "application/json",
|
|
164
122
|
};
|
|
165
|
-
|
|
166
|
-
|
|
123
|
+
b.bp("/detector/{DetectorId}/member");
|
|
124
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
167
125
|
let body;
|
|
168
126
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
169
127
|
accountDetails: [, (_) => se_AccountDetails(_, context), `AccountDetails`],
|
|
170
128
|
}));
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
hostname,
|
|
174
|
-
port,
|
|
175
|
-
method: "POST",
|
|
176
|
-
headers,
|
|
177
|
-
path: resolvedPath,
|
|
178
|
-
body,
|
|
179
|
-
});
|
|
129
|
+
b.m("POST").h(headers).b(body);
|
|
130
|
+
return b.build();
|
|
180
131
|
};
|
|
181
132
|
exports.se_CreateMembersCommand = se_CreateMembersCommand;
|
|
182
133
|
const se_CreatePublishingDestinationCommand = async (input, context) => {
|
|
183
|
-
const
|
|
134
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
184
135
|
const headers = {
|
|
185
136
|
"content-type": "application/json",
|
|
186
137
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
138
|
+
b.bp("/detector/{DetectorId}/publishingDestination");
|
|
139
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
190
140
|
let body;
|
|
191
141
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
192
142
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)(), `ClientToken`],
|
|
193
143
|
destinationProperties: [, (_) => se_DestinationProperties(_, context), `DestinationProperties`],
|
|
194
144
|
destinationType: [, , `DestinationType`],
|
|
195
145
|
}));
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
hostname,
|
|
199
|
-
port,
|
|
200
|
-
method: "POST",
|
|
201
|
-
headers,
|
|
202
|
-
path: resolvedPath,
|
|
203
|
-
body,
|
|
204
|
-
});
|
|
146
|
+
b.m("POST").h(headers).b(body);
|
|
147
|
+
return b.build();
|
|
205
148
|
};
|
|
206
149
|
exports.se_CreatePublishingDestinationCommand = se_CreatePublishingDestinationCommand;
|
|
207
150
|
const se_CreateSampleFindingsCommand = async (input, context) => {
|
|
208
|
-
const
|
|
151
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
209
152
|
const headers = {
|
|
210
153
|
"content-type": "application/json",
|
|
211
154
|
};
|
|
212
|
-
|
|
213
|
-
|
|
155
|
+
b.bp("/detector/{DetectorId}/findings/create");
|
|
156
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
214
157
|
let body;
|
|
215
158
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
216
159
|
findingTypes: [, (_) => (0, smithy_client_1._json)(_), `FindingTypes`],
|
|
217
160
|
}));
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
hostname,
|
|
221
|
-
port,
|
|
222
|
-
method: "POST",
|
|
223
|
-
headers,
|
|
224
|
-
path: resolvedPath,
|
|
225
|
-
body,
|
|
226
|
-
});
|
|
161
|
+
b.m("POST").h(headers).b(body);
|
|
162
|
+
return b.build();
|
|
227
163
|
};
|
|
228
164
|
exports.se_CreateSampleFindingsCommand = se_CreateSampleFindingsCommand;
|
|
229
165
|
const se_CreateThreatIntelSetCommand = async (input, context) => {
|
|
230
|
-
const
|
|
166
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
231
167
|
const headers = {
|
|
232
168
|
"content-type": "application/json",
|
|
233
169
|
};
|
|
234
|
-
|
|
235
|
-
|
|
170
|
+
b.bp("/detector/{DetectorId}/threatintelset");
|
|
171
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
236
172
|
let body;
|
|
237
173
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
238
174
|
activate: [, , `Activate`],
|
|
@@ -242,180 +178,114 @@ const se_CreateThreatIntelSetCommand = async (input, context) => {
|
|
|
242
178
|
name: [, , `Name`],
|
|
243
179
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
244
180
|
}));
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
hostname,
|
|
248
|
-
port,
|
|
249
|
-
method: "POST",
|
|
250
|
-
headers,
|
|
251
|
-
path: resolvedPath,
|
|
252
|
-
body,
|
|
253
|
-
});
|
|
181
|
+
b.m("POST").h(headers).b(body);
|
|
182
|
+
return b.build();
|
|
254
183
|
};
|
|
255
184
|
exports.se_CreateThreatIntelSetCommand = se_CreateThreatIntelSetCommand;
|
|
256
185
|
const se_DeclineInvitationsCommand = async (input, context) => {
|
|
257
|
-
const
|
|
186
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
258
187
|
const headers = {
|
|
259
188
|
"content-type": "application/json",
|
|
260
189
|
};
|
|
261
|
-
|
|
190
|
+
b.bp("/invitation/decline");
|
|
262
191
|
let body;
|
|
263
192
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
264
193
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
265
194
|
}));
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "POST",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
body,
|
|
274
|
-
});
|
|
195
|
+
b.m("POST").h(headers).b(body);
|
|
196
|
+
return b.build();
|
|
275
197
|
};
|
|
276
198
|
exports.se_DeclineInvitationsCommand = se_DeclineInvitationsCommand;
|
|
277
199
|
const se_DeleteDetectorCommand = async (input, context) => {
|
|
278
|
-
const
|
|
200
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
279
201
|
const headers = {};
|
|
280
|
-
|
|
281
|
-
|
|
202
|
+
b.bp("/detector/{DetectorId}");
|
|
203
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
282
204
|
let body;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
hostname,
|
|
286
|
-
port,
|
|
287
|
-
method: "DELETE",
|
|
288
|
-
headers,
|
|
289
|
-
path: resolvedPath,
|
|
290
|
-
body,
|
|
291
|
-
});
|
|
205
|
+
b.m("DELETE").h(headers).b(body);
|
|
206
|
+
return b.build();
|
|
292
207
|
};
|
|
293
208
|
exports.se_DeleteDetectorCommand = se_DeleteDetectorCommand;
|
|
294
209
|
const se_DeleteFilterCommand = async (input, context) => {
|
|
295
|
-
const
|
|
210
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
296
211
|
const headers = {};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FilterName", () => input.FilterName, "{FilterName}", false);
|
|
212
|
+
b.bp("/detector/{DetectorId}/filter/{FilterName}");
|
|
213
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
214
|
+
b.p("FilterName", () => input.FilterName, "{FilterName}", false);
|
|
301
215
|
let body;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
hostname,
|
|
305
|
-
port,
|
|
306
|
-
method: "DELETE",
|
|
307
|
-
headers,
|
|
308
|
-
path: resolvedPath,
|
|
309
|
-
body,
|
|
310
|
-
});
|
|
216
|
+
b.m("DELETE").h(headers).b(body);
|
|
217
|
+
return b.build();
|
|
311
218
|
};
|
|
312
219
|
exports.se_DeleteFilterCommand = se_DeleteFilterCommand;
|
|
313
220
|
const se_DeleteInvitationsCommand = async (input, context) => {
|
|
314
|
-
const
|
|
221
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
315
222
|
const headers = {
|
|
316
223
|
"content-type": "application/json",
|
|
317
224
|
};
|
|
318
|
-
|
|
225
|
+
b.bp("/invitation/delete");
|
|
319
226
|
let body;
|
|
320
227
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
321
228
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
322
229
|
}));
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
hostname,
|
|
326
|
-
port,
|
|
327
|
-
method: "POST",
|
|
328
|
-
headers,
|
|
329
|
-
path: resolvedPath,
|
|
330
|
-
body,
|
|
331
|
-
});
|
|
230
|
+
b.m("POST").h(headers).b(body);
|
|
231
|
+
return b.build();
|
|
332
232
|
};
|
|
333
233
|
exports.se_DeleteInvitationsCommand = se_DeleteInvitationsCommand;
|
|
334
234
|
const se_DeleteIPSetCommand = async (input, context) => {
|
|
335
|
-
const
|
|
235
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
336
236
|
const headers = {};
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
237
|
+
b.bp("/detector/{DetectorId}/ipset/{IpSetId}");
|
|
238
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
239
|
+
b.p("IpSetId", () => input.IpSetId, "{IpSetId}", false);
|
|
340
240
|
let body;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
hostname,
|
|
344
|
-
port,
|
|
345
|
-
method: "DELETE",
|
|
346
|
-
headers,
|
|
347
|
-
path: resolvedPath,
|
|
348
|
-
body,
|
|
349
|
-
});
|
|
241
|
+
b.m("DELETE").h(headers).b(body);
|
|
242
|
+
return b.build();
|
|
350
243
|
};
|
|
351
244
|
exports.se_DeleteIPSetCommand = se_DeleteIPSetCommand;
|
|
352
245
|
const se_DeleteMembersCommand = async (input, context) => {
|
|
353
|
-
const
|
|
246
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
354
247
|
const headers = {
|
|
355
248
|
"content-type": "application/json",
|
|
356
249
|
};
|
|
357
|
-
|
|
358
|
-
|
|
250
|
+
b.bp("/detector/{DetectorId}/member/delete");
|
|
251
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
359
252
|
let body;
|
|
360
253
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
361
254
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
362
255
|
}));
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
hostname,
|
|
366
|
-
port,
|
|
367
|
-
method: "POST",
|
|
368
|
-
headers,
|
|
369
|
-
path: resolvedPath,
|
|
370
|
-
body,
|
|
371
|
-
});
|
|
256
|
+
b.m("POST").h(headers).b(body);
|
|
257
|
+
return b.build();
|
|
372
258
|
};
|
|
373
259
|
exports.se_DeleteMembersCommand = se_DeleteMembersCommand;
|
|
374
260
|
const se_DeletePublishingDestinationCommand = async (input, context) => {
|
|
375
|
-
const
|
|
261
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
376
262
|
const headers = {};
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
263
|
+
b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}");
|
|
264
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
265
|
+
b.p("DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
381
266
|
let body;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
hostname,
|
|
385
|
-
port,
|
|
386
|
-
method: "DELETE",
|
|
387
|
-
headers,
|
|
388
|
-
path: resolvedPath,
|
|
389
|
-
body,
|
|
390
|
-
});
|
|
267
|
+
b.m("DELETE").h(headers).b(body);
|
|
268
|
+
return b.build();
|
|
391
269
|
};
|
|
392
270
|
exports.se_DeletePublishingDestinationCommand = se_DeletePublishingDestinationCommand;
|
|
393
271
|
const se_DeleteThreatIntelSetCommand = async (input, context) => {
|
|
394
|
-
const
|
|
272
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
395
273
|
const headers = {};
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
274
|
+
b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}");
|
|
275
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
276
|
+
b.p("ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
400
277
|
let body;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
hostname,
|
|
404
|
-
port,
|
|
405
|
-
method: "DELETE",
|
|
406
|
-
headers,
|
|
407
|
-
path: resolvedPath,
|
|
408
|
-
body,
|
|
409
|
-
});
|
|
278
|
+
b.m("DELETE").h(headers).b(body);
|
|
279
|
+
return b.build();
|
|
410
280
|
};
|
|
411
281
|
exports.se_DeleteThreatIntelSetCommand = se_DeleteThreatIntelSetCommand;
|
|
412
282
|
const se_DescribeMalwareScansCommand = async (input, context) => {
|
|
413
|
-
const
|
|
283
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
414
284
|
const headers = {
|
|
415
285
|
"content-type": "application/json",
|
|
416
286
|
};
|
|
417
|
-
|
|
418
|
-
|
|
287
|
+
b.bp("/detector/{DetectorId}/malware-scans");
|
|
288
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
419
289
|
let body;
|
|
420
290
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
421
291
|
filterCriteria: [, (_) => se_FilterCriteria(_, context), `FilterCriteria`],
|
|
@@ -423,449 +293,283 @@ const se_DescribeMalwareScansCommand = async (input, context) => {
|
|
|
423
293
|
nextToken: [, , `NextToken`],
|
|
424
294
|
sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`],
|
|
425
295
|
}));
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
hostname,
|
|
429
|
-
port,
|
|
430
|
-
method: "POST",
|
|
431
|
-
headers,
|
|
432
|
-
path: resolvedPath,
|
|
433
|
-
body,
|
|
434
|
-
});
|
|
296
|
+
b.m("POST").h(headers).b(body);
|
|
297
|
+
return b.build();
|
|
435
298
|
};
|
|
436
299
|
exports.se_DescribeMalwareScansCommand = se_DescribeMalwareScansCommand;
|
|
437
300
|
const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
438
|
-
const
|
|
301
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
439
302
|
const headers = {};
|
|
440
|
-
|
|
441
|
-
|
|
303
|
+
b.bp("/detector/{DetectorId}/admin");
|
|
304
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
442
305
|
const query = (0, smithy_client_1.map)({
|
|
443
|
-
|
|
444
|
-
|
|
306
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
307
|
+
[_nT]: [, input[_NT]],
|
|
445
308
|
});
|
|
446
309
|
let body;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
hostname,
|
|
450
|
-
port,
|
|
451
|
-
method: "GET",
|
|
452
|
-
headers,
|
|
453
|
-
path: resolvedPath,
|
|
454
|
-
query,
|
|
455
|
-
body,
|
|
456
|
-
});
|
|
310
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
311
|
+
return b.build();
|
|
457
312
|
};
|
|
458
313
|
exports.se_DescribeOrganizationConfigurationCommand = se_DescribeOrganizationConfigurationCommand;
|
|
459
314
|
const se_DescribePublishingDestinationCommand = async (input, context) => {
|
|
460
|
-
const
|
|
315
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
461
316
|
const headers = {};
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
317
|
+
b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}");
|
|
318
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
319
|
+
b.p("DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
466
320
|
let body;
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
hostname,
|
|
470
|
-
port,
|
|
471
|
-
method: "GET",
|
|
472
|
-
headers,
|
|
473
|
-
path: resolvedPath,
|
|
474
|
-
body,
|
|
475
|
-
});
|
|
321
|
+
b.m("GET").h(headers).b(body);
|
|
322
|
+
return b.build();
|
|
476
323
|
};
|
|
477
324
|
exports.se_DescribePublishingDestinationCommand = se_DescribePublishingDestinationCommand;
|
|
478
325
|
const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
|
|
479
|
-
const
|
|
326
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
480
327
|
const headers = {
|
|
481
328
|
"content-type": "application/json",
|
|
482
329
|
};
|
|
483
|
-
|
|
330
|
+
b.bp("/admin/disable");
|
|
484
331
|
let body;
|
|
485
332
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
486
333
|
adminAccountId: [, , `AdminAccountId`],
|
|
487
334
|
}));
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
hostname,
|
|
491
|
-
port,
|
|
492
|
-
method: "POST",
|
|
493
|
-
headers,
|
|
494
|
-
path: resolvedPath,
|
|
495
|
-
body,
|
|
496
|
-
});
|
|
335
|
+
b.m("POST").h(headers).b(body);
|
|
336
|
+
return b.build();
|
|
497
337
|
};
|
|
498
338
|
exports.se_DisableOrganizationAdminAccountCommand = se_DisableOrganizationAdminAccountCommand;
|
|
499
339
|
const se_DisassociateFromAdministratorAccountCommand = async (input, context) => {
|
|
500
|
-
const
|
|
340
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
501
341
|
const headers = {};
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
342
|
+
b.bp("/detector/{DetectorId}/administrator/disassociate");
|
|
343
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
505
344
|
let body;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
hostname,
|
|
509
|
-
port,
|
|
510
|
-
method: "POST",
|
|
511
|
-
headers,
|
|
512
|
-
path: resolvedPath,
|
|
513
|
-
body,
|
|
514
|
-
});
|
|
345
|
+
b.m("POST").h(headers).b(body);
|
|
346
|
+
return b.build();
|
|
515
347
|
};
|
|
516
348
|
exports.se_DisassociateFromAdministratorAccountCommand = se_DisassociateFromAdministratorAccountCommand;
|
|
517
349
|
const se_DisassociateFromMasterAccountCommand = async (input, context) => {
|
|
518
|
-
const
|
|
350
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
519
351
|
const headers = {};
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
352
|
+
b.bp("/detector/{DetectorId}/master/disassociate");
|
|
353
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
523
354
|
let body;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
hostname,
|
|
527
|
-
port,
|
|
528
|
-
method: "POST",
|
|
529
|
-
headers,
|
|
530
|
-
path: resolvedPath,
|
|
531
|
-
body,
|
|
532
|
-
});
|
|
355
|
+
b.m("POST").h(headers).b(body);
|
|
356
|
+
return b.build();
|
|
533
357
|
};
|
|
534
358
|
exports.se_DisassociateFromMasterAccountCommand = se_DisassociateFromMasterAccountCommand;
|
|
535
359
|
const se_DisassociateMembersCommand = async (input, context) => {
|
|
536
|
-
const
|
|
360
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
537
361
|
const headers = {
|
|
538
362
|
"content-type": "application/json",
|
|
539
363
|
};
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
364
|
+
b.bp("/detector/{DetectorId}/member/disassociate");
|
|
365
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
543
366
|
let body;
|
|
544
367
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
545
368
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
546
369
|
}));
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
hostname,
|
|
550
|
-
port,
|
|
551
|
-
method: "POST",
|
|
552
|
-
headers,
|
|
553
|
-
path: resolvedPath,
|
|
554
|
-
body,
|
|
555
|
-
});
|
|
370
|
+
b.m("POST").h(headers).b(body);
|
|
371
|
+
return b.build();
|
|
556
372
|
};
|
|
557
373
|
exports.se_DisassociateMembersCommand = se_DisassociateMembersCommand;
|
|
558
374
|
const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
|
|
559
|
-
const
|
|
375
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
560
376
|
const headers = {
|
|
561
377
|
"content-type": "application/json",
|
|
562
378
|
};
|
|
563
|
-
|
|
379
|
+
b.bp("/admin/enable");
|
|
564
380
|
let body;
|
|
565
381
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
566
382
|
adminAccountId: [, , `AdminAccountId`],
|
|
567
383
|
}));
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
hostname,
|
|
571
|
-
port,
|
|
572
|
-
method: "POST",
|
|
573
|
-
headers,
|
|
574
|
-
path: resolvedPath,
|
|
575
|
-
body,
|
|
576
|
-
});
|
|
384
|
+
b.m("POST").h(headers).b(body);
|
|
385
|
+
return b.build();
|
|
577
386
|
};
|
|
578
387
|
exports.se_EnableOrganizationAdminAccountCommand = se_EnableOrganizationAdminAccountCommand;
|
|
579
388
|
const se_GetAdministratorAccountCommand = async (input, context) => {
|
|
580
|
-
const
|
|
389
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
581
390
|
const headers = {};
|
|
582
|
-
|
|
583
|
-
|
|
391
|
+
b.bp("/detector/{DetectorId}/administrator");
|
|
392
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
584
393
|
let body;
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
hostname,
|
|
588
|
-
port,
|
|
589
|
-
method: "GET",
|
|
590
|
-
headers,
|
|
591
|
-
path: resolvedPath,
|
|
592
|
-
body,
|
|
593
|
-
});
|
|
394
|
+
b.m("GET").h(headers).b(body);
|
|
395
|
+
return b.build();
|
|
594
396
|
};
|
|
595
397
|
exports.se_GetAdministratorAccountCommand = se_GetAdministratorAccountCommand;
|
|
596
398
|
const se_GetCoverageStatisticsCommand = async (input, context) => {
|
|
597
|
-
const
|
|
399
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
598
400
|
const headers = {
|
|
599
401
|
"content-type": "application/json",
|
|
600
402
|
};
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
403
|
+
b.bp("/detector/{DetectorId}/coverage/statistics");
|
|
404
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
604
405
|
let body;
|
|
605
406
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
606
407
|
filterCriteria: [, (_) => se_CoverageFilterCriteria(_, context), `FilterCriteria`],
|
|
607
408
|
statisticsType: [, (_) => (0, smithy_client_1._json)(_), `StatisticsType`],
|
|
608
409
|
}));
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
hostname,
|
|
612
|
-
port,
|
|
613
|
-
method: "POST",
|
|
614
|
-
headers,
|
|
615
|
-
path: resolvedPath,
|
|
616
|
-
body,
|
|
617
|
-
});
|
|
410
|
+
b.m("POST").h(headers).b(body);
|
|
411
|
+
return b.build();
|
|
618
412
|
};
|
|
619
413
|
exports.se_GetCoverageStatisticsCommand = se_GetCoverageStatisticsCommand;
|
|
620
414
|
const se_GetDetectorCommand = async (input, context) => {
|
|
621
|
-
const
|
|
415
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
622
416
|
const headers = {};
|
|
623
|
-
|
|
624
|
-
|
|
417
|
+
b.bp("/detector/{DetectorId}");
|
|
418
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
625
419
|
let body;
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
hostname,
|
|
629
|
-
port,
|
|
630
|
-
method: "GET",
|
|
631
|
-
headers,
|
|
632
|
-
path: resolvedPath,
|
|
633
|
-
body,
|
|
634
|
-
});
|
|
420
|
+
b.m("GET").h(headers).b(body);
|
|
421
|
+
return b.build();
|
|
635
422
|
};
|
|
636
423
|
exports.se_GetDetectorCommand = se_GetDetectorCommand;
|
|
637
424
|
const se_GetFilterCommand = async (input, context) => {
|
|
638
|
-
const
|
|
425
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
639
426
|
const headers = {};
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FilterName", () => input.FilterName, "{FilterName}", false);
|
|
427
|
+
b.bp("/detector/{DetectorId}/filter/{FilterName}");
|
|
428
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
429
|
+
b.p("FilterName", () => input.FilterName, "{FilterName}", false);
|
|
644
430
|
let body;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
hostname,
|
|
648
|
-
port,
|
|
649
|
-
method: "GET",
|
|
650
|
-
headers,
|
|
651
|
-
path: resolvedPath,
|
|
652
|
-
body,
|
|
653
|
-
});
|
|
431
|
+
b.m("GET").h(headers).b(body);
|
|
432
|
+
return b.build();
|
|
654
433
|
};
|
|
655
434
|
exports.se_GetFilterCommand = se_GetFilterCommand;
|
|
656
435
|
const se_GetFindingsCommand = async (input, context) => {
|
|
657
|
-
const
|
|
436
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
658
437
|
const headers = {
|
|
659
438
|
"content-type": "application/json",
|
|
660
439
|
};
|
|
661
|
-
|
|
662
|
-
|
|
440
|
+
b.bp("/detector/{DetectorId}/findings/get");
|
|
441
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
663
442
|
let body;
|
|
664
443
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
665
444
|
findingIds: [, (_) => (0, smithy_client_1._json)(_), `FindingIds`],
|
|
666
445
|
sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`],
|
|
667
446
|
}));
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
hostname,
|
|
671
|
-
port,
|
|
672
|
-
method: "POST",
|
|
673
|
-
headers,
|
|
674
|
-
path: resolvedPath,
|
|
675
|
-
body,
|
|
676
|
-
});
|
|
447
|
+
b.m("POST").h(headers).b(body);
|
|
448
|
+
return b.build();
|
|
677
449
|
};
|
|
678
450
|
exports.se_GetFindingsCommand = se_GetFindingsCommand;
|
|
679
451
|
const se_GetFindingsStatisticsCommand = async (input, context) => {
|
|
680
|
-
const
|
|
452
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
681
453
|
const headers = {
|
|
682
454
|
"content-type": "application/json",
|
|
683
455
|
};
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
456
|
+
b.bp("/detector/{DetectorId}/findings/statistics");
|
|
457
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
687
458
|
let body;
|
|
688
459
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
689
460
|
findingCriteria: [, (_) => se_FindingCriteria(_, context), `FindingCriteria`],
|
|
690
461
|
findingStatisticTypes: [, (_) => (0, smithy_client_1._json)(_), `FindingStatisticTypes`],
|
|
691
462
|
}));
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
hostname,
|
|
695
|
-
port,
|
|
696
|
-
method: "POST",
|
|
697
|
-
headers,
|
|
698
|
-
path: resolvedPath,
|
|
699
|
-
body,
|
|
700
|
-
});
|
|
463
|
+
b.m("POST").h(headers).b(body);
|
|
464
|
+
return b.build();
|
|
701
465
|
};
|
|
702
466
|
exports.se_GetFindingsStatisticsCommand = se_GetFindingsStatisticsCommand;
|
|
703
467
|
const se_GetInvitationsCountCommand = async (input, context) => {
|
|
704
|
-
const
|
|
468
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
705
469
|
const headers = {
|
|
706
470
|
"content-type": "application/json",
|
|
707
471
|
};
|
|
708
|
-
|
|
472
|
+
b.bp("/invitation/count");
|
|
709
473
|
let body;
|
|
710
474
|
body = "";
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
hostname,
|
|
714
|
-
port,
|
|
715
|
-
method: "GET",
|
|
716
|
-
headers,
|
|
717
|
-
path: resolvedPath,
|
|
718
|
-
body,
|
|
719
|
-
});
|
|
475
|
+
b.m("GET").h(headers).b(body);
|
|
476
|
+
return b.build();
|
|
720
477
|
};
|
|
721
478
|
exports.se_GetInvitationsCountCommand = se_GetInvitationsCountCommand;
|
|
722
479
|
const se_GetIPSetCommand = async (input, context) => {
|
|
723
|
-
const
|
|
480
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
724
481
|
const headers = {};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
482
|
+
b.bp("/detector/{DetectorId}/ipset/{IpSetId}");
|
|
483
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
484
|
+
b.p("IpSetId", () => input.IpSetId, "{IpSetId}", false);
|
|
728
485
|
let body;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
hostname,
|
|
732
|
-
port,
|
|
733
|
-
method: "GET",
|
|
734
|
-
headers,
|
|
735
|
-
path: resolvedPath,
|
|
736
|
-
body,
|
|
737
|
-
});
|
|
486
|
+
b.m("GET").h(headers).b(body);
|
|
487
|
+
return b.build();
|
|
738
488
|
};
|
|
739
489
|
exports.se_GetIPSetCommand = se_GetIPSetCommand;
|
|
740
490
|
const se_GetMalwareScanSettingsCommand = async (input, context) => {
|
|
741
|
-
const
|
|
491
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
742
492
|
const headers = {};
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
493
|
+
b.bp("/detector/{DetectorId}/malware-scan-settings");
|
|
494
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
746
495
|
let body;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
hostname,
|
|
750
|
-
port,
|
|
751
|
-
method: "GET",
|
|
752
|
-
headers,
|
|
753
|
-
path: resolvedPath,
|
|
754
|
-
body,
|
|
755
|
-
});
|
|
496
|
+
b.m("GET").h(headers).b(body);
|
|
497
|
+
return b.build();
|
|
756
498
|
};
|
|
757
499
|
exports.se_GetMalwareScanSettingsCommand = se_GetMalwareScanSettingsCommand;
|
|
758
500
|
const se_GetMasterAccountCommand = async (input, context) => {
|
|
759
|
-
const
|
|
501
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
760
502
|
const headers = {};
|
|
761
|
-
|
|
762
|
-
|
|
503
|
+
b.bp("/detector/{DetectorId}/master");
|
|
504
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
763
505
|
let body;
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
hostname,
|
|
767
|
-
port,
|
|
768
|
-
method: "GET",
|
|
769
|
-
headers,
|
|
770
|
-
path: resolvedPath,
|
|
771
|
-
body,
|
|
772
|
-
});
|
|
506
|
+
b.m("GET").h(headers).b(body);
|
|
507
|
+
return b.build();
|
|
773
508
|
};
|
|
774
509
|
exports.se_GetMasterAccountCommand = se_GetMasterAccountCommand;
|
|
775
510
|
const se_GetMemberDetectorsCommand = async (input, context) => {
|
|
776
|
-
const
|
|
511
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
777
512
|
const headers = {
|
|
778
513
|
"content-type": "application/json",
|
|
779
514
|
};
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
515
|
+
b.bp("/detector/{DetectorId}/member/detector/get");
|
|
516
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
783
517
|
let body;
|
|
784
518
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
785
519
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
786
520
|
}));
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
hostname,
|
|
790
|
-
port,
|
|
791
|
-
method: "POST",
|
|
792
|
-
headers,
|
|
793
|
-
path: resolvedPath,
|
|
794
|
-
body,
|
|
795
|
-
});
|
|
521
|
+
b.m("POST").h(headers).b(body);
|
|
522
|
+
return b.build();
|
|
796
523
|
};
|
|
797
524
|
exports.se_GetMemberDetectorsCommand = se_GetMemberDetectorsCommand;
|
|
798
525
|
const se_GetMembersCommand = async (input, context) => {
|
|
799
|
-
const
|
|
526
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
800
527
|
const headers = {
|
|
801
528
|
"content-type": "application/json",
|
|
802
529
|
};
|
|
803
|
-
|
|
804
|
-
|
|
530
|
+
b.bp("/detector/{DetectorId}/member/get");
|
|
531
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
805
532
|
let body;
|
|
806
533
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
807
534
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
808
535
|
}));
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
hostname,
|
|
812
|
-
port,
|
|
813
|
-
method: "POST",
|
|
814
|
-
headers,
|
|
815
|
-
path: resolvedPath,
|
|
816
|
-
body,
|
|
817
|
-
});
|
|
536
|
+
b.m("POST").h(headers).b(body);
|
|
537
|
+
return b.build();
|
|
818
538
|
};
|
|
819
539
|
exports.se_GetMembersCommand = se_GetMembersCommand;
|
|
820
540
|
const se_GetRemainingFreeTrialDaysCommand = async (input, context) => {
|
|
821
|
-
const
|
|
541
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
822
542
|
const headers = {
|
|
823
543
|
"content-type": "application/json",
|
|
824
544
|
};
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
545
|
+
b.bp("/detector/{DetectorId}/freeTrial/daysRemaining");
|
|
546
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
828
547
|
let body;
|
|
829
548
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
830
549
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
831
550
|
}));
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
hostname,
|
|
835
|
-
port,
|
|
836
|
-
method: "POST",
|
|
837
|
-
headers,
|
|
838
|
-
path: resolvedPath,
|
|
839
|
-
body,
|
|
840
|
-
});
|
|
551
|
+
b.m("POST").h(headers).b(body);
|
|
552
|
+
return b.build();
|
|
841
553
|
};
|
|
842
554
|
exports.se_GetRemainingFreeTrialDaysCommand = se_GetRemainingFreeTrialDaysCommand;
|
|
843
555
|
const se_GetThreatIntelSetCommand = async (input, context) => {
|
|
844
|
-
const
|
|
556
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
845
557
|
const headers = {};
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
558
|
+
b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}");
|
|
559
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
560
|
+
b.p("ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
850
561
|
let body;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
hostname,
|
|
854
|
-
port,
|
|
855
|
-
method: "GET",
|
|
856
|
-
headers,
|
|
857
|
-
path: resolvedPath,
|
|
858
|
-
body,
|
|
859
|
-
});
|
|
562
|
+
b.m("GET").h(headers).b(body);
|
|
563
|
+
return b.build();
|
|
860
564
|
};
|
|
861
565
|
exports.se_GetThreatIntelSetCommand = se_GetThreatIntelSetCommand;
|
|
862
566
|
const se_GetUsageStatisticsCommand = async (input, context) => {
|
|
863
|
-
const
|
|
567
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
864
568
|
const headers = {
|
|
865
569
|
"content-type": "application/json",
|
|
866
570
|
};
|
|
867
|
-
|
|
868
|
-
|
|
571
|
+
b.bp("/detector/{DetectorId}/usage/statistics");
|
|
572
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
869
573
|
let body;
|
|
870
574
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
871
575
|
maxResults: [, , `MaxResults`],
|
|
@@ -874,48 +578,34 @@ const se_GetUsageStatisticsCommand = async (input, context) => {
|
|
|
874
578
|
usageCriteria: [, (_) => se_UsageCriteria(_, context), `UsageCriteria`],
|
|
875
579
|
usageStatisticsType: [, , `UsageStatisticType`],
|
|
876
580
|
}));
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
hostname,
|
|
880
|
-
port,
|
|
881
|
-
method: "POST",
|
|
882
|
-
headers,
|
|
883
|
-
path: resolvedPath,
|
|
884
|
-
body,
|
|
885
|
-
});
|
|
581
|
+
b.m("POST").h(headers).b(body);
|
|
582
|
+
return b.build();
|
|
886
583
|
};
|
|
887
584
|
exports.se_GetUsageStatisticsCommand = se_GetUsageStatisticsCommand;
|
|
888
585
|
const se_InviteMembersCommand = async (input, context) => {
|
|
889
|
-
const
|
|
586
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
890
587
|
const headers = {
|
|
891
588
|
"content-type": "application/json",
|
|
892
589
|
};
|
|
893
|
-
|
|
894
|
-
|
|
590
|
+
b.bp("/detector/{DetectorId}/member/invite");
|
|
591
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
895
592
|
let body;
|
|
896
593
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
897
594
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
898
595
|
disableEmailNotification: [, , `DisableEmailNotification`],
|
|
899
596
|
message: [, , `Message`],
|
|
900
597
|
}));
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
hostname,
|
|
904
|
-
port,
|
|
905
|
-
method: "POST",
|
|
906
|
-
headers,
|
|
907
|
-
path: resolvedPath,
|
|
908
|
-
body,
|
|
909
|
-
});
|
|
598
|
+
b.m("POST").h(headers).b(body);
|
|
599
|
+
return b.build();
|
|
910
600
|
};
|
|
911
601
|
exports.se_InviteMembersCommand = se_InviteMembersCommand;
|
|
912
602
|
const se_ListCoverageCommand = async (input, context) => {
|
|
913
|
-
const
|
|
603
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
914
604
|
const headers = {
|
|
915
605
|
"content-type": "application/json",
|
|
916
606
|
};
|
|
917
|
-
|
|
918
|
-
|
|
607
|
+
b.bp("/detector/{DetectorId}/coverage");
|
|
608
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
919
609
|
let body;
|
|
920
610
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
921
611
|
filterCriteria: [, (_) => se_CoverageFilterCriteria(_, context), `FilterCriteria`],
|
|
@@ -923,67 +613,44 @@ const se_ListCoverageCommand = async (input, context) => {
|
|
|
923
613
|
nextToken: [, , `NextToken`],
|
|
924
614
|
sortCriteria: [, (_) => se_CoverageSortCriteria(_, context), `SortCriteria`],
|
|
925
615
|
}));
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
hostname,
|
|
929
|
-
port,
|
|
930
|
-
method: "POST",
|
|
931
|
-
headers,
|
|
932
|
-
path: resolvedPath,
|
|
933
|
-
body,
|
|
934
|
-
});
|
|
616
|
+
b.m("POST").h(headers).b(body);
|
|
617
|
+
return b.build();
|
|
935
618
|
};
|
|
936
619
|
exports.se_ListCoverageCommand = se_ListCoverageCommand;
|
|
937
620
|
const se_ListDetectorsCommand = async (input, context) => {
|
|
938
|
-
const
|
|
621
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
939
622
|
const headers = {};
|
|
940
|
-
|
|
623
|
+
b.bp("/detector");
|
|
941
624
|
const query = (0, smithy_client_1.map)({
|
|
942
|
-
|
|
943
|
-
|
|
625
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
626
|
+
[_nT]: [, input[_NT]],
|
|
944
627
|
});
|
|
945
628
|
let body;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
hostname,
|
|
949
|
-
port,
|
|
950
|
-
method: "GET",
|
|
951
|
-
headers,
|
|
952
|
-
path: resolvedPath,
|
|
953
|
-
query,
|
|
954
|
-
body,
|
|
955
|
-
});
|
|
629
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
630
|
+
return b.build();
|
|
956
631
|
};
|
|
957
632
|
exports.se_ListDetectorsCommand = se_ListDetectorsCommand;
|
|
958
633
|
const se_ListFiltersCommand = async (input, context) => {
|
|
959
|
-
const
|
|
634
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
960
635
|
const headers = {};
|
|
961
|
-
|
|
962
|
-
|
|
636
|
+
b.bp("/detector/{DetectorId}/filter");
|
|
637
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
963
638
|
const query = (0, smithy_client_1.map)({
|
|
964
|
-
|
|
965
|
-
|
|
639
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
640
|
+
[_nT]: [, input[_NT]],
|
|
966
641
|
});
|
|
967
642
|
let body;
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
hostname,
|
|
971
|
-
port,
|
|
972
|
-
method: "GET",
|
|
973
|
-
headers,
|
|
974
|
-
path: resolvedPath,
|
|
975
|
-
query,
|
|
976
|
-
body,
|
|
977
|
-
});
|
|
643
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
644
|
+
return b.build();
|
|
978
645
|
};
|
|
979
646
|
exports.se_ListFiltersCommand = se_ListFiltersCommand;
|
|
980
647
|
const se_ListFindingsCommand = async (input, context) => {
|
|
981
|
-
const
|
|
648
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
982
649
|
const headers = {
|
|
983
650
|
"content-type": "application/json",
|
|
984
651
|
};
|
|
985
|
-
|
|
986
|
-
|
|
652
|
+
b.bp("/detector/{DetectorId}/findings");
|
|
653
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
987
654
|
let body;
|
|
988
655
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
989
656
|
findingCriteria: [, (_) => se_FindingCriteria(_, context), `FindingCriteria`],
|
|
@@ -991,306 +658,200 @@ const se_ListFindingsCommand = async (input, context) => {
|
|
|
991
658
|
nextToken: [, , `NextToken`],
|
|
992
659
|
sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`],
|
|
993
660
|
}));
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
hostname,
|
|
997
|
-
port,
|
|
998
|
-
method: "POST",
|
|
999
|
-
headers,
|
|
1000
|
-
path: resolvedPath,
|
|
1001
|
-
body,
|
|
1002
|
-
});
|
|
661
|
+
b.m("POST").h(headers).b(body);
|
|
662
|
+
return b.build();
|
|
1003
663
|
};
|
|
1004
664
|
exports.se_ListFindingsCommand = se_ListFindingsCommand;
|
|
1005
665
|
const se_ListInvitationsCommand = async (input, context) => {
|
|
1006
|
-
const
|
|
666
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1007
667
|
const headers = {};
|
|
1008
|
-
|
|
668
|
+
b.bp("/invitation");
|
|
1009
669
|
const query = (0, smithy_client_1.map)({
|
|
1010
|
-
|
|
1011
|
-
|
|
670
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
671
|
+
[_nT]: [, input[_NT]],
|
|
1012
672
|
});
|
|
1013
673
|
let body;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
hostname,
|
|
1017
|
-
port,
|
|
1018
|
-
method: "GET",
|
|
1019
|
-
headers,
|
|
1020
|
-
path: resolvedPath,
|
|
1021
|
-
query,
|
|
1022
|
-
body,
|
|
1023
|
-
});
|
|
674
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
675
|
+
return b.build();
|
|
1024
676
|
};
|
|
1025
677
|
exports.se_ListInvitationsCommand = se_ListInvitationsCommand;
|
|
1026
678
|
const se_ListIPSetsCommand = async (input, context) => {
|
|
1027
|
-
const
|
|
679
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1028
680
|
const headers = {};
|
|
1029
|
-
|
|
1030
|
-
|
|
681
|
+
b.bp("/detector/{DetectorId}/ipset");
|
|
682
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1031
683
|
const query = (0, smithy_client_1.map)({
|
|
1032
|
-
|
|
1033
|
-
|
|
684
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
685
|
+
[_nT]: [, input[_NT]],
|
|
1034
686
|
});
|
|
1035
687
|
let body;
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
hostname,
|
|
1039
|
-
port,
|
|
1040
|
-
method: "GET",
|
|
1041
|
-
headers,
|
|
1042
|
-
path: resolvedPath,
|
|
1043
|
-
query,
|
|
1044
|
-
body,
|
|
1045
|
-
});
|
|
688
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
689
|
+
return b.build();
|
|
1046
690
|
};
|
|
1047
691
|
exports.se_ListIPSetsCommand = se_ListIPSetsCommand;
|
|
1048
692
|
const se_ListMembersCommand = async (input, context) => {
|
|
1049
|
-
const
|
|
693
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1050
694
|
const headers = {};
|
|
1051
|
-
|
|
1052
|
-
|
|
695
|
+
b.bp("/detector/{DetectorId}/member");
|
|
696
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1053
697
|
const query = (0, smithy_client_1.map)({
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
698
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
699
|
+
[_nT]: [, input[_NT]],
|
|
700
|
+
[_oA]: [, input[_OA]],
|
|
1057
701
|
});
|
|
1058
702
|
let body;
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
hostname,
|
|
1062
|
-
port,
|
|
1063
|
-
method: "GET",
|
|
1064
|
-
headers,
|
|
1065
|
-
path: resolvedPath,
|
|
1066
|
-
query,
|
|
1067
|
-
body,
|
|
1068
|
-
});
|
|
703
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
704
|
+
return b.build();
|
|
1069
705
|
};
|
|
1070
706
|
exports.se_ListMembersCommand = se_ListMembersCommand;
|
|
1071
707
|
const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
|
|
1072
|
-
const
|
|
708
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1073
709
|
const headers = {};
|
|
1074
|
-
|
|
710
|
+
b.bp("/admin");
|
|
1075
711
|
const query = (0, smithy_client_1.map)({
|
|
1076
|
-
|
|
1077
|
-
|
|
712
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
713
|
+
[_nT]: [, input[_NT]],
|
|
1078
714
|
});
|
|
1079
715
|
let body;
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
hostname,
|
|
1083
|
-
port,
|
|
1084
|
-
method: "GET",
|
|
1085
|
-
headers,
|
|
1086
|
-
path: resolvedPath,
|
|
1087
|
-
query,
|
|
1088
|
-
body,
|
|
1089
|
-
});
|
|
716
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
717
|
+
return b.build();
|
|
1090
718
|
};
|
|
1091
719
|
exports.se_ListOrganizationAdminAccountsCommand = se_ListOrganizationAdminAccountsCommand;
|
|
1092
720
|
const se_ListPublishingDestinationsCommand = async (input, context) => {
|
|
1093
|
-
const
|
|
721
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1094
722
|
const headers = {};
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
723
|
+
b.bp("/detector/{DetectorId}/publishingDestination");
|
|
724
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1098
725
|
const query = (0, smithy_client_1.map)({
|
|
1099
|
-
|
|
1100
|
-
|
|
726
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
727
|
+
[_nT]: [, input[_NT]],
|
|
1101
728
|
});
|
|
1102
729
|
let body;
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
hostname,
|
|
1106
|
-
port,
|
|
1107
|
-
method: "GET",
|
|
1108
|
-
headers,
|
|
1109
|
-
path: resolvedPath,
|
|
1110
|
-
query,
|
|
1111
|
-
body,
|
|
1112
|
-
});
|
|
730
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
731
|
+
return b.build();
|
|
1113
732
|
};
|
|
1114
733
|
exports.se_ListPublishingDestinationsCommand = se_ListPublishingDestinationsCommand;
|
|
1115
734
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
1116
|
-
const
|
|
735
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1117
736
|
const headers = {};
|
|
1118
|
-
|
|
1119
|
-
|
|
737
|
+
b.bp("/tags/{ResourceArn}");
|
|
738
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1120
739
|
let body;
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
hostname,
|
|
1124
|
-
port,
|
|
1125
|
-
method: "GET",
|
|
1126
|
-
headers,
|
|
1127
|
-
path: resolvedPath,
|
|
1128
|
-
body,
|
|
1129
|
-
});
|
|
740
|
+
b.m("GET").h(headers).b(body);
|
|
741
|
+
return b.build();
|
|
1130
742
|
};
|
|
1131
743
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1132
744
|
const se_ListThreatIntelSetsCommand = async (input, context) => {
|
|
1133
|
-
const
|
|
745
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1134
746
|
const headers = {};
|
|
1135
|
-
|
|
1136
|
-
|
|
747
|
+
b.bp("/detector/{DetectorId}/threatintelset");
|
|
748
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1137
749
|
const query = (0, smithy_client_1.map)({
|
|
1138
|
-
|
|
1139
|
-
|
|
750
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
751
|
+
[_nT]: [, input[_NT]],
|
|
1140
752
|
});
|
|
1141
753
|
let body;
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
hostname,
|
|
1145
|
-
port,
|
|
1146
|
-
method: "GET",
|
|
1147
|
-
headers,
|
|
1148
|
-
path: resolvedPath,
|
|
1149
|
-
query,
|
|
1150
|
-
body,
|
|
1151
|
-
});
|
|
754
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
755
|
+
return b.build();
|
|
1152
756
|
};
|
|
1153
757
|
exports.se_ListThreatIntelSetsCommand = se_ListThreatIntelSetsCommand;
|
|
1154
758
|
const se_StartMalwareScanCommand = async (input, context) => {
|
|
1155
|
-
const
|
|
759
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1156
760
|
const headers = {
|
|
1157
761
|
"content-type": "application/json",
|
|
1158
762
|
};
|
|
1159
|
-
|
|
763
|
+
b.bp("/malware-scan/start");
|
|
1160
764
|
let body;
|
|
1161
765
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1162
766
|
resourceArn: [, , `ResourceArn`],
|
|
1163
767
|
}));
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
hostname,
|
|
1167
|
-
port,
|
|
1168
|
-
method: "POST",
|
|
1169
|
-
headers,
|
|
1170
|
-
path: resolvedPath,
|
|
1171
|
-
body,
|
|
1172
|
-
});
|
|
768
|
+
b.m("POST").h(headers).b(body);
|
|
769
|
+
return b.build();
|
|
1173
770
|
};
|
|
1174
771
|
exports.se_StartMalwareScanCommand = se_StartMalwareScanCommand;
|
|
1175
772
|
const se_StartMonitoringMembersCommand = async (input, context) => {
|
|
1176
|
-
const
|
|
773
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1177
774
|
const headers = {
|
|
1178
775
|
"content-type": "application/json",
|
|
1179
776
|
};
|
|
1180
|
-
|
|
1181
|
-
|
|
777
|
+
b.bp("/detector/{DetectorId}/member/start");
|
|
778
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1182
779
|
let body;
|
|
1183
780
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1184
781
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
1185
782
|
}));
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
hostname,
|
|
1189
|
-
port,
|
|
1190
|
-
method: "POST",
|
|
1191
|
-
headers,
|
|
1192
|
-
path: resolvedPath,
|
|
1193
|
-
body,
|
|
1194
|
-
});
|
|
783
|
+
b.m("POST").h(headers).b(body);
|
|
784
|
+
return b.build();
|
|
1195
785
|
};
|
|
1196
786
|
exports.se_StartMonitoringMembersCommand = se_StartMonitoringMembersCommand;
|
|
1197
787
|
const se_StopMonitoringMembersCommand = async (input, context) => {
|
|
1198
|
-
const
|
|
788
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1199
789
|
const headers = {
|
|
1200
790
|
"content-type": "application/json",
|
|
1201
791
|
};
|
|
1202
|
-
|
|
1203
|
-
|
|
792
|
+
b.bp("/detector/{DetectorId}/member/stop");
|
|
793
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1204
794
|
let body;
|
|
1205
795
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1206
796
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
1207
797
|
}));
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
hostname,
|
|
1211
|
-
port,
|
|
1212
|
-
method: "POST",
|
|
1213
|
-
headers,
|
|
1214
|
-
path: resolvedPath,
|
|
1215
|
-
body,
|
|
1216
|
-
});
|
|
798
|
+
b.m("POST").h(headers).b(body);
|
|
799
|
+
return b.build();
|
|
1217
800
|
};
|
|
1218
801
|
exports.se_StopMonitoringMembersCommand = se_StopMonitoringMembersCommand;
|
|
1219
802
|
const se_TagResourceCommand = async (input, context) => {
|
|
1220
|
-
const
|
|
803
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1221
804
|
const headers = {
|
|
1222
805
|
"content-type": "application/json",
|
|
1223
806
|
};
|
|
1224
|
-
|
|
1225
|
-
|
|
807
|
+
b.bp("/tags/{ResourceArn}");
|
|
808
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1226
809
|
let body;
|
|
1227
810
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1228
811
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
1229
812
|
}));
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
hostname,
|
|
1233
|
-
port,
|
|
1234
|
-
method: "POST",
|
|
1235
|
-
headers,
|
|
1236
|
-
path: resolvedPath,
|
|
1237
|
-
body,
|
|
1238
|
-
});
|
|
813
|
+
b.m("POST").h(headers).b(body);
|
|
814
|
+
return b.build();
|
|
1239
815
|
};
|
|
1240
816
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1241
817
|
const se_UnarchiveFindingsCommand = async (input, context) => {
|
|
1242
|
-
const
|
|
818
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1243
819
|
const headers = {
|
|
1244
820
|
"content-type": "application/json",
|
|
1245
821
|
};
|
|
1246
|
-
|
|
1247
|
-
|
|
822
|
+
b.bp("/detector/{DetectorId}/findings/unarchive");
|
|
823
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1248
824
|
let body;
|
|
1249
825
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1250
826
|
findingIds: [, (_) => (0, smithy_client_1._json)(_), `FindingIds`],
|
|
1251
827
|
}));
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
hostname,
|
|
1255
|
-
port,
|
|
1256
|
-
method: "POST",
|
|
1257
|
-
headers,
|
|
1258
|
-
path: resolvedPath,
|
|
1259
|
-
body,
|
|
1260
|
-
});
|
|
828
|
+
b.m("POST").h(headers).b(body);
|
|
829
|
+
return b.build();
|
|
1261
830
|
};
|
|
1262
831
|
exports.se_UnarchiveFindingsCommand = se_UnarchiveFindingsCommand;
|
|
1263
832
|
const se_UntagResourceCommand = async (input, context) => {
|
|
1264
|
-
const
|
|
833
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1265
834
|
const headers = {};
|
|
1266
|
-
|
|
1267
|
-
|
|
835
|
+
b.bp("/tags/{ResourceArn}");
|
|
836
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1268
837
|
const query = (0, smithy_client_1.map)({
|
|
1269
|
-
|
|
838
|
+
[_tK]: [
|
|
1270
839
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
1271
|
-
() => (input
|
|
840
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
1272
841
|
],
|
|
1273
842
|
});
|
|
1274
843
|
let body;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
hostname,
|
|
1278
|
-
port,
|
|
1279
|
-
method: "DELETE",
|
|
1280
|
-
headers,
|
|
1281
|
-
path: resolvedPath,
|
|
1282
|
-
query,
|
|
1283
|
-
body,
|
|
1284
|
-
});
|
|
844
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
845
|
+
return b.build();
|
|
1285
846
|
};
|
|
1286
847
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1287
848
|
const se_UpdateDetectorCommand = async (input, context) => {
|
|
1288
|
-
const
|
|
849
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1289
850
|
const headers = {
|
|
1290
851
|
"content-type": "application/json",
|
|
1291
852
|
};
|
|
1292
|
-
|
|
1293
|
-
|
|
853
|
+
b.bp("/detector/{DetectorId}");
|
|
854
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1294
855
|
let body;
|
|
1295
856
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1296
857
|
dataSources: [, (_) => se_DataSourceConfigurations(_, context), `DataSources`],
|
|
@@ -1298,26 +859,18 @@ const se_UpdateDetectorCommand = async (input, context) => {
|
|
|
1298
859
|
features: [, (_) => se_DetectorFeatureConfigurations(_, context), `Features`],
|
|
1299
860
|
findingPublishingFrequency: [, , `FindingPublishingFrequency`],
|
|
1300
861
|
}));
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
hostname,
|
|
1304
|
-
port,
|
|
1305
|
-
method: "POST",
|
|
1306
|
-
headers,
|
|
1307
|
-
path: resolvedPath,
|
|
1308
|
-
body,
|
|
1309
|
-
});
|
|
862
|
+
b.m("POST").h(headers).b(body);
|
|
863
|
+
return b.build();
|
|
1310
864
|
};
|
|
1311
865
|
exports.se_UpdateDetectorCommand = se_UpdateDetectorCommand;
|
|
1312
866
|
const se_UpdateFilterCommand = async (input, context) => {
|
|
1313
|
-
const
|
|
867
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1314
868
|
const headers = {
|
|
1315
869
|
"content-type": "application/json",
|
|
1316
870
|
};
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FilterName", () => input.FilterName, "{FilterName}", false);
|
|
871
|
+
b.bp("/detector/{DetectorId}/filter/{FilterName}");
|
|
872
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
873
|
+
b.p("FilterName", () => input.FilterName, "{FilterName}", false);
|
|
1321
874
|
let body;
|
|
1322
875
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1323
876
|
action: [, , `Action`],
|
|
@@ -1325,122 +878,85 @@ const se_UpdateFilterCommand = async (input, context) => {
|
|
|
1325
878
|
findingCriteria: [, (_) => se_FindingCriteria(_, context), `FindingCriteria`],
|
|
1326
879
|
rank: [, , `Rank`],
|
|
1327
880
|
}));
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
hostname,
|
|
1331
|
-
port,
|
|
1332
|
-
method: "POST",
|
|
1333
|
-
headers,
|
|
1334
|
-
path: resolvedPath,
|
|
1335
|
-
body,
|
|
1336
|
-
});
|
|
881
|
+
b.m("POST").h(headers).b(body);
|
|
882
|
+
return b.build();
|
|
1337
883
|
};
|
|
1338
884
|
exports.se_UpdateFilterCommand = se_UpdateFilterCommand;
|
|
1339
885
|
const se_UpdateFindingsFeedbackCommand = async (input, context) => {
|
|
1340
|
-
const
|
|
886
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1341
887
|
const headers = {
|
|
1342
888
|
"content-type": "application/json",
|
|
1343
889
|
};
|
|
1344
|
-
|
|
1345
|
-
|
|
890
|
+
b.bp("/detector/{DetectorId}/findings/feedback");
|
|
891
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1346
892
|
let body;
|
|
1347
893
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1348
894
|
comments: [, , `Comments`],
|
|
1349
895
|
feedback: [, , `Feedback`],
|
|
1350
896
|
findingIds: [, (_) => (0, smithy_client_1._json)(_), `FindingIds`],
|
|
1351
897
|
}));
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
hostname,
|
|
1355
|
-
port,
|
|
1356
|
-
method: "POST",
|
|
1357
|
-
headers,
|
|
1358
|
-
path: resolvedPath,
|
|
1359
|
-
body,
|
|
1360
|
-
});
|
|
898
|
+
b.m("POST").h(headers).b(body);
|
|
899
|
+
return b.build();
|
|
1361
900
|
};
|
|
1362
901
|
exports.se_UpdateFindingsFeedbackCommand = se_UpdateFindingsFeedbackCommand;
|
|
1363
902
|
const se_UpdateIPSetCommand = async (input, context) => {
|
|
1364
|
-
const
|
|
903
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1365
904
|
const headers = {
|
|
1366
905
|
"content-type": "application/json",
|
|
1367
906
|
};
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
907
|
+
b.bp("/detector/{DetectorId}/ipset/{IpSetId}");
|
|
908
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
909
|
+
b.p("IpSetId", () => input.IpSetId, "{IpSetId}", false);
|
|
1371
910
|
let body;
|
|
1372
911
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1373
912
|
activate: [, , `Activate`],
|
|
1374
913
|
location: [, , `Location`],
|
|
1375
914
|
name: [, , `Name`],
|
|
1376
915
|
}));
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
hostname,
|
|
1380
|
-
port,
|
|
1381
|
-
method: "POST",
|
|
1382
|
-
headers,
|
|
1383
|
-
path: resolvedPath,
|
|
1384
|
-
body,
|
|
1385
|
-
});
|
|
916
|
+
b.m("POST").h(headers).b(body);
|
|
917
|
+
return b.build();
|
|
1386
918
|
};
|
|
1387
919
|
exports.se_UpdateIPSetCommand = se_UpdateIPSetCommand;
|
|
1388
920
|
const se_UpdateMalwareScanSettingsCommand = async (input, context) => {
|
|
1389
|
-
const
|
|
921
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1390
922
|
const headers = {
|
|
1391
923
|
"content-type": "application/json",
|
|
1392
924
|
};
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
925
|
+
b.bp("/detector/{DetectorId}/malware-scan-settings");
|
|
926
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1396
927
|
let body;
|
|
1397
928
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1398
929
|
ebsSnapshotPreservation: [, , `EbsSnapshotPreservation`],
|
|
1399
930
|
scanResourceCriteria: [, (_) => se_ScanResourceCriteria(_, context), `ScanResourceCriteria`],
|
|
1400
931
|
}));
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
hostname,
|
|
1404
|
-
port,
|
|
1405
|
-
method: "POST",
|
|
1406
|
-
headers,
|
|
1407
|
-
path: resolvedPath,
|
|
1408
|
-
body,
|
|
1409
|
-
});
|
|
932
|
+
b.m("POST").h(headers).b(body);
|
|
933
|
+
return b.build();
|
|
1410
934
|
};
|
|
1411
935
|
exports.se_UpdateMalwareScanSettingsCommand = se_UpdateMalwareScanSettingsCommand;
|
|
1412
936
|
const se_UpdateMemberDetectorsCommand = async (input, context) => {
|
|
1413
|
-
const
|
|
937
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1414
938
|
const headers = {
|
|
1415
939
|
"content-type": "application/json",
|
|
1416
940
|
};
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
941
|
+
b.bp("/detector/{DetectorId}/member/detector/update");
|
|
942
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1420
943
|
let body;
|
|
1421
944
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1422
945
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `AccountIds`],
|
|
1423
946
|
dataSources: [, (_) => se_DataSourceConfigurations(_, context), `DataSources`],
|
|
1424
947
|
features: [, (_) => se_MemberFeaturesConfigurations(_, context), `Features`],
|
|
1425
948
|
}));
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
hostname,
|
|
1429
|
-
port,
|
|
1430
|
-
method: "POST",
|
|
1431
|
-
headers,
|
|
1432
|
-
path: resolvedPath,
|
|
1433
|
-
body,
|
|
1434
|
-
});
|
|
949
|
+
b.m("POST").h(headers).b(body);
|
|
950
|
+
return b.build();
|
|
1435
951
|
};
|
|
1436
952
|
exports.se_UpdateMemberDetectorsCommand = se_UpdateMemberDetectorsCommand;
|
|
1437
953
|
const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
1438
|
-
const
|
|
954
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1439
955
|
const headers = {
|
|
1440
956
|
"content-type": "application/json",
|
|
1441
957
|
};
|
|
1442
|
-
|
|
1443
|
-
|
|
958
|
+
b.bp("/detector/{DetectorId}/admin");
|
|
959
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1444
960
|
let body;
|
|
1445
961
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1446
962
|
autoEnable: [, , `AutoEnable`],
|
|
@@ -1448,65 +964,42 @@ const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
|
1448
964
|
dataSources: [, (_) => se_OrganizationDataSourceConfigurations(_, context), `DataSources`],
|
|
1449
965
|
features: [, (_) => se_OrganizationFeaturesConfigurations(_, context), `Features`],
|
|
1450
966
|
}));
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
hostname,
|
|
1454
|
-
port,
|
|
1455
|
-
method: "POST",
|
|
1456
|
-
headers,
|
|
1457
|
-
path: resolvedPath,
|
|
1458
|
-
body,
|
|
1459
|
-
});
|
|
967
|
+
b.m("POST").h(headers).b(body);
|
|
968
|
+
return b.build();
|
|
1460
969
|
};
|
|
1461
970
|
exports.se_UpdateOrganizationConfigurationCommand = se_UpdateOrganizationConfigurationCommand;
|
|
1462
971
|
const se_UpdatePublishingDestinationCommand = async (input, context) => {
|
|
1463
|
-
const
|
|
972
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1464
973
|
const headers = {
|
|
1465
974
|
"content-type": "application/json",
|
|
1466
975
|
};
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
976
|
+
b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}");
|
|
977
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
978
|
+
b.p("DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
1471
979
|
let body;
|
|
1472
980
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1473
981
|
destinationProperties: [, (_) => se_DestinationProperties(_, context), `DestinationProperties`],
|
|
1474
982
|
}));
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
hostname,
|
|
1478
|
-
port,
|
|
1479
|
-
method: "POST",
|
|
1480
|
-
headers,
|
|
1481
|
-
path: resolvedPath,
|
|
1482
|
-
body,
|
|
1483
|
-
});
|
|
983
|
+
b.m("POST").h(headers).b(body);
|
|
984
|
+
return b.build();
|
|
1484
985
|
};
|
|
1485
986
|
exports.se_UpdatePublishingDestinationCommand = se_UpdatePublishingDestinationCommand;
|
|
1486
987
|
const se_UpdateThreatIntelSetCommand = async (input, context) => {
|
|
1487
|
-
const
|
|
988
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1488
989
|
const headers = {
|
|
1489
990
|
"content-type": "application/json",
|
|
1490
991
|
};
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
992
|
+
b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}");
|
|
993
|
+
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
994
|
+
b.p("ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
1495
995
|
let body;
|
|
1496
996
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1497
997
|
activate: [, , `Activate`],
|
|
1498
998
|
location: [, , `Location`],
|
|
1499
999
|
name: [, , `Name`],
|
|
1500
1000
|
}));
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
hostname,
|
|
1504
|
-
port,
|
|
1505
|
-
method: "POST",
|
|
1506
|
-
headers,
|
|
1507
|
-
path: resolvedPath,
|
|
1508
|
-
body,
|
|
1509
|
-
});
|
|
1001
|
+
b.m("POST").h(headers).b(body);
|
|
1002
|
+
return b.build();
|
|
1510
1003
|
};
|
|
1511
1004
|
exports.se_UpdateThreatIntelSetCommand = se_UpdateThreatIntelSetCommand;
|
|
1512
1005
|
const de_AcceptAdministratorInvitationCommand = async (output, context) => {
|
|
@@ -5901,6 +5394,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
5901
5394
|
value !== "" &&
|
|
5902
5395
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
5903
5396
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
5397
|
+
const _MR = "MaxResults";
|
|
5398
|
+
const _NT = "NextToken";
|
|
5399
|
+
const _OA = "OnlyAssociated";
|
|
5400
|
+
const _TK = "TagKeys";
|
|
5401
|
+
const _mR = "maxResults";
|
|
5402
|
+
const _nT = "nextToken";
|
|
5403
|
+
const _oA = "onlyAssociated";
|
|
5404
|
+
const _tK = "tagKeys";
|
|
5904
5405
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5905
5406
|
if (encoded.length) {
|
|
5906
5407
|
return JSON.parse(encoded);
|