@aws-sdk/client-securityhub 3.1150.0 → 3.1151.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 (28) hide show
  1. package/dist-cjs/index.js +103 -58
  2. package/dist-es/models/enums.js +69 -48
  3. package/dist-es/schemas/schemas_0.js +29 -9
  4. package/dist-types/commands/CreateAutomationRuleV2Command.d.ts +110 -3
  5. package/dist-types/commands/GetAutomationRuleV2Command.d.ts +110 -3
  6. package/dist-types/commands/GetExportJobV2Command.d.ts +2 -2
  7. package/dist-types/commands/GetFindingStatisticsV2Command.d.ts +3 -3
  8. package/dist-types/commands/GetFindingsV2Command.d.ts +2 -2
  9. package/dist-types/commands/GetRecommendedPolicyV2Command.d.ts +2 -1
  10. package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +3 -3
  11. package/dist-types/commands/GetResourcesV2Command.d.ts +9 -2
  12. package/dist-types/commands/ListAutomationRulesV2Command.d.ts +1 -1
  13. package/dist-types/commands/StartExportJobV2Command.d.ts +2 -2
  14. package/dist-types/commands/UpdateAutomationRuleV2Command.d.ts +110 -3
  15. package/dist-types/models/enums.d.ts +117 -80
  16. package/dist-types/models/models_0.d.ts +17 -23
  17. package/dist-types/models/models_1.d.ts +23 -34
  18. package/dist-types/models/models_2.d.ts +116 -141
  19. package/dist-types/models/models_3.d.ts +337 -241
  20. package/dist-types/schemas/schemas_0.d.ts +2 -0
  21. package/dist-types/ts3.4/commands/GetRecommendedPolicyV2Command.d.ts +2 -1
  22. package/dist-types/ts3.4/models/enums.d.ts +76 -52
  23. package/dist-types/ts3.4/models/models_0.d.ts +5 -7
  24. package/dist-types/ts3.4/models/models_1.d.ts +8 -7
  25. package/dist-types/ts3.4/models/models_2.d.ts +32 -46
  26. package/dist-types/ts3.4/models/models_3.d.ts +111 -70
  27. package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
  28. package/package.json +1 -1
@@ -1,7 +1,40 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { AssociationStatus, AssociationType, AutoEnableStandards, BatchUpdateFindingsV2UnprocessedFindingErrorCode, CloudProviderName, ConfigurationPolicyAssociationStatus, ConnectorAuthStatus, ConnectorProviderName, ConnectorStatus, ControlFindingGenerator, ControlStatus, CspmConnectorProviderName, CspmConnectorStatus, CspmEnablementStatus, EnablementStatus, ExportDataType, ExportFailureCode, ExportStatus, ExposureImpact, ExposureSeverity, FeatureName, FeatureStatus, FindingHistoryUpdateSourceType, FindingsExportFormat, FindingsTrendsStringField, GranularityField, HealthIssueCode, IntegrationType, IntegrationV2Type, OcsfBooleanField, OcsfDateField, OcsfIpField, OcsfMapField, OcsfNumberField, OcsfStringField, OrganizationConfigurationConfigurationType, OrganizationConfigurationStatus, ParameterValueType, Partition, RecommendationStatus, RecommendationType, RecordState, RemediationStringField, RuleStatus, ScopeType, SecurityControlsProvider, SecurityHubFeature, SeverityLabel, SeverityRating, SortOrder, StandardsControlsUpdatable, StandardsProvider, StandardsStatus, StatusReasonCode, TargetType, ThreatIntelIndicatorCategory, ThreatIntelIndicatorType, TicketCreationMode, UnprocessedErrorCode, UpdateStatus, VerificationState, VulnerabilityExploitAvailable, VulnerabilityFixAvailable, WorkflowState, WorkflowStatus } from "./enums";
2
+ import type { AssociationStatus, AssociationType, AutoEnableStandards, BatchUpdateFindingsV2UnprocessedFindingErrorCode, CloudProviderName, ConfigurationPolicyAssociationStatus, ConnectorAuthStatus, ConnectorProviderName, ConnectorStatus, ControlFindingGenerator, ControlStatus, CriticalitySourceType, CspmConnectorProviderName, CspmConnectorStatus, CspmEnablementStatus, EnablementStatus, ExportDataType, ExportFailureCode, ExportStatus, ExposureImpact, ExposureSeverity, FeatureName, FeatureStatus, FindingHistoryUpdateSourceType, FindingsExportFormat, FindingsTrendsStringField, GranularityField, HealthIssueCode, IntegrationType, IntegrationV2Type, OcsfBooleanField, OcsfDateField, OcsfIpField, OcsfMapField, OcsfNumberField, OcsfStringField, OrganizationConfigurationConfigurationType, OrganizationConfigurationStatus, ParameterValueType, Partition, RecordState, ResourcesDateField, ResourcesMapField, ResourcesNumberField, ResourcesStringField, RuleStatus, ScopeType, SecurityControlsProvider, SecurityHubFeature, SeverityLabel, SeverityRating, SortOrder, StandardsControlsUpdatable, StandardsProvider, StandardsStatus, StatusReasonCode, TargetType, ThreatIntelIndicatorCategory, ThreatIntelIndicatorType, TicketCreationMode, UnprocessedErrorCode, UpdateStatus, VerificationState, VulnerabilityExploitAvailable, VulnerabilityFixAvailable, WorkflowState, WorkflowStatus } from "./enums";
3
3
  import type { AccountDetails, Action, ActionTarget, Adjustment, AutomationRulesAction, AutomationRulesConfig, AutomationRulesFindingFilters, AwsAmazonMqBrokerDetails, AwsApiGatewayRestApiDetails, AwsApiGatewayStageDetails, AwsApiGatewayV2ApiDetails, AwsApiGatewayV2StageDetails, AwsAppSyncGraphQlApiDetails, AwsAthenaWorkGroupDetails, AwsAutoScalingAutoScalingGroupDetails, AwsAutoScalingLaunchConfigurationDetails, AwsBackupBackupPlanDetails, AwsBackupBackupVaultDetails, AwsBackupRecoveryPointDetails, AwsCertificateManagerCertificateDetails, AwsCloudFormationStackDetails, AwsCloudFrontDistributionDetails, AwsCloudTrailTrailDetails, AwsCloudWatchAlarmDetails, AwsCodeBuildProjectDetails, AwsDmsEndpointDetails, AwsDmsReplicationInstanceDetails, AwsDmsReplicationTaskDetails, AwsDynamoDbTableDetails, AwsEc2ClientVpnEndpointDetails, AwsEc2EipDetails, AwsEc2InstanceDetails, AwsEc2LaunchTemplateDetails, AwsEc2NetworkAclDetails, AwsEc2NetworkInterfaceDetails, AwsEc2RouteTableDetails, AwsEc2SecurityGroupDetails, AwsEc2SubnetDetails, AwsEc2TransitGatewayDetails, AwsEc2VolumeDetails, AwsEc2VpcDetails, AwsEc2VpcEndpointServiceDetails, AwsEc2VpcPeeringConnectionDetails, AwsEc2VpnConnectionDetails, AwsEcrContainerImageDetails, AwsEcrRepositoryDetails, AwsEcsClusterDetails, AwsEcsContainerDetails, AwsEcsServiceDetails, DateFilter, MapFilter, NoteUpdate, NumberFilter, RelatedFinding, SeverityUpdate, StringFilter, WorkflowUpdate } from "./models_0";
4
- import type { AwsEcsTaskDefinitionDetails, AwsEcsTaskDetails, AwsEfsAccessPointDetails, AwsEksClusterDetails, AwsElasticBeanstalkEnvironmentDetails, AwsElasticsearchDomainDetails, AwsElbLoadBalancerDetails, AwsElbv2LoadBalancerDetails, AwsEventSchemasRegistryDetails, AwsEventsEndpointDetails, AwsEventsEventbusDetails, AwsGuardDutyDetectorDetails, AwsIamAccessKeyDetails, AwsIamGroupDetails, AwsIamPolicyDetails, AwsIamRoleDetails, AwsIamUserDetails, AwsKinesisStreamDetails, AwsKmsKeyDetails, AwsLambdaFunctionDetails, AwsLambdaLayerVersionDetails, AwsMskClusterDetails, AwsNetworkFirewallFirewallDetails, AwsNetworkFirewallFirewallPolicyDetails, AwsNetworkFirewallRuleGroupDetails, AwsOpenSearchServiceDomainDetails, AwsOrganizationScope, AwsRdsDbClusterDetails, AwsRdsDbClusterSnapshotDetails, AwsRdsDbInstanceDetails, AwsRdsDbSecurityGroupDetails, AwsRdsDbSnapshotDetails, AwsRdsEventSubscriptionDetails, AwsRedshiftClusterDetails, AwsRoute53HostedZoneDetails, AwsS3AccessPointDetails, AwsS3AccountPublicAccessBlockDetails, AwsS3BucketDetails, AwsS3ObjectDetails, AwsSageMakerNotebookInstanceDetails, AwsSecretsManagerSecretDetails, AwsSnsTopicDetails, AwsSqsQueueDetails, AwsSsmPatchComplianceDetails, AwsStepFunctionStateMachineDetails, AwsWafRateBasedRuleDetails, AwsWafRegionalRateBasedRuleDetails, AwsWafRegionalRuleDetails, AwsWafRegionalRuleGroupDetails, AwsWafRegionalWebAclDetails, AwsWafRuleDetails, Compliance, DataClassificationDetails, Detection, FindingProviderFields, GeneratorDetails, Malware, Network, NetworkPathComponent, Note, PatchSummary, ProcessDetails, Remediation } from "./models_1";
4
+ import type { AwsEcsTaskDefinitionDetails, AwsEcsTaskDetails, AwsEfsAccessPointDetails, AwsEksClusterDetails, AwsElasticBeanstalkEnvironmentDetails, AwsElasticsearchDomainDetails, AwsElbLoadBalancerDetails, AwsElbv2LoadBalancerDetails, AwsEventSchemasRegistryDetails, AwsEventsEndpointDetails, AwsEventsEventbusDetails, AwsGuardDutyDetectorDetails, AwsIamAccessKeyDetails, AwsIamGroupDetails, AwsIamPolicyDetails, AwsIamRoleDetails, AwsIamUserDetails, AwsKinesisStreamDetails, AwsKmsKeyDetails, AwsLambdaFunctionDetails, AwsLambdaLayerVersionDetails, AwsMskClusterDetails, AwsNetworkFirewallFirewallDetails, AwsNetworkFirewallFirewallPolicyDetails, AwsNetworkFirewallRuleGroupDetails, AwsOpenSearchServiceDomainDetails, AwsOrganizationScope, AwsRdsDbClusterDetails, AwsRdsDbClusterSnapshotDetails, AwsRdsDbInstanceDetails, AwsRdsDbSecurityGroupDetails, AwsRdsDbSnapshotDetails, AwsRdsEventSubscriptionDetails, AwsRedshiftClusterDetails, AwsRoute53HostedZoneDetails, AwsS3AccessPointDetails, AwsS3AccountPublicAccessBlockDetails, AwsS3BucketDetails, AwsS3ObjectDetails, AwsSageMakerNotebookInstanceDetails, AwsSecretsManagerSecretDetails, AwsSnsTopicDetails, AwsSqsQueueDetails, AwsSsmPatchComplianceDetails, AwsStepFunctionStateMachineDetails, AwsWafRateBasedRuleDetails, AwsWafRegionalRateBasedRuleDetails, AwsWafRegionalRuleDetails, AwsWafRegionalRuleGroupDetails, AwsWafRegionalWebAclDetails, AwsWafRulePredicateListDetails, Compliance, DataClassificationDetails, Detection, FindingProviderFields, GeneratorDetails, Malware, Network, NetworkPathComponent, Note, PatchSummary, ProcessDetails, Remediation } from "./models_1";
5
+ /**
6
+ * <p>Provides information about a WAF rule. This rule specifies the web requests that you want to allow, block, or count.
7
+ * </p>
8
+ * @public
9
+ */
10
+ export interface AwsWafRuleDetails {
11
+ /**
12
+ * <p>The name of the metrics for this rule.
13
+ * </p>
14
+ * @public
15
+ */
16
+ MetricName?: string | undefined;
17
+ /**
18
+ * <p>A descriptive name for the rule.
19
+ * </p>
20
+ * @public
21
+ */
22
+ Name?: string | undefined;
23
+ /**
24
+ * <p>Specifies the <code>ByteMatchSet</code>, <code>IPSet</code>, <code>SqlInjectionMatchSet</code>, <code>XssMatchSet</code>,
25
+ * <code>RegexMatchSet</code>, <code>GeoMatchSet</code>, and <code>SizeConstraintSet</code> objects that you want to add to a rule and,
26
+ * for each object, indicates whether you want to negate the settings.
27
+ * </p>
28
+ * @public
29
+ */
30
+ PredicateList?: AwsWafRulePredicateListDetails[] | undefined;
31
+ /**
32
+ * <p>The ID of the WAF rule.
33
+ * </p>
34
+ * @public
35
+ */
36
+ RuleId?: string | undefined;
37
+ }
5
38
  /**
6
39
  * <p>Provides information about what action WAF should take on a web request when it matches the criteria defined in the rule.
7
40
  * </p>
@@ -5599,6 +5632,71 @@ export interface CreateAutomationRuleResponse {
5599
5632
  */
5600
5633
  RuleArn?: string | undefined;
5601
5634
  }
5635
+ /**
5636
+ * <p>Enables the filtering of Amazon Web Services resources based on date and timestamp attributes.</p>
5637
+ * @public
5638
+ */
5639
+ export interface ResourcesDateFilter {
5640
+ /**
5641
+ * <p>The name of the field.</p>
5642
+ * @public
5643
+ */
5644
+ FieldName?: ResourcesDateField | undefined;
5645
+ /**
5646
+ * <p>A date filter for querying findings.</p>
5647
+ * @public
5648
+ */
5649
+ Filter?: DateFilter | undefined;
5650
+ }
5651
+ /**
5652
+ * <p>Enables filtering of Amazon Web Services resources based on key-value map attributes.</p>
5653
+ * @public
5654
+ */
5655
+ export interface ResourcesMapFilter {
5656
+ /**
5657
+ * <p>The name of the field.</p>
5658
+ * @public
5659
+ */
5660
+ FieldName?: ResourcesMapField | undefined;
5661
+ /**
5662
+ * <p>A map filter for filtering Security Hub CSPM findings. Each map filter provides the field to check for, the
5663
+ * value to check for, and the comparison operator.</p>
5664
+ * @public
5665
+ */
5666
+ Filter?: MapFilter | undefined;
5667
+ }
5668
+ /**
5669
+ * <p>Enables filtering of Amazon Web Services resources based on numerical values.</p>
5670
+ * @public
5671
+ */
5672
+ export interface ResourcesNumberFilter {
5673
+ /**
5674
+ * <p>The name of the field.</p>
5675
+ * @public
5676
+ */
5677
+ FieldName?: ResourcesNumberField | undefined;
5678
+ /**
5679
+ * <p>A number filter for querying findings.</p>
5680
+ * @public
5681
+ */
5682
+ Filter?: NumberFilter | undefined;
5683
+ }
5684
+ /**
5685
+ * <p>Enables filtering of Amazon Web Services resources based on string field values.</p>
5686
+ * @public
5687
+ */
5688
+ export interface ResourcesStringFilter {
5689
+ /**
5690
+ * <p>The name of the field.</p>
5691
+ * @public
5692
+ */
5693
+ FieldName?: ResourcesStringField | undefined;
5694
+ /**
5695
+ * <p>A string filter for filtering Security Hub CSPM findings.</p>
5696
+ * @public
5697
+ */
5698
+ Filter?: StringFilter | undefined;
5699
+ }
5602
5700
  /**
5603
5701
  * @public
5604
5702
  */
@@ -6262,6 +6360,22 @@ export interface CreateTicketV2Response {
6262
6360
  */
6263
6361
  TicketSrcUrl?: string | undefined;
6264
6362
  }
6363
+ /**
6364
+ * <p>Details the source and reason of a criticality.</p>
6365
+ * @public
6366
+ */
6367
+ export interface CriticalitySource {
6368
+ /**
6369
+ * <p>The source of the criticality.</p>
6370
+ * @public
6371
+ */
6372
+ Source: CriticalitySourceType | undefined;
6373
+ /**
6374
+ * <p>The reason the criticality was assigned.</p>
6375
+ * @public
6376
+ */
6377
+ Reason: string | undefined;
6378
+ }
6265
6379
  /**
6266
6380
  * <p>The detailed cloud provider configuration for a connector. This is a union type that currently supports Azure.</p>
6267
6381
  * @public
@@ -9035,142 +9149,3 @@ export interface RecommendationError {
9035
9149
  */
9036
9150
  Message?: string | undefined;
9037
9151
  }
9038
- /**
9039
- * <p>Contains information about the action to take for a policy in an unused permissions finding.</p>
9040
- * @public
9041
- */
9042
- export interface UnusedPermissionsRecommendationStep {
9043
- /**
9044
- * <p>A recommendation of whether to create or detach a policy for an unused permissions finding.</p>
9045
- * @public
9046
- */
9047
- RecommendedAction?: string | undefined;
9048
- /**
9049
- * <p>The contents of the existing policy identified by <code>ExistingPolicyId</code> which needs to be replaced,
9050
- * when the <code>RecommendedAction</code> is <code>CREATE_POLICY</code>.</p>
9051
- * @public
9052
- */
9053
- ExistingPolicy?: string | undefined;
9054
- /**
9055
- * <p>The ID of an existing policy to be replaced or detached.</p>
9056
- * @public
9057
- */
9058
- ExistingPolicyId?: string | undefined;
9059
- /**
9060
- * <p>The time at which the existing policy for the unused permissions finding was last updated.</p>
9061
- * @public
9062
- */
9063
- PolicyUpdatedAt?: Date | undefined;
9064
- /**
9065
- * <p>The contents of the least-privileged recommended replacement for <code>ExistingPolicyId</code>,
9066
- * when the <code>RecommendedAction</code> is <code>CREATE_POLICY</code>.</p>
9067
- * @public
9068
- */
9069
- RecommendedPolicy?: string | undefined;
9070
- }
9071
- /**
9072
- * <p>Contains information about a recommended step to remediate a Security Hub finding.</p>
9073
- * @public
9074
- */
9075
- export type RecommendationStep = RecommendationStep.UnusedPermissionsMember | RecommendationStep.$UnknownMember;
9076
- /**
9077
- * @public
9078
- */
9079
- export declare namespace RecommendationStep {
9080
- /**
9081
- * <p>A recommended step to remediate an unused permissions finding.</p>
9082
- * @public
9083
- */
9084
- interface UnusedPermissionsMember {
9085
- UnusedPermissions: UnusedPermissionsRecommendationStep;
9086
- $unknown?: never;
9087
- }
9088
- /**
9089
- * @public
9090
- */
9091
- interface $UnknownMember {
9092
- UnusedPermissions?: never;
9093
- $unknown: [string, any];
9094
- }
9095
- /**
9096
- * @deprecated unused in schema-serde mode.
9097
- *
9098
- */
9099
- interface Visitor<T> {
9100
- UnusedPermissions: (value: UnusedPermissionsRecommendationStep) => T;
9101
- _: (name: string, value: any) => T;
9102
- }
9103
- }
9104
- /**
9105
- * @public
9106
- */
9107
- export interface GetRecommendedPolicyV2Response {
9108
- /**
9109
- * <p>The pagination token to use to request the next page of results.</p>
9110
- * @public
9111
- */
9112
- NextToken?: string | undefined;
9113
- /**
9114
- * <p>The type of recommendation for the finding.</p>
9115
- * @public
9116
- */
9117
- RecommendationType?: RecommendationType | undefined;
9118
- /**
9119
- * <p>The recommended steps to take to resolve the finding.</p>
9120
- * @public
9121
- */
9122
- RecommendationSteps?: RecommendationStep[] | undefined;
9123
- /**
9124
- * <p>Detailed information for a <code>FAILED</code> retrieval status.</p>
9125
- * @public
9126
- */
9127
- Error?: RecommendationError | undefined;
9128
- /**
9129
- * <p>The current status of the recommended policy retrieval.</p>
9130
- * @public
9131
- */
9132
- Status?: RecommendationStatus | undefined;
9133
- /**
9134
- * <p>The ARN of the resource of the finding.</p>
9135
- * @public
9136
- */
9137
- ResourceArn?: string | undefined;
9138
- }
9139
- /**
9140
- * <p>The condition to apply to the string filter.</p>
9141
- * @public
9142
- */
9143
- export interface RemediationStringFilterCondition {
9144
- /**
9145
- * <p>The value the string filter is comparing against.</p>
9146
- * @public
9147
- */
9148
- Value: string | undefined;
9149
- }
9150
- /**
9151
- * <p>A string filter for filtering remediation targets.</p>
9152
- * @public
9153
- */
9154
- export interface RemediationStringFilter {
9155
- /**
9156
- * <p>The name of the filter field. Valid values are <code>Resource.Type</code>, <code>Priority</code>, <code>Status</code>, <code>Resource.Id</code>, <code>Resource.ResourceOwnerAccountId</code>, and <code>Resource.CloudProvider</code>.</p>
9157
- * @public
9158
- */
9159
- FieldName: RemediationStringField | undefined;
9160
- /**
9161
- * <p>The string filter definition.</p>
9162
- * @public
9163
- */
9164
- Filter: RemediationStringFilterCondition | undefined;
9165
- }
9166
- /**
9167
- * <p>Enables the creation of criteria for remediation targets.</p>
9168
- * @public
9169
- */
9170
- export interface RemediationCompositeFilter {
9171
- /**
9172
- * <p>Enables filtering based on string field values.</p>
9173
- * @public
9174
- */
9175
- StringFilters?: RemediationStringFilter[] | undefined;
9176
- }