@aws-sdk/client-securityhub 3.454.0 → 3.458.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 (43) hide show
  1. package/README.md +83 -67
  2. package/dist-cjs/SecurityHub.js +4 -0
  3. package/dist-cjs/commands/GetSecurityControlDefinitionCommand.js +51 -0
  4. package/dist-cjs/commands/UpdateSecurityControlCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_2.js +71 -1
  7. package/dist-cjs/protocols/Aws_restJson1.js +349 -5
  8. package/dist-es/SecurityHub.js +4 -0
  9. package/dist-es/commands/GetSecurityControlDefinitionCommand.js +47 -0
  10. package/dist-es/commands/UpdateSecurityControlCommand.js +47 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_2.js +69 -0
  13. package/dist-es/protocols/Aws_restJson1.js +343 -3
  14. package/dist-types/SecurityHub.d.ts +14 -0
  15. package/dist-types/SecurityHubClient.d.ts +4 -2
  16. package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +4 -0
  17. package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +23 -0
  18. package/dist-types/commands/BatchImportFindingsCommand.d.ts +9 -3
  19. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +4 -0
  20. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +4 -0
  21. package/dist-types/commands/CreateInsightCommand.d.ts +14 -0
  22. package/dist-types/commands/GetFindingsCommand.d.ts +23 -3
  23. package/dist-types/commands/GetInsightsCommand.d.ts +14 -0
  24. package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +158 -0
  25. package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +59 -0
  26. package/dist-types/commands/UpdateFindingsCommand.d.ts +14 -0
  27. package/dist-types/commands/UpdateInsightCommand.d.ts +14 -0
  28. package/dist-types/commands/UpdateSecurityControlCommand.d.ts +118 -0
  29. package/dist-types/commands/index.d.ts +2 -0
  30. package/dist-types/models/models_0.d.ts +15 -1
  31. package/dist-types/models/models_1.d.ts +29 -37
  32. package/dist-types/models/models_2.d.ts +987 -147
  33. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  34. package/dist-types/ts3.4/SecurityHub.d.ts +34 -0
  35. package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
  36. package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +42 -0
  37. package/dist-types/ts3.4/commands/UpdateSecurityControlCommand.d.ts +42 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +2 -0
  40. package/dist-types/ts3.4/models/models_1.d.ts +5 -6
  41. package/dist-types/ts3.4/models/models_2.d.ts +361 -15
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  43. package/package.json +3 -3
@@ -48,6 +48,7 @@ import { GetInsightsCommandInput, GetInsightsCommandOutput } from "../commands/G
48
48
  import { GetInvitationsCountCommandInput, GetInvitationsCountCommandOutput } from "../commands/GetInvitationsCountCommand";
49
49
  import { GetMasterAccountCommandInput, GetMasterAccountCommandOutput } from "../commands/GetMasterAccountCommand";
50
50
  import { GetMembersCommandInput, GetMembersCommandOutput } from "../commands/GetMembersCommand";
51
+ import { GetSecurityControlDefinitionCommandInput, GetSecurityControlDefinitionCommandOutput } from "../commands/GetSecurityControlDefinitionCommand";
51
52
  import { InviteMembersCommandInput, InviteMembersCommandOutput } from "../commands/InviteMembersCommand";
52
53
  import { ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput } from "../commands/ListAutomationRulesCommand";
53
54
  import { ListEnabledProductsForImportCommandInput, ListEnabledProductsForImportCommandOutput } from "../commands/ListEnabledProductsForImportCommand";
@@ -65,6 +66,7 @@ import { UpdateFindingAggregatorCommandInput, UpdateFindingAggregatorCommandOutp
65
66
  import { UpdateFindingsCommandInput, UpdateFindingsCommandOutput } from "../commands/UpdateFindingsCommand";
66
67
  import { UpdateInsightCommandInput, UpdateInsightCommandOutput } from "../commands/UpdateInsightCommand";
67
68
  import { UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput } from "../commands/UpdateOrganizationConfigurationCommand";
69
+ import { UpdateSecurityControlCommandInput, UpdateSecurityControlCommandOutput } from "../commands/UpdateSecurityControlCommand";
68
70
  import { UpdateSecurityHubConfigurationCommandInput, UpdateSecurityHubConfigurationCommandOutput } from "../commands/UpdateSecurityHubConfigurationCommand";
69
71
  import { UpdateStandardsControlCommandInput, UpdateStandardsControlCommandOutput } from "../commands/UpdateStandardsControlCommand";
70
72
  /**
@@ -259,6 +261,10 @@ export declare const se_GetMasterAccountCommand: (input: GetMasterAccountCommand
259
261
  * serializeAws_restJson1GetMembersCommand
260
262
  */
261
263
  export declare const se_GetMembersCommand: (input: GetMembersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
264
+ /**
265
+ * serializeAws_restJson1GetSecurityControlDefinitionCommand
266
+ */
267
+ export declare const se_GetSecurityControlDefinitionCommand: (input: GetSecurityControlDefinitionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
262
268
  /**
263
269
  * serializeAws_restJson1InviteMembersCommand
264
270
  */
@@ -327,6 +333,10 @@ export declare const se_UpdateInsightCommand: (input: UpdateInsightCommandInput,
327
333
  * serializeAws_restJson1UpdateOrganizationConfigurationCommand
328
334
  */
329
335
  export declare const se_UpdateOrganizationConfigurationCommand: (input: UpdateOrganizationConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
336
+ /**
337
+ * serializeAws_restJson1UpdateSecurityControlCommand
338
+ */
339
+ export declare const se_UpdateSecurityControlCommand: (input: UpdateSecurityControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
330
340
  /**
331
341
  * serializeAws_restJson1UpdateSecurityHubConfigurationCommand
332
342
  */
@@ -527,6 +537,10 @@ export declare const de_GetMasterAccountCommand: (output: __HttpResponse, contex
527
537
  * deserializeAws_restJson1GetMembersCommand
528
538
  */
529
539
  export declare const de_GetMembersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetMembersCommandOutput>;
540
+ /**
541
+ * deserializeAws_restJson1GetSecurityControlDefinitionCommand
542
+ */
543
+ export declare const de_GetSecurityControlDefinitionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSecurityControlDefinitionCommandOutput>;
530
544
  /**
531
545
  * deserializeAws_restJson1InviteMembersCommand
532
546
  */
@@ -595,6 +609,10 @@ export declare const de_UpdateInsightCommand: (output: __HttpResponse, context:
595
609
  * deserializeAws_restJson1UpdateOrganizationConfigurationCommand
596
610
  */
597
611
  export declare const de_UpdateOrganizationConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateOrganizationConfigurationCommandOutput>;
612
+ /**
613
+ * deserializeAws_restJson1UpdateSecurityControlCommand
614
+ */
615
+ export declare const de_UpdateSecurityControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSecurityControlCommandOutput>;
598
616
  /**
599
617
  * deserializeAws_restJson1UpdateSecurityHubConfigurationCommand
600
618
  */
@@ -191,6 +191,10 @@ import {
191
191
  GetMembersCommandInput,
192
192
  GetMembersCommandOutput,
193
193
  } from "./commands/GetMembersCommand";
194
+ import {
195
+ GetSecurityControlDefinitionCommandInput,
196
+ GetSecurityControlDefinitionCommandOutput,
197
+ } from "./commands/GetSecurityControlDefinitionCommand";
194
198
  import {
195
199
  InviteMembersCommandInput,
196
200
  InviteMembersCommandOutput,
@@ -259,6 +263,10 @@ import {
259
263
  UpdateOrganizationConfigurationCommandInput,
260
264
  UpdateOrganizationConfigurationCommandOutput,
261
265
  } from "./commands/UpdateOrganizationConfigurationCommand";
266
+ import {
267
+ UpdateSecurityControlCommandInput,
268
+ UpdateSecurityControlCommandOutput,
269
+ } from "./commands/UpdateSecurityControlCommand";
262
270
  import {
263
271
  UpdateSecurityHubConfigurationCommandInput,
264
272
  UpdateSecurityHubConfigurationCommandOutput,
@@ -917,6 +925,19 @@ export interface SecurityHub {
917
925
  options: __HttpHandlerOptions,
918
926
  cb: (err: any, data?: GetMembersCommandOutput) => void
919
927
  ): void;
928
+ getSecurityControlDefinition(
929
+ args: GetSecurityControlDefinitionCommandInput,
930
+ options?: __HttpHandlerOptions
931
+ ): Promise<GetSecurityControlDefinitionCommandOutput>;
932
+ getSecurityControlDefinition(
933
+ args: GetSecurityControlDefinitionCommandInput,
934
+ cb: (err: any, data?: GetSecurityControlDefinitionCommandOutput) => void
935
+ ): void;
936
+ getSecurityControlDefinition(
937
+ args: GetSecurityControlDefinitionCommandInput,
938
+ options: __HttpHandlerOptions,
939
+ cb: (err: any, data?: GetSecurityControlDefinitionCommandOutput) => void
940
+ ): void;
920
941
  inviteMembers(
921
942
  args: InviteMembersCommandInput,
922
943
  options?: __HttpHandlerOptions
@@ -1138,6 +1159,19 @@ export interface SecurityHub {
1138
1159
  options: __HttpHandlerOptions,
1139
1160
  cb: (err: any, data?: UpdateOrganizationConfigurationCommandOutput) => void
1140
1161
  ): void;
1162
+ updateSecurityControl(
1163
+ args: UpdateSecurityControlCommandInput,
1164
+ options?: __HttpHandlerOptions
1165
+ ): Promise<UpdateSecurityControlCommandOutput>;
1166
+ updateSecurityControl(
1167
+ args: UpdateSecurityControlCommandInput,
1168
+ cb: (err: any, data?: UpdateSecurityControlCommandOutput) => void
1169
+ ): void;
1170
+ updateSecurityControl(
1171
+ args: UpdateSecurityControlCommandInput,
1172
+ options: __HttpHandlerOptions,
1173
+ cb: (err: any, data?: UpdateSecurityControlCommandOutput) => void
1174
+ ): void;
1141
1175
  updateSecurityHubConfiguration(
1142
1176
  args: UpdateSecurityHubConfigurationCommandInput,
1143
1177
  options?: __HttpHandlerOptions
@@ -237,6 +237,10 @@ import {
237
237
  GetMembersCommandInput,
238
238
  GetMembersCommandOutput,
239
239
  } from "./commands/GetMembersCommand";
240
+ import {
241
+ GetSecurityControlDefinitionCommandInput,
242
+ GetSecurityControlDefinitionCommandOutput,
243
+ } from "./commands/GetSecurityControlDefinitionCommand";
240
244
  import {
241
245
  InviteMembersCommandInput,
242
246
  InviteMembersCommandOutput,
@@ -305,6 +309,10 @@ import {
305
309
  UpdateOrganizationConfigurationCommandInput,
306
310
  UpdateOrganizationConfigurationCommandOutput,
307
311
  } from "./commands/UpdateOrganizationConfigurationCommand";
312
+ import {
313
+ UpdateSecurityControlCommandInput,
314
+ UpdateSecurityControlCommandOutput,
315
+ } from "./commands/UpdateSecurityControlCommand";
308
316
  import {
309
317
  UpdateSecurityHubConfigurationCommandInput,
310
318
  UpdateSecurityHubConfigurationCommandOutput,
@@ -369,6 +377,7 @@ export type ServiceInputTypes =
369
377
  | GetInvitationsCountCommandInput
370
378
  | GetMasterAccountCommandInput
371
379
  | GetMembersCommandInput
380
+ | GetSecurityControlDefinitionCommandInput
372
381
  | InviteMembersCommandInput
373
382
  | ListAutomationRulesCommandInput
374
383
  | ListEnabledProductsForImportCommandInput
@@ -386,6 +395,7 @@ export type ServiceInputTypes =
386
395
  | UpdateFindingsCommandInput
387
396
  | UpdateInsightCommandInput
388
397
  | UpdateOrganizationConfigurationCommandInput
398
+ | UpdateSecurityControlCommandInput
389
399
  | UpdateSecurityHubConfigurationCommandInput
390
400
  | UpdateStandardsControlCommandInput;
391
401
  export type ServiceOutputTypes =
@@ -437,6 +447,7 @@ export type ServiceOutputTypes =
437
447
  | GetInvitationsCountCommandOutput
438
448
  | GetMasterAccountCommandOutput
439
449
  | GetMembersCommandOutput
450
+ | GetSecurityControlDefinitionCommandOutput
440
451
  | InviteMembersCommandOutput
441
452
  | ListAutomationRulesCommandOutput
442
453
  | ListEnabledProductsForImportCommandOutput
@@ -454,6 +465,7 @@ export type ServiceOutputTypes =
454
465
  | UpdateFindingsCommandOutput
455
466
  | UpdateInsightCommandOutput
456
467
  | UpdateOrganizationConfigurationCommandOutput
468
+ | UpdateSecurityControlCommandOutput
457
469
  | UpdateSecurityHubConfigurationCommandOutput
458
470
  | UpdateStandardsControlCommandOutput;
459
471
  export interface ClientDefaults
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ GetSecurityControlDefinitionRequest,
11
+ GetSecurityControlDefinitionResponse,
12
+ } from "../models/models_2";
13
+ import {
14
+ SecurityHubClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../SecurityHubClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetSecurityControlDefinitionCommandInput
20
+ extends GetSecurityControlDefinitionRequest {}
21
+ export interface GetSecurityControlDefinitionCommandOutput
22
+ extends GetSecurityControlDefinitionResponse,
23
+ __MetadataBearer {}
24
+ export declare class GetSecurityControlDefinitionCommand extends $Command<
25
+ GetSecurityControlDefinitionCommandInput,
26
+ GetSecurityControlDefinitionCommandOutput,
27
+ SecurityHubClientResolvedConfig
28
+ > {
29
+ readonly input: GetSecurityControlDefinitionCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetSecurityControlDefinitionCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: SecurityHubClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ GetSecurityControlDefinitionCommandInput,
38
+ GetSecurityControlDefinitionCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ UpdateSecurityControlRequest,
11
+ UpdateSecurityControlResponse,
12
+ } from "../models/models_2";
13
+ import {
14
+ SecurityHubClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../SecurityHubClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface UpdateSecurityControlCommandInput
20
+ extends UpdateSecurityControlRequest {}
21
+ export interface UpdateSecurityControlCommandOutput
22
+ extends UpdateSecurityControlResponse,
23
+ __MetadataBearer {}
24
+ export declare class UpdateSecurityControlCommand extends $Command<
25
+ UpdateSecurityControlCommandInput,
26
+ UpdateSecurityControlCommandOutput,
27
+ SecurityHubClientResolvedConfig
28
+ > {
29
+ readonly input: UpdateSecurityControlCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: UpdateSecurityControlCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: SecurityHubClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ UpdateSecurityControlCommandInput,
38
+ UpdateSecurityControlCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -46,6 +46,7 @@ export * from "./GetInsightsCommand";
46
46
  export * from "./GetInvitationsCountCommand";
47
47
  export * from "./GetMasterAccountCommand";
48
48
  export * from "./GetMembersCommand";
49
+ export * from "./GetSecurityControlDefinitionCommand";
49
50
  export * from "./InviteMembersCommand";
50
51
  export * from "./ListAutomationRulesCommand";
51
52
  export * from "./ListEnabledProductsForImportCommand";
@@ -63,5 +64,6 @@ export * from "./UpdateFindingAggregatorCommand";
63
64
  export * from "./UpdateFindingsCommand";
64
65
  export * from "./UpdateInsightCommand";
65
66
  export * from "./UpdateOrganizationConfigurationCommand";
67
+ export * from "./UpdateSecurityControlCommand";
66
68
  export * from "./UpdateSecurityHubConfigurationCommand";
67
69
  export * from "./UpdateStandardsControlCommand";
@@ -265,6 +265,8 @@ export interface StringFilter {
265
265
  export interface NumberFilter {
266
266
  Gte?: number;
267
267
  Lte?: number;
268
+ Gt?: number;
269
+ Lt?: number;
268
270
  Eq?: number;
269
271
  }
270
272
  export declare const DateRangeUnit: {
@@ -1442,6 +1442,10 @@ export interface AwsSecretsManagerSecretDetails {
1442
1442
  Name?: string;
1443
1443
  Description?: string;
1444
1444
  }
1445
+ export interface SecurityControlParameter {
1446
+ Name?: string;
1447
+ Value?: string[];
1448
+ }
1445
1449
  export declare const ComplianceStatus: {
1446
1450
  readonly FAILED: "FAILED";
1447
1451
  readonly NOT_AVAILABLE: "NOT_AVAILABLE";
@@ -1460,6 +1464,7 @@ export interface Compliance {
1460
1464
  StatusReasons?: StatusReason[];
1461
1465
  SecurityControlId?: string;
1462
1466
  AssociatedStandards?: AssociatedStandard[];
1467
+ SecurityControlParameters?: SecurityControlParameter[];
1463
1468
  }
1464
1469
  export interface FindingProviderSeverity {
1465
1470
  Label?: SeverityLabel;
@@ -1842,9 +1847,3 @@ export interface AwsWafv2RulesActionCaptchaDetails {
1842
1847
  export interface AwsWafv2RulesActionCountDetails {
1843
1848
  CustomRequestHandling?: AwsWafv2CustomRequestHandlingDetails;
1844
1849
  }
1845
- export interface AwsWafv2RulesActionDetails {
1846
- Allow?: AwsWafv2ActionAllowDetails;
1847
- Block?: AwsWafv2ActionBlockDetails;
1848
- Captcha?: AwsWafv2RulesActionCaptchaDetails;
1849
- Count?: AwsWafv2RulesActionCountDetails;
1850
- }