@aws-sdk/client-inspector2 3.325.0 → 3.327.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 (76) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Inspector2.js +10 -0
  3. package/dist-cjs/commands/BatchGetMemberEc2DeepInspectionStatusCommand.js +45 -0
  4. package/dist-cjs/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.js +45 -0
  5. package/dist-cjs/commands/GetEc2DeepInspectionConfigurationCommand.js +45 -0
  6. package/dist-cjs/commands/UpdateEc2DeepInspectionConfigurationCommand.js +45 -0
  7. package/dist-cjs/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.js +45 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/endpoint/ruleset.js +3 -3
  10. package/dist-cjs/models/models_0.js +15 -2
  11. package/dist-cjs/protocols/Aws_restJson1.js +327 -2
  12. package/dist-es/Inspector2.js +10 -0
  13. package/dist-es/commands/BatchGetMemberEc2DeepInspectionStatusCommand.js +41 -0
  14. package/dist-es/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.js +41 -0
  15. package/dist-es/commands/GetEc2DeepInspectionConfigurationCommand.js +41 -0
  16. package/dist-es/commands/UpdateEc2DeepInspectionConfigurationCommand.js +41 -0
  17. package/dist-es/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.js +41 -0
  18. package/dist-es/commands/index.js +5 -0
  19. package/dist-es/endpoint/ruleset.js +3 -3
  20. package/dist-es/models/models_0.js +13 -0
  21. package/dist-es/protocols/Aws_restJson1.js +315 -0
  22. package/dist-types/Inspector2.d.ts +35 -0
  23. package/dist-types/Inspector2Client.d.ts +7 -2
  24. package/dist-types/commands/AssociateMemberCommand.d.ts +7 -1
  25. package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +45 -0
  26. package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +25 -0
  27. package/dist-types/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +97 -0
  28. package/dist-types/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +100 -0
  29. package/dist-types/commands/CancelFindingsReportCommand.d.ts +6 -0
  30. package/dist-types/commands/CreateFilterCommand.d.ts +6 -0
  31. package/dist-types/commands/CreateFindingsReportCommand.d.ts +7 -1
  32. package/dist-types/commands/DeleteFilterCommand.d.ts +6 -0
  33. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +11 -0
  34. package/dist-types/commands/DisableCommand.d.ts +29 -0
  35. package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +6 -0
  36. package/dist-types/commands/DisassociateMemberCommand.d.ts +6 -0
  37. package/dist-types/commands/EnableCommand.d.ts +29 -0
  38. package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +6 -0
  39. package/dist-types/commands/GetConfigurationCommand.d.ts +12 -0
  40. package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +9 -0
  41. package/dist-types/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +87 -0
  42. package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +133 -0
  43. package/dist-types/commands/GetMemberCommand.d.ts +11 -0
  44. package/dist-types/commands/ListAccountPermissionsCommand.d.ts +12 -0
  45. package/dist-types/commands/ListCoverageCommand.d.ts +46 -0
  46. package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +13 -0
  47. package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +12 -0
  48. package/dist-types/commands/ListFiltersCommand.d.ts +140 -0
  49. package/dist-types/commands/ListFindingAggregationsCommand.d.ts +114 -0
  50. package/dist-types/commands/ListFindingsCommand.d.ts +164 -0
  51. package/dist-types/commands/ListMembersCommand.d.ts +14 -0
  52. package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -0
  53. package/dist-types/commands/ListUsageTotalsCommand.d.ts +19 -0
  54. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  55. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  56. package/dist-types/commands/UpdateConfigurationCommand.d.ts +4 -0
  57. package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +92 -0
  58. package/dist-types/commands/UpdateFilterCommand.d.ts +6 -0
  59. package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +82 -0
  60. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +10 -0
  61. package/dist-types/commands/index.d.ts +5 -0
  62. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  63. package/dist-types/models/models_0.d.ts +200 -3
  64. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  65. package/dist-types/ts3.4/Inspector2.d.ts +115 -0
  66. package/dist-types/ts3.4/Inspector2Client.d.ts +30 -0
  67. package/dist-types/ts3.4/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +41 -0
  68. package/dist-types/ts3.4/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +41 -0
  69. package/dist-types/ts3.4/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +41 -0
  70. package/dist-types/ts3.4/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +41 -0
  71. package/dist-types/ts3.4/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +41 -0
  72. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  73. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  74. package/dist-types/ts3.4/models/models_0.d.ts +64 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  76. package/package.json +7 -7
package/README.md CHANGED
@@ -230,6 +230,22 @@ BatchGetFreeTrialInfo
230
230
 
231
231
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/batchgetfreetrialinfocommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetfreetrialinfocommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetfreetrialinfocommandoutput.html)
232
232
 
233
+ </details>
234
+ <details>
235
+ <summary>
236
+ BatchGetMemberEc2DeepInspectionStatus
237
+ </summary>
238
+
239
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/batchgetmemberec2deepinspectionstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetmemberec2deepinspectionstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetmemberec2deepinspectionstatuscommandoutput.html)
240
+
241
+ </details>
242
+ <details>
243
+ <summary>
244
+ BatchUpdateMemberEc2DeepInspectionStatus
245
+ </summary>
246
+
247
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/batchupdatememberec2deepinspectionstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchupdatememberec2deepinspectionstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchupdatememberec2deepinspectionstatuscommandoutput.html)
248
+
233
249
  </details>
234
250
  <details>
235
251
  <summary>
@@ -326,6 +342,14 @@ GetDelegatedAdminAccount
326
342
 
327
343
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/getdelegatedadminaccountcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getdelegatedadminaccountcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/getdelegatedadminaccountcommandoutput.html)
328
344
 
345
+ </details>
346
+ <details>
347
+ <summary>
348
+ GetEc2DeepInspectionConfiguration
349
+ </summary>
350
+
351
+ [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)
352
+
329
353
  </details>
330
354
  <details>
331
355
  <summary>
@@ -446,6 +470,14 @@ UpdateConfiguration
446
470
 
447
471
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/updateconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateconfigurationcommandoutput.html)
448
472
 
473
+ </details>
474
+ <details>
475
+ <summary>
476
+ UpdateEc2DeepInspectionConfiguration
477
+ </summary>
478
+
479
+ [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)
480
+
449
481
  </details>
450
482
  <details>
451
483
  <summary>
@@ -463,3 +495,11 @@ UpdateOrganizationConfiguration
463
495
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/updateorganizationconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateorganizationconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateorganizationconfigurationcommandoutput.html)
464
496
 
465
497
  </details>
498
+ <details>
499
+ <summary>
500
+ UpdateOrgEc2DeepInspectionConfiguration
501
+ </summary>
502
+
503
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/updateorgec2deepinspectionconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateorgec2deepinspectionconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/updateorgec2deepinspectionconfigurationcommandoutput.html)
504
+
505
+ </details>
@@ -5,6 +5,8 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const AssociateMemberCommand_1 = require("./commands/AssociateMemberCommand");
6
6
  const BatchGetAccountStatusCommand_1 = require("./commands/BatchGetAccountStatusCommand");
7
7
  const BatchGetFreeTrialInfoCommand_1 = require("./commands/BatchGetFreeTrialInfoCommand");
8
+ const BatchGetMemberEc2DeepInspectionStatusCommand_1 = require("./commands/BatchGetMemberEc2DeepInspectionStatusCommand");
9
+ const BatchUpdateMemberEc2DeepInspectionStatusCommand_1 = require("./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand");
8
10
  const CancelFindingsReportCommand_1 = require("./commands/CancelFindingsReportCommand");
9
11
  const CreateFilterCommand_1 = require("./commands/CreateFilterCommand");
10
12
  const CreateFindingsReportCommand_1 = require("./commands/CreateFindingsReportCommand");
@@ -17,6 +19,7 @@ const EnableCommand_1 = require("./commands/EnableCommand");
17
19
  const EnableDelegatedAdminAccountCommand_1 = require("./commands/EnableDelegatedAdminAccountCommand");
18
20
  const GetConfigurationCommand_1 = require("./commands/GetConfigurationCommand");
19
21
  const GetDelegatedAdminAccountCommand_1 = require("./commands/GetDelegatedAdminAccountCommand");
22
+ const GetEc2DeepInspectionConfigurationCommand_1 = require("./commands/GetEc2DeepInspectionConfigurationCommand");
20
23
  const GetFindingsReportStatusCommand_1 = require("./commands/GetFindingsReportStatusCommand");
21
24
  const GetMemberCommand_1 = require("./commands/GetMemberCommand");
22
25
  const ListAccountPermissionsCommand_1 = require("./commands/ListAccountPermissionsCommand");
@@ -32,13 +35,17 @@ const ListUsageTotalsCommand_1 = require("./commands/ListUsageTotalsCommand");
32
35
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
33
36
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
34
37
  const UpdateConfigurationCommand_1 = require("./commands/UpdateConfigurationCommand");
38
+ const UpdateEc2DeepInspectionConfigurationCommand_1 = require("./commands/UpdateEc2DeepInspectionConfigurationCommand");
35
39
  const UpdateFilterCommand_1 = require("./commands/UpdateFilterCommand");
36
40
  const UpdateOrganizationConfigurationCommand_1 = require("./commands/UpdateOrganizationConfigurationCommand");
41
+ const UpdateOrgEc2DeepInspectionConfigurationCommand_1 = require("./commands/UpdateOrgEc2DeepInspectionConfigurationCommand");
37
42
  const Inspector2Client_1 = require("./Inspector2Client");
38
43
  const commands = {
39
44
  AssociateMemberCommand: AssociateMemberCommand_1.AssociateMemberCommand,
40
45
  BatchGetAccountStatusCommand: BatchGetAccountStatusCommand_1.BatchGetAccountStatusCommand,
41
46
  BatchGetFreeTrialInfoCommand: BatchGetFreeTrialInfoCommand_1.BatchGetFreeTrialInfoCommand,
47
+ BatchGetMemberEc2DeepInspectionStatusCommand: BatchGetMemberEc2DeepInspectionStatusCommand_1.BatchGetMemberEc2DeepInspectionStatusCommand,
48
+ BatchUpdateMemberEc2DeepInspectionStatusCommand: BatchUpdateMemberEc2DeepInspectionStatusCommand_1.BatchUpdateMemberEc2DeepInspectionStatusCommand,
42
49
  CancelFindingsReportCommand: CancelFindingsReportCommand_1.CancelFindingsReportCommand,
43
50
  CreateFilterCommand: CreateFilterCommand_1.CreateFilterCommand,
44
51
  CreateFindingsReportCommand: CreateFindingsReportCommand_1.CreateFindingsReportCommand,
@@ -51,6 +58,7 @@ const commands = {
51
58
  EnableDelegatedAdminAccountCommand: EnableDelegatedAdminAccountCommand_1.EnableDelegatedAdminAccountCommand,
52
59
  GetConfigurationCommand: GetConfigurationCommand_1.GetConfigurationCommand,
53
60
  GetDelegatedAdminAccountCommand: GetDelegatedAdminAccountCommand_1.GetDelegatedAdminAccountCommand,
61
+ GetEc2DeepInspectionConfigurationCommand: GetEc2DeepInspectionConfigurationCommand_1.GetEc2DeepInspectionConfigurationCommand,
54
62
  GetFindingsReportStatusCommand: GetFindingsReportStatusCommand_1.GetFindingsReportStatusCommand,
55
63
  GetMemberCommand: GetMemberCommand_1.GetMemberCommand,
56
64
  ListAccountPermissionsCommand: ListAccountPermissionsCommand_1.ListAccountPermissionsCommand,
@@ -66,8 +74,10 @@ const commands = {
66
74
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
67
75
  UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
68
76
  UpdateConfigurationCommand: UpdateConfigurationCommand_1.UpdateConfigurationCommand,
77
+ UpdateEc2DeepInspectionConfigurationCommand: UpdateEc2DeepInspectionConfigurationCommand_1.UpdateEc2DeepInspectionConfigurationCommand,
69
78
  UpdateFilterCommand: UpdateFilterCommand_1.UpdateFilterCommand,
70
79
  UpdateOrganizationConfigurationCommand: UpdateOrganizationConfigurationCommand_1.UpdateOrganizationConfigurationCommand,
80
+ UpdateOrgEc2DeepInspectionConfigurationCommand: UpdateOrgEc2DeepInspectionConfigurationCommand_1.UpdateOrgEc2DeepInspectionConfigurationCommand,
71
81
  };
72
82
  class Inspector2 extends Inspector2Client_1.Inspector2Client {
73
83
  }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchGetMemberEc2DeepInspectionStatusCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class BatchGetMemberEc2DeepInspectionStatusCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetMemberEc2DeepInspectionStatusCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "Inspector2Client";
27
+ const commandName = "BatchGetMemberEc2DeepInspectionStatusCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_BatchGetMemberEc2DeepInspectionStatusCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_BatchGetMemberEc2DeepInspectionStatusCommand)(output, context);
43
+ }
44
+ }
45
+ exports.BatchGetMemberEc2DeepInspectionStatusCommand = BatchGetMemberEc2DeepInspectionStatusCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchUpdateMemberEc2DeepInspectionStatusCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class BatchUpdateMemberEc2DeepInspectionStatusCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchUpdateMemberEc2DeepInspectionStatusCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "Inspector2Client";
27
+ const commandName = "BatchUpdateMemberEc2DeepInspectionStatusCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_BatchUpdateMemberEc2DeepInspectionStatusCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_BatchUpdateMemberEc2DeepInspectionStatusCommand)(output, context);
43
+ }
44
+ }
45
+ exports.BatchUpdateMemberEc2DeepInspectionStatusCommand = BatchUpdateMemberEc2DeepInspectionStatusCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetEc2DeepInspectionConfigurationCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetEc2DeepInspectionConfigurationCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetEc2DeepInspectionConfigurationCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "Inspector2Client";
27
+ const commandName = "GetEc2DeepInspectionConfigurationCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_GetEc2DeepInspectionConfigurationCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_GetEc2DeepInspectionConfigurationCommand)(output, context);
43
+ }
44
+ }
45
+ exports.GetEc2DeepInspectionConfigurationCommand = GetEc2DeepInspectionConfigurationCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateEc2DeepInspectionConfigurationCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateEc2DeepInspectionConfigurationCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateEc2DeepInspectionConfigurationCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "Inspector2Client";
27
+ const commandName = "UpdateEc2DeepInspectionConfigurationCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_UpdateEc2DeepInspectionConfigurationCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_UpdateEc2DeepInspectionConfigurationCommand)(output, context);
43
+ }
44
+ }
45
+ exports.UpdateEc2DeepInspectionConfigurationCommand = UpdateEc2DeepInspectionConfigurationCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateOrgEc2DeepInspectionConfigurationCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateOrgEc2DeepInspectionConfigurationCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateOrgEc2DeepInspectionConfigurationCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "Inspector2Client";
27
+ const commandName = "UpdateOrgEc2DeepInspectionConfigurationCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_UpdateOrgEc2DeepInspectionConfigurationCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_UpdateOrgEc2DeepInspectionConfigurationCommand)(output, context);
43
+ }
44
+ }
45
+ exports.UpdateOrgEc2DeepInspectionConfigurationCommand = UpdateOrgEc2DeepInspectionConfigurationCommand;
@@ -4,6 +4,8 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AssociateMemberCommand"), exports);
5
5
  tslib_1.__exportStar(require("./BatchGetAccountStatusCommand"), exports);
6
6
  tslib_1.__exportStar(require("./BatchGetFreeTrialInfoCommand"), exports);
7
+ tslib_1.__exportStar(require("./BatchGetMemberEc2DeepInspectionStatusCommand"), exports);
8
+ tslib_1.__exportStar(require("./BatchUpdateMemberEc2DeepInspectionStatusCommand"), exports);
7
9
  tslib_1.__exportStar(require("./CancelFindingsReportCommand"), exports);
8
10
  tslib_1.__exportStar(require("./CreateFilterCommand"), exports);
9
11
  tslib_1.__exportStar(require("./CreateFindingsReportCommand"), exports);
@@ -16,6 +18,7 @@ tslib_1.__exportStar(require("./EnableCommand"), exports);
16
18
  tslib_1.__exportStar(require("./EnableDelegatedAdminAccountCommand"), exports);
17
19
  tslib_1.__exportStar(require("./GetConfigurationCommand"), exports);
18
20
  tslib_1.__exportStar(require("./GetDelegatedAdminAccountCommand"), exports);
21
+ tslib_1.__exportStar(require("./GetEc2DeepInspectionConfigurationCommand"), exports);
19
22
  tslib_1.__exportStar(require("./GetFindingsReportStatusCommand"), exports);
20
23
  tslib_1.__exportStar(require("./GetMemberCommand"), exports);
21
24
  tslib_1.__exportStar(require("./ListAccountPermissionsCommand"), exports);
@@ -31,5 +34,7 @@ tslib_1.__exportStar(require("./ListUsageTotalsCommand"), exports);
31
34
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
32
35
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
33
36
  tslib_1.__exportStar(require("./UpdateConfigurationCommand"), exports);
37
+ tslib_1.__exportStar(require("./UpdateEc2DeepInspectionConfigurationCommand"), exports);
34
38
  tslib_1.__exportStar(require("./UpdateFilterCommand"), exports);
39
+ tslib_1.__exportStar(require("./UpdateOrgEc2DeepInspectionConfigurationCommand"), exports);
35
40
  tslib_1.__exportStar(require("./UpdateOrganizationConfigurationCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DelegatedAdminStatus = exports.RelationshipStatus = exports.Currency = exports.ReportFormat = exports.ServiceQuotaExceededException = exports.FilterAction = exports.ScanType = exports.ScanStatusCode = exports.ScanStatusReason = exports.EcrScanFrequency = exports.Ec2Platform = exports.CoverageResourceType = exports.CoverageMapComparison = exports.CoverageStringComparison = exports.GroupKey = exports.ConflictException = exports.FreeTrialInfoErrorCode = exports.FreeTrialType = exports.FreeTrialStatus = exports.ResourceNotFoundException = exports.BadRequestException = exports.Runtime = exports.PackageType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.InternalServerException = exports.Architecture = exports.AggregationType = exports.AggregationResponse = exports.AggregationRequest = exports.TitleSortBy = exports.RepositorySortBy = exports.PackageSortBy = exports.LambdaLayerSortBy = exports.LambdaFunctionSortBy = exports.ImageLayerSortBy = exports.FindingTypeSortBy = exports.Ec2InstanceSortBy = exports.MapComparison = exports.AwsEcrContainerSortBy = exports.AmiSortBy = exports.StringComparison = exports.ErrorCode = exports.SortOrder = exports.AccountSortBy = exports.AggregationResourceType = exports.AggregationFindingType = exports.Status = exports.AccessDeniedException = void 0;
4
- exports.UsageType = exports.SortField = exports.Operation = exports.Service = exports.ReportingErrorCode = exports.FindingType = exports.FindingStatus = exports.Severity = exports.ResourceType = exports.PackageManager = exports.NetworkProtocol = exports.FixAvailable = exports.ExternalReportStatus = exports.ExploitAvailable = exports.EcrRescanDurationStatus = exports.EcrRescanDuration = exports.ResourceScanType = void 0;
3
+ exports.RelationshipStatus = exports.Currency = exports.ReportFormat = exports.ServiceQuotaExceededException = exports.FilterAction = exports.ScanType = exports.ScanStatusCode = exports.ScanStatusReason = exports.EcrScanFrequency = exports.Ec2Platform = exports.CoverageResourceType = exports.CoverageMapComparison = exports.CoverageStringComparison = exports.GroupKey = exports.ConflictException = exports.Ec2DeepInspectionStatus = exports.FreeTrialInfoErrorCode = exports.FreeTrialType = exports.FreeTrialStatus = exports.ResourceNotFoundException = exports.BadRequestException = exports.Runtime = exports.PackageType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.InternalServerException = exports.Architecture = exports.AggregationType = exports.AggregationResponse = exports.AggregationRequest = exports.TitleSortBy = exports.RepositorySortBy = exports.PackageSortBy = exports.LambdaLayerSortBy = exports.LambdaFunctionSortBy = exports.ImageLayerSortBy = exports.FindingTypeSortBy = exports.Ec2InstanceSortBy = exports.MapComparison = exports.AwsEcrContainerSortBy = exports.AmiSortBy = exports.StringComparison = exports.ErrorCode = exports.SortOrder = exports.AccountSortBy = exports.AggregationResourceType = exports.AggregationFindingType = exports.Status = exports.AccessDeniedException = void 0;
4
+ exports.UsageType = exports.SortField = exports.Operation = exports.Service = exports.ReportingErrorCode = exports.FindingType = exports.FindingStatus = exports.Severity = exports.ResourceType = exports.PackageManager = exports.NetworkProtocol = exports.FixAvailable = exports.ExternalReportStatus = exports.ExploitAvailable = exports.EcrRescanDurationStatus = exports.EcrRescanDuration = exports.ResourceScanType = exports.DelegatedAdminStatus = void 0;
5
5
  const Inspector2ServiceException_1 = require("./Inspector2ServiceException");
6
6
  class AccessDeniedException extends Inspector2ServiceException_1.Inspector2ServiceException {
7
7
  constructor(opts) {
@@ -302,6 +302,12 @@ exports.FreeTrialInfoErrorCode = {
302
302
  ACCESS_DENIED: "ACCESS_DENIED",
303
303
  INTERNAL_ERROR: "INTERNAL_ERROR",
304
304
  };
305
+ exports.Ec2DeepInspectionStatus = {
306
+ ACTIVATED: "ACTIVATED",
307
+ DEACTIVATED: "DEACTIVATED",
308
+ FAILED: "FAILED",
309
+ PENDING: "PENDING",
310
+ };
305
311
  class ConflictException extends Inspector2ServiceException_1.Inspector2ServiceException {
306
312
  constructor(opts) {
307
313
  super({
@@ -349,6 +355,10 @@ exports.EcrScanFrequency = {
349
355
  };
350
356
  exports.ScanStatusReason = {
351
357
  ACCESS_DENIED: "ACCESS_DENIED",
358
+ DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED",
359
+ DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED: "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED",
360
+ DEEP_INSPECTION_NO_INVENTORY: "DEEP_INSPECTION_NO_INVENTORY",
361
+ DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED: "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED",
352
362
  EC2_INSTANCE_STOPPED: "EC2_INSTANCE_STOPPED",
353
363
  EXCLUDED_BY_TAG: "EXCLUDED_BY_TAG",
354
364
  IMAGE_SIZE_EXCEEDED: "IMAGE_SIZE_EXCEEDED",
@@ -364,6 +374,8 @@ exports.ScanStatusReason = {
364
374
  STALE_INVENTORY: "STALE_INVENTORY",
365
375
  SUCCESSFUL: "SUCCESSFUL",
366
376
  UNMANAGED_EC2_INSTANCE: "UNMANAGED_EC2_INSTANCE",
377
+ UNSUPPORTED_CONFIG_FILE: "UNSUPPORTED_CONFIG_FILE",
378
+ UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE",
367
379
  UNSUPPORTED_OS: "UNSUPPORTED_OS",
368
380
  UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME",
369
381
  };
@@ -456,6 +468,7 @@ exports.PackageManager = {
456
468
  BUNDLER: "BUNDLER",
457
469
  CARGO: "CARGO",
458
470
  COMPOSER: "COMPOSER",
471
+ GEMSPEC: "GEMSPEC",
459
472
  GOBINARY: "GOBINARY",
460
473
  GOMOD: "GOMOD",
461
474
  JAR: "JAR",