@aws-sdk/client-guardduty 3.927.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +13415 -5634
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/GuardDutyClient.js +2 -0
- package/dist-es/commands/AcceptAdministratorInvitationCommand.js +3 -9
- package/dist-es/commands/AcceptInvitationCommand.js +3 -9
- package/dist-es/commands/ArchiveFindingsCommand.js +3 -9
- package/dist-es/commands/CreateDetectorCommand.js +3 -9
- package/dist-es/commands/CreateFilterCommand.js +3 -9
- package/dist-es/commands/CreateIPSetCommand.js +3 -9
- package/dist-es/commands/CreateMalwareProtectionPlanCommand.js +3 -9
- package/dist-es/commands/CreateMembersCommand.js +3 -10
- package/dist-es/commands/CreatePublishingDestinationCommand.js +3 -9
- package/dist-es/commands/CreateSampleFindingsCommand.js +3 -9
- package/dist-es/commands/CreateThreatEntitySetCommand.js +3 -9
- package/dist-es/commands/CreateThreatIntelSetCommand.js +3 -9
- package/dist-es/commands/CreateTrustedEntitySetCommand.js +3 -9
- package/dist-es/commands/DeclineInvitationsCommand.js +3 -9
- package/dist-es/commands/DeleteDetectorCommand.js +3 -9
- package/dist-es/commands/DeleteFilterCommand.js +3 -9
- package/dist-es/commands/DeleteIPSetCommand.js +3 -9
- package/dist-es/commands/DeleteInvitationsCommand.js +3 -9
- package/dist-es/commands/DeleteMalwareProtectionPlanCommand.js +3 -9
- package/dist-es/commands/DeleteMembersCommand.js +3 -9
- package/dist-es/commands/DeletePublishingDestinationCommand.js +3 -9
- package/dist-es/commands/DeleteThreatEntitySetCommand.js +3 -9
- package/dist-es/commands/DeleteThreatIntelSetCommand.js +3 -9
- package/dist-es/commands/DeleteTrustedEntitySetCommand.js +3 -9
- package/dist-es/commands/DescribeMalwareScansCommand.js +3 -9
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribePublishingDestinationCommand.js +3 -9
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +3 -9
- package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +3 -9
- package/dist-es/commands/DisassociateFromMasterAccountCommand.js +3 -9
- package/dist-es/commands/DisassociateMembersCommand.js +3 -9
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +3 -9
- package/dist-es/commands/GetAdministratorAccountCommand.js +3 -9
- package/dist-es/commands/GetCoverageStatisticsCommand.js +3 -9
- package/dist-es/commands/GetDetectorCommand.js +3 -9
- package/dist-es/commands/GetFilterCommand.js +3 -9
- package/dist-es/commands/GetFindingsCommand.js +3 -10
- package/dist-es/commands/GetFindingsStatisticsCommand.js +3 -9
- package/dist-es/commands/GetIPSetCommand.js +3 -9
- package/dist-es/commands/GetInvitationsCountCommand.js +3 -9
- package/dist-es/commands/GetMalwareProtectionPlanCommand.js +3 -9
- package/dist-es/commands/GetMalwareScanSettingsCommand.js +3 -9
- package/dist-es/commands/GetMasterAccountCommand.js +3 -9
- package/dist-es/commands/GetMemberDetectorsCommand.js +3 -9
- package/dist-es/commands/GetMembersCommand.js +3 -10
- package/dist-es/commands/GetOrganizationStatisticsCommand.js +3 -9
- package/dist-es/commands/GetRemainingFreeTrialDaysCommand.js +3 -9
- package/dist-es/commands/GetThreatEntitySetCommand.js +3 -9
- package/dist-es/commands/GetThreatIntelSetCommand.js +3 -9
- package/dist-es/commands/GetTrustedEntitySetCommand.js +3 -9
- package/dist-es/commands/GetUsageStatisticsCommand.js +3 -9
- package/dist-es/commands/InviteMembersCommand.js +3 -9
- package/dist-es/commands/ListCoverageCommand.js +3 -9
- package/dist-es/commands/ListDetectorsCommand.js +3 -9
- package/dist-es/commands/ListFiltersCommand.js +3 -9
- package/dist-es/commands/ListFindingsCommand.js +3 -9
- package/dist-es/commands/ListIPSetsCommand.js +3 -9
- package/dist-es/commands/ListInvitationsCommand.js +3 -9
- package/dist-es/commands/ListMalwareProtectionPlansCommand.js +3 -9
- package/dist-es/commands/ListMembersCommand.js +3 -10
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -9
- package/dist-es/commands/ListPublishingDestinationsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListThreatEntitySetsCommand.js +3 -9
- package/dist-es/commands/ListThreatIntelSetsCommand.js +3 -9
- package/dist-es/commands/ListTrustedEntitySetsCommand.js +3 -9
- package/dist-es/commands/StartMalwareScanCommand.js +3 -9
- package/dist-es/commands/StartMonitoringMembersCommand.js +3 -9
- package/dist-es/commands/StopMonitoringMembersCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UnarchiveFindingsCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDetectorCommand.js +3 -9
- package/dist-es/commands/UpdateFilterCommand.js +3 -9
- package/dist-es/commands/UpdateFindingsFeedbackCommand.js +3 -10
- package/dist-es/commands/UpdateIPSetCommand.js +3 -9
- package/dist-es/commands/UpdateMalwareProtectionPlanCommand.js +3 -9
- package/dist-es/commands/UpdateMalwareScanSettingsCommand.js +3 -9
- package/dist-es/commands/UpdateMemberDetectorsCommand.js +3 -9
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdatePublishingDestinationCommand.js +3 -9
- package/dist-es/commands/UpdateThreatEntitySetCommand.js +3 -9
- package/dist-es/commands/UpdateThreatIntelSetCommand.js +3 -9
- package/dist-es/commands/UpdateTrustedEntitySetCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -113
- package/dist-es/models/models_1.js +0 -22
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +13208 -0
- package/dist-types/GuardDutyClient.d.ts +10 -1
- package/dist-types/commands/CreatePublishingDestinationCommand.d.ts +3 -0
- package/dist-types/commands/DescribePublishingDestinationCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +10 -88
- package/dist-types/models/models_1.d.ts +0 -20
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +2 -5
- package/dist-types/schemas/schemas_0.d.ts +599 -0
- package/dist-types/ts3.4/GuardDutyClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -50
- package/dist-types/ts3.4/models/models_1.d.ts +0 -13
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +606 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -4806
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -758
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -1013
|
@@ -1,4806 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { GuardDutyServiceException as __BaseException } from "../models/GuardDutyServiceException";
|
|
6
|
-
import { AccessDeniedException, BadRequestException, ConflictException, InternalServerErrorException, ResourceNotFoundException, } from "../models/models_0";
|
|
7
|
-
export const se_AcceptAdministratorInvitationCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/detector/{DetectorId}/administrator");
|
|
13
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
administratorId: [, , `AdministratorId`],
|
|
17
|
-
invitationId: [, , `InvitationId`],
|
|
18
|
-
}));
|
|
19
|
-
b.m("POST").h(headers).b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
export const se_AcceptInvitationCommand = async (input, context) => {
|
|
23
|
-
const b = rb(input, context);
|
|
24
|
-
const headers = {
|
|
25
|
-
"content-type": "application/json",
|
|
26
|
-
};
|
|
27
|
-
b.bp("/detector/{DetectorId}/master");
|
|
28
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify(take(input, {
|
|
31
|
-
invitationId: [, , `InvitationId`],
|
|
32
|
-
masterId: [, , `MasterId`],
|
|
33
|
-
}));
|
|
34
|
-
b.m("POST").h(headers).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
export const se_ArchiveFindingsCommand = async (input, context) => {
|
|
38
|
-
const b = rb(input, context);
|
|
39
|
-
const headers = {
|
|
40
|
-
"content-type": "application/json",
|
|
41
|
-
};
|
|
42
|
-
b.bp("/detector/{DetectorId}/findings/archive");
|
|
43
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(take(input, {
|
|
46
|
-
findingIds: [, (_) => _json(_), `FindingIds`],
|
|
47
|
-
}));
|
|
48
|
-
b.m("POST").h(headers).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
export const se_CreateDetectorCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = {
|
|
54
|
-
"content-type": "application/json",
|
|
55
|
-
};
|
|
56
|
-
b.bp("/detector");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(take(input, {
|
|
59
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
|
|
60
|
-
dataSources: [, (_) => se_DataSourceConfigurations(_, context), `DataSources`],
|
|
61
|
-
enable: [, , `Enable`],
|
|
62
|
-
features: [, (_) => se_DetectorFeatureConfigurations(_, context), `Features`],
|
|
63
|
-
findingPublishingFrequency: [, , `FindingPublishingFrequency`],
|
|
64
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
65
|
-
}));
|
|
66
|
-
b.m("POST").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
export const se_CreateFilterCommand = async (input, context) => {
|
|
70
|
-
const b = rb(input, context);
|
|
71
|
-
const headers = {
|
|
72
|
-
"content-type": "application/json",
|
|
73
|
-
};
|
|
74
|
-
b.bp("/detector/{DetectorId}/filter");
|
|
75
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify(take(input, {
|
|
78
|
-
action: [, , `Action`],
|
|
79
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
|
|
80
|
-
description: [, , `Description`],
|
|
81
|
-
findingCriteria: [, (_) => se_FindingCriteria(_, context), `FindingCriteria`],
|
|
82
|
-
name: [, , `Name`],
|
|
83
|
-
rank: [, , `Rank`],
|
|
84
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
85
|
-
}));
|
|
86
|
-
b.m("POST").h(headers).b(body);
|
|
87
|
-
return b.build();
|
|
88
|
-
};
|
|
89
|
-
export const se_CreateIPSetCommand = async (input, context) => {
|
|
90
|
-
const b = rb(input, context);
|
|
91
|
-
const headers = {
|
|
92
|
-
"content-type": "application/json",
|
|
93
|
-
};
|
|
94
|
-
b.bp("/detector/{DetectorId}/ipset");
|
|
95
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify(take(input, {
|
|
98
|
-
activate: [, , `Activate`],
|
|
99
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
|
|
100
|
-
expectedBucketOwner: [, , `ExpectedBucketOwner`],
|
|
101
|
-
format: [, , `Format`],
|
|
102
|
-
location: [, , `Location`],
|
|
103
|
-
name: [, , `Name`],
|
|
104
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
105
|
-
}));
|
|
106
|
-
b.m("POST").h(headers).b(body);
|
|
107
|
-
return b.build();
|
|
108
|
-
};
|
|
109
|
-
export const se_CreateMalwareProtectionPlanCommand = async (input, context) => {
|
|
110
|
-
const b = rb(input, context);
|
|
111
|
-
const headers = {
|
|
112
|
-
"content-type": "application/json",
|
|
113
|
-
};
|
|
114
|
-
b.bp("/malware-protection-plan");
|
|
115
|
-
let body;
|
|
116
|
-
body = JSON.stringify(take(input, {
|
|
117
|
-
actions: [, (_) => se_MalwareProtectionPlanActions(_, context), `Actions`],
|
|
118
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
|
|
119
|
-
protectedResource: [, (_) => se_CreateProtectedResource(_, context), `ProtectedResource`],
|
|
120
|
-
role: [, , `Role`],
|
|
121
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
122
|
-
}));
|
|
123
|
-
b.m("POST").h(headers).b(body);
|
|
124
|
-
return b.build();
|
|
125
|
-
};
|
|
126
|
-
export const se_CreateMembersCommand = async (input, context) => {
|
|
127
|
-
const b = rb(input, context);
|
|
128
|
-
const headers = {
|
|
129
|
-
"content-type": "application/json",
|
|
130
|
-
};
|
|
131
|
-
b.bp("/detector/{DetectorId}/member");
|
|
132
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
133
|
-
let body;
|
|
134
|
-
body = JSON.stringify(take(input, {
|
|
135
|
-
accountDetails: [, (_) => se_AccountDetails(_, context), `AccountDetails`],
|
|
136
|
-
}));
|
|
137
|
-
b.m("POST").h(headers).b(body);
|
|
138
|
-
return b.build();
|
|
139
|
-
};
|
|
140
|
-
export const se_CreatePublishingDestinationCommand = async (input, context) => {
|
|
141
|
-
const b = rb(input, context);
|
|
142
|
-
const headers = {
|
|
143
|
-
"content-type": "application/json",
|
|
144
|
-
};
|
|
145
|
-
b.bp("/detector/{DetectorId}/publishingDestination");
|
|
146
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify(take(input, {
|
|
149
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
|
|
150
|
-
destinationProperties: [, (_) => se_DestinationProperties(_, context), `DestinationProperties`],
|
|
151
|
-
destinationType: [, , `DestinationType`],
|
|
152
|
-
}));
|
|
153
|
-
b.m("POST").h(headers).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
export const se_CreateSampleFindingsCommand = async (input, context) => {
|
|
157
|
-
const b = rb(input, context);
|
|
158
|
-
const headers = {
|
|
159
|
-
"content-type": "application/json",
|
|
160
|
-
};
|
|
161
|
-
b.bp("/detector/{DetectorId}/findings/create");
|
|
162
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
163
|
-
let body;
|
|
164
|
-
body = JSON.stringify(take(input, {
|
|
165
|
-
findingTypes: [, (_) => _json(_), `FindingTypes`],
|
|
166
|
-
}));
|
|
167
|
-
b.m("POST").h(headers).b(body);
|
|
168
|
-
return b.build();
|
|
169
|
-
};
|
|
170
|
-
export const se_CreateThreatEntitySetCommand = async (input, context) => {
|
|
171
|
-
const b = rb(input, context);
|
|
172
|
-
const headers = {
|
|
173
|
-
"content-type": "application/json",
|
|
174
|
-
};
|
|
175
|
-
b.bp("/detector/{DetectorId}/threatentityset");
|
|
176
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
177
|
-
let body;
|
|
178
|
-
body = JSON.stringify(take(input, {
|
|
179
|
-
activate: [, , `Activate`],
|
|
180
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
|
|
181
|
-
expectedBucketOwner: [, , `ExpectedBucketOwner`],
|
|
182
|
-
format: [, , `Format`],
|
|
183
|
-
location: [, , `Location`],
|
|
184
|
-
name: [, , `Name`],
|
|
185
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
186
|
-
}));
|
|
187
|
-
b.m("POST").h(headers).b(body);
|
|
188
|
-
return b.build();
|
|
189
|
-
};
|
|
190
|
-
export const se_CreateThreatIntelSetCommand = async (input, context) => {
|
|
191
|
-
const b = rb(input, context);
|
|
192
|
-
const headers = {
|
|
193
|
-
"content-type": "application/json",
|
|
194
|
-
};
|
|
195
|
-
b.bp("/detector/{DetectorId}/threatintelset");
|
|
196
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
197
|
-
let body;
|
|
198
|
-
body = JSON.stringify(take(input, {
|
|
199
|
-
activate: [, , `Activate`],
|
|
200
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
|
|
201
|
-
expectedBucketOwner: [, , `ExpectedBucketOwner`],
|
|
202
|
-
format: [, , `Format`],
|
|
203
|
-
location: [, , `Location`],
|
|
204
|
-
name: [, , `Name`],
|
|
205
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
206
|
-
}));
|
|
207
|
-
b.m("POST").h(headers).b(body);
|
|
208
|
-
return b.build();
|
|
209
|
-
};
|
|
210
|
-
export const se_CreateTrustedEntitySetCommand = async (input, context) => {
|
|
211
|
-
const b = rb(input, context);
|
|
212
|
-
const headers = {
|
|
213
|
-
"content-type": "application/json",
|
|
214
|
-
};
|
|
215
|
-
b.bp("/detector/{DetectorId}/trustedentityset");
|
|
216
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
217
|
-
let body;
|
|
218
|
-
body = JSON.stringify(take(input, {
|
|
219
|
-
activate: [, , `Activate`],
|
|
220
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
|
|
221
|
-
expectedBucketOwner: [, , `ExpectedBucketOwner`],
|
|
222
|
-
format: [, , `Format`],
|
|
223
|
-
location: [, , `Location`],
|
|
224
|
-
name: [, , `Name`],
|
|
225
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
226
|
-
}));
|
|
227
|
-
b.m("POST").h(headers).b(body);
|
|
228
|
-
return b.build();
|
|
229
|
-
};
|
|
230
|
-
export const se_DeclineInvitationsCommand = async (input, context) => {
|
|
231
|
-
const b = rb(input, context);
|
|
232
|
-
const headers = {
|
|
233
|
-
"content-type": "application/json",
|
|
234
|
-
};
|
|
235
|
-
b.bp("/invitation/decline");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(take(input, {
|
|
238
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
239
|
-
}));
|
|
240
|
-
b.m("POST").h(headers).b(body);
|
|
241
|
-
return b.build();
|
|
242
|
-
};
|
|
243
|
-
export const se_DeleteDetectorCommand = async (input, context) => {
|
|
244
|
-
const b = rb(input, context);
|
|
245
|
-
const headers = {};
|
|
246
|
-
b.bp("/detector/{DetectorId}");
|
|
247
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
248
|
-
let body;
|
|
249
|
-
b.m("DELETE").h(headers).b(body);
|
|
250
|
-
return b.build();
|
|
251
|
-
};
|
|
252
|
-
export const se_DeleteFilterCommand = async (input, context) => {
|
|
253
|
-
const b = rb(input, context);
|
|
254
|
-
const headers = {};
|
|
255
|
-
b.bp("/detector/{DetectorId}/filter/{FilterName}");
|
|
256
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
257
|
-
b.p("FilterName", () => input.FilterName, "{FilterName}", false);
|
|
258
|
-
let body;
|
|
259
|
-
b.m("DELETE").h(headers).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
export const se_DeleteInvitationsCommand = async (input, context) => {
|
|
263
|
-
const b = rb(input, context);
|
|
264
|
-
const headers = {
|
|
265
|
-
"content-type": "application/json",
|
|
266
|
-
};
|
|
267
|
-
b.bp("/invitation/delete");
|
|
268
|
-
let body;
|
|
269
|
-
body = JSON.stringify(take(input, {
|
|
270
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
271
|
-
}));
|
|
272
|
-
b.m("POST").h(headers).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
export const se_DeleteIPSetCommand = async (input, context) => {
|
|
276
|
-
const b = rb(input, context);
|
|
277
|
-
const headers = {};
|
|
278
|
-
b.bp("/detector/{DetectorId}/ipset/{IpSetId}");
|
|
279
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
280
|
-
b.p("IpSetId", () => input.IpSetId, "{IpSetId}", false);
|
|
281
|
-
let body;
|
|
282
|
-
b.m("DELETE").h(headers).b(body);
|
|
283
|
-
return b.build();
|
|
284
|
-
};
|
|
285
|
-
export const se_DeleteMalwareProtectionPlanCommand = async (input, context) => {
|
|
286
|
-
const b = rb(input, context);
|
|
287
|
-
const headers = {};
|
|
288
|
-
b.bp("/malware-protection-plan/{MalwareProtectionPlanId}");
|
|
289
|
-
b.p("MalwareProtectionPlanId", () => input.MalwareProtectionPlanId, "{MalwareProtectionPlanId}", false);
|
|
290
|
-
let body;
|
|
291
|
-
b.m("DELETE").h(headers).b(body);
|
|
292
|
-
return b.build();
|
|
293
|
-
};
|
|
294
|
-
export const se_DeleteMembersCommand = async (input, context) => {
|
|
295
|
-
const b = rb(input, context);
|
|
296
|
-
const headers = {
|
|
297
|
-
"content-type": "application/json",
|
|
298
|
-
};
|
|
299
|
-
b.bp("/detector/{DetectorId}/member/delete");
|
|
300
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
301
|
-
let body;
|
|
302
|
-
body = JSON.stringify(take(input, {
|
|
303
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
304
|
-
}));
|
|
305
|
-
b.m("POST").h(headers).b(body);
|
|
306
|
-
return b.build();
|
|
307
|
-
};
|
|
308
|
-
export const se_DeletePublishingDestinationCommand = async (input, context) => {
|
|
309
|
-
const b = rb(input, context);
|
|
310
|
-
const headers = {};
|
|
311
|
-
b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}");
|
|
312
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
313
|
-
b.p("DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
314
|
-
let body;
|
|
315
|
-
b.m("DELETE").h(headers).b(body);
|
|
316
|
-
return b.build();
|
|
317
|
-
};
|
|
318
|
-
export const se_DeleteThreatEntitySetCommand = async (input, context) => {
|
|
319
|
-
const b = rb(input, context);
|
|
320
|
-
const headers = {};
|
|
321
|
-
b.bp("/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}");
|
|
322
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
323
|
-
b.p("ThreatEntitySetId", () => input.ThreatEntitySetId, "{ThreatEntitySetId}", false);
|
|
324
|
-
let body;
|
|
325
|
-
b.m("DELETE").h(headers).b(body);
|
|
326
|
-
return b.build();
|
|
327
|
-
};
|
|
328
|
-
export const se_DeleteThreatIntelSetCommand = async (input, context) => {
|
|
329
|
-
const b = rb(input, context);
|
|
330
|
-
const headers = {};
|
|
331
|
-
b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}");
|
|
332
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
333
|
-
b.p("ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
334
|
-
let body;
|
|
335
|
-
b.m("DELETE").h(headers).b(body);
|
|
336
|
-
return b.build();
|
|
337
|
-
};
|
|
338
|
-
export const se_DeleteTrustedEntitySetCommand = async (input, context) => {
|
|
339
|
-
const b = rb(input, context);
|
|
340
|
-
const headers = {};
|
|
341
|
-
b.bp("/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}");
|
|
342
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
343
|
-
b.p("TrustedEntitySetId", () => input.TrustedEntitySetId, "{TrustedEntitySetId}", false);
|
|
344
|
-
let body;
|
|
345
|
-
b.m("DELETE").h(headers).b(body);
|
|
346
|
-
return b.build();
|
|
347
|
-
};
|
|
348
|
-
export const se_DescribeMalwareScansCommand = async (input, context) => {
|
|
349
|
-
const b = rb(input, context);
|
|
350
|
-
const headers = {
|
|
351
|
-
"content-type": "application/json",
|
|
352
|
-
};
|
|
353
|
-
b.bp("/detector/{DetectorId}/malware-scans");
|
|
354
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
355
|
-
let body;
|
|
356
|
-
body = JSON.stringify(take(input, {
|
|
357
|
-
filterCriteria: [, (_) => se_FilterCriteria(_, context), `FilterCriteria`],
|
|
358
|
-
maxResults: [, , `MaxResults`],
|
|
359
|
-
nextToken: [, , `NextToken`],
|
|
360
|
-
sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`],
|
|
361
|
-
}));
|
|
362
|
-
b.m("POST").h(headers).b(body);
|
|
363
|
-
return b.build();
|
|
364
|
-
};
|
|
365
|
-
export const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
366
|
-
const b = rb(input, context);
|
|
367
|
-
const headers = {};
|
|
368
|
-
b.bp("/detector/{DetectorId}/admin");
|
|
369
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
370
|
-
const query = map({
|
|
371
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
372
|
-
[_nT]: [, input[_NT]],
|
|
373
|
-
});
|
|
374
|
-
let body;
|
|
375
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
376
|
-
return b.build();
|
|
377
|
-
};
|
|
378
|
-
export const se_DescribePublishingDestinationCommand = async (input, context) => {
|
|
379
|
-
const b = rb(input, context);
|
|
380
|
-
const headers = {};
|
|
381
|
-
b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}");
|
|
382
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
383
|
-
b.p("DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
384
|
-
let body;
|
|
385
|
-
b.m("GET").h(headers).b(body);
|
|
386
|
-
return b.build();
|
|
387
|
-
};
|
|
388
|
-
export const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
|
|
389
|
-
const b = rb(input, context);
|
|
390
|
-
const headers = {
|
|
391
|
-
"content-type": "application/json",
|
|
392
|
-
};
|
|
393
|
-
b.bp("/admin/disable");
|
|
394
|
-
let body;
|
|
395
|
-
body = JSON.stringify(take(input, {
|
|
396
|
-
adminAccountId: [, , `AdminAccountId`],
|
|
397
|
-
}));
|
|
398
|
-
b.m("POST").h(headers).b(body);
|
|
399
|
-
return b.build();
|
|
400
|
-
};
|
|
401
|
-
export const se_DisassociateFromAdministratorAccountCommand = async (input, context) => {
|
|
402
|
-
const b = rb(input, context);
|
|
403
|
-
const headers = {};
|
|
404
|
-
b.bp("/detector/{DetectorId}/administrator/disassociate");
|
|
405
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
406
|
-
let body;
|
|
407
|
-
b.m("POST").h(headers).b(body);
|
|
408
|
-
return b.build();
|
|
409
|
-
};
|
|
410
|
-
export const se_DisassociateFromMasterAccountCommand = async (input, context) => {
|
|
411
|
-
const b = rb(input, context);
|
|
412
|
-
const headers = {};
|
|
413
|
-
b.bp("/detector/{DetectorId}/master/disassociate");
|
|
414
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
415
|
-
let body;
|
|
416
|
-
b.m("POST").h(headers).b(body);
|
|
417
|
-
return b.build();
|
|
418
|
-
};
|
|
419
|
-
export const se_DisassociateMembersCommand = async (input, context) => {
|
|
420
|
-
const b = rb(input, context);
|
|
421
|
-
const headers = {
|
|
422
|
-
"content-type": "application/json",
|
|
423
|
-
};
|
|
424
|
-
b.bp("/detector/{DetectorId}/member/disassociate");
|
|
425
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify(take(input, {
|
|
428
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
429
|
-
}));
|
|
430
|
-
b.m("POST").h(headers).b(body);
|
|
431
|
-
return b.build();
|
|
432
|
-
};
|
|
433
|
-
export const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
|
|
434
|
-
const b = rb(input, context);
|
|
435
|
-
const headers = {
|
|
436
|
-
"content-type": "application/json",
|
|
437
|
-
};
|
|
438
|
-
b.bp("/admin/enable");
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify(take(input, {
|
|
441
|
-
adminAccountId: [, , `AdminAccountId`],
|
|
442
|
-
}));
|
|
443
|
-
b.m("POST").h(headers).b(body);
|
|
444
|
-
return b.build();
|
|
445
|
-
};
|
|
446
|
-
export const se_GetAdministratorAccountCommand = async (input, context) => {
|
|
447
|
-
const b = rb(input, context);
|
|
448
|
-
const headers = {};
|
|
449
|
-
b.bp("/detector/{DetectorId}/administrator");
|
|
450
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
451
|
-
let body;
|
|
452
|
-
b.m("GET").h(headers).b(body);
|
|
453
|
-
return b.build();
|
|
454
|
-
};
|
|
455
|
-
export const se_GetCoverageStatisticsCommand = async (input, context) => {
|
|
456
|
-
const b = rb(input, context);
|
|
457
|
-
const headers = {
|
|
458
|
-
"content-type": "application/json",
|
|
459
|
-
};
|
|
460
|
-
b.bp("/detector/{DetectorId}/coverage/statistics");
|
|
461
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
462
|
-
let body;
|
|
463
|
-
body = JSON.stringify(take(input, {
|
|
464
|
-
filterCriteria: [, (_) => se_CoverageFilterCriteria(_, context), `FilterCriteria`],
|
|
465
|
-
statisticsType: [, (_) => _json(_), `StatisticsType`],
|
|
466
|
-
}));
|
|
467
|
-
b.m("POST").h(headers).b(body);
|
|
468
|
-
return b.build();
|
|
469
|
-
};
|
|
470
|
-
export const se_GetDetectorCommand = async (input, context) => {
|
|
471
|
-
const b = rb(input, context);
|
|
472
|
-
const headers = {};
|
|
473
|
-
b.bp("/detector/{DetectorId}");
|
|
474
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
475
|
-
let body;
|
|
476
|
-
b.m("GET").h(headers).b(body);
|
|
477
|
-
return b.build();
|
|
478
|
-
};
|
|
479
|
-
export const se_GetFilterCommand = async (input, context) => {
|
|
480
|
-
const b = rb(input, context);
|
|
481
|
-
const headers = {};
|
|
482
|
-
b.bp("/detector/{DetectorId}/filter/{FilterName}");
|
|
483
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
484
|
-
b.p("FilterName", () => input.FilterName, "{FilterName}", false);
|
|
485
|
-
let body;
|
|
486
|
-
b.m("GET").h(headers).b(body);
|
|
487
|
-
return b.build();
|
|
488
|
-
};
|
|
489
|
-
export const se_GetFindingsCommand = async (input, context) => {
|
|
490
|
-
const b = rb(input, context);
|
|
491
|
-
const headers = {
|
|
492
|
-
"content-type": "application/json",
|
|
493
|
-
};
|
|
494
|
-
b.bp("/detector/{DetectorId}/findings/get");
|
|
495
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
496
|
-
let body;
|
|
497
|
-
body = JSON.stringify(take(input, {
|
|
498
|
-
findingIds: [, (_) => _json(_), `FindingIds`],
|
|
499
|
-
sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`],
|
|
500
|
-
}));
|
|
501
|
-
b.m("POST").h(headers).b(body);
|
|
502
|
-
return b.build();
|
|
503
|
-
};
|
|
504
|
-
export const se_GetFindingsStatisticsCommand = async (input, context) => {
|
|
505
|
-
const b = rb(input, context);
|
|
506
|
-
const headers = {
|
|
507
|
-
"content-type": "application/json",
|
|
508
|
-
};
|
|
509
|
-
b.bp("/detector/{DetectorId}/findings/statistics");
|
|
510
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
511
|
-
let body;
|
|
512
|
-
body = JSON.stringify(take(input, {
|
|
513
|
-
findingCriteria: [, (_) => se_FindingCriteria(_, context), `FindingCriteria`],
|
|
514
|
-
findingStatisticTypes: [, (_) => _json(_), `FindingStatisticTypes`],
|
|
515
|
-
groupBy: [, , `GroupBy`],
|
|
516
|
-
maxResults: [, , `MaxResults`],
|
|
517
|
-
orderBy: [, , `OrderBy`],
|
|
518
|
-
}));
|
|
519
|
-
b.m("POST").h(headers).b(body);
|
|
520
|
-
return b.build();
|
|
521
|
-
};
|
|
522
|
-
export const se_GetInvitationsCountCommand = async (input, context) => {
|
|
523
|
-
const b = rb(input, context);
|
|
524
|
-
const headers = {};
|
|
525
|
-
b.bp("/invitation/count");
|
|
526
|
-
let body;
|
|
527
|
-
b.m("GET").h(headers).b(body);
|
|
528
|
-
return b.build();
|
|
529
|
-
};
|
|
530
|
-
export const se_GetIPSetCommand = async (input, context) => {
|
|
531
|
-
const b = rb(input, context);
|
|
532
|
-
const headers = {};
|
|
533
|
-
b.bp("/detector/{DetectorId}/ipset/{IpSetId}");
|
|
534
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
535
|
-
b.p("IpSetId", () => input.IpSetId, "{IpSetId}", false);
|
|
536
|
-
let body;
|
|
537
|
-
b.m("GET").h(headers).b(body);
|
|
538
|
-
return b.build();
|
|
539
|
-
};
|
|
540
|
-
export const se_GetMalwareProtectionPlanCommand = async (input, context) => {
|
|
541
|
-
const b = rb(input, context);
|
|
542
|
-
const headers = {};
|
|
543
|
-
b.bp("/malware-protection-plan/{MalwareProtectionPlanId}");
|
|
544
|
-
b.p("MalwareProtectionPlanId", () => input.MalwareProtectionPlanId, "{MalwareProtectionPlanId}", false);
|
|
545
|
-
let body;
|
|
546
|
-
b.m("GET").h(headers).b(body);
|
|
547
|
-
return b.build();
|
|
548
|
-
};
|
|
549
|
-
export const se_GetMalwareScanSettingsCommand = async (input, context) => {
|
|
550
|
-
const b = rb(input, context);
|
|
551
|
-
const headers = {};
|
|
552
|
-
b.bp("/detector/{DetectorId}/malware-scan-settings");
|
|
553
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
554
|
-
let body;
|
|
555
|
-
b.m("GET").h(headers).b(body);
|
|
556
|
-
return b.build();
|
|
557
|
-
};
|
|
558
|
-
export const se_GetMasterAccountCommand = async (input, context) => {
|
|
559
|
-
const b = rb(input, context);
|
|
560
|
-
const headers = {};
|
|
561
|
-
b.bp("/detector/{DetectorId}/master");
|
|
562
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
563
|
-
let body;
|
|
564
|
-
b.m("GET").h(headers).b(body);
|
|
565
|
-
return b.build();
|
|
566
|
-
};
|
|
567
|
-
export const se_GetMemberDetectorsCommand = async (input, context) => {
|
|
568
|
-
const b = rb(input, context);
|
|
569
|
-
const headers = {
|
|
570
|
-
"content-type": "application/json",
|
|
571
|
-
};
|
|
572
|
-
b.bp("/detector/{DetectorId}/member/detector/get");
|
|
573
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
574
|
-
let body;
|
|
575
|
-
body = JSON.stringify(take(input, {
|
|
576
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
577
|
-
}));
|
|
578
|
-
b.m("POST").h(headers).b(body);
|
|
579
|
-
return b.build();
|
|
580
|
-
};
|
|
581
|
-
export const se_GetMembersCommand = async (input, context) => {
|
|
582
|
-
const b = rb(input, context);
|
|
583
|
-
const headers = {
|
|
584
|
-
"content-type": "application/json",
|
|
585
|
-
};
|
|
586
|
-
b.bp("/detector/{DetectorId}/member/get");
|
|
587
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
588
|
-
let body;
|
|
589
|
-
body = JSON.stringify(take(input, {
|
|
590
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
591
|
-
}));
|
|
592
|
-
b.m("POST").h(headers).b(body);
|
|
593
|
-
return b.build();
|
|
594
|
-
};
|
|
595
|
-
export const se_GetOrganizationStatisticsCommand = async (input, context) => {
|
|
596
|
-
const b = rb(input, context);
|
|
597
|
-
const headers = {};
|
|
598
|
-
b.bp("/organization/statistics");
|
|
599
|
-
let body;
|
|
600
|
-
b.m("GET").h(headers).b(body);
|
|
601
|
-
return b.build();
|
|
602
|
-
};
|
|
603
|
-
export const se_GetRemainingFreeTrialDaysCommand = async (input, context) => {
|
|
604
|
-
const b = rb(input, context);
|
|
605
|
-
const headers = {
|
|
606
|
-
"content-type": "application/json",
|
|
607
|
-
};
|
|
608
|
-
b.bp("/detector/{DetectorId}/freeTrial/daysRemaining");
|
|
609
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
610
|
-
let body;
|
|
611
|
-
body = JSON.stringify(take(input, {
|
|
612
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
613
|
-
}));
|
|
614
|
-
b.m("POST").h(headers).b(body);
|
|
615
|
-
return b.build();
|
|
616
|
-
};
|
|
617
|
-
export const se_GetThreatEntitySetCommand = async (input, context) => {
|
|
618
|
-
const b = rb(input, context);
|
|
619
|
-
const headers = {};
|
|
620
|
-
b.bp("/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}");
|
|
621
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
622
|
-
b.p("ThreatEntitySetId", () => input.ThreatEntitySetId, "{ThreatEntitySetId}", false);
|
|
623
|
-
let body;
|
|
624
|
-
b.m("GET").h(headers).b(body);
|
|
625
|
-
return b.build();
|
|
626
|
-
};
|
|
627
|
-
export const se_GetThreatIntelSetCommand = async (input, context) => {
|
|
628
|
-
const b = rb(input, context);
|
|
629
|
-
const headers = {};
|
|
630
|
-
b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}");
|
|
631
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
632
|
-
b.p("ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
633
|
-
let body;
|
|
634
|
-
b.m("GET").h(headers).b(body);
|
|
635
|
-
return b.build();
|
|
636
|
-
};
|
|
637
|
-
export const se_GetTrustedEntitySetCommand = async (input, context) => {
|
|
638
|
-
const b = rb(input, context);
|
|
639
|
-
const headers = {};
|
|
640
|
-
b.bp("/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}");
|
|
641
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
642
|
-
b.p("TrustedEntitySetId", () => input.TrustedEntitySetId, "{TrustedEntitySetId}", false);
|
|
643
|
-
let body;
|
|
644
|
-
b.m("GET").h(headers).b(body);
|
|
645
|
-
return b.build();
|
|
646
|
-
};
|
|
647
|
-
export const se_GetUsageStatisticsCommand = async (input, context) => {
|
|
648
|
-
const b = rb(input, context);
|
|
649
|
-
const headers = {
|
|
650
|
-
"content-type": "application/json",
|
|
651
|
-
};
|
|
652
|
-
b.bp("/detector/{DetectorId}/usage/statistics");
|
|
653
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
654
|
-
let body;
|
|
655
|
-
body = JSON.stringify(take(input, {
|
|
656
|
-
maxResults: [, , `MaxResults`],
|
|
657
|
-
nextToken: [, , `NextToken`],
|
|
658
|
-
unit: [, , `Unit`],
|
|
659
|
-
usageCriteria: [, (_) => se_UsageCriteria(_, context), `UsageCriteria`],
|
|
660
|
-
usageStatisticsType: [, , `UsageStatisticType`],
|
|
661
|
-
}));
|
|
662
|
-
b.m("POST").h(headers).b(body);
|
|
663
|
-
return b.build();
|
|
664
|
-
};
|
|
665
|
-
export const se_InviteMembersCommand = async (input, context) => {
|
|
666
|
-
const b = rb(input, context);
|
|
667
|
-
const headers = {
|
|
668
|
-
"content-type": "application/json",
|
|
669
|
-
};
|
|
670
|
-
b.bp("/detector/{DetectorId}/member/invite");
|
|
671
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
672
|
-
let body;
|
|
673
|
-
body = JSON.stringify(take(input, {
|
|
674
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
675
|
-
disableEmailNotification: [, , `DisableEmailNotification`],
|
|
676
|
-
message: [, , `Message`],
|
|
677
|
-
}));
|
|
678
|
-
b.m("POST").h(headers).b(body);
|
|
679
|
-
return b.build();
|
|
680
|
-
};
|
|
681
|
-
export const se_ListCoverageCommand = async (input, context) => {
|
|
682
|
-
const b = rb(input, context);
|
|
683
|
-
const headers = {
|
|
684
|
-
"content-type": "application/json",
|
|
685
|
-
};
|
|
686
|
-
b.bp("/detector/{DetectorId}/coverage");
|
|
687
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
688
|
-
let body;
|
|
689
|
-
body = JSON.stringify(take(input, {
|
|
690
|
-
filterCriteria: [, (_) => se_CoverageFilterCriteria(_, context), `FilterCriteria`],
|
|
691
|
-
maxResults: [, , `MaxResults`],
|
|
692
|
-
nextToken: [, , `NextToken`],
|
|
693
|
-
sortCriteria: [, (_) => se_CoverageSortCriteria(_, context), `SortCriteria`],
|
|
694
|
-
}));
|
|
695
|
-
b.m("POST").h(headers).b(body);
|
|
696
|
-
return b.build();
|
|
697
|
-
};
|
|
698
|
-
export const se_ListDetectorsCommand = async (input, context) => {
|
|
699
|
-
const b = rb(input, context);
|
|
700
|
-
const headers = {};
|
|
701
|
-
b.bp("/detector");
|
|
702
|
-
const query = map({
|
|
703
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
704
|
-
[_nT]: [, input[_NT]],
|
|
705
|
-
});
|
|
706
|
-
let body;
|
|
707
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
708
|
-
return b.build();
|
|
709
|
-
};
|
|
710
|
-
export const se_ListFiltersCommand = async (input, context) => {
|
|
711
|
-
const b = rb(input, context);
|
|
712
|
-
const headers = {};
|
|
713
|
-
b.bp("/detector/{DetectorId}/filter");
|
|
714
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
715
|
-
const query = map({
|
|
716
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
717
|
-
[_nT]: [, input[_NT]],
|
|
718
|
-
});
|
|
719
|
-
let body;
|
|
720
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
721
|
-
return b.build();
|
|
722
|
-
};
|
|
723
|
-
export const se_ListFindingsCommand = async (input, context) => {
|
|
724
|
-
const b = rb(input, context);
|
|
725
|
-
const headers = {
|
|
726
|
-
"content-type": "application/json",
|
|
727
|
-
};
|
|
728
|
-
b.bp("/detector/{DetectorId}/findings");
|
|
729
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
730
|
-
let body;
|
|
731
|
-
body = JSON.stringify(take(input, {
|
|
732
|
-
findingCriteria: [, (_) => se_FindingCriteria(_, context), `FindingCriteria`],
|
|
733
|
-
maxResults: [, , `MaxResults`],
|
|
734
|
-
nextToken: [, , `NextToken`],
|
|
735
|
-
sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`],
|
|
736
|
-
}));
|
|
737
|
-
b.m("POST").h(headers).b(body);
|
|
738
|
-
return b.build();
|
|
739
|
-
};
|
|
740
|
-
export const se_ListInvitationsCommand = async (input, context) => {
|
|
741
|
-
const b = rb(input, context);
|
|
742
|
-
const headers = {};
|
|
743
|
-
b.bp("/invitation");
|
|
744
|
-
const query = map({
|
|
745
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
746
|
-
[_nT]: [, input[_NT]],
|
|
747
|
-
});
|
|
748
|
-
let body;
|
|
749
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
750
|
-
return b.build();
|
|
751
|
-
};
|
|
752
|
-
export const se_ListIPSetsCommand = async (input, context) => {
|
|
753
|
-
const b = rb(input, context);
|
|
754
|
-
const headers = {};
|
|
755
|
-
b.bp("/detector/{DetectorId}/ipset");
|
|
756
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
757
|
-
const query = map({
|
|
758
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
759
|
-
[_nT]: [, input[_NT]],
|
|
760
|
-
});
|
|
761
|
-
let body;
|
|
762
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
763
|
-
return b.build();
|
|
764
|
-
};
|
|
765
|
-
export const se_ListMalwareProtectionPlansCommand = async (input, context) => {
|
|
766
|
-
const b = rb(input, context);
|
|
767
|
-
const headers = {};
|
|
768
|
-
b.bp("/malware-protection-plan");
|
|
769
|
-
const query = map({
|
|
770
|
-
[_nT]: [, input[_NT]],
|
|
771
|
-
});
|
|
772
|
-
let body;
|
|
773
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
774
|
-
return b.build();
|
|
775
|
-
};
|
|
776
|
-
export const se_ListMembersCommand = async (input, context) => {
|
|
777
|
-
const b = rb(input, context);
|
|
778
|
-
const headers = {};
|
|
779
|
-
b.bp("/detector/{DetectorId}/member");
|
|
780
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
781
|
-
const query = map({
|
|
782
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
783
|
-
[_nT]: [, input[_NT]],
|
|
784
|
-
[_oA]: [, input[_OA]],
|
|
785
|
-
});
|
|
786
|
-
let body;
|
|
787
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
788
|
-
return b.build();
|
|
789
|
-
};
|
|
790
|
-
export const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
|
|
791
|
-
const b = rb(input, context);
|
|
792
|
-
const headers = {};
|
|
793
|
-
b.bp("/admin");
|
|
794
|
-
const query = map({
|
|
795
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
796
|
-
[_nT]: [, input[_NT]],
|
|
797
|
-
});
|
|
798
|
-
let body;
|
|
799
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
800
|
-
return b.build();
|
|
801
|
-
};
|
|
802
|
-
export const se_ListPublishingDestinationsCommand = async (input, context) => {
|
|
803
|
-
const b = rb(input, context);
|
|
804
|
-
const headers = {};
|
|
805
|
-
b.bp("/detector/{DetectorId}/publishingDestination");
|
|
806
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
807
|
-
const query = map({
|
|
808
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
809
|
-
[_nT]: [, input[_NT]],
|
|
810
|
-
});
|
|
811
|
-
let body;
|
|
812
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
813
|
-
return b.build();
|
|
814
|
-
};
|
|
815
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
816
|
-
const b = rb(input, context);
|
|
817
|
-
const headers = {};
|
|
818
|
-
b.bp("/tags/{ResourceArn}");
|
|
819
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
820
|
-
let body;
|
|
821
|
-
b.m("GET").h(headers).b(body);
|
|
822
|
-
return b.build();
|
|
823
|
-
};
|
|
824
|
-
export const se_ListThreatEntitySetsCommand = async (input, context) => {
|
|
825
|
-
const b = rb(input, context);
|
|
826
|
-
const headers = {};
|
|
827
|
-
b.bp("/detector/{DetectorId}/threatentityset");
|
|
828
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
829
|
-
const query = map({
|
|
830
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
831
|
-
[_nT]: [, input[_NT]],
|
|
832
|
-
});
|
|
833
|
-
let body;
|
|
834
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
835
|
-
return b.build();
|
|
836
|
-
};
|
|
837
|
-
export const se_ListThreatIntelSetsCommand = async (input, context) => {
|
|
838
|
-
const b = rb(input, context);
|
|
839
|
-
const headers = {};
|
|
840
|
-
b.bp("/detector/{DetectorId}/threatintelset");
|
|
841
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
842
|
-
const query = map({
|
|
843
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
844
|
-
[_nT]: [, input[_NT]],
|
|
845
|
-
});
|
|
846
|
-
let body;
|
|
847
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
848
|
-
return b.build();
|
|
849
|
-
};
|
|
850
|
-
export const se_ListTrustedEntitySetsCommand = async (input, context) => {
|
|
851
|
-
const b = rb(input, context);
|
|
852
|
-
const headers = {};
|
|
853
|
-
b.bp("/detector/{DetectorId}/trustedentityset");
|
|
854
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
855
|
-
const query = map({
|
|
856
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
857
|
-
[_nT]: [, input[_NT]],
|
|
858
|
-
});
|
|
859
|
-
let body;
|
|
860
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
861
|
-
return b.build();
|
|
862
|
-
};
|
|
863
|
-
export const se_StartMalwareScanCommand = async (input, context) => {
|
|
864
|
-
const b = rb(input, context);
|
|
865
|
-
const headers = {
|
|
866
|
-
"content-type": "application/json",
|
|
867
|
-
};
|
|
868
|
-
b.bp("/malware-scan/start");
|
|
869
|
-
let body;
|
|
870
|
-
body = JSON.stringify(take(input, {
|
|
871
|
-
resourceArn: [, , `ResourceArn`],
|
|
872
|
-
}));
|
|
873
|
-
b.m("POST").h(headers).b(body);
|
|
874
|
-
return b.build();
|
|
875
|
-
};
|
|
876
|
-
export const se_StartMonitoringMembersCommand = async (input, context) => {
|
|
877
|
-
const b = rb(input, context);
|
|
878
|
-
const headers = {
|
|
879
|
-
"content-type": "application/json",
|
|
880
|
-
};
|
|
881
|
-
b.bp("/detector/{DetectorId}/member/start");
|
|
882
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
883
|
-
let body;
|
|
884
|
-
body = JSON.stringify(take(input, {
|
|
885
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
886
|
-
}));
|
|
887
|
-
b.m("POST").h(headers).b(body);
|
|
888
|
-
return b.build();
|
|
889
|
-
};
|
|
890
|
-
export const se_StopMonitoringMembersCommand = async (input, context) => {
|
|
891
|
-
const b = rb(input, context);
|
|
892
|
-
const headers = {
|
|
893
|
-
"content-type": "application/json",
|
|
894
|
-
};
|
|
895
|
-
b.bp("/detector/{DetectorId}/member/stop");
|
|
896
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
897
|
-
let body;
|
|
898
|
-
body = JSON.stringify(take(input, {
|
|
899
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
900
|
-
}));
|
|
901
|
-
b.m("POST").h(headers).b(body);
|
|
902
|
-
return b.build();
|
|
903
|
-
};
|
|
904
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
905
|
-
const b = rb(input, context);
|
|
906
|
-
const headers = {
|
|
907
|
-
"content-type": "application/json",
|
|
908
|
-
};
|
|
909
|
-
b.bp("/tags/{ResourceArn}");
|
|
910
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
911
|
-
let body;
|
|
912
|
-
body = JSON.stringify(take(input, {
|
|
913
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
914
|
-
}));
|
|
915
|
-
b.m("POST").h(headers).b(body);
|
|
916
|
-
return b.build();
|
|
917
|
-
};
|
|
918
|
-
export const se_UnarchiveFindingsCommand = async (input, context) => {
|
|
919
|
-
const b = rb(input, context);
|
|
920
|
-
const headers = {
|
|
921
|
-
"content-type": "application/json",
|
|
922
|
-
};
|
|
923
|
-
b.bp("/detector/{DetectorId}/findings/unarchive");
|
|
924
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
925
|
-
let body;
|
|
926
|
-
body = JSON.stringify(take(input, {
|
|
927
|
-
findingIds: [, (_) => _json(_), `FindingIds`],
|
|
928
|
-
}));
|
|
929
|
-
b.m("POST").h(headers).b(body);
|
|
930
|
-
return b.build();
|
|
931
|
-
};
|
|
932
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
933
|
-
const b = rb(input, context);
|
|
934
|
-
const headers = {};
|
|
935
|
-
b.bp("/tags/{ResourceArn}");
|
|
936
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
937
|
-
const query = map({
|
|
938
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
939
|
-
});
|
|
940
|
-
let body;
|
|
941
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
942
|
-
return b.build();
|
|
943
|
-
};
|
|
944
|
-
export const se_UpdateDetectorCommand = async (input, context) => {
|
|
945
|
-
const b = rb(input, context);
|
|
946
|
-
const headers = {
|
|
947
|
-
"content-type": "application/json",
|
|
948
|
-
};
|
|
949
|
-
b.bp("/detector/{DetectorId}");
|
|
950
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
951
|
-
let body;
|
|
952
|
-
body = JSON.stringify(take(input, {
|
|
953
|
-
dataSources: [, (_) => se_DataSourceConfigurations(_, context), `DataSources`],
|
|
954
|
-
enable: [, , `Enable`],
|
|
955
|
-
features: [, (_) => se_DetectorFeatureConfigurations(_, context), `Features`],
|
|
956
|
-
findingPublishingFrequency: [, , `FindingPublishingFrequency`],
|
|
957
|
-
}));
|
|
958
|
-
b.m("POST").h(headers).b(body);
|
|
959
|
-
return b.build();
|
|
960
|
-
};
|
|
961
|
-
export const se_UpdateFilterCommand = async (input, context) => {
|
|
962
|
-
const b = rb(input, context);
|
|
963
|
-
const headers = {
|
|
964
|
-
"content-type": "application/json",
|
|
965
|
-
};
|
|
966
|
-
b.bp("/detector/{DetectorId}/filter/{FilterName}");
|
|
967
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
968
|
-
b.p("FilterName", () => input.FilterName, "{FilterName}", false);
|
|
969
|
-
let body;
|
|
970
|
-
body = JSON.stringify(take(input, {
|
|
971
|
-
action: [, , `Action`],
|
|
972
|
-
description: [, , `Description`],
|
|
973
|
-
findingCriteria: [, (_) => se_FindingCriteria(_, context), `FindingCriteria`],
|
|
974
|
-
rank: [, , `Rank`],
|
|
975
|
-
}));
|
|
976
|
-
b.m("POST").h(headers).b(body);
|
|
977
|
-
return b.build();
|
|
978
|
-
};
|
|
979
|
-
export const se_UpdateFindingsFeedbackCommand = async (input, context) => {
|
|
980
|
-
const b = rb(input, context);
|
|
981
|
-
const headers = {
|
|
982
|
-
"content-type": "application/json",
|
|
983
|
-
};
|
|
984
|
-
b.bp("/detector/{DetectorId}/findings/feedback");
|
|
985
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
986
|
-
let body;
|
|
987
|
-
body = JSON.stringify(take(input, {
|
|
988
|
-
comments: [, , `Comments`],
|
|
989
|
-
feedback: [, , `Feedback`],
|
|
990
|
-
findingIds: [, (_) => _json(_), `FindingIds`],
|
|
991
|
-
}));
|
|
992
|
-
b.m("POST").h(headers).b(body);
|
|
993
|
-
return b.build();
|
|
994
|
-
};
|
|
995
|
-
export const se_UpdateIPSetCommand = async (input, context) => {
|
|
996
|
-
const b = rb(input, context);
|
|
997
|
-
const headers = {
|
|
998
|
-
"content-type": "application/json",
|
|
999
|
-
};
|
|
1000
|
-
b.bp("/detector/{DetectorId}/ipset/{IpSetId}");
|
|
1001
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1002
|
-
b.p("IpSetId", () => input.IpSetId, "{IpSetId}", false);
|
|
1003
|
-
let body;
|
|
1004
|
-
body = JSON.stringify(take(input, {
|
|
1005
|
-
activate: [, , `Activate`],
|
|
1006
|
-
expectedBucketOwner: [, , `ExpectedBucketOwner`],
|
|
1007
|
-
location: [, , `Location`],
|
|
1008
|
-
name: [, , `Name`],
|
|
1009
|
-
}));
|
|
1010
|
-
b.m("POST").h(headers).b(body);
|
|
1011
|
-
return b.build();
|
|
1012
|
-
};
|
|
1013
|
-
export const se_UpdateMalwareProtectionPlanCommand = async (input, context) => {
|
|
1014
|
-
const b = rb(input, context);
|
|
1015
|
-
const headers = {
|
|
1016
|
-
"content-type": "application/json",
|
|
1017
|
-
};
|
|
1018
|
-
b.bp("/malware-protection-plan/{MalwareProtectionPlanId}");
|
|
1019
|
-
b.p("MalwareProtectionPlanId", () => input.MalwareProtectionPlanId, "{MalwareProtectionPlanId}", false);
|
|
1020
|
-
let body;
|
|
1021
|
-
body = JSON.stringify(take(input, {
|
|
1022
|
-
actions: [, (_) => se_MalwareProtectionPlanActions(_, context), `Actions`],
|
|
1023
|
-
protectedResource: [, (_) => se_UpdateProtectedResource(_, context), `ProtectedResource`],
|
|
1024
|
-
role: [, , `Role`],
|
|
1025
|
-
}));
|
|
1026
|
-
b.m("PATCH").h(headers).b(body);
|
|
1027
|
-
return b.build();
|
|
1028
|
-
};
|
|
1029
|
-
export const se_UpdateMalwareScanSettingsCommand = async (input, context) => {
|
|
1030
|
-
const b = rb(input, context);
|
|
1031
|
-
const headers = {
|
|
1032
|
-
"content-type": "application/json",
|
|
1033
|
-
};
|
|
1034
|
-
b.bp("/detector/{DetectorId}/malware-scan-settings");
|
|
1035
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1036
|
-
let body;
|
|
1037
|
-
body = JSON.stringify(take(input, {
|
|
1038
|
-
ebsSnapshotPreservation: [, , `EbsSnapshotPreservation`],
|
|
1039
|
-
scanResourceCriteria: [, (_) => se_ScanResourceCriteria(_, context), `ScanResourceCriteria`],
|
|
1040
|
-
}));
|
|
1041
|
-
b.m("POST").h(headers).b(body);
|
|
1042
|
-
return b.build();
|
|
1043
|
-
};
|
|
1044
|
-
export const se_UpdateMemberDetectorsCommand = async (input, context) => {
|
|
1045
|
-
const b = rb(input, context);
|
|
1046
|
-
const headers = {
|
|
1047
|
-
"content-type": "application/json",
|
|
1048
|
-
};
|
|
1049
|
-
b.bp("/detector/{DetectorId}/member/detector/update");
|
|
1050
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1051
|
-
let body;
|
|
1052
|
-
body = JSON.stringify(take(input, {
|
|
1053
|
-
accountIds: [, (_) => _json(_), `AccountIds`],
|
|
1054
|
-
dataSources: [, (_) => se_DataSourceConfigurations(_, context), `DataSources`],
|
|
1055
|
-
features: [, (_) => se_MemberFeaturesConfigurations(_, context), `Features`],
|
|
1056
|
-
}));
|
|
1057
|
-
b.m("POST").h(headers).b(body);
|
|
1058
|
-
return b.build();
|
|
1059
|
-
};
|
|
1060
|
-
export const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
1061
|
-
const b = rb(input, context);
|
|
1062
|
-
const headers = {
|
|
1063
|
-
"content-type": "application/json",
|
|
1064
|
-
};
|
|
1065
|
-
b.bp("/detector/{DetectorId}/admin");
|
|
1066
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1067
|
-
let body;
|
|
1068
|
-
body = JSON.stringify(take(input, {
|
|
1069
|
-
autoEnable: [, , `AutoEnable`],
|
|
1070
|
-
autoEnableOrganizationMembers: [, , `AutoEnableOrganizationMembers`],
|
|
1071
|
-
dataSources: [, (_) => se_OrganizationDataSourceConfigurations(_, context), `DataSources`],
|
|
1072
|
-
features: [, (_) => se_OrganizationFeaturesConfigurations(_, context), `Features`],
|
|
1073
|
-
}));
|
|
1074
|
-
b.m("POST").h(headers).b(body);
|
|
1075
|
-
return b.build();
|
|
1076
|
-
};
|
|
1077
|
-
export const se_UpdatePublishingDestinationCommand = async (input, context) => {
|
|
1078
|
-
const b = rb(input, context);
|
|
1079
|
-
const headers = {
|
|
1080
|
-
"content-type": "application/json",
|
|
1081
|
-
};
|
|
1082
|
-
b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}");
|
|
1083
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1084
|
-
b.p("DestinationId", () => input.DestinationId, "{DestinationId}", false);
|
|
1085
|
-
let body;
|
|
1086
|
-
body = JSON.stringify(take(input, {
|
|
1087
|
-
destinationProperties: [, (_) => se_DestinationProperties(_, context), `DestinationProperties`],
|
|
1088
|
-
}));
|
|
1089
|
-
b.m("POST").h(headers).b(body);
|
|
1090
|
-
return b.build();
|
|
1091
|
-
};
|
|
1092
|
-
export const se_UpdateThreatEntitySetCommand = async (input, context) => {
|
|
1093
|
-
const b = rb(input, context);
|
|
1094
|
-
const headers = {
|
|
1095
|
-
"content-type": "application/json",
|
|
1096
|
-
};
|
|
1097
|
-
b.bp("/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}");
|
|
1098
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1099
|
-
b.p("ThreatEntitySetId", () => input.ThreatEntitySetId, "{ThreatEntitySetId}", false);
|
|
1100
|
-
let body;
|
|
1101
|
-
body = JSON.stringify(take(input, {
|
|
1102
|
-
activate: [, , `Activate`],
|
|
1103
|
-
expectedBucketOwner: [, , `ExpectedBucketOwner`],
|
|
1104
|
-
location: [, , `Location`],
|
|
1105
|
-
name: [, , `Name`],
|
|
1106
|
-
}));
|
|
1107
|
-
b.m("POST").h(headers).b(body);
|
|
1108
|
-
return b.build();
|
|
1109
|
-
};
|
|
1110
|
-
export const se_UpdateThreatIntelSetCommand = async (input, context) => {
|
|
1111
|
-
const b = rb(input, context);
|
|
1112
|
-
const headers = {
|
|
1113
|
-
"content-type": "application/json",
|
|
1114
|
-
};
|
|
1115
|
-
b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}");
|
|
1116
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1117
|
-
b.p("ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
|
|
1118
|
-
let body;
|
|
1119
|
-
body = JSON.stringify(take(input, {
|
|
1120
|
-
activate: [, , `Activate`],
|
|
1121
|
-
expectedBucketOwner: [, , `ExpectedBucketOwner`],
|
|
1122
|
-
location: [, , `Location`],
|
|
1123
|
-
name: [, , `Name`],
|
|
1124
|
-
}));
|
|
1125
|
-
b.m("POST").h(headers).b(body);
|
|
1126
|
-
return b.build();
|
|
1127
|
-
};
|
|
1128
|
-
export const se_UpdateTrustedEntitySetCommand = async (input, context) => {
|
|
1129
|
-
const b = rb(input, context);
|
|
1130
|
-
const headers = {
|
|
1131
|
-
"content-type": "application/json",
|
|
1132
|
-
};
|
|
1133
|
-
b.bp("/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}");
|
|
1134
|
-
b.p("DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
1135
|
-
b.p("TrustedEntitySetId", () => input.TrustedEntitySetId, "{TrustedEntitySetId}", false);
|
|
1136
|
-
let body;
|
|
1137
|
-
body = JSON.stringify(take(input, {
|
|
1138
|
-
activate: [, , `Activate`],
|
|
1139
|
-
expectedBucketOwner: [, , `ExpectedBucketOwner`],
|
|
1140
|
-
location: [, , `Location`],
|
|
1141
|
-
name: [, , `Name`],
|
|
1142
|
-
}));
|
|
1143
|
-
b.m("POST").h(headers).b(body);
|
|
1144
|
-
return b.build();
|
|
1145
|
-
};
|
|
1146
|
-
export const de_AcceptAdministratorInvitationCommand = async (output, context) => {
|
|
1147
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1148
|
-
return de_CommandError(output, context);
|
|
1149
|
-
}
|
|
1150
|
-
const contents = map({
|
|
1151
|
-
$metadata: deserializeMetadata(output),
|
|
1152
|
-
});
|
|
1153
|
-
await collectBody(output.body, context);
|
|
1154
|
-
return contents;
|
|
1155
|
-
};
|
|
1156
|
-
export const de_AcceptInvitationCommand = async (output, context) => {
|
|
1157
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1158
|
-
return de_CommandError(output, context);
|
|
1159
|
-
}
|
|
1160
|
-
const contents = map({
|
|
1161
|
-
$metadata: deserializeMetadata(output),
|
|
1162
|
-
});
|
|
1163
|
-
await collectBody(output.body, context);
|
|
1164
|
-
return contents;
|
|
1165
|
-
};
|
|
1166
|
-
export const de_ArchiveFindingsCommand = async (output, context) => {
|
|
1167
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1168
|
-
return de_CommandError(output, context);
|
|
1169
|
-
}
|
|
1170
|
-
const contents = map({
|
|
1171
|
-
$metadata: deserializeMetadata(output),
|
|
1172
|
-
});
|
|
1173
|
-
await collectBody(output.body, context);
|
|
1174
|
-
return contents;
|
|
1175
|
-
};
|
|
1176
|
-
export const de_CreateDetectorCommand = async (output, context) => {
|
|
1177
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1178
|
-
return de_CommandError(output, context);
|
|
1179
|
-
}
|
|
1180
|
-
const contents = map({
|
|
1181
|
-
$metadata: deserializeMetadata(output),
|
|
1182
|
-
});
|
|
1183
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1184
|
-
const doc = take(data, {
|
|
1185
|
-
DetectorId: [, __expectString, `detectorId`],
|
|
1186
|
-
UnprocessedDataSources: [, (_) => de_UnprocessedDataSourcesResult(_, context), `unprocessedDataSources`],
|
|
1187
|
-
});
|
|
1188
|
-
Object.assign(contents, doc);
|
|
1189
|
-
return contents;
|
|
1190
|
-
};
|
|
1191
|
-
export const de_CreateFilterCommand = async (output, context) => {
|
|
1192
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1193
|
-
return de_CommandError(output, context);
|
|
1194
|
-
}
|
|
1195
|
-
const contents = map({
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
});
|
|
1198
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1199
|
-
const doc = take(data, {
|
|
1200
|
-
Name: [, __expectString, `name`],
|
|
1201
|
-
});
|
|
1202
|
-
Object.assign(contents, doc);
|
|
1203
|
-
return contents;
|
|
1204
|
-
};
|
|
1205
|
-
export const de_CreateIPSetCommand = async (output, context) => {
|
|
1206
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1207
|
-
return de_CommandError(output, context);
|
|
1208
|
-
}
|
|
1209
|
-
const contents = map({
|
|
1210
|
-
$metadata: deserializeMetadata(output),
|
|
1211
|
-
});
|
|
1212
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1213
|
-
const doc = take(data, {
|
|
1214
|
-
IpSetId: [, __expectString, `ipSetId`],
|
|
1215
|
-
});
|
|
1216
|
-
Object.assign(contents, doc);
|
|
1217
|
-
return contents;
|
|
1218
|
-
};
|
|
1219
|
-
export const de_CreateMalwareProtectionPlanCommand = async (output, context) => {
|
|
1220
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return de_CommandError(output, context);
|
|
1222
|
-
}
|
|
1223
|
-
const contents = map({
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
});
|
|
1226
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1227
|
-
const doc = take(data, {
|
|
1228
|
-
MalwareProtectionPlanId: [, __expectString, `malwareProtectionPlanId`],
|
|
1229
|
-
});
|
|
1230
|
-
Object.assign(contents, doc);
|
|
1231
|
-
return contents;
|
|
1232
|
-
};
|
|
1233
|
-
export const de_CreateMembersCommand = async (output, context) => {
|
|
1234
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1235
|
-
return de_CommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const contents = map({
|
|
1238
|
-
$metadata: deserializeMetadata(output),
|
|
1239
|
-
});
|
|
1240
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1241
|
-
const doc = take(data, {
|
|
1242
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1243
|
-
});
|
|
1244
|
-
Object.assign(contents, doc);
|
|
1245
|
-
return contents;
|
|
1246
|
-
};
|
|
1247
|
-
export const de_CreatePublishingDestinationCommand = async (output, context) => {
|
|
1248
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1249
|
-
return de_CommandError(output, context);
|
|
1250
|
-
}
|
|
1251
|
-
const contents = map({
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
});
|
|
1254
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1255
|
-
const doc = take(data, {
|
|
1256
|
-
DestinationId: [, __expectString, `destinationId`],
|
|
1257
|
-
});
|
|
1258
|
-
Object.assign(contents, doc);
|
|
1259
|
-
return contents;
|
|
1260
|
-
};
|
|
1261
|
-
export const de_CreateSampleFindingsCommand = async (output, context) => {
|
|
1262
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1263
|
-
return de_CommandError(output, context);
|
|
1264
|
-
}
|
|
1265
|
-
const contents = map({
|
|
1266
|
-
$metadata: deserializeMetadata(output),
|
|
1267
|
-
});
|
|
1268
|
-
await collectBody(output.body, context);
|
|
1269
|
-
return contents;
|
|
1270
|
-
};
|
|
1271
|
-
export const de_CreateThreatEntitySetCommand = async (output, context) => {
|
|
1272
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1273
|
-
return de_CommandError(output, context);
|
|
1274
|
-
}
|
|
1275
|
-
const contents = map({
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
});
|
|
1278
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1279
|
-
const doc = take(data, {
|
|
1280
|
-
ThreatEntitySetId: [, __expectString, `threatEntitySetId`],
|
|
1281
|
-
});
|
|
1282
|
-
Object.assign(contents, doc);
|
|
1283
|
-
return contents;
|
|
1284
|
-
};
|
|
1285
|
-
export const de_CreateThreatIntelSetCommand = async (output, context) => {
|
|
1286
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1287
|
-
return de_CommandError(output, context);
|
|
1288
|
-
}
|
|
1289
|
-
const contents = map({
|
|
1290
|
-
$metadata: deserializeMetadata(output),
|
|
1291
|
-
});
|
|
1292
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1293
|
-
const doc = take(data, {
|
|
1294
|
-
ThreatIntelSetId: [, __expectString, `threatIntelSetId`],
|
|
1295
|
-
});
|
|
1296
|
-
Object.assign(contents, doc);
|
|
1297
|
-
return contents;
|
|
1298
|
-
};
|
|
1299
|
-
export const de_CreateTrustedEntitySetCommand = async (output, context) => {
|
|
1300
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
|
-
return de_CommandError(output, context);
|
|
1302
|
-
}
|
|
1303
|
-
const contents = map({
|
|
1304
|
-
$metadata: deserializeMetadata(output),
|
|
1305
|
-
});
|
|
1306
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1307
|
-
const doc = take(data, {
|
|
1308
|
-
TrustedEntitySetId: [, __expectString, `trustedEntitySetId`],
|
|
1309
|
-
});
|
|
1310
|
-
Object.assign(contents, doc);
|
|
1311
|
-
return contents;
|
|
1312
|
-
};
|
|
1313
|
-
export const de_DeclineInvitationsCommand = async (output, context) => {
|
|
1314
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1315
|
-
return de_CommandError(output, context);
|
|
1316
|
-
}
|
|
1317
|
-
const contents = map({
|
|
1318
|
-
$metadata: deserializeMetadata(output),
|
|
1319
|
-
});
|
|
1320
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1321
|
-
const doc = take(data, {
|
|
1322
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1323
|
-
});
|
|
1324
|
-
Object.assign(contents, doc);
|
|
1325
|
-
return contents;
|
|
1326
|
-
};
|
|
1327
|
-
export const de_DeleteDetectorCommand = async (output, context) => {
|
|
1328
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1329
|
-
return de_CommandError(output, context);
|
|
1330
|
-
}
|
|
1331
|
-
const contents = map({
|
|
1332
|
-
$metadata: deserializeMetadata(output),
|
|
1333
|
-
});
|
|
1334
|
-
await collectBody(output.body, context);
|
|
1335
|
-
return contents;
|
|
1336
|
-
};
|
|
1337
|
-
export const de_DeleteFilterCommand = async (output, context) => {
|
|
1338
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
-
return de_CommandError(output, context);
|
|
1340
|
-
}
|
|
1341
|
-
const contents = map({
|
|
1342
|
-
$metadata: deserializeMetadata(output),
|
|
1343
|
-
});
|
|
1344
|
-
await collectBody(output.body, context);
|
|
1345
|
-
return contents;
|
|
1346
|
-
};
|
|
1347
|
-
export const de_DeleteInvitationsCommand = async (output, context) => {
|
|
1348
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1349
|
-
return de_CommandError(output, context);
|
|
1350
|
-
}
|
|
1351
|
-
const contents = map({
|
|
1352
|
-
$metadata: deserializeMetadata(output),
|
|
1353
|
-
});
|
|
1354
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1355
|
-
const doc = take(data, {
|
|
1356
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1357
|
-
});
|
|
1358
|
-
Object.assign(contents, doc);
|
|
1359
|
-
return contents;
|
|
1360
|
-
};
|
|
1361
|
-
export const de_DeleteIPSetCommand = async (output, context) => {
|
|
1362
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
|
-
return de_CommandError(output, context);
|
|
1364
|
-
}
|
|
1365
|
-
const contents = map({
|
|
1366
|
-
$metadata: deserializeMetadata(output),
|
|
1367
|
-
});
|
|
1368
|
-
await collectBody(output.body, context);
|
|
1369
|
-
return contents;
|
|
1370
|
-
};
|
|
1371
|
-
export const de_DeleteMalwareProtectionPlanCommand = async (output, context) => {
|
|
1372
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1373
|
-
return de_CommandError(output, context);
|
|
1374
|
-
}
|
|
1375
|
-
const contents = map({
|
|
1376
|
-
$metadata: deserializeMetadata(output),
|
|
1377
|
-
});
|
|
1378
|
-
await collectBody(output.body, context);
|
|
1379
|
-
return contents;
|
|
1380
|
-
};
|
|
1381
|
-
export const de_DeleteMembersCommand = async (output, context) => {
|
|
1382
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1383
|
-
return de_CommandError(output, context);
|
|
1384
|
-
}
|
|
1385
|
-
const contents = map({
|
|
1386
|
-
$metadata: deserializeMetadata(output),
|
|
1387
|
-
});
|
|
1388
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1389
|
-
const doc = take(data, {
|
|
1390
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1391
|
-
});
|
|
1392
|
-
Object.assign(contents, doc);
|
|
1393
|
-
return contents;
|
|
1394
|
-
};
|
|
1395
|
-
export const de_DeletePublishingDestinationCommand = async (output, context) => {
|
|
1396
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1397
|
-
return de_CommandError(output, context);
|
|
1398
|
-
}
|
|
1399
|
-
const contents = map({
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
});
|
|
1402
|
-
await collectBody(output.body, context);
|
|
1403
|
-
return contents;
|
|
1404
|
-
};
|
|
1405
|
-
export const de_DeleteThreatEntitySetCommand = async (output, context) => {
|
|
1406
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1407
|
-
return de_CommandError(output, context);
|
|
1408
|
-
}
|
|
1409
|
-
const contents = map({
|
|
1410
|
-
$metadata: deserializeMetadata(output),
|
|
1411
|
-
});
|
|
1412
|
-
await collectBody(output.body, context);
|
|
1413
|
-
return contents;
|
|
1414
|
-
};
|
|
1415
|
-
export const de_DeleteThreatIntelSetCommand = async (output, context) => {
|
|
1416
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1417
|
-
return de_CommandError(output, context);
|
|
1418
|
-
}
|
|
1419
|
-
const contents = map({
|
|
1420
|
-
$metadata: deserializeMetadata(output),
|
|
1421
|
-
});
|
|
1422
|
-
await collectBody(output.body, context);
|
|
1423
|
-
return contents;
|
|
1424
|
-
};
|
|
1425
|
-
export const de_DeleteTrustedEntitySetCommand = async (output, context) => {
|
|
1426
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1427
|
-
return de_CommandError(output, context);
|
|
1428
|
-
}
|
|
1429
|
-
const contents = map({
|
|
1430
|
-
$metadata: deserializeMetadata(output),
|
|
1431
|
-
});
|
|
1432
|
-
await collectBody(output.body, context);
|
|
1433
|
-
return contents;
|
|
1434
|
-
};
|
|
1435
|
-
export const de_DescribeMalwareScansCommand = async (output, context) => {
|
|
1436
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1437
|
-
return de_CommandError(output, context);
|
|
1438
|
-
}
|
|
1439
|
-
const contents = map({
|
|
1440
|
-
$metadata: deserializeMetadata(output),
|
|
1441
|
-
});
|
|
1442
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1443
|
-
const doc = take(data, {
|
|
1444
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1445
|
-
Scans: [, (_) => de_Scans(_, context), `scans`],
|
|
1446
|
-
});
|
|
1447
|
-
Object.assign(contents, doc);
|
|
1448
|
-
return contents;
|
|
1449
|
-
};
|
|
1450
|
-
export const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
1451
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1452
|
-
return de_CommandError(output, context);
|
|
1453
|
-
}
|
|
1454
|
-
const contents = map({
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
});
|
|
1457
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1458
|
-
const doc = take(data, {
|
|
1459
|
-
AutoEnable: [, __expectBoolean, `autoEnable`],
|
|
1460
|
-
AutoEnableOrganizationMembers: [, __expectString, `autoEnableOrganizationMembers`],
|
|
1461
|
-
DataSources: [, (_) => de_OrganizationDataSourceConfigurationsResult(_, context), `dataSources`],
|
|
1462
|
-
Features: [, (_) => de_OrganizationFeaturesConfigurationsResults(_, context), `features`],
|
|
1463
|
-
MemberAccountLimitReached: [, __expectBoolean, `memberAccountLimitReached`],
|
|
1464
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1465
|
-
});
|
|
1466
|
-
Object.assign(contents, doc);
|
|
1467
|
-
return contents;
|
|
1468
|
-
};
|
|
1469
|
-
export const de_DescribePublishingDestinationCommand = async (output, context) => {
|
|
1470
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1471
|
-
return de_CommandError(output, context);
|
|
1472
|
-
}
|
|
1473
|
-
const contents = map({
|
|
1474
|
-
$metadata: deserializeMetadata(output),
|
|
1475
|
-
});
|
|
1476
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1477
|
-
const doc = take(data, {
|
|
1478
|
-
DestinationId: [, __expectString, `destinationId`],
|
|
1479
|
-
DestinationProperties: [, (_) => de_DestinationProperties(_, context), `destinationProperties`],
|
|
1480
|
-
DestinationType: [, __expectString, `destinationType`],
|
|
1481
|
-
PublishingFailureStartTimestamp: [, __expectLong, `publishingFailureStartTimestamp`],
|
|
1482
|
-
Status: [, __expectString, `status`],
|
|
1483
|
-
});
|
|
1484
|
-
Object.assign(contents, doc);
|
|
1485
|
-
return contents;
|
|
1486
|
-
};
|
|
1487
|
-
export const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
1488
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1489
|
-
return de_CommandError(output, context);
|
|
1490
|
-
}
|
|
1491
|
-
const contents = map({
|
|
1492
|
-
$metadata: deserializeMetadata(output),
|
|
1493
|
-
});
|
|
1494
|
-
await collectBody(output.body, context);
|
|
1495
|
-
return contents;
|
|
1496
|
-
};
|
|
1497
|
-
export const de_DisassociateFromAdministratorAccountCommand = async (output, context) => {
|
|
1498
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
|
-
return de_CommandError(output, context);
|
|
1500
|
-
}
|
|
1501
|
-
const contents = map({
|
|
1502
|
-
$metadata: deserializeMetadata(output),
|
|
1503
|
-
});
|
|
1504
|
-
await collectBody(output.body, context);
|
|
1505
|
-
return contents;
|
|
1506
|
-
};
|
|
1507
|
-
export const de_DisassociateFromMasterAccountCommand = async (output, context) => {
|
|
1508
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1509
|
-
return de_CommandError(output, context);
|
|
1510
|
-
}
|
|
1511
|
-
const contents = map({
|
|
1512
|
-
$metadata: deserializeMetadata(output),
|
|
1513
|
-
});
|
|
1514
|
-
await collectBody(output.body, context);
|
|
1515
|
-
return contents;
|
|
1516
|
-
};
|
|
1517
|
-
export const de_DisassociateMembersCommand = async (output, context) => {
|
|
1518
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
-
return de_CommandError(output, context);
|
|
1520
|
-
}
|
|
1521
|
-
const contents = map({
|
|
1522
|
-
$metadata: deserializeMetadata(output),
|
|
1523
|
-
});
|
|
1524
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1525
|
-
const doc = take(data, {
|
|
1526
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1527
|
-
});
|
|
1528
|
-
Object.assign(contents, doc);
|
|
1529
|
-
return contents;
|
|
1530
|
-
};
|
|
1531
|
-
export const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
1532
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1533
|
-
return de_CommandError(output, context);
|
|
1534
|
-
}
|
|
1535
|
-
const contents = map({
|
|
1536
|
-
$metadata: deserializeMetadata(output),
|
|
1537
|
-
});
|
|
1538
|
-
await collectBody(output.body, context);
|
|
1539
|
-
return contents;
|
|
1540
|
-
};
|
|
1541
|
-
export const de_GetAdministratorAccountCommand = async (output, context) => {
|
|
1542
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1543
|
-
return de_CommandError(output, context);
|
|
1544
|
-
}
|
|
1545
|
-
const contents = map({
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
});
|
|
1548
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1549
|
-
const doc = take(data, {
|
|
1550
|
-
Administrator: [, (_) => de_Administrator(_, context), `administrator`],
|
|
1551
|
-
});
|
|
1552
|
-
Object.assign(contents, doc);
|
|
1553
|
-
return contents;
|
|
1554
|
-
};
|
|
1555
|
-
export const de_GetCoverageStatisticsCommand = async (output, context) => {
|
|
1556
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return de_CommandError(output, context);
|
|
1558
|
-
}
|
|
1559
|
-
const contents = map({
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
});
|
|
1562
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1563
|
-
const doc = take(data, {
|
|
1564
|
-
CoverageStatistics: [, (_) => de_CoverageStatistics(_, context), `coverageStatistics`],
|
|
1565
|
-
});
|
|
1566
|
-
Object.assign(contents, doc);
|
|
1567
|
-
return contents;
|
|
1568
|
-
};
|
|
1569
|
-
export const de_GetDetectorCommand = async (output, context) => {
|
|
1570
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1571
|
-
return de_CommandError(output, context);
|
|
1572
|
-
}
|
|
1573
|
-
const contents = map({
|
|
1574
|
-
$metadata: deserializeMetadata(output),
|
|
1575
|
-
});
|
|
1576
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1577
|
-
const doc = take(data, {
|
|
1578
|
-
CreatedAt: [, __expectString, `createdAt`],
|
|
1579
|
-
DataSources: [, (_) => de_DataSourceConfigurationsResult(_, context), `dataSources`],
|
|
1580
|
-
Features: [, (_) => de_DetectorFeatureConfigurationsResults(_, context), `features`],
|
|
1581
|
-
FindingPublishingFrequency: [, __expectString, `findingPublishingFrequency`],
|
|
1582
|
-
ServiceRole: [, __expectString, `serviceRole`],
|
|
1583
|
-
Status: [, __expectString, `status`],
|
|
1584
|
-
Tags: [, _json, `tags`],
|
|
1585
|
-
UpdatedAt: [, __expectString, `updatedAt`],
|
|
1586
|
-
});
|
|
1587
|
-
Object.assign(contents, doc);
|
|
1588
|
-
return contents;
|
|
1589
|
-
};
|
|
1590
|
-
export const de_GetFilterCommand = async (output, context) => {
|
|
1591
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1592
|
-
return de_CommandError(output, context);
|
|
1593
|
-
}
|
|
1594
|
-
const contents = map({
|
|
1595
|
-
$metadata: deserializeMetadata(output),
|
|
1596
|
-
});
|
|
1597
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1598
|
-
const doc = take(data, {
|
|
1599
|
-
Action: [, __expectString, `action`],
|
|
1600
|
-
Description: [, __expectString, `description`],
|
|
1601
|
-
FindingCriteria: [, (_) => de_FindingCriteria(_, context), `findingCriteria`],
|
|
1602
|
-
Name: [, __expectString, `name`],
|
|
1603
|
-
Rank: [, __expectInt32, `rank`],
|
|
1604
|
-
Tags: [, _json, `tags`],
|
|
1605
|
-
});
|
|
1606
|
-
Object.assign(contents, doc);
|
|
1607
|
-
return contents;
|
|
1608
|
-
};
|
|
1609
|
-
export const de_GetFindingsCommand = async (output, context) => {
|
|
1610
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1611
|
-
return de_CommandError(output, context);
|
|
1612
|
-
}
|
|
1613
|
-
const contents = map({
|
|
1614
|
-
$metadata: deserializeMetadata(output),
|
|
1615
|
-
});
|
|
1616
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1617
|
-
const doc = take(data, {
|
|
1618
|
-
Findings: [, (_) => de_Findings(_, context), `findings`],
|
|
1619
|
-
});
|
|
1620
|
-
Object.assign(contents, doc);
|
|
1621
|
-
return contents;
|
|
1622
|
-
};
|
|
1623
|
-
export const de_GetFindingsStatisticsCommand = async (output, context) => {
|
|
1624
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1625
|
-
return de_CommandError(output, context);
|
|
1626
|
-
}
|
|
1627
|
-
const contents = map({
|
|
1628
|
-
$metadata: deserializeMetadata(output),
|
|
1629
|
-
});
|
|
1630
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1631
|
-
const doc = take(data, {
|
|
1632
|
-
FindingStatistics: [, (_) => de_FindingStatistics(_, context), `findingStatistics`],
|
|
1633
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1634
|
-
});
|
|
1635
|
-
Object.assign(contents, doc);
|
|
1636
|
-
return contents;
|
|
1637
|
-
};
|
|
1638
|
-
export const de_GetInvitationsCountCommand = async (output, context) => {
|
|
1639
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1640
|
-
return de_CommandError(output, context);
|
|
1641
|
-
}
|
|
1642
|
-
const contents = map({
|
|
1643
|
-
$metadata: deserializeMetadata(output),
|
|
1644
|
-
});
|
|
1645
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1646
|
-
const doc = take(data, {
|
|
1647
|
-
InvitationsCount: [, __expectInt32, `invitationsCount`],
|
|
1648
|
-
});
|
|
1649
|
-
Object.assign(contents, doc);
|
|
1650
|
-
return contents;
|
|
1651
|
-
};
|
|
1652
|
-
export const de_GetIPSetCommand = async (output, context) => {
|
|
1653
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1654
|
-
return de_CommandError(output, context);
|
|
1655
|
-
}
|
|
1656
|
-
const contents = map({
|
|
1657
|
-
$metadata: deserializeMetadata(output),
|
|
1658
|
-
});
|
|
1659
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1660
|
-
const doc = take(data, {
|
|
1661
|
-
ExpectedBucketOwner: [, __expectString, `expectedBucketOwner`],
|
|
1662
|
-
Format: [, __expectString, `format`],
|
|
1663
|
-
Location: [, __expectString, `location`],
|
|
1664
|
-
Name: [, __expectString, `name`],
|
|
1665
|
-
Status: [, __expectString, `status`],
|
|
1666
|
-
Tags: [, _json, `tags`],
|
|
1667
|
-
});
|
|
1668
|
-
Object.assign(contents, doc);
|
|
1669
|
-
return contents;
|
|
1670
|
-
};
|
|
1671
|
-
export const de_GetMalwareProtectionPlanCommand = async (output, context) => {
|
|
1672
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1673
|
-
return de_CommandError(output, context);
|
|
1674
|
-
}
|
|
1675
|
-
const contents = map({
|
|
1676
|
-
$metadata: deserializeMetadata(output),
|
|
1677
|
-
});
|
|
1678
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1679
|
-
const doc = take(data, {
|
|
1680
|
-
Actions: [, (_) => de_MalwareProtectionPlanActions(_, context), `actions`],
|
|
1681
|
-
Arn: [, __expectString, `arn`],
|
|
1682
|
-
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
1683
|
-
ProtectedResource: [, (_) => de_CreateProtectedResource(_, context), `protectedResource`],
|
|
1684
|
-
Role: [, __expectString, `role`],
|
|
1685
|
-
Status: [, __expectString, `status`],
|
|
1686
|
-
StatusReasons: [, (_) => de_MalwareProtectionPlanStatusReasonsList(_, context), `statusReasons`],
|
|
1687
|
-
Tags: [, _json, `tags`],
|
|
1688
|
-
});
|
|
1689
|
-
Object.assign(contents, doc);
|
|
1690
|
-
return contents;
|
|
1691
|
-
};
|
|
1692
|
-
export const de_GetMalwareScanSettingsCommand = async (output, context) => {
|
|
1693
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1694
|
-
return de_CommandError(output, context);
|
|
1695
|
-
}
|
|
1696
|
-
const contents = map({
|
|
1697
|
-
$metadata: deserializeMetadata(output),
|
|
1698
|
-
});
|
|
1699
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1700
|
-
const doc = take(data, {
|
|
1701
|
-
EbsSnapshotPreservation: [, __expectString, `ebsSnapshotPreservation`],
|
|
1702
|
-
ScanResourceCriteria: [, (_) => de_ScanResourceCriteria(_, context), `scanResourceCriteria`],
|
|
1703
|
-
});
|
|
1704
|
-
Object.assign(contents, doc);
|
|
1705
|
-
return contents;
|
|
1706
|
-
};
|
|
1707
|
-
export const de_GetMasterAccountCommand = async (output, context) => {
|
|
1708
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1709
|
-
return de_CommandError(output, context);
|
|
1710
|
-
}
|
|
1711
|
-
const contents = map({
|
|
1712
|
-
$metadata: deserializeMetadata(output),
|
|
1713
|
-
});
|
|
1714
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1715
|
-
const doc = take(data, {
|
|
1716
|
-
Master: [, (_) => de_Master(_, context), `master`],
|
|
1717
|
-
});
|
|
1718
|
-
Object.assign(contents, doc);
|
|
1719
|
-
return contents;
|
|
1720
|
-
};
|
|
1721
|
-
export const de_GetMemberDetectorsCommand = async (output, context) => {
|
|
1722
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1723
|
-
return de_CommandError(output, context);
|
|
1724
|
-
}
|
|
1725
|
-
const contents = map({
|
|
1726
|
-
$metadata: deserializeMetadata(output),
|
|
1727
|
-
});
|
|
1728
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1729
|
-
const doc = take(data, {
|
|
1730
|
-
MemberDataSourceConfigurations: [, (_) => de_MemberDataSourceConfigurations(_, context), `members`],
|
|
1731
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1732
|
-
});
|
|
1733
|
-
Object.assign(contents, doc);
|
|
1734
|
-
return contents;
|
|
1735
|
-
};
|
|
1736
|
-
export const de_GetMembersCommand = async (output, context) => {
|
|
1737
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
|
-
return de_CommandError(output, context);
|
|
1739
|
-
}
|
|
1740
|
-
const contents = map({
|
|
1741
|
-
$metadata: deserializeMetadata(output),
|
|
1742
|
-
});
|
|
1743
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1744
|
-
const doc = take(data, {
|
|
1745
|
-
Members: [, (_) => de_Members(_, context), `members`],
|
|
1746
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1747
|
-
});
|
|
1748
|
-
Object.assign(contents, doc);
|
|
1749
|
-
return contents;
|
|
1750
|
-
};
|
|
1751
|
-
export const de_GetOrganizationStatisticsCommand = async (output, context) => {
|
|
1752
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1753
|
-
return de_CommandError(output, context);
|
|
1754
|
-
}
|
|
1755
|
-
const contents = map({
|
|
1756
|
-
$metadata: deserializeMetadata(output),
|
|
1757
|
-
});
|
|
1758
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1759
|
-
const doc = take(data, {
|
|
1760
|
-
OrganizationDetails: [, (_) => de_OrganizationDetails(_, context), `organizationDetails`],
|
|
1761
|
-
});
|
|
1762
|
-
Object.assign(contents, doc);
|
|
1763
|
-
return contents;
|
|
1764
|
-
};
|
|
1765
|
-
export const de_GetRemainingFreeTrialDaysCommand = async (output, context) => {
|
|
1766
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1767
|
-
return de_CommandError(output, context);
|
|
1768
|
-
}
|
|
1769
|
-
const contents = map({
|
|
1770
|
-
$metadata: deserializeMetadata(output),
|
|
1771
|
-
});
|
|
1772
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1773
|
-
const doc = take(data, {
|
|
1774
|
-
Accounts: [, (_) => de_AccountFreeTrialInfos(_, context), `accounts`],
|
|
1775
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1776
|
-
});
|
|
1777
|
-
Object.assign(contents, doc);
|
|
1778
|
-
return contents;
|
|
1779
|
-
};
|
|
1780
|
-
export const de_GetThreatEntitySetCommand = async (output, context) => {
|
|
1781
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1782
|
-
return de_CommandError(output, context);
|
|
1783
|
-
}
|
|
1784
|
-
const contents = map({
|
|
1785
|
-
$metadata: deserializeMetadata(output),
|
|
1786
|
-
});
|
|
1787
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1788
|
-
const doc = take(data, {
|
|
1789
|
-
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
1790
|
-
ErrorDetails: [, __expectString, `errorDetails`],
|
|
1791
|
-
ExpectedBucketOwner: [, __expectString, `expectedBucketOwner`],
|
|
1792
|
-
Format: [, __expectString, `format`],
|
|
1793
|
-
Location: [, __expectString, `location`],
|
|
1794
|
-
Name: [, __expectString, `name`],
|
|
1795
|
-
Status: [, __expectString, `status`],
|
|
1796
|
-
Tags: [, _json, `tags`],
|
|
1797
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
1798
|
-
});
|
|
1799
|
-
Object.assign(contents, doc);
|
|
1800
|
-
return contents;
|
|
1801
|
-
};
|
|
1802
|
-
export const de_GetThreatIntelSetCommand = async (output, context) => {
|
|
1803
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1804
|
-
return de_CommandError(output, context);
|
|
1805
|
-
}
|
|
1806
|
-
const contents = map({
|
|
1807
|
-
$metadata: deserializeMetadata(output),
|
|
1808
|
-
});
|
|
1809
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1810
|
-
const doc = take(data, {
|
|
1811
|
-
ExpectedBucketOwner: [, __expectString, `expectedBucketOwner`],
|
|
1812
|
-
Format: [, __expectString, `format`],
|
|
1813
|
-
Location: [, __expectString, `location`],
|
|
1814
|
-
Name: [, __expectString, `name`],
|
|
1815
|
-
Status: [, __expectString, `status`],
|
|
1816
|
-
Tags: [, _json, `tags`],
|
|
1817
|
-
});
|
|
1818
|
-
Object.assign(contents, doc);
|
|
1819
|
-
return contents;
|
|
1820
|
-
};
|
|
1821
|
-
export const de_GetTrustedEntitySetCommand = async (output, context) => {
|
|
1822
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1823
|
-
return de_CommandError(output, context);
|
|
1824
|
-
}
|
|
1825
|
-
const contents = map({
|
|
1826
|
-
$metadata: deserializeMetadata(output),
|
|
1827
|
-
});
|
|
1828
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1829
|
-
const doc = take(data, {
|
|
1830
|
-
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
1831
|
-
ErrorDetails: [, __expectString, `errorDetails`],
|
|
1832
|
-
ExpectedBucketOwner: [, __expectString, `expectedBucketOwner`],
|
|
1833
|
-
Format: [, __expectString, `format`],
|
|
1834
|
-
Location: [, __expectString, `location`],
|
|
1835
|
-
Name: [, __expectString, `name`],
|
|
1836
|
-
Status: [, __expectString, `status`],
|
|
1837
|
-
Tags: [, _json, `tags`],
|
|
1838
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
1839
|
-
});
|
|
1840
|
-
Object.assign(contents, doc);
|
|
1841
|
-
return contents;
|
|
1842
|
-
};
|
|
1843
|
-
export const de_GetUsageStatisticsCommand = async (output, context) => {
|
|
1844
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1845
|
-
return de_CommandError(output, context);
|
|
1846
|
-
}
|
|
1847
|
-
const contents = map({
|
|
1848
|
-
$metadata: deserializeMetadata(output),
|
|
1849
|
-
});
|
|
1850
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1851
|
-
const doc = take(data, {
|
|
1852
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1853
|
-
UsageStatistics: [, (_) => de_UsageStatistics(_, context), `usageStatistics`],
|
|
1854
|
-
});
|
|
1855
|
-
Object.assign(contents, doc);
|
|
1856
|
-
return contents;
|
|
1857
|
-
};
|
|
1858
|
-
export const de_InviteMembersCommand = async (output, context) => {
|
|
1859
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1860
|
-
return de_CommandError(output, context);
|
|
1861
|
-
}
|
|
1862
|
-
const contents = map({
|
|
1863
|
-
$metadata: deserializeMetadata(output),
|
|
1864
|
-
});
|
|
1865
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1866
|
-
const doc = take(data, {
|
|
1867
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
1868
|
-
});
|
|
1869
|
-
Object.assign(contents, doc);
|
|
1870
|
-
return contents;
|
|
1871
|
-
};
|
|
1872
|
-
export const de_ListCoverageCommand = async (output, context) => {
|
|
1873
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1874
|
-
return de_CommandError(output, context);
|
|
1875
|
-
}
|
|
1876
|
-
const contents = map({
|
|
1877
|
-
$metadata: deserializeMetadata(output),
|
|
1878
|
-
});
|
|
1879
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1880
|
-
const doc = take(data, {
|
|
1881
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1882
|
-
Resources: [, (_) => de_CoverageResources(_, context), `resources`],
|
|
1883
|
-
});
|
|
1884
|
-
Object.assign(contents, doc);
|
|
1885
|
-
return contents;
|
|
1886
|
-
};
|
|
1887
|
-
export const de_ListDetectorsCommand = async (output, context) => {
|
|
1888
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1889
|
-
return de_CommandError(output, context);
|
|
1890
|
-
}
|
|
1891
|
-
const contents = map({
|
|
1892
|
-
$metadata: deserializeMetadata(output),
|
|
1893
|
-
});
|
|
1894
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1895
|
-
const doc = take(data, {
|
|
1896
|
-
DetectorIds: [, _json, `detectorIds`],
|
|
1897
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1898
|
-
});
|
|
1899
|
-
Object.assign(contents, doc);
|
|
1900
|
-
return contents;
|
|
1901
|
-
};
|
|
1902
|
-
export const de_ListFiltersCommand = async (output, context) => {
|
|
1903
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1904
|
-
return de_CommandError(output, context);
|
|
1905
|
-
}
|
|
1906
|
-
const contents = map({
|
|
1907
|
-
$metadata: deserializeMetadata(output),
|
|
1908
|
-
});
|
|
1909
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1910
|
-
const doc = take(data, {
|
|
1911
|
-
FilterNames: [, _json, `filterNames`],
|
|
1912
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1913
|
-
});
|
|
1914
|
-
Object.assign(contents, doc);
|
|
1915
|
-
return contents;
|
|
1916
|
-
};
|
|
1917
|
-
export const de_ListFindingsCommand = async (output, context) => {
|
|
1918
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1919
|
-
return de_CommandError(output, context);
|
|
1920
|
-
}
|
|
1921
|
-
const contents = map({
|
|
1922
|
-
$metadata: deserializeMetadata(output),
|
|
1923
|
-
});
|
|
1924
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1925
|
-
const doc = take(data, {
|
|
1926
|
-
FindingIds: [, _json, `findingIds`],
|
|
1927
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1928
|
-
});
|
|
1929
|
-
Object.assign(contents, doc);
|
|
1930
|
-
return contents;
|
|
1931
|
-
};
|
|
1932
|
-
export const de_ListInvitationsCommand = async (output, context) => {
|
|
1933
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1934
|
-
return de_CommandError(output, context);
|
|
1935
|
-
}
|
|
1936
|
-
const contents = map({
|
|
1937
|
-
$metadata: deserializeMetadata(output),
|
|
1938
|
-
});
|
|
1939
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1940
|
-
const doc = take(data, {
|
|
1941
|
-
Invitations: [, (_) => de_Invitations(_, context), `invitations`],
|
|
1942
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1943
|
-
});
|
|
1944
|
-
Object.assign(contents, doc);
|
|
1945
|
-
return contents;
|
|
1946
|
-
};
|
|
1947
|
-
export const de_ListIPSetsCommand = async (output, context) => {
|
|
1948
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1949
|
-
return de_CommandError(output, context);
|
|
1950
|
-
}
|
|
1951
|
-
const contents = map({
|
|
1952
|
-
$metadata: deserializeMetadata(output),
|
|
1953
|
-
});
|
|
1954
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1955
|
-
const doc = take(data, {
|
|
1956
|
-
IpSetIds: [, _json, `ipSetIds`],
|
|
1957
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1958
|
-
});
|
|
1959
|
-
Object.assign(contents, doc);
|
|
1960
|
-
return contents;
|
|
1961
|
-
};
|
|
1962
|
-
export const de_ListMalwareProtectionPlansCommand = async (output, context) => {
|
|
1963
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1964
|
-
return de_CommandError(output, context);
|
|
1965
|
-
}
|
|
1966
|
-
const contents = map({
|
|
1967
|
-
$metadata: deserializeMetadata(output),
|
|
1968
|
-
});
|
|
1969
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1970
|
-
const doc = take(data, {
|
|
1971
|
-
MalwareProtectionPlans: [, (_) => de_MalwareProtectionPlansSummary(_, context), `malwareProtectionPlans`],
|
|
1972
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1973
|
-
});
|
|
1974
|
-
Object.assign(contents, doc);
|
|
1975
|
-
return contents;
|
|
1976
|
-
};
|
|
1977
|
-
export const de_ListMembersCommand = async (output, context) => {
|
|
1978
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1979
|
-
return de_CommandError(output, context);
|
|
1980
|
-
}
|
|
1981
|
-
const contents = map({
|
|
1982
|
-
$metadata: deserializeMetadata(output),
|
|
1983
|
-
});
|
|
1984
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1985
|
-
const doc = take(data, {
|
|
1986
|
-
Members: [, (_) => de_Members(_, context), `members`],
|
|
1987
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1988
|
-
});
|
|
1989
|
-
Object.assign(contents, doc);
|
|
1990
|
-
return contents;
|
|
1991
|
-
};
|
|
1992
|
-
export const de_ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
1993
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1994
|
-
return de_CommandError(output, context);
|
|
1995
|
-
}
|
|
1996
|
-
const contents = map({
|
|
1997
|
-
$metadata: deserializeMetadata(output),
|
|
1998
|
-
});
|
|
1999
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2000
|
-
const doc = take(data, {
|
|
2001
|
-
AdminAccounts: [, (_) => de_AdminAccounts(_, context), `adminAccounts`],
|
|
2002
|
-
NextToken: [, __expectString, `nextToken`],
|
|
2003
|
-
});
|
|
2004
|
-
Object.assign(contents, doc);
|
|
2005
|
-
return contents;
|
|
2006
|
-
};
|
|
2007
|
-
export const de_ListPublishingDestinationsCommand = async (output, context) => {
|
|
2008
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2009
|
-
return de_CommandError(output, context);
|
|
2010
|
-
}
|
|
2011
|
-
const contents = map({
|
|
2012
|
-
$metadata: deserializeMetadata(output),
|
|
2013
|
-
});
|
|
2014
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2015
|
-
const doc = take(data, {
|
|
2016
|
-
Destinations: [, (_) => de_Destinations(_, context), `destinations`],
|
|
2017
|
-
NextToken: [, __expectString, `nextToken`],
|
|
2018
|
-
});
|
|
2019
|
-
Object.assign(contents, doc);
|
|
2020
|
-
return contents;
|
|
2021
|
-
};
|
|
2022
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2023
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2024
|
-
return de_CommandError(output, context);
|
|
2025
|
-
}
|
|
2026
|
-
const contents = map({
|
|
2027
|
-
$metadata: deserializeMetadata(output),
|
|
2028
|
-
});
|
|
2029
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2030
|
-
const doc = take(data, {
|
|
2031
|
-
Tags: [, _json, `tags`],
|
|
2032
|
-
});
|
|
2033
|
-
Object.assign(contents, doc);
|
|
2034
|
-
return contents;
|
|
2035
|
-
};
|
|
2036
|
-
export const de_ListThreatEntitySetsCommand = async (output, context) => {
|
|
2037
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2038
|
-
return de_CommandError(output, context);
|
|
2039
|
-
}
|
|
2040
|
-
const contents = map({
|
|
2041
|
-
$metadata: deserializeMetadata(output),
|
|
2042
|
-
});
|
|
2043
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2044
|
-
const doc = take(data, {
|
|
2045
|
-
NextToken: [, __expectString, `nextToken`],
|
|
2046
|
-
ThreatEntitySetIds: [, _json, `threatEntitySetIds`],
|
|
2047
|
-
});
|
|
2048
|
-
Object.assign(contents, doc);
|
|
2049
|
-
return contents;
|
|
2050
|
-
};
|
|
2051
|
-
export const de_ListThreatIntelSetsCommand = async (output, context) => {
|
|
2052
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2053
|
-
return de_CommandError(output, context);
|
|
2054
|
-
}
|
|
2055
|
-
const contents = map({
|
|
2056
|
-
$metadata: deserializeMetadata(output),
|
|
2057
|
-
});
|
|
2058
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2059
|
-
const doc = take(data, {
|
|
2060
|
-
NextToken: [, __expectString, `nextToken`],
|
|
2061
|
-
ThreatIntelSetIds: [, _json, `threatIntelSetIds`],
|
|
2062
|
-
});
|
|
2063
|
-
Object.assign(contents, doc);
|
|
2064
|
-
return contents;
|
|
2065
|
-
};
|
|
2066
|
-
export const de_ListTrustedEntitySetsCommand = async (output, context) => {
|
|
2067
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2068
|
-
return de_CommandError(output, context);
|
|
2069
|
-
}
|
|
2070
|
-
const contents = map({
|
|
2071
|
-
$metadata: deserializeMetadata(output),
|
|
2072
|
-
});
|
|
2073
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2074
|
-
const doc = take(data, {
|
|
2075
|
-
NextToken: [, __expectString, `nextToken`],
|
|
2076
|
-
TrustedEntitySetIds: [, _json, `trustedEntitySetIds`],
|
|
2077
|
-
});
|
|
2078
|
-
Object.assign(contents, doc);
|
|
2079
|
-
return contents;
|
|
2080
|
-
};
|
|
2081
|
-
export const de_StartMalwareScanCommand = async (output, context) => {
|
|
2082
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2083
|
-
return de_CommandError(output, context);
|
|
2084
|
-
}
|
|
2085
|
-
const contents = map({
|
|
2086
|
-
$metadata: deserializeMetadata(output),
|
|
2087
|
-
});
|
|
2088
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2089
|
-
const doc = take(data, {
|
|
2090
|
-
ScanId: [, __expectString, `scanId`],
|
|
2091
|
-
});
|
|
2092
|
-
Object.assign(contents, doc);
|
|
2093
|
-
return contents;
|
|
2094
|
-
};
|
|
2095
|
-
export const de_StartMonitoringMembersCommand = async (output, context) => {
|
|
2096
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2097
|
-
return de_CommandError(output, context);
|
|
2098
|
-
}
|
|
2099
|
-
const contents = map({
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
});
|
|
2102
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2103
|
-
const doc = take(data, {
|
|
2104
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
2105
|
-
});
|
|
2106
|
-
Object.assign(contents, doc);
|
|
2107
|
-
return contents;
|
|
2108
|
-
};
|
|
2109
|
-
export const de_StopMonitoringMembersCommand = async (output, context) => {
|
|
2110
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2111
|
-
return de_CommandError(output, context);
|
|
2112
|
-
}
|
|
2113
|
-
const contents = map({
|
|
2114
|
-
$metadata: deserializeMetadata(output),
|
|
2115
|
-
});
|
|
2116
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2117
|
-
const doc = take(data, {
|
|
2118
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
2119
|
-
});
|
|
2120
|
-
Object.assign(contents, doc);
|
|
2121
|
-
return contents;
|
|
2122
|
-
};
|
|
2123
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
2124
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2125
|
-
return de_CommandError(output, context);
|
|
2126
|
-
}
|
|
2127
|
-
const contents = map({
|
|
2128
|
-
$metadata: deserializeMetadata(output),
|
|
2129
|
-
});
|
|
2130
|
-
await collectBody(output.body, context);
|
|
2131
|
-
return contents;
|
|
2132
|
-
};
|
|
2133
|
-
export const de_UnarchiveFindingsCommand = async (output, context) => {
|
|
2134
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2135
|
-
return de_CommandError(output, context);
|
|
2136
|
-
}
|
|
2137
|
-
const contents = map({
|
|
2138
|
-
$metadata: deserializeMetadata(output),
|
|
2139
|
-
});
|
|
2140
|
-
await collectBody(output.body, context);
|
|
2141
|
-
return contents;
|
|
2142
|
-
};
|
|
2143
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
2144
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2145
|
-
return de_CommandError(output, context);
|
|
2146
|
-
}
|
|
2147
|
-
const contents = map({
|
|
2148
|
-
$metadata: deserializeMetadata(output),
|
|
2149
|
-
});
|
|
2150
|
-
await collectBody(output.body, context);
|
|
2151
|
-
return contents;
|
|
2152
|
-
};
|
|
2153
|
-
export const de_UpdateDetectorCommand = async (output, context) => {
|
|
2154
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2155
|
-
return de_CommandError(output, context);
|
|
2156
|
-
}
|
|
2157
|
-
const contents = map({
|
|
2158
|
-
$metadata: deserializeMetadata(output),
|
|
2159
|
-
});
|
|
2160
|
-
await collectBody(output.body, context);
|
|
2161
|
-
return contents;
|
|
2162
|
-
};
|
|
2163
|
-
export const de_UpdateFilterCommand = async (output, context) => {
|
|
2164
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2165
|
-
return de_CommandError(output, context);
|
|
2166
|
-
}
|
|
2167
|
-
const contents = map({
|
|
2168
|
-
$metadata: deserializeMetadata(output),
|
|
2169
|
-
});
|
|
2170
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2171
|
-
const doc = take(data, {
|
|
2172
|
-
Name: [, __expectString, `name`],
|
|
2173
|
-
});
|
|
2174
|
-
Object.assign(contents, doc);
|
|
2175
|
-
return contents;
|
|
2176
|
-
};
|
|
2177
|
-
export const de_UpdateFindingsFeedbackCommand = async (output, context) => {
|
|
2178
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2179
|
-
return de_CommandError(output, context);
|
|
2180
|
-
}
|
|
2181
|
-
const contents = map({
|
|
2182
|
-
$metadata: deserializeMetadata(output),
|
|
2183
|
-
});
|
|
2184
|
-
await collectBody(output.body, context);
|
|
2185
|
-
return contents;
|
|
2186
|
-
};
|
|
2187
|
-
export const de_UpdateIPSetCommand = async (output, context) => {
|
|
2188
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2189
|
-
return de_CommandError(output, context);
|
|
2190
|
-
}
|
|
2191
|
-
const contents = map({
|
|
2192
|
-
$metadata: deserializeMetadata(output),
|
|
2193
|
-
});
|
|
2194
|
-
await collectBody(output.body, context);
|
|
2195
|
-
return contents;
|
|
2196
|
-
};
|
|
2197
|
-
export const de_UpdateMalwareProtectionPlanCommand = async (output, context) => {
|
|
2198
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2199
|
-
return de_CommandError(output, context);
|
|
2200
|
-
}
|
|
2201
|
-
const contents = map({
|
|
2202
|
-
$metadata: deserializeMetadata(output),
|
|
2203
|
-
});
|
|
2204
|
-
await collectBody(output.body, context);
|
|
2205
|
-
return contents;
|
|
2206
|
-
};
|
|
2207
|
-
export const de_UpdateMalwareScanSettingsCommand = async (output, context) => {
|
|
2208
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2209
|
-
return de_CommandError(output, context);
|
|
2210
|
-
}
|
|
2211
|
-
const contents = map({
|
|
2212
|
-
$metadata: deserializeMetadata(output),
|
|
2213
|
-
});
|
|
2214
|
-
await collectBody(output.body, context);
|
|
2215
|
-
return contents;
|
|
2216
|
-
};
|
|
2217
|
-
export const de_UpdateMemberDetectorsCommand = async (output, context) => {
|
|
2218
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2219
|
-
return de_CommandError(output, context);
|
|
2220
|
-
}
|
|
2221
|
-
const contents = map({
|
|
2222
|
-
$metadata: deserializeMetadata(output),
|
|
2223
|
-
});
|
|
2224
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2225
|
-
const doc = take(data, {
|
|
2226
|
-
UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`],
|
|
2227
|
-
});
|
|
2228
|
-
Object.assign(contents, doc);
|
|
2229
|
-
return contents;
|
|
2230
|
-
};
|
|
2231
|
-
export const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
2232
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2233
|
-
return de_CommandError(output, context);
|
|
2234
|
-
}
|
|
2235
|
-
const contents = map({
|
|
2236
|
-
$metadata: deserializeMetadata(output),
|
|
2237
|
-
});
|
|
2238
|
-
await collectBody(output.body, context);
|
|
2239
|
-
return contents;
|
|
2240
|
-
};
|
|
2241
|
-
export const de_UpdatePublishingDestinationCommand = async (output, context) => {
|
|
2242
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2243
|
-
return de_CommandError(output, context);
|
|
2244
|
-
}
|
|
2245
|
-
const contents = map({
|
|
2246
|
-
$metadata: deserializeMetadata(output),
|
|
2247
|
-
});
|
|
2248
|
-
await collectBody(output.body, context);
|
|
2249
|
-
return contents;
|
|
2250
|
-
};
|
|
2251
|
-
export const de_UpdateThreatEntitySetCommand = async (output, context) => {
|
|
2252
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2253
|
-
return de_CommandError(output, context);
|
|
2254
|
-
}
|
|
2255
|
-
const contents = map({
|
|
2256
|
-
$metadata: deserializeMetadata(output),
|
|
2257
|
-
});
|
|
2258
|
-
await collectBody(output.body, context);
|
|
2259
|
-
return contents;
|
|
2260
|
-
};
|
|
2261
|
-
export const de_UpdateThreatIntelSetCommand = async (output, context) => {
|
|
2262
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2263
|
-
return de_CommandError(output, context);
|
|
2264
|
-
}
|
|
2265
|
-
const contents = map({
|
|
2266
|
-
$metadata: deserializeMetadata(output),
|
|
2267
|
-
});
|
|
2268
|
-
await collectBody(output.body, context);
|
|
2269
|
-
return contents;
|
|
2270
|
-
};
|
|
2271
|
-
export const de_UpdateTrustedEntitySetCommand = async (output, context) => {
|
|
2272
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2273
|
-
return de_CommandError(output, context);
|
|
2274
|
-
}
|
|
2275
|
-
const contents = map({
|
|
2276
|
-
$metadata: deserializeMetadata(output),
|
|
2277
|
-
});
|
|
2278
|
-
await collectBody(output.body, context);
|
|
2279
|
-
return contents;
|
|
2280
|
-
};
|
|
2281
|
-
const de_CommandError = async (output, context) => {
|
|
2282
|
-
const parsedOutput = {
|
|
2283
|
-
...output,
|
|
2284
|
-
body: await parseErrorBody(output.body, context),
|
|
2285
|
-
};
|
|
2286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2287
|
-
switch (errorCode) {
|
|
2288
|
-
case "BadRequestException":
|
|
2289
|
-
case "com.amazonaws.guardduty#BadRequestException":
|
|
2290
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "InternalServerErrorException":
|
|
2292
|
-
case "com.amazonaws.guardduty#InternalServerErrorException":
|
|
2293
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "AccessDeniedException":
|
|
2295
|
-
case "com.amazonaws.guardduty#AccessDeniedException":
|
|
2296
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2297
|
-
case "ConflictException":
|
|
2298
|
-
case "com.amazonaws.guardduty#ConflictException":
|
|
2299
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "ResourceNotFoundException":
|
|
2301
|
-
case "com.amazonaws.guardduty#ResourceNotFoundException":
|
|
2302
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2303
|
-
default:
|
|
2304
|
-
const parsedBody = parsedOutput.body;
|
|
2305
|
-
return throwDefaultError({
|
|
2306
|
-
output,
|
|
2307
|
-
parsedBody,
|
|
2308
|
-
errorCode,
|
|
2309
|
-
});
|
|
2310
|
-
}
|
|
2311
|
-
};
|
|
2312
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
2313
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2314
|
-
const contents = map({});
|
|
2315
|
-
const data = parsedOutput.body;
|
|
2316
|
-
const doc = take(data, {
|
|
2317
|
-
Message: [, __expectString, `message`],
|
|
2318
|
-
Type: [, __expectString, `__type`],
|
|
2319
|
-
});
|
|
2320
|
-
Object.assign(contents, doc);
|
|
2321
|
-
const exception = new AccessDeniedException({
|
|
2322
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2323
|
-
...contents,
|
|
2324
|
-
});
|
|
2325
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2326
|
-
};
|
|
2327
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2328
|
-
const contents = map({});
|
|
2329
|
-
const data = parsedOutput.body;
|
|
2330
|
-
const doc = take(data, {
|
|
2331
|
-
Message: [, __expectString, `message`],
|
|
2332
|
-
Type: [, __expectString, `__type`],
|
|
2333
|
-
});
|
|
2334
|
-
Object.assign(contents, doc);
|
|
2335
|
-
const exception = new BadRequestException({
|
|
2336
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2337
|
-
...contents,
|
|
2338
|
-
});
|
|
2339
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2340
|
-
};
|
|
2341
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2342
|
-
const contents = map({});
|
|
2343
|
-
const data = parsedOutput.body;
|
|
2344
|
-
const doc = take(data, {
|
|
2345
|
-
Message: [, __expectString, `message`],
|
|
2346
|
-
Type: [, __expectString, `__type`],
|
|
2347
|
-
});
|
|
2348
|
-
Object.assign(contents, doc);
|
|
2349
|
-
const exception = new ConflictException({
|
|
2350
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2351
|
-
...contents,
|
|
2352
|
-
});
|
|
2353
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2354
|
-
};
|
|
2355
|
-
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2356
|
-
const contents = map({});
|
|
2357
|
-
const data = parsedOutput.body;
|
|
2358
|
-
const doc = take(data, {
|
|
2359
|
-
Message: [, __expectString, `message`],
|
|
2360
|
-
Type: [, __expectString, `__type`],
|
|
2361
|
-
});
|
|
2362
|
-
Object.assign(contents, doc);
|
|
2363
|
-
const exception = new InternalServerErrorException({
|
|
2364
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2365
|
-
...contents,
|
|
2366
|
-
});
|
|
2367
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2368
|
-
};
|
|
2369
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2370
|
-
const contents = map({});
|
|
2371
|
-
const data = parsedOutput.body;
|
|
2372
|
-
const doc = take(data, {
|
|
2373
|
-
Message: [, __expectString, `message`],
|
|
2374
|
-
Type: [, __expectString, `__type`],
|
|
2375
|
-
});
|
|
2376
|
-
Object.assign(contents, doc);
|
|
2377
|
-
const exception = new ResourceNotFoundException({
|
|
2378
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2379
|
-
...contents,
|
|
2380
|
-
});
|
|
2381
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2382
|
-
};
|
|
2383
|
-
const se_AccountDetail = (input, context) => {
|
|
2384
|
-
return take(input, {
|
|
2385
|
-
accountId: [, , `AccountId`],
|
|
2386
|
-
email: [, , `Email`],
|
|
2387
|
-
});
|
|
2388
|
-
};
|
|
2389
|
-
const se_AccountDetails = (input, context) => {
|
|
2390
|
-
return input
|
|
2391
|
-
.filter((e) => e != null)
|
|
2392
|
-
.map((entry) => {
|
|
2393
|
-
return se_AccountDetail(entry, context);
|
|
2394
|
-
});
|
|
2395
|
-
};
|
|
2396
|
-
const se_Condition = (input, context) => {
|
|
2397
|
-
return take(input, {
|
|
2398
|
-
eq: [, _json, `Eq`],
|
|
2399
|
-
equals: [, _json, `Equals`],
|
|
2400
|
-
greaterThan: [, , `GreaterThan`],
|
|
2401
|
-
greaterThanOrEqual: [, , `GreaterThanOrEqual`],
|
|
2402
|
-
gt: [, , `Gt`],
|
|
2403
|
-
gte: [, , `Gte`],
|
|
2404
|
-
lessThan: [, , `LessThan`],
|
|
2405
|
-
lessThanOrEqual: [, , `LessThanOrEqual`],
|
|
2406
|
-
lt: [, , `Lt`],
|
|
2407
|
-
lte: [, , `Lte`],
|
|
2408
|
-
neq: [, _json, `Neq`],
|
|
2409
|
-
notEquals: [, _json, `NotEquals`],
|
|
2410
|
-
});
|
|
2411
|
-
};
|
|
2412
|
-
const se_CoverageFilterCondition = (input, context) => {
|
|
2413
|
-
return take(input, {
|
|
2414
|
-
equals: [, _json, `Equals`],
|
|
2415
|
-
notEquals: [, _json, `NotEquals`],
|
|
2416
|
-
});
|
|
2417
|
-
};
|
|
2418
|
-
const se_CoverageFilterCriteria = (input, context) => {
|
|
2419
|
-
return take(input, {
|
|
2420
|
-
filterCriterion: [, (_) => se_CoverageFilterCriterionList(_, context), `FilterCriterion`],
|
|
2421
|
-
});
|
|
2422
|
-
};
|
|
2423
|
-
const se_CoverageFilterCriterion = (input, context) => {
|
|
2424
|
-
return take(input, {
|
|
2425
|
-
criterionKey: [, , `CriterionKey`],
|
|
2426
|
-
filterCondition: [, (_) => se_CoverageFilterCondition(_, context), `FilterCondition`],
|
|
2427
|
-
});
|
|
2428
|
-
};
|
|
2429
|
-
const se_CoverageFilterCriterionList = (input, context) => {
|
|
2430
|
-
return input
|
|
2431
|
-
.filter((e) => e != null)
|
|
2432
|
-
.map((entry) => {
|
|
2433
|
-
return se_CoverageFilterCriterion(entry, context);
|
|
2434
|
-
});
|
|
2435
|
-
};
|
|
2436
|
-
const se_CoverageSortCriteria = (input, context) => {
|
|
2437
|
-
return take(input, {
|
|
2438
|
-
attributeName: [, , `AttributeName`],
|
|
2439
|
-
orderBy: [, , `OrderBy`],
|
|
2440
|
-
});
|
|
2441
|
-
};
|
|
2442
|
-
const se_CreateProtectedResource = (input, context) => {
|
|
2443
|
-
return take(input, {
|
|
2444
|
-
s3Bucket: [, (_) => se_CreateS3BucketResource(_, context), `S3Bucket`],
|
|
2445
|
-
});
|
|
2446
|
-
};
|
|
2447
|
-
const se_CreateS3BucketResource = (input, context) => {
|
|
2448
|
-
return take(input, {
|
|
2449
|
-
bucketName: [, , `BucketName`],
|
|
2450
|
-
objectPrefixes: [, _json, `ObjectPrefixes`],
|
|
2451
|
-
});
|
|
2452
|
-
};
|
|
2453
|
-
const se_Criterion = (input, context) => {
|
|
2454
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2455
|
-
if (value === null) {
|
|
2456
|
-
return acc;
|
|
2457
|
-
}
|
|
2458
|
-
acc[key] = se_Condition(value, context);
|
|
2459
|
-
return acc;
|
|
2460
|
-
}, {});
|
|
2461
|
-
};
|
|
2462
|
-
const se_DataSourceConfigurations = (input, context) => {
|
|
2463
|
-
return take(input, {
|
|
2464
|
-
kubernetes: [, (_) => se_KubernetesConfiguration(_, context), `Kubernetes`],
|
|
2465
|
-
malwareProtection: [, (_) => se_MalwareProtectionConfiguration(_, context), `MalwareProtection`],
|
|
2466
|
-
s3Logs: [, (_) => se_S3LogsConfiguration(_, context), `S3Logs`],
|
|
2467
|
-
});
|
|
2468
|
-
};
|
|
2469
|
-
const se_DestinationProperties = (input, context) => {
|
|
2470
|
-
return take(input, {
|
|
2471
|
-
destinationArn: [, , `DestinationArn`],
|
|
2472
|
-
kmsKeyArn: [, , `KmsKeyArn`],
|
|
2473
|
-
});
|
|
2474
|
-
};
|
|
2475
|
-
const se_DetectorAdditionalConfiguration = (input, context) => {
|
|
2476
|
-
return take(input, {
|
|
2477
|
-
name: [, , `Name`],
|
|
2478
|
-
status: [, , `Status`],
|
|
2479
|
-
});
|
|
2480
|
-
};
|
|
2481
|
-
const se_DetectorAdditionalConfigurations = (input, context) => {
|
|
2482
|
-
return input
|
|
2483
|
-
.filter((e) => e != null)
|
|
2484
|
-
.map((entry) => {
|
|
2485
|
-
return se_DetectorAdditionalConfiguration(entry, context);
|
|
2486
|
-
});
|
|
2487
|
-
};
|
|
2488
|
-
const se_DetectorFeatureConfiguration = (input, context) => {
|
|
2489
|
-
return take(input, {
|
|
2490
|
-
additionalConfiguration: [, (_) => se_DetectorAdditionalConfigurations(_, context), `AdditionalConfiguration`],
|
|
2491
|
-
name: [, , `Name`],
|
|
2492
|
-
status: [, , `Status`],
|
|
2493
|
-
});
|
|
2494
|
-
};
|
|
2495
|
-
const se_DetectorFeatureConfigurations = (input, context) => {
|
|
2496
|
-
return input
|
|
2497
|
-
.filter((e) => e != null)
|
|
2498
|
-
.map((entry) => {
|
|
2499
|
-
return se_DetectorFeatureConfiguration(entry, context);
|
|
2500
|
-
});
|
|
2501
|
-
};
|
|
2502
|
-
const se_FilterCondition = (input, context) => {
|
|
2503
|
-
return take(input, {
|
|
2504
|
-
equalsValue: [, , `EqualsValue`],
|
|
2505
|
-
greaterThan: [, , `GreaterThan`],
|
|
2506
|
-
lessThan: [, , `LessThan`],
|
|
2507
|
-
});
|
|
2508
|
-
};
|
|
2509
|
-
const se_FilterCriteria = (input, context) => {
|
|
2510
|
-
return take(input, {
|
|
2511
|
-
filterCriterion: [, (_) => se_FilterCriterionList(_, context), `FilterCriterion`],
|
|
2512
|
-
});
|
|
2513
|
-
};
|
|
2514
|
-
const se_FilterCriterion = (input, context) => {
|
|
2515
|
-
return take(input, {
|
|
2516
|
-
criterionKey: [, , `CriterionKey`],
|
|
2517
|
-
filterCondition: [, (_) => se_FilterCondition(_, context), `FilterCondition`],
|
|
2518
|
-
});
|
|
2519
|
-
};
|
|
2520
|
-
const se_FilterCriterionList = (input, context) => {
|
|
2521
|
-
return input
|
|
2522
|
-
.filter((e) => e != null)
|
|
2523
|
-
.map((entry) => {
|
|
2524
|
-
return se_FilterCriterion(entry, context);
|
|
2525
|
-
});
|
|
2526
|
-
};
|
|
2527
|
-
const se_FindingCriteria = (input, context) => {
|
|
2528
|
-
return take(input, {
|
|
2529
|
-
criterion: [, (_) => se_Criterion(_, context), `Criterion`],
|
|
2530
|
-
});
|
|
2531
|
-
};
|
|
2532
|
-
const se_KubernetesAuditLogsConfiguration = (input, context) => {
|
|
2533
|
-
return take(input, {
|
|
2534
|
-
enable: [, , `Enable`],
|
|
2535
|
-
});
|
|
2536
|
-
};
|
|
2537
|
-
const se_KubernetesConfiguration = (input, context) => {
|
|
2538
|
-
return take(input, {
|
|
2539
|
-
auditLogs: [, (_) => se_KubernetesAuditLogsConfiguration(_, context), `AuditLogs`],
|
|
2540
|
-
});
|
|
2541
|
-
};
|
|
2542
|
-
const se_MalwareProtectionConfiguration = (input, context) => {
|
|
2543
|
-
return take(input, {
|
|
2544
|
-
scanEc2InstanceWithFindings: [, (_) => se_ScanEc2InstanceWithFindings(_, context), `ScanEc2InstanceWithFindings`],
|
|
2545
|
-
});
|
|
2546
|
-
};
|
|
2547
|
-
const se_MalwareProtectionPlanActions = (input, context) => {
|
|
2548
|
-
return take(input, {
|
|
2549
|
-
tagging: [, (_) => se_MalwareProtectionPlanTaggingAction(_, context), `Tagging`],
|
|
2550
|
-
});
|
|
2551
|
-
};
|
|
2552
|
-
const se_MalwareProtectionPlanTaggingAction = (input, context) => {
|
|
2553
|
-
return take(input, {
|
|
2554
|
-
status: [, , `Status`],
|
|
2555
|
-
});
|
|
2556
|
-
};
|
|
2557
|
-
const se_MapEquals = (input, context) => {
|
|
2558
|
-
return input
|
|
2559
|
-
.filter((e) => e != null)
|
|
2560
|
-
.map((entry) => {
|
|
2561
|
-
return se_ScanConditionPair(entry, context);
|
|
2562
|
-
});
|
|
2563
|
-
};
|
|
2564
|
-
const se_MemberAdditionalConfiguration = (input, context) => {
|
|
2565
|
-
return take(input, {
|
|
2566
|
-
name: [, , `Name`],
|
|
2567
|
-
status: [, , `Status`],
|
|
2568
|
-
});
|
|
2569
|
-
};
|
|
2570
|
-
const se_MemberAdditionalConfigurations = (input, context) => {
|
|
2571
|
-
return input
|
|
2572
|
-
.filter((e) => e != null)
|
|
2573
|
-
.map((entry) => {
|
|
2574
|
-
return se_MemberAdditionalConfiguration(entry, context);
|
|
2575
|
-
});
|
|
2576
|
-
};
|
|
2577
|
-
const se_MemberFeaturesConfiguration = (input, context) => {
|
|
2578
|
-
return take(input, {
|
|
2579
|
-
additionalConfiguration: [, (_) => se_MemberAdditionalConfigurations(_, context), `AdditionalConfiguration`],
|
|
2580
|
-
name: [, , `Name`],
|
|
2581
|
-
status: [, , `Status`],
|
|
2582
|
-
});
|
|
2583
|
-
};
|
|
2584
|
-
const se_MemberFeaturesConfigurations = (input, context) => {
|
|
2585
|
-
return input
|
|
2586
|
-
.filter((e) => e != null)
|
|
2587
|
-
.map((entry) => {
|
|
2588
|
-
return se_MemberFeaturesConfiguration(entry, context);
|
|
2589
|
-
});
|
|
2590
|
-
};
|
|
2591
|
-
const se_OrganizationAdditionalConfiguration = (input, context) => {
|
|
2592
|
-
return take(input, {
|
|
2593
|
-
autoEnable: [, , `AutoEnable`],
|
|
2594
|
-
name: [, , `Name`],
|
|
2595
|
-
});
|
|
2596
|
-
};
|
|
2597
|
-
const se_OrganizationAdditionalConfigurations = (input, context) => {
|
|
2598
|
-
return input
|
|
2599
|
-
.filter((e) => e != null)
|
|
2600
|
-
.map((entry) => {
|
|
2601
|
-
return se_OrganizationAdditionalConfiguration(entry, context);
|
|
2602
|
-
});
|
|
2603
|
-
};
|
|
2604
|
-
const se_OrganizationDataSourceConfigurations = (input, context) => {
|
|
2605
|
-
return take(input, {
|
|
2606
|
-
kubernetes: [, (_) => se_OrganizationKubernetesConfiguration(_, context), `Kubernetes`],
|
|
2607
|
-
malwareProtection: [, (_) => se_OrganizationMalwareProtectionConfiguration(_, context), `MalwareProtection`],
|
|
2608
|
-
s3Logs: [, (_) => se_OrganizationS3LogsConfiguration(_, context), `S3Logs`],
|
|
2609
|
-
});
|
|
2610
|
-
};
|
|
2611
|
-
const se_OrganizationEbsVolumes = (input, context) => {
|
|
2612
|
-
return take(input, {
|
|
2613
|
-
autoEnable: [, , `AutoEnable`],
|
|
2614
|
-
});
|
|
2615
|
-
};
|
|
2616
|
-
const se_OrganizationFeatureConfiguration = (input, context) => {
|
|
2617
|
-
return take(input, {
|
|
2618
|
-
additionalConfiguration: [, (_) => se_OrganizationAdditionalConfigurations(_, context), `AdditionalConfiguration`],
|
|
2619
|
-
autoEnable: [, , `AutoEnable`],
|
|
2620
|
-
name: [, , `Name`],
|
|
2621
|
-
});
|
|
2622
|
-
};
|
|
2623
|
-
const se_OrganizationFeaturesConfigurations = (input, context) => {
|
|
2624
|
-
return input
|
|
2625
|
-
.filter((e) => e != null)
|
|
2626
|
-
.map((entry) => {
|
|
2627
|
-
return se_OrganizationFeatureConfiguration(entry, context);
|
|
2628
|
-
});
|
|
2629
|
-
};
|
|
2630
|
-
const se_OrganizationKubernetesAuditLogsConfiguration = (input, context) => {
|
|
2631
|
-
return take(input, {
|
|
2632
|
-
autoEnable: [, , `AutoEnable`],
|
|
2633
|
-
});
|
|
2634
|
-
};
|
|
2635
|
-
const se_OrganizationKubernetesConfiguration = (input, context) => {
|
|
2636
|
-
return take(input, {
|
|
2637
|
-
auditLogs: [, (_) => se_OrganizationKubernetesAuditLogsConfiguration(_, context), `AuditLogs`],
|
|
2638
|
-
});
|
|
2639
|
-
};
|
|
2640
|
-
const se_OrganizationMalwareProtectionConfiguration = (input, context) => {
|
|
2641
|
-
return take(input, {
|
|
2642
|
-
scanEc2InstanceWithFindings: [
|
|
2643
|
-
,
|
|
2644
|
-
(_) => se_OrganizationScanEc2InstanceWithFindings(_, context),
|
|
2645
|
-
`ScanEc2InstanceWithFindings`,
|
|
2646
|
-
],
|
|
2647
|
-
});
|
|
2648
|
-
};
|
|
2649
|
-
const se_OrganizationS3LogsConfiguration = (input, context) => {
|
|
2650
|
-
return take(input, {
|
|
2651
|
-
autoEnable: [, , `AutoEnable`],
|
|
2652
|
-
});
|
|
2653
|
-
};
|
|
2654
|
-
const se_OrganizationScanEc2InstanceWithFindings = (input, context) => {
|
|
2655
|
-
return take(input, {
|
|
2656
|
-
ebsVolumes: [, (_) => se_OrganizationEbsVolumes(_, context), `EbsVolumes`],
|
|
2657
|
-
});
|
|
2658
|
-
};
|
|
2659
|
-
const se_S3LogsConfiguration = (input, context) => {
|
|
2660
|
-
return take(input, {
|
|
2661
|
-
enable: [, , `Enable`],
|
|
2662
|
-
});
|
|
2663
|
-
};
|
|
2664
|
-
const se_ScanCondition = (input, context) => {
|
|
2665
|
-
return take(input, {
|
|
2666
|
-
mapEquals: [, (_) => se_MapEquals(_, context), `MapEquals`],
|
|
2667
|
-
});
|
|
2668
|
-
};
|
|
2669
|
-
const se_ScanConditionPair = (input, context) => {
|
|
2670
|
-
return take(input, {
|
|
2671
|
-
key: [, , `Key`],
|
|
2672
|
-
value: [, , `Value`],
|
|
2673
|
-
});
|
|
2674
|
-
};
|
|
2675
|
-
const se_ScanCriterion = (input, context) => {
|
|
2676
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2677
|
-
if (value === null) {
|
|
2678
|
-
return acc;
|
|
2679
|
-
}
|
|
2680
|
-
acc[key] = se_ScanCondition(value, context);
|
|
2681
|
-
return acc;
|
|
2682
|
-
}, {});
|
|
2683
|
-
};
|
|
2684
|
-
const se_ScanEc2InstanceWithFindings = (input, context) => {
|
|
2685
|
-
return take(input, {
|
|
2686
|
-
ebsVolumes: [, , `EbsVolumes`],
|
|
2687
|
-
});
|
|
2688
|
-
};
|
|
2689
|
-
const se_ScanResourceCriteria = (input, context) => {
|
|
2690
|
-
return take(input, {
|
|
2691
|
-
exclude: [, (_) => se_ScanCriterion(_, context), `Exclude`],
|
|
2692
|
-
include: [, (_) => se_ScanCriterion(_, context), `Include`],
|
|
2693
|
-
});
|
|
2694
|
-
};
|
|
2695
|
-
const se_SortCriteria = (input, context) => {
|
|
2696
|
-
return take(input, {
|
|
2697
|
-
attributeName: [, , `AttributeName`],
|
|
2698
|
-
orderBy: [, , `OrderBy`],
|
|
2699
|
-
});
|
|
2700
|
-
};
|
|
2701
|
-
const se_UpdateProtectedResource = (input, context) => {
|
|
2702
|
-
return take(input, {
|
|
2703
|
-
s3Bucket: [, (_) => se_UpdateS3BucketResource(_, context), `S3Bucket`],
|
|
2704
|
-
});
|
|
2705
|
-
};
|
|
2706
|
-
const se_UpdateS3BucketResource = (input, context) => {
|
|
2707
|
-
return take(input, {
|
|
2708
|
-
objectPrefixes: [, _json, `ObjectPrefixes`],
|
|
2709
|
-
});
|
|
2710
|
-
};
|
|
2711
|
-
const se_UsageCriteria = (input, context) => {
|
|
2712
|
-
return take(input, {
|
|
2713
|
-
accountIds: [, _json, `AccountIds`],
|
|
2714
|
-
dataSources: [, _json, `DataSources`],
|
|
2715
|
-
features: [, _json, `Features`],
|
|
2716
|
-
resources: [, _json, `Resources`],
|
|
2717
|
-
});
|
|
2718
|
-
};
|
|
2719
|
-
const de_AccessControlList = (output, context) => {
|
|
2720
|
-
return take(output, {
|
|
2721
|
-
AllowsPublicReadAccess: [, __expectBoolean, `allowsPublicReadAccess`],
|
|
2722
|
-
AllowsPublicWriteAccess: [, __expectBoolean, `allowsPublicWriteAccess`],
|
|
2723
|
-
});
|
|
2724
|
-
};
|
|
2725
|
-
const de_AccessKey = (output, context) => {
|
|
2726
|
-
return take(output, {
|
|
2727
|
-
PrincipalId: [, __expectString, `principalId`],
|
|
2728
|
-
UserName: [, __expectString, `userName`],
|
|
2729
|
-
UserType: [, __expectString, `userType`],
|
|
2730
|
-
});
|
|
2731
|
-
};
|
|
2732
|
-
const de_AccessKeyDetails = (output, context) => {
|
|
2733
|
-
return take(output, {
|
|
2734
|
-
AccessKeyId: [, __expectString, `accessKeyId`],
|
|
2735
|
-
PrincipalId: [, __expectString, `principalId`],
|
|
2736
|
-
UserName: [, __expectString, `userName`],
|
|
2737
|
-
UserType: [, __expectString, `userType`],
|
|
2738
|
-
});
|
|
2739
|
-
};
|
|
2740
|
-
const de_Account = (output, context) => {
|
|
2741
|
-
return take(output, {
|
|
2742
|
-
Name: [, __expectString, `account`],
|
|
2743
|
-
Uid: [, __expectString, `uid`],
|
|
2744
|
-
});
|
|
2745
|
-
};
|
|
2746
|
-
const de_AccountFreeTrialInfo = (output, context) => {
|
|
2747
|
-
return take(output, {
|
|
2748
|
-
AccountId: [, __expectString, `accountId`],
|
|
2749
|
-
DataSources: [, (_) => de_DataSourcesFreeTrial(_, context), `dataSources`],
|
|
2750
|
-
Features: [, (_) => de_FreeTrialFeatureConfigurationsResults(_, context), `features`],
|
|
2751
|
-
});
|
|
2752
|
-
};
|
|
2753
|
-
const de_AccountFreeTrialInfos = (output, context) => {
|
|
2754
|
-
const retVal = (output || [])
|
|
2755
|
-
.filter((e) => e != null)
|
|
2756
|
-
.map((entry) => {
|
|
2757
|
-
return de_AccountFreeTrialInfo(entry, context);
|
|
2758
|
-
});
|
|
2759
|
-
return retVal;
|
|
2760
|
-
};
|
|
2761
|
-
const de_AccountLevelPermissions = (output, context) => {
|
|
2762
|
-
return take(output, {
|
|
2763
|
-
BlockPublicAccess: [, (_) => de_BlockPublicAccess(_, context), `blockPublicAccess`],
|
|
2764
|
-
});
|
|
2765
|
-
};
|
|
2766
|
-
const de_AccountStatistics = (output, context) => {
|
|
2767
|
-
return take(output, {
|
|
2768
|
-
AccountId: [, __expectString, `accountId`],
|
|
2769
|
-
LastGeneratedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastGeneratedAt`],
|
|
2770
|
-
TotalFindings: [, __expectInt32, `totalFindings`],
|
|
2771
|
-
});
|
|
2772
|
-
};
|
|
2773
|
-
const de_Action = (output, context) => {
|
|
2774
|
-
return take(output, {
|
|
2775
|
-
ActionType: [, __expectString, `actionType`],
|
|
2776
|
-
AwsApiCallAction: [, (_) => de_AwsApiCallAction(_, context), `awsApiCallAction`],
|
|
2777
|
-
DnsRequestAction: [, (_) => de_DnsRequestAction(_, context), `dnsRequestAction`],
|
|
2778
|
-
KubernetesApiCallAction: [, (_) => de_KubernetesApiCallAction(_, context), `kubernetesApiCallAction`],
|
|
2779
|
-
KubernetesPermissionCheckedDetails: [
|
|
2780
|
-
,
|
|
2781
|
-
(_) => de_KubernetesPermissionCheckedDetails(_, context),
|
|
2782
|
-
`kubernetesPermissionCheckedDetails`,
|
|
2783
|
-
],
|
|
2784
|
-
KubernetesRoleBindingDetails: [
|
|
2785
|
-
,
|
|
2786
|
-
(_) => de_KubernetesRoleBindingDetails(_, context),
|
|
2787
|
-
`kubernetesRoleBindingDetails`,
|
|
2788
|
-
],
|
|
2789
|
-
KubernetesRoleDetails: [, (_) => de_KubernetesRoleDetails(_, context), `kubernetesRoleDetails`],
|
|
2790
|
-
NetworkConnectionAction: [, (_) => de_NetworkConnectionAction(_, context), `networkConnectionAction`],
|
|
2791
|
-
PortProbeAction: [, (_) => de_PortProbeAction(_, context), `portProbeAction`],
|
|
2792
|
-
RdsLoginAttemptAction: [, (_) => de_RdsLoginAttemptAction(_, context), `rdsLoginAttemptAction`],
|
|
2793
|
-
});
|
|
2794
|
-
};
|
|
2795
|
-
const de_Actor = (output, context) => {
|
|
2796
|
-
return take(output, {
|
|
2797
|
-
Id: [, __expectString, `id`],
|
|
2798
|
-
Process: [, (_) => de_ActorProcess(_, context), `process`],
|
|
2799
|
-
Session: [, (_) => de_Session(_, context), `session`],
|
|
2800
|
-
User: [, (_) => de_User(_, context), `user`],
|
|
2801
|
-
});
|
|
2802
|
-
};
|
|
2803
|
-
const de_ActorProcess = (output, context) => {
|
|
2804
|
-
return take(output, {
|
|
2805
|
-
Name: [, __expectString, `name`],
|
|
2806
|
-
Path: [, __expectString, `path`],
|
|
2807
|
-
Sha256: [, __expectString, `sha256`],
|
|
2808
|
-
});
|
|
2809
|
-
};
|
|
2810
|
-
const de_Actors = (output, context) => {
|
|
2811
|
-
const retVal = (output || [])
|
|
2812
|
-
.filter((e) => e != null)
|
|
2813
|
-
.map((entry) => {
|
|
2814
|
-
return de_Actor(entry, context);
|
|
2815
|
-
});
|
|
2816
|
-
return retVal;
|
|
2817
|
-
};
|
|
2818
|
-
const de_AddonDetails = (output, context) => {
|
|
2819
|
-
return take(output, {
|
|
2820
|
-
AddonStatus: [, __expectString, `addonStatus`],
|
|
2821
|
-
AddonVersion: [, __expectString, `addonVersion`],
|
|
2822
|
-
});
|
|
2823
|
-
};
|
|
2824
|
-
const de_AdminAccount = (output, context) => {
|
|
2825
|
-
return take(output, {
|
|
2826
|
-
AdminAccountId: [, __expectString, `adminAccountId`],
|
|
2827
|
-
AdminStatus: [, __expectString, `adminStatus`],
|
|
2828
|
-
});
|
|
2829
|
-
};
|
|
2830
|
-
const de_AdminAccounts = (output, context) => {
|
|
2831
|
-
const retVal = (output || [])
|
|
2832
|
-
.filter((e) => e != null)
|
|
2833
|
-
.map((entry) => {
|
|
2834
|
-
return de_AdminAccount(entry, context);
|
|
2835
|
-
});
|
|
2836
|
-
return retVal;
|
|
2837
|
-
};
|
|
2838
|
-
const de_Administrator = (output, context) => {
|
|
2839
|
-
return take(output, {
|
|
2840
|
-
AccountId: [, __expectString, `accountId`],
|
|
2841
|
-
InvitationId: [, __expectString, `invitationId`],
|
|
2842
|
-
InvitedAt: [, __expectString, `invitedAt`],
|
|
2843
|
-
RelationshipStatus: [, __expectString, `relationshipStatus`],
|
|
2844
|
-
});
|
|
2845
|
-
};
|
|
2846
|
-
const de_AgentDetails = (output, context) => {
|
|
2847
|
-
return take(output, {
|
|
2848
|
-
Version: [, __expectString, `version`],
|
|
2849
|
-
});
|
|
2850
|
-
};
|
|
2851
|
-
const de_Anomaly = (output, context) => {
|
|
2852
|
-
return take(output, {
|
|
2853
|
-
Profiles: [, (_) => de_AnomalyProfiles(_, context), `profiles`],
|
|
2854
|
-
Unusual: [, (_) => de_AnomalyUnusual(_, context), `unusual`],
|
|
2855
|
-
});
|
|
2856
|
-
};
|
|
2857
|
-
const de_AnomalyObject = (output, context) => {
|
|
2858
|
-
return take(output, {
|
|
2859
|
-
Observations: [, (_) => de_Observations(_, context), `observations`],
|
|
2860
|
-
ProfileSubtype: [, __expectString, `profileSubtype`],
|
|
2861
|
-
ProfileType: [, __expectString, `profileType`],
|
|
2862
|
-
});
|
|
2863
|
-
};
|
|
2864
|
-
const de_AnomalyProfileFeatureObjects = (output, context) => {
|
|
2865
|
-
const retVal = (output || [])
|
|
2866
|
-
.filter((e) => e != null)
|
|
2867
|
-
.map((entry) => {
|
|
2868
|
-
return de_AnomalyObject(entry, context);
|
|
2869
|
-
});
|
|
2870
|
-
return retVal;
|
|
2871
|
-
};
|
|
2872
|
-
const de_AnomalyProfileFeatures = (output, context) => {
|
|
2873
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2874
|
-
if (value === null) {
|
|
2875
|
-
return acc;
|
|
2876
|
-
}
|
|
2877
|
-
acc[key] = de_AnomalyProfileFeatureObjects(value, context);
|
|
2878
|
-
return acc;
|
|
2879
|
-
}, {});
|
|
2880
|
-
};
|
|
2881
|
-
const de_AnomalyProfiles = (output, context) => {
|
|
2882
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2883
|
-
if (value === null) {
|
|
2884
|
-
return acc;
|
|
2885
|
-
}
|
|
2886
|
-
acc[key] = de_AnomalyProfileFeatures(value, context);
|
|
2887
|
-
return acc;
|
|
2888
|
-
}, {});
|
|
2889
|
-
};
|
|
2890
|
-
const de_AnomalyUnusual = (output, context) => {
|
|
2891
|
-
return take(output, {
|
|
2892
|
-
Behavior: [, (_) => de_Behavior(_, context), `behavior`],
|
|
2893
|
-
});
|
|
2894
|
-
};
|
|
2895
|
-
const de_AnomalyUnusualBehaviorFeature = (output, context) => {
|
|
2896
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2897
|
-
if (value === null) {
|
|
2898
|
-
return acc;
|
|
2899
|
-
}
|
|
2900
|
-
acc[key] = de_AnomalyObject(value, context);
|
|
2901
|
-
return acc;
|
|
2902
|
-
}, {});
|
|
2903
|
-
};
|
|
2904
|
-
const de_AutonomousSystem = (output, context) => {
|
|
2905
|
-
return take(output, {
|
|
2906
|
-
Name: [, __expectString, `name`],
|
|
2907
|
-
Number: [, __expectInt32, `number`],
|
|
2908
|
-
});
|
|
2909
|
-
};
|
|
2910
|
-
const de_AwsApiCallAction = (output, context) => {
|
|
2911
|
-
return take(output, {
|
|
2912
|
-
AffectedResources: [, _json, `affectedResources`],
|
|
2913
|
-
Api: [, __expectString, `api`],
|
|
2914
|
-
CallerType: [, __expectString, `callerType`],
|
|
2915
|
-
DomainDetails: [, (_) => de_DomainDetails(_, context), `domainDetails`],
|
|
2916
|
-
ErrorCode: [, __expectString, `errorCode`],
|
|
2917
|
-
RemoteAccountDetails: [, (_) => de_RemoteAccountDetails(_, context), `remoteAccountDetails`],
|
|
2918
|
-
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
2919
|
-
ServiceName: [, __expectString, `serviceName`],
|
|
2920
|
-
UserAgent: [, __expectString, `userAgent`],
|
|
2921
|
-
});
|
|
2922
|
-
};
|
|
2923
|
-
const de_Behavior = (output, context) => {
|
|
2924
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2925
|
-
if (value === null) {
|
|
2926
|
-
return acc;
|
|
2927
|
-
}
|
|
2928
|
-
acc[key] = de_AnomalyUnusualBehaviorFeature(value, context);
|
|
2929
|
-
return acc;
|
|
2930
|
-
}, {});
|
|
2931
|
-
};
|
|
2932
|
-
const de_BlockPublicAccess = (output, context) => {
|
|
2933
|
-
return take(output, {
|
|
2934
|
-
BlockPublicAcls: [, __expectBoolean, `blockPublicAcls`],
|
|
2935
|
-
BlockPublicPolicy: [, __expectBoolean, `blockPublicPolicy`],
|
|
2936
|
-
IgnorePublicAcls: [, __expectBoolean, `ignorePublicAcls`],
|
|
2937
|
-
RestrictPublicBuckets: [, __expectBoolean, `restrictPublicBuckets`],
|
|
2938
|
-
});
|
|
2939
|
-
};
|
|
2940
|
-
const de_BucketLevelPermissions = (output, context) => {
|
|
2941
|
-
return take(output, {
|
|
2942
|
-
AccessControlList: [, (_) => de_AccessControlList(_, context), `accessControlList`],
|
|
2943
|
-
BlockPublicAccess: [, (_) => de_BlockPublicAccess(_, context), `blockPublicAccess`],
|
|
2944
|
-
BucketPolicy: [, (_) => de_BucketPolicy(_, context), `bucketPolicy`],
|
|
2945
|
-
});
|
|
2946
|
-
};
|
|
2947
|
-
const de_BucketPolicy = (output, context) => {
|
|
2948
|
-
return take(output, {
|
|
2949
|
-
AllowsPublicReadAccess: [, __expectBoolean, `allowsPublicReadAccess`],
|
|
2950
|
-
AllowsPublicWriteAccess: [, __expectBoolean, `allowsPublicWriteAccess`],
|
|
2951
|
-
});
|
|
2952
|
-
};
|
|
2953
|
-
const de_City = (output, context) => {
|
|
2954
|
-
return take(output, {
|
|
2955
|
-
CityName: [, __expectString, `cityName`],
|
|
2956
|
-
});
|
|
2957
|
-
};
|
|
2958
|
-
const de_CloudTrailConfigurationResult = (output, context) => {
|
|
2959
|
-
return take(output, {
|
|
2960
|
-
Status: [, __expectString, `status`],
|
|
2961
|
-
});
|
|
2962
|
-
};
|
|
2963
|
-
const de_Condition = (output, context) => {
|
|
2964
|
-
return take(output, {
|
|
2965
|
-
Eq: [, _json, `eq`],
|
|
2966
|
-
Equals: [, _json, `equals`],
|
|
2967
|
-
GreaterThan: [, __expectLong, `greaterThan`],
|
|
2968
|
-
GreaterThanOrEqual: [, __expectLong, `greaterThanOrEqual`],
|
|
2969
|
-
Gt: [, __expectInt32, `gt`],
|
|
2970
|
-
Gte: [, __expectInt32, `gte`],
|
|
2971
|
-
LessThan: [, __expectLong, `lessThan`],
|
|
2972
|
-
LessThanOrEqual: [, __expectLong, `lessThanOrEqual`],
|
|
2973
|
-
Lt: [, __expectInt32, `lt`],
|
|
2974
|
-
Lte: [, __expectInt32, `lte`],
|
|
2975
|
-
Neq: [, _json, `neq`],
|
|
2976
|
-
NotEquals: [, _json, `notEquals`],
|
|
2977
|
-
});
|
|
2978
|
-
};
|
|
2979
|
-
const de_Container = (output, context) => {
|
|
2980
|
-
return take(output, {
|
|
2981
|
-
ContainerRuntime: [, __expectString, `containerRuntime`],
|
|
2982
|
-
Id: [, __expectString, `id`],
|
|
2983
|
-
Image: [, __expectString, `image`],
|
|
2984
|
-
ImagePrefix: [, __expectString, `imagePrefix`],
|
|
2985
|
-
Name: [, __expectString, `name`],
|
|
2986
|
-
SecurityContext: [, (_) => de_SecurityContext(_, context), `securityContext`],
|
|
2987
|
-
VolumeMounts: [, (_) => de_VolumeMounts(_, context), `volumeMounts`],
|
|
2988
|
-
});
|
|
2989
|
-
};
|
|
2990
|
-
const de_ContainerFindingResource = (output, context) => {
|
|
2991
|
-
return take(output, {
|
|
2992
|
-
Image: [, __expectString, `image`],
|
|
2993
|
-
ImageUid: [, __expectString, `imageUid`],
|
|
2994
|
-
});
|
|
2995
|
-
};
|
|
2996
|
-
const de_ContainerInstanceDetails = (output, context) => {
|
|
2997
|
-
return take(output, {
|
|
2998
|
-
CompatibleContainerInstances: [, __expectLong, `compatibleContainerInstances`],
|
|
2999
|
-
CoveredContainerInstances: [, __expectLong, `coveredContainerInstances`],
|
|
3000
|
-
});
|
|
3001
|
-
};
|
|
3002
|
-
const de_Containers = (output, context) => {
|
|
3003
|
-
const retVal = (output || [])
|
|
3004
|
-
.filter((e) => e != null)
|
|
3005
|
-
.map((entry) => {
|
|
3006
|
-
return de_Container(entry, context);
|
|
3007
|
-
});
|
|
3008
|
-
return retVal;
|
|
3009
|
-
};
|
|
3010
|
-
const de_Country = (output, context) => {
|
|
3011
|
-
return take(output, {
|
|
3012
|
-
CountryCode: [, __expectString, `countryCode`],
|
|
3013
|
-
CountryName: [, __expectString, `countryName`],
|
|
3014
|
-
});
|
|
3015
|
-
};
|
|
3016
|
-
const de_CoverageEc2InstanceDetails = (output, context) => {
|
|
3017
|
-
return take(output, {
|
|
3018
|
-
AgentDetails: [, (_) => de_AgentDetails(_, context), `agentDetails`],
|
|
3019
|
-
ClusterArn: [, __expectString, `clusterArn`],
|
|
3020
|
-
InstanceId: [, __expectString, `instanceId`],
|
|
3021
|
-
InstanceType: [, __expectString, `instanceType`],
|
|
3022
|
-
ManagementType: [, __expectString, `managementType`],
|
|
3023
|
-
});
|
|
3024
|
-
};
|
|
3025
|
-
const de_CoverageEcsClusterDetails = (output, context) => {
|
|
3026
|
-
return take(output, {
|
|
3027
|
-
ClusterName: [, __expectString, `clusterName`],
|
|
3028
|
-
ContainerInstanceDetails: [, (_) => de_ContainerInstanceDetails(_, context), `containerInstanceDetails`],
|
|
3029
|
-
FargateDetails: [, (_) => de_FargateDetails(_, context), `fargateDetails`],
|
|
3030
|
-
});
|
|
3031
|
-
};
|
|
3032
|
-
const de_CoverageEksClusterDetails = (output, context) => {
|
|
3033
|
-
return take(output, {
|
|
3034
|
-
AddonDetails: [, (_) => de_AddonDetails(_, context), `addonDetails`],
|
|
3035
|
-
ClusterName: [, __expectString, `clusterName`],
|
|
3036
|
-
CompatibleNodes: [, __expectLong, `compatibleNodes`],
|
|
3037
|
-
CoveredNodes: [, __expectLong, `coveredNodes`],
|
|
3038
|
-
ManagementType: [, __expectString, `managementType`],
|
|
3039
|
-
});
|
|
3040
|
-
};
|
|
3041
|
-
const de_CoverageResource = (output, context) => {
|
|
3042
|
-
return take(output, {
|
|
3043
|
-
AccountId: [, __expectString, `accountId`],
|
|
3044
|
-
CoverageStatus: [, __expectString, `coverageStatus`],
|
|
3045
|
-
DetectorId: [, __expectString, `detectorId`],
|
|
3046
|
-
Issue: [, __expectString, `issue`],
|
|
3047
|
-
ResourceDetails: [, (_) => de_CoverageResourceDetails(_, context), `resourceDetails`],
|
|
3048
|
-
ResourceId: [, __expectString, `resourceId`],
|
|
3049
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
3050
|
-
});
|
|
3051
|
-
};
|
|
3052
|
-
const de_CoverageResourceDetails = (output, context) => {
|
|
3053
|
-
return take(output, {
|
|
3054
|
-
Ec2InstanceDetails: [, (_) => de_CoverageEc2InstanceDetails(_, context), `ec2InstanceDetails`],
|
|
3055
|
-
EcsClusterDetails: [, (_) => de_CoverageEcsClusterDetails(_, context), `ecsClusterDetails`],
|
|
3056
|
-
EksClusterDetails: [, (_) => de_CoverageEksClusterDetails(_, context), `eksClusterDetails`],
|
|
3057
|
-
ResourceType: [, __expectString, `resourceType`],
|
|
3058
|
-
});
|
|
3059
|
-
};
|
|
3060
|
-
const de_CoverageResources = (output, context) => {
|
|
3061
|
-
const retVal = (output || [])
|
|
3062
|
-
.filter((e) => e != null)
|
|
3063
|
-
.map((entry) => {
|
|
3064
|
-
return de_CoverageResource(entry, context);
|
|
3065
|
-
});
|
|
3066
|
-
return retVal;
|
|
3067
|
-
};
|
|
3068
|
-
const de_CoverageStatistics = (output, context) => {
|
|
3069
|
-
return take(output, {
|
|
3070
|
-
CountByCoverageStatus: [, _json, `countByCoverageStatus`],
|
|
3071
|
-
CountByResourceType: [, _json, `countByResourceType`],
|
|
3072
|
-
});
|
|
3073
|
-
};
|
|
3074
|
-
const de_CreateProtectedResource = (output, context) => {
|
|
3075
|
-
return take(output, {
|
|
3076
|
-
S3Bucket: [, (_) => de_CreateS3BucketResource(_, context), `s3Bucket`],
|
|
3077
|
-
});
|
|
3078
|
-
};
|
|
3079
|
-
const de_CreateS3BucketResource = (output, context) => {
|
|
3080
|
-
return take(output, {
|
|
3081
|
-
BucketName: [, __expectString, `bucketName`],
|
|
3082
|
-
ObjectPrefixes: [, _json, `objectPrefixes`],
|
|
3083
|
-
});
|
|
3084
|
-
};
|
|
3085
|
-
const de_Criterion = (output, context) => {
|
|
3086
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3087
|
-
if (value === null) {
|
|
3088
|
-
return acc;
|
|
3089
|
-
}
|
|
3090
|
-
acc[key] = de_Condition(value, context);
|
|
3091
|
-
return acc;
|
|
3092
|
-
}, {});
|
|
3093
|
-
};
|
|
3094
|
-
const de_DataSourceConfigurationsResult = (output, context) => {
|
|
3095
|
-
return take(output, {
|
|
3096
|
-
CloudTrail: [, (_) => de_CloudTrailConfigurationResult(_, context), `cloudTrail`],
|
|
3097
|
-
DNSLogs: [, (_) => de_DNSLogsConfigurationResult(_, context), `dnsLogs`],
|
|
3098
|
-
FlowLogs: [, (_) => de_FlowLogsConfigurationResult(_, context), `flowLogs`],
|
|
3099
|
-
Kubernetes: [, (_) => de_KubernetesConfigurationResult(_, context), `kubernetes`],
|
|
3100
|
-
MalwareProtection: [, (_) => de_MalwareProtectionConfigurationResult(_, context), `malwareProtection`],
|
|
3101
|
-
S3Logs: [, (_) => de_S3LogsConfigurationResult(_, context), `s3Logs`],
|
|
3102
|
-
});
|
|
3103
|
-
};
|
|
3104
|
-
const de_DataSourceFreeTrial = (output, context) => {
|
|
3105
|
-
return take(output, {
|
|
3106
|
-
FreeTrialDaysRemaining: [, __expectInt32, `freeTrialDaysRemaining`],
|
|
3107
|
-
});
|
|
3108
|
-
};
|
|
3109
|
-
const de_DataSourcesFreeTrial = (output, context) => {
|
|
3110
|
-
return take(output, {
|
|
3111
|
-
CloudTrail: [, (_) => de_DataSourceFreeTrial(_, context), `cloudTrail`],
|
|
3112
|
-
DnsLogs: [, (_) => de_DataSourceFreeTrial(_, context), `dnsLogs`],
|
|
3113
|
-
FlowLogs: [, (_) => de_DataSourceFreeTrial(_, context), `flowLogs`],
|
|
3114
|
-
Kubernetes: [, (_) => de_KubernetesDataSourceFreeTrial(_, context), `kubernetes`],
|
|
3115
|
-
MalwareProtection: [, (_) => de_MalwareProtectionDataSourceFreeTrial(_, context), `malwareProtection`],
|
|
3116
|
-
S3Logs: [, (_) => de_DataSourceFreeTrial(_, context), `s3Logs`],
|
|
3117
|
-
});
|
|
3118
|
-
};
|
|
3119
|
-
const de_DateStatistics = (output, context) => {
|
|
3120
|
-
return take(output, {
|
|
3121
|
-
Date: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `date`],
|
|
3122
|
-
LastGeneratedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastGeneratedAt`],
|
|
3123
|
-
Severity: [, __limitedParseDouble, `severity`],
|
|
3124
|
-
TotalFindings: [, __expectInt32, `totalFindings`],
|
|
3125
|
-
});
|
|
3126
|
-
};
|
|
3127
|
-
const de_DefaultServerSideEncryption = (output, context) => {
|
|
3128
|
-
return take(output, {
|
|
3129
|
-
EncryptionType: [, __expectString, `encryptionType`],
|
|
3130
|
-
KmsMasterKeyArn: [, __expectString, `kmsMasterKeyArn`],
|
|
3131
|
-
});
|
|
3132
|
-
};
|
|
3133
|
-
const de_Destination = (output, context) => {
|
|
3134
|
-
return take(output, {
|
|
3135
|
-
DestinationId: [, __expectString, `destinationId`],
|
|
3136
|
-
DestinationType: [, __expectString, `destinationType`],
|
|
3137
|
-
Status: [, __expectString, `status`],
|
|
3138
|
-
});
|
|
3139
|
-
};
|
|
3140
|
-
const de_DestinationProperties = (output, context) => {
|
|
3141
|
-
return take(output, {
|
|
3142
|
-
DestinationArn: [, __expectString, `destinationArn`],
|
|
3143
|
-
KmsKeyArn: [, __expectString, `kmsKeyArn`],
|
|
3144
|
-
});
|
|
3145
|
-
};
|
|
3146
|
-
const de_Destinations = (output, context) => {
|
|
3147
|
-
const retVal = (output || [])
|
|
3148
|
-
.filter((e) => e != null)
|
|
3149
|
-
.map((entry) => {
|
|
3150
|
-
return de_Destination(entry, context);
|
|
3151
|
-
});
|
|
3152
|
-
return retVal;
|
|
3153
|
-
};
|
|
3154
|
-
const de_Detection = (output, context) => {
|
|
3155
|
-
return take(output, {
|
|
3156
|
-
Anomaly: [, (_) => de_Anomaly(_, context), `anomaly`],
|
|
3157
|
-
Sequence: [, (_) => de_Sequence(_, context), `sequence`],
|
|
3158
|
-
});
|
|
3159
|
-
};
|
|
3160
|
-
const de_DetectorAdditionalConfigurationResult = (output, context) => {
|
|
3161
|
-
return take(output, {
|
|
3162
|
-
Name: [, __expectString, `name`],
|
|
3163
|
-
Status: [, __expectString, `status`],
|
|
3164
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
3165
|
-
});
|
|
3166
|
-
};
|
|
3167
|
-
const de_DetectorAdditionalConfigurationResults = (output, context) => {
|
|
3168
|
-
const retVal = (output || [])
|
|
3169
|
-
.filter((e) => e != null)
|
|
3170
|
-
.map((entry) => {
|
|
3171
|
-
return de_DetectorAdditionalConfigurationResult(entry, context);
|
|
3172
|
-
});
|
|
3173
|
-
return retVal;
|
|
3174
|
-
};
|
|
3175
|
-
const de_DetectorFeatureConfigurationResult = (output, context) => {
|
|
3176
|
-
return take(output, {
|
|
3177
|
-
AdditionalConfiguration: [
|
|
3178
|
-
,
|
|
3179
|
-
(_) => de_DetectorAdditionalConfigurationResults(_, context),
|
|
3180
|
-
`additionalConfiguration`,
|
|
3181
|
-
],
|
|
3182
|
-
Name: [, __expectString, `name`],
|
|
3183
|
-
Status: [, __expectString, `status`],
|
|
3184
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
3185
|
-
});
|
|
3186
|
-
};
|
|
3187
|
-
const de_DetectorFeatureConfigurationsResults = (output, context) => {
|
|
3188
|
-
const retVal = (output || [])
|
|
3189
|
-
.filter((e) => e != null)
|
|
3190
|
-
.map((entry) => {
|
|
3191
|
-
return de_DetectorFeatureConfigurationResult(entry, context);
|
|
3192
|
-
});
|
|
3193
|
-
return retVal;
|
|
3194
|
-
};
|
|
3195
|
-
const de_DNSLogsConfigurationResult = (output, context) => {
|
|
3196
|
-
return take(output, {
|
|
3197
|
-
Status: [, __expectString, `status`],
|
|
3198
|
-
});
|
|
3199
|
-
};
|
|
3200
|
-
const de_DnsRequestAction = (output, context) => {
|
|
3201
|
-
return take(output, {
|
|
3202
|
-
Blocked: [, __expectBoolean, `blocked`],
|
|
3203
|
-
Domain: [, __expectString, `domain`],
|
|
3204
|
-
DomainWithSuffix: [, __expectString, `domainWithSuffix`],
|
|
3205
|
-
Protocol: [, __expectString, `protocol`],
|
|
3206
|
-
VpcOwnerAccountId: [, __expectString, `vpcOwnerAccountId`],
|
|
3207
|
-
});
|
|
3208
|
-
};
|
|
3209
|
-
const de_DomainDetails = (output, context) => {
|
|
3210
|
-
return take(output, {
|
|
3211
|
-
Domain: [, __expectString, `domain`],
|
|
3212
|
-
});
|
|
3213
|
-
};
|
|
3214
|
-
const de_EbsVolumeDetails = (output, context) => {
|
|
3215
|
-
return take(output, {
|
|
3216
|
-
ScannedVolumeDetails: [, (_) => de_VolumeDetails(_, context), `scannedVolumeDetails`],
|
|
3217
|
-
SkippedVolumeDetails: [, (_) => de_VolumeDetails(_, context), `skippedVolumeDetails`],
|
|
3218
|
-
});
|
|
3219
|
-
};
|
|
3220
|
-
const de_EbsVolumeScanDetails = (output, context) => {
|
|
3221
|
-
return take(output, {
|
|
3222
|
-
ScanCompletedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `scanCompletedAt`],
|
|
3223
|
-
ScanDetections: [, (_) => de_ScanDetections(_, context), `scanDetections`],
|
|
3224
|
-
ScanId: [, __expectString, `scanId`],
|
|
3225
|
-
ScanStartedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `scanStartedAt`],
|
|
3226
|
-
ScanType: [, __expectString, `scanType`],
|
|
3227
|
-
Sources: [, _json, `sources`],
|
|
3228
|
-
TriggerFindingId: [, __expectString, `triggerFindingId`],
|
|
3229
|
-
});
|
|
3230
|
-
};
|
|
3231
|
-
const de_EbsVolumesResult = (output, context) => {
|
|
3232
|
-
return take(output, {
|
|
3233
|
-
Reason: [, __expectString, `reason`],
|
|
3234
|
-
Status: [, __expectString, `status`],
|
|
3235
|
-
});
|
|
3236
|
-
};
|
|
3237
|
-
const de_Ec2Instance = (output, context) => {
|
|
3238
|
-
return take(output, {
|
|
3239
|
-
AvailabilityZone: [, __expectString, `availabilityZone`],
|
|
3240
|
-
Ec2NetworkInterfaceUids: [, _json, `ec2NetworkInterfaceUids`],
|
|
3241
|
-
IamInstanceProfile: (_) => de_IamInstanceProfile(_, context),
|
|
3242
|
-
ImageDescription: [, __expectString, `imageDescription`],
|
|
3243
|
-
InstanceState: [, __expectString, `instanceState`],
|
|
3244
|
-
InstanceType: [, __expectString, `instanceType`],
|
|
3245
|
-
OutpostArn: [, __expectString, `outpostArn`],
|
|
3246
|
-
Platform: [, __expectString, `platform`],
|
|
3247
|
-
ProductCodes: [, (_) => de_ProductCodes(_, context), `productCodes`],
|
|
3248
|
-
});
|
|
3249
|
-
};
|
|
3250
|
-
const de_Ec2NetworkInterface = (output, context) => {
|
|
3251
|
-
return take(output, {
|
|
3252
|
-
Ipv6Addresses: [, _json, `ipv6Addresses`],
|
|
3253
|
-
PrivateIpAddresses: [, (_) => de_PrivateIpAddresses(_, context), `privateIpAddresses`],
|
|
3254
|
-
PublicIp: [, __expectString, `publicIp`],
|
|
3255
|
-
SecurityGroups: [, (_) => de_SecurityGroups(_, context), `securityGroups`],
|
|
3256
|
-
SubNetId: [, __expectString, `subNetId`],
|
|
3257
|
-
VpcId: [, __expectString, `vpcId`],
|
|
3258
|
-
});
|
|
3259
|
-
};
|
|
3260
|
-
const de_EcsClusterDetails = (output, context) => {
|
|
3261
|
-
return take(output, {
|
|
3262
|
-
ActiveServicesCount: [, __expectInt32, `activeServicesCount`],
|
|
3263
|
-
Arn: [, __expectString, `arn`],
|
|
3264
|
-
Name: [, __expectString, `name`],
|
|
3265
|
-
RegisteredContainerInstancesCount: [, __expectInt32, `registeredContainerInstancesCount`],
|
|
3266
|
-
RunningTasksCount: [, __expectInt32, `runningTasksCount`],
|
|
3267
|
-
Status: [, __expectString, `status`],
|
|
3268
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
3269
|
-
TaskDetails: [, (_) => de_EcsTaskDetails(_, context), `taskDetails`],
|
|
3270
|
-
});
|
|
3271
|
-
};
|
|
3272
|
-
const de_EcsTaskDetails = (output, context) => {
|
|
3273
|
-
return take(output, {
|
|
3274
|
-
Arn: [, __expectString, `arn`],
|
|
3275
|
-
Containers: [, (_) => de_Containers(_, context), `containers`],
|
|
3276
|
-
DefinitionArn: [, __expectString, `definitionArn`],
|
|
3277
|
-
Group: [, __expectString, `group`],
|
|
3278
|
-
LaunchType: [, __expectString, `launchType`],
|
|
3279
|
-
StartedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `startedAt`],
|
|
3280
|
-
StartedBy: [, __expectString, `startedBy`],
|
|
3281
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
3282
|
-
TaskCreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
3283
|
-
Version: [, __expectString, `version`],
|
|
3284
|
-
Volumes: [, (_) => de_Volumes(_, context), `volumes`],
|
|
3285
|
-
});
|
|
3286
|
-
};
|
|
3287
|
-
const de_EksCluster = (output, context) => {
|
|
3288
|
-
return take(output, {
|
|
3289
|
-
Arn: [, __expectString, `arn`],
|
|
3290
|
-
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
3291
|
-
Ec2InstanceUids: [, _json, `ec2InstanceUids`],
|
|
3292
|
-
Status: [, __expectString, `status`],
|
|
3293
|
-
VpcId: [, __expectString, `vpcId`],
|
|
3294
|
-
});
|
|
3295
|
-
};
|
|
3296
|
-
const de_EksClusterDetails = (output, context) => {
|
|
3297
|
-
return take(output, {
|
|
3298
|
-
Arn: [, __expectString, `arn`],
|
|
3299
|
-
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
3300
|
-
Name: [, __expectString, `name`],
|
|
3301
|
-
Status: [, __expectString, `status`],
|
|
3302
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
3303
|
-
VpcId: [, __expectString, `vpcId`],
|
|
3304
|
-
});
|
|
3305
|
-
};
|
|
3306
|
-
const de_Evidence = (output, context) => {
|
|
3307
|
-
return take(output, {
|
|
3308
|
-
ThreatIntelligenceDetails: [, (_) => de_ThreatIntelligenceDetails(_, context), `threatIntelligenceDetails`],
|
|
3309
|
-
});
|
|
3310
|
-
};
|
|
3311
|
-
const de_FargateDetails = (output, context) => {
|
|
3312
|
-
return take(output, {
|
|
3313
|
-
Issues: [, _json, `issues`],
|
|
3314
|
-
ManagementType: [, __expectString, `managementType`],
|
|
3315
|
-
});
|
|
3316
|
-
};
|
|
3317
|
-
const de_FilePaths = (output, context) => {
|
|
3318
|
-
const retVal = (output || [])
|
|
3319
|
-
.filter((e) => e != null)
|
|
3320
|
-
.map((entry) => {
|
|
3321
|
-
return de_ScanFilePath(entry, context);
|
|
3322
|
-
});
|
|
3323
|
-
return retVal;
|
|
3324
|
-
};
|
|
3325
|
-
const de_Finding = (output, context) => {
|
|
3326
|
-
return take(output, {
|
|
3327
|
-
AccountId: [, __expectString, `accountId`],
|
|
3328
|
-
Arn: [, __expectString, `arn`],
|
|
3329
|
-
AssociatedAttackSequenceArn: [, __expectString, `associatedAttackSequenceArn`],
|
|
3330
|
-
Confidence: [, __limitedParseDouble, `confidence`],
|
|
3331
|
-
CreatedAt: [, __expectString, `createdAt`],
|
|
3332
|
-
Description: [, __expectString, `description`],
|
|
3333
|
-
Id: [, __expectString, `id`],
|
|
3334
|
-
Partition: [, __expectString, `partition`],
|
|
3335
|
-
Region: [, __expectString, `region`],
|
|
3336
|
-
Resource: [, (_) => de_Resource(_, context), `resource`],
|
|
3337
|
-
SchemaVersion: [, __expectString, `schemaVersion`],
|
|
3338
|
-
Service: [, (_) => de_Service(_, context), `service`],
|
|
3339
|
-
Severity: [, __limitedParseDouble, `severity`],
|
|
3340
|
-
Title: [, __expectString, `title`],
|
|
3341
|
-
Type: [, __expectString, `type`],
|
|
3342
|
-
UpdatedAt: [, __expectString, `updatedAt`],
|
|
3343
|
-
});
|
|
3344
|
-
};
|
|
3345
|
-
const de_FindingCriteria = (output, context) => {
|
|
3346
|
-
return take(output, {
|
|
3347
|
-
Criterion: [, (_) => de_Criterion(_, context), `criterion`],
|
|
3348
|
-
});
|
|
3349
|
-
};
|
|
3350
|
-
const de_Findings = (output, context) => {
|
|
3351
|
-
const retVal = (output || [])
|
|
3352
|
-
.filter((e) => e != null)
|
|
3353
|
-
.map((entry) => {
|
|
3354
|
-
return de_Finding(entry, context);
|
|
3355
|
-
});
|
|
3356
|
-
return retVal;
|
|
3357
|
-
};
|
|
3358
|
-
const de_FindingStatistics = (output, context) => {
|
|
3359
|
-
return take(output, {
|
|
3360
|
-
CountBySeverity: [, _json, `countBySeverity`],
|
|
3361
|
-
GroupedByAccount: [, (_) => de_GroupedByAccount(_, context), `groupedByAccount`],
|
|
3362
|
-
GroupedByDate: [, (_) => de_GroupedByDate(_, context), `groupedByDate`],
|
|
3363
|
-
GroupedByFindingType: [, (_) => de_GroupedByFindingType(_, context), `groupedByFindingType`],
|
|
3364
|
-
GroupedByResource: [, (_) => de_GroupedByResource(_, context), `groupedByResource`],
|
|
3365
|
-
GroupedBySeverity: [, (_) => de_GroupedBySeverity(_, context), `groupedBySeverity`],
|
|
3366
|
-
});
|
|
3367
|
-
};
|
|
3368
|
-
const de_FindingTypeStatistics = (output, context) => {
|
|
3369
|
-
return take(output, {
|
|
3370
|
-
FindingType: [, __expectString, `findingType`],
|
|
3371
|
-
LastGeneratedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastGeneratedAt`],
|
|
3372
|
-
TotalFindings: [, __expectInt32, `totalFindings`],
|
|
3373
|
-
});
|
|
3374
|
-
};
|
|
3375
|
-
const de_FlowLogsConfigurationResult = (output, context) => {
|
|
3376
|
-
return take(output, {
|
|
3377
|
-
Status: [, __expectString, `status`],
|
|
3378
|
-
});
|
|
3379
|
-
};
|
|
3380
|
-
const de_FreeTrialFeatureConfigurationResult = (output, context) => {
|
|
3381
|
-
return take(output, {
|
|
3382
|
-
FreeTrialDaysRemaining: [, __expectInt32, `freeTrialDaysRemaining`],
|
|
3383
|
-
Name: [, __expectString, `name`],
|
|
3384
|
-
});
|
|
3385
|
-
};
|
|
3386
|
-
const de_FreeTrialFeatureConfigurationsResults = (output, context) => {
|
|
3387
|
-
const retVal = (output || [])
|
|
3388
|
-
.filter((e) => e != null)
|
|
3389
|
-
.map((entry) => {
|
|
3390
|
-
return de_FreeTrialFeatureConfigurationResult(entry, context);
|
|
3391
|
-
});
|
|
3392
|
-
return retVal;
|
|
3393
|
-
};
|
|
3394
|
-
const de_GeoLocation = (output, context) => {
|
|
3395
|
-
return take(output, {
|
|
3396
|
-
Lat: [, __limitedParseDouble, `lat`],
|
|
3397
|
-
Lon: [, __limitedParseDouble, `lon`],
|
|
3398
|
-
});
|
|
3399
|
-
};
|
|
3400
|
-
const de_GroupedByAccount = (output, context) => {
|
|
3401
|
-
const retVal = (output || [])
|
|
3402
|
-
.filter((e) => e != null)
|
|
3403
|
-
.map((entry) => {
|
|
3404
|
-
return de_AccountStatistics(entry, context);
|
|
3405
|
-
});
|
|
3406
|
-
return retVal;
|
|
3407
|
-
};
|
|
3408
|
-
const de_GroupedByDate = (output, context) => {
|
|
3409
|
-
const retVal = (output || [])
|
|
3410
|
-
.filter((e) => e != null)
|
|
3411
|
-
.map((entry) => {
|
|
3412
|
-
return de_DateStatistics(entry, context);
|
|
3413
|
-
});
|
|
3414
|
-
return retVal;
|
|
3415
|
-
};
|
|
3416
|
-
const de_GroupedByFindingType = (output, context) => {
|
|
3417
|
-
const retVal = (output || [])
|
|
3418
|
-
.filter((e) => e != null)
|
|
3419
|
-
.map((entry) => {
|
|
3420
|
-
return de_FindingTypeStatistics(entry, context);
|
|
3421
|
-
});
|
|
3422
|
-
return retVal;
|
|
3423
|
-
};
|
|
3424
|
-
const de_GroupedByResource = (output, context) => {
|
|
3425
|
-
const retVal = (output || [])
|
|
3426
|
-
.filter((e) => e != null)
|
|
3427
|
-
.map((entry) => {
|
|
3428
|
-
return de_ResourceStatistics(entry, context);
|
|
3429
|
-
});
|
|
3430
|
-
return retVal;
|
|
3431
|
-
};
|
|
3432
|
-
const de_GroupedBySeverity = (output, context) => {
|
|
3433
|
-
const retVal = (output || [])
|
|
3434
|
-
.filter((e) => e != null)
|
|
3435
|
-
.map((entry) => {
|
|
3436
|
-
return de_SeverityStatistics(entry, context);
|
|
3437
|
-
});
|
|
3438
|
-
return retVal;
|
|
3439
|
-
};
|
|
3440
|
-
const de_HighestSeverityThreatDetails = (output, context) => {
|
|
3441
|
-
return take(output, {
|
|
3442
|
-
Count: [, __expectInt32, `count`],
|
|
3443
|
-
Severity: [, __expectString, `severity`],
|
|
3444
|
-
ThreatName: [, __expectString, `threatName`],
|
|
3445
|
-
});
|
|
3446
|
-
};
|
|
3447
|
-
const de_HostPath = (output, context) => {
|
|
3448
|
-
return take(output, {
|
|
3449
|
-
Path: [, __expectString, `path`],
|
|
3450
|
-
});
|
|
3451
|
-
};
|
|
3452
|
-
const de_IamInstanceProfile = (output, context) => {
|
|
3453
|
-
return take(output, {
|
|
3454
|
-
Arn: [, __expectString, `arn`],
|
|
3455
|
-
Id: [, __expectString, `id`],
|
|
3456
|
-
});
|
|
3457
|
-
};
|
|
3458
|
-
const de_ImpersonatedUser = (output, context) => {
|
|
3459
|
-
return take(output, {
|
|
3460
|
-
Groups: [, _json, `groups`],
|
|
3461
|
-
Username: [, __expectString, `username`],
|
|
3462
|
-
});
|
|
3463
|
-
};
|
|
3464
|
-
const de_Indicator = (output, context) => {
|
|
3465
|
-
return take(output, {
|
|
3466
|
-
Key: [, __expectString, `key`],
|
|
3467
|
-
Title: [, __expectString, `title`],
|
|
3468
|
-
Values: [, _json, `values`],
|
|
3469
|
-
});
|
|
3470
|
-
};
|
|
3471
|
-
const de_Indicators = (output, context) => {
|
|
3472
|
-
const retVal = (output || [])
|
|
3473
|
-
.filter((e) => e != null)
|
|
3474
|
-
.map((entry) => {
|
|
3475
|
-
return de_Indicator(entry, context);
|
|
3476
|
-
});
|
|
3477
|
-
return retVal;
|
|
3478
|
-
};
|
|
3479
|
-
const de_InstanceDetails = (output, context) => {
|
|
3480
|
-
return take(output, {
|
|
3481
|
-
AvailabilityZone: [, __expectString, `availabilityZone`],
|
|
3482
|
-
IamInstanceProfile: [, (_) => de_IamInstanceProfile(_, context), `iamInstanceProfile`],
|
|
3483
|
-
ImageDescription: [, __expectString, `imageDescription`],
|
|
3484
|
-
ImageId: [, __expectString, `imageId`],
|
|
3485
|
-
InstanceId: [, __expectString, `instanceId`],
|
|
3486
|
-
InstanceState: [, __expectString, `instanceState`],
|
|
3487
|
-
InstanceType: [, __expectString, `instanceType`],
|
|
3488
|
-
LaunchTime: [, __expectString, `launchTime`],
|
|
3489
|
-
NetworkInterfaces: [, (_) => de_NetworkInterfaces(_, context), `networkInterfaces`],
|
|
3490
|
-
OutpostArn: [, __expectString, `outpostArn`],
|
|
3491
|
-
Platform: [, __expectString, `platform`],
|
|
3492
|
-
ProductCodes: [, (_) => de_ProductCodes(_, context), `productCodes`],
|
|
3493
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
3494
|
-
});
|
|
3495
|
-
};
|
|
3496
|
-
const de_Invitation = (output, context) => {
|
|
3497
|
-
return take(output, {
|
|
3498
|
-
AccountId: [, __expectString, `accountId`],
|
|
3499
|
-
InvitationId: [, __expectString, `invitationId`],
|
|
3500
|
-
InvitedAt: [, __expectString, `invitedAt`],
|
|
3501
|
-
RelationshipStatus: [, __expectString, `relationshipStatus`],
|
|
3502
|
-
});
|
|
3503
|
-
};
|
|
3504
|
-
const de_Invitations = (output, context) => {
|
|
3505
|
-
const retVal = (output || [])
|
|
3506
|
-
.filter((e) => e != null)
|
|
3507
|
-
.map((entry) => {
|
|
3508
|
-
return de_Invitation(entry, context);
|
|
3509
|
-
});
|
|
3510
|
-
return retVal;
|
|
3511
|
-
};
|
|
3512
|
-
const de_ItemPath = (output, context) => {
|
|
3513
|
-
return take(output, {
|
|
3514
|
-
Hash: [, __expectString, `hash`],
|
|
3515
|
-
NestedItemPath: [, __expectString, `nestedItemPath`],
|
|
3516
|
-
});
|
|
3517
|
-
};
|
|
3518
|
-
const de_ItemPaths = (output, context) => {
|
|
3519
|
-
const retVal = (output || [])
|
|
3520
|
-
.filter((e) => e != null)
|
|
3521
|
-
.map((entry) => {
|
|
3522
|
-
return de_ItemPath(entry, context);
|
|
3523
|
-
});
|
|
3524
|
-
return retVal;
|
|
3525
|
-
};
|
|
3526
|
-
const de_KubernetesApiCallAction = (output, context) => {
|
|
3527
|
-
return take(output, {
|
|
3528
|
-
Namespace: [, __expectString, `namespace`],
|
|
3529
|
-
Parameters: [, __expectString, `parameters`],
|
|
3530
|
-
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
3531
|
-
RequestUri: [, __expectString, `requestUri`],
|
|
3532
|
-
Resource: [, __expectString, `resource`],
|
|
3533
|
-
ResourceName: [, __expectString, `resourceName`],
|
|
3534
|
-
SourceIps: [, _json, `sourceIPs`],
|
|
3535
|
-
StatusCode: [, __expectInt32, `statusCode`],
|
|
3536
|
-
Subresource: [, __expectString, `subresource`],
|
|
3537
|
-
UserAgent: [, __expectString, `userAgent`],
|
|
3538
|
-
Verb: [, __expectString, `verb`],
|
|
3539
|
-
});
|
|
3540
|
-
};
|
|
3541
|
-
const de_KubernetesAuditLogsConfigurationResult = (output, context) => {
|
|
3542
|
-
return take(output, {
|
|
3543
|
-
Status: [, __expectString, `status`],
|
|
3544
|
-
});
|
|
3545
|
-
};
|
|
3546
|
-
const de_KubernetesConfigurationResult = (output, context) => {
|
|
3547
|
-
return take(output, {
|
|
3548
|
-
AuditLogs: [, (_) => de_KubernetesAuditLogsConfigurationResult(_, context), `auditLogs`],
|
|
3549
|
-
});
|
|
3550
|
-
};
|
|
3551
|
-
const de_KubernetesDataSourceFreeTrial = (output, context) => {
|
|
3552
|
-
return take(output, {
|
|
3553
|
-
AuditLogs: [, (_) => de_DataSourceFreeTrial(_, context), `auditLogs`],
|
|
3554
|
-
});
|
|
3555
|
-
};
|
|
3556
|
-
const de_KubernetesDetails = (output, context) => {
|
|
3557
|
-
return take(output, {
|
|
3558
|
-
KubernetesUserDetails: [, (_) => de_KubernetesUserDetails(_, context), `kubernetesUserDetails`],
|
|
3559
|
-
KubernetesWorkloadDetails: [, (_) => de_KubernetesWorkloadDetails(_, context), `kubernetesWorkloadDetails`],
|
|
3560
|
-
});
|
|
3561
|
-
};
|
|
3562
|
-
const de_KubernetesPermissionCheckedDetails = (output, context) => {
|
|
3563
|
-
return take(output, {
|
|
3564
|
-
Allowed: [, __expectBoolean, `allowed`],
|
|
3565
|
-
Namespace: [, __expectString, `namespace`],
|
|
3566
|
-
Resource: [, __expectString, `resource`],
|
|
3567
|
-
Verb: [, __expectString, `verb`],
|
|
3568
|
-
});
|
|
3569
|
-
};
|
|
3570
|
-
const de_KubernetesRoleBindingDetails = (output, context) => {
|
|
3571
|
-
return take(output, {
|
|
3572
|
-
Kind: [, __expectString, `kind`],
|
|
3573
|
-
Name: [, __expectString, `name`],
|
|
3574
|
-
RoleRefKind: [, __expectString, `roleRefKind`],
|
|
3575
|
-
RoleRefName: [, __expectString, `roleRefName`],
|
|
3576
|
-
Uid: [, __expectString, `uid`],
|
|
3577
|
-
});
|
|
3578
|
-
};
|
|
3579
|
-
const de_KubernetesRoleDetails = (output, context) => {
|
|
3580
|
-
return take(output, {
|
|
3581
|
-
Kind: [, __expectString, `kind`],
|
|
3582
|
-
Name: [, __expectString, `name`],
|
|
3583
|
-
Uid: [, __expectString, `uid`],
|
|
3584
|
-
});
|
|
3585
|
-
};
|
|
3586
|
-
const de_KubernetesUserDetails = (output, context) => {
|
|
3587
|
-
return take(output, {
|
|
3588
|
-
Groups: [, _json, `groups`],
|
|
3589
|
-
ImpersonatedUser: [, (_) => de_ImpersonatedUser(_, context), `impersonatedUser`],
|
|
3590
|
-
SessionName: [, _json, `sessionName`],
|
|
3591
|
-
Uid: [, __expectString, `uid`],
|
|
3592
|
-
Username: [, __expectString, `username`],
|
|
3593
|
-
});
|
|
3594
|
-
};
|
|
3595
|
-
const de_KubernetesWorkload = (output, context) => {
|
|
3596
|
-
return take(output, {
|
|
3597
|
-
ContainerUids: [, _json, `containerUids`],
|
|
3598
|
-
KubernetesResourcesTypes: [, __expectString, `type`],
|
|
3599
|
-
Namespace: [, __expectString, `namespace`],
|
|
3600
|
-
});
|
|
3601
|
-
};
|
|
3602
|
-
const de_KubernetesWorkloadDetails = (output, context) => {
|
|
3603
|
-
return take(output, {
|
|
3604
|
-
Containers: [, (_) => de_Containers(_, context), `containers`],
|
|
3605
|
-
HostIPC: [, __expectBoolean, `hostIPC`],
|
|
3606
|
-
HostNetwork: [, __expectBoolean, `hostNetwork`],
|
|
3607
|
-
HostPID: [, __expectBoolean, `hostPID`],
|
|
3608
|
-
Name: [, __expectString, `name`],
|
|
3609
|
-
Namespace: [, __expectString, `namespace`],
|
|
3610
|
-
ServiceAccountName: [, __expectString, `serviceAccountName`],
|
|
3611
|
-
Type: [, __expectString, `type`],
|
|
3612
|
-
Uid: [, __expectString, `uid`],
|
|
3613
|
-
Volumes: [, (_) => de_Volumes(_, context), `volumes`],
|
|
3614
|
-
});
|
|
3615
|
-
};
|
|
3616
|
-
const de_LambdaDetails = (output, context) => {
|
|
3617
|
-
return take(output, {
|
|
3618
|
-
Description: [, __expectString, `description`],
|
|
3619
|
-
FunctionArn: [, __expectString, `functionArn`],
|
|
3620
|
-
FunctionName: [, __expectString, `functionName`],
|
|
3621
|
-
FunctionVersion: [, __expectString, `functionVersion`],
|
|
3622
|
-
LastModifiedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastModifiedAt`],
|
|
3623
|
-
RevisionId: [, __expectString, `revisionId`],
|
|
3624
|
-
Role: [, __expectString, `role`],
|
|
3625
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
3626
|
-
VpcConfig: [, (_) => de_VpcConfig(_, context), `vpcConfig`],
|
|
3627
|
-
});
|
|
3628
|
-
};
|
|
3629
|
-
const de_Lineage = (output, context) => {
|
|
3630
|
-
const retVal = (output || [])
|
|
3631
|
-
.filter((e) => e != null)
|
|
3632
|
-
.map((entry) => {
|
|
3633
|
-
return de_LineageObject(entry, context);
|
|
3634
|
-
});
|
|
3635
|
-
return retVal;
|
|
3636
|
-
};
|
|
3637
|
-
const de_LineageObject = (output, context) => {
|
|
3638
|
-
return take(output, {
|
|
3639
|
-
Euid: [, __expectInt32, `euid`],
|
|
3640
|
-
ExecutablePath: [, __expectString, `executablePath`],
|
|
3641
|
-
Name: [, __expectString, `name`],
|
|
3642
|
-
NamespacePid: [, __expectInt32, `namespacePid`],
|
|
3643
|
-
ParentUuid: [, __expectString, `parentUuid`],
|
|
3644
|
-
Pid: [, __expectInt32, `pid`],
|
|
3645
|
-
StartTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `startTime`],
|
|
3646
|
-
UserId: [, __expectInt32, `userId`],
|
|
3647
|
-
Uuid: [, __expectString, `uuid`],
|
|
3648
|
-
});
|
|
3649
|
-
};
|
|
3650
|
-
const de_LocalIpDetails = (output, context) => {
|
|
3651
|
-
return take(output, {
|
|
3652
|
-
IpAddressV4: [, __expectString, `ipAddressV4`],
|
|
3653
|
-
IpAddressV6: [, __expectString, `ipAddressV6`],
|
|
3654
|
-
});
|
|
3655
|
-
};
|
|
3656
|
-
const de_LocalPortDetails = (output, context) => {
|
|
3657
|
-
return take(output, {
|
|
3658
|
-
Port: [, __expectInt32, `port`],
|
|
3659
|
-
PortName: [, __expectString, `portName`],
|
|
3660
|
-
});
|
|
3661
|
-
};
|
|
3662
|
-
const de_LoginAttribute = (output, context) => {
|
|
3663
|
-
return take(output, {
|
|
3664
|
-
Application: [, __expectString, `application`],
|
|
3665
|
-
FailedLoginAttempts: [, __expectInt32, `failedLoginAttempts`],
|
|
3666
|
-
SuccessfulLoginAttempts: [, __expectInt32, `successfulLoginAttempts`],
|
|
3667
|
-
User: [, __expectString, `user`],
|
|
3668
|
-
});
|
|
3669
|
-
};
|
|
3670
|
-
const de_LoginAttributes = (output, context) => {
|
|
3671
|
-
const retVal = (output || [])
|
|
3672
|
-
.filter((e) => e != null)
|
|
3673
|
-
.map((entry) => {
|
|
3674
|
-
return de_LoginAttribute(entry, context);
|
|
3675
|
-
});
|
|
3676
|
-
return retVal;
|
|
3677
|
-
};
|
|
3678
|
-
const de_MalwareProtectionConfigurationResult = (output, context) => {
|
|
3679
|
-
return take(output, {
|
|
3680
|
-
ScanEc2InstanceWithFindings: [
|
|
3681
|
-
,
|
|
3682
|
-
(_) => de_ScanEc2InstanceWithFindingsResult(_, context),
|
|
3683
|
-
`scanEc2InstanceWithFindings`,
|
|
3684
|
-
],
|
|
3685
|
-
ServiceRole: [, __expectString, `serviceRole`],
|
|
3686
|
-
});
|
|
3687
|
-
};
|
|
3688
|
-
const de_MalwareProtectionDataSourceFreeTrial = (output, context) => {
|
|
3689
|
-
return take(output, {
|
|
3690
|
-
ScanEc2InstanceWithFindings: [, (_) => de_DataSourceFreeTrial(_, context), `scanEc2InstanceWithFindings`],
|
|
3691
|
-
});
|
|
3692
|
-
};
|
|
3693
|
-
const de_MalwareProtectionPlanActions = (output, context) => {
|
|
3694
|
-
return take(output, {
|
|
3695
|
-
Tagging: [, (_) => de_MalwareProtectionPlanTaggingAction(_, context), `tagging`],
|
|
3696
|
-
});
|
|
3697
|
-
};
|
|
3698
|
-
const de_MalwareProtectionPlansSummary = (output, context) => {
|
|
3699
|
-
const retVal = (output || [])
|
|
3700
|
-
.filter((e) => e != null)
|
|
3701
|
-
.map((entry) => {
|
|
3702
|
-
return de_MalwareProtectionPlanSummary(entry, context);
|
|
3703
|
-
});
|
|
3704
|
-
return retVal;
|
|
3705
|
-
};
|
|
3706
|
-
const de_MalwareProtectionPlanStatusReason = (output, context) => {
|
|
3707
|
-
return take(output, {
|
|
3708
|
-
Code: [, __expectString, `code`],
|
|
3709
|
-
Message: [, __expectString, `message`],
|
|
3710
|
-
});
|
|
3711
|
-
};
|
|
3712
|
-
const de_MalwareProtectionPlanStatusReasonsList = (output, context) => {
|
|
3713
|
-
const retVal = (output || [])
|
|
3714
|
-
.filter((e) => e != null)
|
|
3715
|
-
.map((entry) => {
|
|
3716
|
-
return de_MalwareProtectionPlanStatusReason(entry, context);
|
|
3717
|
-
});
|
|
3718
|
-
return retVal;
|
|
3719
|
-
};
|
|
3720
|
-
const de_MalwareProtectionPlanSummary = (output, context) => {
|
|
3721
|
-
return take(output, {
|
|
3722
|
-
MalwareProtectionPlanId: [, __expectString, `malwareProtectionPlanId`],
|
|
3723
|
-
});
|
|
3724
|
-
};
|
|
3725
|
-
const de_MalwareProtectionPlanTaggingAction = (output, context) => {
|
|
3726
|
-
return take(output, {
|
|
3727
|
-
Status: [, __expectString, `status`],
|
|
3728
|
-
});
|
|
3729
|
-
};
|
|
3730
|
-
const de_MalwareScanDetails = (output, context) => {
|
|
3731
|
-
return take(output, {
|
|
3732
|
-
Threats: [, (_) => de_Threats(_, context), `threats`],
|
|
3733
|
-
});
|
|
3734
|
-
};
|
|
3735
|
-
const de_MapEquals = (output, context) => {
|
|
3736
|
-
const retVal = (output || [])
|
|
3737
|
-
.filter((e) => e != null)
|
|
3738
|
-
.map((entry) => {
|
|
3739
|
-
return de_ScanConditionPair(entry, context);
|
|
3740
|
-
});
|
|
3741
|
-
return retVal;
|
|
3742
|
-
};
|
|
3743
|
-
const de_Master = (output, context) => {
|
|
3744
|
-
return take(output, {
|
|
3745
|
-
AccountId: [, __expectString, `accountId`],
|
|
3746
|
-
InvitationId: [, __expectString, `invitationId`],
|
|
3747
|
-
InvitedAt: [, __expectString, `invitedAt`],
|
|
3748
|
-
RelationshipStatus: [, __expectString, `relationshipStatus`],
|
|
3749
|
-
});
|
|
3750
|
-
};
|
|
3751
|
-
const de_Member = (output, context) => {
|
|
3752
|
-
return take(output, {
|
|
3753
|
-
AccountId: [, __expectString, `accountId`],
|
|
3754
|
-
AdministratorId: [, __expectString, `administratorId`],
|
|
3755
|
-
DetectorId: [, __expectString, `detectorId`],
|
|
3756
|
-
Email: [, __expectString, `email`],
|
|
3757
|
-
InvitedAt: [, __expectString, `invitedAt`],
|
|
3758
|
-
MasterId: [, __expectString, `masterId`],
|
|
3759
|
-
RelationshipStatus: [, __expectString, `relationshipStatus`],
|
|
3760
|
-
UpdatedAt: [, __expectString, `updatedAt`],
|
|
3761
|
-
});
|
|
3762
|
-
};
|
|
3763
|
-
const de_MemberAdditionalConfigurationResult = (output, context) => {
|
|
3764
|
-
return take(output, {
|
|
3765
|
-
Name: [, __expectString, `name`],
|
|
3766
|
-
Status: [, __expectString, `status`],
|
|
3767
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
3768
|
-
});
|
|
3769
|
-
};
|
|
3770
|
-
const de_MemberAdditionalConfigurationResults = (output, context) => {
|
|
3771
|
-
const retVal = (output || [])
|
|
3772
|
-
.filter((e) => e != null)
|
|
3773
|
-
.map((entry) => {
|
|
3774
|
-
return de_MemberAdditionalConfigurationResult(entry, context);
|
|
3775
|
-
});
|
|
3776
|
-
return retVal;
|
|
3777
|
-
};
|
|
3778
|
-
const de_MemberDataSourceConfiguration = (output, context) => {
|
|
3779
|
-
return take(output, {
|
|
3780
|
-
AccountId: [, __expectString, `accountId`],
|
|
3781
|
-
DataSources: [, (_) => de_DataSourceConfigurationsResult(_, context), `dataSources`],
|
|
3782
|
-
Features: [, (_) => de_MemberFeaturesConfigurationsResults(_, context), `features`],
|
|
3783
|
-
});
|
|
3784
|
-
};
|
|
3785
|
-
const de_MemberDataSourceConfigurations = (output, context) => {
|
|
3786
|
-
const retVal = (output || [])
|
|
3787
|
-
.filter((e) => e != null)
|
|
3788
|
-
.map((entry) => {
|
|
3789
|
-
return de_MemberDataSourceConfiguration(entry, context);
|
|
3790
|
-
});
|
|
3791
|
-
return retVal;
|
|
3792
|
-
};
|
|
3793
|
-
const de_MemberFeaturesConfigurationResult = (output, context) => {
|
|
3794
|
-
return take(output, {
|
|
3795
|
-
AdditionalConfiguration: [
|
|
3796
|
-
,
|
|
3797
|
-
(_) => de_MemberAdditionalConfigurationResults(_, context),
|
|
3798
|
-
`additionalConfiguration`,
|
|
3799
|
-
],
|
|
3800
|
-
Name: [, __expectString, `name`],
|
|
3801
|
-
Status: [, __expectString, `status`],
|
|
3802
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
3803
|
-
});
|
|
3804
|
-
};
|
|
3805
|
-
const de_MemberFeaturesConfigurationsResults = (output, context) => {
|
|
3806
|
-
const retVal = (output || [])
|
|
3807
|
-
.filter((e) => e != null)
|
|
3808
|
-
.map((entry) => {
|
|
3809
|
-
return de_MemberFeaturesConfigurationResult(entry, context);
|
|
3810
|
-
});
|
|
3811
|
-
return retVal;
|
|
3812
|
-
};
|
|
3813
|
-
const de_Members = (output, context) => {
|
|
3814
|
-
const retVal = (output || [])
|
|
3815
|
-
.filter((e) => e != null)
|
|
3816
|
-
.map((entry) => {
|
|
3817
|
-
return de_Member(entry, context);
|
|
3818
|
-
});
|
|
3819
|
-
return retVal;
|
|
3820
|
-
};
|
|
3821
|
-
const de_NetworkConnection = (output, context) => {
|
|
3822
|
-
return take(output, {
|
|
3823
|
-
Direction: [, __expectString, `direction`],
|
|
3824
|
-
});
|
|
3825
|
-
};
|
|
3826
|
-
const de_NetworkConnectionAction = (output, context) => {
|
|
3827
|
-
return take(output, {
|
|
3828
|
-
Blocked: [, __expectBoolean, `blocked`],
|
|
3829
|
-
ConnectionDirection: [, __expectString, `connectionDirection`],
|
|
3830
|
-
LocalIpDetails: [, (_) => de_LocalIpDetails(_, context), `localIpDetails`],
|
|
3831
|
-
LocalNetworkInterface: [, __expectString, `localNetworkInterface`],
|
|
3832
|
-
LocalPortDetails: [, (_) => de_LocalPortDetails(_, context), `localPortDetails`],
|
|
3833
|
-
Protocol: [, __expectString, `protocol`],
|
|
3834
|
-
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
3835
|
-
RemotePortDetails: [, (_) => de_RemotePortDetails(_, context), `remotePortDetails`],
|
|
3836
|
-
});
|
|
3837
|
-
};
|
|
3838
|
-
const de_NetworkEndpoint = (output, context) => {
|
|
3839
|
-
return take(output, {
|
|
3840
|
-
AutonomousSystem: [, (_) => de_AutonomousSystem(_, context), `autonomousSystem`],
|
|
3841
|
-
Connection: [, (_) => de_NetworkConnection(_, context), `connection`],
|
|
3842
|
-
Domain: [, __expectString, `domain`],
|
|
3843
|
-
Id: [, __expectString, `id`],
|
|
3844
|
-
Ip: [, __expectString, `ip`],
|
|
3845
|
-
Location: [, (_) => de_NetworkGeoLocation(_, context), `location`],
|
|
3846
|
-
Port: [, __expectInt32, `port`],
|
|
3847
|
-
});
|
|
3848
|
-
};
|
|
3849
|
-
const de_NetworkEndpoints = (output, context) => {
|
|
3850
|
-
const retVal = (output || [])
|
|
3851
|
-
.filter((e) => e != null)
|
|
3852
|
-
.map((entry) => {
|
|
3853
|
-
return de_NetworkEndpoint(entry, context);
|
|
3854
|
-
});
|
|
3855
|
-
return retVal;
|
|
3856
|
-
};
|
|
3857
|
-
const de_NetworkGeoLocation = (output, context) => {
|
|
3858
|
-
return take(output, {
|
|
3859
|
-
City: [, __expectString, `city`],
|
|
3860
|
-
Country: [, __expectString, `country`],
|
|
3861
|
-
Latitude: [, __limitedParseDouble, `lat`],
|
|
3862
|
-
Longitude: [, __limitedParseDouble, `lon`],
|
|
3863
|
-
});
|
|
3864
|
-
};
|
|
3865
|
-
const de_NetworkInterface = (output, context) => {
|
|
3866
|
-
return take(output, {
|
|
3867
|
-
Ipv6Addresses: [, _json, `ipv6Addresses`],
|
|
3868
|
-
NetworkInterfaceId: [, __expectString, `networkInterfaceId`],
|
|
3869
|
-
PrivateDnsName: [, __expectString, `privateDnsName`],
|
|
3870
|
-
PrivateIpAddress: [, __expectString, `privateIpAddress`],
|
|
3871
|
-
PrivateIpAddresses: [, (_) => de_PrivateIpAddresses(_, context), `privateIpAddresses`],
|
|
3872
|
-
PublicDnsName: [, __expectString, `publicDnsName`],
|
|
3873
|
-
PublicIp: [, __expectString, `publicIp`],
|
|
3874
|
-
SecurityGroups: [, (_) => de_SecurityGroups(_, context), `securityGroups`],
|
|
3875
|
-
SubnetId: [, __expectString, `subnetId`],
|
|
3876
|
-
VpcId: [, __expectString, `vpcId`],
|
|
3877
|
-
});
|
|
3878
|
-
};
|
|
3879
|
-
const de_NetworkInterfaces = (output, context) => {
|
|
3880
|
-
const retVal = (output || [])
|
|
3881
|
-
.filter((e) => e != null)
|
|
3882
|
-
.map((entry) => {
|
|
3883
|
-
return de_NetworkInterface(entry, context);
|
|
3884
|
-
});
|
|
3885
|
-
return retVal;
|
|
3886
|
-
};
|
|
3887
|
-
const de_Observations = (output, context) => {
|
|
3888
|
-
return take(output, {
|
|
3889
|
-
Text: [, _json, `text`],
|
|
3890
|
-
});
|
|
3891
|
-
};
|
|
3892
|
-
const de_Organization = (output, context) => {
|
|
3893
|
-
return take(output, {
|
|
3894
|
-
Asn: [, __expectString, `asn`],
|
|
3895
|
-
AsnOrg: [, __expectString, `asnOrg`],
|
|
3896
|
-
Isp: [, __expectString, `isp`],
|
|
3897
|
-
Org: [, __expectString, `org`],
|
|
3898
|
-
});
|
|
3899
|
-
};
|
|
3900
|
-
const de_OrganizationAdditionalConfigurationResult = (output, context) => {
|
|
3901
|
-
return take(output, {
|
|
3902
|
-
AutoEnable: [, __expectString, `autoEnable`],
|
|
3903
|
-
Name: [, __expectString, `name`],
|
|
3904
|
-
});
|
|
3905
|
-
};
|
|
3906
|
-
const de_OrganizationAdditionalConfigurationResults = (output, context) => {
|
|
3907
|
-
const retVal = (output || [])
|
|
3908
|
-
.filter((e) => e != null)
|
|
3909
|
-
.map((entry) => {
|
|
3910
|
-
return de_OrganizationAdditionalConfigurationResult(entry, context);
|
|
3911
|
-
});
|
|
3912
|
-
return retVal;
|
|
3913
|
-
};
|
|
3914
|
-
const de_OrganizationDataSourceConfigurationsResult = (output, context) => {
|
|
3915
|
-
return take(output, {
|
|
3916
|
-
Kubernetes: [, (_) => de_OrganizationKubernetesConfigurationResult(_, context), `kubernetes`],
|
|
3917
|
-
MalwareProtection: [
|
|
3918
|
-
,
|
|
3919
|
-
(_) => de_OrganizationMalwareProtectionConfigurationResult(_, context),
|
|
3920
|
-
`malwareProtection`,
|
|
3921
|
-
],
|
|
3922
|
-
S3Logs: [, (_) => de_OrganizationS3LogsConfigurationResult(_, context), `s3Logs`],
|
|
3923
|
-
});
|
|
3924
|
-
};
|
|
3925
|
-
const de_OrganizationDetails = (output, context) => {
|
|
3926
|
-
return take(output, {
|
|
3927
|
-
OrganizationStatistics: [, (_) => de_OrganizationStatistics(_, context), `organizationStatistics`],
|
|
3928
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
3929
|
-
});
|
|
3930
|
-
};
|
|
3931
|
-
const de_OrganizationEbsVolumesResult = (output, context) => {
|
|
3932
|
-
return take(output, {
|
|
3933
|
-
AutoEnable: [, __expectBoolean, `autoEnable`],
|
|
3934
|
-
});
|
|
3935
|
-
};
|
|
3936
|
-
const de_OrganizationFeatureConfigurationResult = (output, context) => {
|
|
3937
|
-
return take(output, {
|
|
3938
|
-
AdditionalConfiguration: [
|
|
3939
|
-
,
|
|
3940
|
-
(_) => de_OrganizationAdditionalConfigurationResults(_, context),
|
|
3941
|
-
`additionalConfiguration`,
|
|
3942
|
-
],
|
|
3943
|
-
AutoEnable: [, __expectString, `autoEnable`],
|
|
3944
|
-
Name: [, __expectString, `name`],
|
|
3945
|
-
});
|
|
3946
|
-
};
|
|
3947
|
-
const de_OrganizationFeaturesConfigurationsResults = (output, context) => {
|
|
3948
|
-
const retVal = (output || [])
|
|
3949
|
-
.filter((e) => e != null)
|
|
3950
|
-
.map((entry) => {
|
|
3951
|
-
return de_OrganizationFeatureConfigurationResult(entry, context);
|
|
3952
|
-
});
|
|
3953
|
-
return retVal;
|
|
3954
|
-
};
|
|
3955
|
-
const de_OrganizationFeatureStatistics = (output, context) => {
|
|
3956
|
-
return take(output, {
|
|
3957
|
-
AdditionalConfiguration: [
|
|
3958
|
-
,
|
|
3959
|
-
(_) => de_OrganizationFeatureStatisticsAdditionalConfigurations(_, context),
|
|
3960
|
-
`additionalConfiguration`,
|
|
3961
|
-
],
|
|
3962
|
-
EnabledAccountsCount: [, __expectInt32, `enabledAccountsCount`],
|
|
3963
|
-
Name: [, __expectString, `name`],
|
|
3964
|
-
});
|
|
3965
|
-
};
|
|
3966
|
-
const de_OrganizationFeatureStatisticsAdditionalConfiguration = (output, context) => {
|
|
3967
|
-
return take(output, {
|
|
3968
|
-
EnabledAccountsCount: [, __expectInt32, `enabledAccountsCount`],
|
|
3969
|
-
Name: [, __expectString, `name`],
|
|
3970
|
-
});
|
|
3971
|
-
};
|
|
3972
|
-
const de_OrganizationFeatureStatisticsAdditionalConfigurations = (output, context) => {
|
|
3973
|
-
const retVal = (output || [])
|
|
3974
|
-
.filter((e) => e != null)
|
|
3975
|
-
.map((entry) => {
|
|
3976
|
-
return de_OrganizationFeatureStatisticsAdditionalConfiguration(entry, context);
|
|
3977
|
-
});
|
|
3978
|
-
return retVal;
|
|
3979
|
-
};
|
|
3980
|
-
const de_OrganizationFeatureStatisticsResults = (output, context) => {
|
|
3981
|
-
const retVal = (output || [])
|
|
3982
|
-
.filter((e) => e != null)
|
|
3983
|
-
.map((entry) => {
|
|
3984
|
-
return de_OrganizationFeatureStatistics(entry, context);
|
|
3985
|
-
});
|
|
3986
|
-
return retVal;
|
|
3987
|
-
};
|
|
3988
|
-
const de_OrganizationKubernetesAuditLogsConfigurationResult = (output, context) => {
|
|
3989
|
-
return take(output, {
|
|
3990
|
-
AutoEnable: [, __expectBoolean, `autoEnable`],
|
|
3991
|
-
});
|
|
3992
|
-
};
|
|
3993
|
-
const de_OrganizationKubernetesConfigurationResult = (output, context) => {
|
|
3994
|
-
return take(output, {
|
|
3995
|
-
AuditLogs: [, (_) => de_OrganizationKubernetesAuditLogsConfigurationResult(_, context), `auditLogs`],
|
|
3996
|
-
});
|
|
3997
|
-
};
|
|
3998
|
-
const de_OrganizationMalwareProtectionConfigurationResult = (output, context) => {
|
|
3999
|
-
return take(output, {
|
|
4000
|
-
ScanEc2InstanceWithFindings: [
|
|
4001
|
-
,
|
|
4002
|
-
(_) => de_OrganizationScanEc2InstanceWithFindingsResult(_, context),
|
|
4003
|
-
`scanEc2InstanceWithFindings`,
|
|
4004
|
-
],
|
|
4005
|
-
});
|
|
4006
|
-
};
|
|
4007
|
-
const de_OrganizationS3LogsConfigurationResult = (output, context) => {
|
|
4008
|
-
return take(output, {
|
|
4009
|
-
AutoEnable: [, __expectBoolean, `autoEnable`],
|
|
4010
|
-
});
|
|
4011
|
-
};
|
|
4012
|
-
const de_OrganizationScanEc2InstanceWithFindingsResult = (output, context) => {
|
|
4013
|
-
return take(output, {
|
|
4014
|
-
EbsVolumes: [, (_) => de_OrganizationEbsVolumesResult(_, context), `ebsVolumes`],
|
|
4015
|
-
});
|
|
4016
|
-
};
|
|
4017
|
-
const de_OrganizationStatistics = (output, context) => {
|
|
4018
|
-
return take(output, {
|
|
4019
|
-
ActiveAccountsCount: [, __expectInt32, `activeAccountsCount`],
|
|
4020
|
-
CountByFeature: [, (_) => de_OrganizationFeatureStatisticsResults(_, context), `countByFeature`],
|
|
4021
|
-
EnabledAccountsCount: [, __expectInt32, `enabledAccountsCount`],
|
|
4022
|
-
MemberAccountsCount: [, __expectInt32, `memberAccountsCount`],
|
|
4023
|
-
TotalAccountsCount: [, __expectInt32, `totalAccountsCount`],
|
|
4024
|
-
});
|
|
4025
|
-
};
|
|
4026
|
-
const de_Owner = (output, context) => {
|
|
4027
|
-
return take(output, {
|
|
4028
|
-
Id: [, __expectString, `id`],
|
|
4029
|
-
});
|
|
4030
|
-
};
|
|
4031
|
-
const de_PermissionConfiguration = (output, context) => {
|
|
4032
|
-
return take(output, {
|
|
4033
|
-
AccountLevelPermissions: [, (_) => de_AccountLevelPermissions(_, context), `accountLevelPermissions`],
|
|
4034
|
-
BucketLevelPermissions: [, (_) => de_BucketLevelPermissions(_, context), `bucketLevelPermissions`],
|
|
4035
|
-
});
|
|
4036
|
-
};
|
|
4037
|
-
const de_PortProbeAction = (output, context) => {
|
|
4038
|
-
return take(output, {
|
|
4039
|
-
Blocked: [, __expectBoolean, `blocked`],
|
|
4040
|
-
PortProbeDetails: [, (_) => de_PortProbeDetails(_, context), `portProbeDetails`],
|
|
4041
|
-
});
|
|
4042
|
-
};
|
|
4043
|
-
const de_PortProbeDetail = (output, context) => {
|
|
4044
|
-
return take(output, {
|
|
4045
|
-
LocalIpDetails: [, (_) => de_LocalIpDetails(_, context), `localIpDetails`],
|
|
4046
|
-
LocalPortDetails: [, (_) => de_LocalPortDetails(_, context), `localPortDetails`],
|
|
4047
|
-
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
4048
|
-
});
|
|
4049
|
-
};
|
|
4050
|
-
const de_PortProbeDetails = (output, context) => {
|
|
4051
|
-
const retVal = (output || [])
|
|
4052
|
-
.filter((e) => e != null)
|
|
4053
|
-
.map((entry) => {
|
|
4054
|
-
return de_PortProbeDetail(entry, context);
|
|
4055
|
-
});
|
|
4056
|
-
return retVal;
|
|
4057
|
-
};
|
|
4058
|
-
const de_PrivateIpAddressDetails = (output, context) => {
|
|
4059
|
-
return take(output, {
|
|
4060
|
-
PrivateDnsName: [, __expectString, `privateDnsName`],
|
|
4061
|
-
PrivateIpAddress: [, __expectString, `privateIpAddress`],
|
|
4062
|
-
});
|
|
4063
|
-
};
|
|
4064
|
-
const de_PrivateIpAddresses = (output, context) => {
|
|
4065
|
-
const retVal = (output || [])
|
|
4066
|
-
.filter((e) => e != null)
|
|
4067
|
-
.map((entry) => {
|
|
4068
|
-
return de_PrivateIpAddressDetails(entry, context);
|
|
4069
|
-
});
|
|
4070
|
-
return retVal;
|
|
4071
|
-
};
|
|
4072
|
-
const de_ProcessDetails = (output, context) => {
|
|
4073
|
-
return take(output, {
|
|
4074
|
-
Euid: [, __expectInt32, `euid`],
|
|
4075
|
-
ExecutablePath: [, __expectString, `executablePath`],
|
|
4076
|
-
ExecutableSha256: [, __expectString, `executableSha256`],
|
|
4077
|
-
Lineage: [, (_) => de_Lineage(_, context), `lineage`],
|
|
4078
|
-
Name: [, __expectString, `name`],
|
|
4079
|
-
NamespacePid: [, __expectInt32, `namespacePid`],
|
|
4080
|
-
ParentUuid: [, __expectString, `parentUuid`],
|
|
4081
|
-
Pid: [, __expectInt32, `pid`],
|
|
4082
|
-
Pwd: [, __expectString, `pwd`],
|
|
4083
|
-
StartTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `startTime`],
|
|
4084
|
-
User: [, __expectString, `user`],
|
|
4085
|
-
UserId: [, __expectInt32, `userId`],
|
|
4086
|
-
Uuid: [, __expectString, `uuid`],
|
|
4087
|
-
});
|
|
4088
|
-
};
|
|
4089
|
-
const de_ProductCode = (output, context) => {
|
|
4090
|
-
return take(output, {
|
|
4091
|
-
Code: [, __expectString, `productCodeId`],
|
|
4092
|
-
ProductType: [, __expectString, `productCodeType`],
|
|
4093
|
-
});
|
|
4094
|
-
};
|
|
4095
|
-
const de_ProductCodes = (output, context) => {
|
|
4096
|
-
const retVal = (output || [])
|
|
4097
|
-
.filter((e) => e != null)
|
|
4098
|
-
.map((entry) => {
|
|
4099
|
-
return de_ProductCode(entry, context);
|
|
4100
|
-
});
|
|
4101
|
-
return retVal;
|
|
4102
|
-
};
|
|
4103
|
-
const de_PublicAccess = (output, context) => {
|
|
4104
|
-
return take(output, {
|
|
4105
|
-
EffectivePermission: [, __expectString, `effectivePermission`],
|
|
4106
|
-
PermissionConfiguration: [, (_) => de_PermissionConfiguration(_, context), `permissionConfiguration`],
|
|
4107
|
-
});
|
|
4108
|
-
};
|
|
4109
|
-
const de_PublicAccessConfiguration = (output, context) => {
|
|
4110
|
-
return take(output, {
|
|
4111
|
-
PublicAclAccess: [, __expectString, `publicAclAccess`],
|
|
4112
|
-
PublicAclIgnoreBehavior: [, __expectString, `publicAclIgnoreBehavior`],
|
|
4113
|
-
PublicBucketRestrictBehavior: [, __expectString, `publicBucketRestrictBehavior`],
|
|
4114
|
-
PublicPolicyAccess: [, __expectString, `publicPolicyAccess`],
|
|
4115
|
-
});
|
|
4116
|
-
};
|
|
4117
|
-
const de_RdsDbInstanceDetails = (output, context) => {
|
|
4118
|
-
return take(output, {
|
|
4119
|
-
DbClusterIdentifier: [, __expectString, `dbClusterIdentifier`],
|
|
4120
|
-
DbInstanceArn: [, __expectString, `dbInstanceArn`],
|
|
4121
|
-
DbInstanceIdentifier: [, __expectString, `dbInstanceIdentifier`],
|
|
4122
|
-
Engine: [, __expectString, `engine`],
|
|
4123
|
-
EngineVersion: [, __expectString, `engineVersion`],
|
|
4124
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4125
|
-
});
|
|
4126
|
-
};
|
|
4127
|
-
const de_RdsDbUserDetails = (output, context) => {
|
|
4128
|
-
return take(output, {
|
|
4129
|
-
Application: [, __expectString, `application`],
|
|
4130
|
-
AuthMethod: [, __expectString, `authMethod`],
|
|
4131
|
-
Database: [, __expectString, `database`],
|
|
4132
|
-
Ssl: [, __expectString, `ssl`],
|
|
4133
|
-
User: [, __expectString, `user`],
|
|
4134
|
-
});
|
|
4135
|
-
};
|
|
4136
|
-
const de_RdsLimitlessDbDetails = (output, context) => {
|
|
4137
|
-
return take(output, {
|
|
4138
|
-
DbClusterIdentifier: [, __expectString, `dbClusterIdentifier`],
|
|
4139
|
-
DbShardGroupArn: [, __expectString, `dbShardGroupArn`],
|
|
4140
|
-
DbShardGroupIdentifier: [, __expectString, `dbShardGroupIdentifier`],
|
|
4141
|
-
DbShardGroupResourceId: [, __expectString, `dbShardGroupResourceId`],
|
|
4142
|
-
Engine: [, __expectString, `engine`],
|
|
4143
|
-
EngineVersion: [, __expectString, `engineVersion`],
|
|
4144
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4145
|
-
});
|
|
4146
|
-
};
|
|
4147
|
-
const de_RdsLoginAttemptAction = (output, context) => {
|
|
4148
|
-
return take(output, {
|
|
4149
|
-
LoginAttributes: (_) => de_LoginAttributes(_, context),
|
|
4150
|
-
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
4151
|
-
});
|
|
4152
|
-
};
|
|
4153
|
-
const de_RemoteAccountDetails = (output, context) => {
|
|
4154
|
-
return take(output, {
|
|
4155
|
-
AccountId: [, __expectString, `accountId`],
|
|
4156
|
-
Affiliated: [, __expectBoolean, `affiliated`],
|
|
4157
|
-
});
|
|
4158
|
-
};
|
|
4159
|
-
const de_RemoteIpDetails = (output, context) => {
|
|
4160
|
-
return take(output, {
|
|
4161
|
-
City: [, (_) => de_City(_, context), `city`],
|
|
4162
|
-
Country: [, (_) => de_Country(_, context), `country`],
|
|
4163
|
-
GeoLocation: [, (_) => de_GeoLocation(_, context), `geoLocation`],
|
|
4164
|
-
IpAddressV4: [, __expectString, `ipAddressV4`],
|
|
4165
|
-
IpAddressV6: [, __expectString, `ipAddressV6`],
|
|
4166
|
-
Organization: [, (_) => de_Organization(_, context), `organization`],
|
|
4167
|
-
});
|
|
4168
|
-
};
|
|
4169
|
-
const de_RemotePortDetails = (output, context) => {
|
|
4170
|
-
return take(output, {
|
|
4171
|
-
Port: [, __expectInt32, `port`],
|
|
4172
|
-
PortName: [, __expectString, `portName`],
|
|
4173
|
-
});
|
|
4174
|
-
};
|
|
4175
|
-
const de_Resource = (output, context) => {
|
|
4176
|
-
return take(output, {
|
|
4177
|
-
AccessKeyDetails: [, (_) => de_AccessKeyDetails(_, context), `accessKeyDetails`],
|
|
4178
|
-
ContainerDetails: [, (_) => de_Container(_, context), `containerDetails`],
|
|
4179
|
-
EbsVolumeDetails: [, (_) => de_EbsVolumeDetails(_, context), `ebsVolumeDetails`],
|
|
4180
|
-
EcsClusterDetails: [, (_) => de_EcsClusterDetails(_, context), `ecsClusterDetails`],
|
|
4181
|
-
EksClusterDetails: [, (_) => de_EksClusterDetails(_, context), `eksClusterDetails`],
|
|
4182
|
-
InstanceDetails: [, (_) => de_InstanceDetails(_, context), `instanceDetails`],
|
|
4183
|
-
KubernetesDetails: [, (_) => de_KubernetesDetails(_, context), `kubernetesDetails`],
|
|
4184
|
-
LambdaDetails: [, (_) => de_LambdaDetails(_, context), `lambdaDetails`],
|
|
4185
|
-
RdsDbInstanceDetails: [, (_) => de_RdsDbInstanceDetails(_, context), `rdsDbInstanceDetails`],
|
|
4186
|
-
RdsDbUserDetails: [, (_) => de_RdsDbUserDetails(_, context), `rdsDbUserDetails`],
|
|
4187
|
-
RdsLimitlessDbDetails: [, (_) => de_RdsLimitlessDbDetails(_, context), `rdsLimitlessDbDetails`],
|
|
4188
|
-
ResourceType: [, __expectString, `resourceType`],
|
|
4189
|
-
S3BucketDetails: [, (_) => de_S3BucketDetails(_, context), `s3BucketDetails`],
|
|
4190
|
-
});
|
|
4191
|
-
};
|
|
4192
|
-
const de_ResourceData = (output, context) => {
|
|
4193
|
-
return take(output, {
|
|
4194
|
-
AccessKey: [, (_) => de_AccessKey(_, context), `accessKey`],
|
|
4195
|
-
Container: [, (_) => de_ContainerFindingResource(_, context), `container`],
|
|
4196
|
-
Ec2Instance: [, (_) => de_Ec2Instance(_, context), `ec2Instance`],
|
|
4197
|
-
Ec2NetworkInterface: [, (_) => de_Ec2NetworkInterface(_, context), `ec2NetworkInterface`],
|
|
4198
|
-
EksCluster: [, (_) => de_EksCluster(_, context), `eksCluster`],
|
|
4199
|
-
KubernetesWorkload: [, (_) => de_KubernetesWorkload(_, context), `kubernetesWorkload`],
|
|
4200
|
-
S3Bucket: [, (_) => de_S3Bucket(_, context), `s3Bucket`],
|
|
4201
|
-
S3Object: [, (_) => de_S3Object(_, context), `s3Object`],
|
|
4202
|
-
});
|
|
4203
|
-
};
|
|
4204
|
-
const de_ResourceDetails = (output, context) => {
|
|
4205
|
-
return take(output, {
|
|
4206
|
-
InstanceArn: [, __expectString, `instanceArn`],
|
|
4207
|
-
});
|
|
4208
|
-
};
|
|
4209
|
-
const de_Resources = (output, context) => {
|
|
4210
|
-
const retVal = (output || [])
|
|
4211
|
-
.filter((e) => e != null)
|
|
4212
|
-
.map((entry) => {
|
|
4213
|
-
return de_ResourceV2(entry, context);
|
|
4214
|
-
});
|
|
4215
|
-
return retVal;
|
|
4216
|
-
};
|
|
4217
|
-
const de_ResourceStatistics = (output, context) => {
|
|
4218
|
-
return take(output, {
|
|
4219
|
-
AccountId: [, __expectString, `accountId`],
|
|
4220
|
-
LastGeneratedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastGeneratedAt`],
|
|
4221
|
-
ResourceId: [, __expectString, `resourceId`],
|
|
4222
|
-
ResourceType: [, __expectString, `resourceType`],
|
|
4223
|
-
TotalFindings: [, __expectInt32, `totalFindings`],
|
|
4224
|
-
});
|
|
4225
|
-
};
|
|
4226
|
-
const de_ResourceV2 = (output, context) => {
|
|
4227
|
-
return take(output, {
|
|
4228
|
-
AccountId: [, __expectString, `accountId`],
|
|
4229
|
-
CloudPartition: [, __expectString, `cloudPartition`],
|
|
4230
|
-
Data: [, (_) => de_ResourceData(_, context), `data`],
|
|
4231
|
-
Name: [, __expectString, `name`],
|
|
4232
|
-
Region: [, __expectString, `region`],
|
|
4233
|
-
ResourceType: [, __expectString, `resourceType`],
|
|
4234
|
-
Service: [, __expectString, `service`],
|
|
4235
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4236
|
-
Uid: [, __expectString, `uid`],
|
|
4237
|
-
});
|
|
4238
|
-
};
|
|
4239
|
-
const de_RuntimeContext = (output, context) => {
|
|
4240
|
-
return take(output, {
|
|
4241
|
-
AddressFamily: [, __expectString, `addressFamily`],
|
|
4242
|
-
CommandLineExample: [, __expectString, `commandLineExample`],
|
|
4243
|
-
FileSystemType: [, __expectString, `fileSystemType`],
|
|
4244
|
-
Flags: [, _json, `flags`],
|
|
4245
|
-
IanaProtocolNumber: [, __expectInt32, `ianaProtocolNumber`],
|
|
4246
|
-
LdPreloadValue: [, __expectString, `ldPreloadValue`],
|
|
4247
|
-
LibraryPath: [, __expectString, `libraryPath`],
|
|
4248
|
-
MemoryRegions: [, _json, `memoryRegions`],
|
|
4249
|
-
ModifiedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `modifiedAt`],
|
|
4250
|
-
ModifyingProcess: [, (_) => de_ProcessDetails(_, context), `modifyingProcess`],
|
|
4251
|
-
ModuleFilePath: [, __expectString, `moduleFilePath`],
|
|
4252
|
-
ModuleName: [, __expectString, `moduleName`],
|
|
4253
|
-
ModuleSha256: [, __expectString, `moduleSha256`],
|
|
4254
|
-
MountSource: [, __expectString, `mountSource`],
|
|
4255
|
-
MountTarget: [, __expectString, `mountTarget`],
|
|
4256
|
-
ReleaseAgentPath: [, __expectString, `releaseAgentPath`],
|
|
4257
|
-
RuncBinaryPath: [, __expectString, `runcBinaryPath`],
|
|
4258
|
-
ScriptPath: [, __expectString, `scriptPath`],
|
|
4259
|
-
ServiceName: [, __expectString, `serviceName`],
|
|
4260
|
-
ShellHistoryFilePath: [, __expectString, `shellHistoryFilePath`],
|
|
4261
|
-
SocketPath: [, __expectString, `socketPath`],
|
|
4262
|
-
TargetProcess: [, (_) => de_ProcessDetails(_, context), `targetProcess`],
|
|
4263
|
-
ThreatFilePath: [, __expectString, `threatFilePath`],
|
|
4264
|
-
ToolCategory: [, __expectString, `toolCategory`],
|
|
4265
|
-
ToolName: [, __expectString, `toolName`],
|
|
4266
|
-
});
|
|
4267
|
-
};
|
|
4268
|
-
const de_RuntimeDetails = (output, context) => {
|
|
4269
|
-
return take(output, {
|
|
4270
|
-
Context: [, (_) => de_RuntimeContext(_, context), `context`],
|
|
4271
|
-
Process: [, (_) => de_ProcessDetails(_, context), `process`],
|
|
4272
|
-
});
|
|
4273
|
-
};
|
|
4274
|
-
const de_S3Bucket = (output, context) => {
|
|
4275
|
-
return take(output, {
|
|
4276
|
-
AccountPublicAccess: [, (_) => de_PublicAccessConfiguration(_, context), `accountPublicAccess`],
|
|
4277
|
-
BucketPublicAccess: [, (_) => de_PublicAccessConfiguration(_, context), `bucketPublicAccess`],
|
|
4278
|
-
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
4279
|
-
EffectivePermission: [, __expectString, `effectivePermission`],
|
|
4280
|
-
EncryptionKeyArn: [, __expectString, `encryptionKeyArn`],
|
|
4281
|
-
EncryptionType: [, __expectString, `encryptionType`],
|
|
4282
|
-
OwnerId: [, __expectString, `ownerId`],
|
|
4283
|
-
PublicReadAccess: [, __expectString, `publicReadAccess`],
|
|
4284
|
-
PublicWriteAccess: [, __expectString, `publicWriteAccess`],
|
|
4285
|
-
S3ObjectUids: [, _json, `s3ObjectUids`],
|
|
4286
|
-
});
|
|
4287
|
-
};
|
|
4288
|
-
const de_S3BucketDetail = (output, context) => {
|
|
4289
|
-
return take(output, {
|
|
4290
|
-
Arn: [, __expectString, `arn`],
|
|
4291
|
-
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
4292
|
-
DefaultServerSideEncryption: [
|
|
4293
|
-
,
|
|
4294
|
-
(_) => de_DefaultServerSideEncryption(_, context),
|
|
4295
|
-
`defaultServerSideEncryption`,
|
|
4296
|
-
],
|
|
4297
|
-
Name: [, __expectString, `name`],
|
|
4298
|
-
Owner: [, (_) => de_Owner(_, context), `owner`],
|
|
4299
|
-
PublicAccess: [, (_) => de_PublicAccess(_, context), `publicAccess`],
|
|
4300
|
-
S3ObjectDetails: [, (_) => de_S3ObjectDetails(_, context), `s3ObjectDetails`],
|
|
4301
|
-
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4302
|
-
Type: [, __expectString, `type`],
|
|
4303
|
-
});
|
|
4304
|
-
};
|
|
4305
|
-
const de_S3BucketDetails = (output, context) => {
|
|
4306
|
-
const retVal = (output || [])
|
|
4307
|
-
.filter((e) => e != null)
|
|
4308
|
-
.map((entry) => {
|
|
4309
|
-
return de_S3BucketDetail(entry, context);
|
|
4310
|
-
});
|
|
4311
|
-
return retVal;
|
|
4312
|
-
};
|
|
4313
|
-
const de_S3LogsConfigurationResult = (output, context) => {
|
|
4314
|
-
return take(output, {
|
|
4315
|
-
Status: [, __expectString, `status`],
|
|
4316
|
-
});
|
|
4317
|
-
};
|
|
4318
|
-
const de_S3Object = (output, context) => {
|
|
4319
|
-
return take(output, {
|
|
4320
|
-
ETag: [, __expectString, `eTag`],
|
|
4321
|
-
Key: [, __expectString, `key`],
|
|
4322
|
-
VersionId: [, __expectString, `versionId`],
|
|
4323
|
-
});
|
|
4324
|
-
};
|
|
4325
|
-
const de_S3ObjectDetail = (output, context) => {
|
|
4326
|
-
return take(output, {
|
|
4327
|
-
ETag: [, __expectString, `eTag`],
|
|
4328
|
-
Hash: [, __expectString, `hash`],
|
|
4329
|
-
Key: [, __expectString, `key`],
|
|
4330
|
-
ObjectArn: [, __expectString, `objectArn`],
|
|
4331
|
-
VersionId: [, __expectString, `versionId`],
|
|
4332
|
-
});
|
|
4333
|
-
};
|
|
4334
|
-
const de_S3ObjectDetails = (output, context) => {
|
|
4335
|
-
const retVal = (output || [])
|
|
4336
|
-
.filter((e) => e != null)
|
|
4337
|
-
.map((entry) => {
|
|
4338
|
-
return de_S3ObjectDetail(entry, context);
|
|
4339
|
-
});
|
|
4340
|
-
return retVal;
|
|
4341
|
-
};
|
|
4342
|
-
const de_Scan = (output, context) => {
|
|
4343
|
-
return take(output, {
|
|
4344
|
-
AccountId: [, __expectString, `accountId`],
|
|
4345
|
-
AdminDetectorId: [, __expectString, `adminDetectorId`],
|
|
4346
|
-
AttachedVolumes: [, (_) => de_VolumeDetails(_, context), `attachedVolumes`],
|
|
4347
|
-
DetectorId: [, __expectString, `detectorId`],
|
|
4348
|
-
FailureReason: [, __expectString, `failureReason`],
|
|
4349
|
-
FileCount: [, __expectLong, `fileCount`],
|
|
4350
|
-
ResourceDetails: [, (_) => de_ResourceDetails(_, context), `resourceDetails`],
|
|
4351
|
-
ScanEndTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `scanEndTime`],
|
|
4352
|
-
ScanId: [, __expectString, `scanId`],
|
|
4353
|
-
ScanResultDetails: [, (_) => de_ScanResultDetails(_, context), `scanResultDetails`],
|
|
4354
|
-
ScanStartTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `scanStartTime`],
|
|
4355
|
-
ScanStatus: [, __expectString, `scanStatus`],
|
|
4356
|
-
ScanType: [, __expectString, `scanType`],
|
|
4357
|
-
TotalBytes: [, __expectLong, `totalBytes`],
|
|
4358
|
-
TriggerDetails: [, (_) => de_TriggerDetails(_, context), `triggerDetails`],
|
|
4359
|
-
});
|
|
4360
|
-
};
|
|
4361
|
-
const de_ScanCondition = (output, context) => {
|
|
4362
|
-
return take(output, {
|
|
4363
|
-
MapEquals: [, (_) => de_MapEquals(_, context), `mapEquals`],
|
|
4364
|
-
});
|
|
4365
|
-
};
|
|
4366
|
-
const de_ScanConditionPair = (output, context) => {
|
|
4367
|
-
return take(output, {
|
|
4368
|
-
Key: [, __expectString, `key`],
|
|
4369
|
-
Value: [, __expectString, `value`],
|
|
4370
|
-
});
|
|
4371
|
-
};
|
|
4372
|
-
const de_ScanCriterion = (output, context) => {
|
|
4373
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4374
|
-
if (value === null) {
|
|
4375
|
-
return acc;
|
|
4376
|
-
}
|
|
4377
|
-
acc[key] = de_ScanCondition(value, context);
|
|
4378
|
-
return acc;
|
|
4379
|
-
}, {});
|
|
4380
|
-
};
|
|
4381
|
-
const de_ScanDetections = (output, context) => {
|
|
4382
|
-
return take(output, {
|
|
4383
|
-
HighestSeverityThreatDetails: [
|
|
4384
|
-
,
|
|
4385
|
-
(_) => de_HighestSeverityThreatDetails(_, context),
|
|
4386
|
-
`highestSeverityThreatDetails`,
|
|
4387
|
-
],
|
|
4388
|
-
ScannedItemCount: [, (_) => de_ScannedItemCount(_, context), `scannedItemCount`],
|
|
4389
|
-
ThreatDetectedByName: [, (_) => de_ThreatDetectedByName(_, context), `threatDetectedByName`],
|
|
4390
|
-
ThreatsDetectedItemCount: [, (_) => de_ThreatsDetectedItemCount(_, context), `threatsDetectedItemCount`],
|
|
4391
|
-
});
|
|
4392
|
-
};
|
|
4393
|
-
const de_ScanEc2InstanceWithFindingsResult = (output, context) => {
|
|
4394
|
-
return take(output, {
|
|
4395
|
-
EbsVolumes: [, (_) => de_EbsVolumesResult(_, context), `ebsVolumes`],
|
|
4396
|
-
});
|
|
4397
|
-
};
|
|
4398
|
-
const de_ScanFilePath = (output, context) => {
|
|
4399
|
-
return take(output, {
|
|
4400
|
-
FileName: [, __expectString, `fileName`],
|
|
4401
|
-
FilePath: [, __expectString, `filePath`],
|
|
4402
|
-
Hash: [, __expectString, `hash`],
|
|
4403
|
-
VolumeArn: [, __expectString, `volumeArn`],
|
|
4404
|
-
});
|
|
4405
|
-
};
|
|
4406
|
-
const de_ScannedItemCount = (output, context) => {
|
|
4407
|
-
return take(output, {
|
|
4408
|
-
Files: [, __expectInt32, `files`],
|
|
4409
|
-
TotalGb: [, __expectInt32, `totalGb`],
|
|
4410
|
-
Volumes: [, __expectInt32, `volumes`],
|
|
4411
|
-
});
|
|
4412
|
-
};
|
|
4413
|
-
const de_ScanResourceCriteria = (output, context) => {
|
|
4414
|
-
return take(output, {
|
|
4415
|
-
Exclude: [, (_) => de_ScanCriterion(_, context), `exclude`],
|
|
4416
|
-
Include: [, (_) => de_ScanCriterion(_, context), `include`],
|
|
4417
|
-
});
|
|
4418
|
-
};
|
|
4419
|
-
const de_ScanResultDetails = (output, context) => {
|
|
4420
|
-
return take(output, {
|
|
4421
|
-
ScanResult: [, __expectString, `scanResult`],
|
|
4422
|
-
});
|
|
4423
|
-
};
|
|
4424
|
-
const de_Scans = (output, context) => {
|
|
4425
|
-
const retVal = (output || [])
|
|
4426
|
-
.filter((e) => e != null)
|
|
4427
|
-
.map((entry) => {
|
|
4428
|
-
return de_Scan(entry, context);
|
|
4429
|
-
});
|
|
4430
|
-
return retVal;
|
|
4431
|
-
};
|
|
4432
|
-
const de_ScanThreatName = (output, context) => {
|
|
4433
|
-
return take(output, {
|
|
4434
|
-
FilePaths: [, (_) => de_FilePaths(_, context), `filePaths`],
|
|
4435
|
-
ItemCount: [, __expectInt32, `itemCount`],
|
|
4436
|
-
Name: [, __expectString, `name`],
|
|
4437
|
-
Severity: [, __expectString, `severity`],
|
|
4438
|
-
});
|
|
4439
|
-
};
|
|
4440
|
-
const de_ScanThreatNames = (output, context) => {
|
|
4441
|
-
const retVal = (output || [])
|
|
4442
|
-
.filter((e) => e != null)
|
|
4443
|
-
.map((entry) => {
|
|
4444
|
-
return de_ScanThreatName(entry, context);
|
|
4445
|
-
});
|
|
4446
|
-
return retVal;
|
|
4447
|
-
};
|
|
4448
|
-
const de_SecurityContext = (output, context) => {
|
|
4449
|
-
return take(output, {
|
|
4450
|
-
AllowPrivilegeEscalation: [, __expectBoolean, `allowPrivilegeEscalation`],
|
|
4451
|
-
Privileged: [, __expectBoolean, `privileged`],
|
|
4452
|
-
});
|
|
4453
|
-
};
|
|
4454
|
-
const de_SecurityGroup = (output, context) => {
|
|
4455
|
-
return take(output, {
|
|
4456
|
-
GroupId: [, __expectString, `groupId`],
|
|
4457
|
-
GroupName: [, __expectString, `groupName`],
|
|
4458
|
-
});
|
|
4459
|
-
};
|
|
4460
|
-
const de_SecurityGroups = (output, context) => {
|
|
4461
|
-
const retVal = (output || [])
|
|
4462
|
-
.filter((e) => e != null)
|
|
4463
|
-
.map((entry) => {
|
|
4464
|
-
return de_SecurityGroup(entry, context);
|
|
4465
|
-
});
|
|
4466
|
-
return retVal;
|
|
4467
|
-
};
|
|
4468
|
-
const de_Sequence = (output, context) => {
|
|
4469
|
-
return take(output, {
|
|
4470
|
-
Actors: [, (_) => de_Actors(_, context), `actors`],
|
|
4471
|
-
AdditionalSequenceTypes: [, _json, `additionalSequenceTypes`],
|
|
4472
|
-
Description: [, __expectString, `description`],
|
|
4473
|
-
Endpoints: [, (_) => de_NetworkEndpoints(_, context), `endpoints`],
|
|
4474
|
-
Resources: [, (_) => de_Resources(_, context), `resources`],
|
|
4475
|
-
SequenceIndicators: [, (_) => de_Indicators(_, context), `sequenceIndicators`],
|
|
4476
|
-
Signals: [, (_) => de_Signals(_, context), `signals`],
|
|
4477
|
-
Uid: [, __expectString, `uid`],
|
|
4478
|
-
});
|
|
4479
|
-
};
|
|
4480
|
-
const de_Service = (output, context) => {
|
|
4481
|
-
return take(output, {
|
|
4482
|
-
Action: [, (_) => de_Action(_, context), `action`],
|
|
4483
|
-
AdditionalInfo: [, (_) => de_ServiceAdditionalInfo(_, context), `additionalInfo`],
|
|
4484
|
-
Archived: [, __expectBoolean, `archived`],
|
|
4485
|
-
Count: [, __expectInt32, `count`],
|
|
4486
|
-
Detection: [, (_) => de_Detection(_, context), `detection`],
|
|
4487
|
-
DetectorId: [, __expectString, `detectorId`],
|
|
4488
|
-
EbsVolumeScanDetails: [, (_) => de_EbsVolumeScanDetails(_, context), `ebsVolumeScanDetails`],
|
|
4489
|
-
EventFirstSeen: [, __expectString, `eventFirstSeen`],
|
|
4490
|
-
EventLastSeen: [, __expectString, `eventLastSeen`],
|
|
4491
|
-
Evidence: [, (_) => de_Evidence(_, context), `evidence`],
|
|
4492
|
-
FeatureName: [, __expectString, `featureName`],
|
|
4493
|
-
MalwareScanDetails: [, (_) => de_MalwareScanDetails(_, context), `malwareScanDetails`],
|
|
4494
|
-
ResourceRole: [, __expectString, `resourceRole`],
|
|
4495
|
-
RuntimeDetails: [, (_) => de_RuntimeDetails(_, context), `runtimeDetails`],
|
|
4496
|
-
ServiceName: [, __expectString, `serviceName`],
|
|
4497
|
-
UserFeedback: [, __expectString, `userFeedback`],
|
|
4498
|
-
});
|
|
4499
|
-
};
|
|
4500
|
-
const de_ServiceAdditionalInfo = (output, context) => {
|
|
4501
|
-
return take(output, {
|
|
4502
|
-
Type: [, __expectString, `type`],
|
|
4503
|
-
Value: [, __expectString, `value`],
|
|
4504
|
-
});
|
|
4505
|
-
};
|
|
4506
|
-
const de_Session = (output, context) => {
|
|
4507
|
-
return take(output, {
|
|
4508
|
-
CreatedTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdTime`],
|
|
4509
|
-
Issuer: [, __expectString, `issuer`],
|
|
4510
|
-
MfaStatus: [, __expectString, `mfaStatus`],
|
|
4511
|
-
Uid: [, __expectString, `uid`],
|
|
4512
|
-
});
|
|
4513
|
-
};
|
|
4514
|
-
const de_SeverityStatistics = (output, context) => {
|
|
4515
|
-
return take(output, {
|
|
4516
|
-
LastGeneratedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastGeneratedAt`],
|
|
4517
|
-
Severity: [, __limitedParseDouble, `severity`],
|
|
4518
|
-
TotalFindings: [, __expectInt32, `totalFindings`],
|
|
4519
|
-
});
|
|
4520
|
-
};
|
|
4521
|
-
const de_Signal = (output, context) => {
|
|
4522
|
-
return take(output, {
|
|
4523
|
-
ActorIds: [, _json, `actorIds`],
|
|
4524
|
-
Count: [, __expectInt32, `count`],
|
|
4525
|
-
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
4526
|
-
Description: [, __expectString, `description`],
|
|
4527
|
-
EndpointIds: [, _json, `endpointIds`],
|
|
4528
|
-
FirstSeenAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `firstSeenAt`],
|
|
4529
|
-
LastSeenAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastSeenAt`],
|
|
4530
|
-
Name: [, __expectString, `name`],
|
|
4531
|
-
ResourceUids: [, _json, `resourceUids`],
|
|
4532
|
-
Severity: [, __limitedParseDouble, `severity`],
|
|
4533
|
-
SignalIndicators: [, (_) => de_Indicators(_, context), `signalIndicators`],
|
|
4534
|
-
Type: [, __expectString, `type`],
|
|
4535
|
-
Uid: [, __expectString, `uid`],
|
|
4536
|
-
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
4537
|
-
});
|
|
4538
|
-
};
|
|
4539
|
-
const de_Signals = (output, context) => {
|
|
4540
|
-
const retVal = (output || [])
|
|
4541
|
-
.filter((e) => e != null)
|
|
4542
|
-
.map((entry) => {
|
|
4543
|
-
return de_Signal(entry, context);
|
|
4544
|
-
});
|
|
4545
|
-
return retVal;
|
|
4546
|
-
};
|
|
4547
|
-
const de_Tag = (output, context) => {
|
|
4548
|
-
return take(output, {
|
|
4549
|
-
Key: [, __expectString, `key`],
|
|
4550
|
-
Value: [, __expectString, `value`],
|
|
4551
|
-
});
|
|
4552
|
-
};
|
|
4553
|
-
const de_Tags = (output, context) => {
|
|
4554
|
-
const retVal = (output || [])
|
|
4555
|
-
.filter((e) => e != null)
|
|
4556
|
-
.map((entry) => {
|
|
4557
|
-
return de_Tag(entry, context);
|
|
4558
|
-
});
|
|
4559
|
-
return retVal;
|
|
4560
|
-
};
|
|
4561
|
-
const de_Threat = (output, context) => {
|
|
4562
|
-
return take(output, {
|
|
4563
|
-
ItemPaths: [, (_) => de_ItemPaths(_, context), `itemPaths`],
|
|
4564
|
-
Name: [, __expectString, `name`],
|
|
4565
|
-
Source: [, __expectString, `source`],
|
|
4566
|
-
});
|
|
4567
|
-
};
|
|
4568
|
-
const de_ThreatDetectedByName = (output, context) => {
|
|
4569
|
-
return take(output, {
|
|
4570
|
-
ItemCount: [, __expectInt32, `itemCount`],
|
|
4571
|
-
Shortened: [, __expectBoolean, `shortened`],
|
|
4572
|
-
ThreatNames: [, (_) => de_ScanThreatNames(_, context), `threatNames`],
|
|
4573
|
-
UniqueThreatNameCount: [, __expectInt32, `uniqueThreatNameCount`],
|
|
4574
|
-
});
|
|
4575
|
-
};
|
|
4576
|
-
const de_ThreatIntelligenceDetail = (output, context) => {
|
|
4577
|
-
return take(output, {
|
|
4578
|
-
ThreatFileSha256: [, __expectString, `threatFileSha256`],
|
|
4579
|
-
ThreatListName: [, __expectString, `threatListName`],
|
|
4580
|
-
ThreatNames: [, _json, `threatNames`],
|
|
4581
|
-
});
|
|
4582
|
-
};
|
|
4583
|
-
const de_ThreatIntelligenceDetails = (output, context) => {
|
|
4584
|
-
const retVal = (output || [])
|
|
4585
|
-
.filter((e) => e != null)
|
|
4586
|
-
.map((entry) => {
|
|
4587
|
-
return de_ThreatIntelligenceDetail(entry, context);
|
|
4588
|
-
});
|
|
4589
|
-
return retVal;
|
|
4590
|
-
};
|
|
4591
|
-
const de_Threats = (output, context) => {
|
|
4592
|
-
const retVal = (output || [])
|
|
4593
|
-
.filter((e) => e != null)
|
|
4594
|
-
.map((entry) => {
|
|
4595
|
-
return de_Threat(entry, context);
|
|
4596
|
-
});
|
|
4597
|
-
return retVal;
|
|
4598
|
-
};
|
|
4599
|
-
const de_ThreatsDetectedItemCount = (output, context) => {
|
|
4600
|
-
return take(output, {
|
|
4601
|
-
Files: [, __expectInt32, `files`],
|
|
4602
|
-
});
|
|
4603
|
-
};
|
|
4604
|
-
const de_Total = (output, context) => {
|
|
4605
|
-
return take(output, {
|
|
4606
|
-
Amount: [, __expectString, `amount`],
|
|
4607
|
-
Unit: [, __expectString, `unit`],
|
|
4608
|
-
});
|
|
4609
|
-
};
|
|
4610
|
-
const de_TriggerDetails = (output, context) => {
|
|
4611
|
-
return take(output, {
|
|
4612
|
-
Description: [, __expectString, `description`],
|
|
4613
|
-
GuardDutyFindingId: [, __expectString, `guardDutyFindingId`],
|
|
4614
|
-
});
|
|
4615
|
-
};
|
|
4616
|
-
const de_UnprocessedAccount = (output, context) => {
|
|
4617
|
-
return take(output, {
|
|
4618
|
-
AccountId: [, __expectString, `accountId`],
|
|
4619
|
-
Result: [, __expectString, `result`],
|
|
4620
|
-
});
|
|
4621
|
-
};
|
|
4622
|
-
const de_UnprocessedAccounts = (output, context) => {
|
|
4623
|
-
const retVal = (output || [])
|
|
4624
|
-
.filter((e) => e != null)
|
|
4625
|
-
.map((entry) => {
|
|
4626
|
-
return de_UnprocessedAccount(entry, context);
|
|
4627
|
-
});
|
|
4628
|
-
return retVal;
|
|
4629
|
-
};
|
|
4630
|
-
const de_UnprocessedDataSourcesResult = (output, context) => {
|
|
4631
|
-
return take(output, {
|
|
4632
|
-
MalwareProtection: [, (_) => de_MalwareProtectionConfigurationResult(_, context), `malwareProtection`],
|
|
4633
|
-
});
|
|
4634
|
-
};
|
|
4635
|
-
const de_UsageAccountResult = (output, context) => {
|
|
4636
|
-
return take(output, {
|
|
4637
|
-
AccountId: [, __expectString, `accountId`],
|
|
4638
|
-
Total: [, (_) => de_Total(_, context), `total`],
|
|
4639
|
-
});
|
|
4640
|
-
};
|
|
4641
|
-
const de_UsageAccountResultList = (output, context) => {
|
|
4642
|
-
const retVal = (output || [])
|
|
4643
|
-
.filter((e) => e != null)
|
|
4644
|
-
.map((entry) => {
|
|
4645
|
-
return de_UsageAccountResult(entry, context);
|
|
4646
|
-
});
|
|
4647
|
-
return retVal;
|
|
4648
|
-
};
|
|
4649
|
-
const de_UsageDataSourceResult = (output, context) => {
|
|
4650
|
-
return take(output, {
|
|
4651
|
-
DataSource: [, __expectString, `dataSource`],
|
|
4652
|
-
Total: [, (_) => de_Total(_, context), `total`],
|
|
4653
|
-
});
|
|
4654
|
-
};
|
|
4655
|
-
const de_UsageDataSourceResultList = (output, context) => {
|
|
4656
|
-
const retVal = (output || [])
|
|
4657
|
-
.filter((e) => e != null)
|
|
4658
|
-
.map((entry) => {
|
|
4659
|
-
return de_UsageDataSourceResult(entry, context);
|
|
4660
|
-
});
|
|
4661
|
-
return retVal;
|
|
4662
|
-
};
|
|
4663
|
-
const de_UsageFeatureResult = (output, context) => {
|
|
4664
|
-
return take(output, {
|
|
4665
|
-
Feature: [, __expectString, `feature`],
|
|
4666
|
-
Total: [, (_) => de_Total(_, context), `total`],
|
|
4667
|
-
});
|
|
4668
|
-
};
|
|
4669
|
-
const de_UsageFeatureResultList = (output, context) => {
|
|
4670
|
-
const retVal = (output || [])
|
|
4671
|
-
.filter((e) => e != null)
|
|
4672
|
-
.map((entry) => {
|
|
4673
|
-
return de_UsageFeatureResult(entry, context);
|
|
4674
|
-
});
|
|
4675
|
-
return retVal;
|
|
4676
|
-
};
|
|
4677
|
-
const de_UsageResourceResult = (output, context) => {
|
|
4678
|
-
return take(output, {
|
|
4679
|
-
Resource: [, __expectString, `resource`],
|
|
4680
|
-
Total: [, (_) => de_Total(_, context), `total`],
|
|
4681
|
-
});
|
|
4682
|
-
};
|
|
4683
|
-
const de_UsageResourceResultList = (output, context) => {
|
|
4684
|
-
const retVal = (output || [])
|
|
4685
|
-
.filter((e) => e != null)
|
|
4686
|
-
.map((entry) => {
|
|
4687
|
-
return de_UsageResourceResult(entry, context);
|
|
4688
|
-
});
|
|
4689
|
-
return retVal;
|
|
4690
|
-
};
|
|
4691
|
-
const de_UsageStatistics = (output, context) => {
|
|
4692
|
-
return take(output, {
|
|
4693
|
-
SumByAccount: [, (_) => de_UsageAccountResultList(_, context), `sumByAccount`],
|
|
4694
|
-
SumByDataSource: [, (_) => de_UsageDataSourceResultList(_, context), `sumByDataSource`],
|
|
4695
|
-
SumByFeature: [, (_) => de_UsageFeatureResultList(_, context), `sumByFeature`],
|
|
4696
|
-
SumByResource: [, (_) => de_UsageResourceResultList(_, context), `sumByResource`],
|
|
4697
|
-
TopAccountsByFeature: [, (_) => de_UsageTopAccountsResultList(_, context), `topAccountsByFeature`],
|
|
4698
|
-
TopResources: [, (_) => de_UsageResourceResultList(_, context), `topResources`],
|
|
4699
|
-
});
|
|
4700
|
-
};
|
|
4701
|
-
const de_UsageTopAccountResult = (output, context) => {
|
|
4702
|
-
return take(output, {
|
|
4703
|
-
AccountId: [, __expectString, `accountId`],
|
|
4704
|
-
Total: [, (_) => de_Total(_, context), `total`],
|
|
4705
|
-
});
|
|
4706
|
-
};
|
|
4707
|
-
const de_UsageTopAccountsByFeatureList = (output, context) => {
|
|
4708
|
-
const retVal = (output || [])
|
|
4709
|
-
.filter((e) => e != null)
|
|
4710
|
-
.map((entry) => {
|
|
4711
|
-
return de_UsageTopAccountResult(entry, context);
|
|
4712
|
-
});
|
|
4713
|
-
return retVal;
|
|
4714
|
-
};
|
|
4715
|
-
const de_UsageTopAccountsResult = (output, context) => {
|
|
4716
|
-
return take(output, {
|
|
4717
|
-
Accounts: [, (_) => de_UsageTopAccountsByFeatureList(_, context), `accounts`],
|
|
4718
|
-
Feature: [, __expectString, `feature`],
|
|
4719
|
-
});
|
|
4720
|
-
};
|
|
4721
|
-
const de_UsageTopAccountsResultList = (output, context) => {
|
|
4722
|
-
const retVal = (output || [])
|
|
4723
|
-
.filter((e) => e != null)
|
|
4724
|
-
.map((entry) => {
|
|
4725
|
-
return de_UsageTopAccountsResult(entry, context);
|
|
4726
|
-
});
|
|
4727
|
-
return retVal;
|
|
4728
|
-
};
|
|
4729
|
-
const de_User = (output, context) => {
|
|
4730
|
-
return take(output, {
|
|
4731
|
-
Account: [, (_) => de_Account(_, context), `account`],
|
|
4732
|
-
CredentialUid: [, __expectString, `credentialUid`],
|
|
4733
|
-
Name: [, __expectString, `name`],
|
|
4734
|
-
Type: [, __expectString, `type`],
|
|
4735
|
-
Uid: [, __expectString, `uid`],
|
|
4736
|
-
});
|
|
4737
|
-
};
|
|
4738
|
-
const de_Volume = (output, context) => {
|
|
4739
|
-
return take(output, {
|
|
4740
|
-
HostPath: [, (_) => de_HostPath(_, context), `hostPath`],
|
|
4741
|
-
Name: [, __expectString, `name`],
|
|
4742
|
-
});
|
|
4743
|
-
};
|
|
4744
|
-
const de_VolumeDetail = (output, context) => {
|
|
4745
|
-
return take(output, {
|
|
4746
|
-
DeviceName: [, __expectString, `deviceName`],
|
|
4747
|
-
EncryptionType: [, __expectString, `encryptionType`],
|
|
4748
|
-
KmsKeyArn: [, __expectString, `kmsKeyArn`],
|
|
4749
|
-
SnapshotArn: [, __expectString, `snapshotArn`],
|
|
4750
|
-
VolumeArn: [, __expectString, `volumeArn`],
|
|
4751
|
-
VolumeSizeInGB: [, __expectInt32, `volumeSizeInGB`],
|
|
4752
|
-
VolumeType: [, __expectString, `volumeType`],
|
|
4753
|
-
});
|
|
4754
|
-
};
|
|
4755
|
-
const de_VolumeDetails = (output, context) => {
|
|
4756
|
-
const retVal = (output || [])
|
|
4757
|
-
.filter((e) => e != null)
|
|
4758
|
-
.map((entry) => {
|
|
4759
|
-
return de_VolumeDetail(entry, context);
|
|
4760
|
-
});
|
|
4761
|
-
return retVal;
|
|
4762
|
-
};
|
|
4763
|
-
const de_VolumeMount = (output, context) => {
|
|
4764
|
-
return take(output, {
|
|
4765
|
-
MountPath: [, __expectString, `mountPath`],
|
|
4766
|
-
Name: [, __expectString, `name`],
|
|
4767
|
-
});
|
|
4768
|
-
};
|
|
4769
|
-
const de_VolumeMounts = (output, context) => {
|
|
4770
|
-
const retVal = (output || [])
|
|
4771
|
-
.filter((e) => e != null)
|
|
4772
|
-
.map((entry) => {
|
|
4773
|
-
return de_VolumeMount(entry, context);
|
|
4774
|
-
});
|
|
4775
|
-
return retVal;
|
|
4776
|
-
};
|
|
4777
|
-
const de_Volumes = (output, context) => {
|
|
4778
|
-
const retVal = (output || [])
|
|
4779
|
-
.filter((e) => e != null)
|
|
4780
|
-
.map((entry) => {
|
|
4781
|
-
return de_Volume(entry, context);
|
|
4782
|
-
});
|
|
4783
|
-
return retVal;
|
|
4784
|
-
};
|
|
4785
|
-
const de_VpcConfig = (output, context) => {
|
|
4786
|
-
return take(output, {
|
|
4787
|
-
SecurityGroups: [, (_) => de_SecurityGroups(_, context), `securityGroups`],
|
|
4788
|
-
SubnetIds: [, _json, `subnetIds`],
|
|
4789
|
-
VpcId: [, __expectString, `vpcId`],
|
|
4790
|
-
});
|
|
4791
|
-
};
|
|
4792
|
-
const deserializeMetadata = (output) => ({
|
|
4793
|
-
httpStatusCode: output.statusCode,
|
|
4794
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4795
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4796
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4797
|
-
});
|
|
4798
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4799
|
-
const _MR = "MaxResults";
|
|
4800
|
-
const _NT = "NextToken";
|
|
4801
|
-
const _OA = "OnlyAssociated";
|
|
4802
|
-
const _TK = "TagKeys";
|
|
4803
|
-
const _mR = "maxResults";
|
|
4804
|
-
const _nT = "nextToken";
|
|
4805
|
-
const _oA = "onlyAssociated";
|
|
4806
|
-
const _tK = "tagKeys";
|