@aws-sdk/client-macie2 3.476.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 +377 -937
- package/dist-es/protocols/Aws_restJson1.js +378 -938
- package/package.json +5 -4
|
@@ -4,61 +4,47 @@ exports.se_ListClassificationScopesCommand = exports.se_ListClassificationJobsCo
|
|
|
4
4
|
exports.de_DisassociateFromAdministratorAccountCommand = exports.de_DisableOrganizationAdminAccountCommand = exports.de_DisableMacieCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DescribeClassificationJobCommand = exports.de_DescribeBucketsCommand = exports.de_DeleteMemberCommand = exports.de_DeleteInvitationsCommand = exports.de_DeleteFindingsFilterCommand = exports.de_DeleteCustomDataIdentifierCommand = exports.de_DeleteAllowListCommand = exports.de_DeclineInvitationsCommand = exports.de_CreateSampleFindingsCommand = exports.de_CreateMemberCommand = exports.de_CreateInvitationsCommand = exports.de_CreateFindingsFilterCommand = exports.de_CreateCustomDataIdentifierCommand = exports.de_CreateClassificationJobCommand = exports.de_CreateAllowListCommand = exports.de_BatchGetCustomDataIdentifiersCommand = exports.de_AcceptInvitationCommand = exports.se_UpdateSensitivityInspectionTemplateCommand = exports.se_UpdateRevealConfigurationCommand = exports.se_UpdateResourceProfileDetectionsCommand = exports.se_UpdateResourceProfileCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateMemberSessionCommand = exports.se_UpdateMacieSessionCommand = exports.se_UpdateFindingsFilterCommand = exports.se_UpdateClassificationScopeCommand = exports.se_UpdateClassificationJobCommand = exports.se_UpdateAutomatedDiscoveryConfigurationCommand = exports.se_UpdateAllowListCommand = exports.se_UntagResourceCommand = exports.se_TestCustomDataIdentifierCommand = exports.se_TagResourceCommand = exports.se_SearchResourcesCommand = exports.se_PutFindingsPublicationConfigurationCommand = exports.se_PutClassificationExportConfigurationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSensitivityInspectionTemplatesCommand = exports.se_ListResourceProfileDetectionsCommand = exports.se_ListResourceProfileArtifactsCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListManagedDataIdentifiersCommand = exports.se_ListInvitationsCommand = exports.se_ListFindingsFiltersCommand = exports.se_ListFindingsCommand = exports.se_ListCustomDataIdentifiersCommand = void 0;
|
|
5
5
|
exports.de_UpdateClassificationScopeCommand = exports.de_UpdateClassificationJobCommand = exports.de_UpdateAutomatedDiscoveryConfigurationCommand = exports.de_UpdateAllowListCommand = exports.de_UntagResourceCommand = exports.de_TestCustomDataIdentifierCommand = exports.de_TagResourceCommand = exports.de_SearchResourcesCommand = exports.de_PutFindingsPublicationConfigurationCommand = exports.de_PutClassificationExportConfigurationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSensitivityInspectionTemplatesCommand = exports.de_ListResourceProfileDetectionsCommand = exports.de_ListResourceProfileArtifactsCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListManagedDataIdentifiersCommand = exports.de_ListInvitationsCommand = exports.de_ListFindingsFiltersCommand = exports.de_ListFindingsCommand = exports.de_ListCustomDataIdentifiersCommand = exports.de_ListClassificationScopesCommand = exports.de_ListClassificationJobsCommand = exports.de_ListAllowListsCommand = exports.de_GetUsageTotalsCommand = exports.de_GetUsageStatisticsCommand = exports.de_GetSensitivityInspectionTemplateCommand = exports.de_GetSensitiveDataOccurrencesAvailabilityCommand = exports.de_GetSensitiveDataOccurrencesCommand = exports.de_GetRevealConfigurationCommand = exports.de_GetResourceProfileCommand = exports.de_GetMemberCommand = exports.de_GetMasterAccountCommand = exports.de_GetMacieSessionCommand = exports.de_GetInvitationsCountCommand = exports.de_GetFindingStatisticsCommand = exports.de_GetFindingsPublicationConfigurationCommand = exports.de_GetFindingsFilterCommand = exports.de_GetFindingsCommand = exports.de_GetCustomDataIdentifierCommand = exports.de_GetClassificationScopeCommand = exports.de_GetClassificationExportConfigurationCommand = exports.de_GetBucketStatisticsCommand = exports.de_GetAutomatedDiscoveryConfigurationCommand = exports.de_GetAllowListCommand = exports.de_GetAdministratorAccountCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_EnableMacieCommand = exports.de_DisassociateMemberCommand = exports.de_DisassociateFromMasterAccountCommand = void 0;
|
|
6
6
|
exports.de_UpdateSensitivityInspectionTemplateCommand = exports.de_UpdateRevealConfigurationCommand = exports.de_UpdateResourceProfileDetectionsCommand = exports.de_UpdateResourceProfileCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateMemberSessionCommand = exports.de_UpdateMacieSessionCommand = exports.de_UpdateFindingsFilterCommand = void 0;
|
|
7
|
-
const
|
|
7
|
+
const core_1 = require("@smithy/core");
|
|
8
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
9
|
const uuid_1 = require("uuid");
|
|
10
10
|
const Macie2ServiceException_1 = require("../models/Macie2ServiceException");
|
|
11
11
|
const models_0_1 = require("../models/models_0");
|
|
12
12
|
const se_AcceptInvitationCommand = async (input, context) => {
|
|
13
|
-
const
|
|
13
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
14
14
|
const headers = {
|
|
15
15
|
"content-type": "application/json",
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
b.bp("/invitations/accept");
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
20
|
administratorAccountId: [, , `administratorAccountId`],
|
|
21
21
|
invitationId: [, , `invitationId`],
|
|
22
22
|
masterAccount: [, , `masterAccount`],
|
|
23
23
|
}));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
hostname,
|
|
27
|
-
port,
|
|
28
|
-
method: "POST",
|
|
29
|
-
headers,
|
|
30
|
-
path: resolvedPath,
|
|
31
|
-
body,
|
|
32
|
-
});
|
|
24
|
+
b.m("POST").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
33
26
|
};
|
|
34
27
|
exports.se_AcceptInvitationCommand = se_AcceptInvitationCommand;
|
|
35
28
|
const se_BatchGetCustomDataIdentifiersCommand = async (input, context) => {
|
|
36
|
-
const
|
|
29
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
37
30
|
const headers = {
|
|
38
31
|
"content-type": "application/json",
|
|
39
32
|
};
|
|
40
|
-
|
|
33
|
+
b.bp("/custom-data-identifiers/get");
|
|
41
34
|
let body;
|
|
42
35
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
36
|
ids: [, (_) => (0, smithy_client_1._json)(_), `ids`],
|
|
44
37
|
}));
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
hostname,
|
|
48
|
-
port,
|
|
49
|
-
method: "POST",
|
|
50
|
-
headers,
|
|
51
|
-
path: resolvedPath,
|
|
52
|
-
body,
|
|
53
|
-
});
|
|
38
|
+
b.m("POST").h(headers).b(body);
|
|
39
|
+
return b.build();
|
|
54
40
|
};
|
|
55
41
|
exports.se_BatchGetCustomDataIdentifiersCommand = se_BatchGetCustomDataIdentifiersCommand;
|
|
56
42
|
const se_CreateAllowListCommand = async (input, context) => {
|
|
57
|
-
const
|
|
43
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
58
44
|
const headers = {
|
|
59
45
|
"content-type": "application/json",
|
|
60
46
|
};
|
|
61
|
-
|
|
47
|
+
b.bp("/allow-lists");
|
|
62
48
|
let body;
|
|
63
49
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
50
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)(), `clientToken`],
|
|
@@ -67,23 +53,16 @@ const se_CreateAllowListCommand = async (input, context) => {
|
|
|
67
53
|
name: [, , `name`],
|
|
68
54
|
tags: [, (_) => (0, smithy_client_1._json)(_), `tags`],
|
|
69
55
|
}));
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
hostname,
|
|
73
|
-
port,
|
|
74
|
-
method: "POST",
|
|
75
|
-
headers,
|
|
76
|
-
path: resolvedPath,
|
|
77
|
-
body,
|
|
78
|
-
});
|
|
56
|
+
b.m("POST").h(headers).b(body);
|
|
57
|
+
return b.build();
|
|
79
58
|
};
|
|
80
59
|
exports.se_CreateAllowListCommand = se_CreateAllowListCommand;
|
|
81
60
|
const se_CreateClassificationJobCommand = async (input, context) => {
|
|
82
|
-
const
|
|
61
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
83
62
|
const headers = {
|
|
84
63
|
"content-type": "application/json",
|
|
85
64
|
};
|
|
86
|
-
|
|
65
|
+
b.bp("/jobs");
|
|
87
66
|
let body;
|
|
88
67
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
89
68
|
allowListIds: [, (_) => (0, smithy_client_1._json)(_), `allowListIds`],
|
|
@@ -100,23 +79,16 @@ const se_CreateClassificationJobCommand = async (input, context) => {
|
|
|
100
79
|
scheduleFrequency: [, (_) => se_JobScheduleFrequency(_, context), `scheduleFrequency`],
|
|
101
80
|
tags: [, (_) => (0, smithy_client_1._json)(_), `tags`],
|
|
102
81
|
}));
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
hostname,
|
|
106
|
-
port,
|
|
107
|
-
method: "POST",
|
|
108
|
-
headers,
|
|
109
|
-
path: resolvedPath,
|
|
110
|
-
body,
|
|
111
|
-
});
|
|
82
|
+
b.m("POST").h(headers).b(body);
|
|
83
|
+
return b.build();
|
|
112
84
|
};
|
|
113
85
|
exports.se_CreateClassificationJobCommand = se_CreateClassificationJobCommand;
|
|
114
86
|
const se_CreateCustomDataIdentifierCommand = async (input, context) => {
|
|
115
|
-
const
|
|
87
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
116
88
|
const headers = {
|
|
117
89
|
"content-type": "application/json",
|
|
118
90
|
};
|
|
119
|
-
|
|
91
|
+
b.bp("/custom-data-identifiers");
|
|
120
92
|
let body;
|
|
121
93
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
122
94
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)(), `clientToken`],
|
|
@@ -129,23 +101,16 @@ const se_CreateCustomDataIdentifierCommand = async (input, context) => {
|
|
|
129
101
|
severityLevels: [, (_) => se_SeverityLevelList(_, context), `severityLevels`],
|
|
130
102
|
tags: [, (_) => (0, smithy_client_1._json)(_), `tags`],
|
|
131
103
|
}));
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
hostname,
|
|
135
|
-
port,
|
|
136
|
-
method: "POST",
|
|
137
|
-
headers,
|
|
138
|
-
path: resolvedPath,
|
|
139
|
-
body,
|
|
140
|
-
});
|
|
104
|
+
b.m("POST").h(headers).b(body);
|
|
105
|
+
return b.build();
|
|
141
106
|
};
|
|
142
107
|
exports.se_CreateCustomDataIdentifierCommand = se_CreateCustomDataIdentifierCommand;
|
|
143
108
|
const se_CreateFindingsFilterCommand = async (input, context) => {
|
|
144
|
-
const
|
|
109
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
145
110
|
const headers = {
|
|
146
111
|
"content-type": "application/json",
|
|
147
112
|
};
|
|
148
|
-
|
|
113
|
+
b.bp("/findingsfilters");
|
|
149
114
|
let body;
|
|
150
115
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
151
116
|
action: [, , `action`],
|
|
@@ -156,203 +121,132 @@ const se_CreateFindingsFilterCommand = async (input, context) => {
|
|
|
156
121
|
position: [, , `position`],
|
|
157
122
|
tags: [, (_) => (0, smithy_client_1._json)(_), `tags`],
|
|
158
123
|
}));
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
hostname,
|
|
162
|
-
port,
|
|
163
|
-
method: "POST",
|
|
164
|
-
headers,
|
|
165
|
-
path: resolvedPath,
|
|
166
|
-
body,
|
|
167
|
-
});
|
|
124
|
+
b.m("POST").h(headers).b(body);
|
|
125
|
+
return b.build();
|
|
168
126
|
};
|
|
169
127
|
exports.se_CreateFindingsFilterCommand = se_CreateFindingsFilterCommand;
|
|
170
128
|
const se_CreateInvitationsCommand = async (input, context) => {
|
|
171
|
-
const
|
|
129
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
172
130
|
const headers = {
|
|
173
131
|
"content-type": "application/json",
|
|
174
132
|
};
|
|
175
|
-
|
|
133
|
+
b.bp("/invitations");
|
|
176
134
|
let body;
|
|
177
135
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
178
136
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `accountIds`],
|
|
179
137
|
disableEmailNotification: [, , `disableEmailNotification`],
|
|
180
138
|
message: [, , `message`],
|
|
181
139
|
}));
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
hostname,
|
|
185
|
-
port,
|
|
186
|
-
method: "POST",
|
|
187
|
-
headers,
|
|
188
|
-
path: resolvedPath,
|
|
189
|
-
body,
|
|
190
|
-
});
|
|
140
|
+
b.m("POST").h(headers).b(body);
|
|
141
|
+
return b.build();
|
|
191
142
|
};
|
|
192
143
|
exports.se_CreateInvitationsCommand = se_CreateInvitationsCommand;
|
|
193
144
|
const se_CreateMemberCommand = async (input, context) => {
|
|
194
|
-
const
|
|
145
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
195
146
|
const headers = {
|
|
196
147
|
"content-type": "application/json",
|
|
197
148
|
};
|
|
198
|
-
|
|
149
|
+
b.bp("/members");
|
|
199
150
|
let body;
|
|
200
151
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
201
152
|
account: [, (_) => se_AccountDetail(_, context), `account`],
|
|
202
153
|
tags: [, (_) => (0, smithy_client_1._json)(_), `tags`],
|
|
203
154
|
}));
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
hostname,
|
|
207
|
-
port,
|
|
208
|
-
method: "POST",
|
|
209
|
-
headers,
|
|
210
|
-
path: resolvedPath,
|
|
211
|
-
body,
|
|
212
|
-
});
|
|
155
|
+
b.m("POST").h(headers).b(body);
|
|
156
|
+
return b.build();
|
|
213
157
|
};
|
|
214
158
|
exports.se_CreateMemberCommand = se_CreateMemberCommand;
|
|
215
159
|
const se_CreateSampleFindingsCommand = async (input, context) => {
|
|
216
|
-
const
|
|
160
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
217
161
|
const headers = {
|
|
218
162
|
"content-type": "application/json",
|
|
219
163
|
};
|
|
220
|
-
|
|
164
|
+
b.bp("/findings/sample");
|
|
221
165
|
let body;
|
|
222
166
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
223
167
|
findingTypes: [, (_) => (0, smithy_client_1._json)(_), `findingTypes`],
|
|
224
168
|
}));
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
hostname,
|
|
228
|
-
port,
|
|
229
|
-
method: "POST",
|
|
230
|
-
headers,
|
|
231
|
-
path: resolvedPath,
|
|
232
|
-
body,
|
|
233
|
-
});
|
|
169
|
+
b.m("POST").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
234
171
|
};
|
|
235
172
|
exports.se_CreateSampleFindingsCommand = se_CreateSampleFindingsCommand;
|
|
236
173
|
const se_DeclineInvitationsCommand = async (input, context) => {
|
|
237
|
-
const
|
|
174
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
238
175
|
const headers = {
|
|
239
176
|
"content-type": "application/json",
|
|
240
177
|
};
|
|
241
|
-
|
|
178
|
+
b.bp("/invitations/decline");
|
|
242
179
|
let body;
|
|
243
180
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
244
181
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `accountIds`],
|
|
245
182
|
}));
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
hostname,
|
|
249
|
-
port,
|
|
250
|
-
method: "POST",
|
|
251
|
-
headers,
|
|
252
|
-
path: resolvedPath,
|
|
253
|
-
body,
|
|
254
|
-
});
|
|
183
|
+
b.m("POST").h(headers).b(body);
|
|
184
|
+
return b.build();
|
|
255
185
|
};
|
|
256
186
|
exports.se_DeclineInvitationsCommand = se_DeclineInvitationsCommand;
|
|
257
187
|
const se_DeleteAllowListCommand = async (input, context) => {
|
|
258
|
-
const
|
|
188
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
259
189
|
const headers = {};
|
|
260
|
-
|
|
261
|
-
|
|
190
|
+
b.bp("/allow-lists/{id}");
|
|
191
|
+
b.p("id", () => input.id, "{id}", false);
|
|
262
192
|
const query = (0, smithy_client_1.map)({
|
|
263
|
-
|
|
193
|
+
[_iJC]: [, input[_iJC]],
|
|
264
194
|
});
|
|
265
195
|
let body;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "DELETE",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
query,
|
|
274
|
-
body,
|
|
275
|
-
});
|
|
196
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
197
|
+
return b.build();
|
|
276
198
|
};
|
|
277
199
|
exports.se_DeleteAllowListCommand = se_DeleteAllowListCommand;
|
|
278
200
|
const se_DeleteCustomDataIdentifierCommand = async (input, context) => {
|
|
279
|
-
const
|
|
201
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
280
202
|
const headers = {};
|
|
281
|
-
|
|
282
|
-
|
|
203
|
+
b.bp("/custom-data-identifiers/{id}");
|
|
204
|
+
b.p("id", () => input.id, "{id}", false);
|
|
283
205
|
let body;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
hostname,
|
|
287
|
-
port,
|
|
288
|
-
method: "DELETE",
|
|
289
|
-
headers,
|
|
290
|
-
path: resolvedPath,
|
|
291
|
-
body,
|
|
292
|
-
});
|
|
206
|
+
b.m("DELETE").h(headers).b(body);
|
|
207
|
+
return b.build();
|
|
293
208
|
};
|
|
294
209
|
exports.se_DeleteCustomDataIdentifierCommand = se_DeleteCustomDataIdentifierCommand;
|
|
295
210
|
const se_DeleteFindingsFilterCommand = async (input, context) => {
|
|
296
|
-
const
|
|
211
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
297
212
|
const headers = {};
|
|
298
|
-
|
|
299
|
-
|
|
213
|
+
b.bp("/findingsfilters/{id}");
|
|
214
|
+
b.p("id", () => input.id, "{id}", false);
|
|
300
215
|
let body;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
hostname,
|
|
304
|
-
port,
|
|
305
|
-
method: "DELETE",
|
|
306
|
-
headers,
|
|
307
|
-
path: resolvedPath,
|
|
308
|
-
body,
|
|
309
|
-
});
|
|
216
|
+
b.m("DELETE").h(headers).b(body);
|
|
217
|
+
return b.build();
|
|
310
218
|
};
|
|
311
219
|
exports.se_DeleteFindingsFilterCommand = se_DeleteFindingsFilterCommand;
|
|
312
220
|
const se_DeleteInvitationsCommand = async (input, context) => {
|
|
313
|
-
const
|
|
221
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
314
222
|
const headers = {
|
|
315
223
|
"content-type": "application/json",
|
|
316
224
|
};
|
|
317
|
-
|
|
225
|
+
b.bp("/invitations/delete");
|
|
318
226
|
let body;
|
|
319
227
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
320
228
|
accountIds: [, (_) => (0, smithy_client_1._json)(_), `accountIds`],
|
|
321
229
|
}));
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
hostname,
|
|
325
|
-
port,
|
|
326
|
-
method: "POST",
|
|
327
|
-
headers,
|
|
328
|
-
path: resolvedPath,
|
|
329
|
-
body,
|
|
330
|
-
});
|
|
230
|
+
b.m("POST").h(headers).b(body);
|
|
231
|
+
return b.build();
|
|
331
232
|
};
|
|
332
233
|
exports.se_DeleteInvitationsCommand = se_DeleteInvitationsCommand;
|
|
333
234
|
const se_DeleteMemberCommand = async (input, context) => {
|
|
334
|
-
const
|
|
235
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
335
236
|
const headers = {};
|
|
336
|
-
|
|
337
|
-
|
|
237
|
+
b.bp("/members/{id}");
|
|
238
|
+
b.p("id", () => input.id, "{id}", false);
|
|
338
239
|
let body;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
hostname,
|
|
342
|
-
port,
|
|
343
|
-
method: "DELETE",
|
|
344
|
-
headers,
|
|
345
|
-
path: resolvedPath,
|
|
346
|
-
body,
|
|
347
|
-
});
|
|
240
|
+
b.m("DELETE").h(headers).b(body);
|
|
241
|
+
return b.build();
|
|
348
242
|
};
|
|
349
243
|
exports.se_DeleteMemberCommand = se_DeleteMemberCommand;
|
|
350
244
|
const se_DescribeBucketsCommand = async (input, context) => {
|
|
351
|
-
const
|
|
245
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
352
246
|
const headers = {
|
|
353
247
|
"content-type": "application/json",
|
|
354
248
|
};
|
|
355
|
-
|
|
249
|
+
b.bp("/datasources/s3");
|
|
356
250
|
let body;
|
|
357
251
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
358
252
|
criteria: [, (_) => se_BucketCriteria(_, context), `criteria`],
|
|
@@ -360,385 +254,244 @@ const se_DescribeBucketsCommand = async (input, context) => {
|
|
|
360
254
|
nextToken: [, , `nextToken`],
|
|
361
255
|
sortCriteria: [, (_) => se_BucketSortCriteria(_, context), `sortCriteria`],
|
|
362
256
|
}));
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
hostname,
|
|
366
|
-
port,
|
|
367
|
-
method: "POST",
|
|
368
|
-
headers,
|
|
369
|
-
path: resolvedPath,
|
|
370
|
-
body,
|
|
371
|
-
});
|
|
257
|
+
b.m("POST").h(headers).b(body);
|
|
258
|
+
return b.build();
|
|
372
259
|
};
|
|
373
260
|
exports.se_DescribeBucketsCommand = se_DescribeBucketsCommand;
|
|
374
261
|
const se_DescribeClassificationJobCommand = async (input, context) => {
|
|
375
|
-
const
|
|
262
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
376
263
|
const headers = {};
|
|
377
|
-
|
|
378
|
-
|
|
264
|
+
b.bp("/jobs/{jobId}");
|
|
265
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
379
266
|
let body;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
hostname,
|
|
383
|
-
port,
|
|
384
|
-
method: "GET",
|
|
385
|
-
headers,
|
|
386
|
-
path: resolvedPath,
|
|
387
|
-
body,
|
|
388
|
-
});
|
|
267
|
+
b.m("GET").h(headers).b(body);
|
|
268
|
+
return b.build();
|
|
389
269
|
};
|
|
390
270
|
exports.se_DescribeClassificationJobCommand = se_DescribeClassificationJobCommand;
|
|
391
271
|
const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
392
|
-
const
|
|
272
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
393
273
|
const headers = {
|
|
394
274
|
"content-type": "application/json",
|
|
395
275
|
};
|
|
396
|
-
|
|
276
|
+
b.bp("/admin/configuration");
|
|
397
277
|
let body;
|
|
398
278
|
body = "";
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
hostname,
|
|
402
|
-
port,
|
|
403
|
-
method: "GET",
|
|
404
|
-
headers,
|
|
405
|
-
path: resolvedPath,
|
|
406
|
-
body,
|
|
407
|
-
});
|
|
279
|
+
b.m("GET").h(headers).b(body);
|
|
280
|
+
return b.build();
|
|
408
281
|
};
|
|
409
282
|
exports.se_DescribeOrganizationConfigurationCommand = se_DescribeOrganizationConfigurationCommand;
|
|
410
283
|
const se_DisableMacieCommand = async (input, context) => {
|
|
411
|
-
const
|
|
284
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
412
285
|
const headers = {
|
|
413
286
|
"content-type": "application/json",
|
|
414
287
|
};
|
|
415
|
-
|
|
288
|
+
b.bp("/macie");
|
|
416
289
|
let body;
|
|
417
290
|
body = "";
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
hostname,
|
|
421
|
-
port,
|
|
422
|
-
method: "DELETE",
|
|
423
|
-
headers,
|
|
424
|
-
path: resolvedPath,
|
|
425
|
-
body,
|
|
426
|
-
});
|
|
291
|
+
b.m("DELETE").h(headers).b(body);
|
|
292
|
+
return b.build();
|
|
427
293
|
};
|
|
428
294
|
exports.se_DisableMacieCommand = se_DisableMacieCommand;
|
|
429
295
|
const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
|
|
430
|
-
const
|
|
296
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
431
297
|
const headers = {};
|
|
432
|
-
|
|
298
|
+
b.bp("/admin");
|
|
433
299
|
const query = (0, smithy_client_1.map)({
|
|
434
|
-
|
|
300
|
+
[_aAI]: [, (0, smithy_client_1.expectNonNull)(input[_aAI], `adminAccountId`)],
|
|
435
301
|
});
|
|
436
302
|
let body;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
hostname,
|
|
440
|
-
port,
|
|
441
|
-
method: "DELETE",
|
|
442
|
-
headers,
|
|
443
|
-
path: resolvedPath,
|
|
444
|
-
query,
|
|
445
|
-
body,
|
|
446
|
-
});
|
|
303
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
304
|
+
return b.build();
|
|
447
305
|
};
|
|
448
306
|
exports.se_DisableOrganizationAdminAccountCommand = se_DisableOrganizationAdminAccountCommand;
|
|
449
307
|
const se_DisassociateFromAdministratorAccountCommand = async (input, context) => {
|
|
450
|
-
const
|
|
308
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
451
309
|
const headers = {
|
|
452
310
|
"content-type": "application/json",
|
|
453
311
|
};
|
|
454
|
-
|
|
312
|
+
b.bp("/administrator/disassociate");
|
|
455
313
|
let body;
|
|
456
314
|
body = "";
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
hostname,
|
|
460
|
-
port,
|
|
461
|
-
method: "POST",
|
|
462
|
-
headers,
|
|
463
|
-
path: resolvedPath,
|
|
464
|
-
body,
|
|
465
|
-
});
|
|
315
|
+
b.m("POST").h(headers).b(body);
|
|
316
|
+
return b.build();
|
|
466
317
|
};
|
|
467
318
|
exports.se_DisassociateFromAdministratorAccountCommand = se_DisassociateFromAdministratorAccountCommand;
|
|
468
319
|
const se_DisassociateFromMasterAccountCommand = async (input, context) => {
|
|
469
|
-
const
|
|
320
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
470
321
|
const headers = {
|
|
471
322
|
"content-type": "application/json",
|
|
472
323
|
};
|
|
473
|
-
|
|
324
|
+
b.bp("/master/disassociate");
|
|
474
325
|
let body;
|
|
475
326
|
body = "";
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
hostname,
|
|
479
|
-
port,
|
|
480
|
-
method: "POST",
|
|
481
|
-
headers,
|
|
482
|
-
path: resolvedPath,
|
|
483
|
-
body,
|
|
484
|
-
});
|
|
327
|
+
b.m("POST").h(headers).b(body);
|
|
328
|
+
return b.build();
|
|
485
329
|
};
|
|
486
330
|
exports.se_DisassociateFromMasterAccountCommand = se_DisassociateFromMasterAccountCommand;
|
|
487
331
|
const se_DisassociateMemberCommand = async (input, context) => {
|
|
488
|
-
const
|
|
332
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
489
333
|
const headers = {};
|
|
490
|
-
|
|
491
|
-
|
|
334
|
+
b.bp("/members/disassociate/{id}");
|
|
335
|
+
b.p("id", () => input.id, "{id}", false);
|
|
492
336
|
let body;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
hostname,
|
|
496
|
-
port,
|
|
497
|
-
method: "POST",
|
|
498
|
-
headers,
|
|
499
|
-
path: resolvedPath,
|
|
500
|
-
body,
|
|
501
|
-
});
|
|
337
|
+
b.m("POST").h(headers).b(body);
|
|
338
|
+
return b.build();
|
|
502
339
|
};
|
|
503
340
|
exports.se_DisassociateMemberCommand = se_DisassociateMemberCommand;
|
|
504
341
|
const se_EnableMacieCommand = async (input, context) => {
|
|
505
|
-
const
|
|
342
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
506
343
|
const headers = {
|
|
507
344
|
"content-type": "application/json",
|
|
508
345
|
};
|
|
509
|
-
|
|
346
|
+
b.bp("/macie");
|
|
510
347
|
let body;
|
|
511
348
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
512
349
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)(), `clientToken`],
|
|
513
350
|
findingPublishingFrequency: [, , `findingPublishingFrequency`],
|
|
514
351
|
status: [, , `status`],
|
|
515
352
|
}));
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
hostname,
|
|
519
|
-
port,
|
|
520
|
-
method: "POST",
|
|
521
|
-
headers,
|
|
522
|
-
path: resolvedPath,
|
|
523
|
-
body,
|
|
524
|
-
});
|
|
353
|
+
b.m("POST").h(headers).b(body);
|
|
354
|
+
return b.build();
|
|
525
355
|
};
|
|
526
356
|
exports.se_EnableMacieCommand = se_EnableMacieCommand;
|
|
527
357
|
const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
|
|
528
|
-
const
|
|
358
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
529
359
|
const headers = {
|
|
530
360
|
"content-type": "application/json",
|
|
531
361
|
};
|
|
532
|
-
|
|
362
|
+
b.bp("/admin");
|
|
533
363
|
let body;
|
|
534
364
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
535
365
|
adminAccountId: [, , `adminAccountId`],
|
|
536
366
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)(), `clientToken`],
|
|
537
367
|
}));
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
hostname,
|
|
541
|
-
port,
|
|
542
|
-
method: "POST",
|
|
543
|
-
headers,
|
|
544
|
-
path: resolvedPath,
|
|
545
|
-
body,
|
|
546
|
-
});
|
|
368
|
+
b.m("POST").h(headers).b(body);
|
|
369
|
+
return b.build();
|
|
547
370
|
};
|
|
548
371
|
exports.se_EnableOrganizationAdminAccountCommand = se_EnableOrganizationAdminAccountCommand;
|
|
549
372
|
const se_GetAdministratorAccountCommand = async (input, context) => {
|
|
550
|
-
const
|
|
373
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
551
374
|
const headers = {
|
|
552
375
|
"content-type": "application/json",
|
|
553
376
|
};
|
|
554
|
-
|
|
377
|
+
b.bp("/administrator");
|
|
555
378
|
let body;
|
|
556
379
|
body = "";
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
hostname,
|
|
560
|
-
port,
|
|
561
|
-
method: "GET",
|
|
562
|
-
headers,
|
|
563
|
-
path: resolvedPath,
|
|
564
|
-
body,
|
|
565
|
-
});
|
|
380
|
+
b.m("GET").h(headers).b(body);
|
|
381
|
+
return b.build();
|
|
566
382
|
};
|
|
567
383
|
exports.se_GetAdministratorAccountCommand = se_GetAdministratorAccountCommand;
|
|
568
384
|
const se_GetAllowListCommand = async (input, context) => {
|
|
569
|
-
const
|
|
385
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
570
386
|
const headers = {};
|
|
571
|
-
|
|
572
|
-
|
|
387
|
+
b.bp("/allow-lists/{id}");
|
|
388
|
+
b.p("id", () => input.id, "{id}", false);
|
|
573
389
|
let body;
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
hostname,
|
|
577
|
-
port,
|
|
578
|
-
method: "GET",
|
|
579
|
-
headers,
|
|
580
|
-
path: resolvedPath,
|
|
581
|
-
body,
|
|
582
|
-
});
|
|
390
|
+
b.m("GET").h(headers).b(body);
|
|
391
|
+
return b.build();
|
|
583
392
|
};
|
|
584
393
|
exports.se_GetAllowListCommand = se_GetAllowListCommand;
|
|
585
394
|
const se_GetAutomatedDiscoveryConfigurationCommand = async (input, context) => {
|
|
586
|
-
const
|
|
395
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
587
396
|
const headers = {
|
|
588
397
|
"content-type": "application/json",
|
|
589
398
|
};
|
|
590
|
-
|
|
399
|
+
b.bp("/automated-discovery/configuration");
|
|
591
400
|
let body;
|
|
592
401
|
body = "";
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
hostname,
|
|
596
|
-
port,
|
|
597
|
-
method: "GET",
|
|
598
|
-
headers,
|
|
599
|
-
path: resolvedPath,
|
|
600
|
-
body,
|
|
601
|
-
});
|
|
402
|
+
b.m("GET").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
602
404
|
};
|
|
603
405
|
exports.se_GetAutomatedDiscoveryConfigurationCommand = se_GetAutomatedDiscoveryConfigurationCommand;
|
|
604
406
|
const se_GetBucketStatisticsCommand = async (input, context) => {
|
|
605
|
-
const
|
|
407
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
606
408
|
const headers = {
|
|
607
409
|
"content-type": "application/json",
|
|
608
410
|
};
|
|
609
|
-
|
|
411
|
+
b.bp("/datasources/s3/statistics");
|
|
610
412
|
let body;
|
|
611
413
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
612
414
|
accountId: [, , `accountId`],
|
|
613
415
|
}));
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
hostname,
|
|
617
|
-
port,
|
|
618
|
-
method: "POST",
|
|
619
|
-
headers,
|
|
620
|
-
path: resolvedPath,
|
|
621
|
-
body,
|
|
622
|
-
});
|
|
416
|
+
b.m("POST").h(headers).b(body);
|
|
417
|
+
return b.build();
|
|
623
418
|
};
|
|
624
419
|
exports.se_GetBucketStatisticsCommand = se_GetBucketStatisticsCommand;
|
|
625
420
|
const se_GetClassificationExportConfigurationCommand = async (input, context) => {
|
|
626
|
-
const
|
|
421
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
627
422
|
const headers = {
|
|
628
423
|
"content-type": "application/json",
|
|
629
424
|
};
|
|
630
|
-
|
|
425
|
+
b.bp("/classification-export-configuration");
|
|
631
426
|
let body;
|
|
632
427
|
body = "";
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
hostname,
|
|
636
|
-
port,
|
|
637
|
-
method: "GET",
|
|
638
|
-
headers,
|
|
639
|
-
path: resolvedPath,
|
|
640
|
-
body,
|
|
641
|
-
});
|
|
428
|
+
b.m("GET").h(headers).b(body);
|
|
429
|
+
return b.build();
|
|
642
430
|
};
|
|
643
431
|
exports.se_GetClassificationExportConfigurationCommand = se_GetClassificationExportConfigurationCommand;
|
|
644
432
|
const se_GetClassificationScopeCommand = async (input, context) => {
|
|
645
|
-
const
|
|
433
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
646
434
|
const headers = {};
|
|
647
|
-
|
|
648
|
-
|
|
435
|
+
b.bp("/classification-scopes/{id}");
|
|
436
|
+
b.p("id", () => input.id, "{id}", false);
|
|
649
437
|
let body;
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
hostname,
|
|
653
|
-
port,
|
|
654
|
-
method: "GET",
|
|
655
|
-
headers,
|
|
656
|
-
path: resolvedPath,
|
|
657
|
-
body,
|
|
658
|
-
});
|
|
438
|
+
b.m("GET").h(headers).b(body);
|
|
439
|
+
return b.build();
|
|
659
440
|
};
|
|
660
441
|
exports.se_GetClassificationScopeCommand = se_GetClassificationScopeCommand;
|
|
661
442
|
const se_GetCustomDataIdentifierCommand = async (input, context) => {
|
|
662
|
-
const
|
|
443
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
663
444
|
const headers = {};
|
|
664
|
-
|
|
665
|
-
|
|
445
|
+
b.bp("/custom-data-identifiers/{id}");
|
|
446
|
+
b.p("id", () => input.id, "{id}", false);
|
|
666
447
|
let body;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
hostname,
|
|
670
|
-
port,
|
|
671
|
-
method: "GET",
|
|
672
|
-
headers,
|
|
673
|
-
path: resolvedPath,
|
|
674
|
-
body,
|
|
675
|
-
});
|
|
448
|
+
b.m("GET").h(headers).b(body);
|
|
449
|
+
return b.build();
|
|
676
450
|
};
|
|
677
451
|
exports.se_GetCustomDataIdentifierCommand = se_GetCustomDataIdentifierCommand;
|
|
678
452
|
const se_GetFindingsCommand = async (input, context) => {
|
|
679
|
-
const
|
|
453
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
680
454
|
const headers = {
|
|
681
455
|
"content-type": "application/json",
|
|
682
456
|
};
|
|
683
|
-
|
|
457
|
+
b.bp("/findings/describe");
|
|
684
458
|
let body;
|
|
685
459
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
686
460
|
findingIds: [, (_) => (0, smithy_client_1._json)(_), `findingIds`],
|
|
687
461
|
sortCriteria: [, (_) => se_SortCriteria(_, context), `sortCriteria`],
|
|
688
462
|
}));
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
hostname,
|
|
692
|
-
port,
|
|
693
|
-
method: "POST",
|
|
694
|
-
headers,
|
|
695
|
-
path: resolvedPath,
|
|
696
|
-
body,
|
|
697
|
-
});
|
|
463
|
+
b.m("POST").h(headers).b(body);
|
|
464
|
+
return b.build();
|
|
698
465
|
};
|
|
699
466
|
exports.se_GetFindingsCommand = se_GetFindingsCommand;
|
|
700
467
|
const se_GetFindingsFilterCommand = async (input, context) => {
|
|
701
|
-
const
|
|
468
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
702
469
|
const headers = {};
|
|
703
|
-
|
|
704
|
-
|
|
470
|
+
b.bp("/findingsfilters/{id}");
|
|
471
|
+
b.p("id", () => input.id, "{id}", false);
|
|
705
472
|
let body;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
hostname,
|
|
709
|
-
port,
|
|
710
|
-
method: "GET",
|
|
711
|
-
headers,
|
|
712
|
-
path: resolvedPath,
|
|
713
|
-
body,
|
|
714
|
-
});
|
|
473
|
+
b.m("GET").h(headers).b(body);
|
|
474
|
+
return b.build();
|
|
715
475
|
};
|
|
716
476
|
exports.se_GetFindingsFilterCommand = se_GetFindingsFilterCommand;
|
|
717
477
|
const se_GetFindingsPublicationConfigurationCommand = async (input, context) => {
|
|
718
|
-
const
|
|
478
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
719
479
|
const headers = {
|
|
720
480
|
"content-type": "application/json",
|
|
721
481
|
};
|
|
722
|
-
|
|
482
|
+
b.bp("/findings-publication-configuration");
|
|
723
483
|
let body;
|
|
724
484
|
body = "";
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
hostname,
|
|
728
|
-
port,
|
|
729
|
-
method: "GET",
|
|
730
|
-
headers,
|
|
731
|
-
path: resolvedPath,
|
|
732
|
-
body,
|
|
733
|
-
});
|
|
485
|
+
b.m("GET").h(headers).b(body);
|
|
486
|
+
return b.build();
|
|
734
487
|
};
|
|
735
488
|
exports.se_GetFindingsPublicationConfigurationCommand = se_GetFindingsPublicationConfigurationCommand;
|
|
736
489
|
const se_GetFindingStatisticsCommand = async (input, context) => {
|
|
737
|
-
const
|
|
490
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
738
491
|
const headers = {
|
|
739
492
|
"content-type": "application/json",
|
|
740
493
|
};
|
|
741
|
-
|
|
494
|
+
b.bp("/findings/statistics");
|
|
742
495
|
let body;
|
|
743
496
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
744
497
|
findingCriteria: [, (_) => se_FindingCriteria(_, context), `findingCriteria`],
|
|
@@ -746,187 +499,116 @@ const se_GetFindingStatisticsCommand = async (input, context) => {
|
|
|
746
499
|
size: [, , `size`],
|
|
747
500
|
sortCriteria: [, (_) => se_FindingStatisticsSortCriteria(_, context), `sortCriteria`],
|
|
748
501
|
}));
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
hostname,
|
|
752
|
-
port,
|
|
753
|
-
method: "POST",
|
|
754
|
-
headers,
|
|
755
|
-
path: resolvedPath,
|
|
756
|
-
body,
|
|
757
|
-
});
|
|
502
|
+
b.m("POST").h(headers).b(body);
|
|
503
|
+
return b.build();
|
|
758
504
|
};
|
|
759
505
|
exports.se_GetFindingStatisticsCommand = se_GetFindingStatisticsCommand;
|
|
760
506
|
const se_GetInvitationsCountCommand = async (input, context) => {
|
|
761
|
-
const
|
|
507
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
762
508
|
const headers = {
|
|
763
509
|
"content-type": "application/json",
|
|
764
510
|
};
|
|
765
|
-
|
|
511
|
+
b.bp("/invitations/count");
|
|
766
512
|
let body;
|
|
767
513
|
body = "";
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
hostname,
|
|
771
|
-
port,
|
|
772
|
-
method: "GET",
|
|
773
|
-
headers,
|
|
774
|
-
path: resolvedPath,
|
|
775
|
-
body,
|
|
776
|
-
});
|
|
514
|
+
b.m("GET").h(headers).b(body);
|
|
515
|
+
return b.build();
|
|
777
516
|
};
|
|
778
517
|
exports.se_GetInvitationsCountCommand = se_GetInvitationsCountCommand;
|
|
779
518
|
const se_GetMacieSessionCommand = async (input, context) => {
|
|
780
|
-
const
|
|
519
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
781
520
|
const headers = {
|
|
782
521
|
"content-type": "application/json",
|
|
783
522
|
};
|
|
784
|
-
|
|
523
|
+
b.bp("/macie");
|
|
785
524
|
let body;
|
|
786
525
|
body = "";
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
hostname,
|
|
790
|
-
port,
|
|
791
|
-
method: "GET",
|
|
792
|
-
headers,
|
|
793
|
-
path: resolvedPath,
|
|
794
|
-
body,
|
|
795
|
-
});
|
|
526
|
+
b.m("GET").h(headers).b(body);
|
|
527
|
+
return b.build();
|
|
796
528
|
};
|
|
797
529
|
exports.se_GetMacieSessionCommand = se_GetMacieSessionCommand;
|
|
798
530
|
const se_GetMasterAccountCommand = async (input, context) => {
|
|
799
|
-
const
|
|
531
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
800
532
|
const headers = {
|
|
801
533
|
"content-type": "application/json",
|
|
802
534
|
};
|
|
803
|
-
|
|
535
|
+
b.bp("/master");
|
|
804
536
|
let body;
|
|
805
537
|
body = "";
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
hostname,
|
|
809
|
-
port,
|
|
810
|
-
method: "GET",
|
|
811
|
-
headers,
|
|
812
|
-
path: resolvedPath,
|
|
813
|
-
body,
|
|
814
|
-
});
|
|
538
|
+
b.m("GET").h(headers).b(body);
|
|
539
|
+
return b.build();
|
|
815
540
|
};
|
|
816
541
|
exports.se_GetMasterAccountCommand = se_GetMasterAccountCommand;
|
|
817
542
|
const se_GetMemberCommand = async (input, context) => {
|
|
818
|
-
const
|
|
543
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
819
544
|
const headers = {};
|
|
820
|
-
|
|
821
|
-
|
|
545
|
+
b.bp("/members/{id}");
|
|
546
|
+
b.p("id", () => input.id, "{id}", false);
|
|
822
547
|
let body;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
hostname,
|
|
826
|
-
port,
|
|
827
|
-
method: "GET",
|
|
828
|
-
headers,
|
|
829
|
-
path: resolvedPath,
|
|
830
|
-
body,
|
|
831
|
-
});
|
|
548
|
+
b.m("GET").h(headers).b(body);
|
|
549
|
+
return b.build();
|
|
832
550
|
};
|
|
833
551
|
exports.se_GetMemberCommand = se_GetMemberCommand;
|
|
834
552
|
const se_GetResourceProfileCommand = async (input, context) => {
|
|
835
|
-
const
|
|
553
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
836
554
|
const headers = {};
|
|
837
|
-
|
|
555
|
+
b.bp("/resource-profiles");
|
|
838
556
|
const query = (0, smithy_client_1.map)({
|
|
839
|
-
|
|
557
|
+
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
840
558
|
});
|
|
841
559
|
let body;
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
hostname,
|
|
845
|
-
port,
|
|
846
|
-
method: "GET",
|
|
847
|
-
headers,
|
|
848
|
-
path: resolvedPath,
|
|
849
|
-
query,
|
|
850
|
-
body,
|
|
851
|
-
});
|
|
560
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
561
|
+
return b.build();
|
|
852
562
|
};
|
|
853
563
|
exports.se_GetResourceProfileCommand = se_GetResourceProfileCommand;
|
|
854
564
|
const se_GetRevealConfigurationCommand = async (input, context) => {
|
|
855
|
-
const
|
|
565
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
856
566
|
const headers = {
|
|
857
567
|
"content-type": "application/json",
|
|
858
568
|
};
|
|
859
|
-
|
|
569
|
+
b.bp("/reveal-configuration");
|
|
860
570
|
let body;
|
|
861
571
|
body = "";
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
hostname,
|
|
865
|
-
port,
|
|
866
|
-
method: "GET",
|
|
867
|
-
headers,
|
|
868
|
-
path: resolvedPath,
|
|
869
|
-
body,
|
|
870
|
-
});
|
|
572
|
+
b.m("GET").h(headers).b(body);
|
|
573
|
+
return b.build();
|
|
871
574
|
};
|
|
872
575
|
exports.se_GetRevealConfigurationCommand = se_GetRevealConfigurationCommand;
|
|
873
576
|
const se_GetSensitiveDataOccurrencesCommand = async (input, context) => {
|
|
874
|
-
const
|
|
577
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
875
578
|
const headers = {};
|
|
876
|
-
|
|
877
|
-
|
|
579
|
+
b.bp("/findings/{findingId}/reveal");
|
|
580
|
+
b.p("findingId", () => input.findingId, "{findingId}", false);
|
|
878
581
|
let body;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
hostname,
|
|
882
|
-
port,
|
|
883
|
-
method: "GET",
|
|
884
|
-
headers,
|
|
885
|
-
path: resolvedPath,
|
|
886
|
-
body,
|
|
887
|
-
});
|
|
582
|
+
b.m("GET").h(headers).b(body);
|
|
583
|
+
return b.build();
|
|
888
584
|
};
|
|
889
585
|
exports.se_GetSensitiveDataOccurrencesCommand = se_GetSensitiveDataOccurrencesCommand;
|
|
890
586
|
const se_GetSensitiveDataOccurrencesAvailabilityCommand = async (input, context) => {
|
|
891
|
-
const
|
|
587
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
892
588
|
const headers = {};
|
|
893
|
-
|
|
894
|
-
|
|
589
|
+
b.bp("/findings/{findingId}/reveal/availability");
|
|
590
|
+
b.p("findingId", () => input.findingId, "{findingId}", false);
|
|
895
591
|
let body;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
hostname,
|
|
899
|
-
port,
|
|
900
|
-
method: "GET",
|
|
901
|
-
headers,
|
|
902
|
-
path: resolvedPath,
|
|
903
|
-
body,
|
|
904
|
-
});
|
|
592
|
+
b.m("GET").h(headers).b(body);
|
|
593
|
+
return b.build();
|
|
905
594
|
};
|
|
906
595
|
exports.se_GetSensitiveDataOccurrencesAvailabilityCommand = se_GetSensitiveDataOccurrencesAvailabilityCommand;
|
|
907
596
|
const se_GetSensitivityInspectionTemplateCommand = async (input, context) => {
|
|
908
|
-
const
|
|
597
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
909
598
|
const headers = {};
|
|
910
|
-
|
|
911
|
-
|
|
599
|
+
b.bp("/templates/sensitivity-inspections/{id}");
|
|
600
|
+
b.p("id", () => input.id, "{id}", false);
|
|
912
601
|
let body;
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
hostname,
|
|
916
|
-
port,
|
|
917
|
-
method: "GET",
|
|
918
|
-
headers,
|
|
919
|
-
path: resolvedPath,
|
|
920
|
-
body,
|
|
921
|
-
});
|
|
602
|
+
b.m("GET").h(headers).b(body);
|
|
603
|
+
return b.build();
|
|
922
604
|
};
|
|
923
605
|
exports.se_GetSensitivityInspectionTemplateCommand = se_GetSensitivityInspectionTemplateCommand;
|
|
924
606
|
const se_GetUsageStatisticsCommand = async (input, context) => {
|
|
925
|
-
const
|
|
607
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
926
608
|
const headers = {
|
|
927
609
|
"content-type": "application/json",
|
|
928
610
|
};
|
|
929
|
-
|
|
611
|
+
b.bp("/usage/statistics");
|
|
930
612
|
let body;
|
|
931
613
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
932
614
|
filterBy: [, (_) => se___listOfUsageStatisticsFilter(_, context), `filterBy`],
|
|
@@ -935,64 +617,41 @@ const se_GetUsageStatisticsCommand = async (input, context) => {
|
|
|
935
617
|
sortBy: [, (_) => se_UsageStatisticsSortBy(_, context), `sortBy`],
|
|
936
618
|
timeRange: [, , `timeRange`],
|
|
937
619
|
}));
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
hostname,
|
|
941
|
-
port,
|
|
942
|
-
method: "POST",
|
|
943
|
-
headers,
|
|
944
|
-
path: resolvedPath,
|
|
945
|
-
body,
|
|
946
|
-
});
|
|
620
|
+
b.m("POST").h(headers).b(body);
|
|
621
|
+
return b.build();
|
|
947
622
|
};
|
|
948
623
|
exports.se_GetUsageStatisticsCommand = se_GetUsageStatisticsCommand;
|
|
949
624
|
const se_GetUsageTotalsCommand = async (input, context) => {
|
|
950
|
-
const
|
|
625
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
951
626
|
const headers = {};
|
|
952
|
-
|
|
627
|
+
b.bp("/usage");
|
|
953
628
|
const query = (0, smithy_client_1.map)({
|
|
954
|
-
|
|
629
|
+
[_tR]: [, input[_tR]],
|
|
955
630
|
});
|
|
956
631
|
let body;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
hostname,
|
|
960
|
-
port,
|
|
961
|
-
method: "GET",
|
|
962
|
-
headers,
|
|
963
|
-
path: resolvedPath,
|
|
964
|
-
query,
|
|
965
|
-
body,
|
|
966
|
-
});
|
|
632
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
633
|
+
return b.build();
|
|
967
634
|
};
|
|
968
635
|
exports.se_GetUsageTotalsCommand = se_GetUsageTotalsCommand;
|
|
969
636
|
const se_ListAllowListsCommand = async (input, context) => {
|
|
970
|
-
const
|
|
637
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
971
638
|
const headers = {};
|
|
972
|
-
|
|
639
|
+
b.bp("/allow-lists");
|
|
973
640
|
const query = (0, smithy_client_1.map)({
|
|
974
|
-
|
|
975
|
-
|
|
641
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
642
|
+
[_nT]: [, input[_nT]],
|
|
976
643
|
});
|
|
977
644
|
let body;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
hostname,
|
|
981
|
-
port,
|
|
982
|
-
method: "GET",
|
|
983
|
-
headers,
|
|
984
|
-
path: resolvedPath,
|
|
985
|
-
query,
|
|
986
|
-
body,
|
|
987
|
-
});
|
|
645
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
646
|
+
return b.build();
|
|
988
647
|
};
|
|
989
648
|
exports.se_ListAllowListsCommand = se_ListAllowListsCommand;
|
|
990
649
|
const se_ListClassificationJobsCommand = async (input, context) => {
|
|
991
|
-
const
|
|
650
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
992
651
|
const headers = {
|
|
993
652
|
"content-type": "application/json",
|
|
994
653
|
};
|
|
995
|
-
|
|
654
|
+
b.bp("/jobs/list");
|
|
996
655
|
let body;
|
|
997
656
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
998
657
|
filterCriteria: [, (_) => se_ListJobsFilterCriteria(_, context), `filterCriteria`],
|
|
@@ -1000,66 +659,44 @@ const se_ListClassificationJobsCommand = async (input, context) => {
|
|
|
1000
659
|
nextToken: [, , `nextToken`],
|
|
1001
660
|
sortCriteria: [, (_) => se_ListJobsSortCriteria(_, context), `sortCriteria`],
|
|
1002
661
|
}));
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
hostname,
|
|
1006
|
-
port,
|
|
1007
|
-
method: "POST",
|
|
1008
|
-
headers,
|
|
1009
|
-
path: resolvedPath,
|
|
1010
|
-
body,
|
|
1011
|
-
});
|
|
662
|
+
b.m("POST").h(headers).b(body);
|
|
663
|
+
return b.build();
|
|
1012
664
|
};
|
|
1013
665
|
exports.se_ListClassificationJobsCommand = se_ListClassificationJobsCommand;
|
|
1014
666
|
const se_ListClassificationScopesCommand = async (input, context) => {
|
|
1015
|
-
const
|
|
667
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1016
668
|
const headers = {};
|
|
1017
|
-
|
|
669
|
+
b.bp("/classification-scopes");
|
|
1018
670
|
const query = (0, smithy_client_1.map)({
|
|
1019
|
-
|
|
1020
|
-
|
|
671
|
+
[_n]: [, input[_n]],
|
|
672
|
+
[_nT]: [, input[_nT]],
|
|
1021
673
|
});
|
|
1022
674
|
let body;
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
hostname,
|
|
1026
|
-
port,
|
|
1027
|
-
method: "GET",
|
|
1028
|
-
headers,
|
|
1029
|
-
path: resolvedPath,
|
|
1030
|
-
query,
|
|
1031
|
-
body,
|
|
1032
|
-
});
|
|
675
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
676
|
+
return b.build();
|
|
1033
677
|
};
|
|
1034
678
|
exports.se_ListClassificationScopesCommand = se_ListClassificationScopesCommand;
|
|
1035
679
|
const se_ListCustomDataIdentifiersCommand = async (input, context) => {
|
|
1036
|
-
const
|
|
680
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1037
681
|
const headers = {
|
|
1038
682
|
"content-type": "application/json",
|
|
1039
683
|
};
|
|
1040
|
-
|
|
684
|
+
b.bp("/custom-data-identifiers/list");
|
|
1041
685
|
let body;
|
|
1042
686
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1043
687
|
maxResults: [, , `maxResults`],
|
|
1044
688
|
nextToken: [, , `nextToken`],
|
|
1045
689
|
}));
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
hostname,
|
|
1049
|
-
port,
|
|
1050
|
-
method: "POST",
|
|
1051
|
-
headers,
|
|
1052
|
-
path: resolvedPath,
|
|
1053
|
-
body,
|
|
1054
|
-
});
|
|
690
|
+
b.m("POST").h(headers).b(body);
|
|
691
|
+
return b.build();
|
|
1055
692
|
};
|
|
1056
693
|
exports.se_ListCustomDataIdentifiersCommand = se_ListCustomDataIdentifiersCommand;
|
|
1057
694
|
const se_ListFindingsCommand = async (input, context) => {
|
|
1058
|
-
const
|
|
695
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1059
696
|
const headers = {
|
|
1060
697
|
"content-type": "application/json",
|
|
1061
698
|
};
|
|
1062
|
-
|
|
699
|
+
b.bp("/findings");
|
|
1063
700
|
let body;
|
|
1064
701
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1065
702
|
findingCriteria: [, (_) => se_FindingCriteria(_, context), `findingCriteria`],
|
|
@@ -1067,253 +704,162 @@ const se_ListFindingsCommand = async (input, context) => {
|
|
|
1067
704
|
nextToken: [, , `nextToken`],
|
|
1068
705
|
sortCriteria: [, (_) => se_SortCriteria(_, context), `sortCriteria`],
|
|
1069
706
|
}));
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
hostname,
|
|
1073
|
-
port,
|
|
1074
|
-
method: "POST",
|
|
1075
|
-
headers,
|
|
1076
|
-
path: resolvedPath,
|
|
1077
|
-
body,
|
|
1078
|
-
});
|
|
707
|
+
b.m("POST").h(headers).b(body);
|
|
708
|
+
return b.build();
|
|
1079
709
|
};
|
|
1080
710
|
exports.se_ListFindingsCommand = se_ListFindingsCommand;
|
|
1081
711
|
const se_ListFindingsFiltersCommand = async (input, context) => {
|
|
1082
|
-
const
|
|
712
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1083
713
|
const headers = {};
|
|
1084
|
-
|
|
714
|
+
b.bp("/findingsfilters");
|
|
1085
715
|
const query = (0, smithy_client_1.map)({
|
|
1086
|
-
|
|
1087
|
-
|
|
716
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
717
|
+
[_nT]: [, input[_nT]],
|
|
1088
718
|
});
|
|
1089
719
|
let body;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
hostname,
|
|
1093
|
-
port,
|
|
1094
|
-
method: "GET",
|
|
1095
|
-
headers,
|
|
1096
|
-
path: resolvedPath,
|
|
1097
|
-
query,
|
|
1098
|
-
body,
|
|
1099
|
-
});
|
|
720
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
721
|
+
return b.build();
|
|
1100
722
|
};
|
|
1101
723
|
exports.se_ListFindingsFiltersCommand = se_ListFindingsFiltersCommand;
|
|
1102
724
|
const se_ListInvitationsCommand = async (input, context) => {
|
|
1103
|
-
const
|
|
725
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1104
726
|
const headers = {};
|
|
1105
|
-
|
|
727
|
+
b.bp("/invitations");
|
|
1106
728
|
const query = (0, smithy_client_1.map)({
|
|
1107
|
-
|
|
1108
|
-
|
|
729
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
730
|
+
[_nT]: [, input[_nT]],
|
|
1109
731
|
});
|
|
1110
732
|
let body;
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
hostname,
|
|
1114
|
-
port,
|
|
1115
|
-
method: "GET",
|
|
1116
|
-
headers,
|
|
1117
|
-
path: resolvedPath,
|
|
1118
|
-
query,
|
|
1119
|
-
body,
|
|
1120
|
-
});
|
|
733
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
734
|
+
return b.build();
|
|
1121
735
|
};
|
|
1122
736
|
exports.se_ListInvitationsCommand = se_ListInvitationsCommand;
|
|
1123
737
|
const se_ListManagedDataIdentifiersCommand = async (input, context) => {
|
|
1124
|
-
const
|
|
738
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1125
739
|
const headers = {
|
|
1126
740
|
"content-type": "application/json",
|
|
1127
741
|
};
|
|
1128
|
-
|
|
742
|
+
b.bp("/managed-data-identifiers/list");
|
|
1129
743
|
let body;
|
|
1130
744
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1131
745
|
nextToken: [, , `nextToken`],
|
|
1132
746
|
}));
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
hostname,
|
|
1136
|
-
port,
|
|
1137
|
-
method: "POST",
|
|
1138
|
-
headers,
|
|
1139
|
-
path: resolvedPath,
|
|
1140
|
-
body,
|
|
1141
|
-
});
|
|
747
|
+
b.m("POST").h(headers).b(body);
|
|
748
|
+
return b.build();
|
|
1142
749
|
};
|
|
1143
750
|
exports.se_ListManagedDataIdentifiersCommand = se_ListManagedDataIdentifiersCommand;
|
|
1144
751
|
const se_ListMembersCommand = async (input, context) => {
|
|
1145
|
-
const
|
|
752
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1146
753
|
const headers = {};
|
|
1147
|
-
|
|
754
|
+
b.bp("/members");
|
|
1148
755
|
const query = (0, smithy_client_1.map)({
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
756
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
757
|
+
[_nT]: [, input[_nT]],
|
|
758
|
+
[_oA]: [, input[_oA]],
|
|
1152
759
|
});
|
|
1153
760
|
let body;
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
hostname,
|
|
1157
|
-
port,
|
|
1158
|
-
method: "GET",
|
|
1159
|
-
headers,
|
|
1160
|
-
path: resolvedPath,
|
|
1161
|
-
query,
|
|
1162
|
-
body,
|
|
1163
|
-
});
|
|
761
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
762
|
+
return b.build();
|
|
1164
763
|
};
|
|
1165
764
|
exports.se_ListMembersCommand = se_ListMembersCommand;
|
|
1166
765
|
const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
|
|
1167
|
-
const
|
|
766
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1168
767
|
const headers = {};
|
|
1169
|
-
|
|
768
|
+
b.bp("/admin");
|
|
1170
769
|
const query = (0, smithy_client_1.map)({
|
|
1171
|
-
|
|
1172
|
-
|
|
770
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
771
|
+
[_nT]: [, input[_nT]],
|
|
1173
772
|
});
|
|
1174
773
|
let body;
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
hostname,
|
|
1178
|
-
port,
|
|
1179
|
-
method: "GET",
|
|
1180
|
-
headers,
|
|
1181
|
-
path: resolvedPath,
|
|
1182
|
-
query,
|
|
1183
|
-
body,
|
|
1184
|
-
});
|
|
774
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
775
|
+
return b.build();
|
|
1185
776
|
};
|
|
1186
777
|
exports.se_ListOrganizationAdminAccountsCommand = se_ListOrganizationAdminAccountsCommand;
|
|
1187
778
|
const se_ListResourceProfileArtifactsCommand = async (input, context) => {
|
|
1188
|
-
const
|
|
779
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1189
780
|
const headers = {};
|
|
1190
|
-
|
|
781
|
+
b.bp("/resource-profiles/artifacts");
|
|
1191
782
|
const query = (0, smithy_client_1.map)({
|
|
1192
|
-
|
|
1193
|
-
|
|
783
|
+
[_nT]: [, input[_nT]],
|
|
784
|
+
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
1194
785
|
});
|
|
1195
786
|
let body;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
hostname,
|
|
1199
|
-
port,
|
|
1200
|
-
method: "GET",
|
|
1201
|
-
headers,
|
|
1202
|
-
path: resolvedPath,
|
|
1203
|
-
query,
|
|
1204
|
-
body,
|
|
1205
|
-
});
|
|
787
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
788
|
+
return b.build();
|
|
1206
789
|
};
|
|
1207
790
|
exports.se_ListResourceProfileArtifactsCommand = se_ListResourceProfileArtifactsCommand;
|
|
1208
791
|
const se_ListResourceProfileDetectionsCommand = async (input, context) => {
|
|
1209
|
-
const
|
|
792
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1210
793
|
const headers = {};
|
|
1211
|
-
|
|
794
|
+
b.bp("/resource-profiles/detections");
|
|
1212
795
|
const query = (0, smithy_client_1.map)({
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
796
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
797
|
+
[_nT]: [, input[_nT]],
|
|
798
|
+
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
1216
799
|
});
|
|
1217
800
|
let body;
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
hostname,
|
|
1221
|
-
port,
|
|
1222
|
-
method: "GET",
|
|
1223
|
-
headers,
|
|
1224
|
-
path: resolvedPath,
|
|
1225
|
-
query,
|
|
1226
|
-
body,
|
|
1227
|
-
});
|
|
801
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
802
|
+
return b.build();
|
|
1228
803
|
};
|
|
1229
804
|
exports.se_ListResourceProfileDetectionsCommand = se_ListResourceProfileDetectionsCommand;
|
|
1230
805
|
const se_ListSensitivityInspectionTemplatesCommand = async (input, context) => {
|
|
1231
|
-
const
|
|
806
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1232
807
|
const headers = {};
|
|
1233
|
-
|
|
808
|
+
b.bp("/templates/sensitivity-inspections");
|
|
1234
809
|
const query = (0, smithy_client_1.map)({
|
|
1235
|
-
|
|
1236
|
-
|
|
810
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
811
|
+
[_nT]: [, input[_nT]],
|
|
1237
812
|
});
|
|
1238
813
|
let body;
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
hostname,
|
|
1242
|
-
port,
|
|
1243
|
-
method: "GET",
|
|
1244
|
-
headers,
|
|
1245
|
-
path: resolvedPath,
|
|
1246
|
-
query,
|
|
1247
|
-
body,
|
|
1248
|
-
});
|
|
814
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
815
|
+
return b.build();
|
|
1249
816
|
};
|
|
1250
817
|
exports.se_ListSensitivityInspectionTemplatesCommand = se_ListSensitivityInspectionTemplatesCommand;
|
|
1251
818
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
1252
|
-
const
|
|
819
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1253
820
|
const headers = {};
|
|
1254
|
-
|
|
1255
|
-
|
|
821
|
+
b.bp("/tags/{resourceArn}");
|
|
822
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1256
823
|
let body;
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
hostname,
|
|
1260
|
-
port,
|
|
1261
|
-
method: "GET",
|
|
1262
|
-
headers,
|
|
1263
|
-
path: resolvedPath,
|
|
1264
|
-
body,
|
|
1265
|
-
});
|
|
824
|
+
b.m("GET").h(headers).b(body);
|
|
825
|
+
return b.build();
|
|
1266
826
|
};
|
|
1267
827
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1268
828
|
const se_PutClassificationExportConfigurationCommand = async (input, context) => {
|
|
1269
|
-
const
|
|
829
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1270
830
|
const headers = {
|
|
1271
831
|
"content-type": "application/json",
|
|
1272
832
|
};
|
|
1273
|
-
|
|
833
|
+
b.bp("/classification-export-configuration");
|
|
1274
834
|
let body;
|
|
1275
835
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1276
836
|
configuration: [, (_) => se_ClassificationExportConfiguration(_, context), `configuration`],
|
|
1277
837
|
}));
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
hostname,
|
|
1281
|
-
port,
|
|
1282
|
-
method: "PUT",
|
|
1283
|
-
headers,
|
|
1284
|
-
path: resolvedPath,
|
|
1285
|
-
body,
|
|
1286
|
-
});
|
|
838
|
+
b.m("PUT").h(headers).b(body);
|
|
839
|
+
return b.build();
|
|
1287
840
|
};
|
|
1288
841
|
exports.se_PutClassificationExportConfigurationCommand = se_PutClassificationExportConfigurationCommand;
|
|
1289
842
|
const se_PutFindingsPublicationConfigurationCommand = async (input, context) => {
|
|
1290
|
-
const
|
|
843
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1291
844
|
const headers = {
|
|
1292
845
|
"content-type": "application/json",
|
|
1293
846
|
};
|
|
1294
|
-
|
|
847
|
+
b.bp("/findings-publication-configuration");
|
|
1295
848
|
let body;
|
|
1296
849
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1297
850
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)(), `clientToken`],
|
|
1298
851
|
securityHubConfiguration: [, (_) => se_SecurityHubConfiguration(_, context), `securityHubConfiguration`],
|
|
1299
852
|
}));
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
hostname,
|
|
1303
|
-
port,
|
|
1304
|
-
method: "PUT",
|
|
1305
|
-
headers,
|
|
1306
|
-
path: resolvedPath,
|
|
1307
|
-
body,
|
|
1308
|
-
});
|
|
853
|
+
b.m("PUT").h(headers).b(body);
|
|
854
|
+
return b.build();
|
|
1309
855
|
};
|
|
1310
856
|
exports.se_PutFindingsPublicationConfigurationCommand = se_PutFindingsPublicationConfigurationCommand;
|
|
1311
857
|
const se_SearchResourcesCommand = async (input, context) => {
|
|
1312
|
-
const
|
|
858
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1313
859
|
const headers = {
|
|
1314
860
|
"content-type": "application/json",
|
|
1315
861
|
};
|
|
1316
|
-
|
|
862
|
+
b.bp("/datasources/search-resources");
|
|
1317
863
|
let body;
|
|
1318
864
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1319
865
|
bucketCriteria: [, (_) => se_SearchResourcesBucketCriteria(_, context), `bucketCriteria`],
|
|
@@ -1321,45 +867,31 @@ const se_SearchResourcesCommand = async (input, context) => {
|
|
|
1321
867
|
nextToken: [, , `nextToken`],
|
|
1322
868
|
sortCriteria: [, (_) => se_SearchResourcesSortCriteria(_, context), `sortCriteria`],
|
|
1323
869
|
}));
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
hostname,
|
|
1327
|
-
port,
|
|
1328
|
-
method: "POST",
|
|
1329
|
-
headers,
|
|
1330
|
-
path: resolvedPath,
|
|
1331
|
-
body,
|
|
1332
|
-
});
|
|
870
|
+
b.m("POST").h(headers).b(body);
|
|
871
|
+
return b.build();
|
|
1333
872
|
};
|
|
1334
873
|
exports.se_SearchResourcesCommand = se_SearchResourcesCommand;
|
|
1335
874
|
const se_TagResourceCommand = async (input, context) => {
|
|
1336
|
-
const
|
|
875
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1337
876
|
const headers = {
|
|
1338
877
|
"content-type": "application/json",
|
|
1339
878
|
};
|
|
1340
|
-
|
|
1341
|
-
|
|
879
|
+
b.bp("/tags/{resourceArn}");
|
|
880
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1342
881
|
let body;
|
|
1343
882
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1344
883
|
tags: [, (_) => (0, smithy_client_1._json)(_), `tags`],
|
|
1345
884
|
}));
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
hostname,
|
|
1349
|
-
port,
|
|
1350
|
-
method: "POST",
|
|
1351
|
-
headers,
|
|
1352
|
-
path: resolvedPath,
|
|
1353
|
-
body,
|
|
1354
|
-
});
|
|
885
|
+
b.m("POST").h(headers).b(body);
|
|
886
|
+
return b.build();
|
|
1355
887
|
};
|
|
1356
888
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1357
889
|
const se_TestCustomDataIdentifierCommand = async (input, context) => {
|
|
1358
|
-
const
|
|
890
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1359
891
|
const headers = {
|
|
1360
892
|
"content-type": "application/json",
|
|
1361
893
|
};
|
|
1362
|
-
|
|
894
|
+
b.bp("/custom-data-identifiers/test");
|
|
1363
895
|
let body;
|
|
1364
896
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1365
897
|
ignoreWords: [, (_) => (0, smithy_client_1._json)(_), `ignoreWords`],
|
|
@@ -1368,137 +900,94 @@ const se_TestCustomDataIdentifierCommand = async (input, context) => {
|
|
|
1368
900
|
regex: [, , `regex`],
|
|
1369
901
|
sampleText: [, , `sampleText`],
|
|
1370
902
|
}));
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
hostname,
|
|
1374
|
-
port,
|
|
1375
|
-
method: "POST",
|
|
1376
|
-
headers,
|
|
1377
|
-
path: resolvedPath,
|
|
1378
|
-
body,
|
|
1379
|
-
});
|
|
903
|
+
b.m("POST").h(headers).b(body);
|
|
904
|
+
return b.build();
|
|
1380
905
|
};
|
|
1381
906
|
exports.se_TestCustomDataIdentifierCommand = se_TestCustomDataIdentifierCommand;
|
|
1382
907
|
const se_UntagResourceCommand = async (input, context) => {
|
|
1383
|
-
const
|
|
908
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1384
909
|
const headers = {};
|
|
1385
|
-
|
|
1386
|
-
|
|
910
|
+
b.bp("/tags/{resourceArn}");
|
|
911
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1387
912
|
const query = (0, smithy_client_1.map)({
|
|
1388
|
-
|
|
913
|
+
[_tK]: [
|
|
1389
914
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
1390
|
-
() => (input
|
|
915
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
1391
916
|
],
|
|
1392
917
|
});
|
|
1393
918
|
let body;
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
hostname,
|
|
1397
|
-
port,
|
|
1398
|
-
method: "DELETE",
|
|
1399
|
-
headers,
|
|
1400
|
-
path: resolvedPath,
|
|
1401
|
-
query,
|
|
1402
|
-
body,
|
|
1403
|
-
});
|
|
919
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
920
|
+
return b.build();
|
|
1404
921
|
};
|
|
1405
922
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1406
923
|
const se_UpdateAllowListCommand = async (input, context) => {
|
|
1407
|
-
const
|
|
924
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1408
925
|
const headers = {
|
|
1409
926
|
"content-type": "application/json",
|
|
1410
927
|
};
|
|
1411
|
-
|
|
1412
|
-
|
|
928
|
+
b.bp("/allow-lists/{id}");
|
|
929
|
+
b.p("id", () => input.id, "{id}", false);
|
|
1413
930
|
let body;
|
|
1414
931
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1415
932
|
criteria: [, (_) => se_AllowListCriteria(_, context), `criteria`],
|
|
1416
933
|
description: [, , `description`],
|
|
1417
934
|
name: [, , `name`],
|
|
1418
935
|
}));
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
hostname,
|
|
1422
|
-
port,
|
|
1423
|
-
method: "PUT",
|
|
1424
|
-
headers,
|
|
1425
|
-
path: resolvedPath,
|
|
1426
|
-
body,
|
|
1427
|
-
});
|
|
936
|
+
b.m("PUT").h(headers).b(body);
|
|
937
|
+
return b.build();
|
|
1428
938
|
};
|
|
1429
939
|
exports.se_UpdateAllowListCommand = se_UpdateAllowListCommand;
|
|
1430
940
|
const se_UpdateAutomatedDiscoveryConfigurationCommand = async (input, context) => {
|
|
1431
|
-
const
|
|
941
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1432
942
|
const headers = {
|
|
1433
943
|
"content-type": "application/json",
|
|
1434
944
|
};
|
|
1435
|
-
|
|
945
|
+
b.bp("/automated-discovery/configuration");
|
|
1436
946
|
let body;
|
|
1437
947
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1438
948
|
status: [, , `status`],
|
|
1439
949
|
}));
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
hostname,
|
|
1443
|
-
port,
|
|
1444
|
-
method: "PUT",
|
|
1445
|
-
headers,
|
|
1446
|
-
path: resolvedPath,
|
|
1447
|
-
body,
|
|
1448
|
-
});
|
|
950
|
+
b.m("PUT").h(headers).b(body);
|
|
951
|
+
return b.build();
|
|
1449
952
|
};
|
|
1450
953
|
exports.se_UpdateAutomatedDiscoveryConfigurationCommand = se_UpdateAutomatedDiscoveryConfigurationCommand;
|
|
1451
954
|
const se_UpdateClassificationJobCommand = async (input, context) => {
|
|
1452
|
-
const
|
|
955
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1453
956
|
const headers = {
|
|
1454
957
|
"content-type": "application/json",
|
|
1455
958
|
};
|
|
1456
|
-
|
|
1457
|
-
|
|
959
|
+
b.bp("/jobs/{jobId}");
|
|
960
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
1458
961
|
let body;
|
|
1459
962
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1460
963
|
jobStatus: [, , `jobStatus`],
|
|
1461
964
|
}));
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
hostname,
|
|
1465
|
-
port,
|
|
1466
|
-
method: "PATCH",
|
|
1467
|
-
headers,
|
|
1468
|
-
path: resolvedPath,
|
|
1469
|
-
body,
|
|
1470
|
-
});
|
|
965
|
+
b.m("PATCH").h(headers).b(body);
|
|
966
|
+
return b.build();
|
|
1471
967
|
};
|
|
1472
968
|
exports.se_UpdateClassificationJobCommand = se_UpdateClassificationJobCommand;
|
|
1473
969
|
const se_UpdateClassificationScopeCommand = async (input, context) => {
|
|
1474
|
-
const
|
|
970
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1475
971
|
const headers = {
|
|
1476
972
|
"content-type": "application/json",
|
|
1477
973
|
};
|
|
1478
|
-
|
|
1479
|
-
|
|
974
|
+
b.bp("/classification-scopes/{id}");
|
|
975
|
+
b.p("id", () => input.id, "{id}", false);
|
|
1480
976
|
let body;
|
|
1481
977
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1482
978
|
s3: [, (_) => se_S3ClassificationScopeUpdate(_, context), `s3`],
|
|
1483
979
|
}));
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
hostname,
|
|
1487
|
-
port,
|
|
1488
|
-
method: "PATCH",
|
|
1489
|
-
headers,
|
|
1490
|
-
path: resolvedPath,
|
|
1491
|
-
body,
|
|
1492
|
-
});
|
|
980
|
+
b.m("PATCH").h(headers).b(body);
|
|
981
|
+
return b.build();
|
|
1493
982
|
};
|
|
1494
983
|
exports.se_UpdateClassificationScopeCommand = se_UpdateClassificationScopeCommand;
|
|
1495
984
|
const se_UpdateFindingsFilterCommand = async (input, context) => {
|
|
1496
|
-
const
|
|
985
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1497
986
|
const headers = {
|
|
1498
987
|
"content-type": "application/json",
|
|
1499
988
|
};
|
|
1500
|
-
|
|
1501
|
-
|
|
989
|
+
b.bp("/findingsfilters/{id}");
|
|
990
|
+
b.p("id", () => input.id, "{id}", false);
|
|
1502
991
|
let body;
|
|
1503
992
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1504
993
|
action: [, , `action`],
|
|
@@ -1508,176 +997,118 @@ const se_UpdateFindingsFilterCommand = async (input, context) => {
|
|
|
1508
997
|
name: [, , `name`],
|
|
1509
998
|
position: [, , `position`],
|
|
1510
999
|
}));
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
hostname,
|
|
1514
|
-
port,
|
|
1515
|
-
method: "PATCH",
|
|
1516
|
-
headers,
|
|
1517
|
-
path: resolvedPath,
|
|
1518
|
-
body,
|
|
1519
|
-
});
|
|
1000
|
+
b.m("PATCH").h(headers).b(body);
|
|
1001
|
+
return b.build();
|
|
1520
1002
|
};
|
|
1521
1003
|
exports.se_UpdateFindingsFilterCommand = se_UpdateFindingsFilterCommand;
|
|
1522
1004
|
const se_UpdateMacieSessionCommand = async (input, context) => {
|
|
1523
|
-
const
|
|
1005
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1524
1006
|
const headers = {
|
|
1525
1007
|
"content-type": "application/json",
|
|
1526
1008
|
};
|
|
1527
|
-
|
|
1009
|
+
b.bp("/macie");
|
|
1528
1010
|
let body;
|
|
1529
1011
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1530
1012
|
findingPublishingFrequency: [, , `findingPublishingFrequency`],
|
|
1531
1013
|
status: [, , `status`],
|
|
1532
1014
|
}));
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
hostname,
|
|
1536
|
-
port,
|
|
1537
|
-
method: "PATCH",
|
|
1538
|
-
headers,
|
|
1539
|
-
path: resolvedPath,
|
|
1540
|
-
body,
|
|
1541
|
-
});
|
|
1015
|
+
b.m("PATCH").h(headers).b(body);
|
|
1016
|
+
return b.build();
|
|
1542
1017
|
};
|
|
1543
1018
|
exports.se_UpdateMacieSessionCommand = se_UpdateMacieSessionCommand;
|
|
1544
1019
|
const se_UpdateMemberSessionCommand = async (input, context) => {
|
|
1545
|
-
const
|
|
1020
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1546
1021
|
const headers = {
|
|
1547
1022
|
"content-type": "application/json",
|
|
1548
1023
|
};
|
|
1549
|
-
|
|
1550
|
-
|
|
1024
|
+
b.bp("/macie/members/{id}");
|
|
1025
|
+
b.p("id", () => input.id, "{id}", false);
|
|
1551
1026
|
let body;
|
|
1552
1027
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1553
1028
|
status: [, , `status`],
|
|
1554
1029
|
}));
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
hostname,
|
|
1558
|
-
port,
|
|
1559
|
-
method: "PATCH",
|
|
1560
|
-
headers,
|
|
1561
|
-
path: resolvedPath,
|
|
1562
|
-
body,
|
|
1563
|
-
});
|
|
1030
|
+
b.m("PATCH").h(headers).b(body);
|
|
1031
|
+
return b.build();
|
|
1564
1032
|
};
|
|
1565
1033
|
exports.se_UpdateMemberSessionCommand = se_UpdateMemberSessionCommand;
|
|
1566
1034
|
const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
1567
|
-
const
|
|
1035
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1568
1036
|
const headers = {
|
|
1569
1037
|
"content-type": "application/json",
|
|
1570
1038
|
};
|
|
1571
|
-
|
|
1039
|
+
b.bp("/admin/configuration");
|
|
1572
1040
|
let body;
|
|
1573
1041
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1574
1042
|
autoEnable: [, , `autoEnable`],
|
|
1575
1043
|
}));
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
hostname,
|
|
1579
|
-
port,
|
|
1580
|
-
method: "PATCH",
|
|
1581
|
-
headers,
|
|
1582
|
-
path: resolvedPath,
|
|
1583
|
-
body,
|
|
1584
|
-
});
|
|
1044
|
+
b.m("PATCH").h(headers).b(body);
|
|
1045
|
+
return b.build();
|
|
1585
1046
|
};
|
|
1586
1047
|
exports.se_UpdateOrganizationConfigurationCommand = se_UpdateOrganizationConfigurationCommand;
|
|
1587
1048
|
const se_UpdateResourceProfileCommand = async (input, context) => {
|
|
1588
|
-
const
|
|
1049
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1589
1050
|
const headers = {
|
|
1590
1051
|
"content-type": "application/json",
|
|
1591
1052
|
};
|
|
1592
|
-
|
|
1053
|
+
b.bp("/resource-profiles");
|
|
1593
1054
|
const query = (0, smithy_client_1.map)({
|
|
1594
|
-
|
|
1055
|
+
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
1595
1056
|
});
|
|
1596
1057
|
let body;
|
|
1597
1058
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1598
1059
|
sensitivityScoreOverride: [, , `sensitivityScoreOverride`],
|
|
1599
1060
|
}));
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
hostname,
|
|
1603
|
-
port,
|
|
1604
|
-
method: "PATCH",
|
|
1605
|
-
headers,
|
|
1606
|
-
path: resolvedPath,
|
|
1607
|
-
query,
|
|
1608
|
-
body,
|
|
1609
|
-
});
|
|
1061
|
+
b.m("PATCH").h(headers).q(query).b(body);
|
|
1062
|
+
return b.build();
|
|
1610
1063
|
};
|
|
1611
1064
|
exports.se_UpdateResourceProfileCommand = se_UpdateResourceProfileCommand;
|
|
1612
1065
|
const se_UpdateResourceProfileDetectionsCommand = async (input, context) => {
|
|
1613
|
-
const
|
|
1066
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1614
1067
|
const headers = {
|
|
1615
1068
|
"content-type": "application/json",
|
|
1616
1069
|
};
|
|
1617
|
-
|
|
1070
|
+
b.bp("/resource-profiles/detections");
|
|
1618
1071
|
const query = (0, smithy_client_1.map)({
|
|
1619
|
-
|
|
1072
|
+
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
1620
1073
|
});
|
|
1621
1074
|
let body;
|
|
1622
1075
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1623
1076
|
suppressDataIdentifiers: [, (_) => se___listOfSuppressDataIdentifier(_, context), `suppressDataIdentifiers`],
|
|
1624
1077
|
}));
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
hostname,
|
|
1628
|
-
port,
|
|
1629
|
-
method: "PATCH",
|
|
1630
|
-
headers,
|
|
1631
|
-
path: resolvedPath,
|
|
1632
|
-
query,
|
|
1633
|
-
body,
|
|
1634
|
-
});
|
|
1078
|
+
b.m("PATCH").h(headers).q(query).b(body);
|
|
1079
|
+
return b.build();
|
|
1635
1080
|
};
|
|
1636
1081
|
exports.se_UpdateResourceProfileDetectionsCommand = se_UpdateResourceProfileDetectionsCommand;
|
|
1637
1082
|
const se_UpdateRevealConfigurationCommand = async (input, context) => {
|
|
1638
|
-
const
|
|
1083
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1639
1084
|
const headers = {
|
|
1640
1085
|
"content-type": "application/json",
|
|
1641
1086
|
};
|
|
1642
|
-
|
|
1087
|
+
b.bp("/reveal-configuration");
|
|
1643
1088
|
let body;
|
|
1644
1089
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1645
1090
|
configuration: [, (_) => se_RevealConfiguration(_, context), `configuration`],
|
|
1646
1091
|
retrievalConfiguration: [, (_) => se_UpdateRetrievalConfiguration(_, context), `retrievalConfiguration`],
|
|
1647
1092
|
}));
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
hostname,
|
|
1651
|
-
port,
|
|
1652
|
-
method: "PUT",
|
|
1653
|
-
headers,
|
|
1654
|
-
path: resolvedPath,
|
|
1655
|
-
body,
|
|
1656
|
-
});
|
|
1093
|
+
b.m("PUT").h(headers).b(body);
|
|
1094
|
+
return b.build();
|
|
1657
1095
|
};
|
|
1658
1096
|
exports.se_UpdateRevealConfigurationCommand = se_UpdateRevealConfigurationCommand;
|
|
1659
1097
|
const se_UpdateSensitivityInspectionTemplateCommand = async (input, context) => {
|
|
1660
|
-
const
|
|
1098
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1661
1099
|
const headers = {
|
|
1662
1100
|
"content-type": "application/json",
|
|
1663
1101
|
};
|
|
1664
|
-
|
|
1665
|
-
|
|
1102
|
+
b.bp("/templates/sensitivity-inspections/{id}");
|
|
1103
|
+
b.p("id", () => input.id, "{id}", false);
|
|
1666
1104
|
let body;
|
|
1667
1105
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1668
1106
|
description: [, , `description`],
|
|
1669
1107
|
excludes: [, (_) => se_SensitivityInspectionTemplateExcludes(_, context), `excludes`],
|
|
1670
1108
|
includes: [, (_) => se_SensitivityInspectionTemplateIncludes(_, context), `includes`],
|
|
1671
1109
|
}));
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
hostname,
|
|
1675
|
-
port,
|
|
1676
|
-
method: "PUT",
|
|
1677
|
-
headers,
|
|
1678
|
-
path: resolvedPath,
|
|
1679
|
-
body,
|
|
1680
|
-
});
|
|
1110
|
+
b.m("PUT").h(headers).b(body);
|
|
1111
|
+
return b.build();
|
|
1681
1112
|
};
|
|
1682
1113
|
exports.se_UpdateSensitivityInspectionTemplateCommand = se_UpdateSensitivityInspectionTemplateCommand;
|
|
1683
1114
|
const de_AcceptInvitationCommand = async (output, context) => {
|
|
@@ -7342,6 +6773,15 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
7342
6773
|
value !== "" &&
|
|
7343
6774
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
7344
6775
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
6776
|
+
const _aAI = "adminAccountId";
|
|
6777
|
+
const _iJC = "ignoreJobChecks";
|
|
6778
|
+
const _mR = "maxResults";
|
|
6779
|
+
const _n = "name";
|
|
6780
|
+
const _nT = "nextToken";
|
|
6781
|
+
const _oA = "onlyAssociated";
|
|
6782
|
+
const _rA = "resourceArn";
|
|
6783
|
+
const _tK = "tagKeys";
|
|
6784
|
+
const _tR = "timeRange";
|
|
7345
6785
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
7346
6786
|
if (encoded.length) {
|
|
7347
6787
|
return JSON.parse(encoded);
|