@aws-sdk/client-securityhub 3.928.0 → 3.930.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.
Files changed (132) hide show
  1. package/dist-cjs/index.js +13276 -6559
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/SecurityHubClient.js +2 -0
  4. package/dist-es/commands/AcceptAdministratorInvitationCommand.js +3 -9
  5. package/dist-es/commands/AcceptInvitationCommand.js +3 -9
  6. package/dist-es/commands/BatchDeleteAutomationRulesCommand.js +3 -9
  7. package/dist-es/commands/BatchDisableStandardsCommand.js +3 -9
  8. package/dist-es/commands/BatchEnableStandardsCommand.js +3 -9
  9. package/dist-es/commands/BatchGetAutomationRulesCommand.js +3 -9
  10. package/dist-es/commands/BatchGetConfigurationPolicyAssociationsCommand.js +3 -9
  11. package/dist-es/commands/BatchGetSecurityControlsCommand.js +3 -9
  12. package/dist-es/commands/BatchGetStandardsControlAssociationsCommand.js +3 -9
  13. package/dist-es/commands/BatchImportFindingsCommand.js +3 -9
  14. package/dist-es/commands/BatchUpdateAutomationRulesCommand.js +3 -9
  15. package/dist-es/commands/BatchUpdateFindingsCommand.js +3 -9
  16. package/dist-es/commands/BatchUpdateFindingsV2Command.js +3 -9
  17. package/dist-es/commands/BatchUpdateStandardsControlAssociationsCommand.js +3 -9
  18. package/dist-es/commands/ConnectorRegistrationsV2Command.js +3 -9
  19. package/dist-es/commands/CreateActionTargetCommand.js +3 -9
  20. package/dist-es/commands/CreateAggregatorV2Command.js +3 -9
  21. package/dist-es/commands/CreateAutomationRuleCommand.js +3 -9
  22. package/dist-es/commands/CreateAutomationRuleV2Command.js +3 -9
  23. package/dist-es/commands/CreateConfigurationPolicyCommand.js +3 -9
  24. package/dist-es/commands/CreateConnectorV2Command.js +3 -10
  25. package/dist-es/commands/CreateFindingAggregatorCommand.js +3 -9
  26. package/dist-es/commands/CreateInsightCommand.js +3 -9
  27. package/dist-es/commands/CreateMembersCommand.js +3 -9
  28. package/dist-es/commands/CreateTicketV2Command.js +3 -9
  29. package/dist-es/commands/DeclineInvitationsCommand.js +3 -9
  30. package/dist-es/commands/DeleteActionTargetCommand.js +3 -9
  31. package/dist-es/commands/DeleteAggregatorV2Command.js +3 -9
  32. package/dist-es/commands/DeleteAutomationRuleV2Command.js +3 -9
  33. package/dist-es/commands/DeleteConfigurationPolicyCommand.js +3 -9
  34. package/dist-es/commands/DeleteConnectorV2Command.js +3 -9
  35. package/dist-es/commands/DeleteFindingAggregatorCommand.js +3 -9
  36. package/dist-es/commands/DeleteInsightCommand.js +3 -9
  37. package/dist-es/commands/DeleteInvitationsCommand.js +3 -9
  38. package/dist-es/commands/DeleteMembersCommand.js +3 -9
  39. package/dist-es/commands/DescribeActionTargetsCommand.js +3 -9
  40. package/dist-es/commands/DescribeHubCommand.js +3 -9
  41. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -9
  42. package/dist-es/commands/DescribeProductsCommand.js +3 -9
  43. package/dist-es/commands/DescribeProductsV2Command.js +3 -9
  44. package/dist-es/commands/DescribeSecurityHubV2Command.js +3 -9
  45. package/dist-es/commands/DescribeStandardsCommand.js +3 -9
  46. package/dist-es/commands/DescribeStandardsControlsCommand.js +3 -9
  47. package/dist-es/commands/DisableImportFindingsForProductCommand.js +3 -9
  48. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +3 -9
  49. package/dist-es/commands/DisableSecurityHubCommand.js +3 -9
  50. package/dist-es/commands/DisableSecurityHubV2Command.js +3 -9
  51. package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +3 -9
  52. package/dist-es/commands/DisassociateFromMasterAccountCommand.js +3 -9
  53. package/dist-es/commands/DisassociateMembersCommand.js +3 -9
  54. package/dist-es/commands/EnableImportFindingsForProductCommand.js +3 -9
  55. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +3 -9
  56. package/dist-es/commands/EnableSecurityHubCommand.js +3 -9
  57. package/dist-es/commands/EnableSecurityHubV2Command.js +3 -9
  58. package/dist-es/commands/GetAdministratorAccountCommand.js +3 -9
  59. package/dist-es/commands/GetAggregatorV2Command.js +3 -9
  60. package/dist-es/commands/GetAutomationRuleV2Command.js +3 -9
  61. package/dist-es/commands/GetConfigurationPolicyAssociationCommand.js +3 -9
  62. package/dist-es/commands/GetConfigurationPolicyCommand.js +3 -9
  63. package/dist-es/commands/GetConnectorV2Command.js +3 -9
  64. package/dist-es/commands/GetEnabledStandardsCommand.js +3 -9
  65. package/dist-es/commands/GetFindingAggregatorCommand.js +3 -9
  66. package/dist-es/commands/GetFindingHistoryCommand.js +3 -9
  67. package/dist-es/commands/GetFindingStatisticsV2Command.js +3 -9
  68. package/dist-es/commands/GetFindingsCommand.js +3 -9
  69. package/dist-es/commands/GetFindingsV2Command.js +3 -9
  70. package/dist-es/commands/GetInsightResultsCommand.js +3 -9
  71. package/dist-es/commands/GetInsightsCommand.js +3 -9
  72. package/dist-es/commands/GetInvitationsCountCommand.js +3 -9
  73. package/dist-es/commands/GetMasterAccountCommand.js +3 -9
  74. package/dist-es/commands/GetMembersCommand.js +3 -9
  75. package/dist-es/commands/GetResourcesStatisticsV2Command.js +3 -9
  76. package/dist-es/commands/GetResourcesV2Command.js +3 -9
  77. package/dist-es/commands/GetSecurityControlDefinitionCommand.js +3 -9
  78. package/dist-es/commands/InviteMembersCommand.js +3 -9
  79. package/dist-es/commands/ListAggregatorsV2Command.js +3 -9
  80. package/dist-es/commands/ListAutomationRulesCommand.js +3 -9
  81. package/dist-es/commands/ListAutomationRulesV2Command.js +3 -9
  82. package/dist-es/commands/ListConfigurationPoliciesCommand.js +3 -9
  83. package/dist-es/commands/ListConfigurationPolicyAssociationsCommand.js +3 -9
  84. package/dist-es/commands/ListConnectorsV2Command.js +3 -9
  85. package/dist-es/commands/ListEnabledProductsForImportCommand.js +3 -9
  86. package/dist-es/commands/ListFindingAggregatorsCommand.js +3 -9
  87. package/dist-es/commands/ListInvitationsCommand.js +3 -9
  88. package/dist-es/commands/ListMembersCommand.js +3 -9
  89. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -9
  90. package/dist-es/commands/ListSecurityControlDefinitionsCommand.js +3 -9
  91. package/dist-es/commands/ListStandardsControlAssociationsCommand.js +3 -9
  92. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  93. package/dist-es/commands/StartConfigurationPolicyAssociationCommand.js +3 -9
  94. package/dist-es/commands/StartConfigurationPolicyDisassociationCommand.js +3 -9
  95. package/dist-es/commands/TagResourceCommand.js +3 -9
  96. package/dist-es/commands/UntagResourceCommand.js +3 -9
  97. package/dist-es/commands/UpdateActionTargetCommand.js +3 -9
  98. package/dist-es/commands/UpdateAggregatorV2Command.js +3 -9
  99. package/dist-es/commands/UpdateAutomationRuleV2Command.js +3 -9
  100. package/dist-es/commands/UpdateConfigurationPolicyCommand.js +3 -9
  101. package/dist-es/commands/UpdateConnectorV2Command.js +3 -10
  102. package/dist-es/commands/UpdateFindingAggregatorCommand.js +3 -9
  103. package/dist-es/commands/UpdateFindingsCommand.js +3 -9
  104. package/dist-es/commands/UpdateInsightCommand.js +3 -9
  105. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -9
  106. package/dist-es/commands/UpdateSecurityControlCommand.js +3 -9
  107. package/dist-es/commands/UpdateSecurityHubConfigurationCommand.js +3 -9
  108. package/dist-es/commands/UpdateStandardsControlCommand.js +3 -9
  109. package/dist-es/models/models_2.js +0 -101
  110. package/dist-es/models/models_3.js +0 -22
  111. package/dist-es/runtimeConfig.shared.js +2 -0
  112. package/dist-es/schemas/schemas_0.js +12861 -0
  113. package/dist-types/SecurityHubClient.d.ts +10 -1
  114. package/dist-types/models/models_2.d.ts +24 -18
  115. package/dist-types/models/models_3.d.ts +8 -6
  116. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  117. package/dist-types/runtimeConfig.d.ts +1 -0
  118. package/dist-types/runtimeConfig.native.d.ts +1 -0
  119. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  120. package/dist-types/schemas/schemas_0.d.ts +1364 -0
  121. package/dist-types/ts3.4/SecurityHubClient.d.ts +4 -0
  122. package/dist-types/ts3.4/models/models_2.d.ts +0 -15
  123. package/dist-types/ts3.4/models/models_3.d.ts +0 -8
  124. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  125. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  126. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  127. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  128. package/dist-types/ts3.4/schemas/schemas_0.d.ts +1371 -0
  129. package/package.json +33 -34
  130. package/dist-es/protocols/Aws_restJson1.js +0 -5468
  131. package/dist-types/protocols/Aws_restJson1.d.ts +0 -947
  132. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -1265
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "TagResource", {})
17
13
  .n("SecurityHubClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UntagResource", {})
17
13
  .n("SecurityHubClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateActionTargetCommand, se_UpdateActionTargetCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateActionTarget } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateActionTargetCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateActionTarget", {})
17
13
  .n("SecurityHubClient", "UpdateActionTargetCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateActionTargetCommand)
20
- .de(de_UpdateActionTargetCommand)
14
+ .sc(UpdateActionTarget)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateAggregatorV2Command, se_UpdateAggregatorV2Command } from "../protocols/Aws_restJson1";
4
+ import { UpdateAggregatorV2 } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateAggregatorV2Command extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateAggregatorV2", {})
17
13
  .n("SecurityHubClient", "UpdateAggregatorV2Command")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateAggregatorV2Command)
20
- .de(de_UpdateAggregatorV2Command)
14
+ .sc(UpdateAggregatorV2)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateAutomationRuleV2Command, se_UpdateAutomationRuleV2Command } from "../protocols/Aws_restJson1";
4
+ import { UpdateAutomationRuleV2 } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateAutomationRuleV2Command extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateAutomationRuleV2", {})
17
13
  .n("SecurityHubClient", "UpdateAutomationRuleV2Command")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateAutomationRuleV2Command)
20
- .de(de_UpdateAutomationRuleV2Command)
14
+ .sc(UpdateAutomationRuleV2)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateConfigurationPolicyCommand, se_UpdateConfigurationPolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateConfigurationPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateConfigurationPolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateConfigurationPolicy", {})
17
13
  .n("SecurityHubClient", "UpdateConfigurationPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateConfigurationPolicyCommand)
20
- .de(de_UpdateConfigurationPolicyCommand)
14
+ .sc(UpdateConfigurationPolicy)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdateConnectorV2RequestFilterSensitiveLog, } from "../models/models_3";
6
- import { de_UpdateConnectorV2Command, se_UpdateConnectorV2Command } from "../protocols/Aws_restJson1";
4
+ import { UpdateConnectorV2 } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class UpdateConnectorV2Command extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("SecurityHubAPIService", "UpdateConnectorV2", {})
18
13
  .n("SecurityHubClient", "UpdateConnectorV2Command")
19
- .f(UpdateConnectorV2RequestFilterSensitiveLog, void 0)
20
- .ser(se_UpdateConnectorV2Command)
21
- .de(de_UpdateConnectorV2Command)
14
+ .sc(UpdateConnectorV2)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateFindingAggregatorCommand, se_UpdateFindingAggregatorCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateFindingAggregator } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateFindingAggregatorCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateFindingAggregator", {})
17
13
  .n("SecurityHubClient", "UpdateFindingAggregatorCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateFindingAggregatorCommand)
20
- .de(de_UpdateFindingAggregatorCommand)
14
+ .sc(UpdateFindingAggregator)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateFindingsCommand, se_UpdateFindingsCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateFindings } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateFindingsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateFindings", {})
17
13
  .n("SecurityHubClient", "UpdateFindingsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateFindingsCommand)
20
- .de(de_UpdateFindingsCommand)
14
+ .sc(UpdateFindings)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateInsightCommand, se_UpdateInsightCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateInsight } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateInsightCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateInsight", {})
17
13
  .n("SecurityHubClient", "UpdateInsightCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateInsightCommand)
20
- .de(de_UpdateInsightCommand)
14
+ .sc(UpdateInsight)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateOrganizationConfigurationCommand, se_UpdateOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
4
+ import { UpdateOrganizationConfiguration } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateOrganizationConfigurationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateOrganizationConfiguration", {})
17
13
  .n("SecurityHubClient", "UpdateOrganizationConfigurationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateOrganizationConfigurationCommand)
20
- .de(de_UpdateOrganizationConfigurationCommand)
14
+ .sc(UpdateOrganizationConfiguration)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateSecurityControlCommand, se_UpdateSecurityControlCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateSecurityControl } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateSecurityControlCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateSecurityControl", {})
17
13
  .n("SecurityHubClient", "UpdateSecurityControlCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateSecurityControlCommand)
20
- .de(de_UpdateSecurityControlCommand)
14
+ .sc(UpdateSecurityControl)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateSecurityHubConfigurationCommand, se_UpdateSecurityHubConfigurationCommand, } from "../protocols/Aws_restJson1";
4
+ import { UpdateSecurityHubConfiguration } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateSecurityHubConfigurationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateSecurityHubConfiguration", {})
17
13
  .n("SecurityHubClient", "UpdateSecurityHubConfigurationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateSecurityHubConfigurationCommand)
20
- .de(de_UpdateSecurityHubConfigurationCommand)
14
+ .sc(UpdateSecurityHubConfiguration)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateStandardsControlCommand, se_UpdateStandardsControlCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateStandardsControl } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateStandardsControlCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("SecurityHubAPIService", "UpdateStandardsControl", {})
17
13
  .n("SecurityHubClient", "UpdateStandardsControlCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateStandardsControlCommand)
20
- .de(de_UpdateStandardsControlCommand)
14
+ .sc(UpdateStandardsControl)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
3
2
  export const Partition = {
4
3
  AWS: "aws",
@@ -58,45 +57,11 @@ export const StatusReasonCode = {
58
57
  MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED: "MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED",
59
58
  NO_AVAILABLE_CONFIGURATION_RECORDER: "NO_AVAILABLE_CONFIGURATION_RECORDER",
60
59
  };
61
- export var Target;
62
- (function (Target) {
63
- Target.visit = (value, visitor) => {
64
- if (value.AccountId !== undefined)
65
- return visitor.AccountId(value.AccountId);
66
- if (value.OrganizationalUnitId !== undefined)
67
- return visitor.OrganizationalUnitId(value.OrganizationalUnitId);
68
- if (value.RootId !== undefined)
69
- return visitor.RootId(value.RootId);
70
- return visitor._(value.$unknown[0], value.$unknown[1]);
71
- };
72
- })(Target || (Target = {}));
73
60
  export const TargetType = {
74
61
  ACCOUNT: "ACCOUNT",
75
62
  ORGANIZATIONAL_UNIT: "ORGANIZATIONAL_UNIT",
76
63
  ROOT: "ROOT",
77
64
  };
78
- export var ParameterValue;
79
- (function (ParameterValue) {
80
- ParameterValue.visit = (value, visitor) => {
81
- if (value.Integer !== undefined)
82
- return visitor.Integer(value.Integer);
83
- if (value.IntegerList !== undefined)
84
- return visitor.IntegerList(value.IntegerList);
85
- if (value.Double !== undefined)
86
- return visitor.Double(value.Double);
87
- if (value.String !== undefined)
88
- return visitor.String(value.String);
89
- if (value.StringList !== undefined)
90
- return visitor.StringList(value.StringList);
91
- if (value.Boolean !== undefined)
92
- return visitor.Boolean(value.Boolean);
93
- if (value.Enum !== undefined)
94
- return visitor.Enum(value.Enum);
95
- if (value.EnumList !== undefined)
96
- return visitor.EnumList(value.EnumList);
97
- return visitor._(value.$unknown[0], value.$unknown[1]);
98
- };
99
- })(ParameterValue || (ParameterValue = {}));
100
65
  export const ParameterValueType = {
101
66
  CUSTOM: "CUSTOM",
102
67
  DEFAULT: "DEFAULT",
@@ -301,28 +266,6 @@ export const OcsfStringField = {
301
266
  VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
302
267
  VULNERABILITIES_RELATED_VULNERABILITIES: "vulnerabilities.related_vulnerabilities",
303
268
  };
304
- export var ConfigurationOptions;
305
- (function (ConfigurationOptions) {
306
- ConfigurationOptions.visit = (value, visitor) => {
307
- if (value.Integer !== undefined)
308
- return visitor.Integer(value.Integer);
309
- if (value.IntegerList !== undefined)
310
- return visitor.IntegerList(value.IntegerList);
311
- if (value.Double !== undefined)
312
- return visitor.Double(value.Double);
313
- if (value.String !== undefined)
314
- return visitor.String(value.String);
315
- if (value.StringList !== undefined)
316
- return visitor.StringList(value.StringList);
317
- if (value.Boolean !== undefined)
318
- return visitor.Boolean(value.Boolean);
319
- if (value.Enum !== undefined)
320
- return visitor.Enum(value.Enum);
321
- if (value.EnumList !== undefined)
322
- return visitor.EnumList(value.EnumList);
323
- return visitor._(value.$unknown[0], value.$unknown[1]);
324
- };
325
- })(ConfigurationOptions || (ConfigurationOptions = {}));
326
269
  export const ConnectorAuthStatus = {
327
270
  ACTIVE: "ACTIVE",
328
271
  FAILED: "FAILED",
@@ -357,24 +300,6 @@ export class ResourceConflictException extends __BaseException {
357
300
  this.Code = opts.Code;
358
301
  }
359
302
  }
360
- export var Policy;
361
- (function (Policy) {
362
- Policy.visit = (value, visitor) => {
363
- if (value.SecurityHub !== undefined)
364
- return visitor.SecurityHub(value.SecurityHub);
365
- return visitor._(value.$unknown[0], value.$unknown[1]);
366
- };
367
- })(Policy || (Policy = {}));
368
- export var ProviderConfiguration;
369
- (function (ProviderConfiguration) {
370
- ProviderConfiguration.visit = (value, visitor) => {
371
- if (value.JiraCloud !== undefined)
372
- return visitor.JiraCloud(value.JiraCloud);
373
- if (value.ServiceNow !== undefined)
374
- return visitor.ServiceNow(value.ServiceNow);
375
- return visitor._(value.$unknown[0], value.$unknown[1]);
376
- };
377
- })(ProviderConfiguration || (ProviderConfiguration = {}));
378
303
  export const SecurityControlProperty = {
379
304
  Parameters: "Parameters",
380
305
  };
@@ -405,16 +330,6 @@ export const FindingHistoryUpdateSourceType = {
405
330
  BATCH_IMPORT_FINDINGS: "BATCH_IMPORT_FINDINGS",
406
331
  BATCH_UPDATE_FINDINGS: "BATCH_UPDATE_FINDINGS",
407
332
  };
408
- export var ProviderDetail;
409
- (function (ProviderDetail) {
410
- ProviderDetail.visit = (value, visitor) => {
411
- if (value.JiraCloud !== undefined)
412
- return visitor.JiraCloud(value.JiraCloud);
413
- if (value.ServiceNow !== undefined)
414
- return visitor.ServiceNow(value.ServiceNow);
415
- return visitor._(value.$unknown[0], value.$unknown[1]);
416
- };
417
- })(ProviderDetail || (ProviderDetail = {}));
418
333
  export const SortOrder = {
419
334
  ASCENDING: "asc",
420
335
  DESCENDING: "desc",
@@ -442,19 +357,3 @@ export const GroupByField = {
442
357
  VULNERABILITIES_AFFECTED_PACKAGES_NAME: "vulnerabilities.affected_packages.name",
443
358
  VULNERABILITIES_FIX_COVERAGE: "vulnerabilities.fix_coverage",
444
359
  };
445
- export const ServiceNowProviderConfigurationFilterSensitiveLog = (obj) => ({
446
- ...obj,
447
- ...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
448
- });
449
- export const ProviderConfigurationFilterSensitiveLog = (obj) => {
450
- if (obj.JiraCloud !== undefined)
451
- return { JiraCloud: obj.JiraCloud };
452
- if (obj.ServiceNow !== undefined)
453
- return { ServiceNow: ServiceNowProviderConfigurationFilterSensitiveLog(obj.ServiceNow) };
454
- if (obj.$unknown !== undefined)
455
- return { [obj.$unknown[0]]: "UNKNOWN" };
456
- };
457
- export const CreateConnectorV2RequestFilterSensitiveLog = (obj) => ({
458
- ...obj,
459
- ...(obj.Provider && { Provider: ProviderConfigurationFilterSensitiveLog(obj.Provider) }),
460
- });
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
3
2
  export const ResourcesDateField = {
4
3
  RESOURCE_CREATION_TIME_DT: "ResourceCreationTime",
@@ -51,14 +50,6 @@ export const RegionAvailabilityStatus = {
51
50
  AVAILABLE: "AVAILABLE",
52
51
  UNAVAILABLE: "UNAVAILABLE",
53
52
  };
54
- export var ProviderUpdateConfiguration;
55
- (function (ProviderUpdateConfiguration) {
56
- ProviderUpdateConfiguration.visit = (value, visitor) => {
57
- if (value.JiraCloud !== undefined)
58
- return visitor.JiraCloud(value.JiraCloud);
59
- return visitor._(value.$unknown[0], value.$unknown[1]);
60
- };
61
- })(ProviderUpdateConfiguration || (ProviderUpdateConfiguration = {}));
62
53
  export class ResourceInUseException extends __BaseException {
63
54
  name = "ResourceInUseException";
64
55
  $fault = "client";
@@ -75,16 +66,3 @@ export class ResourceInUseException extends __BaseException {
75
66
  this.Code = opts.Code;
76
67
  }
77
68
  }
78
- export var Criteria;
79
- (function (Criteria) {
80
- Criteria.visit = (value, visitor) => {
81
- if (value.OcsfFindingCriteria !== undefined)
82
- return visitor.OcsfFindingCriteria(value.OcsfFindingCriteria);
83
- return visitor._(value.$unknown[0], value.$unknown[1]);
84
- };
85
- })(Criteria || (Criteria = {}));
86
- export const UpdateConnectorV2RequestFilterSensitiveLog = (obj) => ({
87
- ...obj,
88
- ...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
89
- ...(obj.Provider && { Provider: obj.Provider }),
90
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.securityhub" }),
25
27
  serviceId: config?.serviceId ?? "SecurityHub",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,