@aws-sdk/client-securityhub 3.348.0 → 3.352.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 (52) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/SecurityHub.js +10 -0
  3. package/dist-cjs/commands/BatchDeleteAutomationRulesCommand.js +46 -0
  4. package/dist-cjs/commands/BatchGetAutomationRulesCommand.js +46 -0
  5. package/dist-cjs/commands/BatchUpdateAutomationRulesCommand.js +46 -0
  6. package/dist-cjs/commands/CreateAutomationRuleCommand.js +46 -0
  7. package/dist-cjs/commands/ListAutomationRulesCommand.js +46 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +40 -1
  10. package/dist-cjs/models/models_1.js +1 -44
  11. package/dist-cjs/models/models_2.js +12 -1
  12. package/dist-cjs/protocols/Aws_restJson1.js +553 -3
  13. package/dist-es/SecurityHub.js +10 -0
  14. package/dist-es/commands/BatchDeleteAutomationRulesCommand.js +42 -0
  15. package/dist-es/commands/BatchGetAutomationRulesCommand.js +42 -0
  16. package/dist-es/commands/BatchUpdateAutomationRulesCommand.js +42 -0
  17. package/dist-es/commands/CreateAutomationRuleCommand.js +42 -0
  18. package/dist-es/commands/ListAutomationRulesCommand.js +42 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +39 -0
  21. package/dist-es/models/models_1.js +0 -43
  22. package/dist-es/models/models_2.js +11 -0
  23. package/dist-es/protocols/Aws_restJson1.js +540 -0
  24. package/dist-types/SecurityHub.d.ts +35 -0
  25. package/dist-types/SecurityHubClient.d.ts +7 -2
  26. package/dist-types/commands/BatchDeleteAutomationRulesCommand.d.ts +103 -0
  27. package/dist-types/commands/BatchDisableStandardsCommand.d.ts +1 -1
  28. package/dist-types/commands/BatchEnableStandardsCommand.d.ts +1 -1
  29. package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +288 -0
  30. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +282 -0
  31. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +270 -0
  32. package/dist-types/commands/ListAutomationRulesCommand.d.ts +106 -0
  33. package/dist-types/commands/index.d.ts +5 -0
  34. package/dist-types/models/models_0.d.ts +6010 -5729
  35. package/dist-types/models/models_1.d.ts +645 -439
  36. package/dist-types/models/models_2.d.ts +423 -108
  37. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  38. package/dist-types/ts3.4/SecurityHub.d.ts +85 -0
  39. package/dist-types/ts3.4/SecurityHubClient.d.ts +30 -0
  40. package/dist-types/ts3.4/commands/BatchDeleteAutomationRulesCommand.d.ts +42 -0
  41. package/dist-types/ts3.4/commands/BatchDisableStandardsCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/BatchEnableStandardsCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/BatchGetAutomationRulesCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/BatchUpdateAutomationRulesCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +39 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +167 -136
  49. package/dist-types/ts3.4/models/models_1.d.ts +145 -123
  50. package/dist-types/ts3.4/models/models_2.d.ts +112 -16
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  52. package/package.json +6 -6
@@ -5,19 +5,87 @@ import {
5
5
  AdminAccount,
6
6
  AssociationStatus,
7
7
  AutoEnableStandards,
8
+ AutomationRulesAction,
9
+ AutomationRulesConfig,
10
+ AutomationRulesFindingFilters,
11
+ AutomationRulesMetadata,
12
+ NoteUpdate,
13
+ RelatedFinding,
14
+ RuleStatus,
15
+ SeverityUpdate,
16
+ VerificationState,
17
+ WorkflowUpdate,
8
18
  } from "./models_0";
9
19
  import {
10
20
  AwsSecurityFinding,
11
21
  AwsSecurityFindingFilters,
12
- AwsSecurityFindingIdentifier,
13
22
  RecordState,
14
- RelatedFinding,
15
- SeverityLabel,
16
- StandardsSubscription,
17
- VerificationState,
18
- WorkflowStatus,
19
23
  } from "./models_1";
20
24
  import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
25
+ export interface AwsSecurityFindingIdentifier {
26
+ Id: string | undefined;
27
+ ProductArn: string | undefined;
28
+ }
29
+ export interface BatchDeleteAutomationRulesRequest {
30
+ AutomationRulesArns: string[] | undefined;
31
+ }
32
+ export interface UnprocessedAutomationRule {
33
+ RuleArn?: string;
34
+ ErrorCode?: number;
35
+ ErrorMessage?: string;
36
+ }
37
+ export interface BatchDeleteAutomationRulesResponse {
38
+ ProcessedAutomationRules?: string[];
39
+ UnprocessedAutomationRules?: UnprocessedAutomationRule[];
40
+ }
41
+ export interface BatchDisableStandardsRequest {
42
+ StandardsSubscriptionArns: string[] | undefined;
43
+ }
44
+ export declare const StandardsStatus: {
45
+ readonly DELETING: "DELETING";
46
+ readonly FAILED: "FAILED";
47
+ readonly INCOMPLETE: "INCOMPLETE";
48
+ readonly PENDING: "PENDING";
49
+ readonly READY: "READY";
50
+ };
51
+ export type StandardsStatus =
52
+ (typeof StandardsStatus)[keyof typeof StandardsStatus];
53
+ export declare const StatusReasonCode: {
54
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
55
+ readonly NO_AVAILABLE_CONFIGURATION_RECORDER: "NO_AVAILABLE_CONFIGURATION_RECORDER";
56
+ };
57
+ export type StatusReasonCode =
58
+ (typeof StatusReasonCode)[keyof typeof StatusReasonCode];
59
+ export interface StandardsStatusReason {
60
+ StatusReasonCode: StatusReasonCode | string | undefined;
61
+ }
62
+ export interface StandardsSubscription {
63
+ StandardsSubscriptionArn: string | undefined;
64
+ StandardsArn: string | undefined;
65
+ StandardsInput: Record<string, string> | undefined;
66
+ StandardsStatus: StandardsStatus | string | undefined;
67
+ StandardsStatusReason?: StandardsStatusReason;
68
+ }
69
+ export interface BatchDisableStandardsResponse {
70
+ StandardsSubscriptions?: StandardsSubscription[];
71
+ }
72
+ export interface StandardsSubscriptionRequest {
73
+ StandardsArn: string | undefined;
74
+ StandardsInput?: Record<string, string>;
75
+ }
76
+ export interface BatchEnableStandardsRequest {
77
+ StandardsSubscriptionRequests: StandardsSubscriptionRequest[] | undefined;
78
+ }
79
+ export interface BatchEnableStandardsResponse {
80
+ StandardsSubscriptions?: StandardsSubscription[];
81
+ }
82
+ export interface BatchGetAutomationRulesRequest {
83
+ AutomationRulesArns: string[] | undefined;
84
+ }
85
+ export interface BatchGetAutomationRulesResponse {
86
+ Rules?: AutomationRulesConfig[];
87
+ UnprocessedAutomationRules?: UnprocessedAutomationRule[];
88
+ }
21
89
  export interface BatchGetSecurityControlsRequest {
22
90
  SecurityControlIds: string[] | undefined;
23
91
  }
@@ -103,17 +171,24 @@ export interface BatchImportFindingsResponse {
103
171
  SuccessCount: number | undefined;
104
172
  FailedFindings?: ImportFindingsError[];
105
173
  }
106
- export interface NoteUpdate {
107
- Text: string | undefined;
108
- UpdatedBy: string | undefined;
109
- }
110
- export interface SeverityUpdate {
111
- Normalized?: number;
112
- Product?: number;
113
- Label?: SeverityLabel | string;
174
+ export interface UpdateAutomationRulesRequestItem {
175
+ RuleArn: string | undefined;
176
+ RuleStatus?: RuleStatus | string;
177
+ RuleOrder?: number;
178
+ Description?: string;
179
+ RuleName?: string;
180
+ IsTerminal?: boolean;
181
+ Criteria?: AutomationRulesFindingFilters;
182
+ Actions?: AutomationRulesAction[];
183
+ }
184
+ export interface BatchUpdateAutomationRulesRequest {
185
+ UpdateAutomationRulesRequestItems:
186
+ | UpdateAutomationRulesRequestItem[]
187
+ | undefined;
114
188
  }
115
- export interface WorkflowUpdate {
116
- Status?: WorkflowStatus | string;
189
+ export interface BatchUpdateAutomationRulesResponse {
190
+ ProcessedAutomationRules?: string[];
191
+ UnprocessedAutomationRules?: UnprocessedAutomationRule[];
117
192
  }
118
193
  export interface BatchUpdateFindingsRequest {
119
194
  FindingIdentifiers: AwsSecurityFindingIdentifier[] | undefined;
@@ -180,6 +255,19 @@ export declare class ResourceConflictException extends __BaseException {
180
255
  opts: __ExceptionOptionType<ResourceConflictException, __BaseException>
181
256
  );
182
257
  }
258
+ export interface CreateAutomationRuleRequest {
259
+ Tags?: Record<string, string>;
260
+ RuleStatus?: RuleStatus | string;
261
+ RuleOrder: number | undefined;
262
+ RuleName: string | undefined;
263
+ Description: string | undefined;
264
+ IsTerminal?: boolean;
265
+ Criteria: AutomationRulesFindingFilters | undefined;
266
+ Actions: AutomationRulesAction[] | undefined;
267
+ }
268
+ export interface CreateAutomationRuleResponse {
269
+ RuleArn?: string;
270
+ }
183
271
  export interface CreateFindingAggregatorRequest {
184
272
  RegionLinkingMode: string | undefined;
185
273
  Regions?: string[];
@@ -511,6 +599,14 @@ export interface InviteMembersRequest {
511
599
  export interface InviteMembersResponse {
512
600
  UnprocessedAccounts?: Result[];
513
601
  }
602
+ export interface ListAutomationRulesRequest {
603
+ NextToken?: string;
604
+ MaxResults?: number;
605
+ }
606
+ export interface ListAutomationRulesResponse {
607
+ AutomationRulesMetadata?: AutomationRulesMetadata[];
608
+ NextToken?: string;
609
+ }
514
610
  export interface ListEnabledProductsForImportRequest {
515
611
  NextToken?: string;
516
612
  MaxResults?: number;
@@ -11,6 +11,10 @@ import {
11
11
  AcceptInvitationCommandInput,
12
12
  AcceptInvitationCommandOutput,
13
13
  } from "../commands/AcceptInvitationCommand";
14
+ import {
15
+ BatchDeleteAutomationRulesCommandInput,
16
+ BatchDeleteAutomationRulesCommandOutput,
17
+ } from "../commands/BatchDeleteAutomationRulesCommand";
14
18
  import {
15
19
  BatchDisableStandardsCommandInput,
16
20
  BatchDisableStandardsCommandOutput,
@@ -19,6 +23,10 @@ import {
19
23
  BatchEnableStandardsCommandInput,
20
24
  BatchEnableStandardsCommandOutput,
21
25
  } from "../commands/BatchEnableStandardsCommand";
26
+ import {
27
+ BatchGetAutomationRulesCommandInput,
28
+ BatchGetAutomationRulesCommandOutput,
29
+ } from "../commands/BatchGetAutomationRulesCommand";
22
30
  import {
23
31
  BatchGetSecurityControlsCommandInput,
24
32
  BatchGetSecurityControlsCommandOutput,
@@ -31,6 +39,10 @@ import {
31
39
  BatchImportFindingsCommandInput,
32
40
  BatchImportFindingsCommandOutput,
33
41
  } from "../commands/BatchImportFindingsCommand";
42
+ import {
43
+ BatchUpdateAutomationRulesCommandInput,
44
+ BatchUpdateAutomationRulesCommandOutput,
45
+ } from "../commands/BatchUpdateAutomationRulesCommand";
34
46
  import {
35
47
  BatchUpdateFindingsCommandInput,
36
48
  BatchUpdateFindingsCommandOutput,
@@ -43,6 +55,10 @@ import {
43
55
  CreateActionTargetCommandInput,
44
56
  CreateActionTargetCommandOutput,
45
57
  } from "../commands/CreateActionTargetCommand";
58
+ import {
59
+ CreateAutomationRuleCommandInput,
60
+ CreateAutomationRuleCommandOutput,
61
+ } from "../commands/CreateAutomationRuleCommand";
46
62
  import {
47
63
  CreateFindingAggregatorCommandInput,
48
64
  CreateFindingAggregatorCommandOutput,
@@ -183,6 +199,10 @@ import {
183
199
  InviteMembersCommandInput,
184
200
  InviteMembersCommandOutput,
185
201
  } from "../commands/InviteMembersCommand";
202
+ import {
203
+ ListAutomationRulesCommandInput,
204
+ ListAutomationRulesCommandOutput,
205
+ } from "../commands/ListAutomationRulesCommand";
186
206
  import {
187
207
  ListEnabledProductsForImportCommandInput,
188
208
  ListEnabledProductsForImportCommandOutput,
@@ -259,6 +279,10 @@ export declare const se_AcceptInvitationCommand: (
259
279
  input: AcceptInvitationCommandInput,
260
280
  context: __SerdeContext
261
281
  ) => Promise<__HttpRequest>;
282
+ export declare const se_BatchDeleteAutomationRulesCommand: (
283
+ input: BatchDeleteAutomationRulesCommandInput,
284
+ context: __SerdeContext
285
+ ) => Promise<__HttpRequest>;
262
286
  export declare const se_BatchDisableStandardsCommand: (
263
287
  input: BatchDisableStandardsCommandInput,
264
288
  context: __SerdeContext
@@ -267,6 +291,10 @@ export declare const se_BatchEnableStandardsCommand: (
267
291
  input: BatchEnableStandardsCommandInput,
268
292
  context: __SerdeContext
269
293
  ) => Promise<__HttpRequest>;
294
+ export declare const se_BatchGetAutomationRulesCommand: (
295
+ input: BatchGetAutomationRulesCommandInput,
296
+ context: __SerdeContext
297
+ ) => Promise<__HttpRequest>;
270
298
  export declare const se_BatchGetSecurityControlsCommand: (
271
299
  input: BatchGetSecurityControlsCommandInput,
272
300
  context: __SerdeContext
@@ -279,6 +307,10 @@ export declare const se_BatchImportFindingsCommand: (
279
307
  input: BatchImportFindingsCommandInput,
280
308
  context: __SerdeContext
281
309
  ) => Promise<__HttpRequest>;
310
+ export declare const se_BatchUpdateAutomationRulesCommand: (
311
+ input: BatchUpdateAutomationRulesCommandInput,
312
+ context: __SerdeContext
313
+ ) => Promise<__HttpRequest>;
282
314
  export declare const se_BatchUpdateFindingsCommand: (
283
315
  input: BatchUpdateFindingsCommandInput,
284
316
  context: __SerdeContext
@@ -291,6 +323,10 @@ export declare const se_CreateActionTargetCommand: (
291
323
  input: CreateActionTargetCommandInput,
292
324
  context: __SerdeContext
293
325
  ) => Promise<__HttpRequest>;
326
+ export declare const se_CreateAutomationRuleCommand: (
327
+ input: CreateAutomationRuleCommandInput,
328
+ context: __SerdeContext
329
+ ) => Promise<__HttpRequest>;
294
330
  export declare const se_CreateFindingAggregatorCommand: (
295
331
  input: CreateFindingAggregatorCommandInput,
296
332
  context: __SerdeContext
@@ -431,6 +467,10 @@ export declare const se_InviteMembersCommand: (
431
467
  input: InviteMembersCommandInput,
432
468
  context: __SerdeContext
433
469
  ) => Promise<__HttpRequest>;
470
+ export declare const se_ListAutomationRulesCommand: (
471
+ input: ListAutomationRulesCommandInput,
472
+ context: __SerdeContext
473
+ ) => Promise<__HttpRequest>;
434
474
  export declare const se_ListEnabledProductsForImportCommand: (
435
475
  input: ListEnabledProductsForImportCommandInput,
436
476
  context: __SerdeContext
@@ -507,6 +547,10 @@ export declare const de_AcceptInvitationCommand: (
507
547
  output: __HttpResponse,
508
548
  context: __SerdeContext
509
549
  ) => Promise<AcceptInvitationCommandOutput>;
550
+ export declare const de_BatchDeleteAutomationRulesCommand: (
551
+ output: __HttpResponse,
552
+ context: __SerdeContext
553
+ ) => Promise<BatchDeleteAutomationRulesCommandOutput>;
510
554
  export declare const de_BatchDisableStandardsCommand: (
511
555
  output: __HttpResponse,
512
556
  context: __SerdeContext
@@ -515,6 +559,10 @@ export declare const de_BatchEnableStandardsCommand: (
515
559
  output: __HttpResponse,
516
560
  context: __SerdeContext
517
561
  ) => Promise<BatchEnableStandardsCommandOutput>;
562
+ export declare const de_BatchGetAutomationRulesCommand: (
563
+ output: __HttpResponse,
564
+ context: __SerdeContext
565
+ ) => Promise<BatchGetAutomationRulesCommandOutput>;
518
566
  export declare const de_BatchGetSecurityControlsCommand: (
519
567
  output: __HttpResponse,
520
568
  context: __SerdeContext
@@ -527,6 +575,10 @@ export declare const de_BatchImportFindingsCommand: (
527
575
  output: __HttpResponse,
528
576
  context: __SerdeContext
529
577
  ) => Promise<BatchImportFindingsCommandOutput>;
578
+ export declare const de_BatchUpdateAutomationRulesCommand: (
579
+ output: __HttpResponse,
580
+ context: __SerdeContext
581
+ ) => Promise<BatchUpdateAutomationRulesCommandOutput>;
530
582
  export declare const de_BatchUpdateFindingsCommand: (
531
583
  output: __HttpResponse,
532
584
  context: __SerdeContext
@@ -539,6 +591,10 @@ export declare const de_CreateActionTargetCommand: (
539
591
  output: __HttpResponse,
540
592
  context: __SerdeContext
541
593
  ) => Promise<CreateActionTargetCommandOutput>;
594
+ export declare const de_CreateAutomationRuleCommand: (
595
+ output: __HttpResponse,
596
+ context: __SerdeContext
597
+ ) => Promise<CreateAutomationRuleCommandOutput>;
542
598
  export declare const de_CreateFindingAggregatorCommand: (
543
599
  output: __HttpResponse,
544
600
  context: __SerdeContext
@@ -679,6 +735,10 @@ export declare const de_InviteMembersCommand: (
679
735
  output: __HttpResponse,
680
736
  context: __SerdeContext
681
737
  ) => Promise<InviteMembersCommandOutput>;
738
+ export declare const de_ListAutomationRulesCommand: (
739
+ output: __HttpResponse,
740
+ context: __SerdeContext
741
+ ) => Promise<ListAutomationRulesCommandOutput>;
682
742
  export declare const de_ListEnabledProductsForImportCommand: (
683
743
  output: __HttpResponse,
684
744
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-securityhub",
3
3
  "description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
4
- "version": "3.348.0",
4
+ "version": "3.352.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.348.0",
24
+ "@aws-sdk/client-sts": "3.352.0",
25
25
  "@aws-sdk/config-resolver": "3.347.0",
26
- "@aws-sdk/credential-provider-node": "3.348.0",
26
+ "@aws-sdk/credential-provider-node": "3.352.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.347.0",
28
28
  "@aws-sdk/hash-node": "3.347.0",
29
29
  "@aws-sdk/invalid-dependency": "3.347.0",
@@ -36,9 +36,9 @@
36
36
  "@aws-sdk/middleware-serde": "3.347.0",
37
37
  "@aws-sdk/middleware-signing": "3.347.0",
38
38
  "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.347.0",
39
+ "@aws-sdk/middleware-user-agent": "3.352.0",
40
40
  "@aws-sdk/node-config-provider": "3.347.0",
41
- "@aws-sdk/node-http-handler": "3.348.0",
41
+ "@aws-sdk/node-http-handler": "3.350.0",
42
42
  "@aws-sdk/smithy-client": "3.347.0",
43
43
  "@aws-sdk/types": "3.347.0",
44
44
  "@aws-sdk/url-parser": "3.347.0",
@@ -47,7 +47,7 @@
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.347.0",
49
49
  "@aws-sdk/util-defaults-mode-node": "3.347.0",
50
- "@aws-sdk/util-endpoints": "3.347.0",
50
+ "@aws-sdk/util-endpoints": "3.352.0",
51
51
  "@aws-sdk/util-retry": "3.347.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.347.0",
53
53
  "@aws-sdk/util-user-agent-node": "3.347.0",