@aws-sdk/client-securityhub 3.454.0 → 3.458.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 +83 -67
- package/dist-cjs/SecurityHub.js +4 -0
- package/dist-cjs/commands/GetSecurityControlDefinitionCommand.js +51 -0
- package/dist-cjs/commands/UpdateSecurityControlCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_2.js +71 -1
- package/dist-cjs/protocols/Aws_restJson1.js +349 -5
- package/dist-es/SecurityHub.js +4 -0
- package/dist-es/commands/GetSecurityControlDefinitionCommand.js +47 -0
- package/dist-es/commands/UpdateSecurityControlCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_2.js +69 -0
- package/dist-es/protocols/Aws_restJson1.js +343 -3
- package/dist-types/SecurityHub.d.ts +14 -0
- package/dist-types/SecurityHubClient.d.ts +4 -2
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +4 -0
- package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +23 -0
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +9 -3
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +4 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +4 -0
- package/dist-types/commands/CreateInsightCommand.d.ts +14 -0
- package/dist-types/commands/GetFindingsCommand.d.ts +23 -3
- package/dist-types/commands/GetInsightsCommand.d.ts +14 -0
- package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +158 -0
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +59 -0
- package/dist-types/commands/UpdateFindingsCommand.d.ts +14 -0
- package/dist-types/commands/UpdateInsightCommand.d.ts +14 -0
- package/dist-types/commands/UpdateSecurityControlCommand.d.ts +118 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +15 -1
- package/dist-types/models/models_1.d.ts +29 -37
- package/dist-types/models/models_2.d.ts +987 -147
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +34 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateSecurityControlCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/models/models_1.d.ts +5 -6
- package/dist-types/ts3.4/models/models_2.d.ts +361 -15
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +3 -3
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { UpdateSecurityControlRequest, UpdateSecurityControlResponse } 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 UpdateSecurityControlCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateSecurityControlCommandInput extends UpdateSecurityControlRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateSecurityControlCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateSecurityControlCommandOutput extends UpdateSecurityControlResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>
|
|
27
|
+
* Updates the properties of a security control.
|
|
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, UpdateSecurityControlCommand } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
33
|
+
* // const { SecurityHubClient, UpdateSecurityControlCommand } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
34
|
+
* const client = new SecurityHubClient(config);
|
|
35
|
+
* const input = { // UpdateSecurityControlRequest
|
|
36
|
+
* SecurityControlId: "STRING_VALUE", // required
|
|
37
|
+
* Parameters: { // Parameters // required
|
|
38
|
+
* "<keys>": { // ParameterConfiguration
|
|
39
|
+
* ValueType: "DEFAULT" || "CUSTOM", // required
|
|
40
|
+
* Value: { // ParameterValue Union: only one key present
|
|
41
|
+
* Integer: Number("int"),
|
|
42
|
+
* IntegerList: [ // IntegerList
|
|
43
|
+
* Number("int"),
|
|
44
|
+
* ],
|
|
45
|
+
* Double: Number("double"),
|
|
46
|
+
* String: "STRING_VALUE",
|
|
47
|
+
* StringList: [ // StringList
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* Boolean: true || false,
|
|
51
|
+
* Enum: "STRING_VALUE",
|
|
52
|
+
* EnumList: [
|
|
53
|
+
* "STRING_VALUE",
|
|
54
|
+
* ],
|
|
55
|
+
* },
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* LastUpdateReason: "STRING_VALUE",
|
|
59
|
+
* };
|
|
60
|
+
* const command = new UpdateSecurityControlCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // {};
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param UpdateSecurityControlCommandInput - {@link UpdateSecurityControlCommandInput}
|
|
67
|
+
* @returns {@link UpdateSecurityControlCommandOutput}
|
|
68
|
+
* @see {@link UpdateSecurityControlCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link UpdateSecurityControlCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalException} (server fault)
|
|
73
|
+
* <p>Internal server error.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InvalidAccessException} (client fault)
|
|
76
|
+
* <p>The account doesn't have permission to perform this action.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
79
|
+
* <p>The request was rejected because you supplied an invalid or out-of-range value for an
|
|
80
|
+
* input parameter.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
83
|
+
* <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
|
|
84
|
+
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ResourceInUseException} (client fault)
|
|
87
|
+
* <p>
|
|
88
|
+
* The request was rejected because it conflicts with the resource's availability. For example, you tried
|
|
89
|
+
* to update a security control that's currently in the <code>UPDATING</code> state.
|
|
90
|
+
* </p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
93
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link SecurityHubServiceException}
|
|
96
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
export declare class UpdateSecurityControlCommand extends $Command<UpdateSecurityControlCommandInput, UpdateSecurityControlCommandOutput, SecurityHubClientResolvedConfig> {
|
|
100
|
+
readonly input: UpdateSecurityControlCommandInput;
|
|
101
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
constructor(input: UpdateSecurityControlCommandInput);
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateSecurityControlCommandInput, UpdateSecurityControlCommandOutput>;
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
private serialize;
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
private deserialize;
|
|
118
|
+
}
|
|
@@ -46,6 +46,7 @@ export * from "./GetInsightsCommand";
|
|
|
46
46
|
export * from "./GetInvitationsCountCommand";
|
|
47
47
|
export * from "./GetMasterAccountCommand";
|
|
48
48
|
export * from "./GetMembersCommand";
|
|
49
|
+
export * from "./GetSecurityControlDefinitionCommand";
|
|
49
50
|
export * from "./InviteMembersCommand";
|
|
50
51
|
export * from "./ListAutomationRulesCommand";
|
|
51
52
|
export * from "./ListEnabledProductsForImportCommand";
|
|
@@ -63,5 +64,6 @@ export * from "./UpdateFindingAggregatorCommand";
|
|
|
63
64
|
export * from "./UpdateFindingsCommand";
|
|
64
65
|
export * from "./UpdateInsightCommand";
|
|
65
66
|
export * from "./UpdateOrganizationConfigurationCommand";
|
|
67
|
+
export * from "./UpdateSecurityControlCommand";
|
|
66
68
|
export * from "./UpdateSecurityHubConfigurationCommand";
|
|
67
69
|
export * from "./UpdateStandardsControlCommand";
|
|
@@ -1133,6 +1133,20 @@ export interface NumberFilter {
|
|
|
1133
1133
|
* findings. </p>
|
|
1134
1134
|
*/
|
|
1135
1135
|
Lte?: number;
|
|
1136
|
+
/**
|
|
1137
|
+
* @public
|
|
1138
|
+
* <p>
|
|
1139
|
+
* The greater-than condition to be applied to a single field when querying for findings.
|
|
1140
|
+
* </p>
|
|
1141
|
+
*/
|
|
1142
|
+
Gt?: number;
|
|
1143
|
+
/**
|
|
1144
|
+
* @public
|
|
1145
|
+
* <p>
|
|
1146
|
+
* The less-than condition to be applied to a single field when querying for findings.
|
|
1147
|
+
* </p>
|
|
1148
|
+
*/
|
|
1149
|
+
Lt?: number;
|
|
1136
1150
|
/**
|
|
1137
1151
|
* @public
|
|
1138
1152
|
* <p>The equal-to condition to be applied to a single field when querying for
|
|
@@ -4815,7 +4829,7 @@ export interface AwsCloudFrontDistributionOriginS3OriginConfig {
|
|
|
4815
4829
|
/**
|
|
4816
4830
|
* @public
|
|
4817
4831
|
* <p>A complex type that describes the
|
|
4818
|
-
* Amazon S3 bucket, HTTP server (for example, a web server),
|
|
4832
|
+
* Amazon S3 bucket, HTTP server (for example, a web server), Elemental MediaStore, or other server from which CloudFront gets your files.</p>
|
|
4819
4833
|
*/
|
|
4820
4834
|
export interface AwsCloudFrontDistributionOriginItem {
|
|
4821
4835
|
/**
|
|
@@ -7427,6 +7427,28 @@ export interface AwsSecretsManagerSecretDetails {
|
|
|
7427
7427
|
*/
|
|
7428
7428
|
Description?: string;
|
|
7429
7429
|
}
|
|
7430
|
+
/**
|
|
7431
|
+
* @public
|
|
7432
|
+
* <p>
|
|
7433
|
+
* A parameter that a security control accepts.
|
|
7434
|
+
* </p>
|
|
7435
|
+
*/
|
|
7436
|
+
export interface SecurityControlParameter {
|
|
7437
|
+
/**
|
|
7438
|
+
* @public
|
|
7439
|
+
* <p>
|
|
7440
|
+
* The name of a
|
|
7441
|
+
* </p>
|
|
7442
|
+
*/
|
|
7443
|
+
Name?: string;
|
|
7444
|
+
/**
|
|
7445
|
+
* @public
|
|
7446
|
+
* <p>
|
|
7447
|
+
* The current value of a control parameter.
|
|
7448
|
+
* </p>
|
|
7449
|
+
*/
|
|
7450
|
+
Value?: string[];
|
|
7451
|
+
}
|
|
7430
7452
|
/**
|
|
7431
7453
|
* @public
|
|
7432
7454
|
* @enum
|
|
@@ -7527,6 +7549,13 @@ export interface Compliance {
|
|
|
7527
7549
|
* </p>
|
|
7528
7550
|
*/
|
|
7529
7551
|
AssociatedStandards?: AssociatedStandard[];
|
|
7552
|
+
/**
|
|
7553
|
+
* @public
|
|
7554
|
+
* <p>
|
|
7555
|
+
* An object that includes security control parameter names and values.
|
|
7556
|
+
* </p>
|
|
7557
|
+
*/
|
|
7558
|
+
SecurityControlParameters?: SecurityControlParameter[];
|
|
7530
7559
|
}
|
|
7531
7560
|
/**
|
|
7532
7561
|
* @public
|
|
@@ -9422,40 +9451,3 @@ export interface AwsWafv2RulesActionCountDetails {
|
|
|
9422
9451
|
*/
|
|
9423
9452
|
CustomRequestHandling?: AwsWafv2CustomRequestHandlingDetails;
|
|
9424
9453
|
}
|
|
9425
|
-
/**
|
|
9426
|
-
* @public
|
|
9427
|
-
* <p>
|
|
9428
|
-
* The action that WAF should take on a web request when it matches a rule's statement.
|
|
9429
|
-
* Settings at the web ACL level can override the rule action setting.
|
|
9430
|
-
* </p>
|
|
9431
|
-
*/
|
|
9432
|
-
export interface AwsWafv2RulesActionDetails {
|
|
9433
|
-
/**
|
|
9434
|
-
* @public
|
|
9435
|
-
* <p>
|
|
9436
|
-
* Instructs WAF to allow the web request.
|
|
9437
|
-
* </p>
|
|
9438
|
-
*/
|
|
9439
|
-
Allow?: AwsWafv2ActionAllowDetails;
|
|
9440
|
-
/**
|
|
9441
|
-
* @public
|
|
9442
|
-
* <p>
|
|
9443
|
-
* Instructs WAF to block the web request.
|
|
9444
|
-
* </p>
|
|
9445
|
-
*/
|
|
9446
|
-
Block?: AwsWafv2ActionBlockDetails;
|
|
9447
|
-
/**
|
|
9448
|
-
* @public
|
|
9449
|
-
* <p>
|
|
9450
|
-
* Instructs WAF to run a CAPTCHA check against the web request.
|
|
9451
|
-
* </p>
|
|
9452
|
-
*/
|
|
9453
|
-
Captcha?: AwsWafv2RulesActionCaptchaDetails;
|
|
9454
|
-
/**
|
|
9455
|
-
* @public
|
|
9456
|
-
* <p>
|
|
9457
|
-
* Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
|
|
9458
|
-
* </p>
|
|
9459
|
-
*/
|
|
9460
|
-
Count?: AwsWafv2RulesActionCountDetails;
|
|
9461
|
-
}
|