@aws-sdk/client-securityhub 3.41.0 → 3.46.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/CHANGELOG.md +44 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +228 -227
- package/dist-cjs/models/models_1.js +244 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1225 -74
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +148 -149
- package/dist-es/models/models_1.js +162 -0
- package/dist-es/protocols/Aws_restJson1.js +1020 -17
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/SecurityHub.d.ts +13 -3
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +13 -2
- package/dist-types/commands/CreateMembersCommand.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +1021 -1773
- package/dist-types/models/models_1.d.ts +1681 -5
- package/dist-types/ts3.4/models/models_0.d.ts +546 -827
- package/dist-types/ts3.4/models/models_1.d.ts +783 -1
- package/package.json +36 -43
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
15
|
export var getRuntimeConfig = function (config) {
|
|
17
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
19
17
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
18
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
19
|
};
|
|
@@ -148,9 +148,20 @@ export declare class SecurityHub extends SecurityHubClient {
|
|
|
148
148
|
batchEnableStandards(args: BatchEnableStandardsCommandInput, cb: (err: any, data?: BatchEnableStandardsCommandOutput) => void): void;
|
|
149
149
|
batchEnableStandards(args: BatchEnableStandardsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchEnableStandardsCommandOutput) => void): void;
|
|
150
150
|
/**
|
|
151
|
-
* <p>Imports security findings generated
|
|
152
|
-
* This action is requested by the
|
|
151
|
+
* <p>Imports security findings generated by a finding provider into Security Hub.
|
|
152
|
+
* This action is requested by the finding provider to import its findings into
|
|
153
153
|
* Security Hub.</p>
|
|
154
|
+
* <p>
|
|
155
|
+
* <code>BatchImportFindings</code> must be called by one of the following:</p>
|
|
156
|
+
* <ul>
|
|
157
|
+
* <li>
|
|
158
|
+
* <p>The account that is associated with the findings. The identifier of the associated
|
|
159
|
+
* account is the value of the <code>AwsAccountId</code> attribute for the finding.</p>
|
|
160
|
+
* </li>
|
|
161
|
+
* <li>
|
|
162
|
+
* <p>An account that is allow-listed for an official Security Hub partner integration.</p>
|
|
163
|
+
* </li>
|
|
164
|
+
* </ul>
|
|
154
165
|
* <p>The maximum allowed size for a finding is 240 Kb. An error is returned for any finding
|
|
155
166
|
* larger than 240 Kb.</p>
|
|
156
167
|
* <p>After a finding is created, <code>BatchImportFindings</code> cannot be used to update
|
|
@@ -333,7 +344,6 @@ export declare class SecurityHub extends SecurityHubClient {
|
|
|
333
344
|
* <p>For organization accounts that already have Security Hub enabled, Security Hub does not make any other changes to those accounts. It does not change their enabled standards or controls.</p>
|
|
334
345
|
* </li>
|
|
335
346
|
* </ul>
|
|
336
|
-
*
|
|
337
347
|
* <p>A permissions policy is added that permits the administrator account to view the findings
|
|
338
348
|
* generated in the member account.</p>
|
|
339
349
|
* <p>To remove the association between the administrator and member accounts, use the <code>DisassociateFromMasterAccount</code> or <code>DisassociateMembers</code> operation.</p>
|
|
@@ -7,9 +7,20 @@ export interface BatchImportFindingsCommandInput extends BatchImportFindingsRequ
|
|
|
7
7
|
export interface BatchImportFindingsCommandOutput extends BatchImportFindingsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Imports security findings generated
|
|
11
|
-
* This action is requested by the
|
|
10
|
+
* <p>Imports security findings generated by a finding provider into Security Hub.
|
|
11
|
+
* This action is requested by the finding provider to import its findings into
|
|
12
12
|
* Security Hub.</p>
|
|
13
|
+
* <p>
|
|
14
|
+
* <code>BatchImportFindings</code> must be called by one of the following:</p>
|
|
15
|
+
* <ul>
|
|
16
|
+
* <li>
|
|
17
|
+
* <p>The account that is associated with the findings. The identifier of the associated
|
|
18
|
+
* account is the value of the <code>AwsAccountId</code> attribute for the finding.</p>
|
|
19
|
+
* </li>
|
|
20
|
+
* <li>
|
|
21
|
+
* <p>An account that is allow-listed for an official Security Hub partner integration.</p>
|
|
22
|
+
* </li>
|
|
23
|
+
* </ul>
|
|
13
24
|
* <p>The maximum allowed size for a finding is 240 Kb. An error is returned for any finding
|
|
14
25
|
* larger than 240 Kb.</p>
|
|
15
26
|
* <p>After a finding is created, <code>BatchImportFindings</code> cannot be used to update
|
|
@@ -39,7 +39,6 @@ export interface CreateMembersCommandOutput extends CreateMembersResponse, __Met
|
|
|
39
39
|
* <p>For organization accounts that already have Security Hub enabled, Security Hub does not make any other changes to those accounts. It does not change their enabled standards or controls.</p>
|
|
40
40
|
* </li>
|
|
41
41
|
* </ul>
|
|
42
|
-
*
|
|
43
42
|
* <p>A permissions policy is added that permits the administrator account to view the findings
|
|
44
43
|
* generated in the member account.</p>
|
|
45
44
|
* <p>To remove the association between the administrator and member accounts, use the <code>DisassociateFromMasterAccount</code> or <code>DisassociateMembers</code> operation.</p>
|