@aws-sdk/client-securityhub 3.350.0 → 3.353.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 +131 -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 +384 -0
  30. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +311 -0
  31. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +339 -0
  32. package/dist-types/commands/ListAutomationRulesCommand.d.ts +145 -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 +13 -13
@@ -0,0 +1,311 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { BatchUpdateAutomationRulesRequest, BatchUpdateAutomationRulesResponse } from "../models/models_2";
5
+ import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link BatchUpdateAutomationRulesCommand}.
14
+ */
15
+ export interface BatchUpdateAutomationRulesCommandInput extends BatchUpdateAutomationRulesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchUpdateAutomationRulesCommand}.
21
+ */
22
+ export interface BatchUpdateAutomationRulesCommandOutput extends BatchUpdateAutomationRulesResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>
27
+ * Updates one or more automation rules based on rule Amazon Resource Names (ARNs)
28
+ * and input parameters.
29
+ * </p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { SecurityHubClient, BatchUpdateAutomationRulesCommand } from "@aws-sdk/client-securityhub"; // ES Modules import
34
+ * // const { SecurityHubClient, BatchUpdateAutomationRulesCommand } = require("@aws-sdk/client-securityhub"); // CommonJS import
35
+ * const client = new SecurityHubClient(config);
36
+ * const input = { // BatchUpdateAutomationRulesRequest
37
+ * UpdateAutomationRulesRequestItems: [ // UpdateAutomationRulesRequestItemsList // required
38
+ * { // UpdateAutomationRulesRequestItem
39
+ * RuleArn: "STRING_VALUE", // required
40
+ * RuleStatus: "ENABLED" || "DISABLED",
41
+ * RuleOrder: Number("int"),
42
+ * Description: "STRING_VALUE",
43
+ * RuleName: "STRING_VALUE",
44
+ * IsTerminal: true || false,
45
+ * Criteria: { // AutomationRulesFindingFilters
46
+ * ProductArn: [ // StringFilterList
47
+ * { // StringFilter
48
+ * Value: "STRING_VALUE",
49
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
50
+ * },
51
+ * ],
52
+ * AwsAccountId: [
53
+ * {
54
+ * Value: "STRING_VALUE",
55
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
56
+ * },
57
+ * ],
58
+ * Id: [
59
+ * {
60
+ * Value: "STRING_VALUE",
61
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
62
+ * },
63
+ * ],
64
+ * GeneratorId: [
65
+ * {
66
+ * Value: "STRING_VALUE",
67
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
68
+ * },
69
+ * ],
70
+ * Type: [
71
+ * {
72
+ * Value: "STRING_VALUE",
73
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
74
+ * },
75
+ * ],
76
+ * FirstObservedAt: [ // DateFilterList
77
+ * { // DateFilter
78
+ * Start: "STRING_VALUE",
79
+ * End: "STRING_VALUE",
80
+ * DateRange: { // DateRange
81
+ * Value: Number("int"),
82
+ * Unit: "DAYS",
83
+ * },
84
+ * },
85
+ * ],
86
+ * LastObservedAt: [
87
+ * {
88
+ * Start: "STRING_VALUE",
89
+ * End: "STRING_VALUE",
90
+ * DateRange: {
91
+ * Value: Number("int"),
92
+ * Unit: "DAYS",
93
+ * },
94
+ * },
95
+ * ],
96
+ * CreatedAt: [
97
+ * {
98
+ * Start: "STRING_VALUE",
99
+ * End: "STRING_VALUE",
100
+ * DateRange: {
101
+ * Value: Number("int"),
102
+ * Unit: "DAYS",
103
+ * },
104
+ * },
105
+ * ],
106
+ * UpdatedAt: [
107
+ * {
108
+ * Start: "STRING_VALUE",
109
+ * End: "STRING_VALUE",
110
+ * DateRange: {
111
+ * Value: Number("int"),
112
+ * Unit: "DAYS",
113
+ * },
114
+ * },
115
+ * ],
116
+ * Confidence: [ // NumberFilterList
117
+ * { // NumberFilter
118
+ * Gte: Number("double"),
119
+ * Lte: Number("double"),
120
+ * Eq: Number("double"),
121
+ * },
122
+ * ],
123
+ * Criticality: [
124
+ * {
125
+ * Gte: Number("double"),
126
+ * Lte: Number("double"),
127
+ * Eq: Number("double"),
128
+ * },
129
+ * ],
130
+ * Title: "<StringFilterList>",
131
+ * Description: "<StringFilterList>",
132
+ * SourceUrl: "<StringFilterList>",
133
+ * ProductName: "<StringFilterList>",
134
+ * CompanyName: "<StringFilterList>",
135
+ * SeverityLabel: "<StringFilterList>",
136
+ * ResourceType: "<StringFilterList>",
137
+ * ResourceId: "<StringFilterList>",
138
+ * ResourcePartition: "<StringFilterList>",
139
+ * ResourceRegion: "<StringFilterList>",
140
+ * ResourceTags: [ // MapFilterList
141
+ * { // MapFilter
142
+ * Key: "STRING_VALUE",
143
+ * Value: "STRING_VALUE",
144
+ * Comparison: "EQUALS" || "NOT_EQUALS",
145
+ * },
146
+ * ],
147
+ * ResourceDetailsOther: [
148
+ * {
149
+ * Key: "STRING_VALUE",
150
+ * Value: "STRING_VALUE",
151
+ * Comparison: "EQUALS" || "NOT_EQUALS",
152
+ * },
153
+ * ],
154
+ * ComplianceStatus: "<StringFilterList>",
155
+ * ComplianceSecurityControlId: "<StringFilterList>",
156
+ * ComplianceAssociatedStandardsId: "<StringFilterList>",
157
+ * VerificationState: "<StringFilterList>",
158
+ * WorkflowStatus: "<StringFilterList>",
159
+ * RecordState: "<StringFilterList>",
160
+ * RelatedFindingsProductArn: "<StringFilterList>",
161
+ * RelatedFindingsId: "<StringFilterList>",
162
+ * NoteText: "<StringFilterList>",
163
+ * NoteUpdatedAt: [
164
+ * {
165
+ * Start: "STRING_VALUE",
166
+ * End: "STRING_VALUE",
167
+ * DateRange: {
168
+ * Value: Number("int"),
169
+ * Unit: "DAYS",
170
+ * },
171
+ * },
172
+ * ],
173
+ * NoteUpdatedBy: "<StringFilterList>",
174
+ * UserDefinedFields: [
175
+ * {
176
+ * Key: "STRING_VALUE",
177
+ * Value: "STRING_VALUE",
178
+ * Comparison: "EQUALS" || "NOT_EQUALS",
179
+ * },
180
+ * ],
181
+ * },
182
+ * Actions: [ // ActionList
183
+ * { // AutomationRulesAction
184
+ * Type: "FINDING_FIELDS_UPDATE",
185
+ * FindingFieldsUpdate: { // AutomationRulesFindingFieldsUpdate
186
+ * Note: { // NoteUpdate
187
+ * Text: "STRING_VALUE", // required
188
+ * UpdatedBy: "STRING_VALUE", // required
189
+ * },
190
+ * Severity: { // SeverityUpdate
191
+ * Normalized: Number("int"),
192
+ * Product: Number("double"),
193
+ * Label: "INFORMATIONAL" || "LOW" || "MEDIUM" || "HIGH" || "CRITICAL",
194
+ * },
195
+ * VerificationState: "UNKNOWN" || "TRUE_POSITIVE" || "FALSE_POSITIVE" || "BENIGN_POSITIVE",
196
+ * Confidence: Number("int"),
197
+ * Criticality: Number("int"),
198
+ * Types: [ // TypeList
199
+ * "STRING_VALUE",
200
+ * ],
201
+ * UserDefinedFields: { // FieldMap
202
+ * "<keys>": "STRING_VALUE",
203
+ * },
204
+ * Workflow: { // WorkflowUpdate
205
+ * Status: "NEW" || "NOTIFIED" || "RESOLVED" || "SUPPRESSED",
206
+ * },
207
+ * RelatedFindings: [ // RelatedFindingList
208
+ * { // RelatedFinding
209
+ * ProductArn: "STRING_VALUE", // required
210
+ * Id: "STRING_VALUE", // required
211
+ * },
212
+ * ],
213
+ * },
214
+ * },
215
+ * ],
216
+ * },
217
+ * ],
218
+ * };
219
+ * const command = new BatchUpdateAutomationRulesCommand(input);
220
+ * const response = await client.send(command);
221
+ * // { // BatchUpdateAutomationRulesResponse
222
+ * // ProcessedAutomationRules: [ // AutomationRulesArnsList
223
+ * // "STRING_VALUE",
224
+ * // ],
225
+ * // UnprocessedAutomationRules: [ // UnprocessedAutomationRulesList
226
+ * // { // UnprocessedAutomationRule
227
+ * // RuleArn: "STRING_VALUE",
228
+ * // ErrorCode: Number("int"),
229
+ * // ErrorMessage: "STRING_VALUE",
230
+ * // },
231
+ * // ],
232
+ * // };
233
+ *
234
+ * ```
235
+ *
236
+ * @param BatchUpdateAutomationRulesCommandInput - {@link BatchUpdateAutomationRulesCommandInput}
237
+ * @returns {@link BatchUpdateAutomationRulesCommandOutput}
238
+ * @see {@link BatchUpdateAutomationRulesCommandInput} for command's `input` shape.
239
+ * @see {@link BatchUpdateAutomationRulesCommandOutput} for command's `response` shape.
240
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
241
+ *
242
+ * @throws {@link InternalException} (server fault)
243
+ * <p>Internal server error.</p>
244
+ *
245
+ * @throws {@link InvalidAccessException} (client fault)
246
+ * <p>The account doesn't have permission to perform this action.</p>
247
+ *
248
+ * @throws {@link InvalidInputException} (client fault)
249
+ * <p>The request was rejected because you supplied an invalid or out-of-range value for an
250
+ * input parameter.</p>
251
+ *
252
+ * @throws {@link LimitExceededException} (client fault)
253
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
254
+ * account or throttling limits. The error code describes the limit exceeded.</p>
255
+ *
256
+ * @throws {@link ResourceNotFoundException} (client fault)
257
+ * <p>The request was rejected because we can't find the specified resource.</p>
258
+ *
259
+ * @throws {@link SecurityHubServiceException}
260
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
261
+ *
262
+ * @example To update one ore more automation rules
263
+ * ```javascript
264
+ * // The following example updates the specified automation rules.
265
+ * const input = {
266
+ * "UpdateAutomationRulesRequestItems": [
267
+ * {
268
+ * "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
269
+ * "RuleOrder": 15,
270
+ * "RuleStatus": "ENABLED"
271
+ * },
272
+ * {
273
+ * "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
274
+ * "RuleStatus": "DISABLED"
275
+ * }
276
+ * ]
277
+ * };
278
+ * const command = new BatchUpdateAutomationRulesCommand(input);
279
+ * const response = await client.send(command);
280
+ * /* response ==
281
+ * {
282
+ * "ProcessedAutomationRules": [
283
+ * "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
284
+ * "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
285
+ * ]
286
+ * }
287
+ * *\/
288
+ * // example id: to-update-one-ore-more-automation-rules-1684771025347
289
+ * ```
290
+ *
291
+ */
292
+ export declare class BatchUpdateAutomationRulesCommand extends $Command<BatchUpdateAutomationRulesCommandInput, BatchUpdateAutomationRulesCommandOutput, SecurityHubClientResolvedConfig> {
293
+ readonly input: BatchUpdateAutomationRulesCommandInput;
294
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
295
+ /**
296
+ * @public
297
+ */
298
+ constructor(input: BatchUpdateAutomationRulesCommandInput);
299
+ /**
300
+ * @internal
301
+ */
302
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchUpdateAutomationRulesCommandInput, BatchUpdateAutomationRulesCommandOutput>;
303
+ /**
304
+ * @internal
305
+ */
306
+ private serialize;
307
+ /**
308
+ * @internal
309
+ */
310
+ private deserialize;
311
+ }
@@ -0,0 +1,339 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CreateAutomationRuleRequest, CreateAutomationRuleResponse } from "../models/models_2";
5
+ import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateAutomationRuleCommand}.
14
+ */
15
+ export interface CreateAutomationRuleCommandInput extends CreateAutomationRuleRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAutomationRuleCommand}.
21
+ */
22
+ export interface CreateAutomationRuleCommandOutput extends CreateAutomationRuleResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>
27
+ * Creates an automation rule based on input parameters.
28
+ * </p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { SecurityHubClient, CreateAutomationRuleCommand } from "@aws-sdk/client-securityhub"; // ES Modules import
33
+ * // const { SecurityHubClient, CreateAutomationRuleCommand } = require("@aws-sdk/client-securityhub"); // CommonJS import
34
+ * const client = new SecurityHubClient(config);
35
+ * const input = { // CreateAutomationRuleRequest
36
+ * Tags: { // TagMap
37
+ * "<keys>": "STRING_VALUE",
38
+ * },
39
+ * RuleStatus: "ENABLED" || "DISABLED",
40
+ * RuleOrder: Number("int"), // required
41
+ * RuleName: "STRING_VALUE", // required
42
+ * Description: "STRING_VALUE", // required
43
+ * IsTerminal: true || false,
44
+ * Criteria: { // AutomationRulesFindingFilters
45
+ * ProductArn: [ // StringFilterList
46
+ * { // StringFilter
47
+ * Value: "STRING_VALUE",
48
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
49
+ * },
50
+ * ],
51
+ * AwsAccountId: [
52
+ * {
53
+ * Value: "STRING_VALUE",
54
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
55
+ * },
56
+ * ],
57
+ * Id: [
58
+ * {
59
+ * Value: "STRING_VALUE",
60
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
61
+ * },
62
+ * ],
63
+ * GeneratorId: [
64
+ * {
65
+ * Value: "STRING_VALUE",
66
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
67
+ * },
68
+ * ],
69
+ * Type: [
70
+ * {
71
+ * Value: "STRING_VALUE",
72
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
73
+ * },
74
+ * ],
75
+ * FirstObservedAt: [ // DateFilterList
76
+ * { // DateFilter
77
+ * Start: "STRING_VALUE",
78
+ * End: "STRING_VALUE",
79
+ * DateRange: { // DateRange
80
+ * Value: Number("int"),
81
+ * Unit: "DAYS",
82
+ * },
83
+ * },
84
+ * ],
85
+ * LastObservedAt: [
86
+ * {
87
+ * Start: "STRING_VALUE",
88
+ * End: "STRING_VALUE",
89
+ * DateRange: {
90
+ * Value: Number("int"),
91
+ * Unit: "DAYS",
92
+ * },
93
+ * },
94
+ * ],
95
+ * CreatedAt: [
96
+ * {
97
+ * Start: "STRING_VALUE",
98
+ * End: "STRING_VALUE",
99
+ * DateRange: {
100
+ * Value: Number("int"),
101
+ * Unit: "DAYS",
102
+ * },
103
+ * },
104
+ * ],
105
+ * UpdatedAt: [
106
+ * {
107
+ * Start: "STRING_VALUE",
108
+ * End: "STRING_VALUE",
109
+ * DateRange: {
110
+ * Value: Number("int"),
111
+ * Unit: "DAYS",
112
+ * },
113
+ * },
114
+ * ],
115
+ * Confidence: [ // NumberFilterList
116
+ * { // NumberFilter
117
+ * Gte: Number("double"),
118
+ * Lte: Number("double"),
119
+ * Eq: Number("double"),
120
+ * },
121
+ * ],
122
+ * Criticality: [
123
+ * {
124
+ * Gte: Number("double"),
125
+ * Lte: Number("double"),
126
+ * Eq: Number("double"),
127
+ * },
128
+ * ],
129
+ * Title: "<StringFilterList>",
130
+ * Description: "<StringFilterList>",
131
+ * SourceUrl: "<StringFilterList>",
132
+ * ProductName: "<StringFilterList>",
133
+ * CompanyName: "<StringFilterList>",
134
+ * SeverityLabel: "<StringFilterList>",
135
+ * ResourceType: "<StringFilterList>",
136
+ * ResourceId: "<StringFilterList>",
137
+ * ResourcePartition: "<StringFilterList>",
138
+ * ResourceRegion: "<StringFilterList>",
139
+ * ResourceTags: [ // MapFilterList
140
+ * { // MapFilter
141
+ * Key: "STRING_VALUE",
142
+ * Value: "STRING_VALUE",
143
+ * Comparison: "EQUALS" || "NOT_EQUALS",
144
+ * },
145
+ * ],
146
+ * ResourceDetailsOther: [
147
+ * {
148
+ * Key: "STRING_VALUE",
149
+ * Value: "STRING_VALUE",
150
+ * Comparison: "EQUALS" || "NOT_EQUALS",
151
+ * },
152
+ * ],
153
+ * ComplianceStatus: "<StringFilterList>",
154
+ * ComplianceSecurityControlId: "<StringFilterList>",
155
+ * ComplianceAssociatedStandardsId: "<StringFilterList>",
156
+ * VerificationState: "<StringFilterList>",
157
+ * WorkflowStatus: "<StringFilterList>",
158
+ * RecordState: "<StringFilterList>",
159
+ * RelatedFindingsProductArn: "<StringFilterList>",
160
+ * RelatedFindingsId: "<StringFilterList>",
161
+ * NoteText: "<StringFilterList>",
162
+ * NoteUpdatedAt: [
163
+ * {
164
+ * Start: "STRING_VALUE",
165
+ * End: "STRING_VALUE",
166
+ * DateRange: {
167
+ * Value: Number("int"),
168
+ * Unit: "DAYS",
169
+ * },
170
+ * },
171
+ * ],
172
+ * NoteUpdatedBy: "<StringFilterList>",
173
+ * UserDefinedFields: [
174
+ * {
175
+ * Key: "STRING_VALUE",
176
+ * Value: "STRING_VALUE",
177
+ * Comparison: "EQUALS" || "NOT_EQUALS",
178
+ * },
179
+ * ],
180
+ * },
181
+ * Actions: [ // ActionList // required
182
+ * { // AutomationRulesAction
183
+ * Type: "FINDING_FIELDS_UPDATE",
184
+ * FindingFieldsUpdate: { // AutomationRulesFindingFieldsUpdate
185
+ * Note: { // NoteUpdate
186
+ * Text: "STRING_VALUE", // required
187
+ * UpdatedBy: "STRING_VALUE", // required
188
+ * },
189
+ * Severity: { // SeverityUpdate
190
+ * Normalized: Number("int"),
191
+ * Product: Number("double"),
192
+ * Label: "INFORMATIONAL" || "LOW" || "MEDIUM" || "HIGH" || "CRITICAL",
193
+ * },
194
+ * VerificationState: "UNKNOWN" || "TRUE_POSITIVE" || "FALSE_POSITIVE" || "BENIGN_POSITIVE",
195
+ * Confidence: Number("int"),
196
+ * Criticality: Number("int"),
197
+ * Types: [ // TypeList
198
+ * "STRING_VALUE",
199
+ * ],
200
+ * UserDefinedFields: { // FieldMap
201
+ * "<keys>": "STRING_VALUE",
202
+ * },
203
+ * Workflow: { // WorkflowUpdate
204
+ * Status: "NEW" || "NOTIFIED" || "RESOLVED" || "SUPPRESSED",
205
+ * },
206
+ * RelatedFindings: [ // RelatedFindingList
207
+ * { // RelatedFinding
208
+ * ProductArn: "STRING_VALUE", // required
209
+ * Id: "STRING_VALUE", // required
210
+ * },
211
+ * ],
212
+ * },
213
+ * },
214
+ * ],
215
+ * };
216
+ * const command = new CreateAutomationRuleCommand(input);
217
+ * const response = await client.send(command);
218
+ * // { // CreateAutomationRuleResponse
219
+ * // RuleArn: "STRING_VALUE",
220
+ * // };
221
+ *
222
+ * ```
223
+ *
224
+ * @param CreateAutomationRuleCommandInput - {@link CreateAutomationRuleCommandInput}
225
+ * @returns {@link CreateAutomationRuleCommandOutput}
226
+ * @see {@link CreateAutomationRuleCommandInput} for command's `input` shape.
227
+ * @see {@link CreateAutomationRuleCommandOutput} for command's `response` shape.
228
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
229
+ *
230
+ * @throws {@link AccessDeniedException} (client fault)
231
+ * <p>You don't have permission to perform the action specified in the request.</p>
232
+ *
233
+ * @throws {@link InternalException} (server fault)
234
+ * <p>Internal server error.</p>
235
+ *
236
+ * @throws {@link InvalidAccessException} (client fault)
237
+ * <p>The account doesn't have permission to perform this action.</p>
238
+ *
239
+ * @throws {@link InvalidInputException} (client fault)
240
+ * <p>The request was rejected because you supplied an invalid or out-of-range value for an
241
+ * input parameter.</p>
242
+ *
243
+ * @throws {@link LimitExceededException} (client fault)
244
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
245
+ * account or throttling limits. The error code describes the limit exceeded.</p>
246
+ *
247
+ * @throws {@link SecurityHubServiceException}
248
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
249
+ *
250
+ * @example To create an automation rule
251
+ * ```javascript
252
+ * // The following example creates an automation rule.
253
+ * const input = {
254
+ * "Actions": [
255
+ * {
256
+ * "FindingFieldsUpdate": {
257
+ * "Note": {
258
+ * "Text": "This is a critical S3 bucket, please look into this ASAP",
259
+ * "UpdatedBy": "test-user"
260
+ * },
261
+ * "Severity": {
262
+ * "Label": "CRITICAL"
263
+ * }
264
+ * },
265
+ * "Type": "FINDING_FIELDS_UPDATE"
266
+ * }
267
+ * ],
268
+ * "Criteria": {
269
+ * "ComplianceStatus": [
270
+ * {
271
+ * "Comparison": "EQUALS",
272
+ * "Value": "FAILED"
273
+ * }
274
+ * ],
275
+ * "ProductName": [
276
+ * {
277
+ * "Comparison": "EQUALS",
278
+ * "Value": "Security Hub"
279
+ * }
280
+ * ],
281
+ * "RecordState": [
282
+ * {
283
+ * "Comparison": "EQUALS",
284
+ * "Value": "ACTIVE"
285
+ * }
286
+ * ],
287
+ * "ResourceId": [
288
+ * {
289
+ * "Comparison": "EQUALS",
290
+ * "Value": "arn:aws:s3:::examplebucket/developers/design_info.doc"
291
+ * }
292
+ * ],
293
+ * "WorkflowStatus": [
294
+ * {
295
+ * "Comparison": "EQUALS",
296
+ * "Value": "NEW"
297
+ * }
298
+ * ]
299
+ * },
300
+ * "Description": "Elevate finding severity to Critical for important resources",
301
+ * "IsTerminal": false,
302
+ * "RuleName": "Elevate severity for important resources",
303
+ * "RuleOrder": 1,
304
+ * "RuleStatus": "ENABLED",
305
+ * "Tags": {
306
+ * "important-resources-rule": "s3-bucket"
307
+ * }
308
+ * };
309
+ * const command = new CreateAutomationRuleCommand(input);
310
+ * const response = await client.send(command);
311
+ * /* response ==
312
+ * {
313
+ * "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
314
+ * }
315
+ * *\/
316
+ * // example id: to-create-an-automation-rule-1684768393507
317
+ * ```
318
+ *
319
+ */
320
+ export declare class CreateAutomationRuleCommand extends $Command<CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput, SecurityHubClientResolvedConfig> {
321
+ readonly input: CreateAutomationRuleCommandInput;
322
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
323
+ /**
324
+ * @public
325
+ */
326
+ constructor(input: CreateAutomationRuleCommandInput);
327
+ /**
328
+ * @internal
329
+ */
330
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput>;
331
+ /**
332
+ * @internal
333
+ */
334
+ private serialize;
335
+ /**
336
+ * @internal
337
+ */
338
+ private deserialize;
339
+ }