@aws-sdk/client-guardduty 3.319.0 → 3.322.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/README.md +8 -0
- package/dist-cjs/GuardDuty.js +2 -0
- package/dist-cjs/commands/StartMalwareScanCommand.js +45 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +22 -1
- package/dist-cjs/protocols/Aws_restJson1.js +254 -165
- package/dist-es/GuardDuty.js +2 -0
- package/dist-es/commands/StartMalwareScanCommand.js +41 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/protocols/Aws_restJson1.js +251 -164
- package/dist-types/GuardDuty.d.ts +7 -0
- package/dist-types/GuardDutyClient.d.ts +3 -2
- package/dist-types/commands/DescribeMalwareScansCommand.d.ts +1 -1
- package/dist-types/commands/StartMalwareScanCommand.d.ts +73 -0
- package/dist-types/commands/StopMonitoringMembersCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +56 -37
- package/dist-types/models/models_1.d.ts +42 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/GuardDuty.d.ts +17 -0
- package/dist-types/ts3.4/GuardDutyClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/StartMalwareScanCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/StopMonitoringMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -12
- package/dist-types/ts3.4/models/models_1.d.ts +12 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { _json, 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, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { GuardDutyServiceException as __BaseException } from "../models/GuardDutyServiceException";
|
|
5
|
-
import { BadRequestException, InternalServerErrorException, } from "../models/models_0";
|
|
5
|
+
import { BadRequestException, ConflictException, InternalServerErrorException, } from "../models/models_0";
|
|
6
6
|
export const se_AcceptAdministratorInvitationCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
@@ -1093,6 +1093,26 @@ export const se_ListThreatIntelSetsCommand = async (input, context) => {
|
|
|
1093
1093
|
body,
|
|
1094
1094
|
});
|
|
1095
1095
|
};
|
|
1096
|
+
export const se_StartMalwareScanCommand = async (input, context) => {
|
|
1097
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1098
|
+
const headers = {
|
|
1099
|
+
"content-type": "application/json",
|
|
1100
|
+
};
|
|
1101
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/malware-scan/start";
|
|
1102
|
+
let body;
|
|
1103
|
+
body = JSON.stringify(take(input, {
|
|
1104
|
+
resourceArn: [, , `ResourceArn`],
|
|
1105
|
+
}));
|
|
1106
|
+
return new __HttpRequest({
|
|
1107
|
+
protocol,
|
|
1108
|
+
hostname,
|
|
1109
|
+
port,
|
|
1110
|
+
method: "POST",
|
|
1111
|
+
headers,
|
|
1112
|
+
path: resolvedPath,
|
|
1113
|
+
body,
|
|
1114
|
+
});
|
|
1115
|
+
};
|
|
1096
1116
|
export const se_StartMonitoringMembersCommand = async (input, context) => {
|
|
1097
1117
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1098
1118
|
const headers = {
|
|
@@ -3318,6 +3338,45 @@ const de_ListThreatIntelSetsCommandError = async (output, context) => {
|
|
|
3318
3338
|
});
|
|
3319
3339
|
}
|
|
3320
3340
|
};
|
|
3341
|
+
export const de_StartMalwareScanCommand = async (output, context) => {
|
|
3342
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3343
|
+
return de_StartMalwareScanCommandError(output, context);
|
|
3344
|
+
}
|
|
3345
|
+
const contents = map({
|
|
3346
|
+
$metadata: deserializeMetadata(output),
|
|
3347
|
+
});
|
|
3348
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3349
|
+
const doc = take(data, {
|
|
3350
|
+
ScanId: [, __expectString, `scanId`],
|
|
3351
|
+
});
|
|
3352
|
+
Object.assign(contents, doc);
|
|
3353
|
+
return contents;
|
|
3354
|
+
};
|
|
3355
|
+
const de_StartMalwareScanCommandError = async (output, context) => {
|
|
3356
|
+
const parsedOutput = {
|
|
3357
|
+
...output,
|
|
3358
|
+
body: await parseErrorBody(output.body, context),
|
|
3359
|
+
};
|
|
3360
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3361
|
+
switch (errorCode) {
|
|
3362
|
+
case "BadRequestException":
|
|
3363
|
+
case "com.amazonaws.guardduty#BadRequestException":
|
|
3364
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3365
|
+
case "ConflictException":
|
|
3366
|
+
case "com.amazonaws.guardduty#ConflictException":
|
|
3367
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3368
|
+
case "InternalServerErrorException":
|
|
3369
|
+
case "com.amazonaws.guardduty#InternalServerErrorException":
|
|
3370
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3371
|
+
default:
|
|
3372
|
+
const parsedBody = parsedOutput.body;
|
|
3373
|
+
return throwDefaultError({
|
|
3374
|
+
output,
|
|
3375
|
+
parsedBody,
|
|
3376
|
+
errorCode,
|
|
3377
|
+
});
|
|
3378
|
+
}
|
|
3379
|
+
};
|
|
3321
3380
|
export const de_StartMonitoringMembersCommand = async (output, context) => {
|
|
3322
3381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3323
3382
|
return de_StartMonitoringMembersCommandError(output, context);
|
|
@@ -3797,6 +3856,20 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
3797
3856
|
});
|
|
3798
3857
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3799
3858
|
};
|
|
3859
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3860
|
+
const contents = map({});
|
|
3861
|
+
const data = parsedOutput.body;
|
|
3862
|
+
const doc = take(data, {
|
|
3863
|
+
Message: [, __expectString, `message`],
|
|
3864
|
+
Type: [, __expectString, `__type`],
|
|
3865
|
+
});
|
|
3866
|
+
Object.assign(contents, doc);
|
|
3867
|
+
const exception = new ConflictException({
|
|
3868
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3869
|
+
...contents,
|
|
3870
|
+
});
|
|
3871
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3872
|
+
};
|
|
3800
3873
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
3801
3874
|
const contents = map({});
|
|
3802
3875
|
const data = parsedOutput.body;
|
|
@@ -4133,8 +4206,8 @@ const de_AccessKeyDetails = (output, context) => {
|
|
|
4133
4206
|
const de_AccountFreeTrialInfo = (output, context) => {
|
|
4134
4207
|
return take(output, {
|
|
4135
4208
|
AccountId: [, __expectString, `accountId`],
|
|
4136
|
-
DataSources: (_) =>
|
|
4137
|
-
Features: (_) =>
|
|
4209
|
+
DataSources: [, (_) => de_DataSourcesFreeTrial(_, context), `dataSources`],
|
|
4210
|
+
Features: [, (_) => de_FreeTrialFeatureConfigurationsResults(_, context), `features`],
|
|
4138
4211
|
});
|
|
4139
4212
|
};
|
|
4140
4213
|
const de_AccountFreeTrialInfos = (output, context) => {
|
|
@@ -4147,18 +4220,18 @@ const de_AccountFreeTrialInfos = (output, context) => {
|
|
|
4147
4220
|
};
|
|
4148
4221
|
const de_AccountLevelPermissions = (output, context) => {
|
|
4149
4222
|
return take(output, {
|
|
4150
|
-
BlockPublicAccess: (_) =>
|
|
4223
|
+
BlockPublicAccess: [, (_) => de_BlockPublicAccess(_, context), `blockPublicAccess`],
|
|
4151
4224
|
});
|
|
4152
4225
|
};
|
|
4153
4226
|
const de_Action = (output, context) => {
|
|
4154
4227
|
return take(output, {
|
|
4155
4228
|
ActionType: [, __expectString, `actionType`],
|
|
4156
|
-
AwsApiCallAction: (_) =>
|
|
4157
|
-
DnsRequestAction: (_) =>
|
|
4158
|
-
KubernetesApiCallAction: (_) =>
|
|
4159
|
-
NetworkConnectionAction: (_) =>
|
|
4160
|
-
PortProbeAction: (_) =>
|
|
4161
|
-
RdsLoginAttemptAction: (_) =>
|
|
4229
|
+
AwsApiCallAction: [, (_) => de_AwsApiCallAction(_, context), `awsApiCallAction`],
|
|
4230
|
+
DnsRequestAction: [, (_) => de_DnsRequestAction(_, context), `dnsRequestAction`],
|
|
4231
|
+
KubernetesApiCallAction: [, (_) => de_KubernetesApiCallAction(_, context), `kubernetesApiCallAction`],
|
|
4232
|
+
NetworkConnectionAction: [, (_) => de_NetworkConnectionAction(_, context), `networkConnectionAction`],
|
|
4233
|
+
PortProbeAction: [, (_) => de_PortProbeAction(_, context), `portProbeAction`],
|
|
4234
|
+
RdsLoginAttemptAction: [, (_) => de_RdsLoginAttemptAction(_, context), `rdsLoginAttemptAction`],
|
|
4162
4235
|
});
|
|
4163
4236
|
};
|
|
4164
4237
|
const de_AddonDetails = (output, context) => {
|
|
@@ -4194,10 +4267,10 @@ const de_AwsApiCallAction = (output, context) => {
|
|
|
4194
4267
|
AffectedResources: [, _json, `affectedResources`],
|
|
4195
4268
|
Api: [, __expectString, `api`],
|
|
4196
4269
|
CallerType: [, __expectString, `callerType`],
|
|
4197
|
-
DomainDetails: (_) =>
|
|
4270
|
+
DomainDetails: [, (_) => de_DomainDetails(_, context), `domainDetails`],
|
|
4198
4271
|
ErrorCode: [, __expectString, `errorCode`],
|
|
4199
|
-
RemoteAccountDetails: (_) =>
|
|
4200
|
-
RemoteIpDetails: (_) =>
|
|
4272
|
+
RemoteAccountDetails: [, (_) => de_RemoteAccountDetails(_, context), `remoteAccountDetails`],
|
|
4273
|
+
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
4201
4274
|
ServiceName: [, __expectString, `serviceName`],
|
|
4202
4275
|
UserAgent: [, __expectString, `userAgent`],
|
|
4203
4276
|
});
|
|
@@ -4212,9 +4285,9 @@ const de_BlockPublicAccess = (output, context) => {
|
|
|
4212
4285
|
};
|
|
4213
4286
|
const de_BucketLevelPermissions = (output, context) => {
|
|
4214
4287
|
return take(output, {
|
|
4215
|
-
AccessControlList: (_) =>
|
|
4216
|
-
BlockPublicAccess: (_) =>
|
|
4217
|
-
BucketPolicy: (_) =>
|
|
4288
|
+
AccessControlList: [, (_) => de_AccessControlList(_, context), `accessControlList`],
|
|
4289
|
+
BlockPublicAccess: [, (_) => de_BlockPublicAccess(_, context), `blockPublicAccess`],
|
|
4290
|
+
BucketPolicy: [, (_) => de_BucketPolicy(_, context), `bucketPolicy`],
|
|
4218
4291
|
});
|
|
4219
4292
|
};
|
|
4220
4293
|
const de_BucketPolicy = (output, context) => {
|
|
@@ -4256,8 +4329,8 @@ const de_Container = (output, context) => {
|
|
|
4256
4329
|
Image: [, __expectString, `image`],
|
|
4257
4330
|
ImagePrefix: [, __expectString, `imagePrefix`],
|
|
4258
4331
|
Name: [, __expectString, `name`],
|
|
4259
|
-
SecurityContext: (_) =>
|
|
4260
|
-
VolumeMounts: (_) =>
|
|
4332
|
+
SecurityContext: [, (_) => de_SecurityContext(_, context), `securityContext`],
|
|
4333
|
+
VolumeMounts: [, (_) => de_VolumeMounts(_, context), `volumeMounts`],
|
|
4261
4334
|
});
|
|
4262
4335
|
};
|
|
4263
4336
|
const de_Containers = (output, context) => {
|
|
@@ -4276,7 +4349,7 @@ const de_Country = (output, context) => {
|
|
|
4276
4349
|
};
|
|
4277
4350
|
const de_CoverageEksClusterDetails = (output, context) => {
|
|
4278
4351
|
return take(output, {
|
|
4279
|
-
AddonDetails: (_) =>
|
|
4352
|
+
AddonDetails: [, (_) => de_AddonDetails(_, context), `addonDetails`],
|
|
4280
4353
|
ClusterName: [, __expectString, `clusterName`],
|
|
4281
4354
|
CompatibleNodes: [, __expectLong, `compatibleNodes`],
|
|
4282
4355
|
CoveredNodes: [, __expectLong, `coveredNodes`],
|
|
@@ -4288,14 +4361,14 @@ const de_CoverageResource = (output, context) => {
|
|
|
4288
4361
|
CoverageStatus: [, __expectString, `coverageStatus`],
|
|
4289
4362
|
DetectorId: [, __expectString, `detectorId`],
|
|
4290
4363
|
Issue: [, __expectString, `issue`],
|
|
4291
|
-
ResourceDetails: (_) =>
|
|
4364
|
+
ResourceDetails: [, (_) => de_CoverageResourceDetails(_, context), `resourceDetails`],
|
|
4292
4365
|
ResourceId: [, __expectString, `resourceId`],
|
|
4293
|
-
UpdatedAt: (_) =>
|
|
4366
|
+
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
4294
4367
|
});
|
|
4295
4368
|
};
|
|
4296
4369
|
const de_CoverageResourceDetails = (output, context) => {
|
|
4297
4370
|
return take(output, {
|
|
4298
|
-
EksClusterDetails: (_) =>
|
|
4371
|
+
EksClusterDetails: [, (_) => de_CoverageEksClusterDetails(_, context), `eksClusterDetails`],
|
|
4299
4372
|
ResourceType: [, __expectString, `resourceType`],
|
|
4300
4373
|
});
|
|
4301
4374
|
};
|
|
@@ -4324,12 +4397,12 @@ const de_Criterion = (output, context) => {
|
|
|
4324
4397
|
};
|
|
4325
4398
|
const de_DataSourceConfigurationsResult = (output, context) => {
|
|
4326
4399
|
return take(output, {
|
|
4327
|
-
CloudTrail: (_) =>
|
|
4328
|
-
DNSLogs: (_) =>
|
|
4329
|
-
FlowLogs: (_) =>
|
|
4330
|
-
Kubernetes: (_) =>
|
|
4331
|
-
MalwareProtection: (_) =>
|
|
4332
|
-
S3Logs: (_) =>
|
|
4400
|
+
CloudTrail: [, (_) => de_CloudTrailConfigurationResult(_, context), `cloudTrail`],
|
|
4401
|
+
DNSLogs: [, (_) => de_DNSLogsConfigurationResult(_, context), `dnsLogs`],
|
|
4402
|
+
FlowLogs: [, (_) => de_FlowLogsConfigurationResult(_, context), `flowLogs`],
|
|
4403
|
+
Kubernetes: [, (_) => de_KubernetesConfigurationResult(_, context), `kubernetes`],
|
|
4404
|
+
MalwareProtection: [, (_) => de_MalwareProtectionConfigurationResult(_, context), `malwareProtection`],
|
|
4405
|
+
S3Logs: [, (_) => de_S3LogsConfigurationResult(_, context), `s3Logs`],
|
|
4333
4406
|
});
|
|
4334
4407
|
};
|
|
4335
4408
|
const de_DataSourceFreeTrial = (output, context) => {
|
|
@@ -4339,12 +4412,12 @@ const de_DataSourceFreeTrial = (output, context) => {
|
|
|
4339
4412
|
};
|
|
4340
4413
|
const de_DataSourcesFreeTrial = (output, context) => {
|
|
4341
4414
|
return take(output, {
|
|
4342
|
-
CloudTrail: (_) =>
|
|
4343
|
-
DnsLogs: (_) =>
|
|
4344
|
-
FlowLogs: (_) =>
|
|
4345
|
-
Kubernetes: (_) =>
|
|
4346
|
-
MalwareProtection: (_) =>
|
|
4347
|
-
S3Logs: (_) =>
|
|
4415
|
+
CloudTrail: [, (_) => de_DataSourceFreeTrial(_, context), `cloudTrail`],
|
|
4416
|
+
DnsLogs: [, (_) => de_DataSourceFreeTrial(_, context), `dnsLogs`],
|
|
4417
|
+
FlowLogs: [, (_) => de_DataSourceFreeTrial(_, context), `flowLogs`],
|
|
4418
|
+
Kubernetes: [, (_) => de_KubernetesDataSourceFreeTrial(_, context), `kubernetes`],
|
|
4419
|
+
MalwareProtection: [, (_) => de_MalwareProtectionDataSourceFreeTrial(_, context), `malwareProtection`],
|
|
4420
|
+
S3Logs: [, (_) => de_DataSourceFreeTrial(_, context), `s3Logs`],
|
|
4348
4421
|
});
|
|
4349
4422
|
};
|
|
4350
4423
|
const de_DefaultServerSideEncryption = (output, context) => {
|
|
@@ -4378,7 +4451,7 @@ const de_DetectorAdditionalConfigurationResult = (output, context) => {
|
|
|
4378
4451
|
return take(output, {
|
|
4379
4452
|
Name: [, __expectString, `name`],
|
|
4380
4453
|
Status: [, __expectString, `status`],
|
|
4381
|
-
UpdatedAt: (_) =>
|
|
4454
|
+
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
4382
4455
|
});
|
|
4383
4456
|
};
|
|
4384
4457
|
const de_DetectorAdditionalConfigurationResults = (output, context) => {
|
|
@@ -4391,14 +4464,14 @@ const de_DetectorAdditionalConfigurationResults = (output, context) => {
|
|
|
4391
4464
|
};
|
|
4392
4465
|
const de_DetectorFeatureConfigurationResult = (output, context) => {
|
|
4393
4466
|
return take(output, {
|
|
4394
|
-
AdditionalConfiguration:
|
|
4467
|
+
AdditionalConfiguration: [
|
|
4395
4468
|
,
|
|
4396
|
-
de_DetectorAdditionalConfigurationResults(_, context),
|
|
4469
|
+
(_) => de_DetectorAdditionalConfigurationResults(_, context),
|
|
4397
4470
|
`additionalConfiguration`,
|
|
4398
4471
|
],
|
|
4399
4472
|
Name: [, __expectString, `name`],
|
|
4400
4473
|
Status: [, __expectString, `status`],
|
|
4401
|
-
UpdatedAt: (_) =>
|
|
4474
|
+
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
4402
4475
|
});
|
|
4403
4476
|
};
|
|
4404
4477
|
const de_DetectorFeatureConfigurationsResults = (output, context) => {
|
|
@@ -4428,16 +4501,17 @@ const de_DomainDetails = (output, context) => {
|
|
|
4428
4501
|
};
|
|
4429
4502
|
const de_EbsVolumeDetails = (output, context) => {
|
|
4430
4503
|
return take(output, {
|
|
4431
|
-
ScannedVolumeDetails: (_) =>
|
|
4432
|
-
SkippedVolumeDetails: (_) =>
|
|
4504
|
+
ScannedVolumeDetails: [, (_) => de_VolumeDetails(_, context), `scannedVolumeDetails`],
|
|
4505
|
+
SkippedVolumeDetails: [, (_) => de_VolumeDetails(_, context), `skippedVolumeDetails`],
|
|
4433
4506
|
});
|
|
4434
4507
|
};
|
|
4435
4508
|
const de_EbsVolumeScanDetails = (output, context) => {
|
|
4436
4509
|
return take(output, {
|
|
4437
|
-
ScanCompletedAt: (_) =>
|
|
4438
|
-
ScanDetections: (_) =>
|
|
4510
|
+
ScanCompletedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `scanCompletedAt`],
|
|
4511
|
+
ScanDetections: [, (_) => de_ScanDetections(_, context), `scanDetections`],
|
|
4439
4512
|
ScanId: [, __expectString, `scanId`],
|
|
4440
|
-
ScanStartedAt: (_) =>
|
|
4513
|
+
ScanStartedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `scanStartedAt`],
|
|
4514
|
+
ScanType: [, __expectString, `scanType`],
|
|
4441
4515
|
Sources: [, _json, `sources`],
|
|
4442
4516
|
TriggerFindingId: [, __expectString, `triggerFindingId`],
|
|
4443
4517
|
});
|
|
@@ -4456,37 +4530,37 @@ const de_EcsClusterDetails = (output, context) => {
|
|
|
4456
4530
|
RegisteredContainerInstancesCount: [, __expectInt32, `registeredContainerInstancesCount`],
|
|
4457
4531
|
RunningTasksCount: [, __expectInt32, `runningTasksCount`],
|
|
4458
4532
|
Status: [, __expectString, `status`],
|
|
4459
|
-
Tags: (_) =>
|
|
4460
|
-
TaskDetails: (_) =>
|
|
4533
|
+
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4534
|
+
TaskDetails: [, (_) => de_EcsTaskDetails(_, context), `taskDetails`],
|
|
4461
4535
|
});
|
|
4462
4536
|
};
|
|
4463
4537
|
const de_EcsTaskDetails = (output, context) => {
|
|
4464
4538
|
return take(output, {
|
|
4465
4539
|
Arn: [, __expectString, `arn`],
|
|
4466
|
-
Containers: (_) =>
|
|
4540
|
+
Containers: [, (_) => de_Containers(_, context), `containers`],
|
|
4467
4541
|
DefinitionArn: [, __expectString, `definitionArn`],
|
|
4468
4542
|
Group: [, __expectString, `group`],
|
|
4469
|
-
StartedAt: (_) =>
|
|
4543
|
+
StartedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `startedAt`],
|
|
4470
4544
|
StartedBy: [, __expectString, `startedBy`],
|
|
4471
|
-
Tags: (_) =>
|
|
4472
|
-
TaskCreatedAt: (_) =>
|
|
4545
|
+
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4546
|
+
TaskCreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
4473
4547
|
Version: [, __expectString, `version`],
|
|
4474
|
-
Volumes: (_) =>
|
|
4548
|
+
Volumes: [, (_) => de_Volumes(_, context), `volumes`],
|
|
4475
4549
|
});
|
|
4476
4550
|
};
|
|
4477
4551
|
const de_EksClusterDetails = (output, context) => {
|
|
4478
4552
|
return take(output, {
|
|
4479
4553
|
Arn: [, __expectString, `arn`],
|
|
4480
|
-
CreatedAt: (_) =>
|
|
4554
|
+
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
4481
4555
|
Name: [, __expectString, `name`],
|
|
4482
4556
|
Status: [, __expectString, `status`],
|
|
4483
|
-
Tags: (_) =>
|
|
4557
|
+
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4484
4558
|
VpcId: [, __expectString, `vpcId`],
|
|
4485
4559
|
});
|
|
4486
4560
|
};
|
|
4487
4561
|
const de_Evidence = (output, context) => {
|
|
4488
4562
|
return take(output, {
|
|
4489
|
-
ThreatIntelligenceDetails: (_) =>
|
|
4563
|
+
ThreatIntelligenceDetails: [, (_) => de_ThreatIntelligenceDetails(_, context), `threatIntelligenceDetails`],
|
|
4490
4564
|
});
|
|
4491
4565
|
};
|
|
4492
4566
|
const de_FilePaths = (output, context) => {
|
|
@@ -4507,9 +4581,9 @@ const de_Finding = (output, context) => {
|
|
|
4507
4581
|
Id: [, __expectString, `id`],
|
|
4508
4582
|
Partition: [, __expectString, `partition`],
|
|
4509
4583
|
Region: [, __expectString, `region`],
|
|
4510
|
-
Resource: (_) =>
|
|
4584
|
+
Resource: [, (_) => de_Resource(_, context), `resource`],
|
|
4511
4585
|
SchemaVersion: [, __expectString, `schemaVersion`],
|
|
4512
|
-
Service: (_) =>
|
|
4586
|
+
Service: [, (_) => de_Service(_, context), `service`],
|
|
4513
4587
|
Severity: [, __limitedParseDouble, `severity`],
|
|
4514
4588
|
Title: [, __expectString, `title`],
|
|
4515
4589
|
Type: [, __expectString, `type`],
|
|
@@ -4518,7 +4592,7 @@ const de_Finding = (output, context) => {
|
|
|
4518
4592
|
};
|
|
4519
4593
|
const de_FindingCriteria = (output, context) => {
|
|
4520
4594
|
return take(output, {
|
|
4521
|
-
Criterion: (_) =>
|
|
4595
|
+
Criterion: [, (_) => de_Criterion(_, context), `criterion`],
|
|
4522
4596
|
});
|
|
4523
4597
|
};
|
|
4524
4598
|
const de_Findings = (output, context) => {
|
|
@@ -4580,18 +4654,18 @@ const de_IamInstanceProfile = (output, context) => {
|
|
|
4580
4654
|
const de_InstanceDetails = (output, context) => {
|
|
4581
4655
|
return take(output, {
|
|
4582
4656
|
AvailabilityZone: [, __expectString, `availabilityZone`],
|
|
4583
|
-
IamInstanceProfile: (_) =>
|
|
4657
|
+
IamInstanceProfile: [, (_) => de_IamInstanceProfile(_, context), `iamInstanceProfile`],
|
|
4584
4658
|
ImageDescription: [, __expectString, `imageDescription`],
|
|
4585
4659
|
ImageId: [, __expectString, `imageId`],
|
|
4586
4660
|
InstanceId: [, __expectString, `instanceId`],
|
|
4587
4661
|
InstanceState: [, __expectString, `instanceState`],
|
|
4588
4662
|
InstanceType: [, __expectString, `instanceType`],
|
|
4589
4663
|
LaunchTime: [, __expectString, `launchTime`],
|
|
4590
|
-
NetworkInterfaces: (_) =>
|
|
4664
|
+
NetworkInterfaces: [, (_) => de_NetworkInterfaces(_, context), `networkInterfaces`],
|
|
4591
4665
|
OutpostArn: [, __expectString, `outpostArn`],
|
|
4592
4666
|
Platform: [, __expectString, `platform`],
|
|
4593
|
-
ProductCodes: (_) =>
|
|
4594
|
-
Tags: (_) =>
|
|
4667
|
+
ProductCodes: [, (_) => de_ProductCodes(_, context), `productCodes`],
|
|
4668
|
+
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4595
4669
|
});
|
|
4596
4670
|
};
|
|
4597
4671
|
const de_Invitation = (output, context) => {
|
|
@@ -4613,7 +4687,7 @@ const de_Invitations = (output, context) => {
|
|
|
4613
4687
|
const de_KubernetesApiCallAction = (output, context) => {
|
|
4614
4688
|
return take(output, {
|
|
4615
4689
|
Parameters: [, __expectString, `parameters`],
|
|
4616
|
-
RemoteIpDetails: (_) =>
|
|
4690
|
+
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
4617
4691
|
RequestUri: [, __expectString, `requestUri`],
|
|
4618
4692
|
SourceIps: [, _json, `sourceIps`],
|
|
4619
4693
|
StatusCode: [, __expectInt32, `statusCode`],
|
|
@@ -4628,18 +4702,18 @@ const de_KubernetesAuditLogsConfigurationResult = (output, context) => {
|
|
|
4628
4702
|
};
|
|
4629
4703
|
const de_KubernetesConfigurationResult = (output, context) => {
|
|
4630
4704
|
return take(output, {
|
|
4631
|
-
AuditLogs: (_) =>
|
|
4705
|
+
AuditLogs: [, (_) => de_KubernetesAuditLogsConfigurationResult(_, context), `auditLogs`],
|
|
4632
4706
|
});
|
|
4633
4707
|
};
|
|
4634
4708
|
const de_KubernetesDataSourceFreeTrial = (output, context) => {
|
|
4635
4709
|
return take(output, {
|
|
4636
|
-
AuditLogs: (_) =>
|
|
4710
|
+
AuditLogs: [, (_) => de_DataSourceFreeTrial(_, context), `auditLogs`],
|
|
4637
4711
|
});
|
|
4638
4712
|
};
|
|
4639
4713
|
const de_KubernetesDetails = (output, context) => {
|
|
4640
4714
|
return take(output, {
|
|
4641
|
-
KubernetesUserDetails: (_) =>
|
|
4642
|
-
KubernetesWorkloadDetails: (_) =>
|
|
4715
|
+
KubernetesUserDetails: [, (_) => de_KubernetesUserDetails(_, context), `kubernetesUserDetails`],
|
|
4716
|
+
KubernetesWorkloadDetails: [, (_) => de_KubernetesWorkloadDetails(_, context), `kubernetesWorkloadDetails`],
|
|
4643
4717
|
});
|
|
4644
4718
|
};
|
|
4645
4719
|
const de_KubernetesUserDetails = (output, context) => {
|
|
@@ -4651,13 +4725,13 @@ const de_KubernetesUserDetails = (output, context) => {
|
|
|
4651
4725
|
};
|
|
4652
4726
|
const de_KubernetesWorkloadDetails = (output, context) => {
|
|
4653
4727
|
return take(output, {
|
|
4654
|
-
Containers: (_) =>
|
|
4728
|
+
Containers: [, (_) => de_Containers(_, context), `containers`],
|
|
4655
4729
|
HostNetwork: [, __expectBoolean, `hostNetwork`],
|
|
4656
4730
|
Name: [, __expectString, `name`],
|
|
4657
4731
|
Namespace: [, __expectString, `namespace`],
|
|
4658
4732
|
Type: [, __expectString, `type`],
|
|
4659
4733
|
Uid: [, __expectString, `uid`],
|
|
4660
|
-
Volumes: (_) =>
|
|
4734
|
+
Volumes: [, (_) => de_Volumes(_, context), `volumes`],
|
|
4661
4735
|
});
|
|
4662
4736
|
};
|
|
4663
4737
|
const de_LambdaDetails = (output, context) => {
|
|
@@ -4666,11 +4740,11 @@ const de_LambdaDetails = (output, context) => {
|
|
|
4666
4740
|
FunctionArn: [, __expectString, `functionArn`],
|
|
4667
4741
|
FunctionName: [, __expectString, `functionName`],
|
|
4668
4742
|
FunctionVersion: [, __expectString, `functionVersion`],
|
|
4669
|
-
LastModifiedAt: (_) =>
|
|
4743
|
+
LastModifiedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastModifiedAt`],
|
|
4670
4744
|
RevisionId: [, __expectString, `revisionId`],
|
|
4671
4745
|
Role: [, __expectString, `role`],
|
|
4672
|
-
Tags: (_) =>
|
|
4673
|
-
VpcConfig: (_) =>
|
|
4746
|
+
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
4747
|
+
VpcConfig: [, (_) => de_VpcConfig(_, context), `vpcConfig`],
|
|
4674
4748
|
});
|
|
4675
4749
|
};
|
|
4676
4750
|
const de_Lineage = (output, context) => {
|
|
@@ -4689,7 +4763,7 @@ const de_LineageObject = (output, context) => {
|
|
|
4689
4763
|
NamespacePid: [, __expectInt32, `namespacePid`],
|
|
4690
4764
|
ParentUuid: [, __expectString, `parentUuid`],
|
|
4691
4765
|
Pid: [, __expectInt32, `pid`],
|
|
4692
|
-
StartTime: (_) =>
|
|
4766
|
+
StartTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `startTime`],
|
|
4693
4767
|
UserId: [, __expectInt32, `userId`],
|
|
4694
4768
|
Uuid: [, __expectString, `uuid`],
|
|
4695
4769
|
});
|
|
@@ -4723,9 +4797,9 @@ const de_LoginAttributes = (output, context) => {
|
|
|
4723
4797
|
};
|
|
4724
4798
|
const de_MalwareProtectionConfigurationResult = (output, context) => {
|
|
4725
4799
|
return take(output, {
|
|
4726
|
-
ScanEc2InstanceWithFindings:
|
|
4800
|
+
ScanEc2InstanceWithFindings: [
|
|
4727
4801
|
,
|
|
4728
|
-
de_ScanEc2InstanceWithFindingsResult(_, context),
|
|
4802
|
+
(_) => de_ScanEc2InstanceWithFindingsResult(_, context),
|
|
4729
4803
|
`scanEc2InstanceWithFindings`,
|
|
4730
4804
|
],
|
|
4731
4805
|
ServiceRole: [, __expectString, `serviceRole`],
|
|
@@ -4733,7 +4807,7 @@ const de_MalwareProtectionConfigurationResult = (output, context) => {
|
|
|
4733
4807
|
};
|
|
4734
4808
|
const de_MalwareProtectionDataSourceFreeTrial = (output, context) => {
|
|
4735
4809
|
return take(output, {
|
|
4736
|
-
ScanEc2InstanceWithFindings: (_) =>
|
|
4810
|
+
ScanEc2InstanceWithFindings: [, (_) => de_DataSourceFreeTrial(_, context), `scanEc2InstanceWithFindings`],
|
|
4737
4811
|
});
|
|
4738
4812
|
};
|
|
4739
4813
|
const de_MapEquals = (output, context) => {
|
|
@@ -4768,7 +4842,7 @@ const de_MemberAdditionalConfigurationResult = (output, context) => {
|
|
|
4768
4842
|
return take(output, {
|
|
4769
4843
|
Name: [, __expectString, `name`],
|
|
4770
4844
|
Status: [, __expectString, `status`],
|
|
4771
|
-
UpdatedAt: (_) =>
|
|
4845
|
+
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
4772
4846
|
});
|
|
4773
4847
|
};
|
|
4774
4848
|
const de_MemberAdditionalConfigurationResults = (output, context) => {
|
|
@@ -4782,8 +4856,8 @@ const de_MemberAdditionalConfigurationResults = (output, context) => {
|
|
|
4782
4856
|
const de_MemberDataSourceConfiguration = (output, context) => {
|
|
4783
4857
|
return take(output, {
|
|
4784
4858
|
AccountId: [, __expectString, `accountId`],
|
|
4785
|
-
DataSources: (_) =>
|
|
4786
|
-
Features: (_) =>
|
|
4859
|
+
DataSources: [, (_) => de_DataSourceConfigurationsResult(_, context), `dataSources`],
|
|
4860
|
+
Features: [, (_) => de_MemberFeaturesConfigurationsResults(_, context), `features`],
|
|
4787
4861
|
});
|
|
4788
4862
|
};
|
|
4789
4863
|
const de_MemberDataSourceConfigurations = (output, context) => {
|
|
@@ -4796,10 +4870,14 @@ const de_MemberDataSourceConfigurations = (output, context) => {
|
|
|
4796
4870
|
};
|
|
4797
4871
|
const de_MemberFeaturesConfigurationResult = (output, context) => {
|
|
4798
4872
|
return take(output, {
|
|
4799
|
-
AdditionalConfiguration:
|
|
4873
|
+
AdditionalConfiguration: [
|
|
4874
|
+
,
|
|
4875
|
+
(_) => de_MemberAdditionalConfigurationResults(_, context),
|
|
4876
|
+
`additionalConfiguration`,
|
|
4877
|
+
],
|
|
4800
4878
|
Name: [, __expectString, `name`],
|
|
4801
4879
|
Status: [, __expectString, `status`],
|
|
4802
|
-
UpdatedAt: (_) =>
|
|
4880
|
+
UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
|
|
4803
4881
|
});
|
|
4804
4882
|
};
|
|
4805
4883
|
const de_MemberFeaturesConfigurationsResults = (output, context) => {
|
|
@@ -4822,11 +4900,11 @@ const de_NetworkConnectionAction = (output, context) => {
|
|
|
4822
4900
|
return take(output, {
|
|
4823
4901
|
Blocked: [, __expectBoolean, `blocked`],
|
|
4824
4902
|
ConnectionDirection: [, __expectString, `connectionDirection`],
|
|
4825
|
-
LocalIpDetails: (_) =>
|
|
4826
|
-
LocalPortDetails: (_) =>
|
|
4903
|
+
LocalIpDetails: [, (_) => de_LocalIpDetails(_, context), `localIpDetails`],
|
|
4904
|
+
LocalPortDetails: [, (_) => de_LocalPortDetails(_, context), `localPortDetails`],
|
|
4827
4905
|
Protocol: [, __expectString, `protocol`],
|
|
4828
|
-
RemoteIpDetails: (_) =>
|
|
4829
|
-
RemotePortDetails: (_) =>
|
|
4906
|
+
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
4907
|
+
RemotePortDetails: [, (_) => de_RemotePortDetails(_, context), `remotePortDetails`],
|
|
4830
4908
|
});
|
|
4831
4909
|
};
|
|
4832
4910
|
const de_NetworkInterface = (output, context) => {
|
|
@@ -4835,10 +4913,10 @@ const de_NetworkInterface = (output, context) => {
|
|
|
4835
4913
|
NetworkInterfaceId: [, __expectString, `networkInterfaceId`],
|
|
4836
4914
|
PrivateDnsName: [, __expectString, `privateDnsName`],
|
|
4837
4915
|
PrivateIpAddress: [, __expectString, `privateIpAddress`],
|
|
4838
|
-
PrivateIpAddresses: (_) =>
|
|
4916
|
+
PrivateIpAddresses: [, (_) => de_PrivateIpAddresses(_, context), `privateIpAddresses`],
|
|
4839
4917
|
PublicDnsName: [, __expectString, `publicDnsName`],
|
|
4840
4918
|
PublicIp: [, __expectString, `publicIp`],
|
|
4841
|
-
SecurityGroups: (_) =>
|
|
4919
|
+
SecurityGroups: [, (_) => de_SecurityGroups(_, context), `securityGroups`],
|
|
4842
4920
|
SubnetId: [, __expectString, `subnetId`],
|
|
4843
4921
|
VpcId: [, __expectString, `vpcId`],
|
|
4844
4922
|
});
|
|
@@ -4875,9 +4953,13 @@ const de_OrganizationAdditionalConfigurationResults = (output, context) => {
|
|
|
4875
4953
|
};
|
|
4876
4954
|
const de_OrganizationDataSourceConfigurationsResult = (output, context) => {
|
|
4877
4955
|
return take(output, {
|
|
4878
|
-
Kubernetes: (_) =>
|
|
4879
|
-
MalwareProtection:
|
|
4880
|
-
|
|
4956
|
+
Kubernetes: [, (_) => de_OrganizationKubernetesConfigurationResult(_, context), `kubernetes`],
|
|
4957
|
+
MalwareProtection: [
|
|
4958
|
+
,
|
|
4959
|
+
(_) => de_OrganizationMalwareProtectionConfigurationResult(_, context),
|
|
4960
|
+
`malwareProtection`,
|
|
4961
|
+
],
|
|
4962
|
+
S3Logs: [, (_) => de_OrganizationS3LogsConfigurationResult(_, context), `s3Logs`],
|
|
4881
4963
|
});
|
|
4882
4964
|
};
|
|
4883
4965
|
const de_OrganizationEbsVolumesResult = (output, context) => {
|
|
@@ -4887,9 +4969,9 @@ const de_OrganizationEbsVolumesResult = (output, context) => {
|
|
|
4887
4969
|
};
|
|
4888
4970
|
const de_OrganizationFeatureConfigurationResult = (output, context) => {
|
|
4889
4971
|
return take(output, {
|
|
4890
|
-
AdditionalConfiguration:
|
|
4972
|
+
AdditionalConfiguration: [
|
|
4891
4973
|
,
|
|
4892
|
-
de_OrganizationAdditionalConfigurationResults(_, context),
|
|
4974
|
+
(_) => de_OrganizationAdditionalConfigurationResults(_, context),
|
|
4893
4975
|
`additionalConfiguration`,
|
|
4894
4976
|
],
|
|
4895
4977
|
AutoEnable: [, __expectString, `autoEnable`],
|
|
@@ -4911,14 +4993,14 @@ const de_OrganizationKubernetesAuditLogsConfigurationResult = (output, context)
|
|
|
4911
4993
|
};
|
|
4912
4994
|
const de_OrganizationKubernetesConfigurationResult = (output, context) => {
|
|
4913
4995
|
return take(output, {
|
|
4914
|
-
AuditLogs: (_) =>
|
|
4996
|
+
AuditLogs: [, (_) => de_OrganizationKubernetesAuditLogsConfigurationResult(_, context), `auditLogs`],
|
|
4915
4997
|
});
|
|
4916
4998
|
};
|
|
4917
4999
|
const de_OrganizationMalwareProtectionConfigurationResult = (output, context) => {
|
|
4918
5000
|
return take(output, {
|
|
4919
|
-
ScanEc2InstanceWithFindings:
|
|
5001
|
+
ScanEc2InstanceWithFindings: [
|
|
4920
5002
|
,
|
|
4921
|
-
de_OrganizationScanEc2InstanceWithFindingsResult(_, context),
|
|
5003
|
+
(_) => de_OrganizationScanEc2InstanceWithFindingsResult(_, context),
|
|
4922
5004
|
`scanEc2InstanceWithFindings`,
|
|
4923
5005
|
],
|
|
4924
5006
|
});
|
|
@@ -4930,7 +5012,7 @@ const de_OrganizationS3LogsConfigurationResult = (output, context) => {
|
|
|
4930
5012
|
};
|
|
4931
5013
|
const de_OrganizationScanEc2InstanceWithFindingsResult = (output, context) => {
|
|
4932
5014
|
return take(output, {
|
|
4933
|
-
EbsVolumes: (_) =>
|
|
5015
|
+
EbsVolumes: [, (_) => de_OrganizationEbsVolumesResult(_, context), `ebsVolumes`],
|
|
4934
5016
|
});
|
|
4935
5017
|
};
|
|
4936
5018
|
const de_Owner = (output, context) => {
|
|
@@ -4940,21 +5022,21 @@ const de_Owner = (output, context) => {
|
|
|
4940
5022
|
};
|
|
4941
5023
|
const de_PermissionConfiguration = (output, context) => {
|
|
4942
5024
|
return take(output, {
|
|
4943
|
-
AccountLevelPermissions: (_) =>
|
|
4944
|
-
BucketLevelPermissions: (_) =>
|
|
5025
|
+
AccountLevelPermissions: [, (_) => de_AccountLevelPermissions(_, context), `accountLevelPermissions`],
|
|
5026
|
+
BucketLevelPermissions: [, (_) => de_BucketLevelPermissions(_, context), `bucketLevelPermissions`],
|
|
4945
5027
|
});
|
|
4946
5028
|
};
|
|
4947
5029
|
const de_PortProbeAction = (output, context) => {
|
|
4948
5030
|
return take(output, {
|
|
4949
5031
|
Blocked: [, __expectBoolean, `blocked`],
|
|
4950
|
-
PortProbeDetails: (_) =>
|
|
5032
|
+
PortProbeDetails: [, (_) => de_PortProbeDetails(_, context), `portProbeDetails`],
|
|
4951
5033
|
});
|
|
4952
5034
|
};
|
|
4953
5035
|
const de_PortProbeDetail = (output, context) => {
|
|
4954
5036
|
return take(output, {
|
|
4955
|
-
LocalIpDetails: (_) =>
|
|
4956
|
-
LocalPortDetails: (_) =>
|
|
4957
|
-
RemoteIpDetails: (_) =>
|
|
5037
|
+
LocalIpDetails: [, (_) => de_LocalIpDetails(_, context), `localIpDetails`],
|
|
5038
|
+
LocalPortDetails: [, (_) => de_LocalPortDetails(_, context), `localPortDetails`],
|
|
5039
|
+
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
4958
5040
|
});
|
|
4959
5041
|
};
|
|
4960
5042
|
const de_PortProbeDetails = (output, context) => {
|
|
@@ -4984,13 +5066,13 @@ const de_ProcessDetails = (output, context) => {
|
|
|
4984
5066
|
Euid: [, __expectInt32, `euid`],
|
|
4985
5067
|
ExecutablePath: [, __expectString, `executablePath`],
|
|
4986
5068
|
ExecutableSha256: [, __expectString, `executableSha256`],
|
|
4987
|
-
Lineage: (_) =>
|
|
5069
|
+
Lineage: [, (_) => de_Lineage(_, context), `lineage`],
|
|
4988
5070
|
Name: [, __expectString, `name`],
|
|
4989
5071
|
NamespacePid: [, __expectInt32, `namespacePid`],
|
|
4990
5072
|
ParentUuid: [, __expectString, `parentUuid`],
|
|
4991
5073
|
Pid: [, __expectInt32, `pid`],
|
|
4992
5074
|
Pwd: [, __expectString, `pwd`],
|
|
4993
|
-
StartTime: (_) =>
|
|
5075
|
+
StartTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `startTime`],
|
|
4994
5076
|
User: [, __expectString, `user`],
|
|
4995
5077
|
UserId: [, __expectInt32, `userId`],
|
|
4996
5078
|
Uuid: [, __expectString, `uuid`],
|
|
@@ -5013,7 +5095,7 @@ const de_ProductCodes = (output, context) => {
|
|
|
5013
5095
|
const de_PublicAccess = (output, context) => {
|
|
5014
5096
|
return take(output, {
|
|
5015
5097
|
EffectivePermission: [, __expectString, `effectivePermission`],
|
|
5016
|
-
PermissionConfiguration: (_) =>
|
|
5098
|
+
PermissionConfiguration: [, (_) => de_PermissionConfiguration(_, context), `permissionConfiguration`],
|
|
5017
5099
|
});
|
|
5018
5100
|
};
|
|
5019
5101
|
const de_RdsDbInstanceDetails = (output, context) => {
|
|
@@ -5023,7 +5105,7 @@ const de_RdsDbInstanceDetails = (output, context) => {
|
|
|
5023
5105
|
DbInstanceIdentifier: [, __expectString, `dbInstanceIdentifier`],
|
|
5024
5106
|
Engine: [, __expectString, `engine`],
|
|
5025
5107
|
EngineVersion: [, __expectString, `engineVersion`],
|
|
5026
|
-
Tags: (_) =>
|
|
5108
|
+
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
5027
5109
|
});
|
|
5028
5110
|
};
|
|
5029
5111
|
const de_RdsDbUserDetails = (output, context) => {
|
|
@@ -5038,7 +5120,7 @@ const de_RdsDbUserDetails = (output, context) => {
|
|
|
5038
5120
|
const de_RdsLoginAttemptAction = (output, context) => {
|
|
5039
5121
|
return take(output, {
|
|
5040
5122
|
LoginAttributes: (_) => de_LoginAttributes(_, context),
|
|
5041
|
-
RemoteIpDetails: (_) =>
|
|
5123
|
+
RemoteIpDetails: [, (_) => de_RemoteIpDetails(_, context), `remoteIpDetails`],
|
|
5042
5124
|
});
|
|
5043
5125
|
};
|
|
5044
5126
|
const de_RemoteAccountDetails = (output, context) => {
|
|
@@ -5049,11 +5131,11 @@ const de_RemoteAccountDetails = (output, context) => {
|
|
|
5049
5131
|
};
|
|
5050
5132
|
const de_RemoteIpDetails = (output, context) => {
|
|
5051
5133
|
return take(output, {
|
|
5052
|
-
City: (_) =>
|
|
5053
|
-
Country: (_) =>
|
|
5054
|
-
GeoLocation: (_) =>
|
|
5134
|
+
City: [, (_) => de_City(_, context), `city`],
|
|
5135
|
+
Country: [, (_) => de_Country(_, context), `country`],
|
|
5136
|
+
GeoLocation: [, (_) => de_GeoLocation(_, context), `geoLocation`],
|
|
5055
5137
|
IpAddressV4: [, __expectString, `ipAddressV4`],
|
|
5056
|
-
Organization: (_) =>
|
|
5138
|
+
Organization: [, (_) => de_Organization(_, context), `organization`],
|
|
5057
5139
|
});
|
|
5058
5140
|
};
|
|
5059
5141
|
const de_RemotePortDetails = (output, context) => {
|
|
@@ -5064,18 +5146,18 @@ const de_RemotePortDetails = (output, context) => {
|
|
|
5064
5146
|
};
|
|
5065
5147
|
const de_Resource = (output, context) => {
|
|
5066
5148
|
return take(output, {
|
|
5067
|
-
AccessKeyDetails: (_) =>
|
|
5068
|
-
ContainerDetails: (_) =>
|
|
5069
|
-
EbsVolumeDetails: (_) =>
|
|
5070
|
-
EcsClusterDetails: (_) =>
|
|
5071
|
-
EksClusterDetails: (_) =>
|
|
5072
|
-
InstanceDetails: (_) =>
|
|
5073
|
-
KubernetesDetails: (_) =>
|
|
5074
|
-
LambdaDetails: (_) =>
|
|
5075
|
-
RdsDbInstanceDetails: (_) =>
|
|
5076
|
-
RdsDbUserDetails: (_) =>
|
|
5149
|
+
AccessKeyDetails: [, (_) => de_AccessKeyDetails(_, context), `accessKeyDetails`],
|
|
5150
|
+
ContainerDetails: [, (_) => de_Container(_, context), `containerDetails`],
|
|
5151
|
+
EbsVolumeDetails: [, (_) => de_EbsVolumeDetails(_, context), `ebsVolumeDetails`],
|
|
5152
|
+
EcsClusterDetails: [, (_) => de_EcsClusterDetails(_, context), `ecsClusterDetails`],
|
|
5153
|
+
EksClusterDetails: [, (_) => de_EksClusterDetails(_, context), `eksClusterDetails`],
|
|
5154
|
+
InstanceDetails: [, (_) => de_InstanceDetails(_, context), `instanceDetails`],
|
|
5155
|
+
KubernetesDetails: [, (_) => de_KubernetesDetails(_, context), `kubernetesDetails`],
|
|
5156
|
+
LambdaDetails: [, (_) => de_LambdaDetails(_, context), `lambdaDetails`],
|
|
5157
|
+
RdsDbInstanceDetails: [, (_) => de_RdsDbInstanceDetails(_, context), `rdsDbInstanceDetails`],
|
|
5158
|
+
RdsDbUserDetails: [, (_) => de_RdsDbUserDetails(_, context), `rdsDbUserDetails`],
|
|
5077
5159
|
ResourceType: [, __expectString, `resourceType`],
|
|
5078
|
-
S3BucketDetails: (_) =>
|
|
5160
|
+
S3BucketDetails: [, (_) => de_S3BucketDetails(_, context), `s3BucketDetails`],
|
|
5079
5161
|
});
|
|
5080
5162
|
};
|
|
5081
5163
|
const de_ResourceDetails = (output, context) => {
|
|
@@ -5092,8 +5174,8 @@ const de_RuntimeContext = (output, context) => {
|
|
|
5092
5174
|
LdPreloadValue: [, __expectString, `ldPreloadValue`],
|
|
5093
5175
|
LibraryPath: [, __expectString, `libraryPath`],
|
|
5094
5176
|
MemoryRegions: [, _json, `memoryRegions`],
|
|
5095
|
-
ModifiedAt: (_) =>
|
|
5096
|
-
ModifyingProcess: (_) =>
|
|
5177
|
+
ModifiedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `modifiedAt`],
|
|
5178
|
+
ModifyingProcess: [, (_) => de_ProcessDetails(_, context), `modifyingProcess`],
|
|
5097
5179
|
ModuleFilePath: [, __expectString, `moduleFilePath`],
|
|
5098
5180
|
ModuleName: [, __expectString, `moduleName`],
|
|
5099
5181
|
ModuleSha256: [, __expectString, `moduleSha256`],
|
|
@@ -5104,24 +5186,28 @@ const de_RuntimeContext = (output, context) => {
|
|
|
5104
5186
|
ScriptPath: [, __expectString, `scriptPath`],
|
|
5105
5187
|
ShellHistoryFilePath: [, __expectString, `shellHistoryFilePath`],
|
|
5106
5188
|
SocketPath: [, __expectString, `socketPath`],
|
|
5107
|
-
TargetProcess: (_) =>
|
|
5189
|
+
TargetProcess: [, (_) => de_ProcessDetails(_, context), `targetProcess`],
|
|
5108
5190
|
});
|
|
5109
5191
|
};
|
|
5110
5192
|
const de_RuntimeDetails = (output, context) => {
|
|
5111
5193
|
return take(output, {
|
|
5112
|
-
Context: (_) =>
|
|
5113
|
-
Process: (_) =>
|
|
5194
|
+
Context: [, (_) => de_RuntimeContext(_, context), `context`],
|
|
5195
|
+
Process: [, (_) => de_ProcessDetails(_, context), `process`],
|
|
5114
5196
|
});
|
|
5115
5197
|
};
|
|
5116
5198
|
const de_S3BucketDetail = (output, context) => {
|
|
5117
5199
|
return take(output, {
|
|
5118
5200
|
Arn: [, __expectString, `arn`],
|
|
5119
|
-
CreatedAt: (_) =>
|
|
5120
|
-
DefaultServerSideEncryption:
|
|
5201
|
+
CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `createdAt`],
|
|
5202
|
+
DefaultServerSideEncryption: [
|
|
5203
|
+
,
|
|
5204
|
+
(_) => de_DefaultServerSideEncryption(_, context),
|
|
5205
|
+
`defaultServerSideEncryption`,
|
|
5206
|
+
],
|
|
5121
5207
|
Name: [, __expectString, `name`],
|
|
5122
|
-
Owner: (_) =>
|
|
5123
|
-
PublicAccess: (_) =>
|
|
5124
|
-
Tags: (_) =>
|
|
5208
|
+
Owner: [, (_) => de_Owner(_, context), `owner`],
|
|
5209
|
+
PublicAccess: [, (_) => de_PublicAccess(_, context), `publicAccess`],
|
|
5210
|
+
Tags: [, (_) => de_Tags(_, context), `tags`],
|
|
5125
5211
|
Type: [, __expectString, `type`],
|
|
5126
5212
|
});
|
|
5127
5213
|
};
|
|
@@ -5142,23 +5228,24 @@ const de_Scan = (output, context) => {
|
|
|
5142
5228
|
return take(output, {
|
|
5143
5229
|
AccountId: [, __expectString, `accountId`],
|
|
5144
5230
|
AdminDetectorId: [, __expectString, `adminDetectorId`],
|
|
5145
|
-
AttachedVolumes: (_) =>
|
|
5231
|
+
AttachedVolumes: [, (_) => de_VolumeDetails(_, context), `attachedVolumes`],
|
|
5146
5232
|
DetectorId: [, __expectString, `detectorId`],
|
|
5147
5233
|
FailureReason: [, __expectString, `failureReason`],
|
|
5148
5234
|
FileCount: [, __expectLong, `fileCount`],
|
|
5149
|
-
ResourceDetails: (_) =>
|
|
5150
|
-
ScanEndTime: (_) =>
|
|
5235
|
+
ResourceDetails: [, (_) => de_ResourceDetails(_, context), `resourceDetails`],
|
|
5236
|
+
ScanEndTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `scanEndTime`],
|
|
5151
5237
|
ScanId: [, __expectString, `scanId`],
|
|
5152
|
-
ScanResultDetails: (_) =>
|
|
5153
|
-
ScanStartTime: (_) =>
|
|
5238
|
+
ScanResultDetails: [, (_) => de_ScanResultDetails(_, context), `scanResultDetails`],
|
|
5239
|
+
ScanStartTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `scanStartTime`],
|
|
5154
5240
|
ScanStatus: [, __expectString, `scanStatus`],
|
|
5241
|
+
ScanType: [, __expectString, `scanType`],
|
|
5155
5242
|
TotalBytes: [, __expectLong, `totalBytes`],
|
|
5156
|
-
TriggerDetails: (_) =>
|
|
5243
|
+
TriggerDetails: [, (_) => de_TriggerDetails(_, context), `triggerDetails`],
|
|
5157
5244
|
});
|
|
5158
5245
|
};
|
|
5159
5246
|
const de_ScanCondition = (output, context) => {
|
|
5160
5247
|
return take(output, {
|
|
5161
|
-
MapEquals: (_) =>
|
|
5248
|
+
MapEquals: [, (_) => de_MapEquals(_, context), `mapEquals`],
|
|
5162
5249
|
});
|
|
5163
5250
|
};
|
|
5164
5251
|
const de_ScanConditionPair = (output, context) => {
|
|
@@ -5178,19 +5265,19 @@ const de_ScanCriterion = (output, context) => {
|
|
|
5178
5265
|
};
|
|
5179
5266
|
const de_ScanDetections = (output, context) => {
|
|
5180
5267
|
return take(output, {
|
|
5181
|
-
HighestSeverityThreatDetails:
|
|
5268
|
+
HighestSeverityThreatDetails: [
|
|
5182
5269
|
,
|
|
5183
|
-
de_HighestSeverityThreatDetails(_, context),
|
|
5270
|
+
(_) => de_HighestSeverityThreatDetails(_, context),
|
|
5184
5271
|
`highestSeverityThreatDetails`,
|
|
5185
5272
|
],
|
|
5186
|
-
ScannedItemCount: (_) =>
|
|
5187
|
-
ThreatDetectedByName: (_) =>
|
|
5188
|
-
ThreatsDetectedItemCount: (_) =>
|
|
5273
|
+
ScannedItemCount: [, (_) => de_ScannedItemCount(_, context), `scannedItemCount`],
|
|
5274
|
+
ThreatDetectedByName: [, (_) => de_ThreatDetectedByName(_, context), `threatDetectedByName`],
|
|
5275
|
+
ThreatsDetectedItemCount: [, (_) => de_ThreatsDetectedItemCount(_, context), `threatsDetectedItemCount`],
|
|
5189
5276
|
});
|
|
5190
5277
|
};
|
|
5191
5278
|
const de_ScanEc2InstanceWithFindingsResult = (output, context) => {
|
|
5192
5279
|
return take(output, {
|
|
5193
|
-
EbsVolumes: (_) =>
|
|
5280
|
+
EbsVolumes: [, (_) => de_EbsVolumesResult(_, context), `ebsVolumes`],
|
|
5194
5281
|
});
|
|
5195
5282
|
};
|
|
5196
5283
|
const de_ScanFilePath = (output, context) => {
|
|
@@ -5210,8 +5297,8 @@ const de_ScannedItemCount = (output, context) => {
|
|
|
5210
5297
|
};
|
|
5211
5298
|
const de_ScanResourceCriteria = (output, context) => {
|
|
5212
5299
|
return take(output, {
|
|
5213
|
-
Exclude: (_) =>
|
|
5214
|
-
Include: (_) =>
|
|
5300
|
+
Exclude: [, (_) => de_ScanCriterion(_, context), `exclude`],
|
|
5301
|
+
Include: [, (_) => de_ScanCriterion(_, context), `include`],
|
|
5215
5302
|
});
|
|
5216
5303
|
};
|
|
5217
5304
|
const de_ScanResultDetails = (output, context) => {
|
|
@@ -5229,7 +5316,7 @@ const de_Scans = (output, context) => {
|
|
|
5229
5316
|
};
|
|
5230
5317
|
const de_ScanThreatName = (output, context) => {
|
|
5231
5318
|
return take(output, {
|
|
5232
|
-
FilePaths: (_) =>
|
|
5319
|
+
FilePaths: [, (_) => de_FilePaths(_, context), `filePaths`],
|
|
5233
5320
|
ItemCount: [, __expectInt32, `itemCount`],
|
|
5234
5321
|
Name: [, __expectString, `name`],
|
|
5235
5322
|
Severity: [, __expectString, `severity`],
|
|
@@ -5264,18 +5351,18 @@ const de_SecurityGroups = (output, context) => {
|
|
|
5264
5351
|
};
|
|
5265
5352
|
const de_Service = (output, context) => {
|
|
5266
5353
|
return take(output, {
|
|
5267
|
-
Action: (_) =>
|
|
5268
|
-
AdditionalInfo: (_) =>
|
|
5354
|
+
Action: [, (_) => de_Action(_, context), `action`],
|
|
5355
|
+
AdditionalInfo: [, (_) => de_ServiceAdditionalInfo(_, context), `additionalInfo`],
|
|
5269
5356
|
Archived: [, __expectBoolean, `archived`],
|
|
5270
5357
|
Count: [, __expectInt32, `count`],
|
|
5271
5358
|
DetectorId: [, __expectString, `detectorId`],
|
|
5272
|
-
EbsVolumeScanDetails: (_) =>
|
|
5359
|
+
EbsVolumeScanDetails: [, (_) => de_EbsVolumeScanDetails(_, context), `ebsVolumeScanDetails`],
|
|
5273
5360
|
EventFirstSeen: [, __expectString, `eventFirstSeen`],
|
|
5274
5361
|
EventLastSeen: [, __expectString, `eventLastSeen`],
|
|
5275
|
-
Evidence: (_) =>
|
|
5362
|
+
Evidence: [, (_) => de_Evidence(_, context), `evidence`],
|
|
5276
5363
|
FeatureName: [, __expectString, `featureName`],
|
|
5277
5364
|
ResourceRole: [, __expectString, `resourceRole`],
|
|
5278
|
-
RuntimeDetails: (_) =>
|
|
5365
|
+
RuntimeDetails: [, (_) => de_RuntimeDetails(_, context), `runtimeDetails`],
|
|
5279
5366
|
ServiceName: [, __expectString, `serviceName`],
|
|
5280
5367
|
UserFeedback: [, __expectString, `userFeedback`],
|
|
5281
5368
|
});
|
|
@@ -5304,7 +5391,7 @@ const de_ThreatDetectedByName = (output, context) => {
|
|
|
5304
5391
|
return take(output, {
|
|
5305
5392
|
ItemCount: [, __expectInt32, `itemCount`],
|
|
5306
5393
|
Shortened: [, __expectBoolean, `shortened`],
|
|
5307
|
-
ThreatNames: (_) =>
|
|
5394
|
+
ThreatNames: [, (_) => de_ScanThreatNames(_, context), `threatNames`],
|
|
5308
5395
|
UniqueThreatNameCount: [, __expectInt32, `uniqueThreatNameCount`],
|
|
5309
5396
|
});
|
|
5310
5397
|
};
|
|
@@ -5355,13 +5442,13 @@ const de_UnprocessedAccounts = (output, context) => {
|
|
|
5355
5442
|
};
|
|
5356
5443
|
const de_UnprocessedDataSourcesResult = (output, context) => {
|
|
5357
5444
|
return take(output, {
|
|
5358
|
-
MalwareProtection: (_) =>
|
|
5445
|
+
MalwareProtection: [, (_) => de_MalwareProtectionConfigurationResult(_, context), `malwareProtection`],
|
|
5359
5446
|
});
|
|
5360
5447
|
};
|
|
5361
5448
|
const de_UsageAccountResult = (output, context) => {
|
|
5362
5449
|
return take(output, {
|
|
5363
5450
|
AccountId: [, __expectString, `accountId`],
|
|
5364
|
-
Total: (_) =>
|
|
5451
|
+
Total: [, (_) => de_Total(_, context), `total`],
|
|
5365
5452
|
});
|
|
5366
5453
|
};
|
|
5367
5454
|
const de_UsageAccountResultList = (output, context) => {
|
|
@@ -5375,7 +5462,7 @@ const de_UsageAccountResultList = (output, context) => {
|
|
|
5375
5462
|
const de_UsageDataSourceResult = (output, context) => {
|
|
5376
5463
|
return take(output, {
|
|
5377
5464
|
DataSource: [, __expectString, `dataSource`],
|
|
5378
|
-
Total: (_) =>
|
|
5465
|
+
Total: [, (_) => de_Total(_, context), `total`],
|
|
5379
5466
|
});
|
|
5380
5467
|
};
|
|
5381
5468
|
const de_UsageDataSourceResultList = (output, context) => {
|
|
@@ -5389,7 +5476,7 @@ const de_UsageDataSourceResultList = (output, context) => {
|
|
|
5389
5476
|
const de_UsageFeatureResult = (output, context) => {
|
|
5390
5477
|
return take(output, {
|
|
5391
5478
|
Feature: [, __expectString, `feature`],
|
|
5392
|
-
Total: (_) =>
|
|
5479
|
+
Total: [, (_) => de_Total(_, context), `total`],
|
|
5393
5480
|
});
|
|
5394
5481
|
};
|
|
5395
5482
|
const de_UsageFeatureResultList = (output, context) => {
|
|
@@ -5403,7 +5490,7 @@ const de_UsageFeatureResultList = (output, context) => {
|
|
|
5403
5490
|
const de_UsageResourceResult = (output, context) => {
|
|
5404
5491
|
return take(output, {
|
|
5405
5492
|
Resource: [, __expectString, `resource`],
|
|
5406
|
-
Total: (_) =>
|
|
5493
|
+
Total: [, (_) => de_Total(_, context), `total`],
|
|
5407
5494
|
});
|
|
5408
5495
|
};
|
|
5409
5496
|
const de_UsageResourceResultList = (output, context) => {
|
|
@@ -5416,16 +5503,16 @@ const de_UsageResourceResultList = (output, context) => {
|
|
|
5416
5503
|
};
|
|
5417
5504
|
const de_UsageStatistics = (output, context) => {
|
|
5418
5505
|
return take(output, {
|
|
5419
|
-
SumByAccount: (_) =>
|
|
5420
|
-
SumByDataSource: (_) =>
|
|
5421
|
-
SumByFeature: (_) =>
|
|
5422
|
-
SumByResource: (_) =>
|
|
5423
|
-
TopResources: (_) =>
|
|
5506
|
+
SumByAccount: [, (_) => de_UsageAccountResultList(_, context), `sumByAccount`],
|
|
5507
|
+
SumByDataSource: [, (_) => de_UsageDataSourceResultList(_, context), `sumByDataSource`],
|
|
5508
|
+
SumByFeature: [, (_) => de_UsageFeatureResultList(_, context), `sumByFeature`],
|
|
5509
|
+
SumByResource: [, (_) => de_UsageResourceResultList(_, context), `sumByResource`],
|
|
5510
|
+
TopResources: [, (_) => de_UsageResourceResultList(_, context), `topResources`],
|
|
5424
5511
|
});
|
|
5425
5512
|
};
|
|
5426
5513
|
const de_Volume = (output, context) => {
|
|
5427
5514
|
return take(output, {
|
|
5428
|
-
HostPath: (_) =>
|
|
5515
|
+
HostPath: [, (_) => de_HostPath(_, context), `hostPath`],
|
|
5429
5516
|
Name: [, __expectString, `name`],
|
|
5430
5517
|
});
|
|
5431
5518
|
};
|
|
@@ -5472,7 +5559,7 @@ const de_Volumes = (output, context) => {
|
|
|
5472
5559
|
};
|
|
5473
5560
|
const de_VpcConfig = (output, context) => {
|
|
5474
5561
|
return take(output, {
|
|
5475
|
-
SecurityGroups: (_) =>
|
|
5562
|
+
SecurityGroups: [, (_) => de_SecurityGroups(_, context), `securityGroups`],
|
|
5476
5563
|
SubnetIds: [, _json, `subnetIds`],
|
|
5477
5564
|
VpcId: [, __expectString, `vpcId`],
|
|
5478
5565
|
});
|