@aws-sdk/client-continuum 0.0.0-stage → 3.1157.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 (202) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +412 -2
  3. package/dist-cjs/index.js +2581 -0
  4. package/dist-es/Continuum.js +95 -0
  5. package/dist-es/ContinuumClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/AssociateCollectorCommand.js +4 -0
  10. package/dist-es/commands/CreateCodeFindingCommand.js +4 -0
  11. package/dist-es/commands/CreateCodeScanCommand.js +4 -0
  12. package/dist-es/commands/CreateCollectorCommand.js +4 -0
  13. package/dist-es/commands/CreateEnvironmentCommand.js +4 -0
  14. package/dist-es/commands/CreateIntegrationCommand.js +4 -0
  15. package/dist-es/commands/DeleteCollectorCommand.js +4 -0
  16. package/dist-es/commands/DeleteEnvironmentCommand.js +4 -0
  17. package/dist-es/commands/DeleteIntegrationCommand.js +4 -0
  18. package/dist-es/commands/DisassociateCollectorCommand.js +4 -0
  19. package/dist-es/commands/GetCodeFindingCommand.js +4 -0
  20. package/dist-es/commands/GetCodeIssueArtifactCommand.js +4 -0
  21. package/dist-es/commands/GetCodeIssueCommand.js +4 -0
  22. package/dist-es/commands/GetCodeScanCommand.js +4 -0
  23. package/dist-es/commands/GetCollectorCommand.js +4 -0
  24. package/dist-es/commands/GetCollectorDataAccessAuthorizationCommand.js +4 -0
  25. package/dist-es/commands/GetEnvironmentCommand.js +4 -0
  26. package/dist-es/commands/GetIntegrationCommand.js +4 -0
  27. package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  28. package/dist-es/commands/ListAssociatedCollectorsCommand.js +4 -0
  29. package/dist-es/commands/ListAssociatedEnvironmentsCommand.js +4 -0
  30. package/dist-es/commands/ListCodeFindingsCommand.js +4 -0
  31. package/dist-es/commands/ListCodeIssueArtifactsCommand.js +4 -0
  32. package/dist-es/commands/ListCodeIssuesCommand.js +4 -0
  33. package/dist-es/commands/ListCodeScansCommand.js +4 -0
  34. package/dist-es/commands/ListCollectorsCommand.js +4 -0
  35. package/dist-es/commands/ListEnvironmentsCommand.js +4 -0
  36. package/dist-es/commands/ListIntegrationsCommand.js +4 -0
  37. package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  38. package/dist-es/commands/StartIntegrationAuthorizationCommand.js +4 -0
  39. package/dist-es/commands/UpdateCollectorCommand.js +4 -0
  40. package/dist-es/commands/UpdateEnvironmentCommand.js +4 -0
  41. package/dist-es/commands/UpdateIntegrationCommand.js +4 -0
  42. package/dist-es/commands/index.js +33 -0
  43. package/dist-es/endpoint/EndpointParameters.js +11 -0
  44. package/dist-es/endpoint/bdd.js +29 -0
  45. package/dist-es/endpoint/endpointResolver.js +14 -0
  46. package/dist-es/extensionConfiguration.js +1 -0
  47. package/dist-es/index.js +11 -0
  48. package/dist-es/models/ContinuumServiceException.js +9 -0
  49. package/dist-es/models/enums.js +334 -0
  50. package/dist-es/models/errors.js +102 -0
  51. package/dist-es/models/models_0.js +1 -0
  52. package/dist-es/pagination/Interfaces.js +1 -0
  53. package/dist-es/pagination/ListAssociatedCollectorsPaginator.js +4 -0
  54. package/dist-es/pagination/ListAssociatedEnvironmentsPaginator.js +4 -0
  55. package/dist-es/pagination/ListCodeFindingsPaginator.js +4 -0
  56. package/dist-es/pagination/ListCodeIssueArtifactsPaginator.js +4 -0
  57. package/dist-es/pagination/ListCodeIssuesPaginator.js +4 -0
  58. package/dist-es/pagination/ListCodeScansPaginator.js +4 -0
  59. package/dist-es/pagination/ListEnvironmentsPaginator.js +4 -0
  60. package/dist-es/pagination/ListIntegrationsPaginator.js +4 -0
  61. package/dist-es/pagination/index.js +9 -0
  62. package/dist-es/runtimeConfig.browser.js +29 -0
  63. package/dist-es/runtimeConfig.js +43 -0
  64. package/dist-es/runtimeConfig.native.js +9 -0
  65. package/dist-es/runtimeConfig.shared.js +40 -0
  66. package/dist-es/runtimeExtensions.js +9 -0
  67. package/dist-es/schemas/schemas_0.js +1399 -0
  68. package/dist-es/waiters/index.js +1 -0
  69. package/dist-es/waiters/waitForCodeScanSucceeded.js +40 -0
  70. package/dist-types/Continuum.d.ts +315 -0
  71. package/dist-types/ContinuumClient.d.ts +221 -0
  72. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  73. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  74. package/dist-types/commandBuilder.d.ts +18 -0
  75. package/dist-types/commands/AssociateCollectorCommand.d.ts +96 -0
  76. package/dist-types/commands/CreateCodeFindingCommand.d.ts +94 -0
  77. package/dist-types/commands/CreateCodeScanCommand.d.ts +115 -0
  78. package/dist-types/commands/CreateCollectorCommand.d.ts +97 -0
  79. package/dist-types/commands/CreateEnvironmentCommand.d.ts +123 -0
  80. package/dist-types/commands/CreateIntegrationCommand.d.ts +130 -0
  81. package/dist-types/commands/DeleteCollectorCommand.d.ts +86 -0
  82. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +86 -0
  83. package/dist-types/commands/DeleteIntegrationCommand.d.ts +92 -0
  84. package/dist-types/commands/DisassociateCollectorCommand.d.ts +84 -0
  85. package/dist-types/commands/GetCodeFindingCommand.d.ts +228 -0
  86. package/dist-types/commands/GetCodeIssueArtifactCommand.d.ts +285 -0
  87. package/dist-types/commands/GetCodeIssueCommand.d.ts +113 -0
  88. package/dist-types/commands/GetCodeScanCommand.d.ts +94 -0
  89. package/dist-types/commands/GetCollectorCommand.d.ts +92 -0
  90. package/dist-types/commands/GetCollectorDataAccessAuthorizationCommand.d.ts +93 -0
  91. package/dist-types/commands/GetEnvironmentCommand.d.ts +133 -0
  92. package/dist-types/commands/GetIntegrationCommand.d.ts +106 -0
  93. package/dist-types/commands/GetResourcePolicyCommand.d.ts +87 -0
  94. package/dist-types/commands/ListAssociatedCollectorsCommand.d.ts +93 -0
  95. package/dist-types/commands/ListAssociatedEnvironmentsCommand.d.ts +96 -0
  96. package/dist-types/commands/ListCodeFindingsCommand.d.ts +112 -0
  97. package/dist-types/commands/ListCodeIssueArtifactsCommand.d.ts +101 -0
  98. package/dist-types/commands/ListCodeIssuesCommand.d.ts +103 -0
  99. package/dist-types/commands/ListCodeScansCommand.d.ts +98 -0
  100. package/dist-types/commands/ListCollectorsCommand.d.ts +88 -0
  101. package/dist-types/commands/ListEnvironmentsCommand.d.ts +92 -0
  102. package/dist-types/commands/ListIntegrationsCommand.d.ts +109 -0
  103. package/dist-types/commands/PutResourcePolicyCommand.d.ts +92 -0
  104. package/dist-types/commands/StartIntegrationAuthorizationCommand.d.ts +89 -0
  105. package/dist-types/commands/UpdateCollectorCommand.d.ts +103 -0
  106. package/dist-types/commands/UpdateEnvironmentCommand.d.ts +165 -0
  107. package/dist-types/commands/UpdateIntegrationCommand.d.ts +125 -0
  108. package/dist-types/commands/index.d.ts +33 -0
  109. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  110. package/dist-types/endpoint/bdd.d.ts +2 -0
  111. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  112. package/dist-types/extensionConfiguration.d.ts +9 -0
  113. package/dist-types/index.d.ts +20 -0
  114. package/dist-types/models/ContinuumServiceException.d.ts +15 -0
  115. package/dist-types/models/enums.d.ts +1003 -0
  116. package/dist-types/models/errors.d.ts +108 -0
  117. package/dist-types/models/models_0.d.ts +4202 -0
  118. package/dist-types/pagination/Interfaces.d.ts +8 -0
  119. package/dist-types/pagination/ListAssociatedCollectorsPaginator.d.ts +7 -0
  120. package/dist-types/pagination/ListAssociatedEnvironmentsPaginator.d.ts +7 -0
  121. package/dist-types/pagination/ListCodeFindingsPaginator.d.ts +7 -0
  122. package/dist-types/pagination/ListCodeIssueArtifactsPaginator.d.ts +7 -0
  123. package/dist-types/pagination/ListCodeIssuesPaginator.d.ts +7 -0
  124. package/dist-types/pagination/ListCodeScansPaginator.d.ts +7 -0
  125. package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +7 -0
  126. package/dist-types/pagination/ListIntegrationsPaginator.d.ts +7 -0
  127. package/dist-types/pagination/index.d.ts +9 -0
  128. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  129. package/dist-types/runtimeConfig.d.ts +57 -0
  130. package/dist-types/runtimeConfig.native.d.ts +56 -0
  131. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  132. package/dist-types/runtimeExtensions.d.ts +17 -0
  133. package/dist-types/schemas/schemas_0.d.ts +187 -0
  134. package/dist-types/ts3.4/Continuum.d.ts +642 -0
  135. package/dist-types/ts3.4/ContinuumClient.d.ts +296 -0
  136. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  137. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  138. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  139. package/dist-types/ts3.4/commands/AssociateCollectorCommand.d.ts +39 -0
  140. package/dist-types/ts3.4/commands/CreateCodeFindingCommand.d.ts +38 -0
  141. package/dist-types/ts3.4/commands/CreateCodeScanCommand.d.ts +38 -0
  142. package/dist-types/ts3.4/commands/CreateCollectorCommand.d.ts +38 -0
  143. package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +38 -0
  144. package/dist-types/ts3.4/commands/CreateIntegrationCommand.d.ts +38 -0
  145. package/dist-types/ts3.4/commands/DeleteCollectorCommand.d.ts +38 -0
  146. package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +38 -0
  147. package/dist-types/ts3.4/commands/DeleteIntegrationCommand.d.ts +38 -0
  148. package/dist-types/ts3.4/commands/DisassociateCollectorCommand.d.ts +38 -0
  149. package/dist-types/ts3.4/commands/GetCodeFindingCommand.d.ts +38 -0
  150. package/dist-types/ts3.4/commands/GetCodeIssueArtifactCommand.d.ts +39 -0
  151. package/dist-types/ts3.4/commands/GetCodeIssueCommand.d.ts +38 -0
  152. package/dist-types/ts3.4/commands/GetCodeScanCommand.d.ts +38 -0
  153. package/dist-types/ts3.4/commands/GetCollectorCommand.d.ts +38 -0
  154. package/dist-types/ts3.4/commands/GetCollectorDataAccessAuthorizationCommand.d.ts +42 -0
  155. package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +38 -0
  156. package/dist-types/ts3.4/commands/GetIntegrationCommand.d.ts +38 -0
  157. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
  158. package/dist-types/ts3.4/commands/ListAssociatedCollectorsCommand.d.ts +39 -0
  159. package/dist-types/ts3.4/commands/ListAssociatedEnvironmentsCommand.d.ts +42 -0
  160. package/dist-types/ts3.4/commands/ListCodeFindingsCommand.d.ts +38 -0
  161. package/dist-types/ts3.4/commands/ListCodeIssueArtifactsCommand.d.ts +39 -0
  162. package/dist-types/ts3.4/commands/ListCodeIssuesCommand.d.ts +38 -0
  163. package/dist-types/ts3.4/commands/ListCodeScansCommand.d.ts +38 -0
  164. package/dist-types/ts3.4/commands/ListCollectorsCommand.d.ts +38 -0
  165. package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +38 -0
  166. package/dist-types/ts3.4/commands/ListIntegrationsCommand.d.ts +38 -0
  167. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
  168. package/dist-types/ts3.4/commands/StartIntegrationAuthorizationCommand.d.ts +42 -0
  169. package/dist-types/ts3.4/commands/UpdateCollectorCommand.d.ts +38 -0
  170. package/dist-types/ts3.4/commands/UpdateEnvironmentCommand.d.ts +38 -0
  171. package/dist-types/ts3.4/commands/UpdateIntegrationCommand.d.ts +38 -0
  172. package/dist-types/ts3.4/commands/index.d.ts +33 -0
  173. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  174. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  175. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  176. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  177. package/dist-types/ts3.4/index.d.ts +14 -0
  178. package/dist-types/ts3.4/models/ContinuumServiceException.d.ts +10 -0
  179. package/dist-types/ts3.4/models/enums.d.ts +387 -0
  180. package/dist-types/ts3.4/models/errors.d.ts +52 -0
  181. package/dist-types/ts3.4/models/models_0.d.ts +1056 -0
  182. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  183. package/dist-types/ts3.4/pagination/ListAssociatedCollectorsPaginator.d.ts +11 -0
  184. package/dist-types/ts3.4/pagination/ListAssociatedEnvironmentsPaginator.d.ts +11 -0
  185. package/dist-types/ts3.4/pagination/ListCodeFindingsPaginator.d.ts +11 -0
  186. package/dist-types/ts3.4/pagination/ListCodeIssueArtifactsPaginator.d.ts +11 -0
  187. package/dist-types/ts3.4/pagination/ListCodeIssuesPaginator.d.ts +11 -0
  188. package/dist-types/ts3.4/pagination/ListCodeScansPaginator.d.ts +11 -0
  189. package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +11 -0
  190. package/dist-types/ts3.4/pagination/ListIntegrationsPaginator.d.ts +11 -0
  191. package/dist-types/ts3.4/pagination/index.d.ts +9 -0
  192. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  193. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  194. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  195. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  196. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  197. package/dist-types/ts3.4/schemas/schemas_0.d.ts +187 -0
  198. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  199. package/dist-types/ts3.4/waiters/waitForCodeScanSucceeded.d.ts +12 -0
  200. package/dist-types/waiters/index.d.ts +1 -0
  201. package/dist-types/waiters/waitForCodeScanSucceeded.d.ts +15 -0
  202. package/package.json +67 -4
@@ -0,0 +1,1056 @@
1
+ import { DocumentType as __DocumentType } from "@smithy/types";
2
+ import {
3
+ ArtifactHttpMethod,
4
+ CollectorStatus,
5
+ CollectorType,
6
+ DeliveryReason,
7
+ DeliveryStatus,
8
+ EnvironmentStatus,
9
+ ExploitabilityVerdict,
10
+ ExploitEffect,
11
+ FindingBlockingReason,
12
+ FindingDiscardReason,
13
+ FindingOcsfClass,
14
+ FindingSeverityAdjustment,
15
+ FindingSeverityId,
16
+ FindingStatus,
17
+ FindingType,
18
+ FindingVerdict,
19
+ FlowVerdictValue,
20
+ GitLabTargetType,
21
+ GitLabTokenRotation,
22
+ IntegrationAuthorizationProviderType,
23
+ IntegrationType,
24
+ IssueArtifactType,
25
+ IssueEvidenceAvailability,
26
+ IssuePatchDeliveryStatus,
27
+ IssuePhase,
28
+ IssueSeverity,
29
+ IssueStatus,
30
+ IssueStatusReason,
31
+ OAuthCodeChallengeMethod,
32
+ PatchCreationPolicy,
33
+ PatchFormat,
34
+ ScanFailureStage,
35
+ ScanOrigin,
36
+ ScanStatus,
37
+ SignalAccessLevel,
38
+ SignalAttackerGains,
39
+ SignalBand,
40
+ SignalBasis,
41
+ SignalBlastRadius,
42
+ SignalDimension,
43
+ SignalStrength,
44
+ SignalTargetValue,
45
+ ValidationConfidenceTier,
46
+ ValidationTerminalStatus,
47
+ } from "./enums";
48
+ export interface AffectedPackage {
49
+ name: string | undefined;
50
+ version?: string | undefined;
51
+ fixedInVersion?: string | undefined;
52
+ packageManager?: string | undefined;
53
+ }
54
+ export interface AssociateCollectorInput {
55
+ environmentId: string | undefined;
56
+ clientToken?: string | undefined;
57
+ collectorArn: string | undefined;
58
+ collectorDataAccessRoleArn: string | undefined;
59
+ }
60
+ export interface AssociatedCollector {
61
+ collectorId: string | undefined;
62
+ collectorArn: string | undefined;
63
+ }
64
+ export interface AssociateCollectorOutput {
65
+ environmentId: string | undefined;
66
+ environmentArn: string | undefined;
67
+ associatedCollector: AssociatedCollector | undefined;
68
+ }
69
+ export interface ValidationExceptionField {
70
+ path: string | undefined;
71
+ message: string | undefined;
72
+ }
73
+ export interface AssociatedEnvironment {
74
+ environmentId: string | undefined;
75
+ environmentArn: string | undefined;
76
+ name: string | undefined;
77
+ status: EnvironmentStatus | undefined;
78
+ createdAt: Date | undefined;
79
+ }
80
+ export interface CollectorDetails {
81
+ collectorDataAccessRoleArn?: string | undefined;
82
+ }
83
+ export interface EnvironmentNetworkConfiguration {
84
+ allowedDomains?: string[] | undefined;
85
+ }
86
+ export interface EnvironmentConfiguration {
87
+ network?: EnvironmentNetworkConfiguration | undefined;
88
+ scanFrequency?: string | undefined;
89
+ patchCreationPolicy?: PatchCreationPolicy | undefined;
90
+ }
91
+ export interface CodeScanSummary {
92
+ scanRunId: string | undefined;
93
+ status: ScanStatus | undefined;
94
+ origin: ScanOrigin | undefined;
95
+ createdAt: Date | undefined;
96
+ completedAt?: Date | undefined;
97
+ failureMessage?: string | undefined;
98
+ failureStage?: ScanFailureStage | undefined;
99
+ }
100
+ export interface EnvironmentRepositorySource {
101
+ integrationId: string | undefined;
102
+ repository: string | undefined;
103
+ defaultBranch?: string | undefined;
104
+ }
105
+ export interface EnvironmentS3IntegrationSource {
106
+ integrationId: string | undefined;
107
+ codePrefix?: string | undefined;
108
+ contextPrefix?: string | undefined;
109
+ }
110
+ export interface EnvironmentSourceConfiguration {
111
+ s3Sources?: EnvironmentS3IntegrationSource[] | undefined;
112
+ repositorySources?: EnvironmentRepositorySource[] | undefined;
113
+ }
114
+ export interface CodeConfigurationDetails {
115
+ collectorDetails?: CollectorDetails | undefined;
116
+ sourceConfiguration?: EnvironmentSourceConfiguration | undefined;
117
+ environmentConfiguration?: EnvironmentConfiguration | undefined;
118
+ latestScan?: CodeScanSummary | undefined;
119
+ }
120
+ export interface CreateCodeFindingInput {
121
+ environmentId: string | undefined;
122
+ ocsfDocument: __DocumentType | undefined;
123
+ clientToken?: string | undefined;
124
+ }
125
+ export interface CreateCodeFindingOutput {
126
+ findingId: string | undefined;
127
+ findingArn: string | undefined;
128
+ title: string | undefined;
129
+ status: FindingStatus | undefined;
130
+ createdAt: Date | undefined;
131
+ }
132
+ export interface GetCodeFindingInput {
133
+ environmentId: string | undefined;
134
+ findingId: string | undefined;
135
+ }
136
+ export interface FindingComplianceCheck {
137
+ uid?: string | undefined;
138
+ name?: string | undefined;
139
+ description?: string | undefined;
140
+ }
141
+ export interface FindingPosture {
142
+ application?: string | undefined;
143
+ applicationUid?: string | undefined;
144
+ applicationVersion?: string | undefined;
145
+ control?: string | undefined;
146
+ description?: string | undefined;
147
+ standards?: string[] | undefined;
148
+ requirements?: string[] | undefined;
149
+ checks?: FindingComplianceCheck[] | undefined;
150
+ status?: string | undefined;
151
+ statusId?: number | undefined;
152
+ remediation?: string | undefined;
153
+ remediationReferences?: string[] | undefined;
154
+ }
155
+ export interface FindingResource {
156
+ uid?: string | undefined;
157
+ name?: string | undefined;
158
+ type?: string | undefined;
159
+ region?: string | undefined;
160
+ }
161
+ export interface FindingEvidence {
162
+ file?: string | undefined;
163
+ line?: number | undefined;
164
+ snippet?: string | undefined;
165
+ }
166
+ export interface FindingValidation {
167
+ verdict: FindingVerdict | undefined;
168
+ blockingReason?: FindingBlockingReason | undefined;
169
+ confidence?: number | undefined;
170
+ rationale?: string | undefined;
171
+ severityAdjustment?: FindingSeverityAdjustment | undefined;
172
+ mitigatingControls?: string[] | undefined;
173
+ preconditions?: string[] | undefined;
174
+ evidence?: FindingEvidence[] | undefined;
175
+ }
176
+ export interface FindingLocation {
177
+ filePath?: string | undefined;
178
+ startLine?: number | undefined;
179
+ endLine?: number | undefined;
180
+ }
181
+ export interface FindingVulnerability {
182
+ title?: string | undefined;
183
+ description?: string | undefined;
184
+ cweId?: string | undefined;
185
+ cweCaption?: string | undefined;
186
+ additionalCweIds?: string[] | undefined;
187
+ cveId?: string | undefined;
188
+ cvssBaseScore?: number | undefined;
189
+ fixCoverage?: string | undefined;
190
+ fixCoverageId?: number | undefined;
191
+ locations?: FindingLocation[] | undefined;
192
+ remediation?: string | undefined;
193
+ remediationReferences?: string[] | undefined;
194
+ code?: string | undefined;
195
+ details?: string | undefined;
196
+ affectedPackages?: AffectedPackage[] | undefined;
197
+ }
198
+ export interface GetCodeFindingOutput {
199
+ type: FindingType | undefined;
200
+ title: string | undefined;
201
+ severity: FindingSeverityId | undefined;
202
+ summary?: string | undefined;
203
+ detailedDescription?: string | undefined;
204
+ category?: string | undefined;
205
+ subCategory?: string | undefined;
206
+ cweIds?: string[] | undefined;
207
+ owaspCategory?: string | undefined;
208
+ mitigation?: string | undefined;
209
+ filePath?: string | undefined;
210
+ lineNumber?: number | undefined;
211
+ cveId?: string | undefined;
212
+ cvssBaseScore?: number | undefined;
213
+ affectedPackages?: AffectedPackage[] | undefined;
214
+ vulnerableCode?: string | undefined;
215
+ relevantInputs?: string[] | undefined;
216
+ stepsToReproduce?: string[] | undefined;
217
+ validation?: FindingValidation | undefined;
218
+ endLine?: number | undefined;
219
+ mitreTechniques?: string[] | undefined;
220
+ remediationReferences?: string[] | undefined;
221
+ ocsfClass?: FindingOcsfClass | undefined;
222
+ ocsfSchemaVersion?: string | undefined;
223
+ productName?: string | undefined;
224
+ productVendorName?: string | undefined;
225
+ productVersion?: string | undefined;
226
+ sourceStatus?: string | undefined;
227
+ sourceStatusId?: number | undefined;
228
+ firstSeenAt?: Date | undefined;
229
+ findingTypes?: string[] | undefined;
230
+ vulnerabilities?: FindingVulnerability[] | undefined;
231
+ resources?: FindingResource[] | undefined;
232
+ posture?: FindingPosture | undefined;
233
+ findingId: string | undefined;
234
+ findingArn: string | undefined;
235
+ environmentId: string | undefined;
236
+ source: string | undefined;
237
+ sourceFindingId: string | undefined;
238
+ reportedAt: Date | undefined;
239
+ status: FindingStatus | undefined;
240
+ statusUpdatedAt: Date | undefined;
241
+ createdAt: Date | undefined;
242
+ scanRunId?: string | undefined;
243
+ statusMessage?: string | undefined;
244
+ discardReason?: FindingDiscardReason | undefined;
245
+ discardReasoning?: string | undefined;
246
+ duplicateOfIssueId?: string | undefined;
247
+ createdIssueId?: string | undefined;
248
+ completedAt?: Date | undefined;
249
+ }
250
+ export interface ListCodeFindingsInput {
251
+ environmentId: string | undefined;
252
+ maxResults?: number | undefined;
253
+ nextToken?: string | undefined;
254
+ }
255
+ export interface FindingSummary {
256
+ findingId: string | undefined;
257
+ findingArn: string | undefined;
258
+ environmentId: string | undefined;
259
+ source: string | undefined;
260
+ sourceFindingId: string | undefined;
261
+ reportedAt: Date | undefined;
262
+ status: FindingStatus | undefined;
263
+ statusUpdatedAt: Date | undefined;
264
+ createdAt: Date | undefined;
265
+ scanRunId?: string | undefined;
266
+ statusMessage?: string | undefined;
267
+ discardReason?: FindingDiscardReason | undefined;
268
+ discardReasoning?: string | undefined;
269
+ duplicateOfIssueId?: string | undefined;
270
+ createdIssueId?: string | undefined;
271
+ completedAt?: Date | undefined;
272
+ type: FindingType | undefined;
273
+ title: string | undefined;
274
+ severity: FindingSeverityId | undefined;
275
+ category?: string | undefined;
276
+ filePath?: string | undefined;
277
+ }
278
+ export interface ListCodeFindingsOutput {
279
+ items: FindingSummary[] | undefined;
280
+ nextToken?: string | undefined;
281
+ }
282
+ export interface GetCodeIssueInput {
283
+ environmentId: string | undefined;
284
+ issueId: string | undefined;
285
+ }
286
+ export interface IssuePatchDelivery {
287
+ status: IssuePatchDeliveryStatus | undefined;
288
+ patchCount: number | undefined;
289
+ succeededCount: number | undefined;
290
+ failedCount: number | undefined;
291
+ failureReasons?: DeliveryReason[] | undefined;
292
+ }
293
+ export interface GetCodeIssueOutput {
294
+ issueId: string | undefined;
295
+ issueArn: string | undefined;
296
+ name: string | undefined;
297
+ synopsis: string | undefined;
298
+ severity?: IssueSeverity | undefined;
299
+ confidence?: number | undefined;
300
+ severityReasoning?: string | undefined;
301
+ summary?: string | undefined;
302
+ findingIds: string[] | undefined;
303
+ status: IssueStatus | undefined;
304
+ phase?: IssuePhase | undefined;
305
+ statusReason?: IssueStatusReason | undefined;
306
+ statusMessage?: string | undefined;
307
+ statusUpdatedAt: Date | undefined;
308
+ createdAt: Date | undefined;
309
+ updatedAt?: Date | undefined;
310
+ evidenceAvailability?: IssueEvidenceAvailability | undefined;
311
+ patchDelivery?: IssuePatchDelivery | undefined;
312
+ }
313
+ export interface GetCodeIssueArtifactInput {
314
+ environmentId: string | undefined;
315
+ issueId: string | undefined;
316
+ artifactId: string | undefined;
317
+ }
318
+ export interface GitHubTarget {
319
+ owner: string | undefined;
320
+ repository: string | undefined;
321
+ pullRequestNumber?: number | undefined;
322
+ headSha?: string | undefined;
323
+ }
324
+ export interface S3Target {
325
+ bucket: string | undefined;
326
+ key: string | undefined;
327
+ version?: string | undefined;
328
+ }
329
+ export type DestinationTarget =
330
+ | DestinationTarget.GithubMember
331
+ | DestinationTarget.S3Member
332
+ | DestinationTarget.$UnknownMember;
333
+ export declare namespace DestinationTarget {
334
+ interface S3Member {
335
+ s3: S3Target;
336
+ github?: never;
337
+ $unknown?: never;
338
+ }
339
+ interface GithubMember {
340
+ s3?: never;
341
+ github: GitHubTarget;
342
+ $unknown?: never;
343
+ }
344
+ interface $UnknownMember {
345
+ s3?: never;
346
+ github?: never;
347
+ $unknown: [string, any];
348
+ }
349
+ interface Visitor<T> {
350
+ s3: (value: S3Target) => T;
351
+ github: (value: GitHubTarget) => T;
352
+ _: (name: string, value: any) => T;
353
+ }
354
+ }
355
+ export interface PatchDelivery {
356
+ status: DeliveryStatus | undefined;
357
+ target?: DestinationTarget | undefined;
358
+ updatedAt: Date | undefined;
359
+ }
360
+ export interface PatchBody {
361
+ patch: string | undefined;
362
+ format?: PatchFormat | undefined;
363
+ repositoryName?: string | undefined;
364
+ patchSha256: string | undefined;
365
+ sizeBytes: number | undefined;
366
+ delivery?: PatchDelivery | undefined;
367
+ }
368
+ export interface SignalComputation {
369
+ likelihoodBand?: SignalBand | undefined;
370
+ impactBand?: SignalBand | undefined;
371
+ barriers?: number | undefined;
372
+ }
373
+ export interface SignalConfidenceReasoning {
374
+ summary: string | undefined;
375
+ factors?: string[] | undefined;
376
+ }
377
+ export interface SignalExploitability {
378
+ verdict?: ExploitabilityVerdict | undefined;
379
+ reachedCrownJewels?: boolean | undefined;
380
+ highestLayerReached?: number | undefined;
381
+ confidenceTier?: ValidationConfidenceTier | undefined;
382
+ scriptable?: boolean | undefined;
383
+ sourceValidationArtifactId?: string | undefined;
384
+ }
385
+ export interface SignalAttackerGainsDimension {
386
+ value?: SignalAttackerGains | undefined;
387
+ basis?: SignalBasis | undefined;
388
+ reason?: string | undefined;
389
+ missingInfo?: string | undefined;
390
+ }
391
+ export interface SignalBlastRadiusDimension {
392
+ value?: SignalBlastRadius | undefined;
393
+ basis?: SignalBasis | undefined;
394
+ reason?: string | undefined;
395
+ missingInfo?: string | undefined;
396
+ }
397
+ export interface SignalTargetValueDimension {
398
+ value?: SignalTargetValue | undefined;
399
+ basis?: SignalBasis | undefined;
400
+ reason?: string | undefined;
401
+ missingInfo?: string | undefined;
402
+ }
403
+ export interface SignalImpactDimensions {
404
+ attackerGains?: SignalAttackerGainsDimension | undefined;
405
+ blastRadius?: SignalBlastRadiusDimension | undefined;
406
+ targetValue?: SignalTargetValueDimension | undefined;
407
+ }
408
+ export interface SignalAccessPrecondition {
409
+ value?: SignalAccessLevel | undefined;
410
+ basis?: SignalBasis | undefined;
411
+ reason?: string | undefined;
412
+ missingInfo?: string | undefined;
413
+ }
414
+ export interface SignalPrecondition {
415
+ value?: boolean | undefined;
416
+ basis?: SignalBasis | undefined;
417
+ reason?: string | undefined;
418
+ missingInfo?: string | undefined;
419
+ }
420
+ export interface SignalPreconditions {
421
+ reachableFromAttacker?: SignalPrecondition | undefined;
422
+ configurationNeeded?: SignalPrecondition | undefined;
423
+ accessLevel?: SignalAccessPrecondition | undefined;
424
+ userInteractionRequired?: SignalPrecondition | undefined;
425
+ }
426
+ export interface PrevalidationSignal {
427
+ subjectRef?: string | undefined;
428
+ dimension?: SignalDimension | undefined;
429
+ signalStrength?: SignalStrength | undefined;
430
+ conclusion?: string | undefined;
431
+ producerId?: string | undefined;
432
+ producerVersion?: string | undefined;
433
+ confidence?: number | undefined;
434
+ confidenceReasoning?: SignalConfidenceReasoning | undefined;
435
+ computed?: SignalComputation | undefined;
436
+ preconditions?: SignalPreconditions | undefined;
437
+ impactDimensions?: SignalImpactDimensions | undefined;
438
+ exploitability?: SignalExploitability | undefined;
439
+ }
440
+ export interface PrevalidationSignalsBody {
441
+ producedBy?: string | undefined;
442
+ signals?: PrevalidationSignal[] | undefined;
443
+ }
444
+ export interface RemediationProposalBody {
445
+ patch: string | undefined;
446
+ format?: PatchFormat | undefined;
447
+ filename?: string | undefined;
448
+ patchSha256?: string | undefined;
449
+ }
450
+ export interface ValidationProofMaterial {
451
+ content: string | undefined;
452
+ }
453
+ export interface ValidationProofCode {
454
+ proofCode: ValidationProofMaterial[] | undefined;
455
+ }
456
+ export interface ValidationProofOutput {
457
+ consoleOutput: string | undefined;
458
+ }
459
+ export interface ValidationExecutedProof {
460
+ code: ValidationProofCode | undefined;
461
+ output?: ValidationProofOutput | undefined;
462
+ observedEffect?: ExploitEffect | undefined;
463
+ }
464
+ export interface ValidationExploitArtifact {
465
+ payload: string | undefined;
466
+ targetUrl: string | undefined;
467
+ httpMethod: ArtifactHttpMethod | undefined;
468
+ headers?: Record<string, string> | undefined;
469
+ responseStatus?: number | undefined;
470
+ responseSnippet?: string | undefined;
471
+ effect: ExploitEffect | undefined;
472
+ }
473
+ export interface FlowVerdict {
474
+ flowId: string | undefined;
475
+ verdict: FlowVerdictValue | undefined;
476
+ confidence?: number | undefined;
477
+ evidence?: string[] | undefined;
478
+ }
479
+ export interface ReasoningStep {
480
+ step: number | undefined;
481
+ claim: string | undefined;
482
+ source: string | undefined;
483
+ confidence?: number | undefined;
484
+ }
485
+ export interface PerFindingResult {
486
+ findingId: string | undefined;
487
+ exploitable: ExploitabilityVerdict | undefined;
488
+ confidence?: number | undefined;
489
+ flowVerdicts?: FlowVerdict[] | undefined;
490
+ reasoningChain?: ReasoningStep[] | undefined;
491
+ exploitArtifact?: ValidationExploitArtifact | undefined;
492
+ }
493
+ export interface ValidationSourceAnalysis {
494
+ summary: string | undefined;
495
+ inferredEffect?: ExploitEffect | undefined;
496
+ }
497
+ export interface ValidationEvidenceBody {
498
+ exploitable: ExploitabilityVerdict | undefined;
499
+ terminalStatus?: ValidationTerminalStatus | undefined;
500
+ flowVerdicts?: FlowVerdict[] | undefined;
501
+ attackFlowsConfirmed?: string[] | undefined;
502
+ exploitArtifact?: ValidationExploitArtifact | undefined;
503
+ executedProof?: ValidationExecutedProof | undefined;
504
+ sourceAnalysis?: ValidationSourceAnalysis | undefined;
505
+ perFindingResults?: PerFindingResult[] | undefined;
506
+ }
507
+ export type IssueArtifactBody =
508
+ | IssueArtifactBody.PatchMember
509
+ | IssueArtifactBody.PrevalidationSignalsMember
510
+ | IssueArtifactBody.RawMember
511
+ | IssueArtifactBody.RemediationProposalMember
512
+ | IssueArtifactBody.ValidationEvidenceMember
513
+ | IssueArtifactBody.$UnknownMember;
514
+ export declare namespace IssueArtifactBody {
515
+ interface ValidationEvidenceMember {
516
+ validationEvidence: ValidationEvidenceBody;
517
+ prevalidationSignals?: never;
518
+ remediationProposal?: never;
519
+ patch?: never;
520
+ raw?: never;
521
+ $unknown?: never;
522
+ }
523
+ interface PrevalidationSignalsMember {
524
+ validationEvidence?: never;
525
+ prevalidationSignals: PrevalidationSignalsBody;
526
+ remediationProposal?: never;
527
+ patch?: never;
528
+ raw?: never;
529
+ $unknown?: never;
530
+ }
531
+ interface RemediationProposalMember {
532
+ validationEvidence?: never;
533
+ prevalidationSignals?: never;
534
+ remediationProposal: RemediationProposalBody;
535
+ patch?: never;
536
+ raw?: never;
537
+ $unknown?: never;
538
+ }
539
+ interface PatchMember {
540
+ validationEvidence?: never;
541
+ prevalidationSignals?: never;
542
+ remediationProposal?: never;
543
+ patch: PatchBody;
544
+ raw?: never;
545
+ $unknown?: never;
546
+ }
547
+ interface RawMember {
548
+ validationEvidence?: never;
549
+ prevalidationSignals?: never;
550
+ remediationProposal?: never;
551
+ patch?: never;
552
+ raw: string;
553
+ $unknown?: never;
554
+ }
555
+ interface $UnknownMember {
556
+ validationEvidence?: never;
557
+ prevalidationSignals?: never;
558
+ remediationProposal?: never;
559
+ patch?: never;
560
+ raw?: never;
561
+ $unknown: [string, any];
562
+ }
563
+ interface Visitor<T> {
564
+ validationEvidence: (value: ValidationEvidenceBody) => T;
565
+ prevalidationSignals: (value: PrevalidationSignalsBody) => T;
566
+ remediationProposal: (value: RemediationProposalBody) => T;
567
+ patch: (value: PatchBody) => T;
568
+ raw: (value: string) => T;
569
+ _: (name: string, value: any) => T;
570
+ }
571
+ }
572
+ export interface IssueArtifactProducerSummary {
573
+ agent: string | undefined;
574
+ }
575
+ export interface GetCodeIssueArtifactOutput {
576
+ artifactId: string | undefined;
577
+ artifactType: IssueArtifactType | undefined;
578
+ mediaType: string | undefined;
579
+ body: IssueArtifactBody | undefined;
580
+ metadata?: __DocumentType | undefined;
581
+ producer: IssueArtifactProducerSummary | undefined;
582
+ createdAt: Date | undefined;
583
+ }
584
+ export interface ListCodeIssueArtifactsInput {
585
+ environmentId: string | undefined;
586
+ issueId: string | undefined;
587
+ artifactType?: IssueArtifactType | undefined;
588
+ maxResults?: number | undefined;
589
+ nextToken?: string | undefined;
590
+ }
591
+ export interface IssueArtifactItem {
592
+ artifactId: string | undefined;
593
+ artifactType: IssueArtifactType | undefined;
594
+ mediaType: string | undefined;
595
+ producer: IssueArtifactProducerSummary | undefined;
596
+ contentSizeBytes: number | undefined;
597
+ createdAt: Date | undefined;
598
+ }
599
+ export interface ListCodeIssueArtifactsOutput {
600
+ items: IssueArtifactItem[] | undefined;
601
+ nextToken?: string | undefined;
602
+ }
603
+ export interface ListCodeIssuesInput {
604
+ environmentId: string | undefined;
605
+ maxResults?: number | undefined;
606
+ nextToken?: string | undefined;
607
+ }
608
+ export interface IssueSummary {
609
+ issueId: string | undefined;
610
+ issueArn: string | undefined;
611
+ name: string | undefined;
612
+ severity?: IssueSeverity | undefined;
613
+ confidence?: number | undefined;
614
+ status: IssueStatus | undefined;
615
+ phase?: IssuePhase | undefined;
616
+ statusReason?: IssueStatusReason | undefined;
617
+ statusMessage?: string | undefined;
618
+ statusUpdatedAt: Date | undefined;
619
+ createdAt: Date | undefined;
620
+ updatedAt?: Date | undefined;
621
+ }
622
+ export interface ListCodeIssuesOutput {
623
+ items: IssueSummary[] | undefined;
624
+ nextToken?: string | undefined;
625
+ }
626
+ export interface CreateCodeScanInput {
627
+ environmentId: string | undefined;
628
+ clientToken?: string | undefined;
629
+ }
630
+ export interface CreateCodeScanOutput {
631
+ scan: CodeScanSummary | undefined;
632
+ }
633
+ export interface GetCodeScanInput {
634
+ environmentId: string | undefined;
635
+ scanRunId: string | undefined;
636
+ }
637
+ export interface CodeScanData {
638
+ scanRunId: string | undefined;
639
+ status: ScanStatus | undefined;
640
+ origin: ScanOrigin | undefined;
641
+ createdAt: Date | undefined;
642
+ completedAt?: Date | undefined;
643
+ failureMessage?: string | undefined;
644
+ failureStage?: ScanFailureStage | undefined;
645
+ }
646
+ export interface GetCodeScanOutput {
647
+ scan: CodeScanData | undefined;
648
+ }
649
+ export interface ListCodeScansInput {
650
+ environmentId: string | undefined;
651
+ maxResults?: number | undefined;
652
+ nextToken?: string | undefined;
653
+ }
654
+ export interface ListCodeScansOutput {
655
+ scans: CodeScanSummary[] | undefined;
656
+ nextToken?: string | undefined;
657
+ }
658
+ export interface KubernetesClusterRoleConfiguration {
659
+ roleArn: string | undefined;
660
+ externalId?: string | undefined;
661
+ }
662
+ export interface CreateCollectorInput {
663
+ type?: CollectorType | undefined;
664
+ kubernetesClusterRole?: KubernetesClusterRoleConfiguration | undefined;
665
+ clientToken?: string | undefined;
666
+ }
667
+ export interface CreateCollectorOutput {
668
+ collectorId: string | undefined;
669
+ collectorArn: string | undefined;
670
+ type: CollectorType | undefined;
671
+ status: CollectorStatus | undefined;
672
+ createdAt: Date | undefined;
673
+ }
674
+ export interface DeleteCollectorInput {
675
+ collectorId: string | undefined;
676
+ }
677
+ export interface GetCollectorInput {
678
+ collectorId: string | undefined;
679
+ }
680
+ export interface GetCollectorOutput {
681
+ collectorId: string | undefined;
682
+ collectorArn: string | undefined;
683
+ type: CollectorType | undefined;
684
+ status: CollectorStatus | undefined;
685
+ configRecorderArn?: string | undefined;
686
+ kubernetesClusterRoleArn?: string | undefined;
687
+ createdAt: Date | undefined;
688
+ updatedAt: Date | undefined;
689
+ }
690
+ export interface GetCollectorDataAccessAuthorizationInput {
691
+ accountId: string | undefined;
692
+ collectorId: string | undefined;
693
+ environmentArn?: string | undefined;
694
+ }
695
+ export interface GetCollectorDataAccessAuthorizationOutput {}
696
+ export interface ListAssociatedEnvironmentsInput {
697
+ collectorId: string | undefined;
698
+ maxResults?: number | undefined;
699
+ nextToken?: string | undefined;
700
+ }
701
+ export interface ListAssociatedEnvironmentsOutput {
702
+ associatedEnvironments: AssociatedEnvironment[] | undefined;
703
+ nextToken?: string | undefined;
704
+ }
705
+ export interface ListCollectorsInput {}
706
+ export interface CollectorSummary {
707
+ collectorId: string | undefined;
708
+ collectorArn: string | undefined;
709
+ type: CollectorType | undefined;
710
+ status: CollectorStatus | undefined;
711
+ createdAt: Date | undefined;
712
+ }
713
+ export interface ListCollectorsOutput {
714
+ items: CollectorSummary[] | undefined;
715
+ }
716
+ export interface RemoveKubernetesClusterRole {}
717
+ export type KubernetesClusterRoleUpdate =
718
+ | KubernetesClusterRoleUpdate.RemoveMember
719
+ | KubernetesClusterRoleUpdate.SetMember
720
+ | KubernetesClusterRoleUpdate.$UnknownMember;
721
+ export declare namespace KubernetesClusterRoleUpdate {
722
+ interface SetMember {
723
+ set: KubernetesClusterRoleConfiguration;
724
+ remove?: never;
725
+ $unknown?: never;
726
+ }
727
+ interface RemoveMember {
728
+ set?: never;
729
+ remove: RemoveKubernetesClusterRole;
730
+ $unknown?: never;
731
+ }
732
+ interface $UnknownMember {
733
+ set?: never;
734
+ remove?: never;
735
+ $unknown: [string, any];
736
+ }
737
+ interface Visitor<T> {
738
+ set: (value: KubernetesClusterRoleConfiguration) => T;
739
+ remove: (value: RemoveKubernetesClusterRole) => T;
740
+ _: (name: string, value: any) => T;
741
+ }
742
+ }
743
+ export interface UpdateCollectorInput {
744
+ collectorId: string | undefined;
745
+ name?: string | undefined;
746
+ kubernetesClusterRole?: KubernetesClusterRoleUpdate | undefined;
747
+ }
748
+ export interface UpdateCollectorOutput {
749
+ collectorId: string | undefined;
750
+ collectorArn: string | undefined;
751
+ type: CollectorType | undefined;
752
+ status: CollectorStatus | undefined;
753
+ configRecorderArn?: string | undefined;
754
+ kubernetesClusterRoleArn?: string | undefined;
755
+ createdAt: Date | undefined;
756
+ updatedAt: Date | undefined;
757
+ }
758
+ export interface CreateCodeConfiguration {
759
+ sourceConfiguration?: EnvironmentSourceConfiguration | undefined;
760
+ environmentConfiguration?: EnvironmentConfiguration | undefined;
761
+ }
762
+ export interface CreateEnvironmentConfiguration {
763
+ codeConfiguration?: CreateCodeConfiguration | undefined;
764
+ }
765
+ export interface CreateEnvironmentInput {
766
+ name: string | undefined;
767
+ configuration?: CreateEnvironmentConfiguration | undefined;
768
+ }
769
+ export interface CreateEnvironmentOutput {
770
+ environmentId: string | undefined;
771
+ environmentArn: string | undefined;
772
+ status: EnvironmentStatus | undefined;
773
+ createdAt: Date | undefined;
774
+ }
775
+ export interface DeleteEnvironmentInput {
776
+ environmentId: string | undefined;
777
+ }
778
+ export interface DisassociateCollectorInput {
779
+ environmentId: string | undefined;
780
+ collectorArn: string | undefined;
781
+ }
782
+ export interface GetEnvironmentInput {
783
+ environmentId: string | undefined;
784
+ }
785
+ export interface EnvironmentConfigurationDetails {
786
+ codeConfiguration?: CodeConfigurationDetails | undefined;
787
+ }
788
+ export interface GetEnvironmentOutput {
789
+ environmentId: string | undefined;
790
+ environmentArn: string | undefined;
791
+ name: string | undefined;
792
+ status: EnvironmentStatus | undefined;
793
+ statusMessage?: string | undefined;
794
+ statusUpdatedAt: Date | undefined;
795
+ createdAt: Date | undefined;
796
+ updatedAt: Date | undefined;
797
+ configuration: EnvironmentConfigurationDetails | undefined;
798
+ }
799
+ export interface ListAssociatedCollectorsInput {
800
+ environmentId: string | undefined;
801
+ maxResults?: number | undefined;
802
+ nextToken?: string | undefined;
803
+ }
804
+ export interface ListAssociatedCollectorsOutput {
805
+ associatedCollectors: AssociatedCollector[] | undefined;
806
+ nextToken?: string | undefined;
807
+ }
808
+ export interface ListEnvironmentsInput {
809
+ maxResults?: number | undefined;
810
+ nextToken?: string | undefined;
811
+ }
812
+ export interface EnvironmentListEntry {
813
+ environmentId: string | undefined;
814
+ environmentArn: string | undefined;
815
+ name: string | undefined;
816
+ status: EnvironmentStatus | undefined;
817
+ createdAt: Date | undefined;
818
+ }
819
+ export interface ListEnvironmentsOutput {
820
+ items: EnvironmentListEntry[] | undefined;
821
+ nextToken?: string | undefined;
822
+ }
823
+ export interface UpdateCodeConfiguration {
824
+ sourceConfiguration?: EnvironmentSourceConfiguration | undefined;
825
+ environmentConfiguration?: EnvironmentConfiguration | undefined;
826
+ }
827
+ export interface UpdateEnvironmentConfiguration {
828
+ codeConfiguration?: UpdateCodeConfiguration | undefined;
829
+ }
830
+ export interface UpdateEnvironmentInput {
831
+ environmentId: string | undefined;
832
+ name?: string | undefined;
833
+ configuration?: UpdateEnvironmentConfiguration | undefined;
834
+ }
835
+ export interface UpdateEnvironmentOutput {
836
+ environmentId: string | undefined;
837
+ environmentArn: string | undefined;
838
+ name: string | undefined;
839
+ status: EnvironmentStatus | undefined;
840
+ statusMessage?: string | undefined;
841
+ statusUpdatedAt: Date | undefined;
842
+ createdAt: Date | undefined;
843
+ configuration: EnvironmentConfigurationDetails | undefined;
844
+ }
845
+ export interface GetResourcePolicyInput {
846
+ arn: string | undefined;
847
+ }
848
+ export interface GetResourcePolicyOutput {
849
+ arn: string | undefined;
850
+ policy: string | undefined;
851
+ revisionId: string | undefined;
852
+ }
853
+ export interface GitHubAuthorizationConfiguration {
854
+ authorizationCode: string | undefined;
855
+ state: string | undefined;
856
+ redirectUrl?: string | undefined;
857
+ }
858
+ export interface GitHubConfiguration {
859
+ authorization: GitHubAuthorizationConfiguration | undefined;
860
+ organizationName?: string | undefined;
861
+ }
862
+ export interface GitLabConfiguration {
863
+ instanceUrl: string | undefined;
864
+ targetType: GitLabTargetType | undefined;
865
+ targetPath: string | undefined;
866
+ accessToken: string | undefined;
867
+ }
868
+ export interface S3Configuration {
869
+ bucket: string | undefined;
870
+ roleArn: string | undefined;
871
+ externalId: string | undefined;
872
+ }
873
+ export type ProviderConfiguration =
874
+ | ProviderConfiguration.GithubMember
875
+ | ProviderConfiguration.GitlabMember
876
+ | ProviderConfiguration.S3Member
877
+ | ProviderConfiguration.$UnknownMember;
878
+ export declare namespace ProviderConfiguration {
879
+ interface GithubMember {
880
+ github: GitHubConfiguration;
881
+ gitlab?: never;
882
+ s3?: never;
883
+ $unknown?: never;
884
+ }
885
+ interface GitlabMember {
886
+ github?: never;
887
+ gitlab: GitLabConfiguration;
888
+ s3?: never;
889
+ $unknown?: never;
890
+ }
891
+ interface S3Member {
892
+ github?: never;
893
+ gitlab?: never;
894
+ s3: S3Configuration;
895
+ $unknown?: never;
896
+ }
897
+ interface $UnknownMember {
898
+ github?: never;
899
+ gitlab?: never;
900
+ s3?: never;
901
+ $unknown: [string, any];
902
+ }
903
+ interface Visitor<T> {
904
+ github: (value: GitHubConfiguration) => T;
905
+ gitlab: (value: GitLabConfiguration) => T;
906
+ s3: (value: S3Configuration) => T;
907
+ _: (name: string, value: any) => T;
908
+ }
909
+ }
910
+ export interface CreateIntegrationInput {
911
+ clientToken?: string | undefined;
912
+ name: string | undefined;
913
+ providerConfiguration: ProviderConfiguration | undefined;
914
+ }
915
+ export interface CreateIntegrationOutput {
916
+ integrationId: string | undefined;
917
+ integrationArn: string | undefined;
918
+ createdAt: Date | undefined;
919
+ }
920
+ export interface DeleteIntegrationInput {
921
+ integrationId: string | undefined;
922
+ }
923
+ export interface GetIntegrationInput {
924
+ integrationId: string | undefined;
925
+ }
926
+ export interface GitHubDetails {
927
+ organizationName?: string | undefined;
928
+ }
929
+ export interface GitLabDetails {
930
+ instanceUrl: string | undefined;
931
+ targetType: GitLabTargetType | undefined;
932
+ targetPath: string | undefined;
933
+ tokenRotation: GitLabTokenRotation | undefined;
934
+ expiresAt?: Date | undefined;
935
+ }
936
+ export interface S3Details {
937
+ bucket: string | undefined;
938
+ roleArn: string | undefined;
939
+ }
940
+ export type ProviderDetails =
941
+ | ProviderDetails.GithubMember
942
+ | ProviderDetails.GitlabMember
943
+ | ProviderDetails.S3Member
944
+ | ProviderDetails.$UnknownMember;
945
+ export declare namespace ProviderDetails {
946
+ interface GithubMember {
947
+ github: GitHubDetails;
948
+ gitlab?: never;
949
+ s3?: never;
950
+ $unknown?: never;
951
+ }
952
+ interface GitlabMember {
953
+ github?: never;
954
+ gitlab: GitLabDetails;
955
+ s3?: never;
956
+ $unknown?: never;
957
+ }
958
+ interface S3Member {
959
+ github?: never;
960
+ gitlab?: never;
961
+ s3: S3Details;
962
+ $unknown?: never;
963
+ }
964
+ interface $UnknownMember {
965
+ github?: never;
966
+ gitlab?: never;
967
+ s3?: never;
968
+ $unknown: [string, any];
969
+ }
970
+ interface Visitor<T> {
971
+ github: (value: GitHubDetails) => T;
972
+ gitlab: (value: GitLabDetails) => T;
973
+ s3: (value: S3Details) => T;
974
+ _: (name: string, value: any) => T;
975
+ }
976
+ }
977
+ export interface GetIntegrationOutput {
978
+ integrationId: string | undefined;
979
+ integrationArn: string | undefined;
980
+ name: string | undefined;
981
+ integrationType: IntegrationType | undefined;
982
+ providerDetails: ProviderDetails | undefined;
983
+ createdAt: Date | undefined;
984
+ updatedAt: Date | undefined;
985
+ }
986
+ export interface ListIntegrationsInput {
987
+ maxResults?: number | undefined;
988
+ nextToken?: string | undefined;
989
+ }
990
+ export interface IntegrationSummary {
991
+ integrationId: string | undefined;
992
+ integrationArn: string | undefined;
993
+ name: string | undefined;
994
+ integrationType: IntegrationType | undefined;
995
+ providerDetails: ProviderDetails | undefined;
996
+ createdAt: Date | undefined;
997
+ updatedAt: Date | undefined;
998
+ }
999
+ export interface ListIntegrationsOutput {
1000
+ items: IntegrationSummary[] | undefined;
1001
+ nextToken?: string | undefined;
1002
+ }
1003
+ export interface UpdateS3Configuration {
1004
+ roleArn: string | undefined;
1005
+ externalId?: string | undefined;
1006
+ }
1007
+ export type UpdateProviderConfiguration =
1008
+ | UpdateProviderConfiguration.S3Member
1009
+ | UpdateProviderConfiguration.$UnknownMember;
1010
+ export declare namespace UpdateProviderConfiguration {
1011
+ interface S3Member {
1012
+ s3: UpdateS3Configuration;
1013
+ $unknown?: never;
1014
+ }
1015
+ interface $UnknownMember {
1016
+ s3?: never;
1017
+ $unknown: [string, any];
1018
+ }
1019
+ interface Visitor<T> {
1020
+ s3: (value: UpdateS3Configuration) => T;
1021
+ _: (name: string, value: any) => T;
1022
+ }
1023
+ }
1024
+ export interface UpdateIntegrationInput {
1025
+ integrationId: string | undefined;
1026
+ providerConfiguration: UpdateProviderConfiguration | undefined;
1027
+ }
1028
+ export interface UpdateIntegrationOutput {
1029
+ integrationId: string | undefined;
1030
+ integrationArn: string | undefined;
1031
+ name: string | undefined;
1032
+ integrationType: IntegrationType | undefined;
1033
+ providerDetails: ProviderDetails | undefined;
1034
+ createdAt: Date | undefined;
1035
+ updatedAt: Date | undefined;
1036
+ }
1037
+ export interface PutResourcePolicyInput {
1038
+ arn: string | undefined;
1039
+ policy?: string | undefined;
1040
+ expectedRevisionId?: string | undefined;
1041
+ }
1042
+ export interface PutResourcePolicyOutput {
1043
+ arn: string | undefined;
1044
+ policy: string | undefined;
1045
+ revisionId: string | undefined;
1046
+ }
1047
+ export interface StartIntegrationAuthorizationInput {
1048
+ providerType: IntegrationAuthorizationProviderType | undefined;
1049
+ name?: string | undefined;
1050
+ }
1051
+ export interface StartIntegrationAuthorizationOutput {
1052
+ state: string | undefined;
1053
+ codeChallenge: string | undefined;
1054
+ codeChallengeMethod: OAuthCodeChallengeMethod | undefined;
1055
+ expiresAt: Date | undefined;
1056
+ }