@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.
@@ -81,6 +81,9 @@ export const serializeAws_restJson1CreateDetectorCommand = async (input, context
81
81
  dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
82
82
  }),
83
83
  ...(input.Enable != null && { enable: input.Enable }),
84
+ ...(input.Features != null && {
85
+ features: serializeAws_restJson1DetectorFeatureConfigurations(input.Features, context),
86
+ }),
84
87
  ...(input.FindingPublishingFrequency != null && { findingPublishingFrequency: input.FindingPublishingFrequency }),
85
88
  ...(input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) }),
86
89
  });
@@ -428,6 +431,10 @@ export const serializeAws_restJson1DescribeOrganizationConfigurationCommand = as
428
431
  const headers = {};
429
432
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/admin";
430
433
  resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
434
+ const query = map({
435
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
436
+ nextToken: [, input.NextToken],
437
+ });
431
438
  let body;
432
439
  return new __HttpRequest({
433
440
  protocol,
@@ -436,6 +443,7 @@ export const serializeAws_restJson1DescribeOrganizationConfigurationCommand = as
436
443
  method: "GET",
437
444
  headers,
438
445
  path: resolvedPath,
446
+ query,
439
447
  body,
440
448
  });
441
449
  };
@@ -1186,6 +1194,9 @@ export const serializeAws_restJson1UpdateDetectorCommand = async (input, context
1186
1194
  dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
1187
1195
  }),
1188
1196
  ...(input.Enable != null && { enable: input.Enable }),
1197
+ ...(input.Features != null && {
1198
+ features: serializeAws_restJson1DetectorFeatureConfigurations(input.Features, context),
1199
+ }),
1189
1200
  ...(input.FindingPublishingFrequency != null && { findingPublishingFrequency: input.FindingPublishingFrequency }),
1190
1201
  });
1191
1202
  return new __HttpRequest({
@@ -1312,6 +1323,9 @@ export const serializeAws_restJson1UpdateMemberDetectorsCommand = async (input,
1312
1323
  ...(input.DataSources != null && {
1313
1324
  dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
1314
1325
  }),
1326
+ ...(input.Features != null && {
1327
+ features: serializeAws_restJson1MemberFeaturesConfigurations(input.Features, context),
1328
+ }),
1315
1329
  });
1316
1330
  return new __HttpRequest({
1317
1331
  protocol,
@@ -1336,6 +1350,9 @@ export const serializeAws_restJson1UpdateOrganizationConfigurationCommand = asyn
1336
1350
  ...(input.DataSources != null && {
1337
1351
  dataSources: serializeAws_restJson1OrganizationDataSourceConfigurations(input.DataSources, context),
1338
1352
  }),
1353
+ ...(input.Features != null && {
1354
+ features: serializeAws_restJson1OrganizationFeaturesConfigurations(input.Features, context),
1355
+ }),
1339
1356
  });
1340
1357
  return new __HttpRequest({
1341
1358
  protocol,
@@ -2074,9 +2091,15 @@ export const deserializeAws_restJson1DescribeOrganizationConfigurationCommand =
2074
2091
  if (data.dataSources != null) {
2075
2092
  contents.DataSources = deserializeAws_restJson1OrganizationDataSourceConfigurationsResult(data.dataSources, context);
2076
2093
  }
2094
+ if (data.features != null) {
2095
+ contents.Features = deserializeAws_restJson1OrganizationFeaturesConfigurationsResults(data.features, context);
2096
+ }
2077
2097
  if (data.memberAccountLimitReached != null) {
2078
2098
  contents.MemberAccountLimitReached = __expectBoolean(data.memberAccountLimitReached);
2079
2099
  }
2100
+ if (data.nextToken != null) {
2101
+ contents.NextToken = __expectString(data.nextToken);
2102
+ }
2080
2103
  return contents;
2081
2104
  };
2082
2105
  const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
@@ -2368,6 +2391,9 @@ export const deserializeAws_restJson1GetDetectorCommand = async (output, context
2368
2391
  if (data.dataSources != null) {
2369
2392
  contents.DataSources = deserializeAws_restJson1DataSourceConfigurationsResult(data.dataSources, context);
2370
2393
  }
2394
+ if (data.features != null) {
2395
+ contents.Features = deserializeAws_restJson1DetectorFeatureConfigurationsResults(data.features, context);
2396
+ }
2371
2397
  if (data.findingPublishingFrequency != null) {
2372
2398
  contents.FindingPublishingFrequency = __expectString(data.findingPublishingFrequency);
2373
2399
  }
@@ -3891,6 +3917,19 @@ const serializeAws_restJson1DestinationProperties = (input, context) => {
3891
3917
  ...(input.KmsKeyArn != null && { kmsKeyArn: input.KmsKeyArn }),
3892
3918
  };
3893
3919
  };
3920
+ const serializeAws_restJson1DetectorFeatureConfiguration = (input, context) => {
3921
+ return {
3922
+ ...(input.Name != null && { name: input.Name }),
3923
+ ...(input.Status != null && { status: input.Status }),
3924
+ };
3925
+ };
3926
+ const serializeAws_restJson1DetectorFeatureConfigurations = (input, context) => {
3927
+ return input
3928
+ .filter((e) => e != null)
3929
+ .map((entry) => {
3930
+ return serializeAws_restJson1DetectorFeatureConfiguration(entry, context);
3931
+ });
3932
+ };
3894
3933
  const serializeAws_restJson1Eq = (input, context) => {
3895
3934
  return input
3896
3935
  .filter((e) => e != null)
@@ -3986,6 +4025,19 @@ const serializeAws_restJson1MapEquals = (input, context) => {
3986
4025
  return serializeAws_restJson1ScanConditionPair(entry, context);
3987
4026
  });
3988
4027
  };
4028
+ const serializeAws_restJson1MemberFeaturesConfiguration = (input, context) => {
4029
+ return {
4030
+ ...(input.Name != null && { name: input.Name }),
4031
+ ...(input.Status != null && { status: input.Status }),
4032
+ };
4033
+ };
4034
+ const serializeAws_restJson1MemberFeaturesConfigurations = (input, context) => {
4035
+ return input
4036
+ .filter((e) => e != null)
4037
+ .map((entry) => {
4038
+ return serializeAws_restJson1MemberFeaturesConfiguration(entry, context);
4039
+ });
4040
+ };
3989
4041
  const serializeAws_restJson1Neq = (input, context) => {
3990
4042
  return input
3991
4043
  .filter((e) => e != null)
@@ -4018,6 +4070,19 @@ const serializeAws_restJson1OrganizationEbsVolumes = (input, context) => {
4018
4070
  ...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
4019
4071
  };
4020
4072
  };
4073
+ const serializeAws_restJson1OrganizationFeatureConfiguration = (input, context) => {
4074
+ return {
4075
+ ...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
4076
+ ...(input.Name != null && { name: input.Name }),
4077
+ };
4078
+ };
4079
+ const serializeAws_restJson1OrganizationFeaturesConfigurations = (input, context) => {
4080
+ return input
4081
+ .filter((e) => e != null)
4082
+ .map((entry) => {
4083
+ return serializeAws_restJson1OrganizationFeatureConfiguration(entry, context);
4084
+ });
4085
+ };
4021
4086
  const serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration = (input, context) => {
4022
4087
  return {
4023
4088
  ...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
@@ -4111,9 +4176,17 @@ const serializeAws_restJson1UsageCriteria = (input, context) => {
4111
4176
  return {
4112
4177
  ...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
4113
4178
  ...(input.DataSources != null && { dataSources: serializeAws_restJson1DataSourceList(input.DataSources, context) }),
4179
+ ...(input.Features != null && { features: serializeAws_restJson1UsageFeatureList(input.Features, context) }),
4114
4180
  ...(input.Resources != null && { resources: serializeAws_restJson1ResourceList(input.Resources, context) }),
4115
4181
  };
4116
4182
  };
4183
+ const serializeAws_restJson1UsageFeatureList = (input, context) => {
4184
+ return input
4185
+ .filter((e) => e != null)
4186
+ .map((entry) => {
4187
+ return entry;
4188
+ });
4189
+ };
4117
4190
  const deserializeAws_restJson1AccessControlList = (output, context) => {
4118
4191
  return {
4119
4192
  AllowsPublicReadAccess: __expectBoolean(output.allowsPublicReadAccess),
@@ -4134,6 +4207,9 @@ const deserializeAws_restJson1AccountFreeTrialInfo = (output, context) => {
4134
4207
  DataSources: output.dataSources != null
4135
4208
  ? deserializeAws_restJson1DataSourcesFreeTrial(output.dataSources, context)
4136
4209
  : undefined,
4210
+ Features: output.features != null
4211
+ ? deserializeAws_restJson1FreeTrialFeatureConfigurationsResults(output.features, context)
4212
+ : undefined,
4137
4213
  };
4138
4214
  };
4139
4215
  const deserializeAws_restJson1AccountFreeTrialInfos = (output, context) => {
@@ -4172,6 +4248,9 @@ const deserializeAws_restJson1Action = (output, context) => {
4172
4248
  PortProbeAction: output.portProbeAction != null
4173
4249
  ? deserializeAws_restJson1PortProbeAction(output.portProbeAction, context)
4174
4250
  : undefined,
4251
+ RdsLoginAttemptAction: output.rdsLoginAttemptAction != null
4252
+ ? deserializeAws_restJson1RdsLoginAttemptAction(output.rdsLoginAttemptAction, context)
4253
+ : undefined,
4175
4254
  };
4176
4255
  };
4177
4256
  const deserializeAws_restJson1AdminAccount = (output, context) => {
@@ -4393,6 +4472,24 @@ const deserializeAws_restJson1Destinations = (output, context) => {
4393
4472
  });
4394
4473
  return retVal;
4395
4474
  };
4475
+ const deserializeAws_restJson1DetectorFeatureConfigurationResult = (output, context) => {
4476
+ return {
4477
+ Name: __expectString(output.name),
4478
+ Status: __expectString(output.status),
4479
+ UpdatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
4480
+ };
4481
+ };
4482
+ const deserializeAws_restJson1DetectorFeatureConfigurationsResults = (output, context) => {
4483
+ const retVal = (output || [])
4484
+ .filter((e) => e != null)
4485
+ .map((entry) => {
4486
+ if (entry === null) {
4487
+ return null;
4488
+ }
4489
+ return deserializeAws_restJson1DetectorFeatureConfigurationResult(entry, context);
4490
+ });
4491
+ return retVal;
4492
+ };
4396
4493
  const deserializeAws_restJson1DetectorIds = (output, context) => {
4397
4494
  const retVal = (output || [])
4398
4495
  .filter((e) => e != null)
@@ -4598,6 +4695,23 @@ const deserializeAws_restJson1FlowLogsConfigurationResult = (output, context) =>
4598
4695
  Status: __expectString(output.status),
4599
4696
  };
4600
4697
  };
4698
+ const deserializeAws_restJson1FreeTrialFeatureConfigurationResult = (output, context) => {
4699
+ return {
4700
+ FreeTrialDaysRemaining: __expectInt32(output.freeTrialDaysRemaining),
4701
+ Name: __expectString(output.name),
4702
+ };
4703
+ };
4704
+ const deserializeAws_restJson1FreeTrialFeatureConfigurationsResults = (output, context) => {
4705
+ const retVal = (output || [])
4706
+ .filter((e) => e != null)
4707
+ .map((entry) => {
4708
+ if (entry === null) {
4709
+ return null;
4710
+ }
4711
+ return deserializeAws_restJson1FreeTrialFeatureConfigurationResult(entry, context);
4712
+ });
4713
+ return retVal;
4714
+ };
4601
4715
  const deserializeAws_restJson1GeoLocation = (output, context) => {
4602
4716
  return {
4603
4717
  Lat: __limitedParseDouble(output.lat),
@@ -4764,6 +4878,25 @@ const deserializeAws_restJson1LocalPortDetails = (output, context) => {
4764
4878
  PortName: __expectString(output.portName),
4765
4879
  };
4766
4880
  };
4881
+ const deserializeAws_restJson1LoginAttribute = (output, context) => {
4882
+ return {
4883
+ Application: __expectString(output.application),
4884
+ FailedLoginAttempts: __expectInt32(output.failedLoginAttempts),
4885
+ SuccessfulLoginAttempts: __expectInt32(output.successfulLoginAttempts),
4886
+ User: __expectString(output.user),
4887
+ };
4888
+ };
4889
+ const deserializeAws_restJson1LoginAttributes = (output, context) => {
4890
+ const retVal = (output || [])
4891
+ .filter((e) => e != null)
4892
+ .map((entry) => {
4893
+ if (entry === null) {
4894
+ return null;
4895
+ }
4896
+ return deserializeAws_restJson1LoginAttribute(entry, context);
4897
+ });
4898
+ return retVal;
4899
+ };
4767
4900
  const deserializeAws_restJson1MalwareProtectionConfigurationResult = (output, context) => {
4768
4901
  return {
4769
4902
  ScanEc2InstanceWithFindings: output.scanEc2InstanceWithFindings != null
@@ -4816,6 +4949,9 @@ const deserializeAws_restJson1MemberDataSourceConfiguration = (output, context)
4816
4949
  DataSources: output.dataSources != null
4817
4950
  ? deserializeAws_restJson1DataSourceConfigurationsResult(output.dataSources, context)
4818
4951
  : undefined,
4952
+ Features: output.features != null
4953
+ ? deserializeAws_restJson1MemberFeaturesConfigurationsResults(output.features, context)
4954
+ : undefined,
4819
4955
  };
4820
4956
  };
4821
4957
  const deserializeAws_restJson1MemberDataSourceConfigurations = (output, context) => {
@@ -4829,6 +4965,24 @@ const deserializeAws_restJson1MemberDataSourceConfigurations = (output, context)
4829
4965
  });
4830
4966
  return retVal;
4831
4967
  };
4968
+ const deserializeAws_restJson1MemberFeaturesConfigurationResult = (output, context) => {
4969
+ return {
4970
+ Name: __expectString(output.name),
4971
+ Status: __expectString(output.status),
4972
+ UpdatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
4973
+ };
4974
+ };
4975
+ const deserializeAws_restJson1MemberFeaturesConfigurationsResults = (output, context) => {
4976
+ const retVal = (output || [])
4977
+ .filter((e) => e != null)
4978
+ .map((entry) => {
4979
+ if (entry === null) {
4980
+ return null;
4981
+ }
4982
+ return deserializeAws_restJson1MemberFeaturesConfigurationResult(entry, context);
4983
+ });
4984
+ return retVal;
4985
+ };
4832
4986
  const deserializeAws_restJson1Members = (output, context) => {
4833
4987
  const retVal = (output || [])
4834
4988
  .filter((e) => e != null)
@@ -4936,6 +5090,23 @@ const deserializeAws_restJson1OrganizationEbsVolumesResult = (output, context) =
4936
5090
  AutoEnable: __expectBoolean(output.autoEnable),
4937
5091
  };
4938
5092
  };
5093
+ const deserializeAws_restJson1OrganizationFeatureConfigurationResult = (output, context) => {
5094
+ return {
5095
+ AutoEnable: __expectString(output.autoEnable),
5096
+ Name: __expectString(output.name),
5097
+ };
5098
+ };
5099
+ const deserializeAws_restJson1OrganizationFeaturesConfigurationsResults = (output, context) => {
5100
+ const retVal = (output || [])
5101
+ .filter((e) => e != null)
5102
+ .map((entry) => {
5103
+ if (entry === null) {
5104
+ return null;
5105
+ }
5106
+ return deserializeAws_restJson1OrganizationFeatureConfigurationResult(entry, context);
5107
+ });
5108
+ return retVal;
5109
+ };
4939
5110
  const deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult = (output, context) => {
4940
5111
  return {
4941
5112
  AutoEnable: __expectBoolean(output.autoEnable),
@@ -5056,6 +5227,35 @@ const deserializeAws_restJson1PublicAccess = (output, context) => {
5056
5227
  : undefined,
5057
5228
  };
5058
5229
  };
5230
+ const deserializeAws_restJson1RdsDbInstanceDetails = (output, context) => {
5231
+ return {
5232
+ DbClusterIdentifier: __expectString(output.dbClusterIdentifier),
5233
+ DbInstanceArn: __expectString(output.dbInstanceArn),
5234
+ DbInstanceIdentifier: __expectString(output.dbInstanceIdentifier),
5235
+ Engine: __expectString(output.engine),
5236
+ EngineVersion: __expectString(output.engineVersion),
5237
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
5238
+ };
5239
+ };
5240
+ const deserializeAws_restJson1RdsDbUserDetails = (output, context) => {
5241
+ return {
5242
+ Application: __expectString(output.application),
5243
+ AuthMethod: __expectString(output.authMethod),
5244
+ Database: __expectString(output.database),
5245
+ Ssl: __expectString(output.ssl),
5246
+ User: __expectString(output.user),
5247
+ };
5248
+ };
5249
+ const deserializeAws_restJson1RdsLoginAttemptAction = (output, context) => {
5250
+ return {
5251
+ LoginAttributes: output.LoginAttributes != null
5252
+ ? deserializeAws_restJson1LoginAttributes(output.LoginAttributes, context)
5253
+ : undefined,
5254
+ RemoteIpDetails: output.remoteIpDetails != null
5255
+ ? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
5256
+ : undefined,
5257
+ };
5258
+ };
5059
5259
  const deserializeAws_restJson1RemoteAccountDetails = (output, context) => {
5060
5260
  return {
5061
5261
  AccountId: __expectString(output.accountId),
@@ -5098,6 +5298,12 @@ const deserializeAws_restJson1Resource = (output, context) => {
5098
5298
  KubernetesDetails: output.kubernetesDetails != null
5099
5299
  ? deserializeAws_restJson1KubernetesDetails(output.kubernetesDetails, context)
5100
5300
  : undefined,
5301
+ RdsDbInstanceDetails: output.rdsDbInstanceDetails != null
5302
+ ? deserializeAws_restJson1RdsDbInstanceDetails(output.rdsDbInstanceDetails, context)
5303
+ : undefined,
5304
+ RdsDbUserDetails: output.rdsDbUserDetails != null
5305
+ ? deserializeAws_restJson1RdsDbUserDetails(output.rdsDbUserDetails, context)
5306
+ : undefined,
5101
5307
  ResourceType: __expectString(output.resourceType),
5102
5308
  S3BucketDetails: output.s3BucketDetails != null
5103
5309
  ? deserializeAws_restJson1S3BucketDetails(output.s3BucketDetails, context)
@@ -5485,6 +5691,23 @@ const deserializeAws_restJson1UsageDataSourceResultList = (output, context) => {
5485
5691
  });
5486
5692
  return retVal;
5487
5693
  };
5694
+ const deserializeAws_restJson1UsageFeatureResult = (output, context) => {
5695
+ return {
5696
+ Feature: __expectString(output.feature),
5697
+ Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
5698
+ };
5699
+ };
5700
+ const deserializeAws_restJson1UsageFeatureResultList = (output, context) => {
5701
+ const retVal = (output || [])
5702
+ .filter((e) => e != null)
5703
+ .map((entry) => {
5704
+ if (entry === null) {
5705
+ return null;
5706
+ }
5707
+ return deserializeAws_restJson1UsageFeatureResult(entry, context);
5708
+ });
5709
+ return retVal;
5710
+ };
5488
5711
  const deserializeAws_restJson1UsageResourceResult = (output, context) => {
5489
5712
  return {
5490
5713
  Resource: __expectString(output.resource),
@@ -5510,6 +5733,9 @@ const deserializeAws_restJson1UsageStatistics = (output, context) => {
5510
5733
  SumByDataSource: output.sumByDataSource != null
5511
5734
  ? deserializeAws_restJson1UsageDataSourceResultList(output.sumByDataSource, context)
5512
5735
  : undefined,
5736
+ SumByFeature: output.sumByFeature != null
5737
+ ? deserializeAws_restJson1UsageFeatureResultList(output.sumByFeature, context)
5738
+ : undefined,
5513
5739
  SumByResource: output.sumByResource != null
5514
5740
  ? deserializeAws_restJson1UsageResourceResultList(output.sumByResource, context)
5515
5741
  : undefined,
@@ -125,7 +125,8 @@ export declare class GuardDuty extends GuardDutyClient {
125
125
  createDetector(args: CreateDetectorCommandInput, cb: (err: any, data?: CreateDetectorCommandOutput) => void): void;
126
126
  createDetector(args: CreateDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDetectorCommandOutput) => void): void;
127
127
  /**
128
- * <p>Creates a filter using the specified finding criteria.</p>
128
+ * <p>Creates a filter using the specified finding criteria. The maximum number of saved filters
129
+ * per Amazon Web Services account per Region is 100. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_limits.html">Quotas for GuardDuty</a>.</p>
129
130
  */
130
131
  createFilter(args: CreateFilterCommandInput, options?: __HttpHandlerOptions): Promise<CreateFilterCommandOutput>;
131
132
  createFilter(args: CreateFilterCommandInput, cb: (err: any, data?: CreateFilterCommandOutput) => void): void;
@@ -14,7 +14,8 @@ export interface CreateFilterCommandInput extends CreateFilterRequest {
14
14
  export interface CreateFilterCommandOutput extends CreateFilterResponse, __MetadataBearer {
15
15
  }
16
16
  /**
17
- * <p>Creates a filter using the specified finding criteria.</p>
17
+ * <p>Creates a filter using the specified finding criteria. The maximum number of saved filters
18
+ * per Amazon Web Services account per Region is 100. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_limits.html">Quotas for GuardDuty</a>.</p>
18
19
  * @example
19
20
  * Use a bare-bones client and the command you need to make an API call.
20
21
  * ```javascript