@aws-sdk/client-securityhub 3.1144.0 → 3.1146.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 (41) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +343 -32
  3. package/dist-es/SecurityHub.js +8 -0
  4. package/dist-es/commands/GetRemediationsV2Command.js +4 -0
  5. package/dist-es/commands/ListExposuresByRemediationV2Command.js +4 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +42 -0
  8. package/dist-es/pagination/GetRemediationsV2Paginator.js +4 -0
  9. package/dist-es/pagination/ListExposuresByRemediationV2Paginator.js +4 -0
  10. package/dist-es/pagination/index.js +2 -0
  11. package/dist-es/schemas/schemas_0.js +253 -31
  12. package/dist-types/SecurityHub.d.ts +29 -0
  13. package/dist-types/SecurityHubClient.d.ts +4 -2
  14. package/dist-types/commands/GetRemediationsV2Command.d.ts +218 -0
  15. package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +1 -2
  16. package/dist-types/commands/GetResourcesTrendsV2Command.d.ts +1 -2
  17. package/dist-types/commands/ListExposuresByRemediationV2Command.d.ts +120 -0
  18. package/dist-types/commands/index.d.ts +2 -0
  19. package/dist-types/models/enums.d.ts +90 -0
  20. package/dist-types/models/models_0.d.ts +7 -2
  21. package/dist-types/models/models_2.d.ts +286 -137
  22. package/dist-types/models/models_3.d.ts +563 -3
  23. package/dist-types/pagination/GetRemediationsV2Paginator.d.ts +7 -0
  24. package/dist-types/pagination/ListExposuresByRemediationV2Paginator.d.ts +7 -0
  25. package/dist-types/pagination/index.d.ts +2 -0
  26. package/dist-types/schemas/schemas_0.d.ts +24 -0
  27. package/dist-types/ts3.4/SecurityHub.d.ts +49 -0
  28. package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
  29. package/dist-types/ts3.4/commands/GetRemediationsV2Command.d.ts +40 -0
  30. package/dist-types/ts3.4/commands/GetResourcesStatisticsV2Command.d.ts +4 -2
  31. package/dist-types/ts3.4/commands/GetResourcesTrendsV2Command.d.ts +1 -2
  32. package/dist-types/ts3.4/commands/ListExposuresByRemediationV2Command.d.ts +42 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  34. package/dist-types/ts3.4/models/enums.d.ts +49 -0
  35. package/dist-types/ts3.4/models/models_2.d.ts +84 -55
  36. package/dist-types/ts3.4/models/models_3.d.ts +134 -7
  37. package/dist-types/ts3.4/pagination/GetRemediationsV2Paginator.d.ts +11 -0
  38. package/dist-types/ts3.4/pagination/ListExposuresByRemediationV2Paginator.d.ts +11 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  40. package/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  41. package/package.json +1 -1
@@ -1,5 +1,5 @@
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, FeatureName, FeatureStatus, FindingHistoryUpdateSourceType, FindingsTrendsStringField, GranularityField, HealthIssueCode, IntegrationType, IntegrationV2Type, OcsfBooleanField, OcsfDateField, OcsfIpField, OcsfMapField, OcsfNumberField, OcsfStringField, OrganizationConfigurationConfigurationType, OrganizationConfigurationStatus, ParameterValueType, Partition, RecommendationStatus, RecommendationType, RecordState, ResourcesDateField, ResourcesMapField, ResourcesNumberField, ResourcesStringField, ResourcesTrendsStringField, 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, CspmConnectorProviderName, CspmConnectorStatus, CspmEnablementStatus, EnablementStatus, ExposureImpact, ExposureSeverity, FeatureName, FeatureStatus, FindingHistoryUpdateSourceType, FindingsTrendsStringField, GranularityField, GuidanceFormat, 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";
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
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";
5
5
  /**
@@ -7461,6 +7461,52 @@ export interface EnableSecurityHubV2Response {
7461
7461
  */
7462
7462
  HubV2Arn?: string | undefined;
7463
7463
  }
7464
+ /**
7465
+ * <p>Provides details about an exposure finding and the effect the specific remediation target has on it.</p>
7466
+ * @public
7467
+ */
7468
+ export interface ExposureFinding {
7469
+ /**
7470
+ * <p>The unique identifier (ID) of the Security Hub exposure finding, found under the
7471
+ * <code>metadata.uid</code> field of the finding.</p>
7472
+ * @public
7473
+ */
7474
+ MetadataUid: string | undefined;
7475
+ /**
7476
+ * <p>The title of the exposure finding.</p>
7477
+ * @public
7478
+ */
7479
+ Title: string | undefined;
7480
+ /**
7481
+ * <p>The severity of the exposure finding before the remediation target is resolved.</p>
7482
+ * @public
7483
+ */
7484
+ PreviousSeverity: ExposureSeverity | undefined;
7485
+ /**
7486
+ * <p>The severity of the exposure finding after the remediation target is resolved.</p>
7487
+ * @public
7488
+ */
7489
+ ProjectedSeverity: ExposureSeverity | undefined;
7490
+ /**
7491
+ * <p>The impact resolving a remediation target has on the exposure finding.</p>
7492
+ * <ul>
7493
+ * <li>
7494
+ * <p>
7495
+ * <code>Reduces</code> specifies that resolving the remediation target lowers the severity of the exposure finding, but does not resolve it.</p>
7496
+ * </li>
7497
+ * <li>
7498
+ * <p>
7499
+ * <code>Resolves</code> specifies that resolving the remediation target resolves the exposure finding.</p>
7500
+ * </li>
7501
+ * <li>
7502
+ * <p>
7503
+ * <code>Unchanged</code> specifies that resolving the remediation target does not change the severity of the exposure finding.</p>
7504
+ * </li>
7505
+ * </ul>
7506
+ * @public
7507
+ */
7508
+ Impact: ExposureImpact | undefined;
7509
+ }
7464
7510
  /**
7465
7511
  * <p>A finding aggregator is a Security Hub CSPM resource that specifies cross-Region aggregation settings, including the
7466
7512
  * home Region and any linked Regions.</p>
@@ -8862,268 +8908,371 @@ export interface GetRecommendedPolicyV2Response {
8862
8908
  ResourceArn?: string | undefined;
8863
8909
  }
8864
8910
  /**
8865
- * <p>Enables the filtering of Amazon Web Services resources based on date and timestamp attributes.</p>
8911
+ * <p>The condition to apply to the string filter.</p>
8866
8912
  * @public
8867
8913
  */
8868
- export interface ResourcesDateFilter {
8914
+ export interface RemediationStringFilterCondition {
8869
8915
  /**
8870
- * <p>The name of the field.</p>
8916
+ * <p>The value the string filter is comparing against.</p>
8871
8917
  * @public
8872
8918
  */
8873
- FieldName?: ResourcesDateField | undefined;
8874
- /**
8875
- * <p>A date filter for querying findings.</p>
8876
- * @public
8877
- */
8878
- Filter?: DateFilter | undefined;
8919
+ Value: string | undefined;
8879
8920
  }
8880
8921
  /**
8881
- * <p>Enables filtering of Amazon Web Services resources based on key-value map attributes.</p>
8922
+ * <p>A string filter for filtering remediation targets.</p>
8882
8923
  * @public
8883
8924
  */
8884
- export interface ResourcesMapFilter {
8925
+ export interface RemediationStringFilter {
8885
8926
  /**
8886
- * <p>The name of the field.</p>
8927
+ * <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>
8887
8928
  * @public
8888
8929
  */
8889
- FieldName?: ResourcesMapField | undefined;
8930
+ FieldName: RemediationStringField | undefined;
8890
8931
  /**
8891
- * <p>A map filter for filtering Security Hub CSPM findings. Each map filter provides the field to check for, the
8892
- * value to check for, and the comparison operator.</p>
8932
+ * <p>The string filter definition.</p>
8893
8933
  * @public
8894
8934
  */
8895
- Filter?: MapFilter | undefined;
8935
+ Filter: RemediationStringFilterCondition | undefined;
8896
8936
  }
8897
8937
  /**
8898
- * <p>Enables filtering of Amazon Web Services resources based on numerical values.</p>
8938
+ * <p>Enables the creation of criteria for remediation targets.</p>
8899
8939
  * @public
8900
8940
  */
8901
- export interface ResourcesNumberFilter {
8941
+ export interface RemediationCompositeFilter {
8902
8942
  /**
8903
- * <p>The name of the field.</p>
8943
+ * <p>Enables filtering based on string field values.</p>
8904
8944
  * @public
8905
8945
  */
8906
- FieldName?: ResourcesNumberField | undefined;
8946
+ StringFilters?: RemediationStringFilter[] | undefined;
8947
+ }
8948
+ /**
8949
+ * <p>Contains the criteria used to filter remediation targets, such as resource type, priority,
8950
+ * or status.</p>
8951
+ * @public
8952
+ */
8953
+ export interface RemediationFilters {
8907
8954
  /**
8908
- * <p>A number filter for querying findings.</p>
8955
+ * <p>A collection of complex filtering conditions that can be applied to remediation target data.</p>
8909
8956
  * @public
8910
8957
  */
8911
- Filter?: NumberFilter | undefined;
8958
+ CompositeFilters?: RemediationCompositeFilter[] | undefined;
8912
8959
  }
8913
8960
  /**
8914
- * <p>Enables filtering of Amazon Web Services resources based on string field values.</p>
8915
8961
  * @public
8916
8962
  */
8917
- export interface ResourcesStringFilter {
8963
+ export interface GetRemediationsV2Request {
8918
8964
  /**
8919
- * <p>The name of the field.</p>
8965
+ * <p>The unique identifier (ID) of an existing remediation target to return. Returns the single
8966
+ * matching target. You can't use <code>TargetUid</code> together with <code>MetadataUid</code>
8967
+ * or <code>Filters</code>.</p>
8920
8968
  * @public
8921
8969
  */
8922
- FieldName?: ResourcesStringField | undefined;
8970
+ TargetUid?: string | undefined;
8923
8971
  /**
8924
- * <p>A string filter for filtering Security Hub CSPM findings.</p>
8972
+ * <p>The unique identifier (ID) of the Security Hub exposure finding, found under the
8973
+ * <code>metadata.uid</code> field of the finding. Returns the remediation targets associated with
8974
+ * that finding. You can't use <code>MetadataUid</code> together with <code>TargetUid</code> or
8975
+ * <code>Filters</code>.</p>
8925
8976
  * @public
8926
8977
  */
8927
- Filter?: StringFilter | undefined;
8928
- }
8929
- /**
8930
- * <p>Defines the data boundary for a resources query. Scopes determine which organizational units or organizations to retrieve data from.</p>
8931
- * @public
8932
- */
8933
- export interface ResourceScopes {
8978
+ MetadataUid?: string | undefined;
8934
8979
  /**
8935
- * <p>A list of Organizations scopes to include in the query results. Each entry in the list specifies an organization or organizational unit to include for the delegated administrator's account. If the list specifies multiple entries, the entries are combined using OR logic.</p>
8980
+ * <p>Filters remediation targets based on a set of criteria. You can't use <code>Filters</code>
8981
+ * together with <code>TargetUid</code> or <code>MetadataUid</code>.</p>
8936
8982
  * @public
8937
8983
  */
8938
- AwsOrganizations?: AwsOrganizationScope[] | undefined;
8939
- }
8940
- /**
8941
- * @public
8942
- */
8943
- export interface GetResourcesStatisticsV2Response {
8984
+ Filters?: RemediationFilters | undefined;
8944
8985
  /**
8945
- * <p>The aggregated statistics about resources based on the specified grouping rule.</p>
8986
+ * <p>Specifies whether to show remediation target guidance.</p>
8946
8987
  * @public
8947
8988
  */
8948
- GroupByResults: GroupByResult[] | undefined;
8949
- }
8950
- /**
8951
- * <p>A filter for string-based fields in resources trend data, such as resource type or account ID.</p>
8952
- * @public
8953
- */
8954
- export interface ResourcesTrendsStringFilter {
8989
+ ShowGuidance?: boolean | undefined;
8955
8990
  /**
8956
- * <p>The name of the resources field to filter on. You can specify one of the following fields.</p>
8957
- * <ul>
8958
- * <li>
8959
- * <p>
8960
- * <code>account_id</code> – The Amazon Web Services account ID that owns the resource.</p>
8961
- * </li>
8962
- * <li>
8963
- * <p>
8964
- * <code>region</code> – The Amazon Web Services Region of the resource.</p>
8965
- * </li>
8966
- * <li>
8967
- * <p>
8968
- * <code>resource_type</code> – The type of the resource.</p>
8969
- * </li>
8970
- * <li>
8971
- * <p>
8972
- * <code>resource_category</code> – The category of the resource.</p>
8973
- * </li>
8974
- * <li>
8975
- * <p>
8976
- * <code>resource_cloud_provider</code> – The cloud provider of the resource. Valid values are <code>AWS</code> and <code>Azure</code>.</p>
8977
- * </li>
8978
- * <li>
8979
- * <p>
8980
- * <code>resource_region</code> – The Region of the resource. For an Amazon Web Services resource, this is the Amazon Web Services Region. For an Azure resource, this is the Azure Region, such as <code>eastus</code>.</p>
8981
- * </li>
8982
- * <li>
8983
- * <p>
8984
- * <code>resource_owner_id</code> – The identifier of the account that owns the resource. For an Amazon Web Services resource, this is the Amazon Web Services account ID. For an Azure resource, this is the Azure subscription ID.</p>
8985
- * </li>
8986
- * <li>
8987
- * <p>
8988
- * <code>resource_owner_organization_id</code> – The identifier of the organization that owns the resource. For an Amazon Web Services resource, this is the Amazon Web Services organization ID. For an Azure resource, this is the Azure tenant ID.</p>
8989
- * </li>
8990
- * </ul>
8991
+ * <p>The format of the remediation guidance examples to return. Valid values are <code>All</code>,
8992
+ * <code>AwsCli</code>, <code>Cli</code>, <code>Python</code>, <code>Terraform</code>,
8993
+ * <code>Cdk</code>, <code>CloudFormation</code>, <code>IaC</code>, and <code>Template</code>.
8994
+ * If you don't specify a value, all formats are returned. Applies only when
8995
+ * <code>ShowGuidance</code> is <code>true</code>.</p>
8991
8996
  * @public
8992
8997
  */
8993
- FieldName?: ResourcesTrendsStringField | undefined;
8998
+ GuidanceFormat?: GuidanceFormat | undefined;
8994
8999
  /**
8995
- * <p>A string filter for filtering Security Hub CSPM findings.</p>
9000
+ * <p>The maximum number of results to return. Valid range is 1-100. If you don't specify a value,
9001
+ * the operation returns up to 25 results.</p>
8996
9002
  * @public
8997
9003
  */
8998
- Filter?: StringFilter | undefined;
9004
+ MaxResults?: number | undefined;
9005
+ /**
9006
+ * <p>The token used to paginate the remediations target list returned.
9007
+ * On your first call to <code>GetRemediationsV2</code>, omit this parameter or set it
9008
+ * to <code>NULL</code>. For subsequent calls, use the <code>NextToken</code> value returned in
9009
+ * the previous response to retrieve the next page of results.</p>
9010
+ * @public
9011
+ */
9012
+ NextToken?: string | undefined;
8999
9013
  }
9000
9014
  /**
9001
- * <p>Contains counts of resources for trend analysis.</p>
9015
+ * <p>The context behind the remediation target's existence and guidance.</p>
9002
9016
  * @public
9003
9017
  */
9004
- export interface ResourcesCount {
9018
+ export interface RemediationGuidanceContext {
9019
+ /**
9020
+ * <p>Explains the cause which directly created the remediation target.</p>
9021
+ * @public
9022
+ */
9023
+ ProblemStatement?: string | undefined;
9024
+ /**
9025
+ * <p>An assessment of the existing risk the remediation target creates.</p>
9026
+ * @public
9027
+ */
9028
+ RiskAssessment?: string | undefined;
9005
9029
  /**
9006
- * <p>The total count of all resources for the given time interval.</p>
9030
+ * <p>The scope of the resources affected by the resolution of the remediation target.</p>
9007
9031
  * @public
9008
9032
  */
9009
- AllResources: number | undefined;
9033
+ AffectedScope?: string | undefined;
9034
+ /**
9035
+ * <p>An array of prerequisite steps in resolving the remediation target.</p>
9036
+ * @public
9037
+ */
9038
+ Prerequisites?: string[] | undefined;
9010
9039
  }
9011
9040
  /**
9012
- * <p>Contains the aggregated resource count values for a specific point in the resources trend timeline.</p>
9041
+ * <p>Provided remediation guidance examples in different formats that can be run for remediating the target.</p>
9013
9042
  * @public
9014
9043
  */
9015
- export interface ResourcesTrendsValues {
9044
+ export interface RemediationGuidanceExamples {
9045
+ /**
9046
+ * <p>An AWS CLI snippet version of the example.</p>
9047
+ * @public
9048
+ */
9049
+ AwsCli?: string | undefined;
9050
+ /**
9051
+ * <p>A CLI snippet version of the example.</p>
9052
+ * @public
9053
+ */
9054
+ Cli?: string | undefined;
9055
+ /**
9056
+ * <p>A Python snippet version of the example.</p>
9057
+ * @public
9058
+ */
9059
+ Python?: string | undefined;
9016
9060
  /**
9017
- * <p>The resource count statistics for this data point in the trend timeline.</p>
9061
+ * <p>A Terraform snippet version of the example.</p>
9018
9062
  * @public
9019
9063
  */
9020
- ResourcesCount: ResourcesCount | undefined;
9064
+ Terraform?: string | undefined;
9065
+ /**
9066
+ * <p>A CDK snippet version of the example.</p>
9067
+ * @public
9068
+ */
9069
+ Cdk?: string | undefined;
9070
+ /**
9071
+ * <p>A CloudFormation snippet version of the example.</p>
9072
+ * @public
9073
+ */
9074
+ CloudFormation?: string | undefined;
9075
+ /**
9076
+ * <p>An IaC snippet version of the example.</p>
9077
+ * @public
9078
+ */
9079
+ IaC?: string | undefined;
9080
+ /**
9081
+ * <p>A Template snippet version of the example.</p>
9082
+ * @public
9083
+ */
9084
+ Template?: string | undefined;
9021
9085
  }
9022
9086
  /**
9023
- * <p>Contains the resource trend metrics data for a specific time point in the requested time period.</p>
9087
+ * <p>The metadata of the remediation guidance.</p>
9024
9088
  * @public
9025
9089
  */
9026
- export interface ResourcesTrendsMetricsResult {
9090
+ export interface RemediationGuidanceMetadata {
9027
9091
  /**
9028
- * <p>The timestamp for this data point in the resources trend metrics.</p>
9092
+ * <p>The resource type of the remediation target.</p>
9029
9093
  * @public
9030
9094
  */
9031
- Timestamp: Date | undefined;
9095
+ ResourceType: string | undefined;
9096
+ /**
9097
+ * <p>The exposure type of the related exposure findings.</p>
9098
+ * @public
9099
+ */
9100
+ ExposureType: string | undefined;
9101
+ /**
9102
+ * <p>The titles of traits this guidance applies to.</p>
9103
+ * @public
9104
+ */
9105
+ TraitTitles: string[] | undefined;
9106
+ /**
9107
+ * <p>The extent to which changes made in accordance with the guidance can be reversed, for example <code>Fully reversible</code>.</p>
9108
+ * @public
9109
+ */
9110
+ Reversibility: string | undefined;
9111
+ /**
9112
+ * <p>When the fix takes effect, for example <code>Immediate</code> or <code>Deferred</code>.</p>
9113
+ * @public
9114
+ */
9115
+ FixEffect: string | undefined;
9116
+ /**
9117
+ * <p>The risk when implementing the guidance provided.</p>
9118
+ * @public
9119
+ */
9120
+ RiskLevel: string | undefined;
9121
+ /**
9122
+ * <p>The extent to which the guidance can be automated, for example <code>Full</code>.</p>
9123
+ * @public
9124
+ */
9125
+ AutomationLevel?: string | undefined;
9126
+ /**
9127
+ * <p>Specifies whether human review is required.</p>
9128
+ * @public
9129
+ */
9130
+ HumanReviewRequired?: boolean | undefined;
9131
+ /**
9132
+ * <p>Timestamp of when the guidance was generated.</p>
9133
+ * <p>For more information about the validation and formatting of timestamp fields in Security Hub CSPM, see <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/Welcome.html#timestamps">Timestamps</a>.</p>
9134
+ * @public
9135
+ */
9136
+ GeneratedAt?: Date | undefined;
9032
9137
  /**
9033
- * <p>The resource trend metric values associated with this timestamp, including resource counts.</p>
9138
+ * <p>Verification status of the guidance.</p>
9034
9139
  * @public
9035
9140
  */
9036
- TrendsValues: ResourcesTrendsValues | undefined;
9141
+ VerificationStatus?: string | undefined;
9037
9142
  }
9038
9143
  /**
9144
+ * <p>A parameter used in running the guidance steps.</p>
9039
9145
  * @public
9040
9146
  */
9041
- export interface GetResourcesTrendsV2Response {
9147
+ export interface RemediationParameter {
9042
9148
  /**
9043
- * <p>The time interval granularity for the returned trend data (such as DAILY or WEEKLY).</p>
9149
+ * <p>The name of the parameter.</p>
9044
9150
  * @public
9045
9151
  */
9046
- Granularity: GranularityField | undefined;
9152
+ Name: string | undefined;
9153
+ /**
9154
+ * <p>The type of the parameter.</p>
9155
+ * @public
9156
+ */
9157
+ Type: string | undefined;
9047
9158
  /**
9048
- * <p>The collection of time-series trend metrics, including counts of resources across the specified time period.</p>
9159
+ * <p>A description of the parameter.</p>
9049
9160
  * @public
9050
9161
  */
9051
- TrendsMetrics: ResourcesTrendsMetricsResult[] | undefined;
9162
+ Description: string | undefined;
9052
9163
  /**
9053
- * <p>The token to use for retrieving the next page of results, if more trend data is available.</p>
9164
+ * <p>Specifies whether the parameter is required for running the guidance steps.</p>
9054
9165
  * @public
9055
9166
  */
9056
- NextToken?: string | undefined;
9167
+ Required?: boolean | undefined;
9057
9168
  }
9058
9169
  /**
9059
- * <p>A comprehensive distribution of security findings by severity level for Amazon Web Services resources.</p>
9170
+ * <p>A step in the remediation guidance.</p>
9060
9171
  * @public
9061
9172
  */
9062
- export interface ResourceSeverityBreakdown {
9173
+ export interface RemediationStep {
9063
9174
  /**
9064
- * <p>The number of findings not in any of the severity categories.</p>
9175
+ * <p>The phase of the remediation plan that this step belongs to (for example, <code>FIX</code>).</p>
9065
9176
  * @public
9066
9177
  */
9067
- Other?: number | undefined;
9178
+ Phase: string | undefined;
9068
9179
  /**
9069
- * <p>The number of findings with a severity level of fatal.</p>
9180
+ * <p>A description of what the step does.</p>
9070
9181
  * @public
9071
9182
  */
9072
- Fatal?: number | undefined;
9183
+ Description: string | undefined;
9184
+ /**
9185
+ * <p>Which service this step is performed in.</p>
9186
+ * @public
9187
+ */
9188
+ Service: string | undefined;
9189
+ /**
9190
+ * <p>The action to be taken for this step.</p>
9191
+ * @public
9192
+ */
9193
+ Action: string | undefined;
9073
9194
  /**
9074
- * <p>The number of findings with a severity level of critical.</p>
9195
+ * <p>The logic behind the existence of this step.</p>
9075
9196
  * @public
9076
9197
  */
9077
- Critical?: number | undefined;
9198
+ Logic?: string | undefined;
9078
9199
  /**
9079
- * <p>The number of findings with a severity level of high.</p>
9200
+ * <p>The inverse of the step, to be used if the step needs to be rolled back.</p>
9080
9201
  * @public
9081
9202
  */
9082
- High?: number | undefined;
9203
+ Inverse?: string | undefined;
9083
9204
  /**
9084
- * <p>The number of findings with a severity level of medium.</p>
9205
+ * <p>The action to take after the step to verify its success.</p>
9085
9206
  * @public
9086
9207
  */
9087
- Medium?: number | undefined;
9208
+ VerifyAfter?: string | undefined;
9209
+ }
9210
+ /**
9211
+ * <p>The specification of the remediation target guidance. This outlines required resource parameters
9212
+ * and permissions, remediation steps, and the end state.</p>
9213
+ * @public
9214
+ */
9215
+ export interface RemediationGuidanceSpecification {
9088
9216
  /**
9089
- * <p>The number of findings with a severity level of low.</p>
9217
+ * <p>An array of the parameters used in running the steps provided.</p>
9090
9218
  * @public
9091
9219
  */
9092
- Low?: number | undefined;
9220
+ Parameters?: RemediationParameter[] | undefined;
9093
9221
  /**
9094
- * <p>The number of findings that provide security-related information.</p>
9222
+ * <p>An array of ordered steps for resolving the remediation targets.</p>
9095
9223
  * @public
9096
9224
  */
9097
- Informational?: number | undefined;
9225
+ Steps?: RemediationStep[] | undefined;
9098
9226
  /**
9099
- * <p>The number of findings with a severity level cannot be determined.</p>
9227
+ * <p>The expected end state of the associated resources after completion of the steps.</p>
9100
9228
  * @public
9101
9229
  */
9102
- Unknown?: number | undefined;
9230
+ ExpectedEndState?: string | undefined;
9231
+ /**
9232
+ * <p>An array of required permissions to run the steps.</p>
9233
+ * @public
9234
+ */
9235
+ RequiredPermissions?: string[] | undefined;
9103
9236
  }
9104
9237
  /**
9105
- * <p>A list of summaries for all finding types on a resource.</p>
9238
+ * <p>A remediation guidebook outlining guidance in resolving the remediation target.</p>
9106
9239
  * @public
9107
9240
  */
9108
- export interface ResourceFindingsSummary {
9241
+ export interface RemediationGuidance {
9242
+ /**
9243
+ * <p>The name of the remediation target type.</p>
9244
+ * @public
9245
+ */
9246
+ TargetTypeName: string | undefined;
9247
+ /**
9248
+ * <p>The remediation pattern of the remediation target.</p>
9249
+ * @public
9250
+ */
9251
+ Pattern: string | undefined;
9252
+ /**
9253
+ * <p>The guidance version.</p>
9254
+ * @public
9255
+ */
9256
+ Version: string | undefined;
9109
9257
  /**
9110
- * <p>The category or classification of the security finding.</p>
9258
+ * <p>The context behind the remediation target's existence and guidance.</p>
9111
9259
  * @public
9112
9260
  */
9113
- FindingType: string | undefined;
9261
+ Context: RemediationGuidanceContext | undefined;
9114
9262
  /**
9115
- * <p>The name of the product associated with the security finding.</p>
9263
+ * <p>The specification of the remediation target guidance. This outlines required resource parameters
9264
+ * and permissions, remediation steps, and the end state.</p>
9116
9265
  * @public
9117
9266
  */
9118
- ProductName: string | undefined;
9267
+ Specification: RemediationGuidanceSpecification | undefined;
9119
9268
  /**
9120
- * <p>The total count of security findings.</p>
9269
+ * <p>Provided remediation guidance examples in different formats that can be run for remediating the target.</p>
9121
9270
  * @public
9122
9271
  */
9123
- TotalFindings: number | undefined;
9272
+ Examples: RemediationGuidanceExamples | undefined;
9124
9273
  /**
9125
- * <p>A breakdown of security findings by their severity levels.</p>
9274
+ * <p>The metadata of the remediation guidance.</p>
9126
9275
  * @public
9127
9276
  */
9128
- Severities?: ResourceSeverityBreakdown | undefined;
9277
+ Metadata: RemediationGuidanceMetadata | undefined;
9129
9278
  }