@aws-sdk/client-securityhub 3.936.0 → 3.937.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.
Files changed (53) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +226 -0
  3. package/dist-es/SecurityHub.js +4 -0
  4. package/dist-es/commands/GetFindingsTrendsV2Command.js +16 -0
  5. package/dist-es/commands/GetResourcesTrendsV2Command.js +16 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +23 -0
  8. package/dist-es/pagination/GetFindingsTrendsV2Paginator.js +4 -0
  9. package/dist-es/pagination/GetResourcesTrendsV2Paginator.js +4 -0
  10. package/dist-es/pagination/index.js +3 -1
  11. package/dist-es/schemas/schemas_0.js +166 -0
  12. package/dist-types/SecurityHub.d.ts +14 -0
  13. package/dist-types/SecurityHubClient.d.ts +4 -2
  14. package/dist-types/commands/ConnectorRegistrationsV2Command.d.ts +1 -1
  15. package/dist-types/commands/CreateConnectorV2Command.d.ts +1 -1
  16. package/dist-types/commands/CreateTicketV2Command.d.ts +1 -1
  17. package/dist-types/commands/DeleteConnectorV2Command.d.ts +1 -1
  18. package/dist-types/commands/GetConnectorV2Command.d.ts +1 -1
  19. package/dist-types/commands/GetFindingsTrendsV2Command.d.ts +144 -0
  20. package/dist-types/commands/GetResourcesTrendsV2Command.d.ts +137 -0
  21. package/dist-types/commands/ListConnectorsV2Command.d.ts +1 -1
  22. package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +2 -1
  23. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  24. package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
  25. package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
  26. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateConnectorV2Command.d.ts +1 -1
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/models/enums.d.ts +47 -0
  30. package/dist-types/models/models_2.d.ts +184 -191
  31. package/dist-types/models/models_3.d.ts +326 -2
  32. package/dist-types/pagination/GetFindingsTrendsV2Paginator.d.ts +7 -0
  33. package/dist-types/pagination/GetResourcesTrendsV2Paginator.d.ts +7 -0
  34. package/dist-types/pagination/index.d.ts +3 -1
  35. package/dist-types/schemas/schemas_0.d.ts +24 -0
  36. package/dist-types/ts3.4/SecurityHub.d.ts +34 -0
  37. package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
  38. package/dist-types/ts3.4/commands/GetFindingsTrendsV2Command.d.ts +49 -0
  39. package/dist-types/ts3.4/commands/GetResourcesTrendsV2Command.d.ts +49 -0
  40. package/dist-types/ts3.4/commands/ListStandardsControlAssociationsCommand.d.ts +2 -4
  41. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  46. package/dist-types/ts3.4/models/enums.d.ts +29 -0
  47. package/dist-types/ts3.4/models/models_2.d.ts +48 -52
  48. package/dist-types/ts3.4/models/models_3.d.ts +92 -1
  49. package/dist-types/ts3.4/pagination/GetFindingsTrendsV2Paginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/GetResourcesTrendsV2Paginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +3 -1
  52. package/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  53. package/package.json +1 -1
package/README.md CHANGED
@@ -793,6 +793,14 @@ GetFindingStatisticsV2
793
793
 
794
794
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityhub/command/GetFindingStatisticsV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/GetFindingStatisticsV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/GetFindingStatisticsV2CommandOutput/)
795
795
 
796
+ </details>
797
+ <details>
798
+ <summary>
799
+ GetFindingsTrendsV2
800
+ </summary>
801
+
802
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityhub/command/GetFindingsTrendsV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/GetFindingsTrendsV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/GetFindingsTrendsV2CommandOutput/)
803
+
796
804
  </details>
797
805
  <details>
798
806
  <summary>
@@ -849,6 +857,14 @@ GetResourcesStatisticsV2
849
857
 
850
858
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityhub/command/GetResourcesStatisticsV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/GetResourcesStatisticsV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/GetResourcesStatisticsV2CommandOutput/)
851
859
 
860
+ </details>
861
+ <details>
862
+ <summary>
863
+ GetResourcesTrendsV2
864
+ </summary>
865
+
866
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityhub/command/GetResourcesTrendsV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/GetResourcesTrendsV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/GetResourcesTrendsV2CommandOutput/)
867
+
852
868
  </details>
853
869
  <details>
854
870
  <summary>
package/dist-cjs/index.js CHANGED
@@ -1039,6 +1039,7 @@ const _ARQLCD = "AwsRoute53QueryLoggingConfigDetails";
1039
1039
  const _ARTIS = "AuthorizerResultTtlInSeconds";
1040
1040
  const _ARc = "AcceptanceRequired";
1041
1041
  const _ARg = "AggregationRegion";
1042
+ const _ARl = "AllResources";
1042
1043
  const _ARs = "AssociatedRoles";
1043
1044
  const _ARu = "AutoRecovery";
1044
1045
  const _ARw = "AwsRegion";
@@ -2059,6 +2060,11 @@ const _FSFRA = "FirehoseSuccessFeedbackRoleArn";
2059
2060
  const _FSI = "FileSystemId";
2060
2061
  const _FSi = "FindingsSummary";
2061
2062
  const _FT = "FindingType";
2063
+ const _FTCF = "FindingsTrendsCompositeFilter";
2064
+ const _FTCFL = "FindingsTrendsCompositeFilterList";
2065
+ const _FTF = "FindingsTrendsFilters";
2066
+ const _FTSF = "FindingsTrendsStringFilter";
2067
+ const _FTSFL = "FindingsTrendsStringFilterList";
2062
2068
  const _FV = "FieldValue";
2063
2069
  const _Fa = "Family";
2064
2070
  const _Fat = "Fatal";
@@ -2116,6 +2122,9 @@ const _GFRe = "GetFindingsResponse";
2116
2122
  const _GFSV = "GetFindingStatisticsV2";
2117
2123
  const _GFSVR = "GetFindingStatisticsV2Request";
2118
2124
  const _GFSVRe = "GetFindingStatisticsV2Response";
2125
+ const _GFTV = "GetFindingsTrendsV2";
2126
+ const _GFTVR = "GetFindingsTrendsV2Request";
2127
+ const _GFTVRe = "GetFindingsTrendsV2Response";
2119
2128
  const _GFV = "GetFindingsV2";
2120
2129
  const _GFVR = "GetFindingsV2Request";
2121
2130
  const _GFVRe = "GetFindingsV2Response";
@@ -2147,6 +2156,9 @@ const _GRSV = "GetResourcesStatisticsV2";
2147
2156
  const _GRSVR = "GetResourcesStatisticsV2Request";
2148
2157
  const _GRSVRe = "GetResourcesStatisticsV2Response";
2149
2158
  const _GRT = "GeneratedRulesType";
2159
+ const _GRTV = "GetResourcesTrendsV2";
2160
+ const _GRTVR = "GetResourcesTrendsV2Request";
2161
+ const _GRTVRe = "GetResourcesTrendsV2Response";
2150
2162
  const _GRV = "GetResourcesV2";
2151
2163
  const _GRVR = "GetResourcesV2Request";
2152
2164
  const _GRVRe = "GetResourcesV2Response";
@@ -2157,6 +2169,7 @@ const _GSI = "GlobalSecondaryIndexes";
2157
2169
  const _GTV = "GlobalTableVersion";
2158
2170
  const _Gi = "Gid";
2159
2171
  const _Gr = "Groups";
2172
+ const _Gra = "Granularity";
2160
2173
  const _Gro = "Group";
2161
2174
  const _Gt = "Gte";
2162
2175
  const _Gt_ = "Gt";
@@ -2965,6 +2978,7 @@ const _RCeq = "RequiresCompatibilities";
2965
2978
  const _RCes = "ResponseCode";
2966
2979
  const _RCeso = "ResourceCategory";
2967
2980
  const _RCesou = "ResourceConfig";
2981
+ const _RCesour = "ResourcesCount";
2968
2982
  const _RCo = "RoutingConfig";
2969
2983
  const _RD = "RootDirectory";
2970
2984
  const _RDCTD = "ResourceDetailCaptureTimeDt";
@@ -3118,10 +3132,18 @@ const _RSul = "RulesString";
3118
3132
  const _RT = "ResourceType";
3119
3133
  const _RTAI = "RouteTableAssociationId";
3120
3134
  const _RTC = "RunningTasksCount";
3135
+ const _RTCF = "ResourcesTrendsCompositeFilter";
3136
+ const _RTCFL = "ResourcesTrendsCompositeFilterList";
3137
+ const _RTF = "ResourcesTrendsFilters";
3121
3138
  const _RTI = "RouteTableId";
3122
3139
  const _RTIe = "ReplicationTaskIdentifier";
3123
3140
  const _RTL = "ResourceTagList";
3141
+ const _RTM = "ResourcesTrendsMetrics";
3142
+ const _RTMR = "ResourcesTrendsMetricsResult";
3124
3143
  const _RTS = "ReplicationTaskSettings";
3144
+ const _RTSF = "ResourcesTrendsStringFilter";
3145
+ const _RTSFL = "ResourcesTrendsStringFilterList";
3146
+ const _RTV = "ResourcesTrendsValues";
3125
3147
  const _RTe = "ResourceTags";
3126
3148
  const _RTec = "RecommendationText";
3127
3149
  const _RTes = "ResizeType";
@@ -3384,9 +3406,11 @@ const _SSu = "SubnetStatus";
3384
3406
  const _ST = "StorageType";
3385
3407
  const _STA = "SnsTopicArn";
3386
3408
  const _STAo = "SourceTableArn";
3409
+ const _STC = "SeverityTrendsCount";
3387
3410
  const _STH = "SessionTimeoutHours";
3388
3411
  const _STN = "SnsTopicName";
3389
3412
  const _STe = "ServiceType";
3413
+ const _STev = "SeverityTrends";
3390
3414
  const _STn = "SnapshotType";
3391
3415
  const _STo = "SourceType";
3392
3416
  const _STp = "SplitTunnel";
@@ -3475,6 +3499,8 @@ const _TLSSP = "TLSSecurityPolicy";
3475
3499
  const _TM = "TableMappings";
3476
3500
  const _TMD = "TreatMissingData";
3477
3501
  const _TMI = "ThresholdMetricId";
3502
+ const _TMR = "TrendsMetricsResult";
3503
+ const _TMr = "TrendsMetrics";
3478
3504
  const _TN = "TableName";
3479
3505
  const _TNo = "TopicName";
3480
3506
  const _TO = "TunnelOptions";
@@ -3492,6 +3518,7 @@ const _TSB = "TableSizeBytes";
3492
3518
  const _TSU = "TicketSrcUrl";
3493
3519
  const _TT = "TargetType";
3494
3520
  const _TTa = "TargetTypes";
3521
+ const _TV = "TrendsValues";
3495
3522
  const _TZ = "TimeZone";
3496
3523
  const _Ta = "Target";
3497
3524
  const _Tag = "Tag";
@@ -3507,6 +3534,7 @@ const _Ti = "Title";
3507
3534
  const _Tie = "Tier";
3508
3535
  const _Tim = "Timeout";
3509
3536
  const _Time = "Timezone";
3537
+ const _Times = "Timestamp";
3510
3538
  const _Tl = "Tls";
3511
3539
  const _Tm = "Tmpfs";
3512
3540
  const _To = "To";
@@ -9212,6 +9240,30 @@ var FindingProviderFields = [
9212
9240
  [1, 1, () => RelatedFindingList, () => FindingProviderSeverity, 64 | 0],
9213
9241
  ];
9214
9242
  var FindingProviderSeverity = [3, n0, _FPS, 0, [_Lab, _Orig], [0, 0]];
9243
+ var FindingsTrendsCompositeFilter = [
9244
+ 3,
9245
+ n0,
9246
+ _FTCF,
9247
+ 0,
9248
+ [_SF, _NCF, _Oper],
9249
+ [() => FindingsTrendsStringFilterList, () => FindingsTrendsCompositeFilterList, 0],
9250
+ ];
9251
+ var FindingsTrendsFilters = [
9252
+ 3,
9253
+ n0,
9254
+ _FTF,
9255
+ 0,
9256
+ [_CFo, _COo],
9257
+ [() => FindingsTrendsCompositeFilterList, 0],
9258
+ ];
9259
+ var FindingsTrendsStringFilter = [
9260
+ 3,
9261
+ n0,
9262
+ _FTSF,
9263
+ 0,
9264
+ [_FNie, _Fil],
9265
+ [0, () => StringFilter],
9266
+ ];
9215
9267
  var FirewallPolicyDetails = [
9216
9268
  3,
9217
9269
  n0,
@@ -9351,6 +9403,22 @@ var GetFindingStatisticsV2Request = [
9351
9403
  [() => GroupByRules, 0, 1],
9352
9404
  ];
9353
9405
  var GetFindingStatisticsV2Response = [3, n0, _GFSVRe, 0, [_GBRr], [() => GroupByResults]];
9406
+ var GetFindingsTrendsV2Request = [
9407
+ 3,
9408
+ n0,
9409
+ _GFTVR,
9410
+ 0,
9411
+ [_Filt, _STtar, _ETnd, _NTe, _MRa],
9412
+ [() => FindingsTrendsFilters, 5, 5, 0, 1],
9413
+ ];
9414
+ var GetFindingsTrendsV2Response = [
9415
+ 3,
9416
+ n0,
9417
+ _GFTVRe,
9418
+ 0,
9419
+ [_Gra, _TMr, _NTe],
9420
+ [0, () => TrendsMetrics, 0],
9421
+ ];
9354
9422
  var GetFindingsV2Request = [
9355
9423
  3,
9356
9424
  n0,
@@ -9393,6 +9461,22 @@ var GetResourcesStatisticsV2Response = [
9393
9461
  [_GBRr],
9394
9462
  [() => GroupByResults],
9395
9463
  ];
9464
+ var GetResourcesTrendsV2Request = [
9465
+ 3,
9466
+ n0,
9467
+ _GRTVR,
9468
+ 0,
9469
+ [_Filt, _STtar, _ETnd, _NTe, _MRa],
9470
+ [() => ResourcesTrendsFilters, 5, 5, 0, 1],
9471
+ ];
9472
+ var GetResourcesTrendsV2Response = [
9473
+ 3,
9474
+ n0,
9475
+ _GRTVRe,
9476
+ 0,
9477
+ [_Gra, _TMr, _NTe],
9478
+ [0, () => ResourcesTrendsMetrics, 0],
9479
+ ];
9396
9480
  var GetResourcesV2Request = [
9397
9481
  3,
9398
9482
  n0,
@@ -10337,6 +10421,7 @@ var ResourcesCompositeFilter = [
10337
10421
  0,
10338
10422
  ],
10339
10423
  ];
10424
+ var ResourcesCount = [3, n0, _RCesour, 0, [_ARl], [1]];
10340
10425
  var ResourcesDateFilter = [3, n0, _RDF, 0, [_FNie, _Fil], [0, () => DateFilter]];
10341
10426
  var ResourceSeverityBreakdown = [
10342
10427
  3,
@@ -10357,6 +10442,39 @@ var ResourcesFilters = [
10357
10442
  var ResourcesMapFilter = [3, n0, _RMF, 0, [_FNie, _Fil], [0, () => MapFilter]];
10358
10443
  var ResourcesNumberFilter = [3, n0, _RNF, 0, [_FNie, _Fil], [0, () => NumberFilter]];
10359
10444
  var ResourcesStringFilter = [3, n0, _RSF, 0, [_FNie, _Fil], [0, () => StringFilter]];
10445
+ var ResourcesTrendsCompositeFilter = [
10446
+ 3,
10447
+ n0,
10448
+ _RTCF,
10449
+ 0,
10450
+ [_SF, _NCF, _Oper],
10451
+ [() => ResourcesTrendsStringFilterList, () => ResourcesTrendsCompositeFilterList, 0],
10452
+ ];
10453
+ var ResourcesTrendsFilters = [
10454
+ 3,
10455
+ n0,
10456
+ _RTF,
10457
+ 0,
10458
+ [_CFo, _COo],
10459
+ [() => ResourcesTrendsCompositeFilterList, 0],
10460
+ ];
10461
+ var ResourcesTrendsMetricsResult = [
10462
+ 3,
10463
+ n0,
10464
+ _RTMR,
10465
+ 0,
10466
+ [_Times, _TV],
10467
+ [5, () => ResourcesTrendsValues],
10468
+ ];
10469
+ var ResourcesTrendsStringFilter = [
10470
+ 3,
10471
+ n0,
10472
+ _RTSF,
10473
+ 0,
10474
+ [_FNie, _Fil],
10475
+ [0, () => StringFilter],
10476
+ ];
10477
+ var ResourcesTrendsValues = [3, n0, _RTV, 0, [_RCesour], [() => ResourcesCount]];
10360
10478
  var ResourceTag = [3, n0, _RTeso, 0, [_K, _Val], [0, 0]];
10361
10479
  var Result = [3, n0, _Resu, 0, [_AIc, _PRr], [0, 0]];
10362
10480
  var RouteSetDetails = [
@@ -10592,6 +10710,14 @@ var ServiceNowProviderConfiguration = [
10592
10710
  [0, 0, [() => SensitiveNonEmptyString, 0]],
10593
10711
  ];
10594
10712
  var Severity = [3, n0, _Se, 0, [_Produ, _Lab, _Norm, _Orig], [1, 0, 1, 0]];
10713
+ var SeverityTrendsCount = [
10714
+ 3,
10715
+ n0,
10716
+ _STC,
10717
+ 0,
10718
+ [_Unk, _Inf, _Low, _Med, _Hi, _Crit, _Fat, _Ot],
10719
+ [1, 1, 1, 1, 1, 1, 1, 1],
10720
+ ];
10595
10721
  var SeverityUpdate = [3, n0, _SUe, 0, [_Norm, _Produ, _Lab], [1, 1, 0]];
10596
10722
  var Signal = [
10597
10723
  3,
@@ -10738,6 +10864,8 @@ var ThrottlingException = [
10738
10864
  [0, 0],
10739
10865
  ];
10740
10866
  schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
10867
+ var TrendsMetricsResult = [3, n0, _TMR, 0, [_Times, _TV], [5, () => TrendsValues]];
10868
+ var TrendsValues = [3, n0, _TV, 0, [_STev], [() => SeverityTrendsCount]];
10741
10869
  var UnprocessedAutomationRule = [3, n0, _UARn, 0, [_RA, _ECr, _EMr], [0, 1, 0]];
10742
10870
  var UnprocessedConfigurationPolicyAssociation = [
10743
10871
  3,
@@ -11810,6 +11938,14 @@ var FilePathList = [1, n0, _FPL, 0, () => FilePaths];
11810
11938
  var FindingAggregatorList = [1, n0, _FAL, 0, () => FindingAggregator];
11811
11939
  var FindingHistoryRecordList = [1, n0, _FHRL, 0, () => FindingHistoryRecord];
11812
11940
  var FindingHistoryUpdatesList = [1, n0, _FHUL, 0, () => FindingHistoryUpdate];
11941
+ var FindingsTrendsCompositeFilterList = [
11942
+ 1,
11943
+ n0,
11944
+ _FTCFL,
11945
+ 0,
11946
+ () => FindingsTrendsCompositeFilter,
11947
+ ];
11948
+ var FindingsTrendsStringFilterList = [1, n0, _FTSFL, 0, () => FindingsTrendsStringFilter];
11813
11949
  var FirewallPolicyStatefulRuleGroupReferencesList = [
11814
11950
  1,
11815
11951
  n0,
@@ -11873,6 +12009,15 @@ var ResourcesDateFilterList = [1, n0, _RDFL, 0, () => ResourcesDateFilter];
11873
12009
  var ResourcesMapFilterList = [1, n0, _RMFL, 0, () => ResourcesMapFilter];
11874
12010
  var ResourcesNumberFilterList = [1, n0, _RNFL, 0, () => ResourcesNumberFilter];
11875
12011
  var ResourcesStringFilterList = [1, n0, _RSFL, 0, () => ResourcesStringFilter];
12012
+ var ResourcesTrendsCompositeFilterList = [
12013
+ 1,
12014
+ n0,
12015
+ _RTCFL,
12016
+ 0,
12017
+ () => ResourcesTrendsCompositeFilter,
12018
+ ];
12019
+ var ResourcesTrendsMetrics = [1, n0, _RTM, 0, () => ResourcesTrendsMetricsResult];
12020
+ var ResourcesTrendsStringFilterList = [1, n0, _RTSFL, 0, () => ResourcesTrendsStringFilter];
11876
12021
  var ResourceTagList = [1, n0, _RTL, 0, () => ResourceTag];
11877
12022
  var ResultList = [1, n0, _RLes, 0, () => Result];
11878
12023
  var RouteSetList = [1, n0, _RSLo, 0, () => RouteSetDetails];
@@ -11991,6 +12136,7 @@ var StatusReasonsList = [1, n0, _SRL, 0, () => StatusReason];
11991
12136
  var StringFilterList = [1, n0, _SFL, 0, () => StringFilter];
11992
12137
  var ThreatIntelIndicatorList = [1, n0, _TIIL, 0, () => ThreatIntelIndicator];
11993
12138
  var ThreatList = [1, n0, _TL, 0, () => Threat];
12139
+ var TrendsMetrics = [1, n0, _TMr, 0, () => TrendsMetricsResult];
11994
12140
  var UnprocessedAutomationRulesList = [1, n0, _UARL, 0, () => UnprocessedAutomationRule];
11995
12141
  var UnprocessedConfigurationPolicyAssociationList = [
11996
12142
  1,
@@ -12737,6 +12883,16 @@ var GetFindingStatisticsV2 = [
12737
12883
  () => GetFindingStatisticsV2Request,
12738
12884
  () => GetFindingStatisticsV2Response,
12739
12885
  ];
12886
+ var GetFindingsTrendsV2 = [
12887
+ 9,
12888
+ n0,
12889
+ _GFTV,
12890
+ {
12891
+ [_h]: ["POST", "/findingsTrendsv2", 200],
12892
+ },
12893
+ () => GetFindingsTrendsV2Request,
12894
+ () => GetFindingsTrendsV2Response,
12895
+ ];
12740
12896
  var GetFindingsV2 = [
12741
12897
  9,
12742
12898
  n0,
@@ -12807,6 +12963,16 @@ var GetResourcesStatisticsV2 = [
12807
12963
  () => GetResourcesStatisticsV2Request,
12808
12964
  () => GetResourcesStatisticsV2Response,
12809
12965
  ];
12966
+ var GetResourcesTrendsV2 = [
12967
+ 9,
12968
+ n0,
12969
+ _GRTV,
12970
+ {
12971
+ [_h]: ["POST", "/resourcesTrendsv2", 200],
12972
+ },
12973
+ () => GetResourcesTrendsV2Request,
12974
+ () => GetResourcesTrendsV2Response,
12975
+ ];
12810
12976
  var GetResourcesV2 = [
12811
12977
  9,
12812
12978
  n0,
@@ -13918,6 +14084,18 @@ class GetFindingStatisticsV2Command extends smithyClient.Command
13918
14084
  .build() {
13919
14085
  }
13920
14086
 
14087
+ class GetFindingsTrendsV2Command extends smithyClient.Command
14088
+ .classBuilder()
14089
+ .ep(commonParams)
14090
+ .m(function (Command, cs, config, o) {
14091
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14092
+ })
14093
+ .s("SecurityHubAPIService", "GetFindingsTrendsV2", {})
14094
+ .n("SecurityHubClient", "GetFindingsTrendsV2Command")
14095
+ .sc(GetFindingsTrendsV2)
14096
+ .build() {
14097
+ }
14098
+
13921
14099
  class GetFindingsV2Command extends smithyClient.Command
13922
14100
  .classBuilder()
13923
14101
  .ep(commonParams)
@@ -14002,6 +14180,18 @@ class GetResourcesStatisticsV2Command extends smithyClient.Command
14002
14180
  .build() {
14003
14181
  }
14004
14182
 
14183
+ class GetResourcesTrendsV2Command extends smithyClient.Command
14184
+ .classBuilder()
14185
+ .ep(commonParams)
14186
+ .m(function (Command, cs, config, o) {
14187
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14188
+ })
14189
+ .s("SecurityHubAPIService", "GetResourcesTrendsV2", {})
14190
+ .n("SecurityHubClient", "GetResourcesTrendsV2Command")
14191
+ .sc(GetResourcesTrendsV2)
14192
+ .build() {
14193
+ }
14194
+
14005
14195
  class GetResourcesV2Command extends smithyClient.Command
14006
14196
  .classBuilder()
14007
14197
  .ep(commonParams)
@@ -14464,6 +14654,7 @@ const commands = {
14464
14654
  GetFindingHistoryCommand,
14465
14655
  GetFindingsCommand,
14466
14656
  GetFindingStatisticsV2Command,
14657
+ GetFindingsTrendsV2Command,
14467
14658
  GetFindingsV2Command,
14468
14659
  GetInsightResultsCommand,
14469
14660
  GetInsightsCommand,
@@ -14471,6 +14662,7 @@ const commands = {
14471
14662
  GetMasterAccountCommand,
14472
14663
  GetMembersCommand,
14473
14664
  GetResourcesStatisticsV2Command,
14665
+ GetResourcesTrendsV2Command,
14474
14666
  GetResourcesV2Command,
14475
14667
  GetSecurityControlDefinitionCommand,
14476
14668
  InviteMembersCommand,
@@ -14525,10 +14717,14 @@ const paginateGetFindingHistory = core.createPaginator(SecurityHubClient, GetFin
14525
14717
 
14526
14718
  const paginateGetFindings = core.createPaginator(SecurityHubClient, GetFindingsCommand, "NextToken", "NextToken", "MaxResults");
14527
14719
 
14720
+ const paginateGetFindingsTrendsV2 = core.createPaginator(SecurityHubClient, GetFindingsTrendsV2Command, "NextToken", "NextToken", "MaxResults");
14721
+
14528
14722
  const paginateGetFindingsV2 = core.createPaginator(SecurityHubClient, GetFindingsV2Command, "NextToken", "NextToken", "MaxResults");
14529
14723
 
14530
14724
  const paginateGetInsights = core.createPaginator(SecurityHubClient, GetInsightsCommand, "NextToken", "NextToken", "MaxResults");
14531
14725
 
14726
+ const paginateGetResourcesTrendsV2 = core.createPaginator(SecurityHubClient, GetResourcesTrendsV2Command, "NextToken", "NextToken", "MaxResults");
14727
+
14532
14728
  const paginateGetResourcesV2 = core.createPaginator(SecurityHubClient, GetResourcesV2Command, "NextToken", "NextToken", "MaxResults");
14533
14729
 
14534
14730
  const paginateListAggregatorsV2 = core.createPaginator(SecurityHubClient, ListAggregatorsV2Command, "NextToken", "NextToken", "MaxResults");
@@ -14931,6 +15127,18 @@ const FindingHistoryUpdateSourceType = {
14931
15127
  BATCH_IMPORT_FINDINGS: "BATCH_IMPORT_FINDINGS",
14932
15128
  BATCH_UPDATE_FINDINGS: "BATCH_UPDATE_FINDINGS",
14933
15129
  };
15130
+ const FindingsTrendsStringField = {
15131
+ ACCOUNT_ID: "account_id",
15132
+ COMPLIANCE_CONTROL: "finding_control_id",
15133
+ COMPLIANCE_STATUS: "finding_compliance_status",
15134
+ CVE_ID: "finding_cve_ids",
15135
+ FINDING_ACTIVITY_NAME: "finding_activity_name",
15136
+ FINDING_CLASS: "finding_class_name",
15137
+ FINDING_STATUS: "finding_status",
15138
+ FINDING_TYPE: "finding_types",
15139
+ PROVIDER_NAME: "finding_provider",
15140
+ REGION: "region",
15141
+ };
14934
15142
  const SortOrder = {
14935
15143
  ASCENDING: "asc",
14936
15144
  DESCENDING: "desc",
@@ -14958,6 +15166,11 @@ const GroupByField = {
14958
15166
  VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name",
14959
15167
  VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
14960
15168
  };
15169
+ const GranularityField = {
15170
+ DAILY: "Daily",
15171
+ MONTHLY: "Monthly",
15172
+ WEEKLY: "Weekly",
15173
+ };
14961
15174
  const ResourcesDateField = {
14962
15175
  RESOURCE_CREATION_TIME_DT: "ResourceCreationTime",
14963
15176
  RESOURCE_DETAIL_CAPTURE_TIME_DT: "ResourceDetailCaptureTime",
@@ -14995,6 +15208,12 @@ const ResourceGroupByField = {
14995
15208
  RESOURCE_NAME: "ResourceName",
14996
15209
  RESOURCE_TYPE: "ResourceType",
14997
15210
  };
15211
+ const ResourcesTrendsStringField = {
15212
+ ACCOUNT_ID: "account_id",
15213
+ REGION: "region",
15214
+ RESOURCE_CATEGORY: "resource_category",
15215
+ RESOURCE_TYPE: "resource_type",
15216
+ };
14998
15217
  const ResourceCategory = {
14999
15218
  AI_ML: "AI/ML",
15000
15219
  CODE: "Code",
@@ -15095,6 +15314,7 @@ exports.EnableOrganizationAdminAccountCommand = EnableOrganizationAdminAccountCo
15095
15314
  exports.EnableSecurityHubCommand = EnableSecurityHubCommand;
15096
15315
  exports.EnableSecurityHubV2Command = EnableSecurityHubV2Command;
15097
15316
  exports.FindingHistoryUpdateSourceType = FindingHistoryUpdateSourceType;
15317
+ exports.FindingsTrendsStringField = FindingsTrendsStringField;
15098
15318
  exports.GetAdministratorAccountCommand = GetAdministratorAccountCommand;
15099
15319
  exports.GetAggregatorV2Command = GetAggregatorV2Command;
15100
15320
  exports.GetAutomationRuleV2Command = GetAutomationRuleV2Command;
@@ -15106,6 +15326,7 @@ exports.GetFindingAggregatorCommand = GetFindingAggregatorCommand;
15106
15326
  exports.GetFindingHistoryCommand = GetFindingHistoryCommand;
15107
15327
  exports.GetFindingStatisticsV2Command = GetFindingStatisticsV2Command;
15108
15328
  exports.GetFindingsCommand = GetFindingsCommand;
15329
+ exports.GetFindingsTrendsV2Command = GetFindingsTrendsV2Command;
15109
15330
  exports.GetFindingsV2Command = GetFindingsV2Command;
15110
15331
  exports.GetInsightResultsCommand = GetInsightResultsCommand;
15111
15332
  exports.GetInsightsCommand = GetInsightsCommand;
@@ -15113,8 +15334,10 @@ exports.GetInvitationsCountCommand = GetInvitationsCountCommand;
15113
15334
  exports.GetMasterAccountCommand = GetMasterAccountCommand;
15114
15335
  exports.GetMembersCommand = GetMembersCommand;
15115
15336
  exports.GetResourcesStatisticsV2Command = GetResourcesStatisticsV2Command;
15337
+ exports.GetResourcesTrendsV2Command = GetResourcesTrendsV2Command;
15116
15338
  exports.GetResourcesV2Command = GetResourcesV2Command;
15117
15339
  exports.GetSecurityControlDefinitionCommand = GetSecurityControlDefinitionCommand;
15340
+ exports.GranularityField = GranularityField;
15118
15341
  exports.GroupByField = GroupByField;
15119
15342
  exports.IntegrationType = IntegrationType;
15120
15343
  exports.IntegrationV2Type = IntegrationV2Type;
@@ -15163,6 +15386,7 @@ exports.ResourcesDateField = ResourcesDateField;
15163
15386
  exports.ResourcesMapField = ResourcesMapField;
15164
15387
  exports.ResourcesNumberField = ResourcesNumberField;
15165
15388
  exports.ResourcesStringField = ResourcesStringField;
15389
+ exports.ResourcesTrendsStringField = ResourcesTrendsStringField;
15166
15390
  exports.RuleStatus = RuleStatus;
15167
15391
  exports.RuleStatusV2 = RuleStatusV2;
15168
15392
  exports.SecurityControlProperty = SecurityControlProperty;
@@ -15213,8 +15437,10 @@ exports.paginateDescribeStandardsControls = paginateDescribeStandardsControls;
15213
15437
  exports.paginateGetEnabledStandards = paginateGetEnabledStandards;
15214
15438
  exports.paginateGetFindingHistory = paginateGetFindingHistory;
15215
15439
  exports.paginateGetFindings = paginateGetFindings;
15440
+ exports.paginateGetFindingsTrendsV2 = paginateGetFindingsTrendsV2;
15216
15441
  exports.paginateGetFindingsV2 = paginateGetFindingsV2;
15217
15442
  exports.paginateGetInsights = paginateGetInsights;
15443
+ exports.paginateGetResourcesTrendsV2 = paginateGetResourcesTrendsV2;
15218
15444
  exports.paginateGetResourcesV2 = paginateGetResourcesV2;
15219
15445
  exports.paginateListAggregatorsV2 = paginateListAggregatorsV2;
15220
15446
  exports.paginateListConfigurationPolicies = paginateListConfigurationPolicies;
@@ -64,6 +64,7 @@ import { GetFindingAggregatorCommand, } from "./commands/GetFindingAggregatorCom
64
64
  import { GetFindingHistoryCommand, } from "./commands/GetFindingHistoryCommand";
65
65
  import { GetFindingsCommand } from "./commands/GetFindingsCommand";
66
66
  import { GetFindingStatisticsV2Command, } from "./commands/GetFindingStatisticsV2Command";
67
+ import { GetFindingsTrendsV2Command, } from "./commands/GetFindingsTrendsV2Command";
67
68
  import { GetFindingsV2Command, } from "./commands/GetFindingsV2Command";
68
69
  import { GetInsightResultsCommand, } from "./commands/GetInsightResultsCommand";
69
70
  import { GetInsightsCommand } from "./commands/GetInsightsCommand";
@@ -71,6 +72,7 @@ import { GetInvitationsCountCommand, } from "./commands/GetInvitationsCountComma
71
72
  import { GetMasterAccountCommand, } from "./commands/GetMasterAccountCommand";
72
73
  import { GetMembersCommand } from "./commands/GetMembersCommand";
73
74
  import { GetResourcesStatisticsV2Command, } from "./commands/GetResourcesStatisticsV2Command";
75
+ import { GetResourcesTrendsV2Command, } from "./commands/GetResourcesTrendsV2Command";
74
76
  import { GetResourcesV2Command, } from "./commands/GetResourcesV2Command";
75
77
  import { GetSecurityControlDefinitionCommand, } from "./commands/GetSecurityControlDefinitionCommand";
76
78
  import { InviteMembersCommand, } from "./commands/InviteMembersCommand";
@@ -171,6 +173,7 @@ const commands = {
171
173
  GetFindingHistoryCommand,
172
174
  GetFindingsCommand,
173
175
  GetFindingStatisticsV2Command,
176
+ GetFindingsTrendsV2Command,
174
177
  GetFindingsV2Command,
175
178
  GetInsightResultsCommand,
176
179
  GetInsightsCommand,
@@ -178,6 +181,7 @@ const commands = {
178
181
  GetMasterAccountCommand,
179
182
  GetMembersCommand,
180
183
  GetResourcesStatisticsV2Command,
184
+ GetResourcesTrendsV2Command,
181
185
  GetResourcesV2Command,
182
186
  GetSecurityControlDefinitionCommand,
183
187
  InviteMembersCommand,
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetFindingsTrendsV2 } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetFindingsTrendsV2Command extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("SecurityHubAPIService", "GetFindingsTrendsV2", {})
13
+ .n("SecurityHubClient", "GetFindingsTrendsV2Command")
14
+ .sc(GetFindingsTrendsV2)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetResourcesTrendsV2 } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetResourcesTrendsV2Command extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("SecurityHubAPIService", "GetResourcesTrendsV2", {})
13
+ .n("SecurityHubClient", "GetResourcesTrendsV2Command")
14
+ .sc(GetResourcesTrendsV2)
15
+ .build() {
16
+ }
@@ -63,6 +63,7 @@ export * from "./GetFindingAggregatorCommand";
63
63
  export * from "./GetFindingHistoryCommand";
64
64
  export * from "./GetFindingStatisticsV2Command";
65
65
  export * from "./GetFindingsCommand";
66
+ export * from "./GetFindingsTrendsV2Command";
66
67
  export * from "./GetFindingsV2Command";
67
68
  export * from "./GetInsightResultsCommand";
68
69
  export * from "./GetInsightsCommand";
@@ -70,6 +71,7 @@ export * from "./GetInvitationsCountCommand";
70
71
  export * from "./GetMasterAccountCommand";
71
72
  export * from "./GetMembersCommand";
72
73
  export * from "./GetResourcesStatisticsV2Command";
74
+ export * from "./GetResourcesTrendsV2Command";
73
75
  export * from "./GetResourcesV2Command";
74
76
  export * from "./GetSecurityControlDefinitionCommand";
75
77
  export * from "./InviteMembersCommand";
@@ -378,6 +378,18 @@ export const FindingHistoryUpdateSourceType = {
378
378
  BATCH_IMPORT_FINDINGS: "BATCH_IMPORT_FINDINGS",
379
379
  BATCH_UPDATE_FINDINGS: "BATCH_UPDATE_FINDINGS",
380
380
  };
381
+ export const FindingsTrendsStringField = {
382
+ ACCOUNT_ID: "account_id",
383
+ COMPLIANCE_CONTROL: "finding_control_id",
384
+ COMPLIANCE_STATUS: "finding_compliance_status",
385
+ CVE_ID: "finding_cve_ids",
386
+ FINDING_ACTIVITY_NAME: "finding_activity_name",
387
+ FINDING_CLASS: "finding_class_name",
388
+ FINDING_STATUS: "finding_status",
389
+ FINDING_TYPE: "finding_types",
390
+ PROVIDER_NAME: "finding_provider",
391
+ REGION: "region",
392
+ };
381
393
  export const SortOrder = {
382
394
  ASCENDING: "asc",
383
395
  DESCENDING: "desc",
@@ -405,6 +417,11 @@ export const GroupByField = {
405
417
  VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name",
406
418
  VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
407
419
  };
420
+ export const GranularityField = {
421
+ DAILY: "Daily",
422
+ MONTHLY: "Monthly",
423
+ WEEKLY: "Weekly",
424
+ };
408
425
  export const ResourcesDateField = {
409
426
  RESOURCE_CREATION_TIME_DT: "ResourceCreationTime",
410
427
  RESOURCE_DETAIL_CAPTURE_TIME_DT: "ResourceDetailCaptureTime",
@@ -442,6 +459,12 @@ export const ResourceGroupByField = {
442
459
  RESOURCE_NAME: "ResourceName",
443
460
  RESOURCE_TYPE: "ResourceType",
444
461
  };
462
+ export const ResourcesTrendsStringField = {
463
+ ACCOUNT_ID: "account_id",
464
+ REGION: "region",
465
+ RESOURCE_CATEGORY: "resource_category",
466
+ RESOURCE_TYPE: "resource_type",
467
+ };
445
468
  export const ResourceCategory = {
446
469
  AI_ML: "AI/ML",
447
470
  CODE: "Code",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { GetFindingsTrendsV2Command, } from "../commands/GetFindingsTrendsV2Command";
3
+ import { SecurityHubClient } from "../SecurityHubClient";
4
+ export const paginateGetFindingsTrendsV2 = createPaginator(SecurityHubClient, GetFindingsTrendsV2Command, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { GetResourcesTrendsV2Command, } from "../commands/GetResourcesTrendsV2Command";
3
+ import { SecurityHubClient } from "../SecurityHubClient";
4
+ export const paginateGetResourcesTrendsV2 = createPaginator(SecurityHubClient, GetResourcesTrendsV2Command, "NextToken", "NextToken", "MaxResults");
@@ -6,9 +6,11 @@ export * from "./DescribeStandardsPaginator";
6
6
  export * from "./GetEnabledStandardsPaginator";
7
7
  export * from "./GetFindingHistoryPaginator";
8
8
  export * from "./GetFindingsPaginator";
9
+ export * from "./GetFindingsTrendsV2Paginator";
9
10
  export * from "./GetFindingsV2Paginator";
10
- export * from "./GetInsightsPaginator";
11
11
  export * from "./Interfaces";
12
+ export * from "./GetInsightsPaginator";
13
+ export * from "./GetResourcesTrendsV2Paginator";
12
14
  export * from "./GetResourcesV2Paginator";
13
15
  export * from "./ListAggregatorsV2Paginator";
14
16
  export * from "./ListConfigurationPoliciesPaginator";