@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.
- package/README.md +40 -0
- package/dist-cjs/SecurityHub.js +10 -0
- package/dist-cjs/commands/BatchDeleteAutomationRulesCommand.js +46 -0
- package/dist-cjs/commands/BatchGetAutomationRulesCommand.js +46 -0
- package/dist-cjs/commands/BatchUpdateAutomationRulesCommand.js +46 -0
- package/dist-cjs/commands/CreateAutomationRuleCommand.js +46 -0
- package/dist-cjs/commands/ListAutomationRulesCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +40 -1
- package/dist-cjs/models/models_1.js +1 -44
- package/dist-cjs/models/models_2.js +12 -1
- package/dist-cjs/protocols/Aws_restJson1.js +553 -3
- package/dist-es/SecurityHub.js +10 -0
- package/dist-es/commands/BatchDeleteAutomationRulesCommand.js +42 -0
- package/dist-es/commands/BatchGetAutomationRulesCommand.js +42 -0
- package/dist-es/commands/BatchUpdateAutomationRulesCommand.js +42 -0
- package/dist-es/commands/CreateAutomationRuleCommand.js +42 -0
- package/dist-es/commands/ListAutomationRulesCommand.js +42 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +39 -0
- package/dist-es/models/models_1.js +0 -43
- package/dist-es/models/models_2.js +11 -0
- package/dist-es/protocols/Aws_restJson1.js +540 -0
- package/dist-types/SecurityHub.d.ts +35 -0
- package/dist-types/SecurityHubClient.d.ts +7 -2
- package/dist-types/commands/BatchDeleteAutomationRulesCommand.d.ts +131 -0
- package/dist-types/commands/BatchDisableStandardsCommand.d.ts +1 -1
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +384 -0
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +311 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +339 -0
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +145 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +6010 -5729
- package/dist-types/models/models_1.d.ts +645 -439
- package/dist-types/models/models_2.d.ts +423 -108
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +85 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchDeleteAutomationRulesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchDisableStandardsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchEnableStandardsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchGetAutomationRulesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchUpdateAutomationRulesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +167 -136
- package/dist-types/ts3.4/models/models_1.d.ts +145 -123
- package/dist-types/ts3.4/models/models_2.d.ts +112 -16
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +13 -13
|
@@ -0,0 +1,145 @@
|
|
|
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 { ListAutomationRulesRequest, ListAutomationRulesResponse } 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 ListAutomationRulesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAutomationRulesCommandInput extends ListAutomationRulesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAutomationRulesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAutomationRulesCommandOutput extends ListAutomationRulesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>
|
|
27
|
+
* A list of automation rules and their metadata for the calling account.
|
|
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, ListAutomationRulesCommand } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
33
|
+
* // const { SecurityHubClient, ListAutomationRulesCommand } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
34
|
+
* const client = new SecurityHubClient(config);
|
|
35
|
+
* const input = { // ListAutomationRulesRequest
|
|
36
|
+
* NextToken: "STRING_VALUE",
|
|
37
|
+
* MaxResults: Number("int"),
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListAutomationRulesCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListAutomationRulesResponse
|
|
42
|
+
* // AutomationRulesMetadata: [ // AutomationRulesMetadataList
|
|
43
|
+
* // { // AutomationRulesMetadata
|
|
44
|
+
* // RuleArn: "STRING_VALUE",
|
|
45
|
+
* // RuleStatus: "ENABLED" || "DISABLED",
|
|
46
|
+
* // RuleOrder: Number("int"),
|
|
47
|
+
* // RuleName: "STRING_VALUE",
|
|
48
|
+
* // Description: "STRING_VALUE",
|
|
49
|
+
* // IsTerminal: true || false,
|
|
50
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
51
|
+
* // UpdatedAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // CreatedBy: "STRING_VALUE",
|
|
53
|
+
* // },
|
|
54
|
+
* // ],
|
|
55
|
+
* // NextToken: "STRING_VALUE",
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param ListAutomationRulesCommandInput - {@link ListAutomationRulesCommandInput}
|
|
61
|
+
* @returns {@link ListAutomationRulesCommandOutput}
|
|
62
|
+
* @see {@link ListAutomationRulesCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link ListAutomationRulesCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
67
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InternalException} (server fault)
|
|
70
|
+
* <p>Internal server error.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InvalidAccessException} (client fault)
|
|
73
|
+
* <p>The account doesn't have permission to perform this action.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
76
|
+
* <p>The request was rejected because you supplied an invalid or out-of-range value for an
|
|
77
|
+
* input parameter.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
80
|
+
* <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
|
|
81
|
+
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link SecurityHubServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
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
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
export declare class ListAutomationRulesCommand extends $Command<ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput, SecurityHubClientResolvedConfig> {
|
|
127
|
+
readonly input: ListAutomationRulesCommandInput;
|
|
128
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
constructor(input: ListAutomationRulesCommandInput);
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput>;
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
private serialize;
|
|
141
|
+
/**
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
private deserialize;
|
|
145
|
+
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
export * from "./AcceptAdministratorInvitationCommand";
|
|
2
2
|
export * from "./AcceptInvitationCommand";
|
|
3
|
+
export * from "./BatchDeleteAutomationRulesCommand";
|
|
3
4
|
export * from "./BatchDisableStandardsCommand";
|
|
4
5
|
export * from "./BatchEnableStandardsCommand";
|
|
6
|
+
export * from "./BatchGetAutomationRulesCommand";
|
|
5
7
|
export * from "./BatchGetSecurityControlsCommand";
|
|
6
8
|
export * from "./BatchGetStandardsControlAssociationsCommand";
|
|
7
9
|
export * from "./BatchImportFindingsCommand";
|
|
10
|
+
export * from "./BatchUpdateAutomationRulesCommand";
|
|
8
11
|
export * from "./BatchUpdateFindingsCommand";
|
|
9
12
|
export * from "./BatchUpdateStandardsControlAssociationsCommand";
|
|
10
13
|
export * from "./CreateActionTargetCommand";
|
|
14
|
+
export * from "./CreateAutomationRuleCommand";
|
|
11
15
|
export * from "./CreateFindingAggregatorCommand";
|
|
12
16
|
export * from "./CreateInsightCommand";
|
|
13
17
|
export * from "./CreateMembersCommand";
|
|
@@ -43,6 +47,7 @@ export * from "./GetInvitationsCountCommand";
|
|
|
43
47
|
export * from "./GetMasterAccountCommand";
|
|
44
48
|
export * from "./GetMembersCommand";
|
|
45
49
|
export * from "./InviteMembersCommand";
|
|
50
|
+
export * from "./ListAutomationRulesCommand";
|
|
46
51
|
export * from "./ListEnabledProductsForImportCommand";
|
|
47
52
|
export * from "./ListFindingAggregatorsCommand";
|
|
48
53
|
export * from "./ListInvitationsCommand";
|