@aws-sdk/client-securityhub 3.352.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.
@@ -80,6 +80,34 @@ export interface BatchDeleteAutomationRulesCommandOutput extends BatchDeleteAuto
80
80
  * @throws {@link SecurityHubServiceException}
81
81
  * <p>Base exception class for all service exceptions from SecurityHub service.</p>
82
82
  *
83
+ * @example To delete one or more automation rules
84
+ * ```javascript
85
+ * // The following example deletes the specified automation rules.
86
+ * const input = {
87
+ * "AutomationRulesArns": [
88
+ * "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
89
+ * "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
90
+ * ]
91
+ * };
92
+ * const command = new BatchDeleteAutomationRulesCommand(input);
93
+ * const response = await client.send(command);
94
+ * /* response ==
95
+ * {
96
+ * "ProcessedAutomationRules": [
97
+ * "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
98
+ * ],
99
+ * "UnprocessedAutomationRules": [
100
+ * {
101
+ * "ErrorCode": 500,
102
+ * "ErrorMessage": "InternalException",
103
+ * "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
104
+ * }
105
+ * ]
106
+ * }
107
+ * *\/
108
+ * // example id: to-delete-one-or-more-automation-rules-1684769550318
109
+ * ```
110
+ *
83
111
  */
84
112
  export declare class BatchDeleteAutomationRulesCommand extends $Command<BatchDeleteAutomationRulesCommandInput, BatchDeleteAutomationRulesCommandOutput, SecurityHubClientResolvedConfig> {
85
113
  readonly input: BatchDeleteAutomationRulesCommandInput;
@@ -265,6 +265,102 @@ export interface BatchGetAutomationRulesCommandOutput extends BatchGetAutomation
265
265
  * @throws {@link SecurityHubServiceException}
266
266
  * <p>Base exception class for all service exceptions from SecurityHub service.</p>
267
267
  *
268
+ * @example To update one ore more automation rules
269
+ * ```javascript
270
+ * // The following example updates the specified automation rules.
271
+ * const input = {
272
+ * "AutomationRulesArns": [
273
+ * "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
274
+ * "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
275
+ * ]
276
+ * };
277
+ * const command = new BatchGetAutomationRulesCommand(input);
278
+ * const response = await client.send(command);
279
+ * /* response ==
280
+ * {
281
+ * "Rules": [
282
+ * {
283
+ * "Actions": [
284
+ * {
285
+ * "FindingFieldsUpdate": {
286
+ * "Workflow": {
287
+ * "Status": "RESOLVED"
288
+ * }
289
+ * },
290
+ * "Type": "FINDING_FIELDS_UPDATE"
291
+ * }
292
+ * ],
293
+ * "CreatedAt": "2022-08-31T01:52:33.250Z",
294
+ * "CreatedBy": "AROAJURBUYQQNL5OL2TIM:TEST-16MJ75L9VBK14",
295
+ * "Criteria": {
296
+ * "AwsAccountId": [
297
+ * {
298
+ * "Comparison": "EQUALS",
299
+ * "Value": "111122223333"
300
+ * }
301
+ * ],
302
+ * "FirstObservedAt": [
303
+ * {
304
+ * "DateRange": {
305
+ * "Unit": "DAYS",
306
+ * "Value": 5
307
+ * }
308
+ * }
309
+ * ],
310
+ * "Type": [
311
+ * {
312
+ * "Comparison": "EQUALS",
313
+ * "Value": "Software and Configuration Checks/Industry and Regulatory Standards"
314
+ * }
315
+ * ]
316
+ * },
317
+ * "Description": "sample rule description 1",
318
+ * "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
319
+ * "RuleName": "sample-rule-name-1",
320
+ * "RuleOrder": 1,
321
+ * "RuleStatus": "ENABLED",
322
+ * "UpdatedAt": "2022-08-31T01:52:33.250Z"
323
+ * },
324
+ * {
325
+ * "Actions": [
326
+ * {
327
+ * "FindingFieldsUpdate": {
328
+ * "Workflow": {
329
+ * "Status": "RESOLVED"
330
+ * }
331
+ * },
332
+ * "Type": "FINDING_FIELDS_UPDATE"
333
+ * }
334
+ * ],
335
+ * "CreatedAt": "2022-08-31T01:52:33.250Z",
336
+ * "CreatedBy": "AROAJURBUYQQNL5OL2TIM:TEST-16MJ75L9VBK14",
337
+ * "Criteria": {
338
+ * "ResourceType": [
339
+ * {
340
+ * "Comparison": "EQUALS",
341
+ * "Value": "Ec2Instance"
342
+ * }
343
+ * ],
344
+ * "SeverityLabel": [
345
+ * {
346
+ * "Comparison": "EQUALS",
347
+ * "Value": "INFORMATIONAL"
348
+ * }
349
+ * ]
350
+ * },
351
+ * "Description": "Sample rule description 2",
352
+ * "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
353
+ * "RuleName": "sample-rule-name-2",
354
+ * "RuleOrder": 2,
355
+ * "RuleStatus": "ENABLED",
356
+ * "UpdatedAt": "2022-08-31T01:52:33.250Z"
357
+ * }
358
+ * ]
359
+ * }
360
+ * *\/
361
+ * // example id: to-update-one-ore-more-automation-rules-1684771025347
362
+ * ```
363
+ *
268
364
  */
269
365
  export declare class BatchGetAutomationRulesCommand extends $Command<BatchGetAutomationRulesCommandInput, BatchGetAutomationRulesCommandOutput, SecurityHubClientResolvedConfig> {
270
366
  readonly input: BatchGetAutomationRulesCommandInput;
@@ -259,6 +259,35 @@ export interface BatchUpdateAutomationRulesCommandOutput extends BatchUpdateAuto
259
259
  * @throws {@link SecurityHubServiceException}
260
260
  * <p>Base exception class for all service exceptions from SecurityHub service.</p>
261
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
+ *
262
291
  */
263
292
  export declare class BatchUpdateAutomationRulesCommand extends $Command<BatchUpdateAutomationRulesCommandInput, BatchUpdateAutomationRulesCommandOutput, SecurityHubClientResolvedConfig> {
264
293
  readonly input: BatchUpdateAutomationRulesCommandInput;
@@ -247,6 +247,75 @@ export interface CreateAutomationRuleCommandOutput extends CreateAutomationRuleR
247
247
  * @throws {@link SecurityHubServiceException}
248
248
  * <p>Base exception class for all service exceptions from SecurityHub service.</p>
249
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
+ *
250
319
  */
251
320
  export declare class CreateAutomationRuleCommand extends $Command<CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput, SecurityHubClientResolvedConfig> {
252
321
  readonly input: CreateAutomationRuleCommandInput;
@@ -83,6 +83,45 @@ export interface ListAutomationRulesCommandOutput extends ListAutomationRulesRes
83
83
  * @throws {@link SecurityHubServiceException}
84
84
  * <p>Base exception class for all service exceptions from SecurityHub service.</p>
85
85
  *
86
+ * @example To list automation rules
87
+ * ```javascript
88
+ * // The following example lists automation rules and rule metadata in the calling account.
89
+ * const input = {
90
+ * "MaxResults": 2,
91
+ * "NextToken": "example-token"
92
+ * };
93
+ * const command = new ListAutomationRulesCommand(input);
94
+ * const response = await client.send(command);
95
+ * /* response ==
96
+ * {
97
+ * "AutomationRulesMetadata": [
98
+ * {
99
+ * "CreatedAt": "2022-08-31T01:52:33.250Z",
100
+ * "CreatedBy": "AROAJURBUYQQNL5OL2TIM:TEST-16MJ75L9VBK14",
101
+ * "Description": "IAM.8 is a known issue and can be resolved",
102
+ * "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
103
+ * "RuleName": "sample-rule-name-1",
104
+ * "RuleOrder": 1,
105
+ * "RuleStatus": "ENABLED",
106
+ * "UpdatedAt": "2022-08-31T01:52:33.250Z"
107
+ * },
108
+ * {
109
+ * "CreatedAt": "2022-08-31T01:52:33.250Z",
110
+ * "CreatedBy": "AROAJURBUYQQNL5OL2TIM:TEST-16MJ75L9VBK14",
111
+ * "Description": "Lambda.2 is a known issue and can be resolved",
112
+ * "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
113
+ * "RuleName": "sample-rule-name-2",
114
+ * "RuleOrder": 2,
115
+ * "RuleStatus": "ENABLED",
116
+ * "UpdatedAt": "2022-08-31T01:52:33.250Z"
117
+ * }
118
+ * ],
119
+ * "NextToken": "example-token"
120
+ * }
121
+ * *\/
122
+ * // example id: to-list-automation-rules-1684770582059
123
+ * ```
124
+ *
86
125
  */
87
126
  export declare class ListAutomationRulesCommand extends $Command<ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput, SecurityHubClientResolvedConfig> {
88
127
  readonly input: ListAutomationRulesCommandInput;
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.352.0",
4
+ "version": "3.353.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,10 +21,10 @@
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.352.0",
25
- "@aws-sdk/config-resolver": "3.347.0",
26
- "@aws-sdk/credential-provider-node": "3.352.0",
27
- "@aws-sdk/fetch-http-handler": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.353.0",
25
+ "@aws-sdk/config-resolver": "3.353.0",
26
+ "@aws-sdk/credential-provider-node": "3.353.0",
27
+ "@aws-sdk/fetch-http-handler": "3.353.0",
28
28
  "@aws-sdk/hash-node": "3.347.0",
29
29
  "@aws-sdk/invalid-dependency": "3.347.0",
30
30
  "@aws-sdk/middleware-content-length": "3.347.0",
@@ -32,12 +32,12 @@
32
32
  "@aws-sdk/middleware-host-header": "3.347.0",
33
33
  "@aws-sdk/middleware-logger": "3.347.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.347.0",
35
+ "@aws-sdk/middleware-retry": "3.353.0",
36
36
  "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.347.0",
37
+ "@aws-sdk/middleware-signing": "3.353.0",
38
38
  "@aws-sdk/middleware-stack": "3.347.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.347.0",
40
+ "@aws-sdk/node-config-provider": "3.353.0",
41
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",
@@ -45,12 +45,12 @@
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.347.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.347.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
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
- "@aws-sdk/util-user-agent-node": "3.347.0",
53
+ "@aws-sdk/util-user-agent-node": "3.353.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",