@aws-sdk/client-securityhub 3.1147.0 → 3.1148.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 +305 -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/enums.js +129 -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/enums.d.ts +169 -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/enums.d.ts +135 -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 +1 -1
|
@@ -1,8 +1,339 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { AllowedOperators, AssociationStatus, AssociationType, AutoEnableStandards, CloudProviderName, ConfigurationPolicyAssociationStatus, ConnectorProviderName, ConnectorStatus, ControlFindingGenerator, ControlStatus, CspmConnectorProviderName, CspmConnectorStatus, CspmEnablementStatus, DiscoveryType, EnablementStatus, FreeTrialStatusValue, GranularityField, GroupByField, RecordState, RegionAvailabilityStatus, RemediationPriority, RemediationStatus, ResourceCategory, ResourceGroupByField, ResourcesDateField, ResourcesMapField, ResourcesNumberField, ResourcesStringField, ResourcesTrendsStringField, ResourceSubCategory, RuleStatusV2, SecurityControlProperty, SecurityControlsProvider, SecurityHubFeature, SeverityRating, SortOrder, TargetType } from "./enums";
|
|
2
|
+
import type { AllowedOperators, AssociationStatus, AssociationType, AutoEnableStandards, CloudProviderName, ConfigurationPolicyAssociationStatus, ConnectorProviderName, ConnectorStatus, ControlFindingGenerator, ControlStatus, CspmConnectorProviderName, CspmConnectorStatus, CspmEnablementStatus, DiscoveryType, EnablementStatus, ExportDataType, ExportFailureCode, ExportStatus, FindingsExportFormat, FindingsSelectableField, FreeTrialStatusValue, GranularityField, GroupByField, GuidanceFormat, RecordState, RegionAvailabilityStatus, RemediationPriority, RemediationStatus, ResourceCategory, ResourceGroupByField, ResourcesDateField, ResourcesMapField, ResourcesNumberField, ResourcesStringField, ResourcesTrendsStringField, ResourceSubCategory, RuleStatusV2, SecurityControlProperty, SecurityControlsProvider, SecurityHubFeature, SeverityRating, SortOrder, TargetType } from "./enums";
|
|
3
3
|
import type { AccountFreeTrialStatus, AdminAccount, AggregatorV2, AIDetails, AssociationFilters, AutomationRulesActionV2, AutomationRulesMetadata, AutomationRulesMetadataV2, DateFilter, MapFilter, NoteUpdate, NumberFilter, StringFilter } from "./models_0";
|
|
4
4
|
import type { AwsOrganizationScope } from "./models_1";
|
|
5
|
-
import type { AwsSecurityFindingFilters, AzureUpdateConfiguration, ConfigurationOptions, ConfigurationPolicyAssociationSummary, ConfigurationPolicySummary, ConnectorSummary, CspmConnectorSummary, CspmProviderUpdateConfiguration, ExposureFinding, FindingAggregator, FindingScopes, FindingsTrendsStringFilter, GroupByResult, Invitation, Member, OcsfBooleanFilter, OcsfDateFilter, OcsfIpFilter, OcsfMapFilter, OcsfNumberFilter, OcsfStringFilter, OrganizationConfiguration, ParameterConfiguration, Policy,
|
|
5
|
+
import type { AwsSecurityFindingFilters, AzureUpdateConfiguration, ConfigurationOptions, ConfigurationPolicyAssociationSummary, ConfigurationPolicySummary, ConnectorSummary, CspmConnectorSummary, CspmProviderUpdateConfiguration, ExportDestination, ExportScopes, ExportSummary, ExposureFinding, FindingAggregator, FindingScopes, FindingsTrendsStringFilter, GroupByResult, Invitation, Member, OcsfBooleanFilter, OcsfDateFilter, OcsfIpFilter, OcsfMapFilter, OcsfNumberFilter, OcsfStringFilter, OrganizationConfiguration, ParameterConfiguration, Policy, RemediationCompositeFilter, Result, SortCriterion, Target } from "./models_2";
|
|
6
|
+
/**
|
|
7
|
+
* <p>Contains the criteria used to filter remediation targets, such as resource type, priority,
|
|
8
|
+
* or status.</p>
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RemediationFilters {
|
|
12
|
+
/**
|
|
13
|
+
* <p>A collection of complex filtering conditions that can be applied to remediation target data.</p>
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
CompositeFilters?: RemediationCompositeFilter[] | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export interface GetRemediationsV2Request {
|
|
22
|
+
/**
|
|
23
|
+
* <p>The unique identifier (ID) of an existing remediation target to return. Returns the single
|
|
24
|
+
* matching target. You can't use <code>TargetUid</code> together with <code>MetadataUid</code>
|
|
25
|
+
* or <code>Filters</code>.</p>
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
TargetUid?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* <p>The unique identifier (ID) of the Security Hub exposure finding, found under the
|
|
31
|
+
* <code>metadata.uid</code> field of the finding. Returns the remediation targets associated with
|
|
32
|
+
* that finding. You can't use <code>MetadataUid</code> together with <code>TargetUid</code> or
|
|
33
|
+
* <code>Filters</code>.</p>
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
MetadataUid?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* <p>Filters remediation targets based on a set of criteria. You can't use <code>Filters</code>
|
|
39
|
+
* together with <code>TargetUid</code> or <code>MetadataUid</code>.</p>
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
Filters?: RemediationFilters | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* <p>Specifies whether to show remediation target guidance.</p>
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
ShowGuidance?: boolean | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* <p>The format of the remediation guidance examples to return. Valid values are <code>All</code>,
|
|
50
|
+
* <code>AwsCli</code>, <code>Cli</code>, <code>Python</code>, <code>Terraform</code>,
|
|
51
|
+
* <code>Cdk</code>, <code>CloudFormation</code>, <code>IaC</code>, and <code>Template</code>.
|
|
52
|
+
* If you don't specify a value, all formats are returned. Applies only when
|
|
53
|
+
* <code>ShowGuidance</code> is <code>true</code>.</p>
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
GuidanceFormat?: GuidanceFormat | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* <p>The maximum number of results to return. Valid range is 1-100. If you don't specify a value,
|
|
59
|
+
* the operation returns up to 25 results.</p>
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
MaxResults?: number | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* <p>The token used to paginate the remediations target list returned.
|
|
65
|
+
* On your first call to <code>GetRemediationsV2</code>, omit this parameter or set it
|
|
66
|
+
* to <code>NULL</code>. For subsequent calls, use the <code>NextToken</code> value returned in
|
|
67
|
+
* the previous response to retrieve the next page of results.</p>
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
NextToken?: string | undefined;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* <p>The context behind the remediation target's existence and guidance.</p>
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export interface RemediationGuidanceContext {
|
|
77
|
+
/**
|
|
78
|
+
* <p>Explains the cause which directly created the remediation target.</p>
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
ProblemStatement?: string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* <p>An assessment of the existing risk the remediation target creates.</p>
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
RiskAssessment?: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* <p>The scope of the resources affected by the resolution of the remediation target.</p>
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
AffectedScope?: string | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* <p>An array of prerequisite steps in resolving the remediation target.</p>
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
Prerequisites?: string[] | undefined;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* <p>Provided remediation guidance examples in different formats that can be run for remediating the target.</p>
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export interface RemediationGuidanceExamples {
|
|
103
|
+
/**
|
|
104
|
+
* <p>An CLI snippet version of the example.</p>
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
AwsCli?: string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* <p>A CLI snippet version of the example.</p>
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
Cli?: string | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* <p>A Python snippet version of the example.</p>
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
Python?: string | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* <p>A Terraform snippet version of the example.</p>
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
Terraform?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* <p>A CDK snippet version of the example.</p>
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
Cdk?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* <p>A CloudFormation snippet version of the example.</p>
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
CloudFormation?: string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* <p>An IaC snippet version of the example.</p>
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
IaC?: string | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* <p>A Template snippet version of the example.</p>
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
Template?: string | undefined;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* <p>The metadata of the remediation guidance.</p>
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export interface RemediationGuidanceMetadata {
|
|
149
|
+
/**
|
|
150
|
+
* <p>The resource type of the remediation target.</p>
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
ResourceType: string | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* <p>The exposure type of the related exposure findings.</p>
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
ExposureType: string | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* <p>The titles of traits this guidance applies to.</p>
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
TraitTitles: string[] | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* <p>The extent to which changes made in accordance with the guidance can be reversed, for example <code>Fully reversible</code>.</p>
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
Reversibility: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* <p>When the fix takes effect, for example <code>Immediate</code> or <code>Deferred</code>.</p>
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
FixEffect: string | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* <p>The risk when implementing the guidance provided.</p>
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
RiskLevel: string | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* <p>The extent to which the guidance can be automated, for example <code>Full</code>.</p>
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
AutomationLevel?: string | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* <p>Specifies whether human review is required.</p>
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
HumanReviewRequired?: boolean | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* <p>Timestamp of when the guidance was generated.</p>
|
|
191
|
+
* <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>
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
GeneratedAt?: Date | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* <p>Verification status of the guidance.</p>
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
VerificationStatus?: string | undefined;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* <p>A parameter used in running the guidance steps.</p>
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
export interface RemediationParameter {
|
|
206
|
+
/**
|
|
207
|
+
* <p>The name of the parameter.</p>
|
|
208
|
+
* @public
|
|
209
|
+
*/
|
|
210
|
+
Name: string | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* <p>The type of the parameter.</p>
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
Type: string | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* <p>A description of the parameter.</p>
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
Description: string | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* <p>Specifies whether the parameter is required for running the guidance steps.</p>
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
Required?: boolean | undefined;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* <p>A step in the remediation guidance.</p>
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
export interface RemediationStep {
|
|
232
|
+
/**
|
|
233
|
+
* <p>The phase of the remediation plan that this step belongs to (for example, <code>FIX</code>).</p>
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
Phase: string | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* <p>A description of what the step does.</p>
|
|
239
|
+
* @public
|
|
240
|
+
*/
|
|
241
|
+
Description: string | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* <p>Which service this step is performed in.</p>
|
|
244
|
+
* @public
|
|
245
|
+
*/
|
|
246
|
+
Service: string | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* <p>The action to be taken for this step.</p>
|
|
249
|
+
* @public
|
|
250
|
+
*/
|
|
251
|
+
Action: string | undefined;
|
|
252
|
+
/**
|
|
253
|
+
* <p>The logic behind the existence of this step.</p>
|
|
254
|
+
* @public
|
|
255
|
+
*/
|
|
256
|
+
Logic?: string | undefined;
|
|
257
|
+
/**
|
|
258
|
+
* <p>The inverse of the step, to be used if the step needs to be rolled back.</p>
|
|
259
|
+
* @public
|
|
260
|
+
*/
|
|
261
|
+
Inverse?: string | undefined;
|
|
262
|
+
/**
|
|
263
|
+
* <p>The action to take after the step to verify its success.</p>
|
|
264
|
+
* @public
|
|
265
|
+
*/
|
|
266
|
+
VerifyAfter?: string | undefined;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* <p>The specification of the remediation target guidance. This outlines required resource parameters
|
|
270
|
+
* and permissions, remediation steps, and the end state.</p>
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
273
|
+
export interface RemediationGuidanceSpecification {
|
|
274
|
+
/**
|
|
275
|
+
* <p>An array of the parameters used in running the steps provided.</p>
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
278
|
+
Parameters?: RemediationParameter[] | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* <p>An array of ordered steps for resolving the remediation targets.</p>
|
|
281
|
+
* @public
|
|
282
|
+
*/
|
|
283
|
+
Steps?: RemediationStep[] | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* <p>The expected end state of the associated resources after completion of the steps.</p>
|
|
286
|
+
* @public
|
|
287
|
+
*/
|
|
288
|
+
ExpectedEndState?: string | undefined;
|
|
289
|
+
/**
|
|
290
|
+
* <p>An array of required permissions to run the steps.</p>
|
|
291
|
+
* @public
|
|
292
|
+
*/
|
|
293
|
+
RequiredPermissions?: string[] | undefined;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* <p>A remediation guidebook outlining guidance in resolving the remediation target.</p>
|
|
297
|
+
* @public
|
|
298
|
+
*/
|
|
299
|
+
export interface RemediationGuidance {
|
|
300
|
+
/**
|
|
301
|
+
* <p>The name of the remediation target type.</p>
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
TargetTypeName: string | undefined;
|
|
305
|
+
/**
|
|
306
|
+
* <p>The remediation pattern of the remediation target.</p>
|
|
307
|
+
* @public
|
|
308
|
+
*/
|
|
309
|
+
Pattern: string | undefined;
|
|
310
|
+
/**
|
|
311
|
+
* <p>The guidance version.</p>
|
|
312
|
+
* @public
|
|
313
|
+
*/
|
|
314
|
+
Version: string | undefined;
|
|
315
|
+
/**
|
|
316
|
+
* <p>The context behind the remediation target's existence and guidance.</p>
|
|
317
|
+
* @public
|
|
318
|
+
*/
|
|
319
|
+
Context: RemediationGuidanceContext | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* <p>The specification of the remediation target guidance. This outlines required resource parameters
|
|
322
|
+
* and permissions, remediation steps, and the end state.</p>
|
|
323
|
+
* @public
|
|
324
|
+
*/
|
|
325
|
+
Specification: RemediationGuidanceSpecification | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* <p>Provided remediation guidance examples in different formats that can be run for remediating the target.</p>
|
|
328
|
+
* @public
|
|
329
|
+
*/
|
|
330
|
+
Examples: RemediationGuidanceExamples | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* <p>The metadata of the remediation guidance.</p>
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
Metadata: RemediationGuidanceMetadata | undefined;
|
|
336
|
+
}
|
|
6
337
|
/**
|
|
7
338
|
* <p>The outcome from resolving the remediation target.</p>
|
|
8
339
|
* @public
|
|
@@ -1147,6 +1478,48 @@ export interface ListEnabledProductsForImportResponse {
|
|
|
1147
1478
|
*/
|
|
1148
1479
|
NextToken?: string | undefined;
|
|
1149
1480
|
}
|
|
1481
|
+
/**
|
|
1482
|
+
* @public
|
|
1483
|
+
*/
|
|
1484
|
+
export interface ListExportJobsV2Request {
|
|
1485
|
+
/**
|
|
1486
|
+
* <p>Filters the results to export jobs that have the specified status.</p>
|
|
1487
|
+
* @public
|
|
1488
|
+
*/
|
|
1489
|
+
Status?: ExportStatus | undefined;
|
|
1490
|
+
/**
|
|
1491
|
+
* <p>Filters the results to export jobs that produce the specified data type.</p>
|
|
1492
|
+
* @public
|
|
1493
|
+
*/
|
|
1494
|
+
DataType?: ExportDataType | undefined;
|
|
1495
|
+
/**
|
|
1496
|
+
* <p>The maximum number of results to return in a single call. Valid range is 1–20.</p>
|
|
1497
|
+
* @public
|
|
1498
|
+
*/
|
|
1499
|
+
MaxResults?: number | undefined;
|
|
1500
|
+
/**
|
|
1501
|
+
* <p>The token required for pagination.
|
|
1502
|
+
* On your first call, set the value of this parameter to <code>NULL</code>.
|
|
1503
|
+
* For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.</p>
|
|
1504
|
+
* @public
|
|
1505
|
+
*/
|
|
1506
|
+
NextToken?: string | undefined;
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* @public
|
|
1510
|
+
*/
|
|
1511
|
+
export interface ListExportJobsV2Response {
|
|
1512
|
+
/**
|
|
1513
|
+
* <p>The export jobs that match the request, as <code>ExportSummary</code> objects.</p>
|
|
1514
|
+
* @public
|
|
1515
|
+
*/
|
|
1516
|
+
Items: ExportSummary[] | undefined;
|
|
1517
|
+
/**
|
|
1518
|
+
* <p>The pagination token to use to request the next page of results. Otherwise, this parameter is null.</p>
|
|
1519
|
+
* @public
|
|
1520
|
+
*/
|
|
1521
|
+
NextToken?: string | undefined;
|
|
1522
|
+
}
|
|
1150
1523
|
/**
|
|
1151
1524
|
* @public
|
|
1152
1525
|
*/
|
|
@@ -1799,6 +2172,16 @@ export interface StartConfigurationPolicyDisassociationRequest {
|
|
|
1799
2172
|
*/
|
|
1800
2173
|
export interface StartConfigurationPolicyDisassociationResponse {
|
|
1801
2174
|
}
|
|
2175
|
+
/**
|
|
2176
|
+
* @public
|
|
2177
|
+
*/
|
|
2178
|
+
export interface StartExportJobV2Response {
|
|
2179
|
+
/**
|
|
2180
|
+
* <p>The unique identifier of the export job that Security Hub started. Use this value with <code>GetExportJobV2</code> or <code>CancelExportJobV2</code>.</p>
|
|
2181
|
+
* @public
|
|
2182
|
+
*/
|
|
2183
|
+
ExportJobId: string | undefined;
|
|
2184
|
+
}
|
|
1802
2185
|
/**
|
|
1803
2186
|
* @public
|
|
1804
2187
|
*/
|
|
@@ -2581,6 +2964,38 @@ export declare namespace Criteria {
|
|
|
2581
2964
|
_: (name: string, value: any) => T;
|
|
2582
2965
|
}
|
|
2583
2966
|
}
|
|
2967
|
+
/**
|
|
2968
|
+
* <p>The configuration for a findings export: the output format, an optional set of filters, and the fields to include.</p>
|
|
2969
|
+
* @public
|
|
2970
|
+
*/
|
|
2971
|
+
export interface FindingsOutput {
|
|
2972
|
+
/**
|
|
2973
|
+
* <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>
|
|
2974
|
+
* @public
|
|
2975
|
+
*/
|
|
2976
|
+
Format: FindingsExportFormat | undefined;
|
|
2977
|
+
/**
|
|
2978
|
+
* <p>An optional set of OCSF finding filters that restrict which findings are exported. The filter structure is the same as the one used by <code>GetFindingsV2</code>. If you omit this member, Security Hub exports all findings available to the caller. When echoed by <code>GetExportJobV2</code>, relative date ranges are returned unresolved.</p>
|
|
2979
|
+
* @public
|
|
2980
|
+
*/
|
|
2981
|
+
Filters?: OcsfFindingFilters | undefined;
|
|
2982
|
+
/**
|
|
2983
|
+
* <p>The OCSF finding fields to include in the export, specified as OCSF field paths (for example, <code>finding_info.title</code> or <code>severity</code>). You can specify from 1 to 50 fields.</p>
|
|
2984
|
+
* <p>Whether this parameter is required depends on the value of <code>Format</code>:</p>
|
|
2985
|
+
* <ul>
|
|
2986
|
+
* <li>
|
|
2987
|
+
* <p>
|
|
2988
|
+
* <code>CSV</code> – Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns a <code>ValidationException</code>.</p>
|
|
2989
|
+
* </li>
|
|
2990
|
+
* <li>
|
|
2991
|
+
* <p>
|
|
2992
|
+
* <code>OCSF_JSON</code> – Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns a <code>ValidationException</code>.</p>
|
|
2993
|
+
* </li>
|
|
2994
|
+
* </ul>
|
|
2995
|
+
* @public
|
|
2996
|
+
*/
|
|
2997
|
+
SelectedFields?: FindingsSelectableField[] | undefined;
|
|
2998
|
+
}
|
|
2584
2999
|
/**
|
|
2585
3000
|
* @public
|
|
2586
3001
|
*/
|
|
@@ -2791,6 +3206,39 @@ export interface CreateAutomationRuleV2Request {
|
|
|
2791
3206
|
*/
|
|
2792
3207
|
ClientToken?: string | undefined;
|
|
2793
3208
|
}
|
|
3209
|
+
/**
|
|
3210
|
+
* <p>Specifies what data to export and how to format it. This is a union: you must specify exactly one member. Currently, the only supported member is <code>Findings</code>.</p>
|
|
3211
|
+
* @public
|
|
3212
|
+
*/
|
|
3213
|
+
export type ExportOutput = ExportOutput.FindingsMember | ExportOutput.$UnknownMember;
|
|
3214
|
+
/**
|
|
3215
|
+
* @public
|
|
3216
|
+
*/
|
|
3217
|
+
export declare namespace ExportOutput {
|
|
3218
|
+
/**
|
|
3219
|
+
* <p>Configures an export of Security Hub findings, including the output format and any filters or selected fields.</p>
|
|
3220
|
+
* @public
|
|
3221
|
+
*/
|
|
3222
|
+
interface FindingsMember {
|
|
3223
|
+
Findings: FindingsOutput;
|
|
3224
|
+
$unknown?: never;
|
|
3225
|
+
}
|
|
3226
|
+
/**
|
|
3227
|
+
* @public
|
|
3228
|
+
*/
|
|
3229
|
+
interface $UnknownMember {
|
|
3230
|
+
Findings?: never;
|
|
3231
|
+
$unknown: [string, any];
|
|
3232
|
+
}
|
|
3233
|
+
/**
|
|
3234
|
+
* @deprecated unused in schema-serde mode.
|
|
3235
|
+
*
|
|
3236
|
+
*/
|
|
3237
|
+
interface Visitor<T> {
|
|
3238
|
+
Findings: (value: FindingsOutput) => T;
|
|
3239
|
+
_: (name: string, value: any) => T;
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
2794
3242
|
/**
|
|
2795
3243
|
* @public
|
|
2796
3244
|
*/
|
|
@@ -2886,6 +3334,68 @@ export interface UpdateAutomationRuleV2Request {
|
|
|
2886
3334
|
*/
|
|
2887
3335
|
Actions?: AutomationRulesActionV2[] | undefined;
|
|
2888
3336
|
}
|
|
3337
|
+
/**
|
|
3338
|
+
* @public
|
|
3339
|
+
*/
|
|
3340
|
+
export interface GetExportJobV2Response {
|
|
3341
|
+
/**
|
|
3342
|
+
* <p>The unique identifier of the export job.</p>
|
|
3343
|
+
* @public
|
|
3344
|
+
*/
|
|
3345
|
+
ExportJobId: string | undefined;
|
|
3346
|
+
/**
|
|
3347
|
+
* <p>The user-provided name of the export job, if one was specified when the job was started.</p>
|
|
3348
|
+
* @public
|
|
3349
|
+
*/
|
|
3350
|
+
Name?: string | undefined;
|
|
3351
|
+
/**
|
|
3352
|
+
* <p>The current state of the export job.</p>
|
|
3353
|
+
* @public
|
|
3354
|
+
*/
|
|
3355
|
+
Status: ExportStatus | undefined;
|
|
3356
|
+
/**
|
|
3357
|
+
* <p>The category of data that the export job produces.</p>
|
|
3358
|
+
* @public
|
|
3359
|
+
*/
|
|
3360
|
+
DataType: ExportDataType | undefined;
|
|
3361
|
+
/**
|
|
3362
|
+
* <p>The output configuration that the export job was started with, including the format and any filters or selected fields.</p>
|
|
3363
|
+
* @public
|
|
3364
|
+
*/
|
|
3365
|
+
OutputConfiguration?: ExportOutput | undefined;
|
|
3366
|
+
/**
|
|
3367
|
+
* <p>The organization scopes that the export job was started with, echoed verbatim. This parameter is absent if the caller didn't supply <code>Scopes</code>. It contains only the organization or organizational unit (OU) identifiers that the caller submitted; it never contains resolved member-account identifiers.</p>
|
|
3368
|
+
* @public
|
|
3369
|
+
*/
|
|
3370
|
+
Scopes?: ExportScopes | undefined;
|
|
3371
|
+
/**
|
|
3372
|
+
* <p>The destination that the export job writes to.</p>
|
|
3373
|
+
* @public
|
|
3374
|
+
*/
|
|
3375
|
+
Destination: ExportDestination | undefined;
|
|
3376
|
+
/**
|
|
3377
|
+
* <p>A code that classifies why the export job failed. Present only when <code>Status</code> is <code>FAILED</code>.</p>
|
|
3378
|
+
* @public
|
|
3379
|
+
*/
|
|
3380
|
+
FailureCode?: ExportFailureCode | undefined;
|
|
3381
|
+
/**
|
|
3382
|
+
* <p>A human-readable message that provides more detail about why the export job failed. Present only when <code>Status</code> is <code>FAILED</code>.</p>
|
|
3383
|
+
* @public
|
|
3384
|
+
*/
|
|
3385
|
+
FailureMessage?: string | undefined;
|
|
3386
|
+
/**
|
|
3387
|
+
* <p>The time when the export job was created.</p>
|
|
3388
|
+
* <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>
|
|
3389
|
+
* @public
|
|
3390
|
+
*/
|
|
3391
|
+
StartedAt: Date | undefined;
|
|
3392
|
+
/**
|
|
3393
|
+
* <p>The time when the export job reached a terminal state (<code>SUCCEEDED</code>, <code>FAILED</code>, or <code>CANCELLED</code>). This parameter is absent while the job is <code>RUNNING</code>.</p>
|
|
3394
|
+
* <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>
|
|
3395
|
+
* @public
|
|
3396
|
+
*/
|
|
3397
|
+
EndedAt?: Date | undefined;
|
|
3398
|
+
}
|
|
2889
3399
|
/**
|
|
2890
3400
|
* @public
|
|
2891
3401
|
*/
|
|
@@ -2944,3 +3454,35 @@ export interface GetResourcesStatisticsV2Request {
|
|
|
2944
3454
|
*/
|
|
2945
3455
|
MaxStatisticResults?: number | undefined;
|
|
2946
3456
|
}
|
|
3457
|
+
/**
|
|
3458
|
+
* @public
|
|
3459
|
+
*/
|
|
3460
|
+
export interface StartExportJobV2Request {
|
|
3461
|
+
/**
|
|
3462
|
+
* <p>An optional, user-provided name for the export job that helps you identify it in <code>ListExportJobsV2</code> results. The value can be 1–256 characters. Alphanumeric characters, spaces, and the following ASCII characters are permitted: <code>. _ , : ( ) / + -</code>.</p>
|
|
3463
|
+
* @public
|
|
3464
|
+
*/
|
|
3465
|
+
Name?: string | undefined;
|
|
3466
|
+
/**
|
|
3467
|
+
* <p>The destination that Security Hub writes the export to. You must specify exactly one destination type. Currently, the only supported type is Amazon S3.</p>
|
|
3468
|
+
* @public
|
|
3469
|
+
*/
|
|
3470
|
+
Destination: ExportDestination | undefined;
|
|
3471
|
+
/**
|
|
3472
|
+
* <p>Specifies what data to export and how to format it. You must specify exactly one output type. Currently, the only supported type is <code>Findings</code>.</p>
|
|
3473
|
+
* @public
|
|
3474
|
+
*/
|
|
3475
|
+
OutputConfiguration: ExportOutput | undefined;
|
|
3476
|
+
/**
|
|
3477
|
+
* <p>Limits the export to findings from specific organizational units (OUs) or from the delegated administrator's organization. Only the delegated administrator account can use this parameter; other accounts that specify it receive an <code>AccessDeniedException</code>.</p>
|
|
3478
|
+
* <p>This parameter is optional. If you omit it, the delegated administrator exports findings from all accounts across the entire organization, and other accounts export only their own findings.</p>
|
|
3479
|
+
* <p>You can specify up to 10 entries in <code>Scopes.AwsOrganizations</code>. If you specify multiple entries, Security Hub combines them using OR logic.</p>
|
|
3480
|
+
* @public
|
|
3481
|
+
*/
|
|
3482
|
+
Scopes?: ExportScopes | undefined;
|
|
3483
|
+
/**
|
|
3484
|
+
* <p>A unique identifier used to ensure idempotency.</p>
|
|
3485
|
+
* @public
|
|
3486
|
+
*/
|
|
3487
|
+
ClientToken?: string | undefined;
|
|
3488
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListExportJobsV2CommandInput, ListExportJobsV2CommandOutput } from "../commands/ListExportJobsV2Command";
|
|
3
|
+
import type { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateListExportJobsV2: (config: SecurityHubPaginationConfiguration, input: ListExportJobsV2CommandInput, ...rest: any[]) => Paginator<ListExportJobsV2CommandOutput>;
|
|
@@ -18,6 +18,7 @@ export * from "./ListAggregatorsV2Paginator";
|
|
|
18
18
|
export * from "./ListConfigurationPoliciesPaginator";
|
|
19
19
|
export * from "./ListConfigurationPolicyAssociationsPaginator";
|
|
20
20
|
export * from "./ListEnabledProductsForImportPaginator";
|
|
21
|
+
export * from "./ListExportJobsV2Paginator";
|
|
21
22
|
export * from "./ListExposuresByRemediationV2Paginator";
|
|
22
23
|
export * from "./ListFindingAggregatorsPaginator";
|
|
23
24
|
export * from "./ListFreeTrialStatusesV2Paginator";
|