@aws-sdk/client-inspector2 3.828.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 (141) 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/endpoint/EndpointParameters.d.ts +7 -7
  102. package/dist-types/models/models_0.d.ts +2059 -1859
  103. package/dist-types/models/models_1.d.ts +1582 -49
  104. package/dist-types/protocols/Aws_restJson1.d.ts +135 -0
  105. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  106. package/dist-types/runtimeConfig.native.d.ts +2 -2
  107. package/dist-types/ts3.4/Inspector2.d.ts +299 -0
  108. package/dist-types/ts3.4/Inspector2Client.d.ts +90 -0
  109. package/dist-types/ts3.4/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  110. package/dist-types/ts3.4/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  111. package/dist-types/ts3.4/commands/CreateCodeSecurityIntegrationCommand.d.ts +51 -0
  112. package/dist-types/ts3.4/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  113. package/dist-types/ts3.4/commands/DeleteCodeSecurityIntegrationCommand.d.ts +51 -0
  114. package/dist-types/ts3.4/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +51 -0
  115. package/dist-types/ts3.4/commands/GetCisScanReportCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/GetCisScanResultDetailsCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/GetClustersForImageCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/GetCodeSecurityIntegrationCommand.d.ts +51 -0
  119. package/dist-types/ts3.4/commands/GetCodeSecurityScanCommand.d.ts +51 -0
  120. package/dist-types/ts3.4/commands/GetCodeSecurityScanConfigurationCommand.d.ts +51 -0
  121. package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/GetDelegatedAdminAccountCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/GetFindingsReportStatusCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +4 -2
  128. package/dist-types/ts3.4/commands/ListCodeSecurityIntegrationsCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +51 -0
  131. package/dist-types/ts3.4/commands/StartCodeSecurityScanCommand.d.ts +51 -0
  132. package/dist-types/ts3.4/commands/UpdateCodeSecurityIntegrationCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +51 -0
  134. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  135. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  136. package/dist-types/ts3.4/models/models_0.d.ts +420 -328
  137. package/dist-types/ts3.4/models/models_1.d.ts +445 -6
  138. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +180 -0
  139. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  140. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  141. package/package.json +2 -2
@@ -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 { GetFindingsReportStatusRequest, GetFindingsReportStatusResponse } from "../models/models_0";
4
+ import { GetFindingsReportStatusRequest, GetFindingsReportStatusResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -184,6 +184,8 @@ declare const GetFindingsReportStatusCommand_base: {
184
184
  * // lowerInclusive: Number("double"),
185
185
  * // },
186
186
  * // ],
187
+ * // codeRepositoryProjectName: "<StringFilterList>",
188
+ * // codeRepositoryProviderType: "<StringFilterList>",
187
189
  * // },
188
190
  * // };
189
191
  *
@@ -197,12 +199,15 @@ declare const GetFindingsReportStatusCommand_base: {
197
199
  *
198
200
  * @throws {@link AccessDeniedException} (client fault)
199
201
  * <p>You do not have sufficient access to perform this action.</p>
202
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
203
+ * unsupported Amazon Web Services Region. </p>
200
204
  *
201
205
  * @throws {@link InternalServerException} (server fault)
202
206
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
203
207
  *
204
208
  * @throws {@link ResourceNotFoundException} (client fault)
205
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
209
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
210
+ * correctly.</p>
206
211
  *
207
212
  * @throws {@link ThrottlingException} (client fault)
208
213
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -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 { GetMemberRequest, GetMemberResponse } from "../models/models_0";
4
+ import { GetMemberRequest, GetMemberResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -58,12 +58,15 @@ declare const GetMemberCommand_base: {
58
58
  *
59
59
  * @throws {@link AccessDeniedException} (client fault)
60
60
  * <p>You do not have sufficient access to perform this action.</p>
61
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
62
+ * unsupported Amazon Web Services Region. </p>
61
63
  *
62
64
  * @throws {@link InternalServerException} (server fault)
63
65
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
64
66
  *
65
67
  * @throws {@link ResourceNotFoundException} (client fault)
66
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
68
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
69
+ * correctly.</p>
67
70
  *
68
71
  * @throws {@link ThrottlingException} (client fault)
69
72
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -1,8 +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 { GetSbomExportRequest } from "../models/models_0";
5
- import { GetSbomExportResponse } from "../models/models_1";
4
+ import { GetSbomExportRequest, GetSbomExportResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -110,12 +109,15 @@ declare const GetSbomExportCommand_base: {
110
109
  *
111
110
  * @throws {@link AccessDeniedException} (client fault)
112
111
  * <p>You do not have sufficient access to perform this action.</p>
112
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
113
+ * unsupported Amazon Web Services Region. </p>
113
114
  *
114
115
  * @throws {@link InternalServerException} (server fault)
115
116
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
116
117
  *
117
118
  * @throws {@link ResourceNotFoundException} (client fault)
118
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
119
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
120
+ * correctly.</p>
119
121
  *
120
122
  * @throws {@link ThrottlingException} (client fault)
121
123
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -61,6 +61,8 @@ declare const ListAccountPermissionsCommand_base: {
61
61
  *
62
62
  * @throws {@link AccessDeniedException} (client fault)
63
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>
64
66
  *
65
67
  * @throws {@link InternalServerException} (server fault)
66
68
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -123,6 +123,8 @@ declare const ListCisScanConfigurationsCommand_base: {
123
123
  *
124
124
  * @throws {@link AccessDeniedException} (client fault)
125
125
  * <p>You do not have sufficient access to perform this action.</p>
126
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
127
+ * unsupported Amazon Web Services Region. </p>
126
128
  *
127
129
  * @throws {@link InternalServerException} (server fault)
128
130
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -111,6 +111,8 @@ declare const ListCisScanResultsAggregatedByChecksCommand_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>
@@ -134,6 +134,8 @@ declare const ListCisScanResultsAggregatedByTargetResourceCommand_base: {
134
134
  *
135
135
  * @throws {@link AccessDeniedException} (client fault)
136
136
  * <p>You do not have sufficient access to perform this action.</p>
137
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
138
+ * unsupported Amazon Web Services Region. </p>
137
139
  *
138
140
  * @throws {@link InternalServerException} (server fault)
139
141
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -140,6 +140,8 @@ declare const ListCisScansCommand_base: {
140
140
  *
141
141
  * @throws {@link AccessDeniedException} (client fault)
142
142
  * <p>You do not have sufficient access to perform this action.</p>
143
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
144
+ * unsupported Amazon Web Services Region. </p>
143
145
  *
144
146
  * @throws {@link InternalServerException} (server fault)
145
147
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -0,0 +1,102 @@
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 { ListCodeSecurityIntegrationsRequest, ListCodeSecurityIntegrationsResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListCodeSecurityIntegrationsCommand}.
14
+ */
15
+ export interface ListCodeSecurityIntegrationsCommandInput extends ListCodeSecurityIntegrationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListCodeSecurityIntegrationsCommand}.
21
+ */
22
+ export interface ListCodeSecurityIntegrationsCommandOutput extends ListCodeSecurityIntegrationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListCodeSecurityIntegrationsCommand_base: {
25
+ new (input: ListCodeSecurityIntegrationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCodeSecurityIntegrationsCommandInput, ListCodeSecurityIntegrationsCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListCodeSecurityIntegrationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListCodeSecurityIntegrationsCommandInput, ListCodeSecurityIntegrationsCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all code security integrations in your account.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { Inspector2Client, ListCodeSecurityIntegrationsCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
35
+ * // const { Inspector2Client, ListCodeSecurityIntegrationsCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
36
+ * const client = new Inspector2Client(config);
37
+ * const input = { // ListCodeSecurityIntegrationsRequest
38
+ * nextToken: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * };
41
+ * const command = new ListCodeSecurityIntegrationsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListCodeSecurityIntegrationsResponse
44
+ * // integrations: [ // IntegrationSummaries
45
+ * // { // CodeSecurityIntegrationSummary
46
+ * // integrationArn: "STRING_VALUE", // required
47
+ * // name: "STRING_VALUE", // required
48
+ * // type: "GITLAB_SELF_MANAGED" || "GITHUB", // required
49
+ * // status: "PENDING" || "IN_PROGRESS" || "ACTIVE" || "INACTIVE" || "DISABLING", // required
50
+ * // statusReason: "STRING_VALUE", // required
51
+ * // createdOn: new Date("TIMESTAMP"), // required
52
+ * // lastUpdateOn: new Date("TIMESTAMP"), // required
53
+ * // tags: { // TagMap
54
+ * // "<keys>": "STRING_VALUE",
55
+ * // },
56
+ * // },
57
+ * // ],
58
+ * // nextToken: "STRING_VALUE",
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param ListCodeSecurityIntegrationsCommandInput - {@link ListCodeSecurityIntegrationsCommandInput}
64
+ * @returns {@link ListCodeSecurityIntegrationsCommandOutput}
65
+ * @see {@link ListCodeSecurityIntegrationsCommandInput} for command's `input` shape.
66
+ * @see {@link ListCodeSecurityIntegrationsCommandOutput} for command's `response` shape.
67
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
68
+ *
69
+ * @throws {@link AccessDeniedException} (client fault)
70
+ * <p>You do not have sufficient access to perform this action.</p>
71
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
72
+ * unsupported Amazon Web Services Region. </p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
76
+ *
77
+ * @throws {@link ThrottlingException} (client fault)
78
+ * <p>The limit on the number of requests per second was exceeded.</p>
79
+ *
80
+ * @throws {@link ValidationException} (client fault)
81
+ * <p>The request has failed validation due to missing required fields or having invalid
82
+ * inputs.</p>
83
+ *
84
+ * @throws {@link Inspector2ServiceException}
85
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
86
+ *
87
+ *
88
+ * @public
89
+ */
90
+ export declare class ListCodeSecurityIntegrationsCommand extends ListCodeSecurityIntegrationsCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: ListCodeSecurityIntegrationsRequest;
95
+ output: ListCodeSecurityIntegrationsResponse;
96
+ };
97
+ sdk: {
98
+ input: ListCodeSecurityIntegrationsCommandInput;
99
+ output: ListCodeSecurityIntegrationsCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -0,0 +1,101 @@
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 { ListCodeSecurityScanConfigurationAssociationsRequest, ListCodeSecurityScanConfigurationAssociationsResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListCodeSecurityScanConfigurationAssociationsCommand}.
14
+ */
15
+ export interface ListCodeSecurityScanConfigurationAssociationsCommandInput extends ListCodeSecurityScanConfigurationAssociationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListCodeSecurityScanConfigurationAssociationsCommand}.
21
+ */
22
+ export interface ListCodeSecurityScanConfigurationAssociationsCommandOutput extends ListCodeSecurityScanConfigurationAssociationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListCodeSecurityScanConfigurationAssociationsCommand_base: {
25
+ new (input: ListCodeSecurityScanConfigurationAssociationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCodeSecurityScanConfigurationAssociationsCommandInput, ListCodeSecurityScanConfigurationAssociationsCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListCodeSecurityScanConfigurationAssociationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCodeSecurityScanConfigurationAssociationsCommandInput, ListCodeSecurityScanConfigurationAssociationsCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists the associations between code repositories and Amazon Inspector code security scan
31
+ * configurations.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { Inspector2Client, ListCodeSecurityScanConfigurationAssociationsCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
36
+ * // const { Inspector2Client, ListCodeSecurityScanConfigurationAssociationsCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
37
+ * const client = new Inspector2Client(config);
38
+ * const input = { // ListCodeSecurityScanConfigurationAssociationsRequest
39
+ * scanConfigurationArn: "STRING_VALUE", // required
40
+ * nextToken: "STRING_VALUE",
41
+ * maxResults: Number("int"),
42
+ * };
43
+ * const command = new ListCodeSecurityScanConfigurationAssociationsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListCodeSecurityScanConfigurationAssociationsResponse
46
+ * // associations: [ // CodeSecurityScanConfigurationAssociationSummaries
47
+ * // { // CodeSecurityScanConfigurationAssociationSummary
48
+ * // resource: { // CodeSecurityResource Union: only one key present
49
+ * // projectId: "STRING_VALUE",
50
+ * // },
51
+ * // },
52
+ * // ],
53
+ * // nextToken: "STRING_VALUE",
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param ListCodeSecurityScanConfigurationAssociationsCommandInput - {@link ListCodeSecurityScanConfigurationAssociationsCommandInput}
59
+ * @returns {@link ListCodeSecurityScanConfigurationAssociationsCommandOutput}
60
+ * @see {@link ListCodeSecurityScanConfigurationAssociationsCommandInput} for command's `input` shape.
61
+ * @see {@link ListCodeSecurityScanConfigurationAssociationsCommandOutput} for command's `response` shape.
62
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <p>You do not have sufficient access to perform this action.</p>
66
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
67
+ * unsupported Amazon Web Services Region. </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 ResourceNotFoundException} (client fault)
73
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
74
+ * correctly.</p>
75
+ *
76
+ * @throws {@link ThrottlingException} (client fault)
77
+ * <p>The limit on the number of requests per second was exceeded.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>The request has failed validation due to missing required fields or having invalid
81
+ * inputs.</p>
82
+ *
83
+ * @throws {@link Inspector2ServiceException}
84
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
85
+ *
86
+ *
87
+ * @public
88
+ */
89
+ export declare class ListCodeSecurityScanConfigurationAssociationsCommand extends ListCodeSecurityScanConfigurationAssociationsCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: ListCodeSecurityScanConfigurationAssociationsRequest;
94
+ output: ListCodeSecurityScanConfigurationAssociationsResponse;
95
+ };
96
+ sdk: {
97
+ input: ListCodeSecurityScanConfigurationAssociationsCommandInput;
98
+ output: ListCodeSecurityScanConfigurationAssociationsCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -0,0 +1,113 @@
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 { ListCodeSecurityScanConfigurationsRequest, ListCodeSecurityScanConfigurationsResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListCodeSecurityScanConfigurationsCommand}.
14
+ */
15
+ export interface ListCodeSecurityScanConfigurationsCommandInput extends ListCodeSecurityScanConfigurationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListCodeSecurityScanConfigurationsCommand}.
21
+ */
22
+ export interface ListCodeSecurityScanConfigurationsCommandOutput extends ListCodeSecurityScanConfigurationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListCodeSecurityScanConfigurationsCommand_base: {
25
+ new (input: ListCodeSecurityScanConfigurationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCodeSecurityScanConfigurationsCommandInput, ListCodeSecurityScanConfigurationsCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListCodeSecurityScanConfigurationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListCodeSecurityScanConfigurationsCommandInput, ListCodeSecurityScanConfigurationsCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all code security scan configurations in your account.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { Inspector2Client, ListCodeSecurityScanConfigurationsCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
35
+ * // const { Inspector2Client, ListCodeSecurityScanConfigurationsCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
36
+ * const client = new Inspector2Client(config);
37
+ * const input = { // ListCodeSecurityScanConfigurationsRequest
38
+ * nextToken: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * };
41
+ * const command = new ListCodeSecurityScanConfigurationsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListCodeSecurityScanConfigurationsResponse
44
+ * // configurations: [ // CodeSecurityScanConfigurationSummaries
45
+ * // { // CodeSecurityScanConfigurationSummary
46
+ * // scanConfigurationArn: "STRING_VALUE", // required
47
+ * // name: "STRING_VALUE", // required
48
+ * // ownerAccountId: "STRING_VALUE", // required
49
+ * // periodicScanFrequency: "WEEKLY" || "MONTHLY" || "NEVER",
50
+ * // frequencyExpression: "STRING_VALUE",
51
+ * // continuousIntegrationScanSupportedEvents: [ // ContinuousIntegrationScanSupportedEvents
52
+ * // "PULL_REQUEST" || "PUSH",
53
+ * // ],
54
+ * // ruleSetCategories: [ // RuleSetCategories // required
55
+ * // "SAST" || "IAC" || "SCA",
56
+ * // ],
57
+ * // scopeSettings: { // ScopeSettings
58
+ * // projectSelectionScope: "ALL",
59
+ * // },
60
+ * // tags: { // TagMap
61
+ * // "<keys>": "STRING_VALUE",
62
+ * // },
63
+ * // },
64
+ * // ],
65
+ * // nextToken: "STRING_VALUE",
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param ListCodeSecurityScanConfigurationsCommandInput - {@link ListCodeSecurityScanConfigurationsCommandInput}
71
+ * @returns {@link ListCodeSecurityScanConfigurationsCommandOutput}
72
+ * @see {@link ListCodeSecurityScanConfigurationsCommandInput} for command's `input` shape.
73
+ * @see {@link ListCodeSecurityScanConfigurationsCommandOutput} for command's `response` shape.
74
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
75
+ *
76
+ * @throws {@link AccessDeniedException} (client fault)
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
+ *
81
+ * @throws {@link InternalServerException} (server fault)
82
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
83
+ *
84
+ * @throws {@link ResourceNotFoundException} (client fault)
85
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
86
+ * correctly.</p>
87
+ *
88
+ * @throws {@link ThrottlingException} (client fault)
89
+ * <p>The limit on the number of requests per second was exceeded.</p>
90
+ *
91
+ * @throws {@link ValidationException} (client fault)
92
+ * <p>The request has failed validation due to missing required fields or having invalid
93
+ * inputs.</p>
94
+ *
95
+ * @throws {@link Inspector2ServiceException}
96
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
97
+ *
98
+ *
99
+ * @public
100
+ */
101
+ export declare class ListCodeSecurityScanConfigurationsCommand extends ListCodeSecurityScanConfigurationsCommand_base {
102
+ /** @internal type navigation helper, not in runtime. */
103
+ protected static __types: {
104
+ api: {
105
+ input: ListCodeSecurityScanConfigurationsRequest;
106
+ output: ListCodeSecurityScanConfigurationsResponse;
107
+ };
108
+ sdk: {
109
+ input: ListCodeSecurityScanConfigurationsCommandInput;
110
+ output: ListCodeSecurityScanConfigurationsCommandOutput;
111
+ };
112
+ };
113
+ }
@@ -112,6 +112,10 @@ declare const ListCoverageCommand_base: {
112
112
  * lowerInclusive: Number("long"),
113
113
  * },
114
114
  * ],
115
+ * codeRepositoryProjectName: "<CoverageStringFilterList>",
116
+ * codeRepositoryProviderType: "<CoverageStringFilterList>",
117
+ * codeRepositoryProviderTypeVisibility: "<CoverageStringFilterList>",
118
+ * lastScannedCommitId: "<CoverageStringFilterList>",
115
119
  * },
116
120
  * };
117
121
  * const command = new ListCoverageCommand(input);
@@ -158,6 +162,39 @@ declare const ListCoverageCommand_base: {
158
162
  * // functionName: "STRING_VALUE",
159
163
  * // runtime: "STRING_VALUE",
160
164
  * // },
165
+ * // codeRepository: { // CodeRepositoryMetadata
166
+ * // projectName: "STRING_VALUE", // required
167
+ * // integrationArn: "STRING_VALUE",
168
+ * // providerType: "STRING_VALUE", // required
169
+ * // providerTypeVisibility: "STRING_VALUE", // required
170
+ * // lastScannedCommitId: "STRING_VALUE",
171
+ * // scanConfiguration: { // ProjectCodeSecurityScanConfiguration
172
+ * // periodicScanConfigurations: [ // ProjectPeriodicScanConfigurationList
173
+ * // { // ProjectPeriodicScanConfiguration
174
+ * // frequencyExpression: "STRING_VALUE",
175
+ * // ruleSetCategories: [ // RuleSetCategories
176
+ * // "SAST" || "IAC" || "SCA",
177
+ * // ],
178
+ * // },
179
+ * // ],
180
+ * // continuousIntegrationScanConfigurations: [ // ProjectContinuousIntegrationScanConfigurationList
181
+ * // { // ProjectContinuousIntegrationScanConfiguration
182
+ * // supportedEvent: "PULL_REQUEST" || "PUSH",
183
+ * // ruleSetCategories: [
184
+ * // "SAST" || "IAC" || "SCA",
185
+ * // ],
186
+ * // },
187
+ * // ],
188
+ * // },
189
+ * // onDemandScan: { // CodeRepositoryOnDemandScan
190
+ * // lastScannedCommitId: "STRING_VALUE",
191
+ * // lastScanAt: new Date("TIMESTAMP"),
192
+ * // scanStatus: {
193
+ * // statusCode: "STRING_VALUE", // required
194
+ * // reason: "STRING_VALUE", // required
195
+ * // },
196
+ * // },
197
+ * // },
161
198
  * // },
162
199
  * // lastScannedAt: new Date("TIMESTAMP"),
163
200
  * // scanMode: "STRING_VALUE",
@@ -110,6 +110,10 @@ declare const ListCoverageStatisticsCommand_base: {
110
110
  * lowerInclusive: Number("long"),
111
111
  * },
112
112
  * ],
113
+ * codeRepositoryProjectName: "<CoverageStringFilterList>",
114
+ * codeRepositoryProviderType: "<CoverageStringFilterList>",
115
+ * codeRepositoryProviderTypeVisibility: "<CoverageStringFilterList>",
116
+ * lastScannedCommitId: "<CoverageStringFilterList>",
113
117
  * },
114
118
  * groupBy: "STRING_VALUE",
115
119
  * nextToken: "STRING_VALUE",
@@ -27,8 +27,7 @@ declare const ListDelegatedAdminAccountsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Lists information about the Amazon Inspector delegated administrator of your
31
- * organization.</p>
30
+ * <p>Lists information about the Amazon Inspector delegated administrator of your organization.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -61,6 +60,8 @@ declare const ListDelegatedAdminAccountsCommand_base: {
61
60
  *
62
61
  * @throws {@link AccessDeniedException} (client fault)
63
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>
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>
@@ -185,6 +185,8 @@ declare const ListFiltersCommand_base: {
185
185
  * // lowerInclusive: Number("double"),
186
186
  * // },
187
187
  * // ],
188
+ * // codeRepositoryProjectName: "<StringFilterList>",
189
+ * // codeRepositoryProviderType: "<StringFilterList>",
188
190
  * // },
189
191
  * // action: "STRING_VALUE", // required
190
192
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -209,6 +211,8 @@ declare const ListFiltersCommand_base: {
209
211
  *
210
212
  * @throws {@link AccessDeniedException} (client fault)
211
213
  * <p>You do not have sufficient access to perform this action.</p>
214
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
215
+ * unsupported Amazon Web Services Region. </p>
212
216
  *
213
217
  * @throws {@link InternalServerException} (server fault)
214
218
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -163,6 +163,13 @@ declare const ListFindingAggregationsCommand_base: {
163
163
  * sortOrder: "STRING_VALUE",
164
164
  * sortBy: "STRING_VALUE",
165
165
  * },
166
+ * codeRepositoryAggregation: { // CodeRepositoryAggregation
167
+ * projectNames: "<StringFilterList>",
168
+ * providerTypes: "<StringFilterList>",
169
+ * sortOrder: "STRING_VALUE",
170
+ * sortBy: "STRING_VALUE",
171
+ * resourceIds: "<StringFilterList>",
172
+ * },
166
173
  * },
167
174
  * };
168
175
  * const command = new ListFindingAggregationsCommand(input);
@@ -280,6 +287,15 @@ declare const ListFindingAggregationsCommand_base: {
280
287
  * // severityCounts: "<SeverityCounts>",
281
288
  * // lastModifiedAt: new Date("TIMESTAMP"),
282
289
  * // },
290
+ * // codeRepositoryAggregation: { // CodeRepositoryAggregationResponse
291
+ * // projectNames: "STRING_VALUE", // required
292
+ * // providerType: "STRING_VALUE",
293
+ * // severityCounts: "<SeverityCounts>",
294
+ * // exploitAvailableActiveFindingsCount: Number("long"),
295
+ * // fixAvailableActiveFindingsCount: Number("long"),
296
+ * // accountId: "STRING_VALUE",
297
+ * // resourceId: "STRING_VALUE",
298
+ * // },
283
299
  * // },
284
300
  * // ],
285
301
  * // nextToken: "STRING_VALUE",
@@ -172,6 +172,8 @@ declare const ListFindingsCommand_base: {
172
172
  * lowerInclusive: Number("double"),
173
173
  * },
174
174
  * ],
175
+ * codeRepositoryProjectName: "<StringFilterList>",
176
+ * codeRepositoryProviderType: "<StringFilterList>",
175
177
  * },
176
178
  * sortCriteria: { // SortCriteria
177
179
  * field: "STRING_VALUE", // required
@@ -264,6 +266,11 @@ declare const ListFindingsCommand_base: {
264
266
  * // ],
265
267
  * // lastModifiedAt: new Date("TIMESTAMP"),
266
268
  * // },
269
+ * // codeRepository: { // CodeRepositoryDetails
270
+ * // projectName: "STRING_VALUE",
271
+ * // integrationArn: "STRING_VALUE",
272
+ * // providerType: "STRING_VALUE",
273
+ * // },
267
274
  * // },
268
275
  * // },
269
276
  * // ],
@@ -64,6 +64,8 @@ declare const ListMembersCommand_base: {
64
64
  *
65
65
  * @throws {@link AccessDeniedException} (client fault)
66
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>
67
69
  *
68
70
  * @throws {@link InternalServerException} (server fault)
69
71
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
@@ -57,7 +57,8 @@ declare const ListTagsForResourceCommand_base: {
57
57
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
58
58
  *
59
59
  * @throws {@link ResourceNotFoundException} (client fault)
60
- * <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
60
+ * <p>The operation tried to access an invalid resource. Make sure the resource is specified
61
+ * correctly.</p>
61
62
  *
62
63
  * @throws {@link ThrottlingException} (client fault)
63
64
  * <p>The limit on the number of requests per second was exceeded.</p>
@@ -70,6 +70,8 @@ declare const ListUsageTotalsCommand_base: {
70
70
  *
71
71
  * @throws {@link AccessDeniedException} (client fault)
72
72
  * <p>You do not have sufficient access to perform this action.</p>
73
+ * <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
74
+ * unsupported Amazon Web Services Region. </p>
73
75
  *
74
76
  * @throws {@link InternalServerException} (server fault)
75
77
  * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>