@aws-sdk/client-securityhub 3.916.0 → 3.918.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/endpoint/ruleset.js +1 -1
- package/dist-cjs/index.js +116 -53
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_2.js +76 -8
- package/dist-es/models/models_3.js +35 -46
- package/dist-es/protocols/Aws_restJson1.js +8 -3
- package/dist-types/commands/BatchUpdateFindingsV2Command.d.ts +1 -1
- package/dist-types/commands/CreateAggregatorV2Command.d.ts +1 -1
- package/dist-types/commands/CreateAutomationRuleV2Command.d.ts +81 -6
- package/dist-types/commands/DeleteAggregatorV2Command.d.ts +1 -1
- package/dist-types/commands/DeleteAutomationRuleV2Command.d.ts +1 -1
- package/dist-types/commands/DescribeProductsV2Command.d.ts +1 -1
- package/dist-types/commands/DescribeSecurityHubV2Command.d.ts +1 -1
- package/dist-types/commands/DisableSecurityHubV2Command.d.ts +1 -1
- package/dist-types/commands/EnableSecurityHubV2Command.d.ts +1 -1
- package/dist-types/commands/GetAggregatorV2Command.d.ts +1 -1
- package/dist-types/commands/GetAutomationRuleV2Command.d.ts +81 -6
- package/dist-types/commands/GetFindingStatisticsV2Command.d.ts +80 -6
- package/dist-types/commands/GetFindingsCommand.d.ts +1 -1
- package/dist-types/commands/GetFindingsV2Command.d.ts +79 -5
- package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +56 -6
- package/dist-types/commands/GetResourcesV2Command.d.ts +56 -6
- package/dist-types/commands/ListAggregatorsV2Command.d.ts +1 -1
- package/dist-types/commands/ListAutomationRulesV2Command.d.ts +1 -1
- package/dist-types/commands/UpdateAggregatorV2Command.d.ts +1 -1
- package/dist-types/commands/UpdateAutomationRuleV2Command.d.ts +79 -5
- package/dist-types/models/models_2.d.ts +164 -186
- package/dist-types/models/models_3.d.ts +476 -345
- package/dist-types/ts3.4/commands/CreateAutomationRuleV2Command.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetAutomationRuleV2Command.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_2.d.ts +92 -55
- package/dist-types/ts3.4/models/models_3.d.ts +140 -111
- package/package.json +2 -2
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
6
6
|
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://securityhub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://securityhub-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://securityhub.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://securityhub.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
package/dist-cjs/index.js
CHANGED
|
@@ -498,21 +498,38 @@ const OcsfDateField = {
|
|
|
498
498
|
FINDING_INFO_FIRST_SEEN_TIME_DT: "finding_info.first_seen_time_dt",
|
|
499
499
|
FINDING_INFO_LAST_SEEN_TIME_DT: "finding_info.last_seen_time_dt",
|
|
500
500
|
FINDING_INFO_MODIFIED_TIME_DT: "finding_info.modified_time_dt",
|
|
501
|
+
RESOURCES_IMAGE_CREATED_TIME_DT: "resources.image.created_time_dt",
|
|
502
|
+
RESOURCES_IMAGE_LAST_USED_TIME_DT: "resources.image.last_used_time_dt",
|
|
503
|
+
RESOURCES_MODIFIED_TIME_DT: "resources.modified_time_dt",
|
|
504
|
+
};
|
|
505
|
+
const OcsfIpField = {
|
|
506
|
+
EVIDENCES_DST_ENDPOINT_IP: "evidences.dst_endpoint.ip",
|
|
507
|
+
EVIDENCES_SRC_ENDPOINT_IP: "evidences.src_endpoint.ip",
|
|
501
508
|
};
|
|
502
509
|
const OcsfMapField = {
|
|
510
|
+
COMPLIANCE_CONTROL_PARAMETERS: "compliance.control_parameters",
|
|
511
|
+
DATABUCKET_TAGS: "databucket.tags",
|
|
512
|
+
FINDING_INFO_TAGS: "finding_info.tags",
|
|
503
513
|
RESOURCES_TAGS: "resources.tags",
|
|
504
514
|
};
|
|
505
515
|
const OcsfNumberField = {
|
|
506
516
|
ACTIVITY_ID: "activity_id",
|
|
507
517
|
COMPLIANCE_STATUS_ID: "compliance.status_id",
|
|
508
518
|
CONFIDENCE_SCORE: "confidence_score",
|
|
519
|
+
EVIDENCES_API_RESPONSE_CODE: "evidences.api.response.code",
|
|
520
|
+
EVIDENCES_DST_ENDPOINT_AUTONOMOUS_SYSTEM_NUMBER: "evidences.dst_endpoint.autonomous_system.number",
|
|
521
|
+
EVIDENCES_DST_ENDPOINT_PORT: "evidences.dst_endpoint.port",
|
|
522
|
+
EVIDENCES_SRC_ENDPOINT_AUTONOMOUS_SYSTEM_NUMBER: "evidences.src_endpoint.autonomous_system.number",
|
|
523
|
+
EVIDENCES_SRC_ENDPOINT_PORT: "evidences.src_endpoint.port",
|
|
509
524
|
FINDING_INFO_RELATED_EVENTS_COUNT: "finding_info.related_events_count",
|
|
525
|
+
RESOURCES_IMAGE_IN_USE_COUNT: "resources.image.in_use_count",
|
|
510
526
|
SEVERITY_ID: "severity_id",
|
|
511
527
|
STATUS_ID: "status_id",
|
|
512
528
|
};
|
|
513
529
|
const OcsfStringField = {
|
|
514
530
|
ACTIVITY_NAME: "activity_name",
|
|
515
531
|
CLASS_NAME: "class_name",
|
|
532
|
+
CLOUD_ACCOUNT_NAME: "cloud.account.name",
|
|
516
533
|
CLOUD_ACCOUNT_UID: "cloud.account.uid",
|
|
517
534
|
CLOUD_PROVIDER: "cloud.provider",
|
|
518
535
|
CLOUD_REGION: "cloud.region",
|
|
@@ -522,6 +539,23 @@ const OcsfStringField = {
|
|
|
522
539
|
COMPLIANCE_CONTROL: "compliance.control",
|
|
523
540
|
COMPLIANCE_STANDARDS: "compliance.standards",
|
|
524
541
|
COMPLIANCE_STATUS: "compliance.status",
|
|
542
|
+
DATABUCKET_ENCRYPTION_DETAILS_ALGORITHM: "databucket.encryption_details.algorithm",
|
|
543
|
+
DATABUCKET_ENCRYPTION_DETAILS_KEY_UID: "databucket.encryption_details.key_uid",
|
|
544
|
+
DATABUCKET_FILE_DATA_CLASSIFICATIONS_CLASSIFIER_DETAILS_TYPE: "databucket.file.data_classifications.classifier_details.type",
|
|
545
|
+
EVIDENCES_ACTOR_USER_ACCOUNT_UID: "evidences.actor.user.account.uid",
|
|
546
|
+
EVIDENCES_API_OPERATION: "evidences.api.operation",
|
|
547
|
+
EVIDENCES_API_RESPONSE_ERROR_MESSAGE: "evidences.api.response.error_message",
|
|
548
|
+
EVIDENCES_API_SERVICE_NAME: "evidences.api.service.name",
|
|
549
|
+
EVIDENCES_CONNECTION_INFO_DIRECTION: "evidences.connection_info.direction",
|
|
550
|
+
EVIDENCES_CONNECTION_INFO_PROTOCOL_NAME: "evidences.connection_info.protocol_name",
|
|
551
|
+
EVIDENCES_DST_ENDPOINT_AUTONOMOUS_SYSTEM_NAME: "evidences.dst_endpoint.autonomous_system.name",
|
|
552
|
+
EVIDENCES_DST_ENDPOINT_LOCATION_CITY: "evidences.dst_endpoint.location.city",
|
|
553
|
+
EVIDENCES_DST_ENDPOINT_LOCATION_COUNTRY: "evidences.dst_endpoint.location.country",
|
|
554
|
+
EVIDENCES_SRC_ENDPOINT_AUTONOMOUS_SYSTEM_NAME: "evidences.src_endpoint.autonomous_system.name",
|
|
555
|
+
EVIDENCES_SRC_ENDPOINT_HOSTNAME: "evidences.src_endpoint.hostname",
|
|
556
|
+
EVIDENCES_SRC_ENDPOINT_LOCATION_CITY: "evidences.src_endpoint.location.city",
|
|
557
|
+
EVIDENCES_SRC_ENDPOINT_LOCATION_COUNTRY: "evidences.src_endpoint.location.country",
|
|
558
|
+
FINDING_INFO_ANALYTIC_NAME: "finding_info.analytic.name",
|
|
525
559
|
FINDING_INFO_DESC: "finding_info.desc",
|
|
526
560
|
FINDING_INFO_RELATED_EVENTS_PRODUCT_UID: "finding_info.related_events.product.uid",
|
|
527
561
|
FINDING_INFO_RELATED_EVENTS_TITLE: "finding_info.related_events.title",
|
|
@@ -530,19 +564,38 @@ const OcsfStringField = {
|
|
|
530
564
|
FINDING_INFO_TITLE: "finding_info.title",
|
|
531
565
|
FINDING_INFO_TYPES: "finding_info.types",
|
|
532
566
|
FINDING_INFO_UID: "finding_info.uid",
|
|
567
|
+
MALWARE_NAME: "malware.name",
|
|
568
|
+
MALWARE_SCAN_INFO_UID: "malware_scan_info.uid",
|
|
569
|
+
MALWARE_SEVERITY: "malware.severity",
|
|
533
570
|
METADATA_PRODUCT_NAME: "metadata.product.name",
|
|
534
571
|
METADATA_PRODUCT_UID: "metadata.product.uid",
|
|
535
572
|
METADATA_PRODUCT_VENDOR_NAME: "metadata.product.vendor_name",
|
|
536
573
|
METADATA_UID: "metadata.uid",
|
|
537
574
|
REMEDIATION_DESC: "remediation.desc",
|
|
538
575
|
REMEDIATION_REFERENCES: "remediation.references",
|
|
576
|
+
RESOURCES_CLOUD_FUNCTION_LAYERS_UID_ALT: "resources.cloud_function.layers.uid_alt",
|
|
577
|
+
RESOURCES_CLOUD_FUNCTION_RUNTIME: "resources.cloud_function.runtime",
|
|
578
|
+
RESOURCES_CLOUD_FUNCTION_USER_UID: "resources.cloud_function.user.uid",
|
|
539
579
|
RESOURCES_CLOUD_PARTITION: "resources.cloud_partition",
|
|
580
|
+
RESOURCES_DEVICE_ENCRYPTION_DETAILS_KEY_UID: "resources.device.encryption_details.key_uid",
|
|
581
|
+
RESOURCES_DEVICE_IMAGE_UID: "resources.device.image.uid",
|
|
582
|
+
RESOURCES_IMAGE_ARCHITECTURE: "resources.image.architecture",
|
|
583
|
+
RESOURCES_IMAGE_REGISTRY_UID: "resources.image.registry_uid",
|
|
584
|
+
RESOURCES_IMAGE_REPOSITORY_NAME: "resources.image.repository_name",
|
|
585
|
+
RESOURCES_IMAGE_UID: "resources.image.uid",
|
|
540
586
|
RESOURCES_REGION: "resources.region",
|
|
587
|
+
RESOURCES_SUBNET_INFO_UID: "resources.subnet_info.uid",
|
|
541
588
|
RESOURCES_TYPE: "resources.type",
|
|
542
589
|
RESOURCES_UID: "resources.uid",
|
|
590
|
+
RESOURCES_VPC_UID: "resources.vpc_uid",
|
|
543
591
|
SEVERITY: "severity",
|
|
544
592
|
STATUS: "status",
|
|
593
|
+
VULNERABILITIES_AFFECTED_CODE_FILE_PATH: "vulnerabilities.affected_code.file.path",
|
|
594
|
+
VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name",
|
|
595
|
+
VULNERABILITIES_CVE_EPSS_SCORE: "vulnerabilities.cve.epss.score",
|
|
596
|
+
VULNERABILITIES_CVE_UID: "vulnerabilities.cve.uid",
|
|
545
597
|
VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
|
|
598
|
+
VULNERABILITIES_RELATED_VULNERABILITIES: "vulnerabilities.related_vulnerabilities",
|
|
546
599
|
};
|
|
547
600
|
exports.ConfigurationOptions = void 0;
|
|
548
601
|
(function (ConfigurationOptions) {
|
|
@@ -600,14 +653,6 @@ class ResourceConflictException extends SecurityHubServiceException {
|
|
|
600
653
|
this.Code = opts.Code;
|
|
601
654
|
}
|
|
602
655
|
}
|
|
603
|
-
exports.Criteria = void 0;
|
|
604
|
-
(function (Criteria) {
|
|
605
|
-
Criteria.visit = (value, visitor) => {
|
|
606
|
-
if (value.OcsfFindingCriteria !== undefined)
|
|
607
|
-
return visitor.OcsfFindingCriteria(value.OcsfFindingCriteria);
|
|
608
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
609
|
-
};
|
|
610
|
-
})(exports.Criteria || (exports.Criteria = {}));
|
|
611
656
|
exports.Policy = void 0;
|
|
612
657
|
(function (Policy) {
|
|
613
658
|
Policy.visit = (value, visitor) => {
|
|
@@ -670,32 +715,18 @@ const SortOrder = {
|
|
|
670
715
|
ASCENDING: "asc",
|
|
671
716
|
DESCENDING: "desc",
|
|
672
717
|
};
|
|
673
|
-
const ServiceNowProviderConfigurationFilterSensitiveLog = (obj) => ({
|
|
674
|
-
...obj,
|
|
675
|
-
...(obj.ClientSecret && { ClientSecret: smithyClient.SENSITIVE_STRING }),
|
|
676
|
-
});
|
|
677
|
-
const ProviderConfigurationFilterSensitiveLog = (obj) => {
|
|
678
|
-
if (obj.JiraCloud !== undefined)
|
|
679
|
-
return { JiraCloud: obj.JiraCloud };
|
|
680
|
-
if (obj.ServiceNow !== undefined)
|
|
681
|
-
return { ServiceNow: ServiceNowProviderConfigurationFilterSensitiveLog(obj.ServiceNow) };
|
|
682
|
-
if (obj.$unknown !== undefined)
|
|
683
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
684
|
-
};
|
|
685
|
-
const CreateConnectorV2RequestFilterSensitiveLog = (obj) => ({
|
|
686
|
-
...obj,
|
|
687
|
-
...(obj.Provider && { Provider: ProviderConfigurationFilterSensitiveLog(obj.Provider) }),
|
|
688
|
-
});
|
|
689
|
-
|
|
690
718
|
const GroupByField = {
|
|
691
719
|
ACTIVITY_NAME: "activity_name",
|
|
692
720
|
CLASS_NAME: "class_name",
|
|
721
|
+
CLOUD_ACCOUNT_NAME: "cloud.account.name",
|
|
693
722
|
CLOUD_ACCOUNT_UID: "cloud.account.uid",
|
|
694
723
|
CLOUD_PROVIDER: "cloud.provider",
|
|
695
724
|
CLOUD_REGION: "cloud.region",
|
|
696
725
|
COMPLIANCE_ASSESSMENTS_NAME: "compliance.assessments.name",
|
|
697
726
|
COMPLIANCE_CONTROL: "compliance.control",
|
|
727
|
+
COMPLIANCE_STANDARDS: "compliance.standards",
|
|
698
728
|
COMPLIANCE_STATUS: "compliance.status",
|
|
729
|
+
FINDING_INFO_ANALYTIC_NAME: "finding_info.analytic.name",
|
|
699
730
|
FINDING_INFO_TITLE: "finding_info.title",
|
|
700
731
|
FINDING_INFO_TYPES: "finding_info.types",
|
|
701
732
|
METADATA_PRODUCT_NAME: "metadata.product.name",
|
|
@@ -704,44 +735,62 @@ const GroupByField = {
|
|
|
704
735
|
RESOURCES_UID: "resources.uid",
|
|
705
736
|
SEVERITY: "severity",
|
|
706
737
|
STATUS: "status",
|
|
738
|
+
VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name",
|
|
707
739
|
VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
|
|
708
740
|
};
|
|
741
|
+
const ServiceNowProviderConfigurationFilterSensitiveLog = (obj) => ({
|
|
742
|
+
...obj,
|
|
743
|
+
...(obj.ClientSecret && { ClientSecret: smithyClient.SENSITIVE_STRING }),
|
|
744
|
+
});
|
|
745
|
+
const ProviderConfigurationFilterSensitiveLog = (obj) => {
|
|
746
|
+
if (obj.JiraCloud !== undefined)
|
|
747
|
+
return { JiraCloud: obj.JiraCloud };
|
|
748
|
+
if (obj.ServiceNow !== undefined)
|
|
749
|
+
return { ServiceNow: ServiceNowProviderConfigurationFilterSensitiveLog(obj.ServiceNow) };
|
|
750
|
+
if (obj.$unknown !== undefined)
|
|
751
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
752
|
+
};
|
|
753
|
+
const CreateConnectorV2RequestFilterSensitiveLog = (obj) => ({
|
|
754
|
+
...obj,
|
|
755
|
+
...(obj.Provider && { Provider: ProviderConfigurationFilterSensitiveLog(obj.Provider) }),
|
|
756
|
+
});
|
|
757
|
+
|
|
709
758
|
const ResourcesDateField = {
|
|
710
|
-
RESOURCE_CREATION_TIME_DT: "
|
|
711
|
-
RESOURCE_DETAIL_CAPTURE_TIME_DT: "
|
|
759
|
+
RESOURCE_CREATION_TIME_DT: "ResourceCreationTime",
|
|
760
|
+
RESOURCE_DETAIL_CAPTURE_TIME_DT: "ResourceDetailCaptureTime",
|
|
712
761
|
};
|
|
713
762
|
const ResourcesMapField = {
|
|
714
|
-
TAG: "
|
|
763
|
+
TAG: "ResourceTags",
|
|
715
764
|
};
|
|
716
765
|
const ResourcesNumberField = {
|
|
717
|
-
SEVERITY_CRITICAL: "
|
|
718
|
-
SEVERITY_FATAL: "
|
|
719
|
-
SEVERITY_HIGH: "
|
|
720
|
-
SEVERITY_INFORMATIONAL: "
|
|
721
|
-
SEVERITY_LOW: "
|
|
722
|
-
SEVERITY_MEDIUM: "
|
|
723
|
-
SEVERITY_OTHER: "
|
|
724
|
-
SEVERITY_UNKNOWN: "
|
|
725
|
-
TOTAL_FINDINGS: "
|
|
766
|
+
SEVERITY_CRITICAL: "FindingsSummary.Severities.Critical",
|
|
767
|
+
SEVERITY_FATAL: "FindingsSummary.Severities.Fatal",
|
|
768
|
+
SEVERITY_HIGH: "FindingsSummary.Severities.High",
|
|
769
|
+
SEVERITY_INFORMATIONAL: "FindingsSummary.Severities.Informational",
|
|
770
|
+
SEVERITY_LOW: "FindingsSummary.Severities.Low",
|
|
771
|
+
SEVERITY_MEDIUM: "FindingsSummary.Severities.Medium",
|
|
772
|
+
SEVERITY_OTHER: "FindingsSummary.Severities.Other",
|
|
773
|
+
SEVERITY_UNKNOWN: "FindingsSummary.Severities.Unknown",
|
|
774
|
+
TOTAL_FINDINGS: "FindingsSummary.TotalFindings",
|
|
726
775
|
};
|
|
727
776
|
const ResourcesStringField = {
|
|
728
|
-
ACCOUNT_ID: "
|
|
729
|
-
FINDING_TYPE: "
|
|
730
|
-
PRODUCT_NAME: "
|
|
731
|
-
REGION: "
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
RESOURCE_ID: "
|
|
735
|
-
RESOURCE_NAME: "
|
|
736
|
-
RESOURCE_TYPE: "
|
|
777
|
+
ACCOUNT_ID: "AccountId",
|
|
778
|
+
FINDING_TYPE: "FindingsSummary.FindingType",
|
|
779
|
+
PRODUCT_NAME: "FindingsSummary.ProductName",
|
|
780
|
+
REGION: "Region",
|
|
781
|
+
RESOURCE_CATEGORY: "ResourceCategory",
|
|
782
|
+
RESOURCE_GUID: "ResourceGuid",
|
|
783
|
+
RESOURCE_ID: "ResourceId",
|
|
784
|
+
RESOURCE_NAME: "ResourceName",
|
|
785
|
+
RESOURCE_TYPE: "ResourceType",
|
|
737
786
|
};
|
|
738
787
|
const ResourceGroupByField = {
|
|
739
|
-
ACCOUNT_ID: "
|
|
740
|
-
FINDING_TYPE: "
|
|
741
|
-
REGION: "
|
|
742
|
-
RESOURCE_CATEGORY: "
|
|
743
|
-
RESOURCE_NAME: "
|
|
744
|
-
RESOURCE_TYPE: "
|
|
788
|
+
ACCOUNT_ID: "AccountId",
|
|
789
|
+
FINDING_TYPE: "FindingsSummary.FindingType",
|
|
790
|
+
REGION: "Region",
|
|
791
|
+
RESOURCE_CATEGORY: "ResourceCategory",
|
|
792
|
+
RESOURCE_NAME: "ResourceName",
|
|
793
|
+
RESOURCE_TYPE: "ResourceType",
|
|
745
794
|
};
|
|
746
795
|
const ResourceCategory = {
|
|
747
796
|
AI_ML: "AI/ML",
|
|
@@ -781,6 +830,14 @@ class ResourceInUseException extends SecurityHubServiceException {
|
|
|
781
830
|
this.Code = opts.Code;
|
|
782
831
|
}
|
|
783
832
|
}
|
|
833
|
+
exports.Criteria = void 0;
|
|
834
|
+
(function (Criteria) {
|
|
835
|
+
Criteria.visit = (value, visitor) => {
|
|
836
|
+
if (value.OcsfFindingCriteria !== undefined)
|
|
837
|
+
return visitor.OcsfFindingCriteria(value.OcsfFindingCriteria);
|
|
838
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
839
|
+
};
|
|
840
|
+
})(exports.Criteria || (exports.Criteria = {}));
|
|
784
841
|
const UpdateConnectorV2RequestFilterSensitiveLog = (obj) => ({
|
|
785
842
|
...obj,
|
|
786
843
|
...(obj.ClientSecret && { ClientSecret: smithyClient.SENSITIVE_STRING }),
|
|
@@ -4372,7 +4429,9 @@ const se_CompositeFilter = (input, context) => {
|
|
|
4372
4429
|
return smithyClient.take(input, {
|
|
4373
4430
|
BooleanFilters: smithyClient._json,
|
|
4374
4431
|
DateFilters: smithyClient._json,
|
|
4432
|
+
IpFilters: smithyClient._json,
|
|
4375
4433
|
MapFilters: smithyClient._json,
|
|
4434
|
+
NestedCompositeFilters: (_) => se_CompositeFilterList(_),
|
|
4376
4435
|
NumberFilters: (_) => se_OcsfNumberFilterList(_),
|
|
4377
4436
|
Operator: [],
|
|
4378
4437
|
StringFilters: smithyClient._json,
|
|
@@ -4698,6 +4757,7 @@ const se_ResourcesCompositeFilter = (input, context) => {
|
|
|
4698
4757
|
return smithyClient.take(input, {
|
|
4699
4758
|
DateFilters: smithyClient._json,
|
|
4700
4759
|
MapFilters: smithyClient._json,
|
|
4760
|
+
NestedCompositeFilters: (_) => se_ResourcesCompositeFilterList(_),
|
|
4701
4761
|
NumberFilters: (_) => se_ResourcesNumberFilterList(_),
|
|
4702
4762
|
Operator: [],
|
|
4703
4763
|
StringFilters: smithyClient._json,
|
|
@@ -5445,7 +5505,9 @@ const de_CompositeFilter = (output, context) => {
|
|
|
5445
5505
|
return smithyClient.take(output, {
|
|
5446
5506
|
BooleanFilters: smithyClient._json,
|
|
5447
5507
|
DateFilters: smithyClient._json,
|
|
5508
|
+
IpFilters: smithyClient._json,
|
|
5448
5509
|
MapFilters: smithyClient._json,
|
|
5510
|
+
NestedCompositeFilters: (_) => de_CompositeFilterList(_),
|
|
5449
5511
|
NumberFilters: (_) => de_OcsfNumberFilterList(_),
|
|
5450
5512
|
Operator: smithyClient.expectString,
|
|
5451
5513
|
StringFilters: smithyClient._json,
|
|
@@ -5995,11 +6057,11 @@ const de_ResourceResult = (output, context) => {
|
|
|
5995
6057
|
AccountId: smithyClient.expectString,
|
|
5996
6058
|
FindingsSummary: smithyClient._json,
|
|
5997
6059
|
Region: smithyClient.expectString,
|
|
5998
|
-
ResourceArn: smithyClient.expectString,
|
|
5999
6060
|
ResourceCategory: smithyClient.expectString,
|
|
6000
6061
|
ResourceConfig: (_) => de_ResourceConfig(_),
|
|
6001
6062
|
ResourceCreationTimeDt: smithyClient.expectString,
|
|
6002
6063
|
ResourceDetailCaptureTimeDt: smithyClient.expectString,
|
|
6064
|
+
ResourceGuid: smithyClient.expectString,
|
|
6003
6065
|
ResourceId: smithyClient.expectString,
|
|
6004
6066
|
ResourceName: smithyClient.expectString,
|
|
6005
6067
|
ResourceTags: smithyClient._json,
|
|
@@ -8364,6 +8426,7 @@ exports.MapFilterComparison = MapFilterComparison;
|
|
|
8364
8426
|
exports.NetworkDirection = NetworkDirection;
|
|
8365
8427
|
exports.OcsfBooleanField = OcsfBooleanField;
|
|
8366
8428
|
exports.OcsfDateField = OcsfDateField;
|
|
8429
|
+
exports.OcsfIpField = OcsfIpField;
|
|
8367
8430
|
exports.OcsfMapField = OcsfMapField;
|
|
8368
8431
|
exports.OcsfNumberField = OcsfNumberField;
|
|
8369
8432
|
exports.OcsfStringField = OcsfStringField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
3
3
|
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://securityhub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://securityhub-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://securityhub.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://securityhub.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -202,21 +202,38 @@ export const OcsfDateField = {
|
|
|
202
202
|
FINDING_INFO_FIRST_SEEN_TIME_DT: "finding_info.first_seen_time_dt",
|
|
203
203
|
FINDING_INFO_LAST_SEEN_TIME_DT: "finding_info.last_seen_time_dt",
|
|
204
204
|
FINDING_INFO_MODIFIED_TIME_DT: "finding_info.modified_time_dt",
|
|
205
|
+
RESOURCES_IMAGE_CREATED_TIME_DT: "resources.image.created_time_dt",
|
|
206
|
+
RESOURCES_IMAGE_LAST_USED_TIME_DT: "resources.image.last_used_time_dt",
|
|
207
|
+
RESOURCES_MODIFIED_TIME_DT: "resources.modified_time_dt",
|
|
208
|
+
};
|
|
209
|
+
export const OcsfIpField = {
|
|
210
|
+
EVIDENCES_DST_ENDPOINT_IP: "evidences.dst_endpoint.ip",
|
|
211
|
+
EVIDENCES_SRC_ENDPOINT_IP: "evidences.src_endpoint.ip",
|
|
205
212
|
};
|
|
206
213
|
export const OcsfMapField = {
|
|
214
|
+
COMPLIANCE_CONTROL_PARAMETERS: "compliance.control_parameters",
|
|
215
|
+
DATABUCKET_TAGS: "databucket.tags",
|
|
216
|
+
FINDING_INFO_TAGS: "finding_info.tags",
|
|
207
217
|
RESOURCES_TAGS: "resources.tags",
|
|
208
218
|
};
|
|
209
219
|
export const OcsfNumberField = {
|
|
210
220
|
ACTIVITY_ID: "activity_id",
|
|
211
221
|
COMPLIANCE_STATUS_ID: "compliance.status_id",
|
|
212
222
|
CONFIDENCE_SCORE: "confidence_score",
|
|
223
|
+
EVIDENCES_API_RESPONSE_CODE: "evidences.api.response.code",
|
|
224
|
+
EVIDENCES_DST_ENDPOINT_AUTONOMOUS_SYSTEM_NUMBER: "evidences.dst_endpoint.autonomous_system.number",
|
|
225
|
+
EVIDENCES_DST_ENDPOINT_PORT: "evidences.dst_endpoint.port",
|
|
226
|
+
EVIDENCES_SRC_ENDPOINT_AUTONOMOUS_SYSTEM_NUMBER: "evidences.src_endpoint.autonomous_system.number",
|
|
227
|
+
EVIDENCES_SRC_ENDPOINT_PORT: "evidences.src_endpoint.port",
|
|
213
228
|
FINDING_INFO_RELATED_EVENTS_COUNT: "finding_info.related_events_count",
|
|
229
|
+
RESOURCES_IMAGE_IN_USE_COUNT: "resources.image.in_use_count",
|
|
214
230
|
SEVERITY_ID: "severity_id",
|
|
215
231
|
STATUS_ID: "status_id",
|
|
216
232
|
};
|
|
217
233
|
export const OcsfStringField = {
|
|
218
234
|
ACTIVITY_NAME: "activity_name",
|
|
219
235
|
CLASS_NAME: "class_name",
|
|
236
|
+
CLOUD_ACCOUNT_NAME: "cloud.account.name",
|
|
220
237
|
CLOUD_ACCOUNT_UID: "cloud.account.uid",
|
|
221
238
|
CLOUD_PROVIDER: "cloud.provider",
|
|
222
239
|
CLOUD_REGION: "cloud.region",
|
|
@@ -226,6 +243,23 @@ export const OcsfStringField = {
|
|
|
226
243
|
COMPLIANCE_CONTROL: "compliance.control",
|
|
227
244
|
COMPLIANCE_STANDARDS: "compliance.standards",
|
|
228
245
|
COMPLIANCE_STATUS: "compliance.status",
|
|
246
|
+
DATABUCKET_ENCRYPTION_DETAILS_ALGORITHM: "databucket.encryption_details.algorithm",
|
|
247
|
+
DATABUCKET_ENCRYPTION_DETAILS_KEY_UID: "databucket.encryption_details.key_uid",
|
|
248
|
+
DATABUCKET_FILE_DATA_CLASSIFICATIONS_CLASSIFIER_DETAILS_TYPE: "databucket.file.data_classifications.classifier_details.type",
|
|
249
|
+
EVIDENCES_ACTOR_USER_ACCOUNT_UID: "evidences.actor.user.account.uid",
|
|
250
|
+
EVIDENCES_API_OPERATION: "evidences.api.operation",
|
|
251
|
+
EVIDENCES_API_RESPONSE_ERROR_MESSAGE: "evidences.api.response.error_message",
|
|
252
|
+
EVIDENCES_API_SERVICE_NAME: "evidences.api.service.name",
|
|
253
|
+
EVIDENCES_CONNECTION_INFO_DIRECTION: "evidences.connection_info.direction",
|
|
254
|
+
EVIDENCES_CONNECTION_INFO_PROTOCOL_NAME: "evidences.connection_info.protocol_name",
|
|
255
|
+
EVIDENCES_DST_ENDPOINT_AUTONOMOUS_SYSTEM_NAME: "evidences.dst_endpoint.autonomous_system.name",
|
|
256
|
+
EVIDENCES_DST_ENDPOINT_LOCATION_CITY: "evidences.dst_endpoint.location.city",
|
|
257
|
+
EVIDENCES_DST_ENDPOINT_LOCATION_COUNTRY: "evidences.dst_endpoint.location.country",
|
|
258
|
+
EVIDENCES_SRC_ENDPOINT_AUTONOMOUS_SYSTEM_NAME: "evidences.src_endpoint.autonomous_system.name",
|
|
259
|
+
EVIDENCES_SRC_ENDPOINT_HOSTNAME: "evidences.src_endpoint.hostname",
|
|
260
|
+
EVIDENCES_SRC_ENDPOINT_LOCATION_CITY: "evidences.src_endpoint.location.city",
|
|
261
|
+
EVIDENCES_SRC_ENDPOINT_LOCATION_COUNTRY: "evidences.src_endpoint.location.country",
|
|
262
|
+
FINDING_INFO_ANALYTIC_NAME: "finding_info.analytic.name",
|
|
229
263
|
FINDING_INFO_DESC: "finding_info.desc",
|
|
230
264
|
FINDING_INFO_RELATED_EVENTS_PRODUCT_UID: "finding_info.related_events.product.uid",
|
|
231
265
|
FINDING_INFO_RELATED_EVENTS_TITLE: "finding_info.related_events.title",
|
|
@@ -234,19 +268,38 @@ export const OcsfStringField = {
|
|
|
234
268
|
FINDING_INFO_TITLE: "finding_info.title",
|
|
235
269
|
FINDING_INFO_TYPES: "finding_info.types",
|
|
236
270
|
FINDING_INFO_UID: "finding_info.uid",
|
|
271
|
+
MALWARE_NAME: "malware.name",
|
|
272
|
+
MALWARE_SCAN_INFO_UID: "malware_scan_info.uid",
|
|
273
|
+
MALWARE_SEVERITY: "malware.severity",
|
|
237
274
|
METADATA_PRODUCT_NAME: "metadata.product.name",
|
|
238
275
|
METADATA_PRODUCT_UID: "metadata.product.uid",
|
|
239
276
|
METADATA_PRODUCT_VENDOR_NAME: "metadata.product.vendor_name",
|
|
240
277
|
METADATA_UID: "metadata.uid",
|
|
241
278
|
REMEDIATION_DESC: "remediation.desc",
|
|
242
279
|
REMEDIATION_REFERENCES: "remediation.references",
|
|
280
|
+
RESOURCES_CLOUD_FUNCTION_LAYERS_UID_ALT: "resources.cloud_function.layers.uid_alt",
|
|
281
|
+
RESOURCES_CLOUD_FUNCTION_RUNTIME: "resources.cloud_function.runtime",
|
|
282
|
+
RESOURCES_CLOUD_FUNCTION_USER_UID: "resources.cloud_function.user.uid",
|
|
243
283
|
RESOURCES_CLOUD_PARTITION: "resources.cloud_partition",
|
|
284
|
+
RESOURCES_DEVICE_ENCRYPTION_DETAILS_KEY_UID: "resources.device.encryption_details.key_uid",
|
|
285
|
+
RESOURCES_DEVICE_IMAGE_UID: "resources.device.image.uid",
|
|
286
|
+
RESOURCES_IMAGE_ARCHITECTURE: "resources.image.architecture",
|
|
287
|
+
RESOURCES_IMAGE_REGISTRY_UID: "resources.image.registry_uid",
|
|
288
|
+
RESOURCES_IMAGE_REPOSITORY_NAME: "resources.image.repository_name",
|
|
289
|
+
RESOURCES_IMAGE_UID: "resources.image.uid",
|
|
244
290
|
RESOURCES_REGION: "resources.region",
|
|
291
|
+
RESOURCES_SUBNET_INFO_UID: "resources.subnet_info.uid",
|
|
245
292
|
RESOURCES_TYPE: "resources.type",
|
|
246
293
|
RESOURCES_UID: "resources.uid",
|
|
294
|
+
RESOURCES_VPC_UID: "resources.vpc_uid",
|
|
247
295
|
SEVERITY: "severity",
|
|
248
296
|
STATUS: "status",
|
|
297
|
+
VULNERABILITIES_AFFECTED_CODE_FILE_PATH: "vulnerabilities.affected_code.file.path",
|
|
298
|
+
VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name",
|
|
299
|
+
VULNERABILITIES_CVE_EPSS_SCORE: "vulnerabilities.cve.epss.score",
|
|
300
|
+
VULNERABILITIES_CVE_UID: "vulnerabilities.cve.uid",
|
|
249
301
|
VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
|
|
302
|
+
VULNERABILITIES_RELATED_VULNERABILITIES: "vulnerabilities.related_vulnerabilities",
|
|
250
303
|
};
|
|
251
304
|
export var ConfigurationOptions;
|
|
252
305
|
(function (ConfigurationOptions) {
|
|
@@ -304,14 +357,6 @@ export class ResourceConflictException extends __BaseException {
|
|
|
304
357
|
this.Code = opts.Code;
|
|
305
358
|
}
|
|
306
359
|
}
|
|
307
|
-
export var Criteria;
|
|
308
|
-
(function (Criteria) {
|
|
309
|
-
Criteria.visit = (value, visitor) => {
|
|
310
|
-
if (value.OcsfFindingCriteria !== undefined)
|
|
311
|
-
return visitor.OcsfFindingCriteria(value.OcsfFindingCriteria);
|
|
312
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
313
|
-
};
|
|
314
|
-
})(Criteria || (Criteria = {}));
|
|
315
360
|
export var Policy;
|
|
316
361
|
(function (Policy) {
|
|
317
362
|
Policy.visit = (value, visitor) => {
|
|
@@ -374,6 +419,29 @@ export const SortOrder = {
|
|
|
374
419
|
ASCENDING: "asc",
|
|
375
420
|
DESCENDING: "desc",
|
|
376
421
|
};
|
|
422
|
+
export const GroupByField = {
|
|
423
|
+
ACTIVITY_NAME: "activity_name",
|
|
424
|
+
CLASS_NAME: "class_name",
|
|
425
|
+
CLOUD_ACCOUNT_NAME: "cloud.account.name",
|
|
426
|
+
CLOUD_ACCOUNT_UID: "cloud.account.uid",
|
|
427
|
+
CLOUD_PROVIDER: "cloud.provider",
|
|
428
|
+
CLOUD_REGION: "cloud.region",
|
|
429
|
+
COMPLIANCE_ASSESSMENTS_NAME: "compliance.assessments.name",
|
|
430
|
+
COMPLIANCE_CONTROL: "compliance.control",
|
|
431
|
+
COMPLIANCE_STANDARDS: "compliance.standards",
|
|
432
|
+
COMPLIANCE_STATUS: "compliance.status",
|
|
433
|
+
FINDING_INFO_ANALYTIC_NAME: "finding_info.analytic.name",
|
|
434
|
+
FINDING_INFO_TITLE: "finding_info.title",
|
|
435
|
+
FINDING_INFO_TYPES: "finding_info.types",
|
|
436
|
+
METADATA_PRODUCT_NAME: "metadata.product.name",
|
|
437
|
+
METADATA_PRODUCT_UID: "metadata.product.uid",
|
|
438
|
+
RESOURCES_TYPE: "resources.type",
|
|
439
|
+
RESOURCES_UID: "resources.uid",
|
|
440
|
+
SEVERITY: "severity",
|
|
441
|
+
STATUS: "status",
|
|
442
|
+
VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name",
|
|
443
|
+
VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
|
|
444
|
+
};
|
|
377
445
|
export const ServiceNowProviderConfigurationFilterSensitiveLog = (obj) => ({
|
|
378
446
|
...obj,
|
|
379
447
|
...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
|
|
@@ -1,60 +1,41 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
|
|
3
|
-
export const GroupByField = {
|
|
4
|
-
ACTIVITY_NAME: "activity_name",
|
|
5
|
-
CLASS_NAME: "class_name",
|
|
6
|
-
CLOUD_ACCOUNT_UID: "cloud.account.uid",
|
|
7
|
-
CLOUD_PROVIDER: "cloud.provider",
|
|
8
|
-
CLOUD_REGION: "cloud.region",
|
|
9
|
-
COMPLIANCE_ASSESSMENTS_NAME: "compliance.assessments.name",
|
|
10
|
-
COMPLIANCE_CONTROL: "compliance.control",
|
|
11
|
-
COMPLIANCE_STATUS: "compliance.status",
|
|
12
|
-
FINDING_INFO_TITLE: "finding_info.title",
|
|
13
|
-
FINDING_INFO_TYPES: "finding_info.types",
|
|
14
|
-
METADATA_PRODUCT_NAME: "metadata.product.name",
|
|
15
|
-
METADATA_PRODUCT_UID: "metadata.product.uid",
|
|
16
|
-
RESOURCES_TYPE: "resources.type",
|
|
17
|
-
RESOURCES_UID: "resources.uid",
|
|
18
|
-
SEVERITY: "severity",
|
|
19
|
-
STATUS: "status",
|
|
20
|
-
VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
|
|
21
|
-
};
|
|
22
3
|
export const ResourcesDateField = {
|
|
23
|
-
RESOURCE_CREATION_TIME_DT: "
|
|
24
|
-
RESOURCE_DETAIL_CAPTURE_TIME_DT: "
|
|
4
|
+
RESOURCE_CREATION_TIME_DT: "ResourceCreationTime",
|
|
5
|
+
RESOURCE_DETAIL_CAPTURE_TIME_DT: "ResourceDetailCaptureTime",
|
|
25
6
|
};
|
|
26
7
|
export const ResourcesMapField = {
|
|
27
|
-
TAG: "
|
|
8
|
+
TAG: "ResourceTags",
|
|
28
9
|
};
|
|
29
10
|
export const ResourcesNumberField = {
|
|
30
|
-
SEVERITY_CRITICAL: "
|
|
31
|
-
SEVERITY_FATAL: "
|
|
32
|
-
SEVERITY_HIGH: "
|
|
33
|
-
SEVERITY_INFORMATIONAL: "
|
|
34
|
-
SEVERITY_LOW: "
|
|
35
|
-
SEVERITY_MEDIUM: "
|
|
36
|
-
SEVERITY_OTHER: "
|
|
37
|
-
SEVERITY_UNKNOWN: "
|
|
38
|
-
TOTAL_FINDINGS: "
|
|
11
|
+
SEVERITY_CRITICAL: "FindingsSummary.Severities.Critical",
|
|
12
|
+
SEVERITY_FATAL: "FindingsSummary.Severities.Fatal",
|
|
13
|
+
SEVERITY_HIGH: "FindingsSummary.Severities.High",
|
|
14
|
+
SEVERITY_INFORMATIONAL: "FindingsSummary.Severities.Informational",
|
|
15
|
+
SEVERITY_LOW: "FindingsSummary.Severities.Low",
|
|
16
|
+
SEVERITY_MEDIUM: "FindingsSummary.Severities.Medium",
|
|
17
|
+
SEVERITY_OTHER: "FindingsSummary.Severities.Other",
|
|
18
|
+
SEVERITY_UNKNOWN: "FindingsSummary.Severities.Unknown",
|
|
19
|
+
TOTAL_FINDINGS: "FindingsSummary.TotalFindings",
|
|
39
20
|
};
|
|
40
21
|
export const ResourcesStringField = {
|
|
41
|
-
ACCOUNT_ID: "
|
|
42
|
-
FINDING_TYPE: "
|
|
43
|
-
PRODUCT_NAME: "
|
|
44
|
-
REGION: "
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
RESOURCE_ID: "
|
|
48
|
-
RESOURCE_NAME: "
|
|
49
|
-
RESOURCE_TYPE: "
|
|
22
|
+
ACCOUNT_ID: "AccountId",
|
|
23
|
+
FINDING_TYPE: "FindingsSummary.FindingType",
|
|
24
|
+
PRODUCT_NAME: "FindingsSummary.ProductName",
|
|
25
|
+
REGION: "Region",
|
|
26
|
+
RESOURCE_CATEGORY: "ResourceCategory",
|
|
27
|
+
RESOURCE_GUID: "ResourceGuid",
|
|
28
|
+
RESOURCE_ID: "ResourceId",
|
|
29
|
+
RESOURCE_NAME: "ResourceName",
|
|
30
|
+
RESOURCE_TYPE: "ResourceType",
|
|
50
31
|
};
|
|
51
32
|
export const ResourceGroupByField = {
|
|
52
|
-
ACCOUNT_ID: "
|
|
53
|
-
FINDING_TYPE: "
|
|
54
|
-
REGION: "
|
|
55
|
-
RESOURCE_CATEGORY: "
|
|
56
|
-
RESOURCE_NAME: "
|
|
57
|
-
RESOURCE_TYPE: "
|
|
33
|
+
ACCOUNT_ID: "AccountId",
|
|
34
|
+
FINDING_TYPE: "FindingsSummary.FindingType",
|
|
35
|
+
REGION: "Region",
|
|
36
|
+
RESOURCE_CATEGORY: "ResourceCategory",
|
|
37
|
+
RESOURCE_NAME: "ResourceName",
|
|
38
|
+
RESOURCE_TYPE: "ResourceType",
|
|
58
39
|
};
|
|
59
40
|
export const ResourceCategory = {
|
|
60
41
|
AI_ML: "AI/ML",
|
|
@@ -94,6 +75,14 @@ export class ResourceInUseException extends __BaseException {
|
|
|
94
75
|
this.Code = opts.Code;
|
|
95
76
|
}
|
|
96
77
|
}
|
|
78
|
+
export var Criteria;
|
|
79
|
+
(function (Criteria) {
|
|
80
|
+
Criteria.visit = (value, visitor) => {
|
|
81
|
+
if (value.OcsfFindingCriteria !== undefined)
|
|
82
|
+
return visitor.OcsfFindingCriteria(value.OcsfFindingCriteria);
|
|
83
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
84
|
+
};
|
|
85
|
+
})(Criteria || (Criteria = {}));
|
|
97
86
|
export const UpdateConnectorV2RequestFilterSensitiveLog = (obj) => ({
|
|
98
87
|
...obj,
|
|
99
88
|
...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
|
|
@@ -3,8 +3,8 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
5
|
import { AccessDeniedException, InternalException, InvalidAccessException, InvalidInputException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
|
|
6
|
-
import { ConflictException,
|
|
7
|
-
import { ResourceInUseException, } from "../models/models_3";
|
|
6
|
+
import { ConflictException, InternalServerException, ParameterValue, Policy, ResourceConflictException, ThrottlingException, ValidationException, } from "../models/models_2";
|
|
7
|
+
import { Criteria, ResourceInUseException, } from "../models/models_3";
|
|
8
8
|
import { SecurityHubServiceException as __BaseException } from "../models/SecurityHubServiceException";
|
|
9
9
|
export const se_AcceptAdministratorInvitationCommand = async (input, context) => {
|
|
10
10
|
const b = rb(input, context);
|
|
@@ -3591,7 +3591,9 @@ const se_CompositeFilter = (input, context) => {
|
|
|
3591
3591
|
return take(input, {
|
|
3592
3592
|
BooleanFilters: _json,
|
|
3593
3593
|
DateFilters: _json,
|
|
3594
|
+
IpFilters: _json,
|
|
3594
3595
|
MapFilters: _json,
|
|
3596
|
+
NestedCompositeFilters: (_) => se_CompositeFilterList(_, context),
|
|
3595
3597
|
NumberFilters: (_) => se_OcsfNumberFilterList(_, context),
|
|
3596
3598
|
Operator: [],
|
|
3597
3599
|
StringFilters: _json,
|
|
@@ -3917,6 +3919,7 @@ const se_ResourcesCompositeFilter = (input, context) => {
|
|
|
3917
3919
|
return take(input, {
|
|
3918
3920
|
DateFilters: _json,
|
|
3919
3921
|
MapFilters: _json,
|
|
3922
|
+
NestedCompositeFilters: (_) => se_ResourcesCompositeFilterList(_, context),
|
|
3920
3923
|
NumberFilters: (_) => se_ResourcesNumberFilterList(_, context),
|
|
3921
3924
|
Operator: [],
|
|
3922
3925
|
StringFilters: _json,
|
|
@@ -4664,7 +4667,9 @@ const de_CompositeFilter = (output, context) => {
|
|
|
4664
4667
|
return take(output, {
|
|
4665
4668
|
BooleanFilters: _json,
|
|
4666
4669
|
DateFilters: _json,
|
|
4670
|
+
IpFilters: _json,
|
|
4667
4671
|
MapFilters: _json,
|
|
4672
|
+
NestedCompositeFilters: (_) => de_CompositeFilterList(_, context),
|
|
4668
4673
|
NumberFilters: (_) => de_OcsfNumberFilterList(_, context),
|
|
4669
4674
|
Operator: __expectString,
|
|
4670
4675
|
StringFilters: _json,
|
|
@@ -5214,11 +5219,11 @@ const de_ResourceResult = (output, context) => {
|
|
|
5214
5219
|
AccountId: __expectString,
|
|
5215
5220
|
FindingsSummary: _json,
|
|
5216
5221
|
Region: __expectString,
|
|
5217
|
-
ResourceArn: __expectString,
|
|
5218
5222
|
ResourceCategory: __expectString,
|
|
5219
5223
|
ResourceConfig: (_) => de_ResourceConfig(_, context),
|
|
5220
5224
|
ResourceCreationTimeDt: __expectString,
|
|
5221
5225
|
ResourceDetailCaptureTimeDt: __expectString,
|
|
5226
|
+
ResourceGuid: __expectString,
|
|
5222
5227
|
ResourceId: __expectString,
|
|
5223
5228
|
ResourceName: __expectString,
|
|
5224
5229
|
ResourceTags: _json,
|
|
@@ -32,7 +32,7 @@ declare const BatchUpdateFindingsV2Command_base: {
|
|
|
32
32
|
* Delegated administrator accounts can update findings for their account and their member accounts.
|
|
33
33
|
* Member accounts can update findings for their account. <code>BatchUpdateFindings</code> and <code>BatchUpdateFindingV2</code> both use <code>securityhub:BatchUpdateFindings</code> in the <code>Action</code> element of an IAM policy statement.
|
|
34
34
|
* You must have permission to perform the <code>securityhub:BatchUpdateFindings</code> action.
|
|
35
|
-
* Updates from <code>BatchUpdateFindingsV2</code> don't affect the value of f<code>inding_info.modified_time</code>, <code>finding_info.modified_time_dt</code>, <code>time</code>, <code>time_dt for a finding</code>. This API is in
|
|
35
|
+
* Updates from <code>BatchUpdateFindingsV2</code> don't affect the value of f<code>inding_info.modified_time</code>, <code>finding_info.modified_time_dt</code>, <code>time</code>, <code>time_dt for a finding</code>. This API is in public preview and subject to change.</p>
|
|
36
36
|
* @example
|
|
37
37
|
* Use a bare-bones client and the command you need to make an API call.
|
|
38
38
|
* ```javascript
|