From c537c00a1264bc3963fee835f4d39bc6c02b851c Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 24 Feb 2023 19:15:02 +0000 Subject: [PATCH] feat(client-securityhub): New Security Hub APIs and updates to existing APIs that help you consolidate control findings and enable and disable controls across all supported standards --- clients/client-securityhub/README.md | 31 +- clients/client-securityhub/src/SecurityHub.ts | 228 ++- .../src/SecurityHubClient.ts | 61 +- .../BatchGetSecurityControlsCommand.ts | 116 ++ ...hGetStandardsControlAssociationsCommand.ts | 124 ++ ...dateStandardsControlAssociationsCommand.ts | 131 ++ .../DeleteFindingAggregatorCommand.ts | 2 +- .../src/commands/DeleteInsightCommand.ts | 2 +- .../src/commands/DeleteInvitationsCommand.ts | 2 +- .../src/commands/DeleteMembersCommand.ts | 2 +- .../commands/DescribeActionTargetsCommand.ts | 2 +- .../src/commands/DescribeHubCommand.ts | 2 +- ...escribeOrganizationConfigurationCommand.ts | 2 +- .../src/commands/DescribeProductsCommand.ts | 8 +- .../ListSecurityControlDefinitionsCommand.ts | 124 ++ ...ListStandardsControlAssociationsCommand.ts | 124 ++ .../client-securityhub/src/commands/index.ts | 5 + .../client-securityhub/src/models/models_0.ts | 48 +- .../client-securityhub/src/models/models_1.ts | 736 ++++++---- .../client-securityhub/src/models/models_2.ts | 662 ++++++++- ...ListSecurityControlDefinitionsPaginator.ts | 61 + ...stStandardsControlAssociationsPaginator.ts | 61 + .../src/pagination/index.ts | 2 + .../src/protocols/Aws_restJson1.ts | 798 ++++++++++- .../sdk-codegen/aws-models/securityhub.json | 1276 ++++++++++++++--- 25 files changed, 4002 insertions(+), 608 deletions(-) create mode 100644 clients/client-securityhub/src/commands/BatchGetSecurityControlsCommand.ts create mode 100644 clients/client-securityhub/src/commands/BatchGetStandardsControlAssociationsCommand.ts create mode 100644 clients/client-securityhub/src/commands/BatchUpdateStandardsControlAssociationsCommand.ts create mode 100644 clients/client-securityhub/src/commands/ListSecurityControlDefinitionsCommand.ts create mode 100644 clients/client-securityhub/src/commands/ListStandardsControlAssociationsCommand.ts create mode 100644 clients/client-securityhub/src/pagination/ListSecurityControlDefinitionsPaginator.ts create mode 100644 clients/client-securityhub/src/pagination/ListStandardsControlAssociationsPaginator.ts diff --git a/clients/client-securityhub/README.md b/clients/client-securityhub/README.md index 9d9cb3e7df3a..5271ac96e5c4 100644 --- a/clients/client-securityhub/README.md +++ b/clients/client-securityhub/README.md @@ -9,19 +9,16 @@ AWS SDK for JavaScript SecurityHub Client for Node.js, Browser and React Native. -

Security Hub provides you with a comprehensive view of the security state of your Amazon Web Services environment and resources. It also provides you with the readiness status -of your environment based on controls from supported security standards. Security Hub collects -security data from Amazon Web Services accounts, services, and integrated third-party products and helps -you analyze security trends in your environment to identify the highest priority security -issues. For more information about Security Hub, see the -Security HubUser -Guide -.

-

When you use operations in the Security Hub API, the requests are executed only in the Amazon Web Services -Region that is currently active or in the specific Amazon Web Services Region that you specify in your -request. Any configuration or settings change that results from the operation is applied -only to that Region. To make the same change in other Regions, execute the same command for -each Region to apply the change to.

+

Security Hub provides you with a comprehensive view of the security state of +your Amazon Web Services environment and resources. It also provides you with the readiness +status of your environment based on controls from supported security standards. Security Hub collects security data from Amazon Web Services accounts, services, and +integrated third-party products and helps you analyze security trends in your environment +to identify the highest priority security issues. For more information about Security Hub, see the Security HubUser +Guide.

+

When you use operations in the Security Hub API, the requests are executed only in +the Amazon Web Services Region that is currently active or in the specific Amazon Web Services Region that you specify in your request. Any configuration or settings change +that results from the operation is applied only to that Region. To make the same change in +other Regions, run the same command for each Region in which you want to apply the change.

For example, if your Region is set to us-west-2, when you use CreateMembers to add a member account to Security Hub, the association of the member account with the administrator account is created only in the us-west-2 Region. Security Hub must be enabled for the member account in the same Region that the invitation @@ -30,8 +27,8 @@ was sent from.