@aws-sdk/client-guardduty 3.292.0 → 3.294.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/models/models_0.js +111 -6
- package/dist-cjs/pagination/DescribeOrganizationConfigurationPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +226 -0
- package/dist-es/models/models_0.js +93 -0
- package/dist-es/pagination/DescribeOrganizationConfigurationPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +226 -0
- package/dist-types/GuardDuty.d.ts +2 -1
- package/dist-types/commands/CreateFilterCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +400 -5
- package/dist-types/pagination/DescribeOrganizationConfigurationPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +163 -2
- package/dist-types/ts3.4/pagination/DescribeOrganizationConfigurationPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/package.json +7 -7
|
@@ -89,6 +89,9 @@ const serializeAws_restJson1CreateDetectorCommand = async (input, context) => {
|
|
|
89
89
|
dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
|
|
90
90
|
}),
|
|
91
91
|
...(input.Enable != null && { enable: input.Enable }),
|
|
92
|
+
...(input.Features != null && {
|
|
93
|
+
features: serializeAws_restJson1DetectorFeatureConfigurations(input.Features, context),
|
|
94
|
+
}),
|
|
92
95
|
...(input.FindingPublishingFrequency != null && { findingPublishingFrequency: input.FindingPublishingFrequency }),
|
|
93
96
|
...(input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
94
97
|
});
|
|
@@ -452,6 +455,10 @@ const serializeAws_restJson1DescribeOrganizationConfigurationCommand = async (in
|
|
|
452
455
|
const headers = {};
|
|
453
456
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/admin";
|
|
454
457
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
458
|
+
const query = map({
|
|
459
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
460
|
+
nextToken: [, input.NextToken],
|
|
461
|
+
});
|
|
455
462
|
let body;
|
|
456
463
|
return new protocol_http_1.HttpRequest({
|
|
457
464
|
protocol,
|
|
@@ -460,6 +467,7 @@ const serializeAws_restJson1DescribeOrganizationConfigurationCommand = async (in
|
|
|
460
467
|
method: "GET",
|
|
461
468
|
headers,
|
|
462
469
|
path: resolvedPath,
|
|
470
|
+
query,
|
|
463
471
|
body,
|
|
464
472
|
});
|
|
465
473
|
};
|
|
@@ -1247,6 +1255,9 @@ const serializeAws_restJson1UpdateDetectorCommand = async (input, context) => {
|
|
|
1247
1255
|
dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
|
|
1248
1256
|
}),
|
|
1249
1257
|
...(input.Enable != null && { enable: input.Enable }),
|
|
1258
|
+
...(input.Features != null && {
|
|
1259
|
+
features: serializeAws_restJson1DetectorFeatureConfigurations(input.Features, context),
|
|
1260
|
+
}),
|
|
1250
1261
|
...(input.FindingPublishingFrequency != null && { findingPublishingFrequency: input.FindingPublishingFrequency }),
|
|
1251
1262
|
});
|
|
1252
1263
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1378,6 +1389,9 @@ const serializeAws_restJson1UpdateMemberDetectorsCommand = async (input, context
|
|
|
1378
1389
|
...(input.DataSources != null && {
|
|
1379
1390
|
dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
|
|
1380
1391
|
}),
|
|
1392
|
+
...(input.Features != null && {
|
|
1393
|
+
features: serializeAws_restJson1MemberFeaturesConfigurations(input.Features, context),
|
|
1394
|
+
}),
|
|
1381
1395
|
});
|
|
1382
1396
|
return new protocol_http_1.HttpRequest({
|
|
1383
1397
|
protocol,
|
|
@@ -1403,6 +1417,9 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
1403
1417
|
...(input.DataSources != null && {
|
|
1404
1418
|
dataSources: serializeAws_restJson1OrganizationDataSourceConfigurations(input.DataSources, context),
|
|
1405
1419
|
}),
|
|
1420
|
+
...(input.Features != null && {
|
|
1421
|
+
features: serializeAws_restJson1OrganizationFeaturesConfigurations(input.Features, context),
|
|
1422
|
+
}),
|
|
1406
1423
|
});
|
|
1407
1424
|
return new protocol_http_1.HttpRequest({
|
|
1408
1425
|
protocol,
|
|
@@ -2163,9 +2180,15 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (
|
|
|
2163
2180
|
if (data.dataSources != null) {
|
|
2164
2181
|
contents.DataSources = deserializeAws_restJson1OrganizationDataSourceConfigurationsResult(data.dataSources, context);
|
|
2165
2182
|
}
|
|
2183
|
+
if (data.features != null) {
|
|
2184
|
+
contents.Features = deserializeAws_restJson1OrganizationFeaturesConfigurationsResults(data.features, context);
|
|
2185
|
+
}
|
|
2166
2186
|
if (data.memberAccountLimitReached != null) {
|
|
2167
2187
|
contents.MemberAccountLimitReached = (0, smithy_client_1.expectBoolean)(data.memberAccountLimitReached);
|
|
2168
2188
|
}
|
|
2189
|
+
if (data.nextToken != null) {
|
|
2190
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2191
|
+
}
|
|
2169
2192
|
return contents;
|
|
2170
2193
|
};
|
|
2171
2194
|
exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deserializeAws_restJson1DescribeOrganizationConfigurationCommand;
|
|
@@ -2465,6 +2488,9 @@ const deserializeAws_restJson1GetDetectorCommand = async (output, context) => {
|
|
|
2465
2488
|
if (data.dataSources != null) {
|
|
2466
2489
|
contents.DataSources = deserializeAws_restJson1DataSourceConfigurationsResult(data.dataSources, context);
|
|
2467
2490
|
}
|
|
2491
|
+
if (data.features != null) {
|
|
2492
|
+
contents.Features = deserializeAws_restJson1DetectorFeatureConfigurationsResults(data.features, context);
|
|
2493
|
+
}
|
|
2468
2494
|
if (data.findingPublishingFrequency != null) {
|
|
2469
2495
|
contents.FindingPublishingFrequency = (0, smithy_client_1.expectString)(data.findingPublishingFrequency);
|
|
2470
2496
|
}
|
|
@@ -4026,6 +4052,19 @@ const serializeAws_restJson1DestinationProperties = (input, context) => {
|
|
|
4026
4052
|
...(input.KmsKeyArn != null && { kmsKeyArn: input.KmsKeyArn }),
|
|
4027
4053
|
};
|
|
4028
4054
|
};
|
|
4055
|
+
const serializeAws_restJson1DetectorFeatureConfiguration = (input, context) => {
|
|
4056
|
+
return {
|
|
4057
|
+
...(input.Name != null && { name: input.Name }),
|
|
4058
|
+
...(input.Status != null && { status: input.Status }),
|
|
4059
|
+
};
|
|
4060
|
+
};
|
|
4061
|
+
const serializeAws_restJson1DetectorFeatureConfigurations = (input, context) => {
|
|
4062
|
+
return input
|
|
4063
|
+
.filter((e) => e != null)
|
|
4064
|
+
.map((entry) => {
|
|
4065
|
+
return serializeAws_restJson1DetectorFeatureConfiguration(entry, context);
|
|
4066
|
+
});
|
|
4067
|
+
};
|
|
4029
4068
|
const serializeAws_restJson1Eq = (input, context) => {
|
|
4030
4069
|
return input
|
|
4031
4070
|
.filter((e) => e != null)
|
|
@@ -4121,6 +4160,19 @@ const serializeAws_restJson1MapEquals = (input, context) => {
|
|
|
4121
4160
|
return serializeAws_restJson1ScanConditionPair(entry, context);
|
|
4122
4161
|
});
|
|
4123
4162
|
};
|
|
4163
|
+
const serializeAws_restJson1MemberFeaturesConfiguration = (input, context) => {
|
|
4164
|
+
return {
|
|
4165
|
+
...(input.Name != null && { name: input.Name }),
|
|
4166
|
+
...(input.Status != null && { status: input.Status }),
|
|
4167
|
+
};
|
|
4168
|
+
};
|
|
4169
|
+
const serializeAws_restJson1MemberFeaturesConfigurations = (input, context) => {
|
|
4170
|
+
return input
|
|
4171
|
+
.filter((e) => e != null)
|
|
4172
|
+
.map((entry) => {
|
|
4173
|
+
return serializeAws_restJson1MemberFeaturesConfiguration(entry, context);
|
|
4174
|
+
});
|
|
4175
|
+
};
|
|
4124
4176
|
const serializeAws_restJson1Neq = (input, context) => {
|
|
4125
4177
|
return input
|
|
4126
4178
|
.filter((e) => e != null)
|
|
@@ -4153,6 +4205,19 @@ const serializeAws_restJson1OrganizationEbsVolumes = (input, context) => {
|
|
|
4153
4205
|
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4154
4206
|
};
|
|
4155
4207
|
};
|
|
4208
|
+
const serializeAws_restJson1OrganizationFeatureConfiguration = (input, context) => {
|
|
4209
|
+
return {
|
|
4210
|
+
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4211
|
+
...(input.Name != null && { name: input.Name }),
|
|
4212
|
+
};
|
|
4213
|
+
};
|
|
4214
|
+
const serializeAws_restJson1OrganizationFeaturesConfigurations = (input, context) => {
|
|
4215
|
+
return input
|
|
4216
|
+
.filter((e) => e != null)
|
|
4217
|
+
.map((entry) => {
|
|
4218
|
+
return serializeAws_restJson1OrganizationFeatureConfiguration(entry, context);
|
|
4219
|
+
});
|
|
4220
|
+
};
|
|
4156
4221
|
const serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration = (input, context) => {
|
|
4157
4222
|
return {
|
|
4158
4223
|
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
@@ -4246,9 +4311,17 @@ const serializeAws_restJson1UsageCriteria = (input, context) => {
|
|
|
4246
4311
|
return {
|
|
4247
4312
|
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
4248
4313
|
...(input.DataSources != null && { dataSources: serializeAws_restJson1DataSourceList(input.DataSources, context) }),
|
|
4314
|
+
...(input.Features != null && { features: serializeAws_restJson1UsageFeatureList(input.Features, context) }),
|
|
4249
4315
|
...(input.Resources != null && { resources: serializeAws_restJson1ResourceList(input.Resources, context) }),
|
|
4250
4316
|
};
|
|
4251
4317
|
};
|
|
4318
|
+
const serializeAws_restJson1UsageFeatureList = (input, context) => {
|
|
4319
|
+
return input
|
|
4320
|
+
.filter((e) => e != null)
|
|
4321
|
+
.map((entry) => {
|
|
4322
|
+
return entry;
|
|
4323
|
+
});
|
|
4324
|
+
};
|
|
4252
4325
|
const deserializeAws_restJson1AccessControlList = (output, context) => {
|
|
4253
4326
|
return {
|
|
4254
4327
|
AllowsPublicReadAccess: (0, smithy_client_1.expectBoolean)(output.allowsPublicReadAccess),
|
|
@@ -4269,6 +4342,9 @@ const deserializeAws_restJson1AccountFreeTrialInfo = (output, context) => {
|
|
|
4269
4342
|
DataSources: output.dataSources != null
|
|
4270
4343
|
? deserializeAws_restJson1DataSourcesFreeTrial(output.dataSources, context)
|
|
4271
4344
|
: undefined,
|
|
4345
|
+
Features: output.features != null
|
|
4346
|
+
? deserializeAws_restJson1FreeTrialFeatureConfigurationsResults(output.features, context)
|
|
4347
|
+
: undefined,
|
|
4272
4348
|
};
|
|
4273
4349
|
};
|
|
4274
4350
|
const deserializeAws_restJson1AccountFreeTrialInfos = (output, context) => {
|
|
@@ -4307,6 +4383,9 @@ const deserializeAws_restJson1Action = (output, context) => {
|
|
|
4307
4383
|
PortProbeAction: output.portProbeAction != null
|
|
4308
4384
|
? deserializeAws_restJson1PortProbeAction(output.portProbeAction, context)
|
|
4309
4385
|
: undefined,
|
|
4386
|
+
RdsLoginAttemptAction: output.rdsLoginAttemptAction != null
|
|
4387
|
+
? deserializeAws_restJson1RdsLoginAttemptAction(output.rdsLoginAttemptAction, context)
|
|
4388
|
+
: undefined,
|
|
4310
4389
|
};
|
|
4311
4390
|
};
|
|
4312
4391
|
const deserializeAws_restJson1AdminAccount = (output, context) => {
|
|
@@ -4528,6 +4607,24 @@ const deserializeAws_restJson1Destinations = (output, context) => {
|
|
|
4528
4607
|
});
|
|
4529
4608
|
return retVal;
|
|
4530
4609
|
};
|
|
4610
|
+
const deserializeAws_restJson1DetectorFeatureConfigurationResult = (output, context) => {
|
|
4611
|
+
return {
|
|
4612
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4613
|
+
Status: (0, smithy_client_1.expectString)(output.status),
|
|
4614
|
+
UpdatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
4615
|
+
};
|
|
4616
|
+
};
|
|
4617
|
+
const deserializeAws_restJson1DetectorFeatureConfigurationsResults = (output, context) => {
|
|
4618
|
+
const retVal = (output || [])
|
|
4619
|
+
.filter((e) => e != null)
|
|
4620
|
+
.map((entry) => {
|
|
4621
|
+
if (entry === null) {
|
|
4622
|
+
return null;
|
|
4623
|
+
}
|
|
4624
|
+
return deserializeAws_restJson1DetectorFeatureConfigurationResult(entry, context);
|
|
4625
|
+
});
|
|
4626
|
+
return retVal;
|
|
4627
|
+
};
|
|
4531
4628
|
const deserializeAws_restJson1DetectorIds = (output, context) => {
|
|
4532
4629
|
const retVal = (output || [])
|
|
4533
4630
|
.filter((e) => e != null)
|
|
@@ -4733,6 +4830,23 @@ const deserializeAws_restJson1FlowLogsConfigurationResult = (output, context) =>
|
|
|
4733
4830
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
4734
4831
|
};
|
|
4735
4832
|
};
|
|
4833
|
+
const deserializeAws_restJson1FreeTrialFeatureConfigurationResult = (output, context) => {
|
|
4834
|
+
return {
|
|
4835
|
+
FreeTrialDaysRemaining: (0, smithy_client_1.expectInt32)(output.freeTrialDaysRemaining),
|
|
4836
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4837
|
+
};
|
|
4838
|
+
};
|
|
4839
|
+
const deserializeAws_restJson1FreeTrialFeatureConfigurationsResults = (output, context) => {
|
|
4840
|
+
const retVal = (output || [])
|
|
4841
|
+
.filter((e) => e != null)
|
|
4842
|
+
.map((entry) => {
|
|
4843
|
+
if (entry === null) {
|
|
4844
|
+
return null;
|
|
4845
|
+
}
|
|
4846
|
+
return deserializeAws_restJson1FreeTrialFeatureConfigurationResult(entry, context);
|
|
4847
|
+
});
|
|
4848
|
+
return retVal;
|
|
4849
|
+
};
|
|
4736
4850
|
const deserializeAws_restJson1GeoLocation = (output, context) => {
|
|
4737
4851
|
return {
|
|
4738
4852
|
Lat: (0, smithy_client_1.limitedParseDouble)(output.lat),
|
|
@@ -4899,6 +5013,25 @@ const deserializeAws_restJson1LocalPortDetails = (output, context) => {
|
|
|
4899
5013
|
PortName: (0, smithy_client_1.expectString)(output.portName),
|
|
4900
5014
|
};
|
|
4901
5015
|
};
|
|
5016
|
+
const deserializeAws_restJson1LoginAttribute = (output, context) => {
|
|
5017
|
+
return {
|
|
5018
|
+
Application: (0, smithy_client_1.expectString)(output.application),
|
|
5019
|
+
FailedLoginAttempts: (0, smithy_client_1.expectInt32)(output.failedLoginAttempts),
|
|
5020
|
+
SuccessfulLoginAttempts: (0, smithy_client_1.expectInt32)(output.successfulLoginAttempts),
|
|
5021
|
+
User: (0, smithy_client_1.expectString)(output.user),
|
|
5022
|
+
};
|
|
5023
|
+
};
|
|
5024
|
+
const deserializeAws_restJson1LoginAttributes = (output, context) => {
|
|
5025
|
+
const retVal = (output || [])
|
|
5026
|
+
.filter((e) => e != null)
|
|
5027
|
+
.map((entry) => {
|
|
5028
|
+
if (entry === null) {
|
|
5029
|
+
return null;
|
|
5030
|
+
}
|
|
5031
|
+
return deserializeAws_restJson1LoginAttribute(entry, context);
|
|
5032
|
+
});
|
|
5033
|
+
return retVal;
|
|
5034
|
+
};
|
|
4902
5035
|
const deserializeAws_restJson1MalwareProtectionConfigurationResult = (output, context) => {
|
|
4903
5036
|
return {
|
|
4904
5037
|
ScanEc2InstanceWithFindings: output.scanEc2InstanceWithFindings != null
|
|
@@ -4951,6 +5084,9 @@ const deserializeAws_restJson1MemberDataSourceConfiguration = (output, context)
|
|
|
4951
5084
|
DataSources: output.dataSources != null
|
|
4952
5085
|
? deserializeAws_restJson1DataSourceConfigurationsResult(output.dataSources, context)
|
|
4953
5086
|
: undefined,
|
|
5087
|
+
Features: output.features != null
|
|
5088
|
+
? deserializeAws_restJson1MemberFeaturesConfigurationsResults(output.features, context)
|
|
5089
|
+
: undefined,
|
|
4954
5090
|
};
|
|
4955
5091
|
};
|
|
4956
5092
|
const deserializeAws_restJson1MemberDataSourceConfigurations = (output, context) => {
|
|
@@ -4964,6 +5100,24 @@ const deserializeAws_restJson1MemberDataSourceConfigurations = (output, context)
|
|
|
4964
5100
|
});
|
|
4965
5101
|
return retVal;
|
|
4966
5102
|
};
|
|
5103
|
+
const deserializeAws_restJson1MemberFeaturesConfigurationResult = (output, context) => {
|
|
5104
|
+
return {
|
|
5105
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5106
|
+
Status: (0, smithy_client_1.expectString)(output.status),
|
|
5107
|
+
UpdatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
5108
|
+
};
|
|
5109
|
+
};
|
|
5110
|
+
const deserializeAws_restJson1MemberFeaturesConfigurationsResults = (output, context) => {
|
|
5111
|
+
const retVal = (output || [])
|
|
5112
|
+
.filter((e) => e != null)
|
|
5113
|
+
.map((entry) => {
|
|
5114
|
+
if (entry === null) {
|
|
5115
|
+
return null;
|
|
5116
|
+
}
|
|
5117
|
+
return deserializeAws_restJson1MemberFeaturesConfigurationResult(entry, context);
|
|
5118
|
+
});
|
|
5119
|
+
return retVal;
|
|
5120
|
+
};
|
|
4967
5121
|
const deserializeAws_restJson1Members = (output, context) => {
|
|
4968
5122
|
const retVal = (output || [])
|
|
4969
5123
|
.filter((e) => e != null)
|
|
@@ -5071,6 +5225,23 @@ const deserializeAws_restJson1OrganizationEbsVolumesResult = (output, context) =
|
|
|
5071
5225
|
AutoEnable: (0, smithy_client_1.expectBoolean)(output.autoEnable),
|
|
5072
5226
|
};
|
|
5073
5227
|
};
|
|
5228
|
+
const deserializeAws_restJson1OrganizationFeatureConfigurationResult = (output, context) => {
|
|
5229
|
+
return {
|
|
5230
|
+
AutoEnable: (0, smithy_client_1.expectString)(output.autoEnable),
|
|
5231
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5232
|
+
};
|
|
5233
|
+
};
|
|
5234
|
+
const deserializeAws_restJson1OrganizationFeaturesConfigurationsResults = (output, context) => {
|
|
5235
|
+
const retVal = (output || [])
|
|
5236
|
+
.filter((e) => e != null)
|
|
5237
|
+
.map((entry) => {
|
|
5238
|
+
if (entry === null) {
|
|
5239
|
+
return null;
|
|
5240
|
+
}
|
|
5241
|
+
return deserializeAws_restJson1OrganizationFeatureConfigurationResult(entry, context);
|
|
5242
|
+
});
|
|
5243
|
+
return retVal;
|
|
5244
|
+
};
|
|
5074
5245
|
const deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult = (output, context) => {
|
|
5075
5246
|
return {
|
|
5076
5247
|
AutoEnable: (0, smithy_client_1.expectBoolean)(output.autoEnable),
|
|
@@ -5191,6 +5362,35 @@ const deserializeAws_restJson1PublicAccess = (output, context) => {
|
|
|
5191
5362
|
: undefined,
|
|
5192
5363
|
};
|
|
5193
5364
|
};
|
|
5365
|
+
const deserializeAws_restJson1RdsDbInstanceDetails = (output, context) => {
|
|
5366
|
+
return {
|
|
5367
|
+
DbClusterIdentifier: (0, smithy_client_1.expectString)(output.dbClusterIdentifier),
|
|
5368
|
+
DbInstanceArn: (0, smithy_client_1.expectString)(output.dbInstanceArn),
|
|
5369
|
+
DbInstanceIdentifier: (0, smithy_client_1.expectString)(output.dbInstanceIdentifier),
|
|
5370
|
+
Engine: (0, smithy_client_1.expectString)(output.engine),
|
|
5371
|
+
EngineVersion: (0, smithy_client_1.expectString)(output.engineVersion),
|
|
5372
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
5373
|
+
};
|
|
5374
|
+
};
|
|
5375
|
+
const deserializeAws_restJson1RdsDbUserDetails = (output, context) => {
|
|
5376
|
+
return {
|
|
5377
|
+
Application: (0, smithy_client_1.expectString)(output.application),
|
|
5378
|
+
AuthMethod: (0, smithy_client_1.expectString)(output.authMethod),
|
|
5379
|
+
Database: (0, smithy_client_1.expectString)(output.database),
|
|
5380
|
+
Ssl: (0, smithy_client_1.expectString)(output.ssl),
|
|
5381
|
+
User: (0, smithy_client_1.expectString)(output.user),
|
|
5382
|
+
};
|
|
5383
|
+
};
|
|
5384
|
+
const deserializeAws_restJson1RdsLoginAttemptAction = (output, context) => {
|
|
5385
|
+
return {
|
|
5386
|
+
LoginAttributes: output.LoginAttributes != null
|
|
5387
|
+
? deserializeAws_restJson1LoginAttributes(output.LoginAttributes, context)
|
|
5388
|
+
: undefined,
|
|
5389
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
5390
|
+
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5391
|
+
: undefined,
|
|
5392
|
+
};
|
|
5393
|
+
};
|
|
5194
5394
|
const deserializeAws_restJson1RemoteAccountDetails = (output, context) => {
|
|
5195
5395
|
return {
|
|
5196
5396
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
@@ -5233,6 +5433,12 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
5233
5433
|
KubernetesDetails: output.kubernetesDetails != null
|
|
5234
5434
|
? deserializeAws_restJson1KubernetesDetails(output.kubernetesDetails, context)
|
|
5235
5435
|
: undefined,
|
|
5436
|
+
RdsDbInstanceDetails: output.rdsDbInstanceDetails != null
|
|
5437
|
+
? deserializeAws_restJson1RdsDbInstanceDetails(output.rdsDbInstanceDetails, context)
|
|
5438
|
+
: undefined,
|
|
5439
|
+
RdsDbUserDetails: output.rdsDbUserDetails != null
|
|
5440
|
+
? deserializeAws_restJson1RdsDbUserDetails(output.rdsDbUserDetails, context)
|
|
5441
|
+
: undefined,
|
|
5236
5442
|
ResourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
5237
5443
|
S3BucketDetails: output.s3BucketDetails != null
|
|
5238
5444
|
? deserializeAws_restJson1S3BucketDetails(output.s3BucketDetails, context)
|
|
@@ -5620,6 +5826,23 @@ const deserializeAws_restJson1UsageDataSourceResultList = (output, context) => {
|
|
|
5620
5826
|
});
|
|
5621
5827
|
return retVal;
|
|
5622
5828
|
};
|
|
5829
|
+
const deserializeAws_restJson1UsageFeatureResult = (output, context) => {
|
|
5830
|
+
return {
|
|
5831
|
+
Feature: (0, smithy_client_1.expectString)(output.feature),
|
|
5832
|
+
Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
|
|
5833
|
+
};
|
|
5834
|
+
};
|
|
5835
|
+
const deserializeAws_restJson1UsageFeatureResultList = (output, context) => {
|
|
5836
|
+
const retVal = (output || [])
|
|
5837
|
+
.filter((e) => e != null)
|
|
5838
|
+
.map((entry) => {
|
|
5839
|
+
if (entry === null) {
|
|
5840
|
+
return null;
|
|
5841
|
+
}
|
|
5842
|
+
return deserializeAws_restJson1UsageFeatureResult(entry, context);
|
|
5843
|
+
});
|
|
5844
|
+
return retVal;
|
|
5845
|
+
};
|
|
5623
5846
|
const deserializeAws_restJson1UsageResourceResult = (output, context) => {
|
|
5624
5847
|
return {
|
|
5625
5848
|
Resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -5645,6 +5868,9 @@ const deserializeAws_restJson1UsageStatistics = (output, context) => {
|
|
|
5645
5868
|
SumByDataSource: output.sumByDataSource != null
|
|
5646
5869
|
? deserializeAws_restJson1UsageDataSourceResultList(output.sumByDataSource, context)
|
|
5647
5870
|
: undefined,
|
|
5871
|
+
SumByFeature: output.sumByFeature != null
|
|
5872
|
+
? deserializeAws_restJson1UsageFeatureResultList(output.sumByFeature, context)
|
|
5873
|
+
: undefined,
|
|
5648
5874
|
SumByResource: output.sumByResource != null
|
|
5649
5875
|
? deserializeAws_restJson1UsageResourceResultList(output.sumByResource, context)
|
|
5650
5876
|
: undefined,
|
|
@@ -27,6 +27,16 @@ export class InternalServerErrorException extends __BaseException {
|
|
|
27
27
|
this.Type = opts.Type;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
+
export var FreeTrialFeatureResult;
|
|
31
|
+
(function (FreeTrialFeatureResult) {
|
|
32
|
+
FreeTrialFeatureResult["CLOUD_TRAIL"] = "CLOUD_TRAIL";
|
|
33
|
+
FreeTrialFeatureResult["DNS_LOGS"] = "DNS_LOGS";
|
|
34
|
+
FreeTrialFeatureResult["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
|
|
35
|
+
FreeTrialFeatureResult["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
|
|
36
|
+
FreeTrialFeatureResult["FLOW_LOGS"] = "FLOW_LOGS";
|
|
37
|
+
FreeTrialFeatureResult["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
|
|
38
|
+
FreeTrialFeatureResult["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
|
|
39
|
+
})(FreeTrialFeatureResult || (FreeTrialFeatureResult = {}));
|
|
30
40
|
export var AdminStatus;
|
|
31
41
|
(function (AdminStatus) {
|
|
32
42
|
AdminStatus["DISABLE_IN_PROGRESS"] = "DISABLE_IN_PROGRESS";
|
|
@@ -37,6 +47,18 @@ export var DataSourceStatus;
|
|
|
37
47
|
DataSourceStatus["DISABLED"] = "DISABLED";
|
|
38
48
|
DataSourceStatus["ENABLED"] = "ENABLED";
|
|
39
49
|
})(DataSourceStatus || (DataSourceStatus = {}));
|
|
50
|
+
export var DetectorFeature;
|
|
51
|
+
(function (DetectorFeature) {
|
|
52
|
+
DetectorFeature["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
|
|
53
|
+
DetectorFeature["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
|
|
54
|
+
DetectorFeature["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
|
|
55
|
+
DetectorFeature["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
|
|
56
|
+
})(DetectorFeature || (DetectorFeature = {}));
|
|
57
|
+
export var FeatureStatus;
|
|
58
|
+
(function (FeatureStatus) {
|
|
59
|
+
FeatureStatus["DISABLED"] = "DISABLED";
|
|
60
|
+
FeatureStatus["ENABLED"] = "ENABLED";
|
|
61
|
+
})(FeatureStatus || (FeatureStatus = {}));
|
|
40
62
|
export var FindingPublishingFrequency;
|
|
41
63
|
(function (FindingPublishingFrequency) {
|
|
42
64
|
FindingPublishingFrequency["FIFTEEN_MINUTES"] = "FIFTEEN_MINUTES";
|
|
@@ -104,6 +126,18 @@ export var ScanStatus;
|
|
|
104
126
|
ScanStatus["FAILED"] = "FAILED";
|
|
105
127
|
ScanStatus["RUNNING"] = "RUNNING";
|
|
106
128
|
})(ScanStatus || (ScanStatus = {}));
|
|
129
|
+
export var OrgFeatureStatus;
|
|
130
|
+
(function (OrgFeatureStatus) {
|
|
131
|
+
OrgFeatureStatus["NEW"] = "NEW";
|
|
132
|
+
OrgFeatureStatus["NONE"] = "NONE";
|
|
133
|
+
})(OrgFeatureStatus || (OrgFeatureStatus = {}));
|
|
134
|
+
export var OrgFeature;
|
|
135
|
+
(function (OrgFeature) {
|
|
136
|
+
OrgFeature["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
|
|
137
|
+
OrgFeature["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
|
|
138
|
+
OrgFeature["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
|
|
139
|
+
OrgFeature["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
|
|
140
|
+
})(OrgFeature || (OrgFeature = {}));
|
|
107
141
|
export var PublishingStatus;
|
|
108
142
|
(function (PublishingStatus) {
|
|
109
143
|
PublishingStatus["PENDING_VERIFICATION"] = "PENDING_VERIFICATION";
|
|
@@ -111,6 +145,16 @@ export var PublishingStatus;
|
|
|
111
145
|
PublishingStatus["STOPPED"] = "STOPPED";
|
|
112
146
|
PublishingStatus["UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY"] = "UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY";
|
|
113
147
|
})(PublishingStatus || (PublishingStatus = {}));
|
|
148
|
+
export var DetectorFeatureResult;
|
|
149
|
+
(function (DetectorFeatureResult) {
|
|
150
|
+
DetectorFeatureResult["CLOUD_TRAIL"] = "CLOUD_TRAIL";
|
|
151
|
+
DetectorFeatureResult["DNS_LOGS"] = "DNS_LOGS";
|
|
152
|
+
DetectorFeatureResult["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
|
|
153
|
+
DetectorFeatureResult["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
|
|
154
|
+
DetectorFeatureResult["FLOW_LOGS"] = "FLOW_LOGS";
|
|
155
|
+
DetectorFeatureResult["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
|
|
156
|
+
DetectorFeatureResult["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
|
|
157
|
+
})(DetectorFeatureResult || (DetectorFeatureResult = {}));
|
|
114
158
|
export var DetectorStatus;
|
|
115
159
|
(function (DetectorStatus) {
|
|
116
160
|
DetectorStatus["DISABLED"] = "DISABLED";
|
|
@@ -154,10 +198,23 @@ export var ThreatIntelSetStatus;
|
|
|
154
198
|
ThreatIntelSetStatus["ERROR"] = "ERROR";
|
|
155
199
|
ThreatIntelSetStatus["INACTIVE"] = "INACTIVE";
|
|
156
200
|
})(ThreatIntelSetStatus || (ThreatIntelSetStatus = {}));
|
|
201
|
+
export var UsageFeature;
|
|
202
|
+
(function (UsageFeature) {
|
|
203
|
+
UsageFeature["CLOUD_TRAIL"] = "CLOUD_TRAIL";
|
|
204
|
+
UsageFeature["DNS_LOGS"] = "DNS_LOGS";
|
|
205
|
+
UsageFeature["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
|
|
206
|
+
UsageFeature["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
|
|
207
|
+
UsageFeature["EKS_RUNTIME_MONITORING"] = "EKS_RUNTIME_MONITORING";
|
|
208
|
+
UsageFeature["FLOW_LOGS"] = "FLOW_LOGS";
|
|
209
|
+
UsageFeature["LAMBDA_NETWORK_LOGS"] = "LAMBDA_NETWORK_LOGS";
|
|
210
|
+
UsageFeature["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
|
|
211
|
+
UsageFeature["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
|
|
212
|
+
})(UsageFeature || (UsageFeature = {}));
|
|
157
213
|
export var UsageStatisticType;
|
|
158
214
|
(function (UsageStatisticType) {
|
|
159
215
|
UsageStatisticType["SUM_BY_ACCOUNT"] = "SUM_BY_ACCOUNT";
|
|
160
216
|
UsageStatisticType["SUM_BY_DATA_SOURCE"] = "SUM_BY_DATA_SOURCE";
|
|
217
|
+
UsageStatisticType["SUM_BY_FEATURES"] = "SUM_BY_FEATURES";
|
|
161
218
|
UsageStatisticType["SUM_BY_RESOURCE"] = "SUM_BY_RESOURCE";
|
|
162
219
|
UsageStatisticType["TOP_RESOURCES"] = "TOP_RESOURCES";
|
|
163
220
|
})(UsageStatisticType || (UsageStatisticType = {}));
|
|
@@ -194,6 +251,9 @@ export const MalwareProtectionDataSourceFreeTrialFilterSensitiveLog = (obj) => (
|
|
|
194
251
|
export const DataSourcesFreeTrialFilterSensitiveLog = (obj) => ({
|
|
195
252
|
...obj,
|
|
196
253
|
});
|
|
254
|
+
export const FreeTrialFeatureConfigurationResultFilterSensitiveLog = (obj) => ({
|
|
255
|
+
...obj,
|
|
256
|
+
});
|
|
197
257
|
export const AccountFreeTrialInfoFilterSensitiveLog = (obj) => ({
|
|
198
258
|
...obj,
|
|
199
259
|
});
|
|
@@ -251,6 +311,12 @@ export const PortProbeDetailFilterSensitiveLog = (obj) => ({
|
|
|
251
311
|
export const PortProbeActionFilterSensitiveLog = (obj) => ({
|
|
252
312
|
...obj,
|
|
253
313
|
});
|
|
314
|
+
export const LoginAttributeFilterSensitiveLog = (obj) => ({
|
|
315
|
+
...obj,
|
|
316
|
+
});
|
|
317
|
+
export const RdsLoginAttemptActionFilterSensitiveLog = (obj) => ({
|
|
318
|
+
...obj,
|
|
319
|
+
});
|
|
254
320
|
export const ActionFilterSensitiveLog = (obj) => ({
|
|
255
321
|
...obj,
|
|
256
322
|
});
|
|
@@ -305,6 +371,9 @@ export const S3LogsConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
305
371
|
export const DataSourceConfigurationsFilterSensitiveLog = (obj) => ({
|
|
306
372
|
...obj,
|
|
307
373
|
});
|
|
374
|
+
export const DetectorFeatureConfigurationFilterSensitiveLog = (obj) => ({
|
|
375
|
+
...obj,
|
|
376
|
+
});
|
|
308
377
|
export const CreateDetectorRequestFilterSensitiveLog = (obj) => ({
|
|
309
378
|
...obj,
|
|
310
379
|
});
|
|
@@ -494,6 +563,9 @@ export const OrganizationS3LogsConfigurationResultFilterSensitiveLog = (obj) =>
|
|
|
494
563
|
export const OrganizationDataSourceConfigurationsResultFilterSensitiveLog = (obj) => ({
|
|
495
564
|
...obj,
|
|
496
565
|
});
|
|
566
|
+
export const OrganizationFeatureConfigurationResultFilterSensitiveLog = (obj) => ({
|
|
567
|
+
...obj,
|
|
568
|
+
});
|
|
497
569
|
export const DescribeOrganizationConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
498
570
|
...obj,
|
|
499
571
|
});
|
|
@@ -506,6 +578,9 @@ export const DescribePublishingDestinationResponseFilterSensitiveLog = (obj) =>
|
|
|
506
578
|
export const DestinationFilterSensitiveLog = (obj) => ({
|
|
507
579
|
...obj,
|
|
508
580
|
});
|
|
581
|
+
export const DetectorFeatureConfigurationResultFilterSensitiveLog = (obj) => ({
|
|
582
|
+
...obj,
|
|
583
|
+
});
|
|
509
584
|
export const DisableOrganizationAdminAccountRequestFilterSensitiveLog = (obj) => ({
|
|
510
585
|
...obj,
|
|
511
586
|
});
|
|
@@ -614,6 +689,12 @@ export const KubernetesWorkloadDetailsFilterSensitiveLog = (obj) => ({
|
|
|
614
689
|
export const KubernetesDetailsFilterSensitiveLog = (obj) => ({
|
|
615
690
|
...obj,
|
|
616
691
|
});
|
|
692
|
+
export const RdsDbInstanceDetailsFilterSensitiveLog = (obj) => ({
|
|
693
|
+
...obj,
|
|
694
|
+
});
|
|
695
|
+
export const RdsDbUserDetailsFilterSensitiveLog = (obj) => ({
|
|
696
|
+
...obj,
|
|
697
|
+
});
|
|
617
698
|
export const OwnerFilterSensitiveLog = (obj) => ({
|
|
618
699
|
...obj,
|
|
619
700
|
});
|
|
@@ -710,6 +791,9 @@ export const GetMasterAccountResponseFilterSensitiveLog = (obj) => ({
|
|
|
710
791
|
export const GetMemberDetectorsRequestFilterSensitiveLog = (obj) => ({
|
|
711
792
|
...obj,
|
|
712
793
|
});
|
|
794
|
+
export const MemberFeaturesConfigurationResultFilterSensitiveLog = (obj) => ({
|
|
795
|
+
...obj,
|
|
796
|
+
});
|
|
713
797
|
export const MemberDataSourceConfigurationFilterSensitiveLog = (obj) => ({
|
|
714
798
|
...obj,
|
|
715
799
|
});
|
|
@@ -752,6 +836,9 @@ export const UsageAccountResultFilterSensitiveLog = (obj) => ({
|
|
|
752
836
|
export const UsageDataSourceResultFilterSensitiveLog = (obj) => ({
|
|
753
837
|
...obj,
|
|
754
838
|
});
|
|
839
|
+
export const UsageFeatureResultFilterSensitiveLog = (obj) => ({
|
|
840
|
+
...obj,
|
|
841
|
+
});
|
|
755
842
|
export const UsageResourceResultFilterSensitiveLog = (obj) => ({
|
|
756
843
|
...obj,
|
|
757
844
|
});
|
|
@@ -890,6 +977,9 @@ export const UpdateMalwareScanSettingsRequestFilterSensitiveLog = (obj) => ({
|
|
|
890
977
|
export const UpdateMalwareScanSettingsResponseFilterSensitiveLog = (obj) => ({
|
|
891
978
|
...obj,
|
|
892
979
|
});
|
|
980
|
+
export const MemberFeaturesConfigurationFilterSensitiveLog = (obj) => ({
|
|
981
|
+
...obj,
|
|
982
|
+
});
|
|
893
983
|
export const UpdateMemberDetectorsRequestFilterSensitiveLog = (obj) => ({
|
|
894
984
|
...obj,
|
|
895
985
|
});
|
|
@@ -917,6 +1007,9 @@ export const OrganizationS3LogsConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
917
1007
|
export const OrganizationDataSourceConfigurationsFilterSensitiveLog = (obj) => ({
|
|
918
1008
|
...obj,
|
|
919
1009
|
});
|
|
1010
|
+
export const OrganizationFeatureConfigurationFilterSensitiveLog = (obj) => ({
|
|
1011
|
+
...obj,
|
|
1012
|
+
});
|
|
920
1013
|
export const UpdateOrganizationConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
921
1014
|
...obj,
|
|
922
1015
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DescribeOrganizationConfigurationCommand, } from "../commands/DescribeOrganizationConfigurationCommand";
|
|
2
|
+
import { GuardDutyClient } from "../GuardDutyClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeOrganizationConfigurationCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeOrganizationConfiguration(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof GuardDutyClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|