@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
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateStandardsControlCommand = exports.de_UpdateSecurityHubConfigurationCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInsightCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateFindingAggregatorCommand = exports.de_UpdateActionTargetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStandardsControlAssociationsCommand = exports.de_ListSecurityControlDefinitionsCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListFindingAggregatorsCommand = exports.de_ListEnabledProductsForImportCommand = exports.de_ListAutomationRulesCommand = exports.de_InviteMembersCommand = exports.de_GetMembersCommand = exports.de_GetMasterAccountCommand = exports.de_GetInvitationsCountCommand = exports.de_GetInsightsCommand = exports.de_GetInsightResultsCommand = exports.de_GetFindingsCommand = exports.de_GetFindingHistoryCommand = exports.de_GetFindingAggregatorCommand = exports.de_GetEnabledStandardsCommand = exports.de_GetAdministratorAccountCommand = exports.de_EnableSecurityHubCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_EnableImportFindingsForProductCommand = exports.de_DisassociateMembersCommand = exports.de_DisassociateFromMasterAccountCommand = void 0;
|
|
3
|
+
exports.se_InviteMembersCommand = exports.se_GetSecurityControlDefinitionCommand = exports.se_GetMembersCommand = exports.se_GetMasterAccountCommand = exports.se_GetInvitationsCountCommand = exports.se_GetInsightsCommand = exports.se_GetInsightResultsCommand = exports.se_GetFindingsCommand = exports.se_GetFindingHistoryCommand = exports.se_GetFindingAggregatorCommand = exports.se_GetEnabledStandardsCommand = exports.se_GetAdministratorAccountCommand = exports.se_EnableSecurityHubCommand = exports.se_EnableOrganizationAdminAccountCommand = exports.se_EnableImportFindingsForProductCommand = exports.se_DisassociateMembersCommand = exports.se_DisassociateFromMasterAccountCommand = exports.se_DisassociateFromAdministratorAccountCommand = exports.se_DisableSecurityHubCommand = exports.se_DisableOrganizationAdminAccountCommand = exports.se_DisableImportFindingsForProductCommand = exports.se_DescribeStandardsControlsCommand = exports.se_DescribeStandardsCommand = exports.se_DescribeProductsCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DescribeHubCommand = exports.se_DescribeActionTargetsCommand = exports.se_DeleteMembersCommand = exports.se_DeleteInvitationsCommand = exports.se_DeleteInsightCommand = exports.se_DeleteFindingAggregatorCommand = exports.se_DeleteActionTargetCommand = exports.se_DeclineInvitationsCommand = exports.se_CreateMembersCommand = exports.se_CreateInsightCommand = exports.se_CreateFindingAggregatorCommand = exports.se_CreateAutomationRuleCommand = exports.se_CreateActionTargetCommand = exports.se_BatchUpdateStandardsControlAssociationsCommand = exports.se_BatchUpdateFindingsCommand = exports.se_BatchUpdateAutomationRulesCommand = exports.se_BatchImportFindingsCommand = exports.se_BatchGetStandardsControlAssociationsCommand = exports.se_BatchGetSecurityControlsCommand = exports.se_BatchGetAutomationRulesCommand = exports.se_BatchEnableStandardsCommand = exports.se_BatchDisableStandardsCommand = exports.se_BatchDeleteAutomationRulesCommand = exports.se_AcceptInvitationCommand = exports.se_AcceptAdministratorInvitationCommand = void 0;
|
|
4
|
+
exports.de_DisableOrganizationAdminAccountCommand = exports.de_DisableImportFindingsForProductCommand = exports.de_DescribeStandardsControlsCommand = exports.de_DescribeStandardsCommand = exports.de_DescribeProductsCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DescribeHubCommand = exports.de_DescribeActionTargetsCommand = exports.de_DeleteMembersCommand = exports.de_DeleteInvitationsCommand = exports.de_DeleteInsightCommand = exports.de_DeleteFindingAggregatorCommand = exports.de_DeleteActionTargetCommand = exports.de_DeclineInvitationsCommand = exports.de_CreateMembersCommand = exports.de_CreateInsightCommand = exports.de_CreateFindingAggregatorCommand = exports.de_CreateAutomationRuleCommand = exports.de_CreateActionTargetCommand = exports.de_BatchUpdateStandardsControlAssociationsCommand = exports.de_BatchUpdateFindingsCommand = exports.de_BatchUpdateAutomationRulesCommand = exports.de_BatchImportFindingsCommand = exports.de_BatchGetStandardsControlAssociationsCommand = exports.de_BatchGetSecurityControlsCommand = exports.de_BatchGetAutomationRulesCommand = exports.de_BatchEnableStandardsCommand = exports.de_BatchDisableStandardsCommand = exports.de_BatchDeleteAutomationRulesCommand = exports.de_AcceptInvitationCommand = exports.de_AcceptAdministratorInvitationCommand = exports.se_UpdateStandardsControlCommand = exports.se_UpdateSecurityHubConfigurationCommand = exports.se_UpdateSecurityControlCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateInsightCommand = exports.se_UpdateFindingsCommand = exports.se_UpdateFindingAggregatorCommand = exports.se_UpdateActionTargetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStandardsControlAssociationsCommand = exports.se_ListSecurityControlDefinitionsCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListFindingAggregatorsCommand = exports.se_ListEnabledProductsForImportCommand = exports.se_ListAutomationRulesCommand = void 0;
|
|
5
|
+
exports.de_UpdateStandardsControlCommand = exports.de_UpdateSecurityHubConfigurationCommand = exports.de_UpdateSecurityControlCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInsightCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateFindingAggregatorCommand = exports.de_UpdateActionTargetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStandardsControlAssociationsCommand = exports.de_ListSecurityControlDefinitionsCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListFindingAggregatorsCommand = exports.de_ListEnabledProductsForImportCommand = exports.de_ListAutomationRulesCommand = exports.de_InviteMembersCommand = exports.de_GetSecurityControlDefinitionCommand = exports.de_GetMembersCommand = exports.de_GetMasterAccountCommand = exports.de_GetInvitationsCountCommand = exports.de_GetInsightsCommand = exports.de_GetInsightResultsCommand = exports.de_GetFindingsCommand = exports.de_GetFindingHistoryCommand = exports.de_GetFindingAggregatorCommand = exports.de_GetEnabledStandardsCommand = exports.de_GetAdministratorAccountCommand = exports.de_EnableSecurityHubCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_EnableImportFindingsForProductCommand = exports.de_DisassociateMembersCommand = exports.de_DisassociateFromMasterAccountCommand = exports.de_DisassociateFromAdministratorAccountCommand = exports.de_DisableSecurityHubCommand = void 0;
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
6
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
@@ -1021,6 +1022,26 @@ const se_GetMembersCommand = async (input, context) => {
|
|
|
1021
1022
|
});
|
|
1022
1023
|
};
|
|
1023
1024
|
exports.se_GetMembersCommand = se_GetMembersCommand;
|
|
1025
|
+
const se_GetSecurityControlDefinitionCommand = async (input, context) => {
|
|
1026
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1027
|
+
const headers = {};
|
|
1028
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControl/definition";
|
|
1029
|
+
const query = (0, smithy_client_1.map)({
|
|
1030
|
+
SecurityControlId: [, (0, smithy_client_1.expectNonNull)(input.SecurityControlId, `SecurityControlId`)],
|
|
1031
|
+
});
|
|
1032
|
+
let body;
|
|
1033
|
+
return new protocol_http_1.HttpRequest({
|
|
1034
|
+
protocol,
|
|
1035
|
+
hostname,
|
|
1036
|
+
port,
|
|
1037
|
+
method: "GET",
|
|
1038
|
+
headers,
|
|
1039
|
+
path: resolvedPath,
|
|
1040
|
+
query,
|
|
1041
|
+
body,
|
|
1042
|
+
});
|
|
1043
|
+
};
|
|
1044
|
+
exports.se_GetSecurityControlDefinitionCommand = se_GetSecurityControlDefinitionCommand;
|
|
1024
1045
|
const se_InviteMembersCommand = async (input, context) => {
|
|
1025
1046
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1026
1047
|
const headers = {
|
|
@@ -1391,6 +1412,29 @@ const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
|
1391
1412
|
});
|
|
1392
1413
|
};
|
|
1393
1414
|
exports.se_UpdateOrganizationConfigurationCommand = se_UpdateOrganizationConfigurationCommand;
|
|
1415
|
+
const se_UpdateSecurityControlCommand = async (input, context) => {
|
|
1416
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1417
|
+
const headers = {
|
|
1418
|
+
"content-type": "application/json",
|
|
1419
|
+
};
|
|
1420
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControl/update";
|
|
1421
|
+
let body;
|
|
1422
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1423
|
+
LastUpdateReason: [],
|
|
1424
|
+
Parameters: (_) => se_Parameters(_, context),
|
|
1425
|
+
SecurityControlId: [],
|
|
1426
|
+
}));
|
|
1427
|
+
return new protocol_http_1.HttpRequest({
|
|
1428
|
+
protocol,
|
|
1429
|
+
hostname,
|
|
1430
|
+
port,
|
|
1431
|
+
method: "PATCH",
|
|
1432
|
+
headers,
|
|
1433
|
+
path: resolvedPath,
|
|
1434
|
+
body,
|
|
1435
|
+
});
|
|
1436
|
+
};
|
|
1437
|
+
exports.se_UpdateSecurityControlCommand = se_UpdateSecurityControlCommand;
|
|
1394
1438
|
const se_UpdateSecurityHubConfigurationCommand = async (input, context) => {
|
|
1395
1439
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1396
1440
|
const headers = {
|
|
@@ -1712,7 +1756,7 @@ const de_BatchGetSecurityControlsCommand = async (output, context) => {
|
|
|
1712
1756
|
});
|
|
1713
1757
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1714
1758
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1715
|
-
SecurityControls:
|
|
1759
|
+
SecurityControls: (_) => de_SecurityControls(_, context),
|
|
1716
1760
|
UnprocessedIds: smithy_client_1._json,
|
|
1717
1761
|
});
|
|
1718
1762
|
Object.assign(contents, doc);
|
|
@@ -3571,6 +3615,52 @@ const de_GetMembersCommandError = async (output, context) => {
|
|
|
3571
3615
|
});
|
|
3572
3616
|
}
|
|
3573
3617
|
};
|
|
3618
|
+
const de_GetSecurityControlDefinitionCommand = async (output, context) => {
|
|
3619
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3620
|
+
return de_GetSecurityControlDefinitionCommandError(output, context);
|
|
3621
|
+
}
|
|
3622
|
+
const contents = (0, smithy_client_1.map)({
|
|
3623
|
+
$metadata: deserializeMetadata(output),
|
|
3624
|
+
});
|
|
3625
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3626
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3627
|
+
SecurityControlDefinition: (_) => de_SecurityControlDefinition(_, context),
|
|
3628
|
+
});
|
|
3629
|
+
Object.assign(contents, doc);
|
|
3630
|
+
return contents;
|
|
3631
|
+
};
|
|
3632
|
+
exports.de_GetSecurityControlDefinitionCommand = de_GetSecurityControlDefinitionCommand;
|
|
3633
|
+
const de_GetSecurityControlDefinitionCommandError = async (output, context) => {
|
|
3634
|
+
const parsedOutput = {
|
|
3635
|
+
...output,
|
|
3636
|
+
body: await parseErrorBody(output.body, context),
|
|
3637
|
+
};
|
|
3638
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3639
|
+
switch (errorCode) {
|
|
3640
|
+
case "InternalException":
|
|
3641
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
3642
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3643
|
+
case "InvalidAccessException":
|
|
3644
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3645
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3646
|
+
case "InvalidInputException":
|
|
3647
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3648
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3649
|
+
case "LimitExceededException":
|
|
3650
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3651
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3652
|
+
case "ResourceNotFoundException":
|
|
3653
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3654
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3655
|
+
default:
|
|
3656
|
+
const parsedBody = parsedOutput.body;
|
|
3657
|
+
return throwDefaultError({
|
|
3658
|
+
output,
|
|
3659
|
+
parsedBody,
|
|
3660
|
+
errorCode,
|
|
3661
|
+
});
|
|
3662
|
+
}
|
|
3663
|
+
};
|
|
3574
3664
|
const de_InviteMembersCommand = async (output, context) => {
|
|
3575
3665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3576
3666
|
return de_InviteMembersCommandError(output, context);
|
|
@@ -3894,7 +3984,7 @@ const de_ListSecurityControlDefinitionsCommand = async (output, context) => {
|
|
|
3894
3984
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3895
3985
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3896
3986
|
NextToken: smithy_client_1.expectString,
|
|
3897
|
-
SecurityControlDefinitions:
|
|
3987
|
+
SecurityControlDefinitions: (_) => de_SecurityControlDefinitions(_, context),
|
|
3898
3988
|
});
|
|
3899
3989
|
Object.assign(contents, doc);
|
|
3900
3990
|
return contents;
|
|
@@ -4298,6 +4388,51 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
|
|
|
4298
4388
|
});
|
|
4299
4389
|
}
|
|
4300
4390
|
};
|
|
4391
|
+
const de_UpdateSecurityControlCommand = async (output, context) => {
|
|
4392
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4393
|
+
return de_UpdateSecurityControlCommandError(output, context);
|
|
4394
|
+
}
|
|
4395
|
+
const contents = (0, smithy_client_1.map)({
|
|
4396
|
+
$metadata: deserializeMetadata(output),
|
|
4397
|
+
});
|
|
4398
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4399
|
+
return contents;
|
|
4400
|
+
};
|
|
4401
|
+
exports.de_UpdateSecurityControlCommand = de_UpdateSecurityControlCommand;
|
|
4402
|
+
const de_UpdateSecurityControlCommandError = async (output, context) => {
|
|
4403
|
+
const parsedOutput = {
|
|
4404
|
+
...output,
|
|
4405
|
+
body: await parseErrorBody(output.body, context),
|
|
4406
|
+
};
|
|
4407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4408
|
+
switch (errorCode) {
|
|
4409
|
+
case "InternalException":
|
|
4410
|
+
case "com.amazonaws.securityhub#InternalException":
|
|
4411
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4412
|
+
case "InvalidAccessException":
|
|
4413
|
+
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4414
|
+
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4415
|
+
case "InvalidInputException":
|
|
4416
|
+
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4417
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4418
|
+
case "LimitExceededException":
|
|
4419
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4420
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4421
|
+
case "ResourceInUseException":
|
|
4422
|
+
case "com.amazonaws.securityhub#ResourceInUseException":
|
|
4423
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4424
|
+
case "ResourceNotFoundException":
|
|
4425
|
+
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4426
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4427
|
+
default:
|
|
4428
|
+
const parsedBody = parsedOutput.body;
|
|
4429
|
+
return throwDefaultError({
|
|
4430
|
+
output,
|
|
4431
|
+
parsedBody,
|
|
4432
|
+
errorCode,
|
|
4433
|
+
});
|
|
4434
|
+
}
|
|
4435
|
+
};
|
|
4301
4436
|
const de_UpdateSecurityHubConfigurationCommand = async (output, context) => {
|
|
4302
4437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4303
4438
|
return de_UpdateSecurityHubConfigurationCommandError(output, context);
|
|
@@ -4464,6 +4599,20 @@ const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
4464
4599
|
});
|
|
4465
4600
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4466
4601
|
};
|
|
4602
|
+
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
4603
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4604
|
+
const data = parsedOutput.body;
|
|
4605
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4606
|
+
Code: smithy_client_1.expectString,
|
|
4607
|
+
Message: smithy_client_1.expectString,
|
|
4608
|
+
});
|
|
4609
|
+
Object.assign(contents, doc);
|
|
4610
|
+
const exception = new models_2_1.ResourceInUseException({
|
|
4611
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4612
|
+
...contents,
|
|
4613
|
+
});
|
|
4614
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4615
|
+
};
|
|
4467
4616
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4468
4617
|
const contents = (0, smithy_client_1.map)({});
|
|
4469
4618
|
const data = parsedOutput.body;
|
|
@@ -4889,6 +5038,8 @@ const se_AwsSecurityFindingFilters = (input, context) => {
|
|
|
4889
5038
|
CompanyName: smithy_client_1._json,
|
|
4890
5039
|
ComplianceAssociatedStandardsId: smithy_client_1._json,
|
|
4891
5040
|
ComplianceSecurityControlId: smithy_client_1._json,
|
|
5041
|
+
ComplianceSecurityControlParametersName: smithy_client_1._json,
|
|
5042
|
+
ComplianceSecurityControlParametersValue: smithy_client_1._json,
|
|
4892
5043
|
ComplianceStatus: smithy_client_1._json,
|
|
4893
5044
|
Confidence: (_) => se_NumberFilterList(_, context),
|
|
4894
5045
|
CreatedAt: smithy_client_1._json,
|
|
@@ -4980,6 +5131,8 @@ const se_AwsSecurityFindingFilters = (input, context) => {
|
|
|
4980
5131
|
UpdatedAt: smithy_client_1._json,
|
|
4981
5132
|
UserDefinedFields: smithy_client_1._json,
|
|
4982
5133
|
VerificationState: smithy_client_1._json,
|
|
5134
|
+
VulnerabilitiesExploitAvailable: smithy_client_1._json,
|
|
5135
|
+
VulnerabilitiesFixAvailable: smithy_client_1._json,
|
|
4983
5136
|
WorkflowState: smithy_client_1._json,
|
|
4984
5137
|
WorkflowStatus: smithy_client_1._json,
|
|
4985
5138
|
});
|
|
@@ -5026,7 +5179,9 @@ const se_NetworkConnectionAction = (input, context) => {
|
|
|
5026
5179
|
const se_NumberFilter = (input, context) => {
|
|
5027
5180
|
return (0, smithy_client_1.take)(input, {
|
|
5028
5181
|
Eq: smithy_client_1.serializeFloat,
|
|
5182
|
+
Gt: smithy_client_1.serializeFloat,
|
|
5029
5183
|
Gte: smithy_client_1.serializeFloat,
|
|
5184
|
+
Lt: smithy_client_1.serializeFloat,
|
|
5030
5185
|
Lte: smithy_client_1.serializeFloat,
|
|
5031
5186
|
});
|
|
5032
5187
|
};
|
|
@@ -5037,6 +5192,34 @@ const se_NumberFilterList = (input, context) => {
|
|
|
5037
5192
|
return se_NumberFilter(entry, context);
|
|
5038
5193
|
});
|
|
5039
5194
|
};
|
|
5195
|
+
const se_ParameterConfiguration = (input, context) => {
|
|
5196
|
+
return (0, smithy_client_1.take)(input, {
|
|
5197
|
+
Value: (_) => se_ParameterValue(_, context),
|
|
5198
|
+
ValueType: [],
|
|
5199
|
+
});
|
|
5200
|
+
};
|
|
5201
|
+
const se_Parameters = (input, context) => {
|
|
5202
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5203
|
+
if (value === null) {
|
|
5204
|
+
return acc;
|
|
5205
|
+
}
|
|
5206
|
+
acc[key] = se_ParameterConfiguration(value, context);
|
|
5207
|
+
return acc;
|
|
5208
|
+
}, {});
|
|
5209
|
+
};
|
|
5210
|
+
const se_ParameterValue = (input, context) => {
|
|
5211
|
+
return models_2_1.ParameterValue.visit(input, {
|
|
5212
|
+
Boolean: (value) => ({ Boolean: value }),
|
|
5213
|
+
Double: (value) => ({ Double: (0, smithy_client_1.serializeFloat)(value) }),
|
|
5214
|
+
Enum: (value) => ({ Enum: value }),
|
|
5215
|
+
EnumList: (value) => ({ EnumList: (0, smithy_client_1._json)(value) }),
|
|
5216
|
+
Integer: (value) => ({ Integer: value }),
|
|
5217
|
+
IntegerList: (value) => ({ IntegerList: (0, smithy_client_1._json)(value) }),
|
|
5218
|
+
String: (value) => ({ String: value }),
|
|
5219
|
+
StringList: (value) => ({ StringList: (0, smithy_client_1._json)(value) }),
|
|
5220
|
+
_: (name, value) => ({ name: value }),
|
|
5221
|
+
});
|
|
5222
|
+
};
|
|
5040
5223
|
const se_PortProbeAction = (input, context) => {
|
|
5041
5224
|
return (0, smithy_client_1.take)(input, {
|
|
5042
5225
|
Blocked: [],
|
|
@@ -5689,6 +5872,8 @@ const de_AwsSecurityFindingFilters = (output, context) => {
|
|
|
5689
5872
|
CompanyName: smithy_client_1._json,
|
|
5690
5873
|
ComplianceAssociatedStandardsId: smithy_client_1._json,
|
|
5691
5874
|
ComplianceSecurityControlId: smithy_client_1._json,
|
|
5875
|
+
ComplianceSecurityControlParametersName: smithy_client_1._json,
|
|
5876
|
+
ComplianceSecurityControlParametersValue: smithy_client_1._json,
|
|
5692
5877
|
ComplianceStatus: smithy_client_1._json,
|
|
5693
5878
|
Confidence: (_) => de_NumberFilterList(_, context),
|
|
5694
5879
|
CreatedAt: smithy_client_1._json,
|
|
@@ -5780,6 +5965,8 @@ const de_AwsSecurityFindingFilters = (output, context) => {
|
|
|
5780
5965
|
UpdatedAt: smithy_client_1._json,
|
|
5781
5966
|
UserDefinedFields: smithy_client_1._json,
|
|
5782
5967
|
VerificationState: smithy_client_1._json,
|
|
5968
|
+
VulnerabilitiesExploitAvailable: smithy_client_1._json,
|
|
5969
|
+
VulnerabilitiesFixAvailable: smithy_client_1._json,
|
|
5783
5970
|
WorkflowState: smithy_client_1._json,
|
|
5784
5971
|
WorkflowStatus: smithy_client_1._json,
|
|
5785
5972
|
});
|
|
@@ -5792,6 +5979,49 @@ const de_AwsSecurityFindingList = (output, context) => {
|
|
|
5792
5979
|
});
|
|
5793
5980
|
return retVal;
|
|
5794
5981
|
};
|
|
5982
|
+
const de_ConfigurationOptions = (output, context) => {
|
|
5983
|
+
if (output.Boolean != null) {
|
|
5984
|
+
return {
|
|
5985
|
+
Boolean: (0, smithy_client_1._json)(output.Boolean),
|
|
5986
|
+
};
|
|
5987
|
+
}
|
|
5988
|
+
if (output.Double != null) {
|
|
5989
|
+
return {
|
|
5990
|
+
Double: de_DoubleConfigurationOptions(output.Double, context),
|
|
5991
|
+
};
|
|
5992
|
+
}
|
|
5993
|
+
if (output.Enum != null) {
|
|
5994
|
+
return {
|
|
5995
|
+
Enum: (0, smithy_client_1._json)(output.Enum),
|
|
5996
|
+
};
|
|
5997
|
+
}
|
|
5998
|
+
if (output.EnumList != null) {
|
|
5999
|
+
return {
|
|
6000
|
+
EnumList: (0, smithy_client_1._json)(output.EnumList),
|
|
6001
|
+
};
|
|
6002
|
+
}
|
|
6003
|
+
if (output.Integer != null) {
|
|
6004
|
+
return {
|
|
6005
|
+
Integer: (0, smithy_client_1._json)(output.Integer),
|
|
6006
|
+
};
|
|
6007
|
+
}
|
|
6008
|
+
if (output.IntegerList != null) {
|
|
6009
|
+
return {
|
|
6010
|
+
IntegerList: (0, smithy_client_1._json)(output.IntegerList),
|
|
6011
|
+
};
|
|
6012
|
+
}
|
|
6013
|
+
if (output.String != null) {
|
|
6014
|
+
return {
|
|
6015
|
+
String: (0, smithy_client_1._json)(output.String),
|
|
6016
|
+
};
|
|
6017
|
+
}
|
|
6018
|
+
if (output.StringList != null) {
|
|
6019
|
+
return {
|
|
6020
|
+
StringList: (0, smithy_client_1._json)(output.StringList),
|
|
6021
|
+
};
|
|
6022
|
+
}
|
|
6023
|
+
return { $unknown: Object.entries(output)[0] };
|
|
6024
|
+
};
|
|
5795
6025
|
const de_Cvss = (output, context) => {
|
|
5796
6026
|
return (0, smithy_client_1.take)(output, {
|
|
5797
6027
|
Adjustments: smithy_client_1._json,
|
|
@@ -5809,6 +6039,13 @@ const de_CvssList = (output, context) => {
|
|
|
5809
6039
|
});
|
|
5810
6040
|
return retVal;
|
|
5811
6041
|
};
|
|
6042
|
+
const de_DoubleConfigurationOptions = (output, context) => {
|
|
6043
|
+
return (0, smithy_client_1.take)(output, {
|
|
6044
|
+
DefaultValue: smithy_client_1.limitedParseDouble,
|
|
6045
|
+
Max: smithy_client_1.limitedParseDouble,
|
|
6046
|
+
Min: smithy_client_1.limitedParseDouble,
|
|
6047
|
+
});
|
|
6048
|
+
};
|
|
5812
6049
|
const de_FindingHistoryRecord = (output, context) => {
|
|
5813
6050
|
return (0, smithy_client_1.take)(output, {
|
|
5814
6051
|
FindingCreated: smithy_client_1.expectBoolean,
|
|
@@ -5897,7 +6134,9 @@ const de_NetworkConnectionAction = (output, context) => {
|
|
|
5897
6134
|
const de_NumberFilter = (output, context) => {
|
|
5898
6135
|
return (0, smithy_client_1.take)(output, {
|
|
5899
6136
|
Eq: smithy_client_1.limitedParseDouble,
|
|
6137
|
+
Gt: smithy_client_1.limitedParseDouble,
|
|
5900
6138
|
Gte: smithy_client_1.limitedParseDouble,
|
|
6139
|
+
Lt: smithy_client_1.limitedParseDouble,
|
|
5901
6140
|
Lte: smithy_client_1.limitedParseDouble,
|
|
5902
6141
|
});
|
|
5903
6142
|
};
|
|
@@ -5909,6 +6148,69 @@ const de_NumberFilterList = (output, context) => {
|
|
|
5909
6148
|
});
|
|
5910
6149
|
return retVal;
|
|
5911
6150
|
};
|
|
6151
|
+
const de_ParameterConfiguration = (output, context) => {
|
|
6152
|
+
return (0, smithy_client_1.take)(output, {
|
|
6153
|
+
Value: (_) => de_ParameterValue((0, core_1.awsExpectUnion)(_), context),
|
|
6154
|
+
ValueType: smithy_client_1.expectString,
|
|
6155
|
+
});
|
|
6156
|
+
};
|
|
6157
|
+
const de_ParameterDefinition = (output, context) => {
|
|
6158
|
+
return (0, smithy_client_1.take)(output, {
|
|
6159
|
+
ConfigurationOptions: (_) => de_ConfigurationOptions((0, core_1.awsExpectUnion)(_), context),
|
|
6160
|
+
Description: smithy_client_1.expectString,
|
|
6161
|
+
});
|
|
6162
|
+
};
|
|
6163
|
+
const de_ParameterDefinitions = (output, context) => {
|
|
6164
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6165
|
+
if (value === null) {
|
|
6166
|
+
return acc;
|
|
6167
|
+
}
|
|
6168
|
+
acc[key] = de_ParameterDefinition(value, context);
|
|
6169
|
+
return acc;
|
|
6170
|
+
}, {});
|
|
6171
|
+
};
|
|
6172
|
+
const de_Parameters = (output, context) => {
|
|
6173
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6174
|
+
if (value === null) {
|
|
6175
|
+
return acc;
|
|
6176
|
+
}
|
|
6177
|
+
acc[key] = de_ParameterConfiguration(value, context);
|
|
6178
|
+
return acc;
|
|
6179
|
+
}, {});
|
|
6180
|
+
};
|
|
6181
|
+
const de_ParameterValue = (output, context) => {
|
|
6182
|
+
if ((0, smithy_client_1.expectBoolean)(output.Boolean) !== undefined) {
|
|
6183
|
+
return { Boolean: (0, smithy_client_1.expectBoolean)(output.Boolean) };
|
|
6184
|
+
}
|
|
6185
|
+
if ((0, smithy_client_1.limitedParseDouble)(output.Double) !== undefined) {
|
|
6186
|
+
return { Double: (0, smithy_client_1.limitedParseDouble)(output.Double) };
|
|
6187
|
+
}
|
|
6188
|
+
if ((0, smithy_client_1.expectString)(output.Enum) !== undefined) {
|
|
6189
|
+
return { Enum: (0, smithy_client_1.expectString)(output.Enum) };
|
|
6190
|
+
}
|
|
6191
|
+
if (output.EnumList != null) {
|
|
6192
|
+
return {
|
|
6193
|
+
EnumList: (0, smithy_client_1._json)(output.EnumList),
|
|
6194
|
+
};
|
|
6195
|
+
}
|
|
6196
|
+
if ((0, smithy_client_1.expectInt32)(output.Integer) !== undefined) {
|
|
6197
|
+
return { Integer: (0, smithy_client_1.expectInt32)(output.Integer) };
|
|
6198
|
+
}
|
|
6199
|
+
if (output.IntegerList != null) {
|
|
6200
|
+
return {
|
|
6201
|
+
IntegerList: (0, smithy_client_1._json)(output.IntegerList),
|
|
6202
|
+
};
|
|
6203
|
+
}
|
|
6204
|
+
if ((0, smithy_client_1.expectString)(output.String) !== undefined) {
|
|
6205
|
+
return { String: (0, smithy_client_1.expectString)(output.String) };
|
|
6206
|
+
}
|
|
6207
|
+
if (output.StringList != null) {
|
|
6208
|
+
return {
|
|
6209
|
+
StringList: (0, smithy_client_1._json)(output.StringList),
|
|
6210
|
+
};
|
|
6211
|
+
}
|
|
6212
|
+
return { $unknown: Object.entries(output)[0] };
|
|
6213
|
+
};
|
|
5912
6214
|
const de_PortProbeAction = (output, context) => {
|
|
5913
6215
|
return (0, smithy_client_1.take)(output, {
|
|
5914
6216
|
Blocked: smithy_client_1.expectBoolean,
|
|
@@ -6051,6 +6353,48 @@ const de_ResourceList = (output, context) => {
|
|
|
6051
6353
|
});
|
|
6052
6354
|
return retVal;
|
|
6053
6355
|
};
|
|
6356
|
+
const de_SecurityControl = (output, context) => {
|
|
6357
|
+
return (0, smithy_client_1.take)(output, {
|
|
6358
|
+
Description: smithy_client_1.expectString,
|
|
6359
|
+
LastUpdateReason: smithy_client_1.expectString,
|
|
6360
|
+
Parameters: (_) => de_Parameters(_, context),
|
|
6361
|
+
RemediationUrl: smithy_client_1.expectString,
|
|
6362
|
+
SecurityControlArn: smithy_client_1.expectString,
|
|
6363
|
+
SecurityControlId: smithy_client_1.expectString,
|
|
6364
|
+
SecurityControlStatus: smithy_client_1.expectString,
|
|
6365
|
+
SeverityRating: smithy_client_1.expectString,
|
|
6366
|
+
Title: smithy_client_1.expectString,
|
|
6367
|
+
UpdateStatus: smithy_client_1.expectString,
|
|
6368
|
+
});
|
|
6369
|
+
};
|
|
6370
|
+
const de_SecurityControlDefinition = (output, context) => {
|
|
6371
|
+
return (0, smithy_client_1.take)(output, {
|
|
6372
|
+
CurrentRegionAvailability: smithy_client_1.expectString,
|
|
6373
|
+
CustomizableProperties: smithy_client_1._json,
|
|
6374
|
+
Description: smithy_client_1.expectString,
|
|
6375
|
+
ParameterDefinitions: (_) => de_ParameterDefinitions(_, context),
|
|
6376
|
+
RemediationUrl: smithy_client_1.expectString,
|
|
6377
|
+
SecurityControlId: smithy_client_1.expectString,
|
|
6378
|
+
SeverityRating: smithy_client_1.expectString,
|
|
6379
|
+
Title: smithy_client_1.expectString,
|
|
6380
|
+
});
|
|
6381
|
+
};
|
|
6382
|
+
const de_SecurityControlDefinitions = (output, context) => {
|
|
6383
|
+
const retVal = (output || [])
|
|
6384
|
+
.filter((e) => e != null)
|
|
6385
|
+
.map((entry) => {
|
|
6386
|
+
return de_SecurityControlDefinition(entry, context);
|
|
6387
|
+
});
|
|
6388
|
+
return retVal;
|
|
6389
|
+
};
|
|
6390
|
+
const de_SecurityControls = (output, context) => {
|
|
6391
|
+
const retVal = (output || [])
|
|
6392
|
+
.filter((e) => e != null)
|
|
6393
|
+
.map((entry) => {
|
|
6394
|
+
return de_SecurityControl(entry, context);
|
|
6395
|
+
});
|
|
6396
|
+
return retVal;
|
|
6397
|
+
};
|
|
6054
6398
|
const de_Severity = (output, context) => {
|
|
6055
6399
|
return (0, smithy_client_1.take)(output, {
|
|
6056
6400
|
Label: smithy_client_1.expectString,
|
package/dist-es/SecurityHub.js
CHANGED
|
@@ -47,6 +47,7 @@ import { GetInsightsCommand } from "./commands/GetInsightsCommand";
|
|
|
47
47
|
import { GetInvitationsCountCommand, } from "./commands/GetInvitationsCountCommand";
|
|
48
48
|
import { GetMasterAccountCommand, } from "./commands/GetMasterAccountCommand";
|
|
49
49
|
import { GetMembersCommand } from "./commands/GetMembersCommand";
|
|
50
|
+
import { GetSecurityControlDefinitionCommand, } from "./commands/GetSecurityControlDefinitionCommand";
|
|
50
51
|
import { InviteMembersCommand, } from "./commands/InviteMembersCommand";
|
|
51
52
|
import { ListAutomationRulesCommand, } from "./commands/ListAutomationRulesCommand";
|
|
52
53
|
import { ListEnabledProductsForImportCommand, } from "./commands/ListEnabledProductsForImportCommand";
|
|
@@ -64,6 +65,7 @@ import { UpdateFindingAggregatorCommand, } from "./commands/UpdateFindingAggrega
|
|
|
64
65
|
import { UpdateFindingsCommand, } from "./commands/UpdateFindingsCommand";
|
|
65
66
|
import { UpdateInsightCommand, } from "./commands/UpdateInsightCommand";
|
|
66
67
|
import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
|
|
68
|
+
import { UpdateSecurityControlCommand, } from "./commands/UpdateSecurityControlCommand";
|
|
67
69
|
import { UpdateSecurityHubConfigurationCommand, } from "./commands/UpdateSecurityHubConfigurationCommand";
|
|
68
70
|
import { UpdateStandardsControlCommand, } from "./commands/UpdateStandardsControlCommand";
|
|
69
71
|
import { SecurityHubClient } from "./SecurityHubClient";
|
|
@@ -116,6 +118,7 @@ const commands = {
|
|
|
116
118
|
GetInvitationsCountCommand,
|
|
117
119
|
GetMasterAccountCommand,
|
|
118
120
|
GetMembersCommand,
|
|
121
|
+
GetSecurityControlDefinitionCommand,
|
|
119
122
|
InviteMembersCommand,
|
|
120
123
|
ListAutomationRulesCommand,
|
|
121
124
|
ListEnabledProductsForImportCommand,
|
|
@@ -133,6 +136,7 @@ const commands = {
|
|
|
133
136
|
UpdateFindingsCommand,
|
|
134
137
|
UpdateInsightCommand,
|
|
135
138
|
UpdateOrganizationConfigurationCommand,
|
|
139
|
+
UpdateSecurityControlCommand,
|
|
136
140
|
UpdateSecurityHubConfigurationCommand,
|
|
137
141
|
UpdateStandardsControlCommand,
|
|
138
142
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_GetSecurityControlDefinitionCommand, se_GetSecurityControlDefinitionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetSecurityControlDefinitionCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetSecurityControlDefinitionCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "SecurityHubClient";
|
|
26
|
+
const commandName = "GetSecurityControlDefinitionCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "SecurityHubAPIService",
|
|
35
|
+
operation: "GetSecurityControlDefinition",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_GetSecurityControlDefinitionCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_GetSecurityControlDefinitionCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateSecurityControlCommand, se_UpdateSecurityControlCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateSecurityControlCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateSecurityControlCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "SecurityHubClient";
|
|
26
|
+
const commandName = "UpdateSecurityControlCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "SecurityHubAPIService",
|
|
35
|
+
operation: "UpdateSecurityControl",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateSecurityControlCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateSecurityControlCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -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";
|