@aws-sdk/client-inspector2 3.830.0 → 3.831.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 (135) hide show
  1. package/README.md +120 -0
  2. package/dist-cjs/index.js +1297 -313
  3. package/dist-es/Inspector2.js +30 -0
  4. package/dist-es/commands/BatchAssociateCodeSecurityScanConfigurationCommand.js +22 -0
  5. package/dist-es/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.js +22 -0
  6. package/dist-es/commands/CreateCodeSecurityIntegrationCommand.js +23 -0
  7. package/dist-es/commands/CreateCodeSecurityScanConfigurationCommand.js +22 -0
  8. package/dist-es/commands/DeleteCodeSecurityIntegrationCommand.js +22 -0
  9. package/dist-es/commands/DeleteCodeSecurityScanConfigurationCommand.js +22 -0
  10. package/dist-es/commands/GetCodeSecurityIntegrationCommand.js +23 -0
  11. package/dist-es/commands/GetCodeSecurityScanCommand.js +22 -0
  12. package/dist-es/commands/GetCodeSecurityScanConfigurationCommand.js +22 -0
  13. package/dist-es/commands/ListCodeSecurityIntegrationsCommand.js +22 -0
  14. package/dist-es/commands/ListCodeSecurityScanConfigurationAssociationsCommand.js +22 -0
  15. package/dist-es/commands/ListCodeSecurityScanConfigurationsCommand.js +22 -0
  16. package/dist-es/commands/StartCodeSecurityScanCommand.js +22 -0
  17. package/dist-es/commands/UpdateCodeSecurityIntegrationCommand.js +23 -0
  18. package/dist-es/commands/UpdateCodeSecurityScanConfigurationCommand.js +22 -0
  19. package/dist-es/commands/index.js +15 -0
  20. package/dist-es/models/models_0.js +153 -120
  21. package/dist-es/models/models_1.js +110 -0
  22. package/dist-es/protocols/Aws_restJson1.js +509 -3
  23. package/dist-types/Inspector2.d.ts +107 -0
  24. package/dist-types/Inspector2Client.d.ts +17 -2
  25. package/dist-types/commands/AssociateMemberCommand.d.ts +6 -1
  26. package/dist-types/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
  27. package/dist-types/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
  28. package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -1
  29. package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +4 -1
  30. package/dist-types/commands/BatchGetFindingDetailsCommand.d.ts +2 -0
  31. package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +2 -0
  32. package/dist-types/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
  33. package/dist-types/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
  34. package/dist-types/commands/CancelFindingsReportCommand.d.ts +4 -1
  35. package/dist-types/commands/CancelSbomExportCommand.d.ts +4 -1
  36. package/dist-types/commands/CreateCisScanConfigurationCommand.d.ts +2 -0
  37. package/dist-types/commands/CreateCodeSecurityIntegrationCommand.d.ts +111 -0
  38. package/dist-types/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +116 -0
  39. package/dist-types/commands/CreateFilterCommand.d.ts +6 -1
  40. package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -2
  41. package/dist-types/commands/CreateSbomExportCommand.d.ts +4 -1
  42. package/dist-types/commands/DeleteCisScanConfigurationCommand.d.ts +4 -1
  43. package/dist-types/commands/DeleteCodeSecurityIntegrationCommand.d.ts +91 -0
  44. package/dist-types/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +91 -0
  45. package/dist-types/commands/DeleteFilterCommand.d.ts +4 -1
  46. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +3 -0
  47. package/dist-types/commands/DisableCommand.d.ts +8 -3
  48. package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +6 -2
  49. package/dist-types/commands/DisassociateMemberCommand.d.ts +2 -0
  50. package/dist-types/commands/EnableCommand.d.ts +6 -1
  51. package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +6 -2
  52. package/dist-types/commands/GetCisScanReportCommand.d.ts +5 -2
  53. package/dist-types/commands/GetCisScanResultDetailsCommand.d.ts +3 -1
  54. package/dist-types/commands/GetClustersForImageCommand.d.ts +3 -1
  55. package/dist-types/commands/GetCodeSecurityIntegrationCommand.d.ts +104 -0
  56. package/dist-types/commands/GetCodeSecurityScanCommand.d.ts +107 -0
  57. package/dist-types/commands/GetCodeSecurityScanConfigurationCommand.d.ts +115 -0
  58. package/dist-types/commands/GetConfigurationCommand.d.ts +3 -2
  59. package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +5 -2
  60. package/dist-types/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +7 -4
  61. package/dist-types/commands/GetEncryptionKeyCommand.d.ts +5 -2
  62. package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +7 -2
  63. package/dist-types/commands/GetMemberCommand.d.ts +5 -2
  64. package/dist-types/commands/GetSbomExportCommand.d.ts +5 -3
  65. package/dist-types/commands/ListAccountPermissionsCommand.d.ts +2 -0
  66. package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +2 -0
  67. package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +2 -0
  68. package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +2 -0
  69. package/dist-types/commands/ListCisScansCommand.d.ts +2 -0
  70. package/dist-types/commands/ListCodeSecurityIntegrationsCommand.d.ts +102 -0
  71. package/dist-types/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +101 -0
  72. package/dist-types/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +113 -0
  73. package/dist-types/commands/ListCoverageCommand.d.ts +37 -0
  74. package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +4 -0
  75. package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +3 -2
  76. package/dist-types/commands/ListFiltersCommand.d.ts +4 -0
  77. package/dist-types/commands/ListFindingAggregationsCommand.d.ts +16 -0
  78. package/dist-types/commands/ListFindingsCommand.d.ts +7 -0
  79. package/dist-types/commands/ListMembersCommand.d.ts +2 -0
  80. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
  81. package/dist-types/commands/ListUsageTotalsCommand.d.ts +2 -0
  82. package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +6 -2
  83. package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +2 -0
  84. package/dist-types/commands/SendCisSessionHealthCommand.d.ts +7 -6
  85. package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +7 -6
  86. package/dist-types/commands/StartCisSessionCommand.d.ts +7 -6
  87. package/dist-types/commands/StartCodeSecurityScanCommand.d.ts +99 -0
  88. package/dist-types/commands/StopCisSessionCommand.d.ts +7 -6
  89. package/dist-types/commands/TagResourceCommand.d.ts +2 -1
  90. package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
  91. package/dist-types/commands/UpdateCisScanConfigurationCommand.d.ts +4 -1
  92. package/dist-types/commands/UpdateCodeSecurityIntegrationCommand.d.ts +109 -0
  93. package/dist-types/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +109 -0
  94. package/dist-types/commands/UpdateConfigurationCommand.d.ts +5 -1
  95. package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +4 -1
  96. package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +6 -2
  97. package/dist-types/commands/UpdateFilterCommand.d.ts +6 -1
  98. package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +4 -1
  99. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +4 -0
  100. package/dist-types/commands/index.d.ts +15 -0
  101. package/dist-types/models/models_0.d.ts +2059 -1859
  102. package/dist-types/models/models_1.d.ts +1582 -49
  103. package/dist-types/protocols/Aws_restJson1.d.ts +135 -0
  104. package/dist-types/ts3.4/Inspector2.d.ts +299 -0
  105. package/dist-types/ts3.4/Inspector2Client.d.ts +90 -0
  106. package/dist-types/ts3.4/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  107. package/dist-types/ts3.4/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  108. package/dist-types/ts3.4/commands/CreateCodeSecurityIntegrationCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  110. package/dist-types/ts3.4/commands/DeleteCodeSecurityIntegrationCommand.d.ts +51 -0
  111. package/dist-types/ts3.4/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +51 -0
  112. package/dist-types/ts3.4/commands/GetCisScanReportCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/GetCisScanResultDetailsCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/GetClustersForImageCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/GetCodeSecurityIntegrationCommand.d.ts +51 -0
  116. package/dist-types/ts3.4/commands/GetCodeSecurityScanCommand.d.ts +51 -0
  117. package/dist-types/ts3.4/commands/GetCodeSecurityScanConfigurationCommand.d.ts +51 -0
  118. package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/GetDelegatedAdminAccountCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/GetFindingsReportStatusCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +4 -2
  125. package/dist-types/ts3.4/commands/ListCodeSecurityIntegrationsCommand.d.ts +51 -0
  126. package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +51 -0
  127. package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +51 -0
  128. package/dist-types/ts3.4/commands/StartCodeSecurityScanCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/UpdateCodeSecurityIntegrationCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  131. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  132. package/dist-types/ts3.4/models/models_0.d.ts +420 -328
  133. package/dist-types/ts3.4/models/models_1.d.ts +445 -6
  134. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +180 -0
  135. package/package.json +1 -1
@@ -27,7 +27,8 @@ declare const ResetEncryptionKeyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.</p>
30
+ * <p>Resets an encryption key. After the key is reset your resources will be encrypted by an
31
+ * Amazon Web Services owned key.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -52,12 +53,15 @@ declare const ResetEncryptionKeyCommand_base: {
52
53
  *
53
54
  * @throws {@link AccessDeniedException} (client fault)
54
55
  * <p>You do not have sufficient access to perform this action.</p>
56
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
57
+ * unsupported Amazon Web Services Region. </p>
55
58
  *
56
59
  * @throws {@link InternalServerException} (server fault)
57
60
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
58
61
  *
59
62
  * @throws {@link ResourceNotFoundException} (client fault)
60
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
63
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
64
+ * correctly.</p>
61
65
  *
62
66
  * @throws {@link ThrottlingException} (client fault)
63
67
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -111,6 +111,8 @@ declare const SearchVulnerabilitiesCommand_base: {
111
111
  *
112
112
  * @throws {@link AccessDeniedException} (client fault)
113
113
  * <p>You do not have sufficient access to perform this action.</p>
114
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
115
+ * unsupported Amazon Web Services Region. </p>
114
116
  *
115
117
  * @throws {@link InternalServerException} (server fault)
116
118
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -27,11 +27,9 @@ declare const SendCisSessionHealthCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>
31
- * Sends a CIS session health.
32
- * This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service.
33
- * The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
34
- * </p>
30
+ * <p> Sends a CIS session health. This API is used by the Amazon Inspector SSM plugin to
31
+ * communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls
32
+ * this API to start a CIS scan session for the scan ID supplied by the service. </p>
35
33
  * @example
36
34
  * Use a bare-bones client and the command you need to make an API call.
37
35
  * ```javascript
@@ -56,9 +54,12 @@ declare const SendCisSessionHealthCommand_base: {
56
54
  *
57
55
  * @throws {@link AccessDeniedException} (client fault)
58
56
  * <p>You do not have sufficient access to perform this action.</p>
57
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
58
+ * unsupported Amazon Web Services Region. </p>
59
59
  *
60
60
  * @throws {@link ConflictException} (client fault)
61
- * <p>A conflict occurred.</p>
61
+ * <p>A conflict occurred. This exception occurs when the same resource is being modified by
62
+ * concurrent requests.</p>
62
63
  *
63
64
  * @throws {@link InternalServerException} (server fault)
64
65
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -27,11 +27,9 @@ declare const SendCisSessionTelemetryCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>
31
- * Sends a CIS session telemetry.
32
- * This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service.
33
- * The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
34
- * </p>
30
+ * <p> Sends a CIS session telemetry. This API is used by the Amazon Inspector SSM plugin to
31
+ * communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls
32
+ * this API to start a CIS scan session for the scan ID supplied by the service. </p>
35
33
  * @example
36
34
  * Use a bare-bones client and the command you need to make an API call.
37
35
  * ```javascript
@@ -63,9 +61,12 @@ declare const SendCisSessionTelemetryCommand_base: {
63
61
  *
64
62
  * @throws {@link AccessDeniedException} (client fault)
65
63
  * <p>You do not have sufficient access to perform this action.</p>
64
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
65
+ * unsupported Amazon Web Services Region. </p>
66
66
  *
67
67
  * @throws {@link ConflictException} (client fault)
68
- * <p>A conflict occurred.</p>
68
+ * <p>A conflict occurred. This exception occurs when the same resource is being modified by
69
+ * concurrent requests.</p>
69
70
  *
70
71
  * @throws {@link InternalServerException} (server fault)
71
72
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -27,11 +27,9 @@ declare const StartCisSessionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>
31
- * Starts a CIS session.
32
- * This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service.
33
- * The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
34
- * </p>
30
+ * <p> Starts a CIS session. This API is used by the Amazon Inspector SSM plugin to
31
+ * communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls
32
+ * this API to start a CIS scan session for the scan ID supplied by the service. </p>
35
33
  * @example
36
34
  * Use a bare-bones client and the command you need to make an API call.
37
35
  * ```javascript
@@ -58,9 +56,12 @@ declare const StartCisSessionCommand_base: {
58
56
  *
59
57
  * @throws {@link AccessDeniedException} (client fault)
60
58
  * <p>You do not have sufficient access to perform this action.</p>
59
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
60
+ * unsupported Amazon Web Services Region. </p>
61
61
  *
62
62
  * @throws {@link ConflictException} (client fault)
63
- * <p>A conflict occurred.</p>
63
+ * <p>A conflict occurred. This exception occurs when the same resource is being modified by
64
+ * concurrent requests.</p>
64
65
  *
65
66
  * @throws {@link InternalServerException} (server fault)
66
67
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -0,0 +1,99 @@
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 { StartCodeSecurityScanRequest, StartCodeSecurityScanResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartCodeSecurityScanCommand}.
14
+ */
15
+ export interface StartCodeSecurityScanCommandInput extends StartCodeSecurityScanRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartCodeSecurityScanCommand}.
21
+ */
22
+ export interface StartCodeSecurityScanCommandOutput extends StartCodeSecurityScanResponse, __MetadataBearer {
23
+ }
24
+ declare const StartCodeSecurityScanCommand_base: {
25
+ new (input: StartCodeSecurityScanCommandInput): import("@smithy/smithy-client").CommandImpl<StartCodeSecurityScanCommandInput, StartCodeSecurityScanCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: StartCodeSecurityScanCommandInput): import("@smithy/smithy-client").CommandImpl<StartCodeSecurityScanCommandInput, StartCodeSecurityScanCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Initiates a code security scan on a specified repository.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { Inspector2Client, StartCodeSecurityScanCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
35
+ * // const { Inspector2Client, StartCodeSecurityScanCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
36
+ * const client = new Inspector2Client(config);
37
+ * const input = { // StartCodeSecurityScanRequest
38
+ * clientToken: "STRING_VALUE",
39
+ * resource: { // CodeSecurityResource Union: only one key present
40
+ * projectId: "STRING_VALUE",
41
+ * },
42
+ * };
43
+ * const command = new StartCodeSecurityScanCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // StartCodeSecurityScanResponse
46
+ * // scanId: "STRING_VALUE",
47
+ * // status: "IN_PROGRESS" || "SUCCESSFUL" || "FAILED" || "SKIPPED",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param StartCodeSecurityScanCommandInput - {@link StartCodeSecurityScanCommandInput}
53
+ * @returns {@link StartCodeSecurityScanCommandOutput}
54
+ * @see {@link StartCodeSecurityScanCommandInput} for command's `input` shape.
55
+ * @see {@link StartCodeSecurityScanCommandOutput} 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
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
61
+ * unsupported Amazon Web Services Region. </p>
62
+ *
63
+ * @throws {@link ConflictException} (client fault)
64
+ * <p>A conflict occurred. This exception occurs when the same resource is being modified by
65
+ * concurrent requests.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
72
+ * correctly.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>The limit on the number of requests per second was exceeded.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>The request has failed validation due to missing required fields or having invalid
79
+ * inputs.</p>
80
+ *
81
+ * @throws {@link Inspector2ServiceException}
82
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class StartCodeSecurityScanCommand extends StartCodeSecurityScanCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: StartCodeSecurityScanRequest;
92
+ output: StartCodeSecurityScanResponse;
93
+ };
94
+ sdk: {
95
+ input: StartCodeSecurityScanCommandInput;
96
+ output: StartCodeSecurityScanCommandOutput;
97
+ };
98
+ };
99
+ }
@@ -27,11 +27,9 @@ declare const StopCisSessionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>
31
- * Stops a CIS session.
32
- * This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service.
33
- * The Amazon Inspector SSM plugin calls this API to stop a CIS scan session for the scan ID supplied by the service.
34
- * </p>
30
+ * <p> Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to
31
+ * communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls
32
+ * this API to stop a CIS scan session for the scan ID supplied by the service. </p>
35
33
  * @example
36
34
  * Use a bare-bones client and the command you need to make an API call.
37
35
  * ```javascript
@@ -77,9 +75,12 @@ declare const StopCisSessionCommand_base: {
77
75
  *
78
76
  * @throws {@link AccessDeniedException} (client fault)
79
77
  * <p>You do not have sufficient access to perform this action.</p>
78
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
79
+ * unsupported Amazon Web Services Region. </p>
80
80
  *
81
81
  * @throws {@link ConflictException} (client fault)
82
- * <p>A conflict occurred.</p>
82
+ * <p>A conflict occurred. This exception occurs when the same resource is being modified by
83
+ * concurrent requests.</p>
83
84
  *
84
85
  * @throws {@link InternalServerException} (server fault)
85
86
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -59,7 +59,8 @@ declare const TagResourceCommand_base: {
59
59
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
60
60
  *
61
61
  * @throws {@link ResourceNotFoundException} (client fault)
62
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
62
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
63
+ * correctly.</p>
63
64
  *
64
65
  * @throws {@link ThrottlingException} (client fault)
65
66
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -56,7 +56,8 @@ declare const UntagResourceCommand_base: {
56
56
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
57
57
  *
58
58
  * @throws {@link ResourceNotFoundException} (client fault)
59
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
59
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
60
+ * correctly.</p>
60
61
  *
61
62
  * @throws {@link ThrottlingException} (client fault)
62
63
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -90,12 +90,15 @@ declare const UpdateCisScanConfigurationCommand_base: {
90
90
  *
91
91
  * @throws {@link AccessDeniedException} (client fault)
92
92
  * <p>You do not have sufficient access to perform this action.</p>
93
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
94
+ * unsupported Amazon Web Services Region. </p>
93
95
  *
94
96
  * @throws {@link InternalServerException} (server fault)
95
97
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
96
98
  *
97
99
  * @throws {@link ResourceNotFoundException} (client fault)
98
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
100
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
101
+ * correctly.</p>
99
102
  *
100
103
  * @throws {@link ThrottlingException} (client fault)
101
104
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -0,0 +1,109 @@
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 { UpdateCodeSecurityIntegrationRequest, UpdateCodeSecurityIntegrationResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateCodeSecurityIntegrationCommand}.
14
+ */
15
+ export interface UpdateCodeSecurityIntegrationCommandInput extends UpdateCodeSecurityIntegrationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateCodeSecurityIntegrationCommand}.
21
+ */
22
+ export interface UpdateCodeSecurityIntegrationCommandOutput extends UpdateCodeSecurityIntegrationResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateCodeSecurityIntegrationCommand_base: {
25
+ new (input: UpdateCodeSecurityIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCodeSecurityIntegrationCommandInput, UpdateCodeSecurityIntegrationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateCodeSecurityIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCodeSecurityIntegrationCommandInput, UpdateCodeSecurityIntegrationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing code security integration.</p>
31
+ * <p>After calling the <code>CreateCodeSecurityIntegration</code> operation, you complete
32
+ * authentication and authorization with your provider. Next you call the
33
+ * <code>UpdateCodeSecurityIntegration</code> operation to provide the <code>details</code>
34
+ * to complete the integration setup</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { Inspector2Client, UpdateCodeSecurityIntegrationCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
39
+ * // const { Inspector2Client, UpdateCodeSecurityIntegrationCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
40
+ * const client = new Inspector2Client(config);
41
+ * const input = { // UpdateCodeSecurityIntegrationRequest
42
+ * integrationArn: "STRING_VALUE", // required
43
+ * details: { // UpdateIntegrationDetails Union: only one key present
44
+ * gitlabSelfManaged: { // UpdateGitLabSelfManagedIntegrationDetail
45
+ * authCode: "STRING_VALUE", // required
46
+ * },
47
+ * github: { // UpdateGitHubIntegrationDetail
48
+ * code: "STRING_VALUE", // required
49
+ * installationId: "STRING_VALUE", // required
50
+ * },
51
+ * },
52
+ * };
53
+ * const command = new UpdateCodeSecurityIntegrationCommand(input);
54
+ * const response = await client.send(command);
55
+ * // { // UpdateCodeSecurityIntegrationResponse
56
+ * // integrationArn: "STRING_VALUE", // required
57
+ * // status: "PENDING" || "IN_PROGRESS" || "ACTIVE" || "INACTIVE" || "DISABLING", // required
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param UpdateCodeSecurityIntegrationCommandInput - {@link UpdateCodeSecurityIntegrationCommandInput}
63
+ * @returns {@link UpdateCodeSecurityIntegrationCommandOutput}
64
+ * @see {@link UpdateCodeSecurityIntegrationCommandInput} for command's `input` shape.
65
+ * @see {@link UpdateCodeSecurityIntegrationCommandOutput} for command's `response` shape.
66
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You do not have sufficient access to perform this action.</p>
70
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
71
+ * unsupported Amazon Web Services Region. </p>
72
+ *
73
+ * @throws {@link ConflictException} (client fault)
74
+ * <p>A conflict occurred. This exception occurs when the same resource is being modified by
75
+ * concurrent requests.</p>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
82
+ * correctly.</p>
83
+ *
84
+ * @throws {@link ThrottlingException} (client fault)
85
+ * <p>The limit on the number of requests per second was exceeded.</p>
86
+ *
87
+ * @throws {@link ValidationException} (client fault)
88
+ * <p>The request has failed validation due to missing required fields or having invalid
89
+ * inputs.</p>
90
+ *
91
+ * @throws {@link Inspector2ServiceException}
92
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
93
+ *
94
+ *
95
+ * @public
96
+ */
97
+ export declare class UpdateCodeSecurityIntegrationCommand extends UpdateCodeSecurityIntegrationCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: UpdateCodeSecurityIntegrationRequest;
102
+ output: UpdateCodeSecurityIntegrationResponse;
103
+ };
104
+ sdk: {
105
+ input: UpdateCodeSecurityIntegrationCommandInput;
106
+ output: UpdateCodeSecurityIntegrationCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -0,0 +1,109 @@
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 { UpdateCodeSecurityScanConfigurationRequest, UpdateCodeSecurityScanConfigurationResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateCodeSecurityScanConfigurationCommand}.
14
+ */
15
+ export interface UpdateCodeSecurityScanConfigurationCommandInput extends UpdateCodeSecurityScanConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateCodeSecurityScanConfigurationCommand}.
21
+ */
22
+ export interface UpdateCodeSecurityScanConfigurationCommandOutput extends UpdateCodeSecurityScanConfigurationResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateCodeSecurityScanConfigurationCommand_base: {
25
+ new (input: UpdateCodeSecurityScanConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCodeSecurityScanConfigurationCommandInput, UpdateCodeSecurityScanConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateCodeSecurityScanConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCodeSecurityScanConfigurationCommandInput, UpdateCodeSecurityScanConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing code security scan configuration.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { Inspector2Client, UpdateCodeSecurityScanConfigurationCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
35
+ * // const { Inspector2Client, UpdateCodeSecurityScanConfigurationCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
36
+ * const client = new Inspector2Client(config);
37
+ * const input = { // UpdateCodeSecurityScanConfigurationRequest
38
+ * scanConfigurationArn: "STRING_VALUE", // required
39
+ * configuration: { // CodeSecurityScanConfiguration
40
+ * periodicScanConfiguration: { // PeriodicScanConfiguration
41
+ * frequency: "WEEKLY" || "MONTHLY" || "NEVER",
42
+ * frequencyExpression: "STRING_VALUE",
43
+ * },
44
+ * continuousIntegrationScanConfiguration: { // ContinuousIntegrationScanConfiguration
45
+ * supportedEvents: [ // ContinuousIntegrationScanSupportedEvents // required
46
+ * "PULL_REQUEST" || "PUSH",
47
+ * ],
48
+ * },
49
+ * ruleSetCategories: [ // RuleSetCategories // required
50
+ * "SAST" || "IAC" || "SCA",
51
+ * ],
52
+ * },
53
+ * };
54
+ * const command = new UpdateCodeSecurityScanConfigurationCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // UpdateCodeSecurityScanConfigurationResponse
57
+ * // scanConfigurationArn: "STRING_VALUE",
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param UpdateCodeSecurityScanConfigurationCommandInput - {@link UpdateCodeSecurityScanConfigurationCommandInput}
63
+ * @returns {@link UpdateCodeSecurityScanConfigurationCommandOutput}
64
+ * @see {@link UpdateCodeSecurityScanConfigurationCommandInput} for command's `input` shape.
65
+ * @see {@link UpdateCodeSecurityScanConfigurationCommandOutput} for command's `response` shape.
66
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You do not have sufficient access to perform this action.</p>
70
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
71
+ * unsupported Amazon Web Services Region. </p>
72
+ *
73
+ * @throws {@link ConflictException} (client fault)
74
+ * <p>A conflict occurred. This exception occurs when the same resource is being modified by
75
+ * concurrent requests.</p>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
82
+ * correctly.</p>
83
+ *
84
+ * @throws {@link ThrottlingException} (client fault)
85
+ * <p>The limit on the number of requests per second was exceeded.</p>
86
+ *
87
+ * @throws {@link ValidationException} (client fault)
88
+ * <p>The request has failed validation due to missing required fields or having invalid
89
+ * inputs.</p>
90
+ *
91
+ * @throws {@link Inspector2ServiceException}
92
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
93
+ *
94
+ *
95
+ * @public
96
+ */
97
+ export declare class UpdateCodeSecurityScanConfigurationCommand extends UpdateCodeSecurityScanConfigurationCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: UpdateCodeSecurityScanConfigurationRequest;
102
+ output: UpdateCodeSecurityScanConfigurationResponse;
103
+ };
104
+ sdk: {
105
+ input: UpdateCodeSecurityScanConfigurationCommandInput;
106
+ output: UpdateCodeSecurityScanConfigurationCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -27,7 +27,9 @@ declare const UpdateConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.</p>
30
+ * <p>Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector
31
+ * delegated administrator this updates the setting for all accounts you manage. Member
32
+ * accounts in an organization cannot update this setting.</p>
31
33
  * @example
32
34
  * Use a bare-bones client and the command you need to make an API call.
33
35
  * ```javascript
@@ -58,6 +60,8 @@ declare const UpdateConfigurationCommand_base: {
58
60
  *
59
61
  * @throws {@link AccessDeniedException} (client fault)
60
62
  * <p>You do not have sufficient access to perform this action.</p>
63
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
64
+ * unsupported Amazon Web Services Region. </p>
61
65
  *
62
66
  * @throws {@link InternalServerException} (server fault)
63
67
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -27,7 +27,8 @@ declare const UpdateEc2DeepInspectionConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account. </p>
30
+ * <p>Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.
31
+ * </p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -63,6 +64,8 @@ declare const UpdateEc2DeepInspectionConfigurationCommand_base: {
63
64
  *
64
65
  * @throws {@link AccessDeniedException} (client fault)
65
66
  * <p>You do not have sufficient access to perform this action.</p>
67
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
68
+ * unsupported Amazon Web Services Region. </p>
66
69
  *
67
70
  * @throws {@link InternalServerException} (server fault)
68
71
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -27,7 +27,8 @@ declare const UpdateEncryptionKeyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates an encryption key. A <code>ResourceNotFoundException</code> means that an Amazon Web Services owned key is being used for encryption.</p>
30
+ * <p>Updates an encryption key. A <code>ResourceNotFoundException</code> means that an
31
+ * Amazon Web Services owned key is being used for encryption.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -53,12 +54,15 @@ declare const UpdateEncryptionKeyCommand_base: {
53
54
  *
54
55
  * @throws {@link AccessDeniedException} (client fault)
55
56
  * <p>You do not have sufficient access to perform this action.</p>
57
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
58
+ * unsupported Amazon Web Services Region. </p>
56
59
  *
57
60
  * @throws {@link InternalServerException} (server fault)
58
61
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
59
62
  *
60
63
  * @throws {@link ResourceNotFoundException} (client fault)
61
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
64
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
65
+ * correctly.</p>
62
66
  *
63
67
  * @throws {@link ThrottlingException} (client fault)
64
68
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -172,6 +172,8 @@ declare const UpdateFilterCommand_base: {
172
172
  * lowerInclusive: Number("double"),
173
173
  * },
174
174
  * ],
175
+ * codeRepositoryProjectName: "<StringFilterList>",
176
+ * codeRepositoryProviderType: "<StringFilterList>",
175
177
  * },
176
178
  * name: "STRING_VALUE",
177
179
  * filterArn: "STRING_VALUE", // required
@@ -193,12 +195,15 @@ declare const UpdateFilterCommand_base: {
193
195
  *
194
196
  * @throws {@link AccessDeniedException} (client fault)
195
197
  * <p>You do not have sufficient access to perform this action.</p>
198
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
199
+ * unsupported Amazon Web Services Region. </p>
196
200
  *
197
201
  * @throws {@link InternalServerException} (server fault)
198
202
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
199
203
  *
200
204
  * @throws {@link ResourceNotFoundException} (client fault)
201
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
205
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
206
+ * correctly.</p>
202
207
  *
203
208
  * @throws {@link ThrottlingException} (client fault)
204
209
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -27,7 +27,8 @@ declare const UpdateOrgEc2DeepInspectionConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an Amazon Inspector delegated administrator to use this API.</p>
30
+ * <p>Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an
31
+ * Amazon Inspector delegated administrator to use this API.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -53,6 +54,8 @@ declare const UpdateOrgEc2DeepInspectionConfigurationCommand_base: {
53
54
  *
54
55
  * @throws {@link AccessDeniedException} (client fault)
55
56
  * <p>You do not have sufficient access to perform this action.</p>
57
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
58
+ * unsupported Amazon Web Services Region. </p>
56
59
  *
57
60
  * @throws {@link InternalServerException} (server fault)
58
61
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>