@aws-sdk/client-securityhub 3.916.0 → 3.917.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 (34) hide show
  1. package/dist-cjs/endpoint/ruleset.js +1 -1
  2. package/dist-cjs/index.js +116 -53
  3. package/dist-es/endpoint/ruleset.js +1 -1
  4. package/dist-es/models/models_2.js +76 -8
  5. package/dist-es/models/models_3.js +35 -46
  6. package/dist-es/protocols/Aws_restJson1.js +8 -3
  7. package/dist-types/commands/BatchUpdateFindingsV2Command.d.ts +1 -1
  8. package/dist-types/commands/CreateAggregatorV2Command.d.ts +1 -1
  9. package/dist-types/commands/CreateAutomationRuleV2Command.d.ts +81 -6
  10. package/dist-types/commands/DeleteAggregatorV2Command.d.ts +1 -1
  11. package/dist-types/commands/DeleteAutomationRuleV2Command.d.ts +1 -1
  12. package/dist-types/commands/DescribeProductsV2Command.d.ts +1 -1
  13. package/dist-types/commands/DescribeSecurityHubV2Command.d.ts +1 -1
  14. package/dist-types/commands/DisableSecurityHubV2Command.d.ts +1 -1
  15. package/dist-types/commands/EnableSecurityHubV2Command.d.ts +1 -1
  16. package/dist-types/commands/GetAggregatorV2Command.d.ts +1 -1
  17. package/dist-types/commands/GetAutomationRuleV2Command.d.ts +81 -6
  18. package/dist-types/commands/GetFindingStatisticsV2Command.d.ts +80 -6
  19. package/dist-types/commands/GetFindingsCommand.d.ts +1 -1
  20. package/dist-types/commands/GetFindingsV2Command.d.ts +79 -5
  21. package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +56 -6
  22. package/dist-types/commands/GetResourcesV2Command.d.ts +56 -6
  23. package/dist-types/commands/ListAggregatorsV2Command.d.ts +1 -1
  24. package/dist-types/commands/ListAutomationRulesV2Command.d.ts +1 -1
  25. package/dist-types/commands/UpdateAggregatorV2Command.d.ts +1 -1
  26. package/dist-types/commands/UpdateAutomationRuleV2Command.d.ts +79 -5
  27. package/dist-types/models/models_2.d.ts +164 -186
  28. package/dist-types/models/models_3.d.ts +476 -345
  29. package/dist-types/ts3.4/commands/CreateAutomationRuleV2Command.d.ts +2 -4
  30. package/dist-types/ts3.4/commands/GetAutomationRuleV2Command.d.ts +2 -4
  31. package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +1 -1
  32. package/dist-types/ts3.4/models/models_2.d.ts +92 -55
  33. package/dist-types/ts3.4/models/models_3.d.ts +140 -111
  34. package/package.json +2 -2
@@ -1,9 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- CreateAutomationRuleV2Request,
5
- CreateAutomationRuleV2Response,
6
- } from "../models/models_2";
3
+ import { CreateAutomationRuleV2Response } from "../models/models_2";
4
+ import { CreateAutomationRuleV2Request } from "../models/models_3";
7
5
  import {
8
6
  SecurityHubClientResolvedConfig,
9
7
  ServiceInputTypes,
@@ -1,9 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- GetAutomationRuleV2Request,
5
- GetAutomationRuleV2Response,
6
- } from "../models/models_2";
3
+ import { GetAutomationRuleV2Request } from "../models/models_2";
4
+ import { GetAutomationRuleV2Response } from "../models/models_3";
7
5
  import {
8
6
  SecurityHubClientResolvedConfig,
9
7
  ServiceInputTypes,
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { GetFindingsRequest, GetFindingsResponse } from "../models/models_3";
3
+ import { GetFindingsRequest, GetFindingsResponse } from "../models/models_2";
4
4
  import {
5
5
  SecurityHubClientResolvedConfig,
6
6
  ServiceInputTypes,
@@ -4,12 +4,10 @@ import {
4
4
  Action,
5
5
  ActionTarget,
6
6
  Adjustment,
7
- AllowedOperators,
8
7
  AssociationStatus,
9
8
  AssociationType,
10
9
  AutoEnableStandards,
11
10
  AutomationRulesAction,
12
- AutomationRulesActionV2,
13
11
  AutomationRulesConfig,
14
12
  AutomationRulesFindingFilters,
15
13
  AwsAmazonMqBrokerDetails,
@@ -61,7 +59,6 @@ import {
61
59
  NumberFilter,
62
60
  RelatedFinding,
63
61
  RuleStatus,
64
- RuleStatusV2,
65
62
  SeverityLabel,
66
63
  SeverityUpdate,
67
64
  StringFilter,
@@ -1381,13 +1378,28 @@ export declare const OcsfDateField: {
1381
1378
  readonly FINDING_INFO_FIRST_SEEN_TIME_DT: "finding_info.first_seen_time_dt";
1382
1379
  readonly FINDING_INFO_LAST_SEEN_TIME_DT: "finding_info.last_seen_time_dt";
1383
1380
  readonly FINDING_INFO_MODIFIED_TIME_DT: "finding_info.modified_time_dt";
1381
+ readonly RESOURCES_IMAGE_CREATED_TIME_DT: "resources.image.created_time_dt";
1382
+ readonly RESOURCES_IMAGE_LAST_USED_TIME_DT: "resources.image.last_used_time_dt";
1383
+ readonly RESOURCES_MODIFIED_TIME_DT: "resources.modified_time_dt";
1384
1384
  };
1385
1385
  export type OcsfDateField = (typeof OcsfDateField)[keyof typeof OcsfDateField];
1386
1386
  export interface OcsfDateFilter {
1387
1387
  FieldName?: OcsfDateField | undefined;
1388
1388
  Filter?: DateFilter | undefined;
1389
1389
  }
1390
+ export declare const OcsfIpField: {
1391
+ readonly EVIDENCES_DST_ENDPOINT_IP: "evidences.dst_endpoint.ip";
1392
+ readonly EVIDENCES_SRC_ENDPOINT_IP: "evidences.src_endpoint.ip";
1393
+ };
1394
+ export type OcsfIpField = (typeof OcsfIpField)[keyof typeof OcsfIpField];
1395
+ export interface OcsfIpFilter {
1396
+ FieldName?: OcsfIpField | undefined;
1397
+ Filter?: IpFilter | undefined;
1398
+ }
1390
1399
  export declare const OcsfMapField: {
1400
+ readonly COMPLIANCE_CONTROL_PARAMETERS: "compliance.control_parameters";
1401
+ readonly DATABUCKET_TAGS: "databucket.tags";
1402
+ readonly FINDING_INFO_TAGS: "finding_info.tags";
1391
1403
  readonly RESOURCES_TAGS: "resources.tags";
1392
1404
  };
1393
1405
  export type OcsfMapField = (typeof OcsfMapField)[keyof typeof OcsfMapField];
@@ -1399,7 +1411,13 @@ export declare const OcsfNumberField: {
1399
1411
  readonly ACTIVITY_ID: "activity_id";
1400
1412
  readonly COMPLIANCE_STATUS_ID: "compliance.status_id";
1401
1413
  readonly CONFIDENCE_SCORE: "confidence_score";
1414
+ readonly EVIDENCES_API_RESPONSE_CODE: "evidences.api.response.code";
1415
+ readonly EVIDENCES_DST_ENDPOINT_AUTONOMOUS_SYSTEM_NUMBER: "evidences.dst_endpoint.autonomous_system.number";
1416
+ readonly EVIDENCES_DST_ENDPOINT_PORT: "evidences.dst_endpoint.port";
1417
+ readonly EVIDENCES_SRC_ENDPOINT_AUTONOMOUS_SYSTEM_NUMBER: "evidences.src_endpoint.autonomous_system.number";
1418
+ readonly EVIDENCES_SRC_ENDPOINT_PORT: "evidences.src_endpoint.port";
1402
1419
  readonly FINDING_INFO_RELATED_EVENTS_COUNT: "finding_info.related_events_count";
1420
+ readonly RESOURCES_IMAGE_IN_USE_COUNT: "resources.image.in_use_count";
1403
1421
  readonly SEVERITY_ID: "severity_id";
1404
1422
  readonly STATUS_ID: "status_id";
1405
1423
  };
@@ -1412,6 +1430,7 @@ export interface OcsfNumberFilter {
1412
1430
  export declare const OcsfStringField: {
1413
1431
  readonly ACTIVITY_NAME: "activity_name";
1414
1432
  readonly CLASS_NAME: "class_name";
1433
+ readonly CLOUD_ACCOUNT_NAME: "cloud.account.name";
1415
1434
  readonly CLOUD_ACCOUNT_UID: "cloud.account.uid";
1416
1435
  readonly CLOUD_PROVIDER: "cloud.provider";
1417
1436
  readonly CLOUD_REGION: "cloud.region";
@@ -1421,6 +1440,23 @@ export declare const OcsfStringField: {
1421
1440
  readonly COMPLIANCE_CONTROL: "compliance.control";
1422
1441
  readonly COMPLIANCE_STANDARDS: "compliance.standards";
1423
1442
  readonly COMPLIANCE_STATUS: "compliance.status";
1443
+ readonly DATABUCKET_ENCRYPTION_DETAILS_ALGORITHM: "databucket.encryption_details.algorithm";
1444
+ readonly DATABUCKET_ENCRYPTION_DETAILS_KEY_UID: "databucket.encryption_details.key_uid";
1445
+ readonly DATABUCKET_FILE_DATA_CLASSIFICATIONS_CLASSIFIER_DETAILS_TYPE: "databucket.file.data_classifications.classifier_details.type";
1446
+ readonly EVIDENCES_ACTOR_USER_ACCOUNT_UID: "evidences.actor.user.account.uid";
1447
+ readonly EVIDENCES_API_OPERATION: "evidences.api.operation";
1448
+ readonly EVIDENCES_API_RESPONSE_ERROR_MESSAGE: "evidences.api.response.error_message";
1449
+ readonly EVIDENCES_API_SERVICE_NAME: "evidences.api.service.name";
1450
+ readonly EVIDENCES_CONNECTION_INFO_DIRECTION: "evidences.connection_info.direction";
1451
+ readonly EVIDENCES_CONNECTION_INFO_PROTOCOL_NAME: "evidences.connection_info.protocol_name";
1452
+ readonly EVIDENCES_DST_ENDPOINT_AUTONOMOUS_SYSTEM_NAME: "evidences.dst_endpoint.autonomous_system.name";
1453
+ readonly EVIDENCES_DST_ENDPOINT_LOCATION_CITY: "evidences.dst_endpoint.location.city";
1454
+ readonly EVIDENCES_DST_ENDPOINT_LOCATION_COUNTRY: "evidences.dst_endpoint.location.country";
1455
+ readonly EVIDENCES_SRC_ENDPOINT_AUTONOMOUS_SYSTEM_NAME: "evidences.src_endpoint.autonomous_system.name";
1456
+ readonly EVIDENCES_SRC_ENDPOINT_HOSTNAME: "evidences.src_endpoint.hostname";
1457
+ readonly EVIDENCES_SRC_ENDPOINT_LOCATION_CITY: "evidences.src_endpoint.location.city";
1458
+ readonly EVIDENCES_SRC_ENDPOINT_LOCATION_COUNTRY: "evidences.src_endpoint.location.country";
1459
+ readonly FINDING_INFO_ANALYTIC_NAME: "finding_info.analytic.name";
1424
1460
  readonly FINDING_INFO_DESC: "finding_info.desc";
1425
1461
  readonly FINDING_INFO_RELATED_EVENTS_PRODUCT_UID: "finding_info.related_events.product.uid";
1426
1462
  readonly FINDING_INFO_RELATED_EVENTS_TITLE: "finding_info.related_events.title";
@@ -1429,19 +1465,38 @@ export declare const OcsfStringField: {
1429
1465
  readonly FINDING_INFO_TITLE: "finding_info.title";
1430
1466
  readonly FINDING_INFO_TYPES: "finding_info.types";
1431
1467
  readonly FINDING_INFO_UID: "finding_info.uid";
1468
+ readonly MALWARE_NAME: "malware.name";
1469
+ readonly MALWARE_SCAN_INFO_UID: "malware_scan_info.uid";
1470
+ readonly MALWARE_SEVERITY: "malware.severity";
1432
1471
  readonly METADATA_PRODUCT_NAME: "metadata.product.name";
1433
1472
  readonly METADATA_PRODUCT_UID: "metadata.product.uid";
1434
1473
  readonly METADATA_PRODUCT_VENDOR_NAME: "metadata.product.vendor_name";
1435
1474
  readonly METADATA_UID: "metadata.uid";
1436
1475
  readonly REMEDIATION_DESC: "remediation.desc";
1437
1476
  readonly REMEDIATION_REFERENCES: "remediation.references";
1477
+ readonly RESOURCES_CLOUD_FUNCTION_LAYERS_UID_ALT: "resources.cloud_function.layers.uid_alt";
1478
+ readonly RESOURCES_CLOUD_FUNCTION_RUNTIME: "resources.cloud_function.runtime";
1479
+ readonly RESOURCES_CLOUD_FUNCTION_USER_UID: "resources.cloud_function.user.uid";
1438
1480
  readonly RESOURCES_CLOUD_PARTITION: "resources.cloud_partition";
1481
+ readonly RESOURCES_DEVICE_ENCRYPTION_DETAILS_KEY_UID: "resources.device.encryption_details.key_uid";
1482
+ readonly RESOURCES_DEVICE_IMAGE_UID: "resources.device.image.uid";
1483
+ readonly RESOURCES_IMAGE_ARCHITECTURE: "resources.image.architecture";
1484
+ readonly RESOURCES_IMAGE_REGISTRY_UID: "resources.image.registry_uid";
1485
+ readonly RESOURCES_IMAGE_REPOSITORY_NAME: "resources.image.repository_name";
1486
+ readonly RESOURCES_IMAGE_UID: "resources.image.uid";
1439
1487
  readonly RESOURCES_REGION: "resources.region";
1488
+ readonly RESOURCES_SUBNET_INFO_UID: "resources.subnet_info.uid";
1440
1489
  readonly RESOURCES_TYPE: "resources.type";
1441
1490
  readonly RESOURCES_UID: "resources.uid";
1491
+ readonly RESOURCES_VPC_UID: "resources.vpc_uid";
1442
1492
  readonly SEVERITY: "severity";
1443
1493
  readonly STATUS: "status";
1494
+ readonly VULNERABILITIES_AFFECTED_CODE_FILE_PATH: "vulnerabilities.affected_code.file.path";
1495
+ readonly VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name";
1496
+ readonly VULNERABILITIES_CVE_EPSS_SCORE: "vulnerabilities.cve.epss.score";
1497
+ readonly VULNERABILITIES_CVE_UID: "vulnerabilities.cve.uid";
1444
1498
  readonly VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage";
1499
+ readonly VULNERABILITIES_RELATED_VULNERABILITIES: "vulnerabilities.related_vulnerabilities";
1445
1500
  };
1446
1501
  export type OcsfStringField =
1447
1502
  (typeof OcsfStringField)[keyof typeof OcsfStringField];
@@ -1449,14 +1504,6 @@ export interface OcsfStringFilter {
1449
1504
  FieldName?: OcsfStringField | undefined;
1450
1505
  Filter?: StringFilter | undefined;
1451
1506
  }
1452
- export interface CompositeFilter {
1453
- StringFilters?: OcsfStringFilter[] | undefined;
1454
- DateFilters?: OcsfDateFilter[] | undefined;
1455
- BooleanFilters?: OcsfBooleanFilter[] | undefined;
1456
- NumberFilters?: OcsfNumberFilter[] | undefined;
1457
- MapFilters?: OcsfMapFilter[] | undefined;
1458
- Operator?: AllowedOperators | undefined;
1459
- }
1460
1507
  export interface DoubleConfigurationOptions {
1461
1508
  DefaultValue?: number | undefined;
1462
1509
  Min?: number | undefined;
@@ -1712,38 +1759,6 @@ export interface CreateAutomationRuleRequest {
1712
1759
  export interface CreateAutomationRuleResponse {
1713
1760
  RuleArn?: string | undefined;
1714
1761
  }
1715
- export interface OcsfFindingFilters {
1716
- CompositeFilters?: CompositeFilter[] | undefined;
1717
- CompositeOperator?: AllowedOperators | undefined;
1718
- }
1719
- export type Criteria =
1720
- | Criteria.OcsfFindingCriteriaMember
1721
- | Criteria.$UnknownMember;
1722
- export declare namespace Criteria {
1723
- interface OcsfFindingCriteriaMember {
1724
- OcsfFindingCriteria: OcsfFindingFilters;
1725
- $unknown?: never;
1726
- }
1727
- interface $UnknownMember {
1728
- OcsfFindingCriteria?: never;
1729
- $unknown: [string, any];
1730
- }
1731
- interface Visitor<T> {
1732
- OcsfFindingCriteria: (value: OcsfFindingFilters) => T;
1733
- _: (name: string, value: any) => T;
1734
- }
1735
- const visit: <T>(value: Criteria, visitor: Visitor<T>) => T;
1736
- }
1737
- export interface CreateAutomationRuleV2Request {
1738
- RuleName: string | undefined;
1739
- RuleStatus?: RuleStatusV2 | undefined;
1740
- Description: string | undefined;
1741
- RuleOrder: number | undefined;
1742
- Criteria: Criteria | undefined;
1743
- Actions: AutomationRulesActionV2[] | undefined;
1744
- Tags?: Record<string, string> | undefined;
1745
- ClientToken?: string | undefined;
1746
- }
1747
1762
  export interface CreateAutomationRuleV2Response {
1748
1763
  RuleArn?: string | undefined;
1749
1764
  RuleId?: string | undefined;
@@ -2175,18 +2190,6 @@ export interface GetAggregatorV2Response {
2175
2190
  export interface GetAutomationRuleV2Request {
2176
2191
  Identifier: string | undefined;
2177
2192
  }
2178
- export interface GetAutomationRuleV2Response {
2179
- RuleArn?: string | undefined;
2180
- RuleId?: string | undefined;
2181
- RuleOrder?: number | undefined;
2182
- RuleName?: string | undefined;
2183
- RuleStatus?: RuleStatusV2 | undefined;
2184
- Description?: string | undefined;
2185
- Criteria?: Criteria | undefined;
2186
- Actions?: AutomationRulesActionV2[] | undefined;
2187
- CreatedAt?: Date | undefined;
2188
- UpdatedAt?: Date | undefined;
2189
- }
2190
2193
  export interface GetConfigurationPolicyRequest {
2191
2194
  Identifier: string | undefined;
2192
2195
  }
@@ -2307,6 +2310,40 @@ export interface SortCriterion {
2307
2310
  Field?: string | undefined;
2308
2311
  SortOrder?: SortOrder | undefined;
2309
2312
  }
2313
+ export interface GetFindingsRequest {
2314
+ Filters?: AwsSecurityFindingFilters | undefined;
2315
+ SortCriteria?: SortCriterion[] | undefined;
2316
+ NextToken?: string | undefined;
2317
+ MaxResults?: number | undefined;
2318
+ }
2319
+ export interface GetFindingsResponse {
2320
+ Findings: AwsSecurityFinding[] | undefined;
2321
+ NextToken?: string | undefined;
2322
+ }
2323
+ export declare const GroupByField: {
2324
+ readonly ACTIVITY_NAME: "activity_name";
2325
+ readonly CLASS_NAME: "class_name";
2326
+ readonly CLOUD_ACCOUNT_NAME: "cloud.account.name";
2327
+ readonly CLOUD_ACCOUNT_UID: "cloud.account.uid";
2328
+ readonly CLOUD_PROVIDER: "cloud.provider";
2329
+ readonly CLOUD_REGION: "cloud.region";
2330
+ readonly COMPLIANCE_ASSESSMENTS_NAME: "compliance.assessments.name";
2331
+ readonly COMPLIANCE_CONTROL: "compliance.control";
2332
+ readonly COMPLIANCE_STANDARDS: "compliance.standards";
2333
+ readonly COMPLIANCE_STATUS: "compliance.status";
2334
+ readonly FINDING_INFO_ANALYTIC_NAME: "finding_info.analytic.name";
2335
+ readonly FINDING_INFO_TITLE: "finding_info.title";
2336
+ readonly FINDING_INFO_TYPES: "finding_info.types";
2337
+ readonly METADATA_PRODUCT_NAME: "metadata.product.name";
2338
+ readonly METADATA_PRODUCT_UID: "metadata.product.uid";
2339
+ readonly RESOURCES_TYPE: "resources.type";
2340
+ readonly RESOURCES_UID: "resources.uid";
2341
+ readonly SEVERITY: "severity";
2342
+ readonly STATUS: "status";
2343
+ readonly VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name";
2344
+ readonly VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage";
2345
+ };
2346
+ export type GroupByField = (typeof GroupByField)[keyof typeof GroupByField];
2310
2347
  export declare const ServiceNowProviderConfigurationFilterSensitiveLog: (
2311
2348
  obj: ServiceNowProviderConfiguration
2312
2349
  ) => any;
@@ -21,7 +21,6 @@ import {
21
21
  } from "./models_0";
22
22
  import { RecordState } from "./models_1";
23
23
  import {
24
- AwsSecurityFinding,
25
24
  AwsSecurityFindingFilters,
26
25
  ConfigurationOptions,
27
26
  ConfigurationPolicyAssociationSummary,
@@ -31,10 +30,15 @@ import {
31
30
  ConnectorSummary,
32
31
  ControlFindingGenerator,
33
32
  ControlStatus,
34
- Criteria,
35
33
  FindingAggregator,
34
+ GroupByField,
36
35
  Invitation,
37
- OcsfFindingFilters,
36
+ OcsfBooleanFilter,
37
+ OcsfDateFilter,
38
+ OcsfIpFilter,
39
+ OcsfMapFilter,
40
+ OcsfNumberFilter,
41
+ OcsfStringFilter,
38
42
  OrganizationConfiguration,
39
43
  ParameterConfiguration,
40
44
  Policy,
@@ -48,45 +52,6 @@ import {
48
52
  TargetType,
49
53
  } from "./models_2";
50
54
  import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
51
- export interface GetFindingsRequest {
52
- Filters?: AwsSecurityFindingFilters | undefined;
53
- SortCriteria?: SortCriterion[] | undefined;
54
- NextToken?: string | undefined;
55
- MaxResults?: number | undefined;
56
- }
57
- export interface GetFindingsResponse {
58
- Findings: AwsSecurityFinding[] | undefined;
59
- NextToken?: string | undefined;
60
- }
61
- export declare const GroupByField: {
62
- readonly ACTIVITY_NAME: "activity_name";
63
- readonly CLASS_NAME: "class_name";
64
- readonly CLOUD_ACCOUNT_UID: "cloud.account.uid";
65
- readonly CLOUD_PROVIDER: "cloud.provider";
66
- readonly CLOUD_REGION: "cloud.region";
67
- readonly COMPLIANCE_ASSESSMENTS_NAME: "compliance.assessments.name";
68
- readonly COMPLIANCE_CONTROL: "compliance.control";
69
- readonly COMPLIANCE_STATUS: "compliance.status";
70
- readonly FINDING_INFO_TITLE: "finding_info.title";
71
- readonly FINDING_INFO_TYPES: "finding_info.types";
72
- readonly METADATA_PRODUCT_NAME: "metadata.product.name";
73
- readonly METADATA_PRODUCT_UID: "metadata.product.uid";
74
- readonly RESOURCES_TYPE: "resources.type";
75
- readonly RESOURCES_UID: "resources.uid";
76
- readonly SEVERITY: "severity";
77
- readonly STATUS: "status";
78
- readonly VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage";
79
- };
80
- export type GroupByField = (typeof GroupByField)[keyof typeof GroupByField];
81
- export interface GroupByRule {
82
- Filters?: OcsfFindingFilters | undefined;
83
- GroupByField: GroupByField | undefined;
84
- }
85
- export interface GetFindingStatisticsV2Request {
86
- GroupByRules: GroupByRule[] | undefined;
87
- SortOrder?: SortOrder | undefined;
88
- MaxStatisticResults?: number | undefined;
89
- }
90
55
  export interface GroupByValue {
91
56
  FieldValue?: string | undefined;
92
57
  Count?: number | undefined;
@@ -98,12 +63,6 @@ export interface GroupByResult {
98
63
  export interface GetFindingStatisticsV2Response {
99
64
  GroupByResults?: GroupByResult[] | undefined;
100
65
  }
101
- export interface GetFindingsV2Request {
102
- Filters?: OcsfFindingFilters | undefined;
103
- SortCriteria?: SortCriterion[] | undefined;
104
- NextToken?: string | undefined;
105
- MaxResults?: number | undefined;
106
- }
107
66
  export interface GetFindingsV2Response {
108
67
  Findings?: __DocumentType[] | undefined;
109
68
  NextToken?: string | undefined;
@@ -163,8 +122,8 @@ export interface GetMembersResponse {
163
122
  UnprocessedAccounts?: Result[] | undefined;
164
123
  }
165
124
  export declare const ResourcesDateField: {
166
- readonly RESOURCE_CREATION_TIME_DT: "resource_creation_time_dt";
167
- readonly RESOURCE_DETAIL_CAPTURE_TIME_DT: "resource_detail_capture_time_dt";
125
+ readonly RESOURCE_CREATION_TIME_DT: "ResourceCreationTime";
126
+ readonly RESOURCE_DETAIL_CAPTURE_TIME_DT: "ResourceDetailCaptureTime";
168
127
  };
169
128
  export type ResourcesDateField =
170
129
  (typeof ResourcesDateField)[keyof typeof ResourcesDateField];
@@ -173,7 +132,7 @@ export interface ResourcesDateFilter {
173
132
  Filter?: DateFilter | undefined;
174
133
  }
175
134
  export declare const ResourcesMapField: {
176
- readonly TAG: "tags";
135
+ readonly TAG: "ResourceTags";
177
136
  };
178
137
  export type ResourcesMapField =
179
138
  (typeof ResourcesMapField)[keyof typeof ResourcesMapField];
@@ -182,15 +141,15 @@ export interface ResourcesMapFilter {
182
141
  Filter?: MapFilter | undefined;
183
142
  }
184
143
  export declare const ResourcesNumberField: {
185
- readonly SEVERITY_CRITICAL: "findings_summary.severities.critical";
186
- readonly SEVERITY_FATAL: "findings_summary.severities.fatal";
187
- readonly SEVERITY_HIGH: "findings_summary.severities.high";
188
- readonly SEVERITY_INFORMATIONAL: "findings_summary.severities.informational";
189
- readonly SEVERITY_LOW: "findings_summary.severities.low";
190
- readonly SEVERITY_MEDIUM: "findings_summary.severities.medium";
191
- readonly SEVERITY_OTHER: "findings_summary.severities.other";
192
- readonly SEVERITY_UNKNOWN: "findings_summary.severities.unknown";
193
- readonly TOTAL_FINDINGS: "findings_summary.total_findings";
144
+ readonly SEVERITY_CRITICAL: "FindingsSummary.Severities.Critical";
145
+ readonly SEVERITY_FATAL: "FindingsSummary.Severities.Fatal";
146
+ readonly SEVERITY_HIGH: "FindingsSummary.Severities.High";
147
+ readonly SEVERITY_INFORMATIONAL: "FindingsSummary.Severities.Informational";
148
+ readonly SEVERITY_LOW: "FindingsSummary.Severities.Low";
149
+ readonly SEVERITY_MEDIUM: "FindingsSummary.Severities.Medium";
150
+ readonly SEVERITY_OTHER: "FindingsSummary.Severities.Other";
151
+ readonly SEVERITY_UNKNOWN: "FindingsSummary.Severities.Unknown";
152
+ readonly TOTAL_FINDINGS: "FindingsSummary.TotalFindings";
194
153
  };
195
154
  export type ResourcesNumberField =
196
155
  (typeof ResourcesNumberField)[keyof typeof ResourcesNumberField];
@@ -199,15 +158,15 @@ export interface ResourcesNumberFilter {
199
158
  Filter?: NumberFilter | undefined;
200
159
  }
201
160
  export declare const ResourcesStringField: {
202
- readonly ACCOUNT_ID: "account_id";
203
- readonly FINDING_TYPE: "findings_summary.finding_type";
204
- readonly PRODUCT_NAME: "findings_summary.product_name";
205
- readonly REGION: "region";
206
- readonly RESOURCE_ARN: "resource_arn";
207
- readonly RESOURCE_CATEGORY: "resource_category";
208
- readonly RESOURCE_ID: "resource_id";
209
- readonly RESOURCE_NAME: "resource_name";
210
- readonly RESOURCE_TYPE: "resource_type";
161
+ readonly ACCOUNT_ID: "AccountId";
162
+ readonly FINDING_TYPE: "FindingsSummary.FindingType";
163
+ readonly PRODUCT_NAME: "FindingsSummary.ProductName";
164
+ readonly REGION: "Region";
165
+ readonly RESOURCE_CATEGORY: "ResourceCategory";
166
+ readonly RESOURCE_GUID: "ResourceGuid";
167
+ readonly RESOURCE_ID: "ResourceId";
168
+ readonly RESOURCE_NAME: "ResourceName";
169
+ readonly RESOURCE_TYPE: "ResourceType";
211
170
  };
212
171
  export type ResourcesStringField =
213
172
  (typeof ResourcesStringField)[keyof typeof ResourcesStringField];
@@ -215,45 +174,19 @@ export interface ResourcesStringFilter {
215
174
  FieldName?: ResourcesStringField | undefined;
216
175
  Filter?: StringFilter | undefined;
217
176
  }
218
- export interface ResourcesCompositeFilter {
219
- StringFilters?: ResourcesStringFilter[] | undefined;
220
- DateFilters?: ResourcesDateFilter[] | undefined;
221
- NumberFilters?: ResourcesNumberFilter[] | undefined;
222
- MapFilters?: ResourcesMapFilter[] | undefined;
223
- Operator?: AllowedOperators | undefined;
224
- }
225
- export interface ResourcesFilters {
226
- CompositeFilters?: ResourcesCompositeFilter[] | undefined;
227
- CompositeOperator?: AllowedOperators | undefined;
228
- }
229
177
  export declare const ResourceGroupByField: {
230
- readonly ACCOUNT_ID: "account_id";
231
- readonly FINDING_TYPE: "findings_summary.finding_type";
232
- readonly REGION: "region";
233
- readonly RESOURCE_CATEGORY: "resource_category";
234
- readonly RESOURCE_NAME: "resource_name";
235
- readonly RESOURCE_TYPE: "resource_type";
178
+ readonly ACCOUNT_ID: "AccountId";
179
+ readonly FINDING_TYPE: "FindingsSummary.FindingType";
180
+ readonly REGION: "Region";
181
+ readonly RESOURCE_CATEGORY: "ResourceCategory";
182
+ readonly RESOURCE_NAME: "ResourceName";
183
+ readonly RESOURCE_TYPE: "ResourceType";
236
184
  };
237
185
  export type ResourceGroupByField =
238
186
  (typeof ResourceGroupByField)[keyof typeof ResourceGroupByField];
239
- export interface ResourceGroupByRule {
240
- GroupByField: ResourceGroupByField | undefined;
241
- Filters?: ResourcesFilters | undefined;
242
- }
243
- export interface GetResourcesStatisticsV2Request {
244
- GroupByRules: ResourceGroupByRule[] | undefined;
245
- SortOrder?: SortOrder | undefined;
246
- MaxStatisticResults?: number | undefined;
247
- }
248
187
  export interface GetResourcesStatisticsV2Response {
249
188
  GroupByResults: GroupByResult[] | undefined;
250
189
  }
251
- export interface GetResourcesV2Request {
252
- Filters?: ResourcesFilters | undefined;
253
- SortCriteria?: SortCriterion[] | undefined;
254
- NextToken?: string | undefined;
255
- MaxResults?: number | undefined;
256
- }
257
190
  export interface ResourceSeverityBreakdown {
258
191
  Other?: number | undefined;
259
192
  Fatal?: number | undefined;
@@ -287,7 +220,7 @@ export interface ResourceTag {
287
220
  Value: string | undefined;
288
221
  }
289
222
  export interface ResourceResult {
290
- ResourceArn?: string | undefined;
223
+ ResourceGuid?: string | undefined;
291
224
  ResourceId: string | undefined;
292
225
  AccountId: string | undefined;
293
226
  Region: string | undefined;
@@ -547,15 +480,6 @@ export interface UpdateAggregatorV2Response {
547
480
  RegionLinkingMode?: string | undefined;
548
481
  LinkedRegions?: string[] | undefined;
549
482
  }
550
- export interface UpdateAutomationRuleV2Request {
551
- Identifier: string | undefined;
552
- RuleStatus?: RuleStatusV2 | undefined;
553
- RuleOrder?: number | undefined;
554
- Description?: string | undefined;
555
- RuleName?: string | undefined;
556
- Criteria?: Criteria | undefined;
557
- Actions?: AutomationRulesActionV2[] | undefined;
558
- }
559
483
  export interface UpdateAutomationRuleV2Response {}
560
484
  export interface UpdateConfigurationPolicyRequest {
561
485
  Identifier: string | undefined;
@@ -627,6 +551,111 @@ export interface UpdateStandardsControlRequest {
627
551
  DisabledReason?: string | undefined;
628
552
  }
629
553
  export interface UpdateStandardsControlResponse {}
554
+ export interface CompositeFilter {
555
+ StringFilters?: OcsfStringFilter[] | undefined;
556
+ DateFilters?: OcsfDateFilter[] | undefined;
557
+ BooleanFilters?: OcsfBooleanFilter[] | undefined;
558
+ NumberFilters?: OcsfNumberFilter[] | undefined;
559
+ MapFilters?: OcsfMapFilter[] | undefined;
560
+ IpFilters?: OcsfIpFilter[] | undefined;
561
+ NestedCompositeFilters?: CompositeFilter[] | undefined;
562
+ Operator?: AllowedOperators | undefined;
563
+ }
564
+ export interface ResourcesCompositeFilter {
565
+ StringFilters?: ResourcesStringFilter[] | undefined;
566
+ DateFilters?: ResourcesDateFilter[] | undefined;
567
+ NumberFilters?: ResourcesNumberFilter[] | undefined;
568
+ MapFilters?: ResourcesMapFilter[] | undefined;
569
+ NestedCompositeFilters?: ResourcesCompositeFilter[] | undefined;
570
+ Operator?: AllowedOperators | undefined;
571
+ }
572
+ export interface OcsfFindingFilters {
573
+ CompositeFilters?: CompositeFilter[] | undefined;
574
+ CompositeOperator?: AllowedOperators | undefined;
575
+ }
576
+ export interface ResourcesFilters {
577
+ CompositeFilters?: ResourcesCompositeFilter[] | undefined;
578
+ CompositeOperator?: AllowedOperators | undefined;
579
+ }
580
+ export type Criteria =
581
+ | Criteria.OcsfFindingCriteriaMember
582
+ | Criteria.$UnknownMember;
583
+ export declare namespace Criteria {
584
+ interface OcsfFindingCriteriaMember {
585
+ OcsfFindingCriteria: OcsfFindingFilters;
586
+ $unknown?: never;
587
+ }
588
+ interface $UnknownMember {
589
+ OcsfFindingCriteria?: never;
590
+ $unknown: [string, any];
591
+ }
592
+ interface Visitor<T> {
593
+ OcsfFindingCriteria: (value: OcsfFindingFilters) => T;
594
+ _: (name: string, value: any) => T;
595
+ }
596
+ const visit: <T>(value: Criteria, visitor: Visitor<T>) => T;
597
+ }
598
+ export interface GetFindingsV2Request {
599
+ Filters?: OcsfFindingFilters | undefined;
600
+ SortCriteria?: SortCriterion[] | undefined;
601
+ NextToken?: string | undefined;
602
+ MaxResults?: number | undefined;
603
+ }
604
+ export interface GetResourcesV2Request {
605
+ Filters?: ResourcesFilters | undefined;
606
+ SortCriteria?: SortCriterion[] | undefined;
607
+ NextToken?: string | undefined;
608
+ MaxResults?: number | undefined;
609
+ }
610
+ export interface GroupByRule {
611
+ Filters?: OcsfFindingFilters | undefined;
612
+ GroupByField: GroupByField | undefined;
613
+ }
614
+ export interface ResourceGroupByRule {
615
+ GroupByField: ResourceGroupByField | undefined;
616
+ Filters?: ResourcesFilters | undefined;
617
+ }
618
+ export interface CreateAutomationRuleV2Request {
619
+ RuleName: string | undefined;
620
+ RuleStatus?: RuleStatusV2 | undefined;
621
+ Description: string | undefined;
622
+ RuleOrder: number | undefined;
623
+ Criteria: Criteria | undefined;
624
+ Actions: AutomationRulesActionV2[] | undefined;
625
+ Tags?: Record<string, string> | undefined;
626
+ ClientToken?: string | undefined;
627
+ }
628
+ export interface GetAutomationRuleV2Response {
629
+ RuleArn?: string | undefined;
630
+ RuleId?: string | undefined;
631
+ RuleOrder?: number | undefined;
632
+ RuleName?: string | undefined;
633
+ RuleStatus?: RuleStatusV2 | undefined;
634
+ Description?: string | undefined;
635
+ Criteria?: Criteria | undefined;
636
+ Actions?: AutomationRulesActionV2[] | undefined;
637
+ CreatedAt?: Date | undefined;
638
+ UpdatedAt?: Date | undefined;
639
+ }
640
+ export interface UpdateAutomationRuleV2Request {
641
+ Identifier: string | undefined;
642
+ RuleStatus?: RuleStatusV2 | undefined;
643
+ RuleOrder?: number | undefined;
644
+ Description?: string | undefined;
645
+ RuleName?: string | undefined;
646
+ Criteria?: Criteria | undefined;
647
+ Actions?: AutomationRulesActionV2[] | undefined;
648
+ }
649
+ export interface GetFindingStatisticsV2Request {
650
+ GroupByRules: GroupByRule[] | undefined;
651
+ SortOrder?: SortOrder | undefined;
652
+ MaxStatisticResults?: number | undefined;
653
+ }
654
+ export interface GetResourcesStatisticsV2Request {
655
+ GroupByRules: ResourceGroupByRule[] | undefined;
656
+ SortOrder?: SortOrder | undefined;
657
+ MaxStatisticResults?: number | undefined;
658
+ }
630
659
  export declare const UpdateConnectorV2RequestFilterSensitiveLog: (
631
660
  obj: UpdateConnectorV2Request
632
661
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-securityhub",
3
3
  "description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
4
- "version": "3.916.0",
4
+ "version": "3.917.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-securityhub",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.916.0",
24
- "@aws-sdk/credential-provider-node": "3.916.0",
24
+ "@aws-sdk/credential-provider-node": "3.917.0",
25
25
  "@aws-sdk/middleware-host-header": "3.914.0",
26
26
  "@aws-sdk/middleware-logger": "3.914.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.914.0",