Skip to content

Commit 45c4bd1

Browse files
author
awstools
committed
feat(client-securityhub): ITSM enhancements: DRYRUN mode for testing ticket creation, ServiceNow now uses AWS Secrets Manager for credentials, ConnectorRegistrationsV2 renamed to RegisterConnectorV2, added ServiceQuotaExceededException error, and ConnectorStatus visibility in CreateConnectorV2.
1 parent 072c9ff commit 45c4bd1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1082
-893
lines changed

clients/client-securityhub/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,6 @@ BatchUpdateStandardsControlAssociations
385385

386386
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityhub/command/BatchUpdateStandardsControlAssociationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/BatchUpdateStandardsControlAssociationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/BatchUpdateStandardsControlAssociationsCommandOutput/)
387387

388-
</details>
389-
<details>
390-
<summary>
391-
ConnectorRegistrationsV2
392-
</summary>
393-
394-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityhub/command/ConnectorRegistrationsV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/ConnectorRegistrationsV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/ConnectorRegistrationsV2CommandOutput/)
395-
396388
</details>
397389
<details>
398390
<summary>
@@ -1001,6 +993,14 @@ ListTagsForResource
1001993

1002994
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityhub/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/ListTagsForResourceCommandOutput/)
1003995

996+
</details>
997+
<details>
998+
<summary>
999+
RegisterConnectorV2
1000+
</summary>
1001+
1002+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityhub/command/RegisterConnectorV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/RegisterConnectorV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityhub/Interface/RegisterConnectorV2CommandOutput/)
1003+
10041004
</details>
10051005
<details>
10061006
<summary>

clients/client-securityhub/src/SecurityHub.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ import {
7272
BatchUpdateStandardsControlAssociationsCommandInput,
7373
BatchUpdateStandardsControlAssociationsCommandOutput,
7474
} from "./commands/BatchUpdateStandardsControlAssociationsCommand";
75-
import {
76-
ConnectorRegistrationsV2Command,
77-
ConnectorRegistrationsV2CommandInput,
78-
ConnectorRegistrationsV2CommandOutput,
79-
} from "./commands/ConnectorRegistrationsV2Command";
8075
import {
8176
CreateActionTargetCommand,
8277
CreateActionTargetCommandInput,
@@ -437,6 +432,11 @@ import {
437432
ListTagsForResourceCommandInput,
438433
ListTagsForResourceCommandOutput,
439434
} from "./commands/ListTagsForResourceCommand";
435+
import {
436+
RegisterConnectorV2Command,
437+
RegisterConnectorV2CommandInput,
438+
RegisterConnectorV2CommandOutput,
439+
} from "./commands/RegisterConnectorV2Command";
440440
import {
441441
StartConfigurationPolicyAssociationCommand,
442442
StartConfigurationPolicyAssociationCommandInput,
@@ -530,7 +530,6 @@ const commands = {
530530
BatchUpdateFindingsCommand,
531531
BatchUpdateFindingsV2Command,
532532
BatchUpdateStandardsControlAssociationsCommand,
533-
ConnectorRegistrationsV2Command,
534533
CreateActionTargetCommand,
535534
CreateAggregatorV2Command,
536535
CreateAutomationRuleCommand,
@@ -607,6 +606,7 @@ const commands = {
607606
ListSecurityControlDefinitionsCommand,
608607
ListStandardsControlAssociationsCommand,
609608
ListTagsForResourceCommand,
609+
RegisterConnectorV2Command,
610610
StartConfigurationPolicyAssociationCommand,
611611
StartConfigurationPolicyDisassociationCommand,
612612
TagResourceCommand,
@@ -865,23 +865,6 @@ export interface SecurityHub {
865865
cb: (err: any, data?: BatchUpdateStandardsControlAssociationsCommandOutput) => void
866866
): void;
867867

868-
/**
869-
* @see {@link ConnectorRegistrationsV2Command}
870-
*/
871-
connectorRegistrationsV2(
872-
args: ConnectorRegistrationsV2CommandInput,
873-
options?: __HttpHandlerOptions
874-
): Promise<ConnectorRegistrationsV2CommandOutput>;
875-
connectorRegistrationsV2(
876-
args: ConnectorRegistrationsV2CommandInput,
877-
cb: (err: any, data?: ConnectorRegistrationsV2CommandOutput) => void
878-
): void;
879-
connectorRegistrationsV2(
880-
args: ConnectorRegistrationsV2CommandInput,
881-
options: __HttpHandlerOptions,
882-
cb: (err: any, data?: ConnectorRegistrationsV2CommandOutput) => void
883-
): void;
884-
885868
/**
886869
* @see {@link CreateActionTargetCommand}
887870
*/
@@ -2126,6 +2109,23 @@ export interface SecurityHub {
21262109
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
21272110
): void;
21282111

2112+
/**
2113+
* @see {@link RegisterConnectorV2Command}
2114+
*/
2115+
registerConnectorV2(
2116+
args: RegisterConnectorV2CommandInput,
2117+
options?: __HttpHandlerOptions
2118+
): Promise<RegisterConnectorV2CommandOutput>;
2119+
registerConnectorV2(
2120+
args: RegisterConnectorV2CommandInput,
2121+
cb: (err: any, data?: RegisterConnectorV2CommandOutput) => void
2122+
): void;
2123+
registerConnectorV2(
2124+
args: RegisterConnectorV2CommandInput,
2125+
options: __HttpHandlerOptions,
2126+
cb: (err: any, data?: RegisterConnectorV2CommandOutput) => void
2127+
): void;
2128+
21292129
/**
21302130
* @see {@link StartConfigurationPolicyAssociationCommand}
21312131
*/

clients/client-securityhub/src/SecurityHubClient.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ import {
110110
BatchUpdateStandardsControlAssociationsCommandInput,
111111
BatchUpdateStandardsControlAssociationsCommandOutput,
112112
} from "./commands/BatchUpdateStandardsControlAssociationsCommand";
113-
import {
114-
ConnectorRegistrationsV2CommandInput,
115-
ConnectorRegistrationsV2CommandOutput,
116-
} from "./commands/ConnectorRegistrationsV2Command";
117113
import { CreateActionTargetCommandInput, CreateActionTargetCommandOutput } from "./commands/CreateActionTargetCommand";
118114
import { CreateAggregatorV2CommandInput, CreateAggregatorV2CommandOutput } from "./commands/CreateAggregatorV2Command";
119115
import {
@@ -316,6 +312,10 @@ import {
316312
ListTagsForResourceCommandInput,
317313
ListTagsForResourceCommandOutput,
318314
} from "./commands/ListTagsForResourceCommand";
315+
import {
316+
RegisterConnectorV2CommandInput,
317+
RegisterConnectorV2CommandOutput,
318+
} from "./commands/RegisterConnectorV2Command";
319319
import {
320320
StartConfigurationPolicyAssociationCommandInput,
321321
StartConfigurationPolicyAssociationCommandOutput,
@@ -388,7 +388,6 @@ export type ServiceInputTypes =
388388
| BatchUpdateFindingsCommandInput
389389
| BatchUpdateFindingsV2CommandInput
390390
| BatchUpdateStandardsControlAssociationsCommandInput
391-
| ConnectorRegistrationsV2CommandInput
392391
| CreateActionTargetCommandInput
393392
| CreateAggregatorV2CommandInput
394393
| CreateAutomationRuleCommandInput
@@ -465,6 +464,7 @@ export type ServiceInputTypes =
465464
| ListSecurityControlDefinitionsCommandInput
466465
| ListStandardsControlAssociationsCommandInput
467466
| ListTagsForResourceCommandInput
467+
| RegisterConnectorV2CommandInput
468468
| StartConfigurationPolicyAssociationCommandInput
469469
| StartConfigurationPolicyDisassociationCommandInput
470470
| TagResourceCommandInput
@@ -500,7 +500,6 @@ export type ServiceOutputTypes =
500500
| BatchUpdateFindingsCommandOutput
501501
| BatchUpdateFindingsV2CommandOutput
502502
| BatchUpdateStandardsControlAssociationsCommandOutput
503-
| ConnectorRegistrationsV2CommandOutput
504503
| CreateActionTargetCommandOutput
505504
| CreateAggregatorV2CommandOutput
506505
| CreateAutomationRuleCommandOutput
@@ -577,6 +576,7 @@ export type ServiceOutputTypes =
577576
| ListSecurityControlDefinitionsCommandOutput
578577
| ListStandardsControlAssociationsCommandOutput
579578
| ListTagsForResourceCommandOutput
579+
| RegisterConnectorV2CommandOutput
580580
| StartConfigurationPolicyAssociationCommandOutput
581581
| StartConfigurationPolicyDisassociationCommandOutput
582582
| TagResourceCommandOutput

clients/client-securityhub/src/commands/BatchUpdateFindingsV2Command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface BatchUpdateFindingsV2CommandOutput extends BatchUpdateFindingsV
3232
* Delegated administrator accounts can update findings for their account and their member accounts.
3333
* Member accounts can update findings for their account. <code>BatchUpdateFindings</code> and <code>BatchUpdateFindingV2</code> both use <code>securityhub:BatchUpdateFindings</code> in the <code>Action</code> element of an IAM policy statement.
3434
* You must have permission to perform the <code>securityhub:BatchUpdateFindings</code> action.
35-
* Updates from <code>BatchUpdateFindingsV2</code> don't affect the value of f<code>inding_info.modified_time</code>, <code>finding_info.modified_time_dt</code>, <code>time</code>, <code>time_dt for a finding</code>. This API is in public preview and subject to change.</p>
35+
* Updates from <code>BatchUpdateFindingsV2</code> don't affect the value of f<code>inding_info.modified_time</code>, <code>finding_info.modified_time_dt</code>, <code>time</code>, <code>time_dt for a finding</code>.</p>
3636
* @example
3737
* Use a bare-bones client and the command you need to make an API call.
3838
* ```javascript

clients/client-securityhub/src/commands/CreateAggregatorV2Command.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface CreateAggregatorV2CommandInput extends CreateAggregatorV2Reques
2727
export interface CreateAggregatorV2CommandOutput extends CreateAggregatorV2Response, __MetadataBearer {}
2828

2929
/**
30-
* <p>Enables aggregation across Amazon Web Services Regions. This API is in public preview and subject to change.</p>
30+
* <p>Enables aggregation across Amazon Web Services Regions.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript
@@ -79,6 +79,9 @@ export interface CreateAggregatorV2CommandOutput extends CreateAggregatorV2Respo
7979
* @throws {@link ResourceNotFoundException} (client fault)
8080
* <p>The request was rejected because we can't find the specified resource.</p>
8181
*
82+
* @throws {@link ServiceQuotaExceededException} (client fault)
83+
* <p>The request was rejected because it would exceed the service quota limit.</p>
84+
*
8285
* @throws {@link ThrottlingException} (client fault)
8386
* <p>
8487
* The limit on the number of requests per second was exceeded.

0 commit comments

Comments
 (0)