@aws-sdk/client-securityhub 3.105.0 → 3.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  3. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  4. package/dist-cjs/commands/UpdateActionTargetCommand.js +3 -3
  5. package/dist-cjs/commands/UpdateFindingAggregatorCommand.js +3 -3
  6. package/dist-cjs/commands/UpdateFindingsCommand.js +3 -3
  7. package/dist-cjs/commands/UpdateInsightCommand.js +3 -3
  8. package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
  9. package/dist-cjs/commands/UpdateSecurityHubConfigurationCommand.js +3 -3
  10. package/dist-cjs/commands/UpdateStandardsControlCommand.js +3 -3
  11. package/dist-cjs/models/index.js +1 -0
  12. package/dist-cjs/models/models_0.js +161 -161
  13. package/dist-cjs/models/models_1.js +276 -114
  14. package/dist-cjs/models/models_2.js +111 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +1490 -33
  16. package/dist-es/commands/TagResourceCommand.js +1 -1
  17. package/dist-es/commands/UntagResourceCommand.js +1 -1
  18. package/dist-es/commands/UpdateActionTargetCommand.js +1 -1
  19. package/dist-es/commands/UpdateFindingAggregatorCommand.js +1 -1
  20. package/dist-es/commands/UpdateFindingsCommand.js +1 -1
  21. package/dist-es/commands/UpdateInsightCommand.js +1 -1
  22. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +1 -1
  23. package/dist-es/commands/UpdateSecurityHubConfigurationCommand.js +1 -1
  24. package/dist-es/commands/UpdateStandardsControlCommand.js +1 -1
  25. package/dist-es/models/index.js +1 -0
  26. package/dist-es/models/models_0.js +104 -104
  27. package/dist-es/models/models_1.js +180 -72
  28. package/dist-es/models/models_2.js +73 -0
  29. package/dist-es/protocols/Aws_restJson1.js +1207 -19
  30. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  31. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateActionTargetCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateFindingsCommand.d.ts +1 -1
  35. package/dist-types/commands/UpdateInsightCommand.d.ts +1 -1
  36. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
  37. package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +1 -1
  38. package/dist-types/commands/UpdateStandardsControlCommand.d.ts +1 -1
  39. package/dist-types/models/index.d.ts +1 -0
  40. package/dist-types/models/models_0.d.ts +1104 -975
  41. package/dist-types/models/models_1.d.ts +3525 -2223
  42. package/dist-types/models/models_2.d.ts +285 -0
  43. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/UpdateActionTargetCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/UpdateFindingAggregatorCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/UpdateFindingsCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/UpdateInsightCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/UpdateSecurityHubConfigurationCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/UpdateStandardsControlCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/models/index.d.ts +1 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +509 -519
  54. package/dist-types/ts3.4/models/models_1.d.ts +839 -228
  55. package/dist-types/ts3.4/models/models_2.d.ts +164 -0
  56. package/package.json +29 -29
@@ -0,0 +1,285 @@
1
+ import { AutoEnableStandards } from "./models_0";
2
+ import { AwsSecurityFindingFilters, ControlStatus, NoteUpdate, RecordState } from "./models_1";
3
+ export interface TagResourceRequest {
4
+ /**
5
+ * <p>The ARN of the resource to apply the tags to.</p>
6
+ */
7
+ ResourceArn: string | undefined;
8
+ /**
9
+ * <p>The tags to add to the resource. You can add up to 50 tags at a time. The tag keys can be no longer than 128 characters. The tag values can be no longer than 256 characters.</p>
10
+ */
11
+ Tags: Record<string, string> | undefined;
12
+ }
13
+ export declare namespace TagResourceRequest {
14
+ /**
15
+ * @internal
16
+ */
17
+ const filterSensitiveLog: (obj: TagResourceRequest) => any;
18
+ }
19
+ export interface TagResourceResponse {
20
+ }
21
+ export declare namespace TagResourceResponse {
22
+ /**
23
+ * @internal
24
+ */
25
+ const filterSensitiveLog: (obj: TagResourceResponse) => any;
26
+ }
27
+ export interface UntagResourceRequest {
28
+ /**
29
+ * <p>The ARN of the resource to remove the tags from.</p>
30
+ */
31
+ ResourceArn: string | undefined;
32
+ /**
33
+ * <p>The tag keys associated with the tags to remove from the resource. You can remove up to 50 tags at a time.</p>
34
+ */
35
+ TagKeys: string[] | undefined;
36
+ }
37
+ export declare namespace UntagResourceRequest {
38
+ /**
39
+ * @internal
40
+ */
41
+ const filterSensitiveLog: (obj: UntagResourceRequest) => any;
42
+ }
43
+ export interface UntagResourceResponse {
44
+ }
45
+ export declare namespace UntagResourceResponse {
46
+ /**
47
+ * @internal
48
+ */
49
+ const filterSensitiveLog: (obj: UntagResourceResponse) => any;
50
+ }
51
+ export interface UpdateActionTargetRequest {
52
+ /**
53
+ * <p>The ARN of the custom action target to update.</p>
54
+ */
55
+ ActionTargetArn: string | undefined;
56
+ /**
57
+ * <p>The updated name of the custom action target.</p>
58
+ */
59
+ Name?: string;
60
+ /**
61
+ * <p>The updated description for the custom action target.</p>
62
+ */
63
+ Description?: string;
64
+ }
65
+ export declare namespace UpdateActionTargetRequest {
66
+ /**
67
+ * @internal
68
+ */
69
+ const filterSensitiveLog: (obj: UpdateActionTargetRequest) => any;
70
+ }
71
+ export interface UpdateActionTargetResponse {
72
+ }
73
+ export declare namespace UpdateActionTargetResponse {
74
+ /**
75
+ * @internal
76
+ */
77
+ const filterSensitiveLog: (obj: UpdateActionTargetResponse) => any;
78
+ }
79
+ export interface UpdateFindingAggregatorRequest {
80
+ /**
81
+ * <p>The ARN of the finding aggregator. To obtain the ARN, use <code>ListFindingAggregators</code>.</p>
82
+ */
83
+ FindingAggregatorArn: string | undefined;
84
+ /**
85
+ * <p>Indicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.</p>
86
+ * <p>The selected option also determines how to use the Regions provided in the Regions list.</p>
87
+ * <p>The options are as follows:</p>
88
+ * <ul>
89
+ * <li>
90
+ * <p>
91
+ * <code>ALL_REGIONS</code> - Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.
92
+ * </p>
93
+ * </li>
94
+ * <li>
95
+ * <p>
96
+ * <code>ALL_REGIONS_EXCEPT_SPECIFIED</code> - Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in the <code>Regions</code> parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.
97
+ * </p>
98
+ * </li>
99
+ * <li>
100
+ * <p>
101
+ * <code>SPECIFIED_REGIONS</code> - Indicates to aggregate findings only from the Regions listed in the <code>Regions</code> parameter. Security Hub does not automatically aggregate findings from new Regions.
102
+ * </p>
103
+ * </li>
104
+ * </ul>
105
+ */
106
+ RegionLinkingMode: string | undefined;
107
+ /**
108
+ * <p>If <code>RegionLinkingMode</code> is <code>ALL_REGIONS_EXCEPT_SPECIFIED</code>, then this is a comma-separated list of Regions that do not aggregate findings to the aggregation Region.</p>
109
+ * <p>If <code>RegionLinkingMode</code> is <code>SPECIFIED_REGIONS</code>, then this is a comma-separated list of Regions that do aggregate findings to the aggregation Region.</p>
110
+ */
111
+ Regions?: string[];
112
+ }
113
+ export declare namespace UpdateFindingAggregatorRequest {
114
+ /**
115
+ * @internal
116
+ */
117
+ const filterSensitiveLog: (obj: UpdateFindingAggregatorRequest) => any;
118
+ }
119
+ export interface UpdateFindingAggregatorResponse {
120
+ /**
121
+ * <p>The ARN of the finding aggregator.</p>
122
+ */
123
+ FindingAggregatorArn?: string;
124
+ /**
125
+ * <p>The aggregation Region.</p>
126
+ */
127
+ FindingAggregationRegion?: string;
128
+ /**
129
+ * <p>Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions.</p>
130
+ */
131
+ RegionLinkingMode?: string;
132
+ /**
133
+ * <p>The list of excluded Regions or included Regions.</p>
134
+ */
135
+ Regions?: string[];
136
+ }
137
+ export declare namespace UpdateFindingAggregatorResponse {
138
+ /**
139
+ * @internal
140
+ */
141
+ const filterSensitiveLog: (obj: UpdateFindingAggregatorResponse) => any;
142
+ }
143
+ export interface UpdateFindingsRequest {
144
+ /**
145
+ * <p>A collection of attributes that specify which findings you want to update.</p>
146
+ */
147
+ Filters: AwsSecurityFindingFilters | undefined;
148
+ /**
149
+ * <p>The updated note for the finding.</p>
150
+ */
151
+ Note?: NoteUpdate;
152
+ /**
153
+ * <p>The updated record state for the finding.</p>
154
+ */
155
+ RecordState?: RecordState | string;
156
+ }
157
+ export declare namespace UpdateFindingsRequest {
158
+ /**
159
+ * @internal
160
+ */
161
+ const filterSensitiveLog: (obj: UpdateFindingsRequest) => any;
162
+ }
163
+ export interface UpdateFindingsResponse {
164
+ }
165
+ export declare namespace UpdateFindingsResponse {
166
+ /**
167
+ * @internal
168
+ */
169
+ const filterSensitiveLog: (obj: UpdateFindingsResponse) => any;
170
+ }
171
+ export interface UpdateInsightRequest {
172
+ /**
173
+ * <p>The ARN of the insight that you want to update.</p>
174
+ */
175
+ InsightArn: string | undefined;
176
+ /**
177
+ * <p>The updated name for the insight.</p>
178
+ */
179
+ Name?: string;
180
+ /**
181
+ * <p>The updated filters that define this insight.</p>
182
+ */
183
+ Filters?: AwsSecurityFindingFilters;
184
+ /**
185
+ * <p>The updated <code>GroupBy</code> attribute that defines this insight.</p>
186
+ */
187
+ GroupByAttribute?: string;
188
+ }
189
+ export declare namespace UpdateInsightRequest {
190
+ /**
191
+ * @internal
192
+ */
193
+ const filterSensitiveLog: (obj: UpdateInsightRequest) => any;
194
+ }
195
+ export interface UpdateInsightResponse {
196
+ }
197
+ export declare namespace UpdateInsightResponse {
198
+ /**
199
+ * @internal
200
+ */
201
+ const filterSensitiveLog: (obj: UpdateInsightResponse) => any;
202
+ }
203
+ export interface UpdateOrganizationConfigurationRequest {
204
+ /**
205
+ * <p>Whether to automatically enable Security Hub for new accounts in the organization.</p>
206
+ * <p>By default, this is <code>false</code>, and new accounts are not added
207
+ * automatically.</p>
208
+ * <p>To automatically enable Security Hub for new accounts, set this to <code>true</code>.</p>
209
+ */
210
+ AutoEnable: boolean | undefined;
211
+ /**
212
+ * <p>Whether to automatically enable Security Hub <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html">default standards</a>
213
+ * for new member accounts in the organization.</p>
214
+ * <p>By default, this parameter is equal to <code>DEFAULT</code>, and new member accounts are automatically enabled with default Security Hub standards.</p>
215
+ * <p>To opt out of enabling default standards for new member accounts, set this parameter equal to <code>NONE</code>.</p>
216
+ */
217
+ AutoEnableStandards?: AutoEnableStandards | string;
218
+ }
219
+ export declare namespace UpdateOrganizationConfigurationRequest {
220
+ /**
221
+ * @internal
222
+ */
223
+ const filterSensitiveLog: (obj: UpdateOrganizationConfigurationRequest) => any;
224
+ }
225
+ export interface UpdateOrganizationConfigurationResponse {
226
+ }
227
+ export declare namespace UpdateOrganizationConfigurationResponse {
228
+ /**
229
+ * @internal
230
+ */
231
+ const filterSensitiveLog: (obj: UpdateOrganizationConfigurationResponse) => any;
232
+ }
233
+ export interface UpdateSecurityHubConfigurationRequest {
234
+ /**
235
+ * <p>Whether to automatically enable new controls when they are added to standards that are
236
+ * enabled.</p>
237
+ * <p>By default, this is set to <code>true</code>, and new controls are enabled
238
+ * automatically. To not automatically enable new controls, set this to <code>false</code>.
239
+ * </p>
240
+ */
241
+ AutoEnableControls?: boolean;
242
+ }
243
+ export declare namespace UpdateSecurityHubConfigurationRequest {
244
+ /**
245
+ * @internal
246
+ */
247
+ const filterSensitiveLog: (obj: UpdateSecurityHubConfigurationRequest) => any;
248
+ }
249
+ export interface UpdateSecurityHubConfigurationResponse {
250
+ }
251
+ export declare namespace UpdateSecurityHubConfigurationResponse {
252
+ /**
253
+ * @internal
254
+ */
255
+ const filterSensitiveLog: (obj: UpdateSecurityHubConfigurationResponse) => any;
256
+ }
257
+ export interface UpdateStandardsControlRequest {
258
+ /**
259
+ * <p>The ARN of the security standard control to enable or disable.</p>
260
+ */
261
+ StandardsControlArn: string | undefined;
262
+ /**
263
+ * <p>The updated status of the security standard control.</p>
264
+ */
265
+ ControlStatus?: ControlStatus | string;
266
+ /**
267
+ * <p>A description of the reason why you are disabling a security standard control. If you
268
+ * are disabling a control, then this is required.</p>
269
+ */
270
+ DisabledReason?: string;
271
+ }
272
+ export declare namespace UpdateStandardsControlRequest {
273
+ /**
274
+ * @internal
275
+ */
276
+ const filterSensitiveLog: (obj: UpdateStandardsControlRequest) => any;
277
+ }
278
+ export interface UpdateStandardsControlResponse {
279
+ }
280
+ export declare namespace UpdateStandardsControlResponse {
281
+ /**
282
+ * @internal
283
+ */
284
+ const filterSensitiveLog: (obj: UpdateStandardsControlResponse) => any;
285
+ }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
3
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface TagResourceCommandInput extends TagResourceRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
3
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface UntagResourceCommandInput extends UntagResourceRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { UpdateActionTargetRequest, UpdateActionTargetResponse } from "../models/models_1";
3
+ import { UpdateActionTargetRequest, UpdateActionTargetResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface UpdateActionTargetCommandInput extends UpdateActionTargetRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { UpdateFindingAggregatorRequest, UpdateFindingAggregatorResponse } from "../models/models_1";
3
+ import { UpdateFindingAggregatorRequest, UpdateFindingAggregatorResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface UpdateFindingAggregatorCommandInput extends UpdateFindingAggregatorRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { UpdateFindingsRequest, UpdateFindingsResponse } from "../models/models_1";
3
+ import { UpdateFindingsRequest, UpdateFindingsResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface UpdateFindingsCommandInput extends UpdateFindingsRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { UpdateInsightRequest, UpdateInsightResponse } from "../models/models_1";
3
+ import { UpdateInsightRequest, UpdateInsightResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface UpdateInsightCommandInput extends UpdateInsightRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { UpdateOrganizationConfigurationRequest, UpdateOrganizationConfigurationResponse } from "../models/models_1";
3
+ import { UpdateOrganizationConfigurationRequest, UpdateOrganizationConfigurationResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface UpdateOrganizationConfigurationCommandInput extends UpdateOrganizationConfigurationRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { UpdateSecurityHubConfigurationRequest, UpdateSecurityHubConfigurationResponse } from "../models/models_1";
3
+ import { UpdateSecurityHubConfigurationRequest, UpdateSecurityHubConfigurationResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface UpdateSecurityHubConfigurationCommandInput extends UpdateSecurityHubConfigurationRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { UpdateStandardsControlRequest, UpdateStandardsControlResponse } from "../models/models_1";
3
+ import { UpdateStandardsControlRequest, UpdateStandardsControlResponse } from "../models/models_2";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  export interface UpdateStandardsControlCommandInput extends UpdateStandardsControlRequest {
6
6
  }
@@ -1,2 +1,3 @@
1
1
  export * from "./models_0";
2
2
  export * from "./models_1";
3
+ export * from "./models_2";