@aws-sdk/client-securityhub 3.1147.0 → 3.1149.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/README.md +28 -0
- package/dist-cjs/index.js +321 -1
- package/dist-es/SecurityHub.js +10 -0
- package/dist-es/commands/CancelExportJobV2Command.js +4 -0
- package/dist-es/commands/GetExportJobV2Command.js +4 -0
- package/dist-es/commands/ListExportJobsV2Command.js +4 -0
- package/dist-es/commands/StartExportJobV2Command.js +4 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/SecurityHubServiceException.js +1 -0
- package/dist-es/models/enums.js +129 -0
- package/dist-es/models/errors.js +15 -0
- package/dist-es/pagination/ListExportJobsV2Paginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +127 -0
- package/dist-types/SecurityHub.d.ts +36 -0
- package/dist-types/SecurityHubClient.d.ts +6 -2
- package/dist-types/commands/CancelExportJobV2Command.d.ts +112 -0
- package/dist-types/commands/GetExportJobV2Command.d.ts +380 -0
- package/dist-types/commands/GetRemediationsV2Command.d.ts +1 -2
- package/dist-types/commands/ListExportJobsV2Command.d.ts +163 -0
- package/dist-types/commands/StartExportJobV2Command.d.ts +375 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/SecurityHubServiceException.d.ts +1 -0
- package/dist-types/models/enums.d.ts +169 -0
- package/dist-types/models/errors.d.ts +15 -0
- package/dist-types/models/models_2.d.ts +230 -332
- package/dist-types/models/models_3.d.ts +544 -2
- package/dist-types/pagination/ListExportJobsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +20 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +76 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CancelExportJobV2Command.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetExportJobV2Command.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetRemediationsV2Command.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListExportJobsV2Command.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartExportJobV2Command.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/SecurityHubServiceException.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +135 -0
- package/dist-types/ts3.4/models/errors.d.ts +15 -0
- package/dist-types/ts3.4/models/models_2.d.ts +70 -71
- package/dist-types/ts3.4/models/models_3.d.ts +133 -1
- package/dist-types/ts3.4/pagination/ListExportJobsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +20 -0
- package/package.json +4 -4
|
@@ -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, ExposureImpact, ExposureSeverity, FeatureName, FeatureStatus, FindingHistoryUpdateSourceType, FindingsTrendsStringField, GranularityField,
|
|
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";
|
|
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
|
/**
|
|
@@ -4696,6 +4696,31 @@ export interface BooleanConfigurationOptions {
|
|
|
4696
4696
|
*/
|
|
4697
4697
|
DefaultValue?: boolean | undefined;
|
|
4698
4698
|
}
|
|
4699
|
+
/**
|
|
4700
|
+
* @public
|
|
4701
|
+
*/
|
|
4702
|
+
export interface CancelExportJobV2Request {
|
|
4703
|
+
/**
|
|
4704
|
+
* <p>The unique identifier of the export job to cancel. This is the value returned by <code>StartExportJobV2</code>.</p>
|
|
4705
|
+
* @public
|
|
4706
|
+
*/
|
|
4707
|
+
ExportJobId: string | undefined;
|
|
4708
|
+
}
|
|
4709
|
+
/**
|
|
4710
|
+
* @public
|
|
4711
|
+
*/
|
|
4712
|
+
export interface CancelExportJobV2Response {
|
|
4713
|
+
/**
|
|
4714
|
+
* <p>The unique identifier of the export job.</p>
|
|
4715
|
+
* @public
|
|
4716
|
+
*/
|
|
4717
|
+
ExportJobId: string | undefined;
|
|
4718
|
+
/**
|
|
4719
|
+
* <p>The state of the export job after the cancel request.</p>
|
|
4720
|
+
* @public
|
|
4721
|
+
*/
|
|
4722
|
+
Status: ExportStatus | undefined;
|
|
4723
|
+
}
|
|
4699
4724
|
/**
|
|
4700
4725
|
* <p>Enables filtering of security findings based on boolean field values in OCSF.</p>
|
|
4701
4726
|
* @public
|
|
@@ -7461,6 +7486,200 @@ export interface EnableSecurityHubV2Response {
|
|
|
7461
7486
|
*/
|
|
7462
7487
|
HubV2Arn?: string | undefined;
|
|
7463
7488
|
}
|
|
7489
|
+
/**
|
|
7490
|
+
* <p>The Amazon S3 destination for an export, including the bucket, the Amazon Web Services KMS key used for encryption, and an optional object key prefix.</p>
|
|
7491
|
+
* @public
|
|
7492
|
+
*/
|
|
7493
|
+
export interface S3ExportDestination {
|
|
7494
|
+
/**
|
|
7495
|
+
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket that Security Hub writes the export to. You must own the bucket, and its bucket policy must grant the Security Hub service principal (<code>exportv2.securityhub.amazonaws.com</code>) permission to write objects. For the required bucket policy, see the Examples section of <code>StartExportJobV2</code>.</p>
|
|
7496
|
+
* @public
|
|
7497
|
+
*/
|
|
7498
|
+
BucketArn: string | undefined;
|
|
7499
|
+
/**
|
|
7500
|
+
* <p>The ARN of the Amazon Web Services KMS key that Security Hub uses to encrypt the export objects with server-side encryption. The key policy must allow the Security Hub service principal (<code>exportv2.securityhub.amazonaws.com</code>) to use the key through Amazon S3. For the required key policy, see the Examples section of <code>StartExportJobV2</code>.</p>
|
|
7501
|
+
* <p>The key must meet all of the following requirements:</p>
|
|
7502
|
+
* <ul>
|
|
7503
|
+
* <li>
|
|
7504
|
+
* <p>It must be a symmetric key with a key usage of <code>ENCRYPT_DECRYPT</code>.</p>
|
|
7505
|
+
* </li>
|
|
7506
|
+
* <li>
|
|
7507
|
+
* <p>It must be a single-Region key. Multi-Region keys, whose key IDs begin with <code>mrk-</code>, are rejected.</p>
|
|
7508
|
+
* </li>
|
|
7509
|
+
* <li>
|
|
7510
|
+
* <p>You must specify the full key ARN. Key IDs and aliases are rejected.</p>
|
|
7511
|
+
* </li>
|
|
7512
|
+
* <li>
|
|
7513
|
+
* <p>The key must be in the same Amazon Web Services account as the export job.</p>
|
|
7514
|
+
* </li>
|
|
7515
|
+
* <li>
|
|
7516
|
+
* <p>The key must be in the same Amazon Web Services Region as the export job.</p>
|
|
7517
|
+
* </li>
|
|
7518
|
+
* <li>
|
|
7519
|
+
* <p>The key must be in the <code>aws</code>, <code>aws-cn</code>, or <code>aws-us-gov</code> partition.</p>
|
|
7520
|
+
* </li>
|
|
7521
|
+
* </ul>
|
|
7522
|
+
* @public
|
|
7523
|
+
*/
|
|
7524
|
+
KmsKeyArn: string | undefined;
|
|
7525
|
+
/**
|
|
7526
|
+
* <p>An optional key prefix that Security Hub prepends to the Amazon S3 object keys of the export output. Use a prefix to organize exports within the bucket. The value can be up to 512 characters.</p>
|
|
7527
|
+
* @public
|
|
7528
|
+
*/
|
|
7529
|
+
ObjectPrefix?: string | undefined;
|
|
7530
|
+
}
|
|
7531
|
+
/**
|
|
7532
|
+
* <p>Specifies where Security Hub writes the export output. This is a union: you must specify exactly one member. Currently, the only supported member is <code>S3</code>.</p>
|
|
7533
|
+
* @public
|
|
7534
|
+
*/
|
|
7535
|
+
export type ExportDestination = ExportDestination.S3Member | ExportDestination.$UnknownMember;
|
|
7536
|
+
/**
|
|
7537
|
+
* @public
|
|
7538
|
+
*/
|
|
7539
|
+
export declare namespace ExportDestination {
|
|
7540
|
+
/**
|
|
7541
|
+
* <p>The Amazon Simple Storage Service (Amazon S3) bucket and Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Security Hub uses to write the export.</p>
|
|
7542
|
+
* @public
|
|
7543
|
+
*/
|
|
7544
|
+
interface S3Member {
|
|
7545
|
+
S3: S3ExportDestination;
|
|
7546
|
+
$unknown?: never;
|
|
7547
|
+
}
|
|
7548
|
+
/**
|
|
7549
|
+
* @public
|
|
7550
|
+
*/
|
|
7551
|
+
interface $UnknownMember {
|
|
7552
|
+
S3?: never;
|
|
7553
|
+
$unknown: [string, any];
|
|
7554
|
+
}
|
|
7555
|
+
/**
|
|
7556
|
+
* @deprecated unused in schema-serde mode.
|
|
7557
|
+
*
|
|
7558
|
+
*/
|
|
7559
|
+
interface Visitor<T> {
|
|
7560
|
+
S3: (value: S3ExportDestination) => T;
|
|
7561
|
+
_: (name: string, value: any) => T;
|
|
7562
|
+
}
|
|
7563
|
+
}
|
|
7564
|
+
/**
|
|
7565
|
+
* <p>A summary of the output configuration for a findings export, returned by <code>ListExportJobsV2</code>. Unlike the configuration returned by <code>GetExportJobV2</code>, it reports only the output format.</p>
|
|
7566
|
+
* @public
|
|
7567
|
+
*/
|
|
7568
|
+
export interface FindingsOutputSummary {
|
|
7569
|
+
/**
|
|
7570
|
+
* <p>The output format of the export. <code>CSV</code> produces comma-separated rows that are suitable for spreadsheets and analysis tools. <code>OCSF_JSON</code> produces newline-delimited JSON records in the Open Cybersecurity Schema Framework (OCSF) format used elsewhere in Security Hub.</p>
|
|
7571
|
+
* @public
|
|
7572
|
+
*/
|
|
7573
|
+
Format: FindingsExportFormat | undefined;
|
|
7574
|
+
}
|
|
7575
|
+
/**
|
|
7576
|
+
* <p>A summary of the output configuration for an export job. The populated member corresponds to the data type that was exported.</p>
|
|
7577
|
+
* @public
|
|
7578
|
+
*/
|
|
7579
|
+
export type ExportOutputSummary = ExportOutputSummary.FindingsMember | ExportOutputSummary.$UnknownMember;
|
|
7580
|
+
/**
|
|
7581
|
+
* @public
|
|
7582
|
+
*/
|
|
7583
|
+
export declare namespace ExportOutputSummary {
|
|
7584
|
+
/**
|
|
7585
|
+
* <p>The output configuration summary for a findings export.</p>
|
|
7586
|
+
* @public
|
|
7587
|
+
*/
|
|
7588
|
+
interface FindingsMember {
|
|
7589
|
+
Findings: FindingsOutputSummary;
|
|
7590
|
+
$unknown?: never;
|
|
7591
|
+
}
|
|
7592
|
+
/**
|
|
7593
|
+
* @public
|
|
7594
|
+
*/
|
|
7595
|
+
interface $UnknownMember {
|
|
7596
|
+
Findings?: never;
|
|
7597
|
+
$unknown: [string, any];
|
|
7598
|
+
}
|
|
7599
|
+
/**
|
|
7600
|
+
* @deprecated unused in schema-serde mode.
|
|
7601
|
+
*
|
|
7602
|
+
*/
|
|
7603
|
+
interface Visitor<T> {
|
|
7604
|
+
Findings: (value: FindingsOutputSummary) => T;
|
|
7605
|
+
_: (name: string, value: any) => T;
|
|
7606
|
+
}
|
|
7607
|
+
}
|
|
7608
|
+
/**
|
|
7609
|
+
* <p>Defines the data boundary for a findings export. Scopes determine which organizational units or organizations to retrieve data from.</p>
|
|
7610
|
+
* <p>Only a delegated administrator can use this structure. If a delegated administrator omits it, the export covers the entire organization; any other caller exports only findings from its own account.</p>
|
|
7611
|
+
* @public
|
|
7612
|
+
*/
|
|
7613
|
+
export interface ExportScopes {
|
|
7614
|
+
/**
|
|
7615
|
+
* <p>A list of Organizations scopes to include in the export. 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>
|
|
7616
|
+
* @public
|
|
7617
|
+
*/
|
|
7618
|
+
AwsOrganizations?: AwsOrganizationScope[] | undefined;
|
|
7619
|
+
}
|
|
7620
|
+
/**
|
|
7621
|
+
* <p>A summary of an export job, as returned by <code>ListExportJobsV2</code>.</p>
|
|
7622
|
+
* @public
|
|
7623
|
+
*/
|
|
7624
|
+
export interface ExportSummary {
|
|
7625
|
+
/**
|
|
7626
|
+
* <p>The unique identifier of the export job.</p>
|
|
7627
|
+
* @public
|
|
7628
|
+
*/
|
|
7629
|
+
ExportJobId: string | undefined;
|
|
7630
|
+
/**
|
|
7631
|
+
* <p>The user-provided name of the export job, if one was specified.</p>
|
|
7632
|
+
* @public
|
|
7633
|
+
*/
|
|
7634
|
+
Name?: string | undefined;
|
|
7635
|
+
/**
|
|
7636
|
+
* <p>The current state of the export job.</p>
|
|
7637
|
+
* @public
|
|
7638
|
+
*/
|
|
7639
|
+
Status: ExportStatus | undefined;
|
|
7640
|
+
/**
|
|
7641
|
+
* <p>The category of data that the export job produces.</p>
|
|
7642
|
+
* @public
|
|
7643
|
+
*/
|
|
7644
|
+
DataType: ExportDataType | undefined;
|
|
7645
|
+
/**
|
|
7646
|
+
* <p>The output configuration of the export job. For findings exports, this reports the output format. Present only for findings exports; absent for other data types.</p>
|
|
7647
|
+
* @public
|
|
7648
|
+
*/
|
|
7649
|
+
OutputConfiguration?: ExportOutputSummary | undefined;
|
|
7650
|
+
/**
|
|
7651
|
+
* <p>The organization scopes that the export job was started with, echoed verbatim. Absent if the caller didn't supply <code>Scopes</code>.</p>
|
|
7652
|
+
* @public
|
|
7653
|
+
*/
|
|
7654
|
+
Scopes?: ExportScopes | undefined;
|
|
7655
|
+
/**
|
|
7656
|
+
* <p>The destination that the export job writes to.</p>
|
|
7657
|
+
* @public
|
|
7658
|
+
*/
|
|
7659
|
+
Destination: ExportDestination | undefined;
|
|
7660
|
+
/**
|
|
7661
|
+
* <p>A code that classifies why the export job failed. Present only when <code>Status</code> is <code>FAILED</code>.</p>
|
|
7662
|
+
* @public
|
|
7663
|
+
*/
|
|
7664
|
+
FailureCode?: ExportFailureCode | undefined;
|
|
7665
|
+
/**
|
|
7666
|
+
* <p>A human-readable message about why the export job failed. Present only when <code>Status</code> is <code>FAILED</code>.</p>
|
|
7667
|
+
* @public
|
|
7668
|
+
*/
|
|
7669
|
+
FailureMessage?: string | undefined;
|
|
7670
|
+
/**
|
|
7671
|
+
* <p>The time when the export job was created.</p>
|
|
7672
|
+
* <p>For more information about the validation and formatting of timestamp fields in Security Hub, see <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/Welcome.html#timestamps">Timestamps</a>.</p>
|
|
7673
|
+
* @public
|
|
7674
|
+
*/
|
|
7675
|
+
StartedAt: Date | undefined;
|
|
7676
|
+
/**
|
|
7677
|
+
* <p>The time when the export job reached a terminal state. Absent while the job is <code>RUNNING</code>.</p>
|
|
7678
|
+
* <p>For more information about the validation and formatting of timestamp fields in Security Hub, see <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/Welcome.html#timestamps">Timestamps</a>.</p>
|
|
7679
|
+
* @public
|
|
7680
|
+
*/
|
|
7681
|
+
EndedAt?: Date | undefined;
|
|
7682
|
+
}
|
|
7464
7683
|
/**
|
|
7465
7684
|
* <p>Provides details about an exposure finding and the effect the specific remediation target has on it.</p>
|
|
7466
7685
|
* @public
|
|
@@ -8166,6 +8385,16 @@ export interface GetEnabledStandardsResponse {
|
|
|
8166
8385
|
*/
|
|
8167
8386
|
NextToken?: string | undefined;
|
|
8168
8387
|
}
|
|
8388
|
+
/**
|
|
8389
|
+
* @public
|
|
8390
|
+
*/
|
|
8391
|
+
export interface GetExportJobV2Request {
|
|
8392
|
+
/**
|
|
8393
|
+
* <p>The unique identifier of the export job to retrieve. This is the value returned by <code>StartExportJobV2</code>.</p>
|
|
8394
|
+
* @public
|
|
8395
|
+
*/
|
|
8396
|
+
ExportJobId: string | undefined;
|
|
8397
|
+
}
|
|
8169
8398
|
/**
|
|
8170
8399
|
* @public
|
|
8171
8400
|
*/
|
|
@@ -8945,334 +9174,3 @@ export interface RemediationCompositeFilter {
|
|
|
8945
9174
|
*/
|
|
8946
9175
|
StringFilters?: RemediationStringFilter[] | undefined;
|
|
8947
9176
|
}
|
|
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 {
|
|
8954
|
-
/**
|
|
8955
|
-
* <p>A collection of complex filtering conditions that can be applied to remediation target data.</p>
|
|
8956
|
-
* @public
|
|
8957
|
-
*/
|
|
8958
|
-
CompositeFilters?: RemediationCompositeFilter[] | undefined;
|
|
8959
|
-
}
|
|
8960
|
-
/**
|
|
8961
|
-
* @public
|
|
8962
|
-
*/
|
|
8963
|
-
export interface GetRemediationsV2Request {
|
|
8964
|
-
/**
|
|
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>
|
|
8968
|
-
* @public
|
|
8969
|
-
*/
|
|
8970
|
-
TargetUid?: string | undefined;
|
|
8971
|
-
/**
|
|
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>
|
|
8976
|
-
* @public
|
|
8977
|
-
*/
|
|
8978
|
-
MetadataUid?: string | undefined;
|
|
8979
|
-
/**
|
|
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>
|
|
8982
|
-
* @public
|
|
8983
|
-
*/
|
|
8984
|
-
Filters?: RemediationFilters | undefined;
|
|
8985
|
-
/**
|
|
8986
|
-
* <p>Specifies whether to show remediation target guidance.</p>
|
|
8987
|
-
* @public
|
|
8988
|
-
*/
|
|
8989
|
-
ShowGuidance?: boolean | undefined;
|
|
8990
|
-
/**
|
|
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>
|
|
8996
|
-
* @public
|
|
8997
|
-
*/
|
|
8998
|
-
GuidanceFormat?: GuidanceFormat | undefined;
|
|
8999
|
-
/**
|
|
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>
|
|
9002
|
-
* @public
|
|
9003
|
-
*/
|
|
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;
|
|
9013
|
-
}
|
|
9014
|
-
/**
|
|
9015
|
-
* <p>The context behind the remediation target's existence and guidance.</p>
|
|
9016
|
-
* @public
|
|
9017
|
-
*/
|
|
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;
|
|
9029
|
-
/**
|
|
9030
|
-
* <p>The scope of the resources affected by the resolution of the remediation target.</p>
|
|
9031
|
-
* @public
|
|
9032
|
-
*/
|
|
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;
|
|
9039
|
-
}
|
|
9040
|
-
/**
|
|
9041
|
-
* <p>Provided remediation guidance examples in different formats that can be run for remediating the target.</p>
|
|
9042
|
-
* @public
|
|
9043
|
-
*/
|
|
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;
|
|
9060
|
-
/**
|
|
9061
|
-
* <p>A Terraform snippet version of the example.</p>
|
|
9062
|
-
* @public
|
|
9063
|
-
*/
|
|
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;
|
|
9085
|
-
}
|
|
9086
|
-
/**
|
|
9087
|
-
* <p>The metadata of the remediation guidance.</p>
|
|
9088
|
-
* @public
|
|
9089
|
-
*/
|
|
9090
|
-
export interface RemediationGuidanceMetadata {
|
|
9091
|
-
/**
|
|
9092
|
-
* <p>The resource type of the remediation target.</p>
|
|
9093
|
-
* @public
|
|
9094
|
-
*/
|
|
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;
|
|
9137
|
-
/**
|
|
9138
|
-
* <p>Verification status of the guidance.</p>
|
|
9139
|
-
* @public
|
|
9140
|
-
*/
|
|
9141
|
-
VerificationStatus?: string | undefined;
|
|
9142
|
-
}
|
|
9143
|
-
/**
|
|
9144
|
-
* <p>A parameter used in running the guidance steps.</p>
|
|
9145
|
-
* @public
|
|
9146
|
-
*/
|
|
9147
|
-
export interface RemediationParameter {
|
|
9148
|
-
/**
|
|
9149
|
-
* <p>The name of the parameter.</p>
|
|
9150
|
-
* @public
|
|
9151
|
-
*/
|
|
9152
|
-
Name: string | undefined;
|
|
9153
|
-
/**
|
|
9154
|
-
* <p>The type of the parameter.</p>
|
|
9155
|
-
* @public
|
|
9156
|
-
*/
|
|
9157
|
-
Type: string | undefined;
|
|
9158
|
-
/**
|
|
9159
|
-
* <p>A description of the parameter.</p>
|
|
9160
|
-
* @public
|
|
9161
|
-
*/
|
|
9162
|
-
Description: string | undefined;
|
|
9163
|
-
/**
|
|
9164
|
-
* <p>Specifies whether the parameter is required for running the guidance steps.</p>
|
|
9165
|
-
* @public
|
|
9166
|
-
*/
|
|
9167
|
-
Required?: boolean | undefined;
|
|
9168
|
-
}
|
|
9169
|
-
/**
|
|
9170
|
-
* <p>A step in the remediation guidance.</p>
|
|
9171
|
-
* @public
|
|
9172
|
-
*/
|
|
9173
|
-
export interface RemediationStep {
|
|
9174
|
-
/**
|
|
9175
|
-
* <p>The phase of the remediation plan that this step belongs to (for example, <code>FIX</code>).</p>
|
|
9176
|
-
* @public
|
|
9177
|
-
*/
|
|
9178
|
-
Phase: string | undefined;
|
|
9179
|
-
/**
|
|
9180
|
-
* <p>A description of what the step does.</p>
|
|
9181
|
-
* @public
|
|
9182
|
-
*/
|
|
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;
|
|
9194
|
-
/**
|
|
9195
|
-
* <p>The logic behind the existence of this step.</p>
|
|
9196
|
-
* @public
|
|
9197
|
-
*/
|
|
9198
|
-
Logic?: string | undefined;
|
|
9199
|
-
/**
|
|
9200
|
-
* <p>The inverse of the step, to be used if the step needs to be rolled back.</p>
|
|
9201
|
-
* @public
|
|
9202
|
-
*/
|
|
9203
|
-
Inverse?: string | undefined;
|
|
9204
|
-
/**
|
|
9205
|
-
* <p>The action to take after the step to verify its success.</p>
|
|
9206
|
-
* @public
|
|
9207
|
-
*/
|
|
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 {
|
|
9216
|
-
/**
|
|
9217
|
-
* <p>An array of the parameters used in running the steps provided.</p>
|
|
9218
|
-
* @public
|
|
9219
|
-
*/
|
|
9220
|
-
Parameters?: RemediationParameter[] | undefined;
|
|
9221
|
-
/**
|
|
9222
|
-
* <p>An array of ordered steps for resolving the remediation targets.</p>
|
|
9223
|
-
* @public
|
|
9224
|
-
*/
|
|
9225
|
-
Steps?: RemediationStep[] | undefined;
|
|
9226
|
-
/**
|
|
9227
|
-
* <p>The expected end state of the associated resources after completion of the steps.</p>
|
|
9228
|
-
* @public
|
|
9229
|
-
*/
|
|
9230
|
-
ExpectedEndState?: string | undefined;
|
|
9231
|
-
/**
|
|
9232
|
-
* <p>An array of required permissions to run the steps.</p>
|
|
9233
|
-
* @public
|
|
9234
|
-
*/
|
|
9235
|
-
RequiredPermissions?: string[] | undefined;
|
|
9236
|
-
}
|
|
9237
|
-
/**
|
|
9238
|
-
* <p>A remediation guidebook outlining guidance in resolving the remediation target.</p>
|
|
9239
|
-
* @public
|
|
9240
|
-
*/
|
|
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;
|
|
9257
|
-
/**
|
|
9258
|
-
* <p>The context behind the remediation target's existence and guidance.</p>
|
|
9259
|
-
* @public
|
|
9260
|
-
*/
|
|
9261
|
-
Context: RemediationGuidanceContext | undefined;
|
|
9262
|
-
/**
|
|
9263
|
-
* <p>The specification of the remediation target guidance. This outlines required resource parameters
|
|
9264
|
-
* and permissions, remediation steps, and the end state.</p>
|
|
9265
|
-
* @public
|
|
9266
|
-
*/
|
|
9267
|
-
Specification: RemediationGuidanceSpecification | undefined;
|
|
9268
|
-
/**
|
|
9269
|
-
* <p>Provided remediation guidance examples in different formats that can be run for remediating the target.</p>
|
|
9270
|
-
* @public
|
|
9271
|
-
*/
|
|
9272
|
-
Examples: RemediationGuidanceExamples | undefined;
|
|
9273
|
-
/**
|
|
9274
|
-
* <p>The metadata of the remediation guidance.</p>
|
|
9275
|
-
* @public
|
|
9276
|
-
*/
|
|
9277
|
-
Metadata: RemediationGuidanceMetadata | undefined;
|
|
9278
|
-
}
|