@aws-sdk/client-inspector2 3.495.0 → 3.498.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 (137) hide show
  1. package/README.md +104 -0
  2. package/dist-cjs/commands/CreateCisScanConfigurationCommand.js +1 -0
  3. package/dist-cjs/commands/DeleteCisScanConfigurationCommand.js +1 -0
  4. package/dist-cjs/commands/GetCisScanReportCommand.js +1 -0
  5. package/dist-cjs/commands/GetCisScanResultDetailsCommand.js +1 -0
  6. package/dist-cjs/commands/ListCisScanConfigurationsCommand.js +1 -0
  7. package/dist-cjs/commands/ListCisScanResultsAggregatedByChecksCommand.js +1 -0
  8. package/dist-cjs/commands/ListCisScanResultsAggregatedByTargetResourceCommand.js +1 -0
  9. package/dist-cjs/commands/ListCisScansCommand.js +1 -0
  10. package/dist-cjs/commands/SendCisSessionHealthCommand.js +1 -0
  11. package/dist-cjs/commands/SendCisSessionTelemetryCommand.js +1 -0
  12. package/dist-cjs/commands/StartCisSessionCommand.js +1 -0
  13. package/dist-cjs/commands/StopCisSessionCommand.js +1 -0
  14. package/dist-cjs/commands/UpdateCisScanConfigurationCommand.js +1 -0
  15. package/dist-cjs/index.js +1722 -397
  16. package/dist-cjs/models/models_1.js +1 -0
  17. package/dist-cjs/pagination/GetCisScanResultDetailsPaginator.js +1 -0
  18. package/dist-cjs/pagination/ListCisScanConfigurationsPaginator.js +1 -0
  19. package/dist-cjs/pagination/ListCisScanResultsAggregatedByChecksPaginator.js +1 -0
  20. package/dist-cjs/pagination/ListCisScanResultsAggregatedByTargetResourcePaginator.js +1 -0
  21. package/dist-cjs/pagination/ListCisScansPaginator.js +1 -0
  22. package/dist-es/Inspector2.js +26 -0
  23. package/dist-es/commands/CreateCisScanConfigurationCommand.js +24 -0
  24. package/dist-es/commands/DeleteCisScanConfigurationCommand.js +24 -0
  25. package/dist-es/commands/GetCisScanReportCommand.js +24 -0
  26. package/dist-es/commands/GetCisScanResultDetailsCommand.js +24 -0
  27. package/dist-es/commands/ListCisScanConfigurationsCommand.js +24 -0
  28. package/dist-es/commands/ListCisScanResultsAggregatedByChecksCommand.js +24 -0
  29. package/dist-es/commands/ListCisScanResultsAggregatedByTargetResourceCommand.js +24 -0
  30. package/dist-es/commands/ListCisScansCommand.js +24 -0
  31. package/dist-es/commands/SendCisSessionHealthCommand.js +24 -0
  32. package/dist-es/commands/SendCisSessionTelemetryCommand.js +24 -0
  33. package/dist-es/commands/StartCisSessionCommand.js +24 -0
  34. package/dist-es/commands/StopCisSessionCommand.js +24 -0
  35. package/dist-es/commands/UpdateCisScanConfigurationCommand.js +24 -0
  36. package/dist-es/commands/index.js +13 -0
  37. package/dist-es/models/index.js +1 -0
  38. package/dist-es/models/models_0.js +126 -28
  39. package/dist-es/models/models_1.js +35 -0
  40. package/dist-es/pagination/GetCisScanResultDetailsPaginator.js +4 -0
  41. package/dist-es/pagination/ListCisScanConfigurationsPaginator.js +4 -0
  42. package/dist-es/pagination/ListCisScanResultsAggregatedByChecksPaginator.js +4 -0
  43. package/dist-es/pagination/ListCisScanResultsAggregatedByTargetResourcePaginator.js +4 -0
  44. package/dist-es/pagination/ListCisScansPaginator.js +4 -0
  45. package/dist-es/pagination/index.js +5 -0
  46. package/dist-es/protocols/Aws_restJson1.js +847 -20
  47. package/dist-types/Inspector2.d.ts +91 -0
  48. package/dist-types/Inspector2Client.d.ts +15 -2
  49. package/dist-types/commands/CreateCisScanConfigurationCommand.d.ts +110 -0
  50. package/dist-types/commands/DeleteCisScanConfigurationCommand.d.ts +74 -0
  51. package/dist-types/commands/GetCisScanReportCommand.d.ts +75 -0
  52. package/dist-types/commands/GetCisScanResultDetailsCommand.d.ts +125 -0
  53. package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +141 -0
  54. package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +129 -0
  55. package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +152 -0
  56. package/dist-types/commands/ListCisScansCommand.d.ts +158 -0
  57. package/dist-types/commands/ListCoverageCommand.d.ts +2 -1
  58. package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +1 -1
  59. package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +1 -1
  60. package/dist-types/commands/ListFiltersCommand.d.ts +1 -1
  61. package/dist-types/commands/ListFindingAggregationsCommand.d.ts +1 -1
  62. package/dist-types/commands/ListFindingsCommand.d.ts +1 -1
  63. package/dist-types/commands/ListMembersCommand.d.ts +1 -1
  64. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  65. package/dist-types/commands/ListUsageTotalsCommand.d.ts +1 -1
  66. package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +1 -1
  67. package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +1 -1
  68. package/dist-types/commands/SendCisSessionHealthCommand.d.ts +77 -0
  69. package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +84 -0
  70. package/dist-types/commands/StartCisSessionCommand.d.ts +79 -0
  71. package/dist-types/commands/StopCisSessionCommand.d.ts +98 -0
  72. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  73. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  74. package/dist-types/commands/UpdateCisScanConfigurationCommand.d.ts +111 -0
  75. package/dist-types/commands/UpdateConfigurationCommand.d.ts +1 -1
  76. package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +1 -1
  77. package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +1 -1
  78. package/dist-types/commands/UpdateFilterCommand.d.ts +1 -1
  79. package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +1 -1
  80. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
  81. package/dist-types/commands/index.d.ts +13 -0
  82. package/dist-types/models/index.d.ts +1 -0
  83. package/dist-types/models/models_0.d.ts +2223 -1516
  84. package/dist-types/models/models_1.d.ts +1053 -0
  85. package/dist-types/pagination/GetCisScanResultDetailsPaginator.d.ts +7 -0
  86. package/dist-types/pagination/ListCisScanConfigurationsPaginator.d.ts +7 -0
  87. package/dist-types/pagination/ListCisScanResultsAggregatedByChecksPaginator.d.ts +7 -0
  88. package/dist-types/pagination/ListCisScanResultsAggregatedByTargetResourcePaginator.d.ts +7 -0
  89. package/dist-types/pagination/ListCisScansPaginator.d.ts +7 -0
  90. package/dist-types/pagination/index.d.ts +5 -0
  91. package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
  92. package/dist-types/ts3.4/Inspector2.d.ts +233 -0
  93. package/dist-types/ts3.4/Inspector2Client.d.ts +78 -0
  94. package/dist-types/ts3.4/commands/CreateCisScanConfigurationCommand.d.ts +30 -0
  95. package/dist-types/ts3.4/commands/DeleteCisScanConfigurationCommand.d.ts +30 -0
  96. package/dist-types/ts3.4/commands/GetCisScanReportCommand.d.ts +29 -0
  97. package/dist-types/ts3.4/commands/GetCisScanResultDetailsCommand.d.ts +30 -0
  98. package/dist-types/ts3.4/commands/ListCisScanConfigurationsCommand.d.ts +30 -0
  99. package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +30 -0
  100. package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +30 -0
  101. package/dist-types/ts3.4/commands/ListCisScansCommand.d.ts +26 -0
  102. package/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +2 -1
  103. package/dist-types/ts3.4/commands/ListCoverageStatisticsCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/ListDelegatedAdminAccountsCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/ListFiltersCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/ListFindingAggregationsCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/ListUsageTotalsCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/ResetEncryptionKeyCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/SearchVulnerabilitiesCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/SendCisSessionHealthCommand.d.ts +30 -0
  114. package/dist-types/ts3.4/commands/SendCisSessionTelemetryCommand.d.ts +30 -0
  115. package/dist-types/ts3.4/commands/StartCisSessionCommand.d.ts +29 -0
  116. package/dist-types/ts3.4/commands/StopCisSessionCommand.d.ts +29 -0
  117. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/UpdateCisScanConfigurationCommand.d.ts +30 -0
  120. package/dist-types/ts3.4/commands/UpdateConfigurationCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/UpdateEncryptionKeyCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  127. package/dist-types/ts3.4/models/index.d.ts +1 -0
  128. package/dist-types/ts3.4/models/models_0.d.ts +449 -192
  129. package/dist-types/ts3.4/models/models_1.d.ts +309 -0
  130. package/dist-types/ts3.4/pagination/GetCisScanResultDetailsPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/ListCisScanConfigurationsPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/ListCisScanResultsAggregatedByChecksPaginator.d.ts +11 -0
  133. package/dist-types/ts3.4/pagination/ListCisScanResultsAggregatedByTargetResourcePaginator.d.ts +11 -0
  134. package/dist-types/ts3.4/pagination/ListCisScansPaginator.d.ts +11 -0
  135. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  136. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  137. package/package.json +39 -39
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { ListUsageTotalsRequest, ListUsageTotalsResponse } from "../models/models_0";
4
+ import { ListUsageTotalsRequest, ListUsageTotalsResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { ResetEncryptionKeyRequest, ResetEncryptionKeyResponse } from "../models/models_0";
4
+ import { ResetEncryptionKeyRequest, ResetEncryptionKeyResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { SearchVulnerabilitiesRequest, SearchVulnerabilitiesResponse } from "../models/models_0";
4
+ import { SearchVulnerabilitiesRequest, SearchVulnerabilitiesResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -0,0 +1,77 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
+ import { SendCisSessionHealthRequest, SendCisSessionHealthResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link SendCisSessionHealthCommand}.
13
+ */
14
+ export interface SendCisSessionHealthCommandInput extends SendCisSessionHealthRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link SendCisSessionHealthCommand}.
20
+ */
21
+ export interface SendCisSessionHealthCommandOutput extends SendCisSessionHealthResponse, __MetadataBearer {
22
+ }
23
+ declare const SendCisSessionHealthCommand_base: {
24
+ new (input: SendCisSessionHealthCommandInput): import("@smithy/smithy-client").CommandImpl<SendCisSessionHealthCommandInput, SendCisSessionHealthCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>
30
+ * Sends a CIS session health.
31
+ * This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service.
32
+ * The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { Inspector2Client, SendCisSessionHealthCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
38
+ * // const { Inspector2Client, SendCisSessionHealthCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
39
+ * const client = new Inspector2Client(config);
40
+ * const input = { // SendCisSessionHealthRequest
41
+ * scanJobId: "STRING_VALUE", // required
42
+ * sessionToken: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new SendCisSessionHealthCommand(input);
45
+ * const response = await client.send(command);
46
+ * // {};
47
+ *
48
+ * ```
49
+ *
50
+ * @param SendCisSessionHealthCommandInput - {@link SendCisSessionHealthCommandInput}
51
+ * @returns {@link SendCisSessionHealthCommandOutput}
52
+ * @see {@link SendCisSessionHealthCommandInput} for command's `input` shape.
53
+ * @see {@link SendCisSessionHealthCommandOutput} for command's `response` shape.
54
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You do not have sufficient access to perform this action.</p>
58
+ *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>A conflict occurred.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
64
+ *
65
+ * @throws {@link ThrottlingException} (client fault)
66
+ * <p>The limit on the number of requests per second was exceeded.</p>
67
+ *
68
+ * @throws {@link ValidationException} (client fault)
69
+ * <p>The request has failed validation due to missing required fields or having invalid
70
+ * inputs.</p>
71
+ *
72
+ * @throws {@link Inspector2ServiceException}
73
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
74
+ *
75
+ */
76
+ export declare class SendCisSessionHealthCommand extends SendCisSessionHealthCommand_base {
77
+ }
@@ -0,0 +1,84 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
+ import { SendCisSessionTelemetryRequest, SendCisSessionTelemetryResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link SendCisSessionTelemetryCommand}.
13
+ */
14
+ export interface SendCisSessionTelemetryCommandInput extends SendCisSessionTelemetryRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link SendCisSessionTelemetryCommand}.
20
+ */
21
+ export interface SendCisSessionTelemetryCommandOutput extends SendCisSessionTelemetryResponse, __MetadataBearer {
22
+ }
23
+ declare const SendCisSessionTelemetryCommand_base: {
24
+ new (input: SendCisSessionTelemetryCommandInput): import("@smithy/smithy-client").CommandImpl<SendCisSessionTelemetryCommandInput, SendCisSessionTelemetryCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>
30
+ * Sends a CIS session telemetry.
31
+ * This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service.
32
+ * The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { Inspector2Client, SendCisSessionTelemetryCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
38
+ * // const { Inspector2Client, SendCisSessionTelemetryCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
39
+ * const client = new Inspector2Client(config);
40
+ * const input = { // SendCisSessionTelemetryRequest
41
+ * scanJobId: "STRING_VALUE", // required
42
+ * sessionToken: "STRING_VALUE", // required
43
+ * messages: [ // CisSessionMessages // required
44
+ * { // CisSessionMessage
45
+ * ruleId: "STRING_VALUE", // required
46
+ * status: "FAILED" || "PASSED" || "NOT_EVALUATED" || "INFORMATIONAL" || "UNKNOWN" || "NOT_APPLICABLE" || "ERROR", // required
47
+ * cisRuleDetails: "BLOB_VALUE", // required
48
+ * },
49
+ * ],
50
+ * };
51
+ * const command = new SendCisSessionTelemetryCommand(input);
52
+ * const response = await client.send(command);
53
+ * // {};
54
+ *
55
+ * ```
56
+ *
57
+ * @param SendCisSessionTelemetryCommandInput - {@link SendCisSessionTelemetryCommandInput}
58
+ * @returns {@link SendCisSessionTelemetryCommandOutput}
59
+ * @see {@link SendCisSessionTelemetryCommandInput} for command's `input` shape.
60
+ * @see {@link SendCisSessionTelemetryCommandOutput} for command's `response` shape.
61
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>You do not have sufficient access to perform this action.</p>
65
+ *
66
+ * @throws {@link ConflictException} (client fault)
67
+ * <p>A conflict occurred.</p>
68
+ *
69
+ * @throws {@link InternalServerException} (server fault)
70
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The limit on the number of requests per second was exceeded.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p>The request has failed validation due to missing required fields or having invalid
77
+ * inputs.</p>
78
+ *
79
+ * @throws {@link Inspector2ServiceException}
80
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
81
+ *
82
+ */
83
+ export declare class SendCisSessionTelemetryCommand extends SendCisSessionTelemetryCommand_base {
84
+ }
@@ -0,0 +1,79 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
+ import { StartCisSessionRequest, StartCisSessionResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link StartCisSessionCommand}.
13
+ */
14
+ export interface StartCisSessionCommandInput extends StartCisSessionRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link StartCisSessionCommand}.
20
+ */
21
+ export interface StartCisSessionCommandOutput extends StartCisSessionResponse, __MetadataBearer {
22
+ }
23
+ declare const StartCisSessionCommand_base: {
24
+ new (input: StartCisSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StartCisSessionCommandInput, StartCisSessionCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>
30
+ * Starts a CIS session.
31
+ * This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service.
32
+ * The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { Inspector2Client, StartCisSessionCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
38
+ * // const { Inspector2Client, StartCisSessionCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
39
+ * const client = new Inspector2Client(config);
40
+ * const input = { // StartCisSessionRequest
41
+ * scanJobId: "STRING_VALUE", // required
42
+ * message: { // StartCisSessionMessage
43
+ * sessionToken: "STRING_VALUE", // required
44
+ * },
45
+ * };
46
+ * const command = new StartCisSessionCommand(input);
47
+ * const response = await client.send(command);
48
+ * // {};
49
+ *
50
+ * ```
51
+ *
52
+ * @param StartCisSessionCommandInput - {@link StartCisSessionCommandInput}
53
+ * @returns {@link StartCisSessionCommandOutput}
54
+ * @see {@link StartCisSessionCommandInput} for command's `input` shape.
55
+ * @see {@link StartCisSessionCommandOutput} for command's `response` shape.
56
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>You do not have sufficient access to perform this action.</p>
60
+ *
61
+ * @throws {@link ConflictException} (client fault)
62
+ * <p>A conflict occurred.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
66
+ *
67
+ * @throws {@link ThrottlingException} (client fault)
68
+ * <p>The limit on the number of requests per second was exceeded.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>The request has failed validation due to missing required fields or having invalid
72
+ * inputs.</p>
73
+ *
74
+ * @throws {@link Inspector2ServiceException}
75
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
76
+ *
77
+ */
78
+ export declare class StartCisSessionCommand extends StartCisSessionCommand_base {
79
+ }
@@ -0,0 +1,98 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
+ import { StopCisSessionRequest, StopCisSessionResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link StopCisSessionCommand}.
13
+ */
14
+ export interface StopCisSessionCommandInput extends StopCisSessionRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link StopCisSessionCommand}.
20
+ */
21
+ export interface StopCisSessionCommandOutput extends StopCisSessionResponse, __MetadataBearer {
22
+ }
23
+ declare const StopCisSessionCommand_base: {
24
+ new (input: StopCisSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StopCisSessionCommandInput, StopCisSessionCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>
30
+ * Stops a CIS session.
31
+ * This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service.
32
+ * The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { Inspector2Client, StopCisSessionCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
38
+ * // const { Inspector2Client, StopCisSessionCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
39
+ * const client = new Inspector2Client(config);
40
+ * const input = { // StopCisSessionRequest
41
+ * scanJobId: "STRING_VALUE", // required
42
+ * sessionToken: "STRING_VALUE", // required
43
+ * message: { // StopCisSessionMessage
44
+ * status: "SUCCESS" || "FAILED" || "INTERRUPTED" || "UNSUPPORTED_OS", // required
45
+ * reason: "STRING_VALUE",
46
+ * progress: { // StopCisMessageProgress
47
+ * totalChecks: Number("int"),
48
+ * successfulChecks: Number("int"),
49
+ * failedChecks: Number("int"),
50
+ * notEvaluatedChecks: Number("int"),
51
+ * unknownChecks: Number("int"),
52
+ * notApplicableChecks: Number("int"),
53
+ * informationalChecks: Number("int"),
54
+ * errorChecks: Number("int"),
55
+ * },
56
+ * computePlatform: { // ComputePlatform
57
+ * vendor: "STRING_VALUE",
58
+ * product: "STRING_VALUE",
59
+ * version: "STRING_VALUE",
60
+ * },
61
+ * benchmarkVersion: "STRING_VALUE",
62
+ * benchmarkProfile: "STRING_VALUE",
63
+ * },
64
+ * };
65
+ * const command = new StopCisSessionCommand(input);
66
+ * const response = await client.send(command);
67
+ * // {};
68
+ *
69
+ * ```
70
+ *
71
+ * @param StopCisSessionCommandInput - {@link StopCisSessionCommandInput}
72
+ * @returns {@link StopCisSessionCommandOutput}
73
+ * @see {@link StopCisSessionCommandInput} for command's `input` shape.
74
+ * @see {@link StopCisSessionCommandOutput} for command's `response` shape.
75
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>You do not have sufficient access to perform this action.</p>
79
+ *
80
+ * @throws {@link ConflictException} (client fault)
81
+ * <p>A conflict occurred.</p>
82
+ *
83
+ * @throws {@link InternalServerException} (server fault)
84
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>The limit on the number of requests per second was exceeded.</p>
88
+ *
89
+ * @throws {@link ValidationException} (client fault)
90
+ * <p>The request has failed validation due to missing required fields or having invalid
91
+ * inputs.</p>
92
+ *
93
+ * @throws {@link Inspector2ServiceException}
94
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
95
+ *
96
+ */
97
+ export declare class StopCisSessionCommand extends StopCisSessionCommand_base {
98
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -0,0 +1,111 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
+ import { UpdateCisScanConfigurationRequest, UpdateCisScanConfigurationResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link UpdateCisScanConfigurationCommand}.
13
+ */
14
+ export interface UpdateCisScanConfigurationCommandInput extends UpdateCisScanConfigurationRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link UpdateCisScanConfigurationCommand}.
20
+ */
21
+ export interface UpdateCisScanConfigurationCommandOutput extends UpdateCisScanConfigurationResponse, __MetadataBearer {
22
+ }
23
+ declare const UpdateCisScanConfigurationCommand_base: {
24
+ new (input: UpdateCisScanConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCisScanConfigurationCommandInput, UpdateCisScanConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>Updates a CIS scan configuration.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { Inspector2Client, UpdateCisScanConfigurationCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
34
+ * // const { Inspector2Client, UpdateCisScanConfigurationCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
35
+ * const client = new Inspector2Client(config);
36
+ * const input = { // UpdateCisScanConfigurationRequest
37
+ * scanConfigurationArn: "STRING_VALUE", // required
38
+ * scanName: "STRING_VALUE",
39
+ * securityLevel: "LEVEL_1" || "LEVEL_2",
40
+ * schedule: { // Schedule Union: only one key present
41
+ * oneTime: {},
42
+ * daily: { // DailySchedule
43
+ * startTime: { // Time
44
+ * timeOfDay: "STRING_VALUE", // required
45
+ * timezone: "STRING_VALUE", // required
46
+ * },
47
+ * },
48
+ * weekly: { // WeeklySchedule
49
+ * startTime: {
50
+ * timeOfDay: "STRING_VALUE", // required
51
+ * timezone: "STRING_VALUE", // required
52
+ * },
53
+ * days: [ // DaysList // required
54
+ * "SUN" || "MON" || "TUE" || "WED" || "THU" || "FRI" || "SAT",
55
+ * ],
56
+ * },
57
+ * monthly: { // MonthlySchedule
58
+ * startTime: {
59
+ * timeOfDay: "STRING_VALUE", // required
60
+ * timezone: "STRING_VALUE", // required
61
+ * },
62
+ * day: "SUN" || "MON" || "TUE" || "WED" || "THU" || "FRI" || "SAT", // required
63
+ * },
64
+ * },
65
+ * targets: { // UpdateCisTargets
66
+ * accountIds: [ // TargetAccountList
67
+ * "STRING_VALUE",
68
+ * ],
69
+ * targetResourceTags: { // TargetResourceTags
70
+ * "<keys>": [ // TagValueList
71
+ * "STRING_VALUE",
72
+ * ],
73
+ * },
74
+ * },
75
+ * };
76
+ * const command = new UpdateCisScanConfigurationCommand(input);
77
+ * const response = await client.send(command);
78
+ * // { // UpdateCisScanConfigurationResponse
79
+ * // scanConfigurationArn: "STRING_VALUE", // required
80
+ * // };
81
+ *
82
+ * ```
83
+ *
84
+ * @param UpdateCisScanConfigurationCommandInput - {@link UpdateCisScanConfigurationCommandInput}
85
+ * @returns {@link UpdateCisScanConfigurationCommandOutput}
86
+ * @see {@link UpdateCisScanConfigurationCommandInput} for command's `input` shape.
87
+ * @see {@link UpdateCisScanConfigurationCommandOutput} for command's `response` shape.
88
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
89
+ *
90
+ * @throws {@link AccessDeniedException} (client fault)
91
+ * <p>You do not have sufficient access to perform this action.</p>
92
+ *
93
+ * @throws {@link InternalServerException} (server fault)
94
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
98
+ *
99
+ * @throws {@link ThrottlingException} (client fault)
100
+ * <p>The limit on the number of requests per second was exceeded.</p>
101
+ *
102
+ * @throws {@link ValidationException} (client fault)
103
+ * <p>The request has failed validation due to missing required fields or having invalid
104
+ * inputs.</p>
105
+ *
106
+ * @throws {@link Inspector2ServiceException}
107
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
108
+ *
109
+ */
110
+ export declare class UpdateCisScanConfigurationCommand extends UpdateCisScanConfigurationCommand_base {
111
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { UpdateConfigurationRequest, UpdateConfigurationResponse } from "../models/models_0";
4
+ import { UpdateConfigurationRequest, UpdateConfigurationResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { UpdateEc2DeepInspectionConfigurationRequest, UpdateEc2DeepInspectionConfigurationResponse } from "../models/models_0";
4
+ import { UpdateEc2DeepInspectionConfigurationRequest, UpdateEc2DeepInspectionConfigurationResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { UpdateEncryptionKeyRequest, UpdateEncryptionKeyResponse } from "../models/models_0";
4
+ import { UpdateEncryptionKeyRequest, UpdateEncryptionKeyResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { UpdateFilterRequest, UpdateFilterResponse } from "../models/models_0";
4
+ import { UpdateFilterRequest, UpdateFilterResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { UpdateOrgEc2DeepInspectionConfigurationRequest, UpdateOrgEc2DeepInspectionConfigurationResponse } from "../models/models_0";
4
+ import { UpdateOrgEc2DeepInspectionConfigurationRequest, UpdateOrgEc2DeepInspectionConfigurationResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
4
- import { UpdateOrganizationConfigurationRequest, UpdateOrganizationConfigurationResponse } from "../models/models_0";
4
+ import { UpdateOrganizationConfigurationRequest, UpdateOrganizationConfigurationResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -7,9 +7,11 @@ export * from "./BatchGetMemberEc2DeepInspectionStatusCommand";
7
7
  export * from "./BatchUpdateMemberEc2DeepInspectionStatusCommand";
8
8
  export * from "./CancelFindingsReportCommand";
9
9
  export * from "./CancelSbomExportCommand";
10
+ export * from "./CreateCisScanConfigurationCommand";
10
11
  export * from "./CreateFilterCommand";
11
12
  export * from "./CreateFindingsReportCommand";
12
13
  export * from "./CreateSbomExportCommand";
14
+ export * from "./DeleteCisScanConfigurationCommand";
13
15
  export * from "./DeleteFilterCommand";
14
16
  export * from "./DescribeOrganizationConfigurationCommand";
15
17
  export * from "./DisableCommand";
@@ -17,6 +19,8 @@ export * from "./DisableDelegatedAdminAccountCommand";
17
19
  export * from "./DisassociateMemberCommand";
18
20
  export * from "./EnableCommand";
19
21
  export * from "./EnableDelegatedAdminAccountCommand";
22
+ export * from "./GetCisScanReportCommand";
23
+ export * from "./GetCisScanResultDetailsCommand";
20
24
  export * from "./GetConfigurationCommand";
21
25
  export * from "./GetDelegatedAdminAccountCommand";
22
26
  export * from "./GetEc2DeepInspectionConfigurationCommand";
@@ -25,6 +29,10 @@ export * from "./GetFindingsReportStatusCommand";
25
29
  export * from "./GetMemberCommand";
26
30
  export * from "./GetSbomExportCommand";
27
31
  export * from "./ListAccountPermissionsCommand";
32
+ export * from "./ListCisScanConfigurationsCommand";
33
+ export * from "./ListCisScanResultsAggregatedByChecksCommand";
34
+ export * from "./ListCisScanResultsAggregatedByTargetResourceCommand";
35
+ export * from "./ListCisScansCommand";
28
36
  export * from "./ListCoverageCommand";
29
37
  export * from "./ListCoverageStatisticsCommand";
30
38
  export * from "./ListDelegatedAdminAccountsCommand";
@@ -36,8 +44,13 @@ export * from "./ListTagsForResourceCommand";
36
44
  export * from "./ListUsageTotalsCommand";
37
45
  export * from "./ResetEncryptionKeyCommand";
38
46
  export * from "./SearchVulnerabilitiesCommand";
47
+ export * from "./SendCisSessionHealthCommand";
48
+ export * from "./SendCisSessionTelemetryCommand";
49
+ export * from "./StartCisSessionCommand";
50
+ export * from "./StopCisSessionCommand";
39
51
  export * from "./TagResourceCommand";
40
52
  export * from "./UntagResourceCommand";
53
+ export * from "./UpdateCisScanConfigurationCommand";
41
54
  export * from "./UpdateConfigurationCommand";
42
55
  export * from "./UpdateEc2DeepInspectionConfigurationCommand";
43
56
  export * from "./UpdateEncryptionKeyCommand";
@@ -1 +1,2 @@
1
1
  export * from "./models_0";
2
+ export * from "./models_1";