@aws-sdk/client-securityhub 3.350.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.
- 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 +103 -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 +288 -0
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +282 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +270 -0
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +106 -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 +5 -5
|
@@ -0,0 +1,282 @@
|
|
|
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
|
+
*/
|
|
263
|
+
export declare class BatchUpdateAutomationRulesCommand extends $Command<BatchUpdateAutomationRulesCommandInput, BatchUpdateAutomationRulesCommandOutput, SecurityHubClientResolvedConfig> {
|
|
264
|
+
readonly input: BatchUpdateAutomationRulesCommandInput;
|
|
265
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
266
|
+
/**
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
constructor(input: BatchUpdateAutomationRulesCommandInput);
|
|
270
|
+
/**
|
|
271
|
+
* @internal
|
|
272
|
+
*/
|
|
273
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchUpdateAutomationRulesCommandInput, BatchUpdateAutomationRulesCommandOutput>;
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
*/
|
|
277
|
+
private serialize;
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
private deserialize;
|
|
282
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
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
|
+
*/
|
|
251
|
+
export declare class CreateAutomationRuleCommand extends $Command<CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput, SecurityHubClientResolvedConfig> {
|
|
252
|
+
readonly input: CreateAutomationRuleCommandInput;
|
|
253
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
254
|
+
/**
|
|
255
|
+
* @public
|
|
256
|
+
*/
|
|
257
|
+
constructor(input: CreateAutomationRuleCommandInput);
|
|
258
|
+
/**
|
|
259
|
+
* @internal
|
|
260
|
+
*/
|
|
261
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput>;
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
*/
|
|
265
|
+
private serialize;
|
|
266
|
+
/**
|
|
267
|
+
* @internal
|
|
268
|
+
*/
|
|
269
|
+
private deserialize;
|
|
270
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
*/
|
|
87
|
+
export declare class ListAutomationRulesCommand extends $Command<ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput, SecurityHubClientResolvedConfig> {
|
|
88
|
+
readonly input: ListAutomationRulesCommandInput;
|
|
89
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
constructor(input: ListAutomationRulesCommandInput);
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput>;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
private serialize;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
private deserialize;
|
|
106
|
+
}
|
|
@@ -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";
|