Skip to content

Commit

Permalink
feat(client-securityhub): Add support for Security Hub Automation Rules
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Jun 13, 2023
1 parent bf99f16 commit b511d0c
Show file tree
Hide file tree
Showing 15 changed files with 9,618 additions and 6,357 deletions.
40 changes: 40 additions & 0 deletions clients/client-securityhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ AcceptInvitation

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/acceptinvitationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/acceptinvitationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/acceptinvitationcommandoutput.html)

</details>
<details>
<summary>
BatchDeleteAutomationRules
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchdeleteautomationrulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchdeleteautomationrulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchdeleteautomationrulescommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -279,6 +287,14 @@ BatchEnableStandards

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchenablestandardscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchenablestandardscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchenablestandardscommandoutput.html)

</details>
<details>
<summary>
BatchGetAutomationRules
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchgetautomationrulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchgetautomationrulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchgetautomationrulescommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -303,6 +319,14 @@ BatchImportFindings

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchimportfindingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchimportfindingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchimportfindingscommandoutput.html)

</details>
<details>
<summary>
BatchUpdateAutomationRules
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchupdateautomationrulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchupdateautomationrulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchupdateautomationrulescommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -327,6 +351,14 @@ CreateActionTarget

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/createactiontargetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/createactiontargetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/createactiontargetcommandoutput.html)

</details>
<details>
<summary>
CreateAutomationRule
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/createautomationrulecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/createautomationrulecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/createautomationrulecommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -607,6 +639,14 @@ InviteMembers

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/invitememberscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/invitememberscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/invitememberscommandoutput.html)

</details>
<details>
<summary>
ListAutomationRules
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/listautomationrulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/listautomationrulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/listautomationrulescommandoutput.html)

</details>
<details>
<summary>
Expand Down
115 changes: 115 additions & 0 deletions clients/client-securityhub/src/SecurityHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import {
AcceptInvitationCommandInput,
AcceptInvitationCommandOutput,
} from "./commands/AcceptInvitationCommand";
import {
BatchDeleteAutomationRulesCommand,
BatchDeleteAutomationRulesCommandInput,
BatchDeleteAutomationRulesCommandOutput,
} from "./commands/BatchDeleteAutomationRulesCommand";
import {
BatchDisableStandardsCommand,
BatchDisableStandardsCommandInput,
Expand All @@ -22,6 +27,11 @@ import {
BatchEnableStandardsCommandInput,
BatchEnableStandardsCommandOutput,
} from "./commands/BatchEnableStandardsCommand";
import {
BatchGetAutomationRulesCommand,
BatchGetAutomationRulesCommandInput,
BatchGetAutomationRulesCommandOutput,
} from "./commands/BatchGetAutomationRulesCommand";
import {
BatchGetSecurityControlsCommand,
BatchGetSecurityControlsCommandInput,
Expand All @@ -37,6 +47,11 @@ import {
BatchImportFindingsCommandInput,
BatchImportFindingsCommandOutput,
} from "./commands/BatchImportFindingsCommand";
import {
BatchUpdateAutomationRulesCommand,
BatchUpdateAutomationRulesCommandInput,
BatchUpdateAutomationRulesCommandOutput,
} from "./commands/BatchUpdateAutomationRulesCommand";
import {
BatchUpdateFindingsCommand,
BatchUpdateFindingsCommandInput,
Expand All @@ -52,6 +67,11 @@ import {
CreateActionTargetCommandInput,
CreateActionTargetCommandOutput,
} from "./commands/CreateActionTargetCommand";
import {
CreateAutomationRuleCommand,
CreateAutomationRuleCommandInput,
CreateAutomationRuleCommandOutput,
} from "./commands/CreateAutomationRuleCommand";
import {
CreateFindingAggregatorCommand,
CreateFindingAggregatorCommandInput,
Expand Down Expand Up @@ -211,6 +231,11 @@ import {
InviteMembersCommandInput,
InviteMembersCommandOutput,
} from "./commands/InviteMembersCommand";
import {
ListAutomationRulesCommand,
ListAutomationRulesCommandInput,
ListAutomationRulesCommandOutput,
} from "./commands/ListAutomationRulesCommand";
import {
ListEnabledProductsForImportCommand,
ListEnabledProductsForImportCommandInput,
Expand Down Expand Up @@ -293,14 +318,18 @@ import { SecurityHubClient, SecurityHubClientConfig } from "./SecurityHubClient"
const commands = {
AcceptAdministratorInvitationCommand,
AcceptInvitationCommand,
BatchDeleteAutomationRulesCommand,
BatchDisableStandardsCommand,
BatchEnableStandardsCommand,
BatchGetAutomationRulesCommand,
BatchGetSecurityControlsCommand,
BatchGetStandardsControlAssociationsCommand,
BatchImportFindingsCommand,
BatchUpdateAutomationRulesCommand,
BatchUpdateFindingsCommand,
BatchUpdateStandardsControlAssociationsCommand,
CreateActionTargetCommand,
CreateAutomationRuleCommand,
CreateFindingAggregatorCommand,
CreateInsightCommand,
CreateMembersCommand,
Expand Down Expand Up @@ -336,6 +365,7 @@ const commands = {
GetMasterAccountCommand,
GetMembersCommand,
InviteMembersCommand,
ListAutomationRulesCommand,
ListEnabledProductsForImportCommand,
ListFindingAggregatorsCommand,
ListInvitationsCommand,
Expand Down Expand Up @@ -390,6 +420,23 @@ export interface SecurityHub {
cb: (err: any, data?: AcceptInvitationCommandOutput) => void
): void;

/**
* @see {@link BatchDeleteAutomationRulesCommand}
*/
batchDeleteAutomationRules(
args: BatchDeleteAutomationRulesCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchDeleteAutomationRulesCommandOutput>;
batchDeleteAutomationRules(
args: BatchDeleteAutomationRulesCommandInput,
cb: (err: any, data?: BatchDeleteAutomationRulesCommandOutput) => void
): void;
batchDeleteAutomationRules(
args: BatchDeleteAutomationRulesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchDeleteAutomationRulesCommandOutput) => void
): void;

/**
* @see {@link BatchDisableStandardsCommand}
*/
Expand Down Expand Up @@ -424,6 +471,23 @@ export interface SecurityHub {
cb: (err: any, data?: BatchEnableStandardsCommandOutput) => void
): void;

/**
* @see {@link BatchGetAutomationRulesCommand}
*/
batchGetAutomationRules(
args: BatchGetAutomationRulesCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchGetAutomationRulesCommandOutput>;
batchGetAutomationRules(
args: BatchGetAutomationRulesCommandInput,
cb: (err: any, data?: BatchGetAutomationRulesCommandOutput) => void
): void;
batchGetAutomationRules(
args: BatchGetAutomationRulesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchGetAutomationRulesCommandOutput) => void
): void;

/**
* @see {@link BatchGetSecurityControlsCommand}
*/
Expand Down Expand Up @@ -475,6 +539,23 @@ export interface SecurityHub {
cb: (err: any, data?: BatchImportFindingsCommandOutput) => void
): void;

/**
* @see {@link BatchUpdateAutomationRulesCommand}
*/
batchUpdateAutomationRules(
args: BatchUpdateAutomationRulesCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchUpdateAutomationRulesCommandOutput>;
batchUpdateAutomationRules(
args: BatchUpdateAutomationRulesCommandInput,
cb: (err: any, data?: BatchUpdateAutomationRulesCommandOutput) => void
): void;
batchUpdateAutomationRules(
args: BatchUpdateAutomationRulesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchUpdateAutomationRulesCommandOutput) => void
): void;

/**
* @see {@link BatchUpdateFindingsCommand}
*/
Expand Down Expand Up @@ -526,6 +607,23 @@ export interface SecurityHub {
cb: (err: any, data?: CreateActionTargetCommandOutput) => void
): void;

/**
* @see {@link CreateAutomationRuleCommand}
*/
createAutomationRule(
args: CreateAutomationRuleCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateAutomationRuleCommandOutput>;
createAutomationRule(
args: CreateAutomationRuleCommandInput,
cb: (err: any, data?: CreateAutomationRuleCommandOutput) => void
): void;
createAutomationRule(
args: CreateAutomationRuleCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateAutomationRuleCommandOutput) => void
): void;

/**
* @see {@link CreateFindingAggregatorCommand}
*/
Expand Down Expand Up @@ -1067,6 +1165,23 @@ export interface SecurityHub {
cb: (err: any, data?: InviteMembersCommandOutput) => void
): void;

/**
* @see {@link ListAutomationRulesCommand}
*/
listAutomationRules(
args: ListAutomationRulesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListAutomationRulesCommandOutput>;
listAutomationRules(
args: ListAutomationRulesCommandInput,
cb: (err: any, data?: ListAutomationRulesCommandOutput) => void
): void;
listAutomationRules(
args: ListAutomationRulesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListAutomationRulesCommandOutput) => void
): void;

/**
* @see {@link ListEnabledProductsForImportCommand}
*/
Expand Down
30 changes: 30 additions & 0 deletions clients/client-securityhub/src/SecurityHubClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ import {
AcceptAdministratorInvitationCommandOutput,
} from "./commands/AcceptAdministratorInvitationCommand";
import { AcceptInvitationCommandInput, AcceptInvitationCommandOutput } from "./commands/AcceptInvitationCommand";
import {
BatchDeleteAutomationRulesCommandInput,
BatchDeleteAutomationRulesCommandOutput,
} from "./commands/BatchDeleteAutomationRulesCommand";
import {
BatchDisableStandardsCommandInput,
BatchDisableStandardsCommandOutput,
Expand All @@ -64,6 +68,10 @@ import {
BatchEnableStandardsCommandInput,
BatchEnableStandardsCommandOutput,
} from "./commands/BatchEnableStandardsCommand";
import {
BatchGetAutomationRulesCommandInput,
BatchGetAutomationRulesCommandOutput,
} from "./commands/BatchGetAutomationRulesCommand";
import {
BatchGetSecurityControlsCommandInput,
BatchGetSecurityControlsCommandOutput,
Expand All @@ -76,6 +84,10 @@ import {
BatchImportFindingsCommandInput,
BatchImportFindingsCommandOutput,
} from "./commands/BatchImportFindingsCommand";
import {
BatchUpdateAutomationRulesCommandInput,
BatchUpdateAutomationRulesCommandOutput,
} from "./commands/BatchUpdateAutomationRulesCommand";
import {
BatchUpdateFindingsCommandInput,
BatchUpdateFindingsCommandOutput,
Expand All @@ -85,6 +97,10 @@ import {
BatchUpdateStandardsControlAssociationsCommandOutput,
} from "./commands/BatchUpdateStandardsControlAssociationsCommand";
import { CreateActionTargetCommandInput, CreateActionTargetCommandOutput } from "./commands/CreateActionTargetCommand";
import {
CreateAutomationRuleCommandInput,
CreateAutomationRuleCommandOutput,
} from "./commands/CreateAutomationRuleCommand";
import {
CreateFindingAggregatorCommandInput,
CreateFindingAggregatorCommandOutput,
Expand Down Expand Up @@ -168,6 +184,10 @@ import {
import { GetMasterAccountCommandInput, GetMasterAccountCommandOutput } from "./commands/GetMasterAccountCommand";
import { GetMembersCommandInput, GetMembersCommandOutput } from "./commands/GetMembersCommand";
import { InviteMembersCommandInput, InviteMembersCommandOutput } from "./commands/InviteMembersCommand";
import {
ListAutomationRulesCommandInput,
ListAutomationRulesCommandOutput,
} from "./commands/ListAutomationRulesCommand";
import {
ListEnabledProductsForImportCommandInput,
ListEnabledProductsForImportCommandOutput,
Expand Down Expand Up @@ -231,14 +251,18 @@ export { __Client };
export type ServiceInputTypes =
| AcceptAdministratorInvitationCommandInput
| AcceptInvitationCommandInput
| BatchDeleteAutomationRulesCommandInput
| BatchDisableStandardsCommandInput
| BatchEnableStandardsCommandInput
| BatchGetAutomationRulesCommandInput
| BatchGetSecurityControlsCommandInput
| BatchGetStandardsControlAssociationsCommandInput
| BatchImportFindingsCommandInput
| BatchUpdateAutomationRulesCommandInput
| BatchUpdateFindingsCommandInput
| BatchUpdateStandardsControlAssociationsCommandInput
| CreateActionTargetCommandInput
| CreateAutomationRuleCommandInput
| CreateFindingAggregatorCommandInput
| CreateInsightCommandInput
| CreateMembersCommandInput
Expand Down Expand Up @@ -274,6 +298,7 @@ export type ServiceInputTypes =
| GetMasterAccountCommandInput
| GetMembersCommandInput
| InviteMembersCommandInput
| ListAutomationRulesCommandInput
| ListEnabledProductsForImportCommandInput
| ListFindingAggregatorsCommandInput
| ListInvitationsCommandInput
Expand All @@ -298,14 +323,18 @@ export type ServiceInputTypes =
export type ServiceOutputTypes =
| AcceptAdministratorInvitationCommandOutput
| AcceptInvitationCommandOutput
| BatchDeleteAutomationRulesCommandOutput
| BatchDisableStandardsCommandOutput
| BatchEnableStandardsCommandOutput
| BatchGetAutomationRulesCommandOutput
| BatchGetSecurityControlsCommandOutput
| BatchGetStandardsControlAssociationsCommandOutput
| BatchImportFindingsCommandOutput
| BatchUpdateAutomationRulesCommandOutput
| BatchUpdateFindingsCommandOutput
| BatchUpdateStandardsControlAssociationsCommandOutput
| CreateActionTargetCommandOutput
| CreateAutomationRuleCommandOutput
| CreateFindingAggregatorCommandOutput
| CreateInsightCommandOutput
| CreateMembersCommandOutput
Expand Down Expand Up @@ -341,6 +370,7 @@ export type ServiceOutputTypes =
| GetMasterAccountCommandOutput
| GetMembersCommandOutput
| InviteMembersCommandOutput
| ListAutomationRulesCommandOutput
| ListEnabledProductsForImportCommandOutput
| ListFindingAggregatorsCommandOutput
| ListInvitationsCommandOutput
Expand Down
Loading

0 comments on commit b511d0c

Please sign in to comment.