@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
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetExportJobV2Request } from "../models/models_2";
|
|
3
|
+
import type { GetExportJobV2Response } from "../models/models_3";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export type { __MetadataBearer };
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*
|
|
11
|
+
* The input for {@link GetExportJobV2Command}.
|
|
12
|
+
*/
|
|
13
|
+
export interface GetExportJobV2CommandInput extends GetExportJobV2Request {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*
|
|
18
|
+
* The output of {@link GetExportJobV2Command}.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetExportJobV2CommandOutput extends GetExportJobV2Response, __MetadataBearer {
|
|
21
|
+
}
|
|
22
|
+
declare const GetExportJobV2Command_base: {
|
|
23
|
+
new (input: GetExportJobV2CommandInput): import("@smithy/core/client").CommandImpl<GetExportJobV2CommandInput, GetExportJobV2CommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
new (input: GetExportJobV2CommandInput): import("@smithy/core/client").CommandImpl<GetExportJobV2CommandInput, GetExportJobV2CommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* <p>Returns the details of a single findings export job, including its current <code>Status</code>, the <code>Destination</code> it writes to, the <code>OutputConfiguration</code> it was started with, and its <code>StartedAt</code> and <code>EndedAt</code> timestamps. Use this operation to poll an export job that you started with <code>StartExportJobV2</code> until it reaches a terminal state (<code>SUCCEEDED</code>, <code>FAILED</code>, or <code>CANCELLED</code>).</p>
|
|
29
|
+
* <p>If the job failed, the response includes a <code>FailureCode</code> and <code>FailureMessage</code> that describe the reason. Input values such as <code>Scopes</code> and <code>Filters</code> are echoed back as they were submitted, with relative date ranges returned unresolved. If no export job matches the <code>ExportJobId</code> that you provide, this operation returns a <code>ResourceNotFoundException</code>.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { SecurityHubClient, GetExportJobV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
34
|
+
* // const { SecurityHubClient, GetExportJobV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
35
|
+
* // import type { SecurityHubClientConfig } from "@aws-sdk/client-securityhub";
|
|
36
|
+
* const config = {}; // type is SecurityHubClientConfig
|
|
37
|
+
* const client = new SecurityHubClient(config);
|
|
38
|
+
* const input = { // GetExportJobV2Request
|
|
39
|
+
* ExportJobId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetExportJobV2Command(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetExportJobV2Response
|
|
44
|
+
* // ExportJobId: "STRING_VALUE", // required
|
|
45
|
+
* // Name: "STRING_VALUE",
|
|
46
|
+
* // Status: "RUNNING" || "SUCCEEDED" || "FAILED" || "CANCELLED", // required
|
|
47
|
+
* // DataType: "FINDINGS", // required
|
|
48
|
+
* // OutputConfiguration: { // ExportOutput Union: only one key present
|
|
49
|
+
* // Findings: { // FindingsOutput
|
|
50
|
+
* // Format: "CSV" || "OCSF_JSON", // required
|
|
51
|
+
* // Filters: { // OcsfFindingFilters
|
|
52
|
+
* // CompositeFilters: [ // CompositeFilterList
|
|
53
|
+
* // { // CompositeFilter
|
|
54
|
+
* // StringFilters: [ // OcsfStringFilterList
|
|
55
|
+
* // { // OcsfStringFilter
|
|
56
|
+
* // FieldName: "metadata.uid" || "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.traits.category" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.name" || "resources.owner.account.uid" || "resources.owner.org.uid" || "resources.owner.account.name" || "resources.provider" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name" || "databucket.encryption_details.algorithm" || "databucket.encryption_details.key_uid" || "databucket.file.data_classifications.classifier_details.type" || "evidences.actor.user.account.uid" || "evidences.api.operation" || "evidences.api.response.error_message" || "evidences.api.service.name" || "evidences.connection_info.direction" || "evidences.connection_info.protocol_name" || "evidences.dst_endpoint.autonomous_system.name" || "evidences.dst_endpoint.location.city" || "evidences.dst_endpoint.location.country" || "evidences.src_endpoint.autonomous_system.name" || "evidences.src_endpoint.hostname" || "evidences.src_endpoint.location.city" || "evidences.src_endpoint.location.country" || "finding_info.analytic.name" || "malware.name" || "malware_scan_info.uid" || "malware.severity" || "resources.cloud_function.layers.uid_alt" || "resources.cloud_function.runtime" || "resources.cloud_function.user.uid" || "resources.device.encryption_details.key_uid" || "resources.device.image.uid" || "resources.image.architecture" || "resources.image.registry_uid" || "resources.image.repository_name" || "resources.image.uid" || "resources.subnet_info.uid" || "resources.vpc_uid" || "vulnerabilities.affected_code.file.path" || "vulnerabilities.affected_packages.name" || "vulnerabilities.cve.epss.score" || "vulnerabilities.cve.uid" || "vulnerabilities.related_vulnerabilities" || "cloud.account.name" || "vendor_attributes.severity",
|
|
57
|
+
* // Filter: { // StringFilter
|
|
58
|
+
* // Value: "STRING_VALUE",
|
|
59
|
+
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
60
|
+
* // },
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // DateFilters: [ // OcsfDateFilterList
|
|
64
|
+
* // { // OcsfDateFilter
|
|
65
|
+
* // FieldName: "finding_info.created_time_dt" || "finding_info.first_seen_time_dt" || "finding_info.last_seen_time_dt" || "finding_info.modified_time_dt" || "resources.image.created_time_dt" || "resources.image.last_used_time_dt" || "resources.modified_time_dt",
|
|
66
|
+
* // Filter: { // DateFilter
|
|
67
|
+
* // Start: "STRING_VALUE",
|
|
68
|
+
* // End: "STRING_VALUE",
|
|
69
|
+
* // DateRange: { // DateRange
|
|
70
|
+
* // Value: Number("int"),
|
|
71
|
+
* // Unit: "DAYS",
|
|
72
|
+
* // Comparison: "WITHIN" || "OLDER_THAN",
|
|
73
|
+
* // },
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // BooleanFilters: [ // OcsfBooleanFilterList
|
|
78
|
+
* // { // OcsfBooleanFilter
|
|
79
|
+
* // FieldName: "compliance.assessments.meets_criteria" || "vulnerabilities.is_exploit_available" || "vulnerabilities.is_fix_available",
|
|
80
|
+
* // Filter: { // BooleanFilter
|
|
81
|
+
* // Value: true || false,
|
|
82
|
+
* // },
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // NumberFilters: [ // OcsfNumberFilterList
|
|
86
|
+
* // { // OcsfNumberFilter
|
|
87
|
+
* // FieldName: "activity_id" || "compliance.status_id" || "confidence_score" || "severity_id" || "status_id" || "finding_info.related_events_count" || "evidences.api.response.code" || "evidences.dst_endpoint.autonomous_system.number" || "evidences.dst_endpoint.port" || "evidences.src_endpoint.autonomous_system.number" || "evidences.src_endpoint.port" || "resources.image.in_use_count" || "vulnerabilities.cve.cvss.base_score" || "vendor_attributes.severity_id",
|
|
88
|
+
* // Filter: { // NumberFilter
|
|
89
|
+
* // Gte: Number("double"),
|
|
90
|
+
* // Lte: Number("double"),
|
|
91
|
+
* // Eq: Number("double"),
|
|
92
|
+
* // Gt: Number("double"),
|
|
93
|
+
* // Lt: Number("double"),
|
|
94
|
+
* // },
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
97
|
+
* // MapFilters: [ // OcsfMapFilterList
|
|
98
|
+
* // { // OcsfMapFilter
|
|
99
|
+
* // FieldName: "resources.tags" || "compliance.control_parameters" || "databucket.tags" || "finding_info.tags",
|
|
100
|
+
* // Filter: { // MapFilter
|
|
101
|
+
* // Key: "STRING_VALUE",
|
|
102
|
+
* // Value: "STRING_VALUE",
|
|
103
|
+
* // Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
104
|
+
* // },
|
|
105
|
+
* // },
|
|
106
|
+
* // ],
|
|
107
|
+
* // IpFilters: [ // OcsfIpFilterList
|
|
108
|
+
* // { // OcsfIpFilter
|
|
109
|
+
* // FieldName: "evidences.dst_endpoint.ip" || "evidences.src_endpoint.ip",
|
|
110
|
+
* // Filter: { // IpFilter
|
|
111
|
+
* // Cidr: "STRING_VALUE",
|
|
112
|
+
* // },
|
|
113
|
+
* // },
|
|
114
|
+
* // ],
|
|
115
|
+
* // NestedCompositeFilters: [
|
|
116
|
+
* // {
|
|
117
|
+
* // StringFilters: [
|
|
118
|
+
* // {
|
|
119
|
+
* // FieldName: "metadata.uid" || "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.traits.category" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.name" || "resources.owner.account.uid" || "resources.owner.org.uid" || "resources.owner.account.name" || "resources.provider" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name" || "databucket.encryption_details.algorithm" || "databucket.encryption_details.key_uid" || "databucket.file.data_classifications.classifier_details.type" || "evidences.actor.user.account.uid" || "evidences.api.operation" || "evidences.api.response.error_message" || "evidences.api.service.name" || "evidences.connection_info.direction" || "evidences.connection_info.protocol_name" || "evidences.dst_endpoint.autonomous_system.name" || "evidences.dst_endpoint.location.city" || "evidences.dst_endpoint.location.country" || "evidences.src_endpoint.autonomous_system.name" || "evidences.src_endpoint.hostname" || "evidences.src_endpoint.location.city" || "evidences.src_endpoint.location.country" || "finding_info.analytic.name" || "malware.name" || "malware_scan_info.uid" || "malware.severity" || "resources.cloud_function.layers.uid_alt" || "resources.cloud_function.runtime" || "resources.cloud_function.user.uid" || "resources.device.encryption_details.key_uid" || "resources.device.image.uid" || "resources.image.architecture" || "resources.image.registry_uid" || "resources.image.repository_name" || "resources.image.uid" || "resources.subnet_info.uid" || "resources.vpc_uid" || "vulnerabilities.affected_code.file.path" || "vulnerabilities.affected_packages.name" || "vulnerabilities.cve.epss.score" || "vulnerabilities.cve.uid" || "vulnerabilities.related_vulnerabilities" || "cloud.account.name" || "vendor_attributes.severity",
|
|
120
|
+
* // Filter: {
|
|
121
|
+
* // Value: "STRING_VALUE",
|
|
122
|
+
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
123
|
+
* // },
|
|
124
|
+
* // },
|
|
125
|
+
* // ],
|
|
126
|
+
* // DateFilters: [
|
|
127
|
+
* // {
|
|
128
|
+
* // FieldName: "finding_info.created_time_dt" || "finding_info.first_seen_time_dt" || "finding_info.last_seen_time_dt" || "finding_info.modified_time_dt" || "resources.image.created_time_dt" || "resources.image.last_used_time_dt" || "resources.modified_time_dt",
|
|
129
|
+
* // Filter: {
|
|
130
|
+
* // Start: "STRING_VALUE",
|
|
131
|
+
* // End: "STRING_VALUE",
|
|
132
|
+
* // DateRange: {
|
|
133
|
+
* // Value: Number("int"),
|
|
134
|
+
* // Unit: "DAYS",
|
|
135
|
+
* // Comparison: "WITHIN" || "OLDER_THAN",
|
|
136
|
+
* // },
|
|
137
|
+
* // },
|
|
138
|
+
* // },
|
|
139
|
+
* // ],
|
|
140
|
+
* // BooleanFilters: [
|
|
141
|
+
* // {
|
|
142
|
+
* // FieldName: "compliance.assessments.meets_criteria" || "vulnerabilities.is_exploit_available" || "vulnerabilities.is_fix_available",
|
|
143
|
+
* // Filter: {
|
|
144
|
+
* // Value: true || false,
|
|
145
|
+
* // },
|
|
146
|
+
* // },
|
|
147
|
+
* // ],
|
|
148
|
+
* // NumberFilters: [
|
|
149
|
+
* // {
|
|
150
|
+
* // FieldName: "activity_id" || "compliance.status_id" || "confidence_score" || "severity_id" || "status_id" || "finding_info.related_events_count" || "evidences.api.response.code" || "evidences.dst_endpoint.autonomous_system.number" || "evidences.dst_endpoint.port" || "evidences.src_endpoint.autonomous_system.number" || "evidences.src_endpoint.port" || "resources.image.in_use_count" || "vulnerabilities.cve.cvss.base_score" || "vendor_attributes.severity_id",
|
|
151
|
+
* // Filter: {
|
|
152
|
+
* // Gte: Number("double"),
|
|
153
|
+
* // Lte: Number("double"),
|
|
154
|
+
* // Eq: Number("double"),
|
|
155
|
+
* // Gt: Number("double"),
|
|
156
|
+
* // Lt: Number("double"),
|
|
157
|
+
* // },
|
|
158
|
+
* // },
|
|
159
|
+
* // ],
|
|
160
|
+
* // MapFilters: [
|
|
161
|
+
* // {
|
|
162
|
+
* // FieldName: "resources.tags" || "compliance.control_parameters" || "databucket.tags" || "finding_info.tags",
|
|
163
|
+
* // Filter: {
|
|
164
|
+
* // Key: "STRING_VALUE",
|
|
165
|
+
* // Value: "STRING_VALUE",
|
|
166
|
+
* // Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
167
|
+
* // },
|
|
168
|
+
* // },
|
|
169
|
+
* // ],
|
|
170
|
+
* // IpFilters: [
|
|
171
|
+
* // {
|
|
172
|
+
* // FieldName: "evidences.dst_endpoint.ip" || "evidences.src_endpoint.ip",
|
|
173
|
+
* // Filter: {
|
|
174
|
+
* // Cidr: "STRING_VALUE",
|
|
175
|
+
* // },
|
|
176
|
+
* // },
|
|
177
|
+
* // ],
|
|
178
|
+
* // NestedCompositeFilters: "<CompositeFilterList>",
|
|
179
|
+
* // Operator: "AND" || "OR",
|
|
180
|
+
* // },
|
|
181
|
+
* // ],
|
|
182
|
+
* // Operator: "AND" || "OR",
|
|
183
|
+
* // },
|
|
184
|
+
* // ],
|
|
185
|
+
* // CompositeOperator: "AND" || "OR",
|
|
186
|
+
* // },
|
|
187
|
+
* // SelectedFields: [ // FindingsSelectedFieldList
|
|
188
|
+
* // "metadata.uid" || "activity_name" || "cloud.account.name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.traits.category" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.feature.uid" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.name" || "resources.owner.account.uid" || "resources.owner.org.uid" || "resources.owner.account.name" || "resources.provider" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name" || "databucket.encryption_details.algorithm" || "databucket.encryption_details.key_uid" || "databucket.file.data_classifications.classifier_details.type" || "evidences.actor.user.account.uid" || "evidences.api.operation" || "evidences.api.response.error_message" || "evidences.api.service.name" || "evidences.connection_info.direction" || "evidences.connection_info.protocol_name" || "evidences.dst_endpoint.autonomous_system.name" || "evidences.dst_endpoint.location.city" || "evidences.dst_endpoint.location.country" || "evidences.src_endpoint.autonomous_system.name" || "evidences.src_endpoint.hostname" || "evidences.src_endpoint.location.city" || "evidences.src_endpoint.location.country" || "finding_info.analytic.name" || "malware.name" || "malware_scan_info.uid" || "malware.severity" || "resources.cloud_function.layers.uid_alt" || "resources.cloud_function.runtime" || "resources.cloud_function.user.uid" || "resources.device.encryption_details.key_uid" || "resources.device.image.uid" || "resources.image.architecture" || "resources.image.registry_uid" || "resources.image.repository_name" || "resources.image.uid" || "resources.subnet_info.uid" || "resources.vpc_uid" || "vulnerabilities.affected_code.file.path" || "vulnerabilities.affected_packages.name" || "vulnerabilities.cve.cvss.vendor_name" || "vulnerabilities.cve.cvss.version" || "vulnerabilities.cve.epss.score" || "vulnerabilities.cve.uid" || "vulnerabilities.related_vulnerabilities" || "vendor_attributes.severity" || "activity_id" || "compliance.status_id" || "confidence_score" || "severity_id" || "status_id" || "finding_info.related_events_count" || "evidences.api.response.code" || "evidences.dst_endpoint.autonomous_system.number" || "evidences.dst_endpoint.port" || "evidences.src_endpoint.autonomous_system.number" || "evidences.src_endpoint.port" || "resources.image.in_use_count" || "vulnerabilities.cve.cvss.base_score" || "vendor_attributes.severity_id" || "finding_info.created_time_dt" || "finding_info.first_seen_time_dt" || "finding_info.last_seen_time_dt" || "finding_info.modified_time_dt" || "resources.image.created_time_dt" || "resources.image.last_used_time_dt" || "resources.modified_time_dt" || "compliance.assessments.meets_criteria" || "vulnerabilities.is_exploit_available" || "vulnerabilities.is_fix_available" || "resources.tags" || "compliance.control_parameters" || "databucket.tags" || "finding_info.tags" || "evidences.dst_endpoint.ip" || "evidences.src_endpoint.ip",
|
|
189
|
+
* // ],
|
|
190
|
+
* // },
|
|
191
|
+
* // },
|
|
192
|
+
* // Scopes: { // ExportScopes
|
|
193
|
+
* // AwsOrganizations: [ // AwsOrganizationScopeList
|
|
194
|
+
* // { // AwsOrganizationScope
|
|
195
|
+
* // OrganizationId: "STRING_VALUE",
|
|
196
|
+
* // OrganizationalUnitId: "STRING_VALUE",
|
|
197
|
+
* // },
|
|
198
|
+
* // ],
|
|
199
|
+
* // },
|
|
200
|
+
* // Destination: { // ExportDestination Union: only one key present
|
|
201
|
+
* // S3: { // S3ExportDestination
|
|
202
|
+
* // BucketArn: "STRING_VALUE", // required
|
|
203
|
+
* // KmsKeyArn: "STRING_VALUE", // required
|
|
204
|
+
* // ObjectPrefix: "STRING_VALUE",
|
|
205
|
+
* // },
|
|
206
|
+
* // },
|
|
207
|
+
* // FailureCode: "ACCESS_DENIED" || "RESOURCE_NOT_FOUND" || "INTERNAL_ERROR",
|
|
208
|
+
* // FailureMessage: "STRING_VALUE",
|
|
209
|
+
* // StartedAt: new Date("TIMESTAMP"), // required
|
|
210
|
+
* // EndedAt: new Date("TIMESTAMP"),
|
|
211
|
+
* // };
|
|
212
|
+
*
|
|
213
|
+
* ```
|
|
214
|
+
*
|
|
215
|
+
* @param GetExportJobV2CommandInput - {@link GetExportJobV2CommandInput}
|
|
216
|
+
* @returns {@link GetExportJobV2CommandOutput}
|
|
217
|
+
* @see {@link GetExportJobV2CommandInput} for command's `input` shape.
|
|
218
|
+
* @see {@link GetExportJobV2CommandOutput} for command's `response` shape.
|
|
219
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
220
|
+
*
|
|
221
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
222
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
223
|
+
*
|
|
224
|
+
* @throws {@link InternalServerException} (server fault)
|
|
225
|
+
* <p>
|
|
226
|
+
* The request has failed due to an internal failure of the service.
|
|
227
|
+
* </p>
|
|
228
|
+
*
|
|
229
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
230
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
231
|
+
*
|
|
232
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
233
|
+
* <p>
|
|
234
|
+
* The limit on the number of requests per second was exceeded.
|
|
235
|
+
* </p>
|
|
236
|
+
*
|
|
237
|
+
* @throws {@link ValidationException} (client fault)
|
|
238
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
239
|
+
*
|
|
240
|
+
* @throws {@link SecurityHubServiceException}
|
|
241
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
242
|
+
*
|
|
243
|
+
*
|
|
244
|
+
* @example Example – Getting the details of a failed export job
|
|
245
|
+
* ```javascript
|
|
246
|
+
* // The following example retrieves an export job that failed because Security Hub couldn't write to the destination. The FailureCode and FailureMessage explain the cause.
|
|
247
|
+
* const input = {
|
|
248
|
+
* ExportJobId: "f6e5d4c3b2a1"
|
|
249
|
+
* };
|
|
250
|
+
* const command = new GetExportJobV2Command(input);
|
|
251
|
+
* const response = await client.send(command);
|
|
252
|
+
* /* response is
|
|
253
|
+
* {
|
|
254
|
+
* DataType: "FINDINGS",
|
|
255
|
+
* Destination: {
|
|
256
|
+
* S3: {
|
|
257
|
+
* BucketArn: "arn:aws:s3:::amzn-s3-demo-bucket",
|
|
258
|
+
* KmsKeyArn: "arn:aws:kms:aa-example-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
|
|
259
|
+
* }
|
|
260
|
+
* },
|
|
261
|
+
* EndedAt: "2026-03-27T18:05:03Z",
|
|
262
|
+
* ExportJobId: "f6e5d4c3b2a1",
|
|
263
|
+
* FailureCode: "ACCESS_DENIED",
|
|
264
|
+
* FailureMessage: "Security Hub could not write to the destination bucket. Verify the bucket policy and KMS key policy.",
|
|
265
|
+
* OutputConfiguration: {
|
|
266
|
+
* Findings: {
|
|
267
|
+
* Filters: {
|
|
268
|
+
* CompositeFilters: [
|
|
269
|
+
* {
|
|
270
|
+
* DateFilters: [
|
|
271
|
+
* {
|
|
272
|
+
* FieldName: "finding_info.last_seen_time_dt",
|
|
273
|
+
* Filter: {
|
|
274
|
+
* DateRange: {
|
|
275
|
+
* Comparison: "WITHIN",
|
|
276
|
+
* Unit: "DAYS",
|
|
277
|
+
* Value: 30
|
|
278
|
+
* }
|
|
279
|
+
* }
|
|
280
|
+
* }
|
|
281
|
+
* ],
|
|
282
|
+
* Operator: "AND"
|
|
283
|
+
* }
|
|
284
|
+
* ],
|
|
285
|
+
* CompositeOperator: "AND"
|
|
286
|
+
* },
|
|
287
|
+
* Format: "OCSF_JSON"
|
|
288
|
+
* }
|
|
289
|
+
* },
|
|
290
|
+
* Scopes: {
|
|
291
|
+
* AwsOrganizations: [
|
|
292
|
+
* {
|
|
293
|
+
* OrganizationalUnitId: "ou-1234-a1b2c3d4"
|
|
294
|
+
* }
|
|
295
|
+
* ]
|
|
296
|
+
* },
|
|
297
|
+
* StartedAt: "2026-03-27T18:04:11Z",
|
|
298
|
+
* Status: "FAILED"
|
|
299
|
+
* }
|
|
300
|
+
* *\/
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* @example Example – Getting the details of a completed export job
|
|
304
|
+
* ```javascript
|
|
305
|
+
* // The following example retrieves an export job that has finished successfully. The output is available in the destination bucket.
|
|
306
|
+
* const input = {
|
|
307
|
+
* ExportJobId: "a1b2c3d4e5f6"
|
|
308
|
+
* };
|
|
309
|
+
* const command = new GetExportJobV2Command(input);
|
|
310
|
+
* const response = await client.send(command);
|
|
311
|
+
* /* response is
|
|
312
|
+
* {
|
|
313
|
+
* DataType: "FINDINGS",
|
|
314
|
+
* Destination: {
|
|
315
|
+
* S3: {
|
|
316
|
+
* BucketArn: "arn:aws:s3:::amzn-s3-demo-bucket",
|
|
317
|
+
* KmsKeyArn: "arn:aws:kms:aa-example-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
318
|
+
* ObjectPrefix: "security-hub-exports/2026-Q1"
|
|
319
|
+
* }
|
|
320
|
+
* },
|
|
321
|
+
* EndedAt: "2026-03-27T18:09:52Z",
|
|
322
|
+
* ExportJobId: "a1b2c3d4e5f6",
|
|
323
|
+
* Name: "quarterly-critical-findings",
|
|
324
|
+
* OutputConfiguration: {
|
|
325
|
+
* Findings: {
|
|
326
|
+
* Filters: {
|
|
327
|
+
* CompositeFilters: [
|
|
328
|
+
* {
|
|
329
|
+
* Operator: "AND",
|
|
330
|
+
* StringFilters: [
|
|
331
|
+
* {
|
|
332
|
+
* FieldName: "severity",
|
|
333
|
+
* Filter: {
|
|
334
|
+
* Comparison: "EQUALS",
|
|
335
|
+
* Value: "Critical"
|
|
336
|
+
* }
|
|
337
|
+
* },
|
|
338
|
+
* {
|
|
339
|
+
* FieldName: "status",
|
|
340
|
+
* Filter: {
|
|
341
|
+
* Comparison: "EQUALS",
|
|
342
|
+
* Value: "New"
|
|
343
|
+
* }
|
|
344
|
+
* }
|
|
345
|
+
* ]
|
|
346
|
+
* }
|
|
347
|
+
* ],
|
|
348
|
+
* CompositeOperator: "AND"
|
|
349
|
+
* },
|
|
350
|
+
* Format: "CSV",
|
|
351
|
+
* SelectedFields: [
|
|
352
|
+
* "finding_info.title",
|
|
353
|
+
* "severity",
|
|
354
|
+
* "status",
|
|
355
|
+
* "cloud.account.uid",
|
|
356
|
+
* "resources.uid"
|
|
357
|
+
* ]
|
|
358
|
+
* }
|
|
359
|
+
* },
|
|
360
|
+
* StartedAt: "2026-03-27T18:04:11Z",
|
|
361
|
+
* Status: "SUCCEEDED"
|
|
362
|
+
* }
|
|
363
|
+
* *\/
|
|
364
|
+
* ```
|
|
365
|
+
*
|
|
366
|
+
* @public
|
|
367
|
+
*/
|
|
368
|
+
export declare class GetExportJobV2Command extends GetExportJobV2Command_base {
|
|
369
|
+
/** @internal type navigation helper, not in runtime. */
|
|
370
|
+
protected static __types: {
|
|
371
|
+
api: {
|
|
372
|
+
input: GetExportJobV2Request;
|
|
373
|
+
output: GetExportJobV2Response;
|
|
374
|
+
};
|
|
375
|
+
sdk: {
|
|
376
|
+
input: GetExportJobV2CommandInput;
|
|
377
|
+
output: GetExportJobV2CommandOutput;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { GetRemediationsV2Request } from "../models/
|
|
3
|
-
import type { GetRemediationsV2Response } from "../models/models_3";
|
|
2
|
+
import type { GetRemediationsV2Request, GetRemediationsV2Response } from "../models/models_3";
|
|
4
3
|
/**
|
|
5
4
|
* @public
|
|
6
5
|
*/
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListExportJobsV2Request, ListExportJobsV2Response } from "../models/models_3";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListExportJobsV2Command}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListExportJobsV2CommandInput extends ListExportJobsV2Request {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListExportJobsV2Command}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListExportJobsV2CommandOutput extends ListExportJobsV2Response, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListExportJobsV2Command_base: {
|
|
22
|
+
new (input: ListExportJobsV2CommandInput): import("@smithy/core/client").CommandImpl<ListExportJobsV2CommandInput, ListExportJobsV2CommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListExportJobsV2CommandInput]): import("@smithy/core/client").CommandImpl<ListExportJobsV2CommandInput, ListExportJobsV2CommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns the findings export jobs in your account as a paginated list of <code>ExportSummary</code> objects. You can filter the results by job <code>Status</code> or <code>DataType</code>.</p>
|
|
28
|
+
* <p>To page through the results, use the <code>MaxResults</code> and <code>NextToken</code> parameters. If the response includes a <code>NextToken</code> value, pass it in a subsequent request to retrieve the next page of results.</p>
|
|
29
|
+
* <p>Each <code>ExportSummary</code> reports the output <code>Format</code> of the job but not its full <code>OutputConfiguration</code>. To retrieve the filters and selected fields that a job was started with, call <code>GetExportJobV2</code>.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { SecurityHubClient, ListExportJobsV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
34
|
+
* // const { SecurityHubClient, ListExportJobsV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
35
|
+
* // import type { SecurityHubClientConfig } from "@aws-sdk/client-securityhub";
|
|
36
|
+
* const config = {}; // type is SecurityHubClientConfig
|
|
37
|
+
* const client = new SecurityHubClient(config);
|
|
38
|
+
* const input = { // ListExportJobsV2Request
|
|
39
|
+
* Status: "RUNNING" || "SUCCEEDED" || "FAILED" || "CANCELLED",
|
|
40
|
+
* DataType: "FINDINGS",
|
|
41
|
+
* MaxResults: Number("int"),
|
|
42
|
+
* NextToken: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new ListExportJobsV2Command(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // ListExportJobsV2Response
|
|
47
|
+
* // Items: [ // ExportSummaryList // required
|
|
48
|
+
* // { // ExportSummary
|
|
49
|
+
* // ExportJobId: "STRING_VALUE", // required
|
|
50
|
+
* // Name: "STRING_VALUE",
|
|
51
|
+
* // Status: "RUNNING" || "SUCCEEDED" || "FAILED" || "CANCELLED", // required
|
|
52
|
+
* // DataType: "FINDINGS", // required
|
|
53
|
+
* // OutputConfiguration: { // ExportOutputSummary Union: only one key present
|
|
54
|
+
* // Findings: { // FindingsOutputSummary
|
|
55
|
+
* // Format: "CSV" || "OCSF_JSON", // required
|
|
56
|
+
* // },
|
|
57
|
+
* // },
|
|
58
|
+
* // Scopes: { // ExportScopes
|
|
59
|
+
* // AwsOrganizations: [ // AwsOrganizationScopeList
|
|
60
|
+
* // { // AwsOrganizationScope
|
|
61
|
+
* // OrganizationId: "STRING_VALUE",
|
|
62
|
+
* // OrganizationalUnitId: "STRING_VALUE",
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // },
|
|
66
|
+
* // Destination: { // ExportDestination Union: only one key present
|
|
67
|
+
* // S3: { // S3ExportDestination
|
|
68
|
+
* // BucketArn: "STRING_VALUE", // required
|
|
69
|
+
* // KmsKeyArn: "STRING_VALUE", // required
|
|
70
|
+
* // ObjectPrefix: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // },
|
|
73
|
+
* // FailureCode: "ACCESS_DENIED" || "RESOURCE_NOT_FOUND" || "INTERNAL_ERROR",
|
|
74
|
+
* // FailureMessage: "STRING_VALUE",
|
|
75
|
+
* // StartedAt: new Date("TIMESTAMP"), // required
|
|
76
|
+
* // EndedAt: new Date("TIMESTAMP"),
|
|
77
|
+
* // },
|
|
78
|
+
* // ],
|
|
79
|
+
* // NextToken: "STRING_VALUE",
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @param ListExportJobsV2CommandInput - {@link ListExportJobsV2CommandInput}
|
|
85
|
+
* @returns {@link ListExportJobsV2CommandOutput}
|
|
86
|
+
* @see {@link ListExportJobsV2CommandInput} for command's `input` shape.
|
|
87
|
+
* @see {@link ListExportJobsV2CommandOutput} for command's `response` shape.
|
|
88
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
91
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link InternalServerException} (server fault)
|
|
94
|
+
* <p>
|
|
95
|
+
* The request has failed due to an internal failure of the service.
|
|
96
|
+
* </p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
99
|
+
* <p>
|
|
100
|
+
* The limit on the number of requests per second was exceeded.
|
|
101
|
+
* </p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ValidationException} (client fault)
|
|
104
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link SecurityHubServiceException}
|
|
107
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* @example Example – Listing successful findings export jobs
|
|
111
|
+
* ```javascript
|
|
112
|
+
* // The following example lists the findings export jobs in the account that have succeeded, returning up to 10 results per page.
|
|
113
|
+
* const input = {
|
|
114
|
+
* DataType: "FINDINGS",
|
|
115
|
+
* MaxResults: 10,
|
|
116
|
+
* Status: "SUCCEEDED"
|
|
117
|
+
* };
|
|
118
|
+
* const command = new ListExportJobsV2Command(input);
|
|
119
|
+
* const response = await client.send(command);
|
|
120
|
+
* /* response is
|
|
121
|
+
* {
|
|
122
|
+
* Items: [
|
|
123
|
+
* {
|
|
124
|
+
* DataType: "FINDINGS",
|
|
125
|
+
* Destination: {
|
|
126
|
+
* S3: {
|
|
127
|
+
* BucketArn: "arn:aws:s3:::amzn-s3-demo-bucket",
|
|
128
|
+
* KmsKeyArn: "arn:aws:kms:aa-example-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
129
|
+
* ObjectPrefix: "security-hub-exports/2026-Q1"
|
|
130
|
+
* }
|
|
131
|
+
* },
|
|
132
|
+
* EndedAt: "2026-03-27T18:09:52Z",
|
|
133
|
+
* ExportJobId: "a1b2c3d4e5f6",
|
|
134
|
+
* Name: "quarterly-critical-findings",
|
|
135
|
+
* OutputConfiguration: {
|
|
136
|
+
* Findings: {
|
|
137
|
+
* Format: "CSV"
|
|
138
|
+
* }
|
|
139
|
+
* },
|
|
140
|
+
* StartedAt: "2026-03-27T18:04:11Z",
|
|
141
|
+
* Status: "SUCCEEDED"
|
|
142
|
+
* }
|
|
143
|
+
* ],
|
|
144
|
+
* NextToken: "U2VjdXJpdHlIdWJFeGFtcGxlUGFnaW5hdGlvblRva2Vu"
|
|
145
|
+
* }
|
|
146
|
+
* *\/
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
export declare class ListExportJobsV2Command extends ListExportJobsV2Command_base {
|
|
152
|
+
/** @internal type navigation helper, not in runtime. */
|
|
153
|
+
protected static __types: {
|
|
154
|
+
api: {
|
|
155
|
+
input: ListExportJobsV2Request;
|
|
156
|
+
output: ListExportJobsV2Response;
|
|
157
|
+
};
|
|
158
|
+
sdk: {
|
|
159
|
+
input: ListExportJobsV2CommandInput;
|
|
160
|
+
output: ListExportJobsV2CommandOutput;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
}
|