Skip to content

Commit

Permalink
feat(client-inspector2): This release adds support for Software Bill …
Browse files Browse the repository at this point in the history
…of Materials (SBOM) export and the general availability of code scanning for AWS Lambda functions.
  • Loading branch information
awstools committed Jun 21, 2023
1 parent 8f0033b commit d57a444
Show file tree
Hide file tree
Showing 26 changed files with 4,018 additions and 20 deletions.
56 changes: 56 additions & 0 deletions clients/client-inspector2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@ BatchGetAccountStatus

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/batchgetaccountstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetaccountstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetaccountstatuscommandoutput.html)

</details>
<details>
<summary>
BatchGetCodeSnippet
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/batchgetcodesnippetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetcodesnippetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetcodesnippetcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -251,6 +259,14 @@ CancelFindingsReport

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/cancelfindingsreportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/cancelfindingsreportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/cancelfindingsreportcommandoutput.html)

</details>
<details>
<summary>
CancelSbomExport
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/cancelsbomexportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/cancelsbomexportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/cancelsbomexportcommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -267,6 +283,14 @@ CreateFindingsReport

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/createfindingsreportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/createfindingsreportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/createfindingsreportcommandoutput.html)

</details>
<details>
<summary>
CreateSbomExport
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/createsbomexportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/createsbomexportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/createsbomexportcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -347,6 +371,14 @@ GetEc2DeepInspectionConfiguration

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/getec2deepinspectionconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getec2deepinspectionconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getec2deepinspectionconfigurationcommandoutput.html)

</details>
<details>
<summary>
GetEncryptionKey
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/getencryptionkeycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getencryptionkeycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getencryptionkeycommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -363,6 +395,14 @@ GetMember

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/getmembercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getmembercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getmembercommandoutput.html)

</details>
<details>
<summary>
GetSbomExport
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/getsbomexportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getsbomexportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getsbomexportcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -443,6 +483,14 @@ ListUsageTotals

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/listusagetotalscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/listusagetotalscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/listusagetotalscommandoutput.html)

</details>
<details>
<summary>
ResetEncryptionKey
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/resetencryptionkeycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/resetencryptionkeycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/resetencryptionkeycommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -483,6 +531,14 @@ UpdateEc2DeepInspectionConfiguration

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/updateec2deepinspectionconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateec2deepinspectionconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateec2deepinspectionconfigurationcommandoutput.html)

</details>
<details>
<summary>
UpdateEncryptionKey
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/updateencryptionkeycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateencryptionkeycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateencryptionkeycommandoutput.html)

</details>
<details>
<summary>
Expand Down
155 changes: 155 additions & 0 deletions clients/client-inspector2/src/Inspector2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import {
BatchGetAccountStatusCommandInput,
BatchGetAccountStatusCommandOutput,
} from "./commands/BatchGetAccountStatusCommand";
import {
BatchGetCodeSnippetCommand,
BatchGetCodeSnippetCommandInput,
BatchGetCodeSnippetCommandOutput,
} from "./commands/BatchGetCodeSnippetCommand";
import {
BatchGetFreeTrialInfoCommand,
BatchGetFreeTrialInfoCommandInput,
Expand All @@ -32,6 +37,11 @@ import {
CancelFindingsReportCommandInput,
CancelFindingsReportCommandOutput,
} from "./commands/CancelFindingsReportCommand";
import {
CancelSbomExportCommand,
CancelSbomExportCommandInput,
CancelSbomExportCommandOutput,
} from "./commands/CancelSbomExportCommand";
import {
CreateFilterCommand,
CreateFilterCommandInput,
Expand All @@ -42,6 +52,11 @@ import {
CreateFindingsReportCommandInput,
CreateFindingsReportCommandOutput,
} from "./commands/CreateFindingsReportCommand";
import {
CreateSbomExportCommand,
CreateSbomExportCommandInput,
CreateSbomExportCommandOutput,
} from "./commands/CreateSbomExportCommand";
import {
DeleteFilterCommand,
DeleteFilterCommandInput,
Expand Down Expand Up @@ -84,12 +99,22 @@ import {
GetEc2DeepInspectionConfigurationCommandInput,
GetEc2DeepInspectionConfigurationCommandOutput,
} from "./commands/GetEc2DeepInspectionConfigurationCommand";
import {
GetEncryptionKeyCommand,
GetEncryptionKeyCommandInput,
GetEncryptionKeyCommandOutput,
} from "./commands/GetEncryptionKeyCommand";
import {
GetFindingsReportStatusCommand,
GetFindingsReportStatusCommandInput,
GetFindingsReportStatusCommandOutput,
} from "./commands/GetFindingsReportStatusCommand";
import { GetMemberCommand, GetMemberCommandInput, GetMemberCommandOutput } from "./commands/GetMemberCommand";
import {
GetSbomExportCommand,
GetSbomExportCommandInput,
GetSbomExportCommandOutput,
} from "./commands/GetSbomExportCommand";
import {
ListAccountPermissionsCommand,
ListAccountPermissionsCommandInput,
Expand Down Expand Up @@ -132,6 +157,11 @@ import {
ListUsageTotalsCommandInput,
ListUsageTotalsCommandOutput,
} from "./commands/ListUsageTotalsCommand";
import {
ResetEncryptionKeyCommand,
ResetEncryptionKeyCommandInput,
ResetEncryptionKeyCommandOutput,
} from "./commands/ResetEncryptionKeyCommand";
import {
SearchVulnerabilitiesCommand,
SearchVulnerabilitiesCommandInput,
Expand All @@ -153,6 +183,11 @@ import {
UpdateEc2DeepInspectionConfigurationCommandInput,
UpdateEc2DeepInspectionConfigurationCommandOutput,
} from "./commands/UpdateEc2DeepInspectionConfigurationCommand";
import {
UpdateEncryptionKeyCommand,
UpdateEncryptionKeyCommandInput,
UpdateEncryptionKeyCommandOutput,
} from "./commands/UpdateEncryptionKeyCommand";
import {
UpdateFilterCommand,
UpdateFilterCommandInput,
Expand All @@ -173,12 +208,15 @@ import { Inspector2Client, Inspector2ClientConfig } from "./Inspector2Client";
const commands = {
AssociateMemberCommand,
BatchGetAccountStatusCommand,
BatchGetCodeSnippetCommand,
BatchGetFreeTrialInfoCommand,
BatchGetMemberEc2DeepInspectionStatusCommand,
BatchUpdateMemberEc2DeepInspectionStatusCommand,
CancelFindingsReportCommand,
CancelSbomExportCommand,
CreateFilterCommand,
CreateFindingsReportCommand,
CreateSbomExportCommand,
DeleteFilterCommand,
DescribeOrganizationConfigurationCommand,
DisableCommand,
Expand All @@ -189,8 +227,10 @@ const commands = {
GetConfigurationCommand,
GetDelegatedAdminAccountCommand,
GetEc2DeepInspectionConfigurationCommand,
GetEncryptionKeyCommand,
GetFindingsReportStatusCommand,
GetMemberCommand,
GetSbomExportCommand,
ListAccountPermissionsCommand,
ListCoverageCommand,
ListCoverageStatisticsCommand,
Expand All @@ -201,11 +241,13 @@ const commands = {
ListMembersCommand,
ListTagsForResourceCommand,
ListUsageTotalsCommand,
ResetEncryptionKeyCommand,
SearchVulnerabilitiesCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateConfigurationCommand,
UpdateEc2DeepInspectionConfigurationCommand,
UpdateEncryptionKeyCommand,
UpdateFilterCommand,
UpdateOrganizationConfigurationCommand,
UpdateOrgEc2DeepInspectionConfigurationCommand,
Expand Down Expand Up @@ -243,6 +285,23 @@ export interface Inspector2 {
cb: (err: any, data?: BatchGetAccountStatusCommandOutput) => void
): void;

/**
* @see {@link BatchGetCodeSnippetCommand}
*/
batchGetCodeSnippet(
args: BatchGetCodeSnippetCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchGetCodeSnippetCommandOutput>;
batchGetCodeSnippet(
args: BatchGetCodeSnippetCommandInput,
cb: (err: any, data?: BatchGetCodeSnippetCommandOutput) => void
): void;
batchGetCodeSnippet(
args: BatchGetCodeSnippetCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchGetCodeSnippetCommandOutput) => void
): void;

/**
* @see {@link BatchGetFreeTrialInfoCommand}
*/
Expand Down Expand Up @@ -311,6 +370,23 @@ export interface Inspector2 {
cb: (err: any, data?: CancelFindingsReportCommandOutput) => void
): void;

/**
* @see {@link CancelSbomExportCommand}
*/
cancelSbomExport(
args: CancelSbomExportCommandInput,
options?: __HttpHandlerOptions
): Promise<CancelSbomExportCommandOutput>;
cancelSbomExport(
args: CancelSbomExportCommandInput,
cb: (err: any, data?: CancelSbomExportCommandOutput) => void
): void;
cancelSbomExport(
args: CancelSbomExportCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CancelSbomExportCommandOutput) => void
): void;

/**
* @see {@link CreateFilterCommand}
*/
Expand Down Expand Up @@ -339,6 +415,23 @@ export interface Inspector2 {
cb: (err: any, data?: CreateFindingsReportCommandOutput) => void
): void;

/**
* @see {@link CreateSbomExportCommand}
*/
createSbomExport(
args: CreateSbomExportCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateSbomExportCommandOutput>;
createSbomExport(
args: CreateSbomExportCommandInput,
cb: (err: any, data?: CreateSbomExportCommandOutput) => void
): void;
createSbomExport(
args: CreateSbomExportCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateSbomExportCommandOutput) => void
): void;

/**
* @see {@link DeleteFilterCommand}
*/
Expand Down Expand Up @@ -491,6 +584,23 @@ export interface Inspector2 {
cb: (err: any, data?: GetEc2DeepInspectionConfigurationCommandOutput) => void
): void;

/**
* @see {@link GetEncryptionKeyCommand}
*/
getEncryptionKey(
args: GetEncryptionKeyCommandInput,
options?: __HttpHandlerOptions
): Promise<GetEncryptionKeyCommandOutput>;
getEncryptionKey(
args: GetEncryptionKeyCommandInput,
cb: (err: any, data?: GetEncryptionKeyCommandOutput) => void
): void;
getEncryptionKey(
args: GetEncryptionKeyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetEncryptionKeyCommandOutput) => void
): void;

/**
* @see {@link GetFindingsReportStatusCommand}
*/
Expand Down Expand Up @@ -519,6 +629,17 @@ export interface Inspector2 {
cb: (err: any, data?: GetMemberCommandOutput) => void
): void;

/**
* @see {@link GetSbomExportCommand}
*/
getSbomExport(args: GetSbomExportCommandInput, options?: __HttpHandlerOptions): Promise<GetSbomExportCommandOutput>;
getSbomExport(args: GetSbomExportCommandInput, cb: (err: any, data?: GetSbomExportCommandOutput) => void): void;
getSbomExport(
args: GetSbomExportCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetSbomExportCommandOutput) => void
): void;

/**
* @see {@link ListAccountPermissionsCommand}
*/
Expand Down Expand Up @@ -662,6 +783,23 @@ export interface Inspector2 {
cb: (err: any, data?: ListUsageTotalsCommandOutput) => void
): void;

/**
* @see {@link ResetEncryptionKeyCommand}
*/
resetEncryptionKey(
args: ResetEncryptionKeyCommandInput,
options?: __HttpHandlerOptions
): Promise<ResetEncryptionKeyCommandOutput>;
resetEncryptionKey(
args: ResetEncryptionKeyCommandInput,
cb: (err: any, data?: ResetEncryptionKeyCommandOutput) => void
): void;
resetEncryptionKey(
args: ResetEncryptionKeyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ResetEncryptionKeyCommandOutput) => void
): void;

/**
* @see {@link SearchVulnerabilitiesCommand}
*/
Expand Down Expand Up @@ -735,6 +873,23 @@ export interface Inspector2 {
cb: (err: any, data?: UpdateEc2DeepInspectionConfigurationCommandOutput) => void
): void;

/**
* @see {@link UpdateEncryptionKeyCommand}
*/
updateEncryptionKey(
args: UpdateEncryptionKeyCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateEncryptionKeyCommandOutput>;
updateEncryptionKey(
args: UpdateEncryptionKeyCommandInput,
cb: (err: any, data?: UpdateEncryptionKeyCommandOutput) => void
): void;
updateEncryptionKey(
args: UpdateEncryptionKeyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateEncryptionKeyCommandOutput) => void
): void;

/**
* @see {@link UpdateFilterCommand}
*/
Expand Down
Loading

0 comments on commit d57a444

Please sign in to comment.