@aws-sdk/client-inspector2 3.354.0 → 3.358.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 (60) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/Inspector2.js +14 -0
  3. package/dist-cjs/commands/BatchGetCodeSnippetCommand.js +46 -0
  4. package/dist-cjs/commands/CancelSbomExportCommand.js +46 -0
  5. package/dist-cjs/commands/CreateSbomExportCommand.js +46 -0
  6. package/dist-cjs/commands/GetEncryptionKeyCommand.js +46 -0
  7. package/dist-cjs/commands/GetSbomExportCommand.js +46 -0
  8. package/dist-cjs/commands/ResetEncryptionKeyCommand.js +46 -0
  9. package/dist-cjs/commands/UpdateEncryptionKeyCommand.js +46 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +28 -2
  12. package/dist-cjs/protocols/Aws_restJson1.js +492 -13
  13. package/dist-es/Inspector2.js +14 -0
  14. package/dist-es/commands/BatchGetCodeSnippetCommand.js +42 -0
  15. package/dist-es/commands/CancelSbomExportCommand.js +42 -0
  16. package/dist-es/commands/CreateSbomExportCommand.js +42 -0
  17. package/dist-es/commands/GetEncryptionKeyCommand.js +42 -0
  18. package/dist-es/commands/GetSbomExportCommand.js +42 -0
  19. package/dist-es/commands/ResetEncryptionKeyCommand.js +42 -0
  20. package/dist-es/commands/UpdateEncryptionKeyCommand.js +42 -0
  21. package/dist-es/commands/index.js +7 -0
  22. package/dist-es/models/models_0.js +26 -0
  23. package/dist-es/protocols/Aws_restJson1.js +472 -7
  24. package/dist-types/Inspector2.d.ts +49 -0
  25. package/dist-types/Inspector2Client.d.ts +10 -3
  26. package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -0
  27. package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +113 -0
  28. package/dist-types/commands/CancelSbomExportCommand.d.ts +89 -0
  29. package/dist-types/commands/CreateFilterCommand.d.ts +9 -0
  30. package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -0
  31. package/dist-types/commands/CreateSbomExportCommand.d.ts +141 -0
  32. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -0
  33. package/dist-types/commands/DisableCommand.d.ts +2 -0
  34. package/dist-types/commands/EnableCommand.d.ts +2 -0
  35. package/dist-types/commands/GetEncryptionKeyCommand.d.ts +90 -0
  36. package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +9 -0
  37. package/dist-types/commands/GetSbomExportCommand.d.ts +145 -0
  38. package/dist-types/commands/ListFiltersCommand.d.ts +9 -0
  39. package/dist-types/commands/ListFindingAggregationsCommand.d.ts +1 -0
  40. package/dist-types/commands/ListFindingsCommand.d.ts +33 -0
  41. package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +88 -0
  42. package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +89 -0
  43. package/dist-types/commands/UpdateFilterCommand.d.ts +9 -0
  44. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +2 -0
  45. package/dist-types/commands/index.d.ts +7 -0
  46. package/dist-types/models/models_0.d.ts +485 -1
  47. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  48. package/dist-types/ts3.4/Inspector2.d.ts +119 -0
  49. package/dist-types/ts3.4/Inspector2Client.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/BatchGetCodeSnippetCommand.d.ts +39 -0
  51. package/dist-types/ts3.4/commands/CancelSbomExportCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/CreateSbomExportCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +38 -0
  54. package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +38 -0
  55. package/dist-types/ts3.4/commands/ResetEncryptionKeyCommand.d.ts +39 -0
  56. package/dist-types/ts3.4/commands/UpdateEncryptionKeyCommand.d.ts +39 -0
  57. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +153 -0
  59. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  60. package/package.json +28 -28
@@ -1,12 +1,15 @@
1
1
  import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { AssociateMemberCommand, } from "./commands/AssociateMemberCommand";
3
3
  import { BatchGetAccountStatusCommand, } from "./commands/BatchGetAccountStatusCommand";
4
+ import { BatchGetCodeSnippetCommand, } from "./commands/BatchGetCodeSnippetCommand";
4
5
  import { BatchGetFreeTrialInfoCommand, } from "./commands/BatchGetFreeTrialInfoCommand";
5
6
  import { BatchGetMemberEc2DeepInspectionStatusCommand, } from "./commands/BatchGetMemberEc2DeepInspectionStatusCommand";
6
7
  import { BatchUpdateMemberEc2DeepInspectionStatusCommand, } from "./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
7
8
  import { CancelFindingsReportCommand, } from "./commands/CancelFindingsReportCommand";
9
+ import { CancelSbomExportCommand, } from "./commands/CancelSbomExportCommand";
8
10
  import { CreateFilterCommand, } from "./commands/CreateFilterCommand";
9
11
  import { CreateFindingsReportCommand, } from "./commands/CreateFindingsReportCommand";
12
+ import { CreateSbomExportCommand, } from "./commands/CreateSbomExportCommand";
10
13
  import { DeleteFilterCommand, } from "./commands/DeleteFilterCommand";
11
14
  import { DescribeOrganizationConfigurationCommand, } from "./commands/DescribeOrganizationConfigurationCommand";
12
15
  import { DisableCommand } from "./commands/DisableCommand";
@@ -17,8 +20,10 @@ import { EnableDelegatedAdminAccountCommand, } from "./commands/EnableDelegatedA
17
20
  import { GetConfigurationCommand, } from "./commands/GetConfigurationCommand";
18
21
  import { GetDelegatedAdminAccountCommand, } from "./commands/GetDelegatedAdminAccountCommand";
19
22
  import { GetEc2DeepInspectionConfigurationCommand, } from "./commands/GetEc2DeepInspectionConfigurationCommand";
23
+ import { GetEncryptionKeyCommand, } from "./commands/GetEncryptionKeyCommand";
20
24
  import { GetFindingsReportStatusCommand, } from "./commands/GetFindingsReportStatusCommand";
21
25
  import { GetMemberCommand } from "./commands/GetMemberCommand";
26
+ import { GetSbomExportCommand, } from "./commands/GetSbomExportCommand";
22
27
  import { ListAccountPermissionsCommand, } from "./commands/ListAccountPermissionsCommand";
23
28
  import { ListCoverageCommand, } from "./commands/ListCoverageCommand";
24
29
  import { ListCoverageStatisticsCommand, } from "./commands/ListCoverageStatisticsCommand";
@@ -29,11 +34,13 @@ import { ListFindingsCommand, } from "./commands/ListFindingsCommand";
29
34
  import { ListMembersCommand } from "./commands/ListMembersCommand";
30
35
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
31
36
  import { ListUsageTotalsCommand, } from "./commands/ListUsageTotalsCommand";
37
+ import { ResetEncryptionKeyCommand, } from "./commands/ResetEncryptionKeyCommand";
32
38
  import { SearchVulnerabilitiesCommand, } from "./commands/SearchVulnerabilitiesCommand";
33
39
  import { TagResourceCommand } from "./commands/TagResourceCommand";
34
40
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
35
41
  import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationCommand";
36
42
  import { UpdateEc2DeepInspectionConfigurationCommand, } from "./commands/UpdateEc2DeepInspectionConfigurationCommand";
43
+ import { UpdateEncryptionKeyCommand, } from "./commands/UpdateEncryptionKeyCommand";
37
44
  import { UpdateFilterCommand, } from "./commands/UpdateFilterCommand";
38
45
  import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
39
46
  import { UpdateOrgEc2DeepInspectionConfigurationCommand, } from "./commands/UpdateOrgEc2DeepInspectionConfigurationCommand";
@@ -41,12 +48,15 @@ import { Inspector2Client } from "./Inspector2Client";
41
48
  const commands = {
42
49
  AssociateMemberCommand,
43
50
  BatchGetAccountStatusCommand,
51
+ BatchGetCodeSnippetCommand,
44
52
  BatchGetFreeTrialInfoCommand,
45
53
  BatchGetMemberEc2DeepInspectionStatusCommand,
46
54
  BatchUpdateMemberEc2DeepInspectionStatusCommand,
47
55
  CancelFindingsReportCommand,
56
+ CancelSbomExportCommand,
48
57
  CreateFilterCommand,
49
58
  CreateFindingsReportCommand,
59
+ CreateSbomExportCommand,
50
60
  DeleteFilterCommand,
51
61
  DescribeOrganizationConfigurationCommand,
52
62
  DisableCommand,
@@ -57,8 +67,10 @@ const commands = {
57
67
  GetConfigurationCommand,
58
68
  GetDelegatedAdminAccountCommand,
59
69
  GetEc2DeepInspectionConfigurationCommand,
70
+ GetEncryptionKeyCommand,
60
71
  GetFindingsReportStatusCommand,
61
72
  GetMemberCommand,
73
+ GetSbomExportCommand,
62
74
  ListAccountPermissionsCommand,
63
75
  ListCoverageCommand,
64
76
  ListCoverageStatisticsCommand,
@@ -69,11 +81,13 @@ const commands = {
69
81
  ListMembersCommand,
70
82
  ListTagsForResourceCommand,
71
83
  ListUsageTotalsCommand,
84
+ ResetEncryptionKeyCommand,
72
85
  SearchVulnerabilitiesCommand,
73
86
  TagResourceCommand,
74
87
  UntagResourceCommand,
75
88
  UpdateConfigurationCommand,
76
89
  UpdateEc2DeepInspectionConfigurationCommand,
90
+ UpdateEncryptionKeyCommand,
77
91
  UpdateFilterCommand,
78
92
  UpdateOrganizationConfigurationCommand,
79
93
  UpdateOrgEc2DeepInspectionConfigurationCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_BatchGetCodeSnippetCommand, se_BatchGetCodeSnippetCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class BatchGetCodeSnippetCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchGetCodeSnippetCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Inspector2Client";
25
+ const commandName = "BatchGetCodeSnippetCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_BatchGetCodeSnippetCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_BatchGetCodeSnippetCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CancelSbomExportCommand, se_CancelSbomExportCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class CancelSbomExportCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CancelSbomExportCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Inspector2Client";
25
+ const commandName = "CancelSbomExportCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_CancelSbomExportCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_CancelSbomExportCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CreateSbomExportCommand, se_CreateSbomExportCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class CreateSbomExportCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateSbomExportCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Inspector2Client";
25
+ const commandName = "CreateSbomExportCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_CreateSbomExportCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_CreateSbomExportCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_GetEncryptionKeyCommand, se_GetEncryptionKeyCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class GetEncryptionKeyCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetEncryptionKeyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Inspector2Client";
25
+ const commandName = "GetEncryptionKeyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_GetEncryptionKeyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_GetEncryptionKeyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_GetSbomExportCommand, se_GetSbomExportCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class GetSbomExportCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetSbomExportCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Inspector2Client";
25
+ const commandName = "GetSbomExportCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_GetSbomExportCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_GetSbomExportCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ResetEncryptionKeyCommand, se_ResetEncryptionKeyCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class ResetEncryptionKeyCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ResetEncryptionKeyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Inspector2Client";
25
+ const commandName = "ResetEncryptionKeyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ResetEncryptionKeyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ResetEncryptionKeyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_UpdateEncryptionKeyCommand, se_UpdateEncryptionKeyCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class UpdateEncryptionKeyCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateEncryptionKeyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "Inspector2Client";
25
+ const commandName = "UpdateEncryptionKeyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_UpdateEncryptionKeyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_UpdateEncryptionKeyCommand(output, context);
41
+ }
42
+ }
@@ -1,11 +1,14 @@
1
1
  export * from "./AssociateMemberCommand";
2
2
  export * from "./BatchGetAccountStatusCommand";
3
+ export * from "./BatchGetCodeSnippetCommand";
3
4
  export * from "./BatchGetFreeTrialInfoCommand";
4
5
  export * from "./BatchGetMemberEc2DeepInspectionStatusCommand";
5
6
  export * from "./BatchUpdateMemberEc2DeepInspectionStatusCommand";
6
7
  export * from "./CancelFindingsReportCommand";
8
+ export * from "./CancelSbomExportCommand";
7
9
  export * from "./CreateFilterCommand";
8
10
  export * from "./CreateFindingsReportCommand";
11
+ export * from "./CreateSbomExportCommand";
9
12
  export * from "./DeleteFilterCommand";
10
13
  export * from "./DescribeOrganizationConfigurationCommand";
11
14
  export * from "./DisableCommand";
@@ -16,8 +19,10 @@ export * from "./EnableDelegatedAdminAccountCommand";
16
19
  export * from "./GetConfigurationCommand";
17
20
  export * from "./GetDelegatedAdminAccountCommand";
18
21
  export * from "./GetEc2DeepInspectionConfigurationCommand";
22
+ export * from "./GetEncryptionKeyCommand";
19
23
  export * from "./GetFindingsReportStatusCommand";
20
24
  export * from "./GetMemberCommand";
25
+ export * from "./GetSbomExportCommand";
21
26
  export * from "./ListAccountPermissionsCommand";
22
27
  export * from "./ListCoverageCommand";
23
28
  export * from "./ListCoverageStatisticsCommand";
@@ -28,11 +33,13 @@ export * from "./ListFindingsCommand";
28
33
  export * from "./ListMembersCommand";
29
34
  export * from "./ListTagsForResourceCommand";
30
35
  export * from "./ListUsageTotalsCommand";
36
+ export * from "./ResetEncryptionKeyCommand";
31
37
  export * from "./SearchVulnerabilitiesCommand";
32
38
  export * from "./TagResourceCommand";
33
39
  export * from "./UntagResourceCommand";
34
40
  export * from "./UpdateConfigurationCommand";
35
41
  export * from "./UpdateEc2DeepInspectionConfigurationCommand";
42
+ export * from "./UpdateEncryptionKeyCommand";
36
43
  export * from "./UpdateFilterCommand";
37
44
  export * from "./UpdateOrgEc2DeepInspectionConfigurationCommand";
38
45
  export * from "./UpdateOrganizationConfigurationCommand";
@@ -20,6 +20,7 @@ export const Status = {
20
20
  SUSPENDING: "SUSPENDING",
21
21
  };
22
22
  export const AggregationFindingType = {
23
+ CODE_VULNERABILITY: "CODE_VULNERABILITY",
23
24
  NETWORK_REACHABILITY: "NETWORK_REACHABILITY",
24
25
  PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY",
25
26
  };
@@ -243,6 +244,7 @@ export const PackageType = {
243
244
  export const Runtime = {
244
245
  GO_1_X: "GO_1_X",
245
246
  JAVA_11: "JAVA_11",
247
+ JAVA_17: "JAVA_17",
246
248
  JAVA_8: "JAVA_8",
247
249
  JAVA_8_AL2: "JAVA_8_AL2",
248
250
  NODEJS: "NODEJS",
@@ -250,6 +252,7 @@ export const Runtime = {
250
252
  NODEJS_14_X: "NODEJS_14_X",
251
253
  NODEJS_16_X: "NODEJS_16_X",
252
254
  NODEJS_18_X: "NODEJS_18_X",
255
+ PYTHON_3_10: "PYTHON_3_10",
253
256
  PYTHON_3_7: "PYTHON_3_7",
254
257
  PYTHON_3_8: "PYTHON_3_8",
255
258
  PYTHON_3_9: "PYTHON_3_9",
@@ -279,6 +282,12 @@ export class ResourceNotFoundException extends __BaseException {
279
282
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
280
283
  }
281
284
  }
285
+ export const CodeSnippetErrorCode = {
286
+ ACCESS_DENIED: "ACCESS_DENIED",
287
+ CODE_SNIPPET_NOT_FOUND: "CODE_SNIPPET_NOT_FOUND",
288
+ INTERNAL_ERROR: "INTERNAL_ERROR",
289
+ INVALID_INPUT: "INVALID_INPUT",
290
+ };
282
291
  export const FreeTrialStatus = {
283
292
  ACTIVE: "ACTIVE",
284
293
  INACTIVE: "INACTIVE",
@@ -287,6 +296,7 @@ export const FreeTrialType = {
287
296
  EC2: "EC2",
288
297
  ECR: "ECR",
289
298
  LAMBDA: "LAMBDA",
299
+ LAMBDA_CODE: "LAMBDA_CODE",
290
300
  };
291
301
  export const FreeTrialInfoErrorCode = {
292
302
  ACCESS_DENIED: "ACCESS_DENIED",
@@ -373,6 +383,7 @@ export const ScanStatusCode = {
373
383
  INACTIVE: "INACTIVE",
374
384
  };
375
385
  export const ScanType = {
386
+ CODE: "CODE",
376
387
  NETWORK: "NETWORK",
377
388
  PACKAGE: "PACKAGE",
378
389
  };
@@ -397,6 +408,17 @@ export const ReportFormat = {
397
408
  CSV: "CSV",
398
409
  JSON: "JSON",
399
410
  };
411
+ export const SbomReportFormat = {
412
+ CYCLONEDX_1_4: "CYCLONEDX_1_4",
413
+ SPDX_2_3: "SPDX_2_3",
414
+ };
415
+ export const ResourceStringComparison = {
416
+ EQUALS: "EQUALS",
417
+ NOT_EQUALS: "NOT_EQUALS",
418
+ };
419
+ export const ResourceMapComparison = {
420
+ EQUALS: "EQUALS",
421
+ };
400
422
  export const Currency = {
401
423
  USD: "USD",
402
424
  };
@@ -422,6 +444,7 @@ export const ResourceScanType = {
422
444
  EC2: "EC2",
423
445
  ECR: "ECR",
424
446
  LAMBDA: "LAMBDA",
447
+ LAMBDA_CODE: "LAMBDA_CODE",
425
448
  };
426
449
  export const EcrRescanDuration = {
427
450
  DAYS_180: "DAYS_180",
@@ -491,6 +514,7 @@ export const FindingStatus = {
491
514
  SUPPRESSED: "SUPPRESSED",
492
515
  };
493
516
  export const FindingType = {
517
+ CODE_VULNERABILITY: "CODE_VULNERABILITY",
494
518
  NETWORK_REACHABILITY: "NETWORK_REACHABILITY",
495
519
  PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY",
496
520
  };
@@ -519,6 +543,7 @@ export const SortField = {
519
543
  ECR_IMAGE_PUSHED_AT: "ECR_IMAGE_PUSHED_AT",
520
544
  ECR_IMAGE_REGISTRY: "ECR_IMAGE_REGISTRY",
521
545
  ECR_IMAGE_REPOSITORY_NAME: "ECR_IMAGE_REPOSITORY_NAME",
546
+ EPSS_SCORE: "EPSS_SCORE",
522
547
  FINDING_STATUS: "FINDING_STATUS",
523
548
  FINDING_TYPE: "FINDING_TYPE",
524
549
  FIRST_OBSERVED_AT: "FIRST_OBSERVED_AT",
@@ -535,6 +560,7 @@ export const UsageType = {
535
560
  EC2_INSTANCE_HOURS: "EC2_INSTANCE_HOURS",
536
561
  ECR_INITIAL_SCAN: "ECR_INITIAL_SCAN",
537
562
  ECR_RESCAN: "ECR_RESCAN",
563
+ LAMBDA_FUNCTION_CODE_HOURS: "LAMBDA_FUNCTION_CODE_HOURS",
538
564
  LAMBDA_FUNCTION_HOURS: "LAMBDA_FUNCTION_HOURS",
539
565
  };
540
566
  export const VulnerabilitySource = {