@aws-sdk/client-codeguru-security 3.352.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +316 -0
  3. package/dist-cjs/CodeGuruSecurity.js +37 -0
  4. package/dist-cjs/CodeGuruSecurityClient.js +41 -0
  5. package/dist-cjs/commands/BatchGetFindingsCommand.js +46 -0
  6. package/dist-cjs/commands/CreateScanCommand.js +46 -0
  7. package/dist-cjs/commands/CreateUploadUrlCommand.js +47 -0
  8. package/dist-cjs/commands/GetAccountConfigurationCommand.js +46 -0
  9. package/dist-cjs/commands/GetFindingsCommand.js +46 -0
  10. package/dist-cjs/commands/GetMetricsSummaryCommand.js +46 -0
  11. package/dist-cjs/commands/GetScanCommand.js +46 -0
  12. package/dist-cjs/commands/ListFindingsMetricsCommand.js +46 -0
  13. package/dist-cjs/commands/ListScansCommand.js +46 -0
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  15. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  16. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  17. package/dist-cjs/commands/UpdateAccountConfigurationCommand.js +46 -0
  18. package/dist-cjs/commands/index.js +16 -0
  19. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  20. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  21. package/dist-cjs/endpoint/ruleset.js +7 -0
  22. package/dist-cjs/index.js +11 -0
  23. package/dist-cjs/models/CodeGuruSecurityServiceException.js +12 -0
  24. package/dist-cjs/models/index.js +4 -0
  25. package/dist-cjs/models/models_0.js +156 -0
  26. package/dist-cjs/pagination/GetFindingsPaginator.js +29 -0
  27. package/dist-cjs/pagination/Interfaces.js +2 -0
  28. package/dist-cjs/pagination/ListFindingsMetricsPaginator.js +29 -0
  29. package/dist-cjs/pagination/ListScansPaginator.js +29 -0
  30. package/dist-cjs/pagination/index.js +7 -0
  31. package/dist-cjs/protocols/Aws_restJson1.js +1131 -0
  32. package/dist-cjs/runtimeConfig.browser.js +39 -0
  33. package/dist-cjs/runtimeConfig.js +48 -0
  34. package/dist-cjs/runtimeConfig.native.js +15 -0
  35. package/dist-cjs/runtimeConfig.shared.js +21 -0
  36. package/dist-es/CodeGuruSecurity.js +33 -0
  37. package/dist-es/CodeGuruSecurityClient.js +37 -0
  38. package/dist-es/commands/BatchGetFindingsCommand.js +42 -0
  39. package/dist-es/commands/CreateScanCommand.js +42 -0
  40. package/dist-es/commands/CreateUploadUrlCommand.js +43 -0
  41. package/dist-es/commands/GetAccountConfigurationCommand.js +42 -0
  42. package/dist-es/commands/GetFindingsCommand.js +42 -0
  43. package/dist-es/commands/GetMetricsSummaryCommand.js +42 -0
  44. package/dist-es/commands/GetScanCommand.js +42 -0
  45. package/dist-es/commands/ListFindingsMetricsCommand.js +42 -0
  46. package/dist-es/commands/ListScansCommand.js +42 -0
  47. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  48. package/dist-es/commands/TagResourceCommand.js +42 -0
  49. package/dist-es/commands/UntagResourceCommand.js +42 -0
  50. package/dist-es/commands/UpdateAccountConfigurationCommand.js +42 -0
  51. package/dist-es/commands/index.js +13 -0
  52. package/dist-es/endpoint/EndpointParameters.js +8 -0
  53. package/dist-es/endpoint/endpointResolver.js +8 -0
  54. package/dist-es/endpoint/ruleset.js +4 -0
  55. package/dist-es/index.js +6 -0
  56. package/dist-es/models/CodeGuruSecurityServiceException.js +8 -0
  57. package/dist-es/models/index.js +1 -0
  58. package/dist-es/models/models_0.js +146 -0
  59. package/dist-es/pagination/GetFindingsPaginator.js +25 -0
  60. package/dist-es/pagination/Interfaces.js +1 -0
  61. package/dist-es/pagination/ListFindingsMetricsPaginator.js +25 -0
  62. package/dist-es/pagination/ListScansPaginator.js +25 -0
  63. package/dist-es/pagination/index.js +4 -0
  64. package/dist-es/protocols/Aws_restJson1.js +1102 -0
  65. package/dist-es/runtimeConfig.browser.js +34 -0
  66. package/dist-es/runtimeConfig.js +43 -0
  67. package/dist-es/runtimeConfig.native.js +11 -0
  68. package/dist-es/runtimeConfig.shared.js +17 -0
  69. package/dist-types/CodeGuruSecurity.d.ts +108 -0
  70. package/dist-types/CodeGuruSecurityClient.d.ts +182 -0
  71. package/dist-types/commands/BatchGetFindingsCommand.d.ts +154 -0
  72. package/dist-types/commands/CreateScanCommand.d.ts +108 -0
  73. package/dist-types/commands/CreateUploadUrlCommand.d.ts +91 -0
  74. package/dist-types/commands/GetAccountConfigurationCommand.d.ts +85 -0
  75. package/dist-types/commands/GetFindingsCommand.d.ts +153 -0
  76. package/dist-types/commands/GetMetricsSummaryCommand.d.ts +114 -0
  77. package/dist-types/commands/GetScanCommand.d.ts +93 -0
  78. package/dist-types/commands/ListFindingsMetricsCommand.d.ts +121 -0
  79. package/dist-types/commands/ListScansCommand.d.ts +96 -0
  80. package/dist-types/commands/ListTagsForResourceCommand.d.ts +95 -0
  81. package/dist-types/commands/TagResourceCommand.d.ts +94 -0
  82. package/dist-types/commands/UntagResourceCommand.d.ts +94 -0
  83. package/dist-types/commands/UpdateAccountConfigurationCommand.d.ts +92 -0
  84. package/dist-types/commands/index.d.ts +13 -0
  85. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  86. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  87. package/dist-types/endpoint/ruleset.d.ts +2 -0
  88. package/dist-types/index.d.ts +18 -0
  89. package/dist-types/models/CodeGuruSecurityServiceException.d.ts +13 -0
  90. package/dist-types/models/index.d.ts +1 -0
  91. package/dist-types/models/models_0.d.ts +1114 -0
  92. package/dist-types/pagination/GetFindingsPaginator.d.ts +7 -0
  93. package/dist-types/pagination/Interfaces.d.ts +8 -0
  94. package/dist-types/pagination/ListFindingsMetricsPaginator.d.ts +7 -0
  95. package/dist-types/pagination/ListScansPaginator.d.ts +7 -0
  96. package/dist-types/pagination/index.d.ts +4 -0
  97. package/dist-types/protocols/Aws_restJson1.d.ts +119 -0
  98. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  99. package/dist-types/runtimeConfig.d.ts +42 -0
  100. package/dist-types/runtimeConfig.native.d.ts +41 -0
  101. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  102. package/dist-types/ts3.4/CodeGuruSecurity.d.ts +228 -0
  103. package/dist-types/ts3.4/CodeGuruSecurityClient.d.ts +193 -0
  104. package/dist-types/ts3.4/commands/BatchGetFindingsCommand.d.ts +38 -0
  105. package/dist-types/ts3.4/commands/CreateScanCommand.d.ts +35 -0
  106. package/dist-types/ts3.4/commands/CreateUploadUrlCommand.d.ts +38 -0
  107. package/dist-types/ts3.4/commands/GetAccountConfigurationCommand.d.ts +42 -0
  108. package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +35 -0
  109. package/dist-types/ts3.4/commands/GetMetricsSummaryCommand.d.ts +39 -0
  110. package/dist-types/ts3.4/commands/GetScanCommand.d.ts +35 -0
  111. package/dist-types/ts3.4/commands/ListFindingsMetricsCommand.d.ts +39 -0
  112. package/dist-types/ts3.4/commands/ListScansCommand.d.ts +35 -0
  113. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  114. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  115. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  116. package/dist-types/ts3.4/commands/UpdateAccountConfigurationCommand.d.ts +42 -0
  117. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  118. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  119. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  120. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  121. package/dist-types/ts3.4/index.d.ts +6 -0
  122. package/dist-types/ts3.4/models/CodeGuruSecurityServiceException.d.ts +8 -0
  123. package/dist-types/ts3.4/models/index.d.ts +1 -0
  124. package/dist-types/ts3.4/models/models_0.d.ts +340 -0
  125. package/dist-types/ts3.4/pagination/GetFindingsPaginator.d.ts +11 -0
  126. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  127. package/dist-types/ts3.4/pagination/ListFindingsMetricsPaginator.d.ts +11 -0
  128. package/dist-types/ts3.4/pagination/ListScansPaginator.d.ts +11 -0
  129. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  130. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +161 -0
  131. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  132. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  133. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  134. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  135. package/package.json +101 -0
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ CodeGuruSecurityClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CodeGuruSecurityClient";
14
+ import {
15
+ UpdateAccountConfigurationRequest,
16
+ UpdateAccountConfigurationResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface UpdateAccountConfigurationCommandInput
20
+ extends UpdateAccountConfigurationRequest {}
21
+ export interface UpdateAccountConfigurationCommandOutput
22
+ extends UpdateAccountConfigurationResponse,
23
+ __MetadataBearer {}
24
+ export declare class UpdateAccountConfigurationCommand extends $Command<
25
+ UpdateAccountConfigurationCommandInput,
26
+ UpdateAccountConfigurationCommandOutput,
27
+ CodeGuruSecurityClientResolvedConfig
28
+ > {
29
+ readonly input: UpdateAccountConfigurationCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: UpdateAccountConfigurationCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: CodeGuruSecurityClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ UpdateAccountConfigurationCommandInput,
38
+ UpdateAccountConfigurationCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -0,0 +1,13 @@
1
+ export * from "./BatchGetFindingsCommand";
2
+ export * from "./CreateScanCommand";
3
+ export * from "./CreateUploadUrlCommand";
4
+ export * from "./GetAccountConfigurationCommand";
5
+ export * from "./GetFindingsCommand";
6
+ export * from "./GetMetricsSummaryCommand";
7
+ export * from "./GetScanCommand";
8
+ export * from "./ListFindingsMetricsCommand";
9
+ export * from "./ListScansCommand";
10
+ export * from "./ListTagsForResourceCommand";
11
+ export * from "./TagResourceCommand";
12
+ export * from "./UntagResourceCommand";
13
+ export * from "./UpdateAccountConfigurationCommand";
@@ -0,0 +1,32 @@
1
+ import {
2
+ EndpointParameters as __EndpointParameters,
3
+ EndpointV2,
4
+ } from "@aws-sdk/types";
5
+ import { Endpoint, Provider } from "@smithy/types";
6
+ export interface ClientInputEndpointParameters {
7
+ region?: string | Provider<string>;
8
+ useDualstackEndpoint?: boolean | Provider<boolean>;
9
+ useFipsEndpoint?: boolean | Provider<boolean>;
10
+ endpoint?:
11
+ | string
12
+ | Provider<string>
13
+ | Endpoint
14
+ | Provider<Endpoint>
15
+ | EndpointV2
16
+ | Provider<EndpointV2>;
17
+ }
18
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
19
+ defaultSigningName: string;
20
+ };
21
+ export declare const resolveClientEndpointParameters: <T>(
22
+ options: T & ClientInputEndpointParameters
23
+ ) => T &
24
+ ClientInputEndpointParameters & {
25
+ defaultSigningName: string;
26
+ };
27
+ export interface EndpointParameters extends __EndpointParameters {
28
+ Region?: string;
29
+ UseDualStack?: boolean;
30
+ UseFIPS?: boolean;
31
+ Endpoint?: string;
32
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,6 @@
1
+ export * from "./CodeGuruSecurityClient";
2
+ export * from "./CodeGuruSecurity";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ export { CodeGuruSecurityServiceException } from "./models/CodeGuruSecurityServiceException";
@@ -0,0 +1,8 @@
1
+ import {
2
+ ServiceException as __ServiceException,
3
+ ServiceExceptionOptions as __ServiceExceptionOptions,
4
+ } from "@aws-sdk/smithy-client";
5
+ export { __ServiceException, __ServiceExceptionOptions };
6
+ export declare class CodeGuruSecurityServiceException extends __ServiceException {
7
+ constructor(options: __ServiceExceptionOptions);
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,340 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CodeGuruSecurityServiceException as __BaseException } from "./CodeGuruSecurityServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ errorCode: string | undefined;
7
+ resourceId?: string;
8
+ resourceType?: string;
9
+ constructor(
10
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
11
+ );
12
+ }
13
+ export interface FindingMetricsValuePerSeverity {
14
+ info?: number;
15
+ low?: number;
16
+ medium?: number;
17
+ high?: number;
18
+ critical?: number;
19
+ }
20
+ export interface AccountFindingsMetric {
21
+ date?: Date;
22
+ newFindings?: FindingMetricsValuePerSeverity;
23
+ closedFindings?: FindingMetricsValuePerSeverity;
24
+ openFindings?: FindingMetricsValuePerSeverity;
25
+ meanTimeToClose?: FindingMetricsValuePerSeverity;
26
+ }
27
+ export declare const AnalysisType: {
28
+ readonly ALL: "All";
29
+ readonly SECURITY: "Security";
30
+ };
31
+ export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
32
+ export interface FindingIdentifier {
33
+ scanName: string | undefined;
34
+ findingId: string | undefined;
35
+ }
36
+ export interface BatchGetFindingsRequest {
37
+ findingIdentifiers: FindingIdentifier[] | undefined;
38
+ }
39
+ export declare const ErrorCode: {
40
+ readonly DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER";
41
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
42
+ readonly INVALID_FINDING_ID: "INVALID_FINDING_ID";
43
+ readonly INVALID_SCAN_NAME: "INVALID_SCAN_NAME";
44
+ readonly ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST";
45
+ };
46
+ export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
47
+ export interface BatchGetFindingsError {
48
+ scanName: string | undefined;
49
+ findingId: string | undefined;
50
+ errorCode: ErrorCode | string | undefined;
51
+ message: string | undefined;
52
+ }
53
+ export interface Recommendation {
54
+ text?: string;
55
+ url?: string;
56
+ }
57
+ export interface SuggestedFix {
58
+ description?: string;
59
+ code?: string;
60
+ }
61
+ export interface Remediation {
62
+ recommendation?: Recommendation;
63
+ suggestedFixes?: SuggestedFix[];
64
+ }
65
+ export interface Resource {
66
+ id?: string;
67
+ subResourceId?: string;
68
+ }
69
+ export declare const Severity: {
70
+ readonly CRITICAL: "Critical";
71
+ readonly HIGH: "High";
72
+ readonly INFO: "Info";
73
+ readonly LOW: "Low";
74
+ readonly MEDIUM: "Medium";
75
+ };
76
+ export type Severity = (typeof Severity)[keyof typeof Severity];
77
+ export declare const Status: {
78
+ readonly ALL: "All";
79
+ readonly CLOSED: "Closed";
80
+ readonly OPEN: "Open";
81
+ };
82
+ export type Status = (typeof Status)[keyof typeof Status];
83
+ export interface CodeLine {
84
+ number?: number;
85
+ content?: string;
86
+ }
87
+ export interface FilePath {
88
+ name?: string;
89
+ path?: string;
90
+ startLine?: number;
91
+ endLine?: number;
92
+ codeSnippet?: CodeLine[];
93
+ }
94
+ export interface Vulnerability {
95
+ referenceUrls?: string[];
96
+ relatedVulnerabilities?: string[];
97
+ id?: string;
98
+ filePath?: FilePath;
99
+ itemCount?: number;
100
+ }
101
+ export interface Finding {
102
+ createdAt?: Date;
103
+ description?: string;
104
+ generatorId?: string;
105
+ id?: string;
106
+ updatedAt?: Date;
107
+ type?: string;
108
+ status?: Status | string;
109
+ resource?: Resource;
110
+ vulnerability?: Vulnerability;
111
+ severity?: Severity | string;
112
+ remediation?: Remediation;
113
+ title?: string;
114
+ detectorTags?: string[];
115
+ detectorId?: string;
116
+ detectorName?: string;
117
+ ruleId?: string;
118
+ }
119
+ export interface BatchGetFindingsResponse {
120
+ findings: Finding[] | undefined;
121
+ failedFindings: BatchGetFindingsError[] | undefined;
122
+ }
123
+ export declare class InternalServerException extends __BaseException {
124
+ readonly name: "InternalServerException";
125
+ readonly $fault: "server";
126
+ $retryable: {};
127
+ error?: string;
128
+ constructor(
129
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
130
+ );
131
+ }
132
+ export declare class ThrottlingException extends __BaseException {
133
+ readonly name: "ThrottlingException";
134
+ readonly $fault: "client";
135
+ $retryable: {
136
+ throttling: boolean;
137
+ };
138
+ errorCode: string | undefined;
139
+ serviceCode?: string;
140
+ quotaCode?: string;
141
+ constructor(
142
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
143
+ );
144
+ }
145
+ export interface ValidationExceptionField {
146
+ name: string | undefined;
147
+ message: string | undefined;
148
+ }
149
+ export declare const ValidationExceptionReason: {
150
+ readonly CANNOT_PARSE: "cannotParse";
151
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
152
+ readonly LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch";
153
+ readonly OTHER: "other";
154
+ readonly UNKNOWN_OPERATION: "unknownOperation";
155
+ };
156
+ export type ValidationExceptionReason =
157
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
158
+ export declare class ValidationException extends __BaseException {
159
+ readonly name: "ValidationException";
160
+ readonly $fault: "client";
161
+ errorCode: string | undefined;
162
+ reason: ValidationExceptionReason | string | undefined;
163
+ fieldList?: ValidationExceptionField[];
164
+ constructor(
165
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
166
+ );
167
+ }
168
+ export declare class ConflictException extends __BaseException {
169
+ readonly name: "ConflictException";
170
+ readonly $fault: "client";
171
+ errorCode: string | undefined;
172
+ resourceId: string | undefined;
173
+ resourceType: string | undefined;
174
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
175
+ }
176
+ export type ResourceId =
177
+ | ResourceId.CodeArtifactIdMember
178
+ | ResourceId.$UnknownMember;
179
+ export declare namespace ResourceId {
180
+ interface CodeArtifactIdMember {
181
+ codeArtifactId: string;
182
+ $unknown?: never;
183
+ }
184
+ interface $UnknownMember {
185
+ codeArtifactId?: never;
186
+ $unknown: [string, any];
187
+ }
188
+ interface Visitor<T> {
189
+ codeArtifactId: (value: string) => T;
190
+ _: (name: string, value: any) => T;
191
+ }
192
+ const visit: <T>(value: ResourceId, visitor: Visitor<T>) => T;
193
+ }
194
+ export declare const ScanType: {
195
+ readonly EXPRESS: "Express";
196
+ readonly STANDARD: "Standard";
197
+ };
198
+ export type ScanType = (typeof ScanType)[keyof typeof ScanType];
199
+ export interface CreateScanRequest {
200
+ clientToken?: string;
201
+ resourceId: ResourceId | undefined;
202
+ scanName: string | undefined;
203
+ scanType?: ScanType | string;
204
+ analysisType?: AnalysisType | string;
205
+ tags?: Record<string, string>;
206
+ }
207
+ export declare const ScanState: {
208
+ readonly FAILED: "Failed";
209
+ readonly IN_PROGRESS: "InProgress";
210
+ readonly SUCCESSFUL: "Successful";
211
+ };
212
+ export type ScanState = (typeof ScanState)[keyof typeof ScanState];
213
+ export interface CreateScanResponse {
214
+ scanName: string | undefined;
215
+ runId: string | undefined;
216
+ resourceId: ResourceId | undefined;
217
+ scanState: ScanState | string | undefined;
218
+ scanNameArn?: string;
219
+ }
220
+ export declare class ResourceNotFoundException extends __BaseException {
221
+ readonly name: "ResourceNotFoundException";
222
+ readonly $fault: "client";
223
+ errorCode: string | undefined;
224
+ resourceId: string | undefined;
225
+ resourceType: string | undefined;
226
+ constructor(
227
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
228
+ );
229
+ }
230
+ export interface CreateUploadUrlRequest {
231
+ scanName: string | undefined;
232
+ }
233
+ export interface CreateUploadUrlResponse {
234
+ s3Url: string | undefined;
235
+ requestHeaders: Record<string, string> | undefined;
236
+ codeArtifactId: string | undefined;
237
+ }
238
+ export interface GetAccountConfigurationRequest {}
239
+ export interface EncryptionConfig {
240
+ kmsKeyArn?: string;
241
+ }
242
+ export interface GetAccountConfigurationResponse {
243
+ encryptionConfig: EncryptionConfig | undefined;
244
+ }
245
+ export interface GetFindingsRequest {
246
+ scanName: string | undefined;
247
+ nextToken?: string;
248
+ maxResults?: number;
249
+ status?: Status | string;
250
+ }
251
+ export interface GetFindingsResponse {
252
+ findings?: Finding[];
253
+ nextToken?: string;
254
+ }
255
+ export interface GetMetricsSummaryRequest {
256
+ date: Date | undefined;
257
+ }
258
+ export interface CategoryWithFindingNum {
259
+ categoryName?: string;
260
+ findingNumber?: number;
261
+ }
262
+ export interface ScanNameWithFindingNum {
263
+ scanName?: string;
264
+ findingNumber?: number;
265
+ }
266
+ export interface MetricsSummary {
267
+ date?: Date;
268
+ openFindings?: FindingMetricsValuePerSeverity;
269
+ categoriesWithMostFindings?: CategoryWithFindingNum[];
270
+ scansWithMostOpenFindings?: ScanNameWithFindingNum[];
271
+ scansWithMostOpenCriticalFindings?: ScanNameWithFindingNum[];
272
+ }
273
+ export interface GetMetricsSummaryResponse {
274
+ metricsSummary?: MetricsSummary;
275
+ }
276
+ export interface GetScanRequest {
277
+ scanName: string | undefined;
278
+ runId?: string;
279
+ }
280
+ export interface GetScanResponse {
281
+ scanName: string | undefined;
282
+ runId: string | undefined;
283
+ scanState: ScanState | string | undefined;
284
+ createdAt: Date | undefined;
285
+ analysisType: AnalysisType | string | undefined;
286
+ updatedAt?: Date;
287
+ numberOfRevisions?: number;
288
+ scanNameArn?: string;
289
+ }
290
+ export interface ListFindingsMetricsRequest {
291
+ nextToken?: string;
292
+ maxResults?: number;
293
+ startDate: Date | undefined;
294
+ endDate: Date | undefined;
295
+ }
296
+ export interface ListFindingsMetricsResponse {
297
+ findingsMetrics?: AccountFindingsMetric[];
298
+ nextToken?: string;
299
+ }
300
+ export interface ListScansRequest {
301
+ nextToken?: string;
302
+ maxResults?: number;
303
+ }
304
+ export interface ScanSummary {
305
+ scanState: ScanState | string | undefined;
306
+ createdAt: Date | undefined;
307
+ updatedAt?: Date;
308
+ scanName: string | undefined;
309
+ runId: string | undefined;
310
+ scanNameArn?: string;
311
+ }
312
+ export interface ListScansResponse {
313
+ summaries?: ScanSummary[];
314
+ nextToken?: string;
315
+ }
316
+ export interface ListTagsForResourceRequest {
317
+ resourceArn: string | undefined;
318
+ }
319
+ export interface ListTagsForResourceResponse {
320
+ tags?: Record<string, string>;
321
+ }
322
+ export interface TagResourceRequest {
323
+ resourceArn: string | undefined;
324
+ tags: Record<string, string> | undefined;
325
+ }
326
+ export interface TagResourceResponse {}
327
+ export interface UntagResourceRequest {
328
+ resourceArn: string | undefined;
329
+ tagKeys: string[] | undefined;
330
+ }
331
+ export interface UntagResourceResponse {}
332
+ export interface UpdateAccountConfigurationRequest {
333
+ encryptionConfig: EncryptionConfig | undefined;
334
+ }
335
+ export interface UpdateAccountConfigurationResponse {
336
+ encryptionConfig: EncryptionConfig | undefined;
337
+ }
338
+ export declare const CreateUploadUrlResponseFilterSensitiveLog: (
339
+ obj: CreateUploadUrlResponse
340
+ ) => any;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ GetFindingsCommandInput,
4
+ GetFindingsCommandOutput,
5
+ } from "../commands/GetFindingsCommand";
6
+ import { CodeGuruSecurityPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateGetFindings(
8
+ config: CodeGuruSecurityPaginationConfiguration,
9
+ input: GetFindingsCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<GetFindingsCommandOutput>;
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
2
+ import { CodeGuruSecurityClient } from "../CodeGuruSecurityClient";
3
+ export interface CodeGuruSecurityPaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: CodeGuruSecurityClient;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListFindingsMetricsCommandInput,
4
+ ListFindingsMetricsCommandOutput,
5
+ } from "../commands/ListFindingsMetricsCommand";
6
+ import { CodeGuruSecurityPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListFindingsMetrics(
8
+ config: CodeGuruSecurityPaginationConfiguration,
9
+ input: ListFindingsMetricsCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListFindingsMetricsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListScansCommandInput,
4
+ ListScansCommandOutput,
5
+ } from "../commands/ListScansCommand";
6
+ import { CodeGuruSecurityPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListScans(
8
+ config: CodeGuruSecurityPaginationConfiguration,
9
+ input: ListScansCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListScansCommandOutput>;
@@ -0,0 +1,4 @@
1
+ export * from "./GetFindingsPaginator";
2
+ export * from "./Interfaces";
3
+ export * from "./ListFindingsMetricsPaginator";
4
+ export * from "./ListScansPaginator";
@@ -0,0 +1,161 @@
1
+ import {
2
+ HttpRequest as __HttpRequest,
3
+ HttpResponse as __HttpResponse,
4
+ } from "@smithy/protocol-http";
5
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ BatchGetFindingsCommandInput,
8
+ BatchGetFindingsCommandOutput,
9
+ } from "../commands/BatchGetFindingsCommand";
10
+ import {
11
+ CreateScanCommandInput,
12
+ CreateScanCommandOutput,
13
+ } from "../commands/CreateScanCommand";
14
+ import {
15
+ CreateUploadUrlCommandInput,
16
+ CreateUploadUrlCommandOutput,
17
+ } from "../commands/CreateUploadUrlCommand";
18
+ import {
19
+ GetAccountConfigurationCommandInput,
20
+ GetAccountConfigurationCommandOutput,
21
+ } from "../commands/GetAccountConfigurationCommand";
22
+ import {
23
+ GetFindingsCommandInput,
24
+ GetFindingsCommandOutput,
25
+ } from "../commands/GetFindingsCommand";
26
+ import {
27
+ GetMetricsSummaryCommandInput,
28
+ GetMetricsSummaryCommandOutput,
29
+ } from "../commands/GetMetricsSummaryCommand";
30
+ import {
31
+ GetScanCommandInput,
32
+ GetScanCommandOutput,
33
+ } from "../commands/GetScanCommand";
34
+ import {
35
+ ListFindingsMetricsCommandInput,
36
+ ListFindingsMetricsCommandOutput,
37
+ } from "../commands/ListFindingsMetricsCommand";
38
+ import {
39
+ ListScansCommandInput,
40
+ ListScansCommandOutput,
41
+ } from "../commands/ListScansCommand";
42
+ import {
43
+ ListTagsForResourceCommandInput,
44
+ ListTagsForResourceCommandOutput,
45
+ } from "../commands/ListTagsForResourceCommand";
46
+ import {
47
+ TagResourceCommandInput,
48
+ TagResourceCommandOutput,
49
+ } from "../commands/TagResourceCommand";
50
+ import {
51
+ UntagResourceCommandInput,
52
+ UntagResourceCommandOutput,
53
+ } from "../commands/UntagResourceCommand";
54
+ import {
55
+ UpdateAccountConfigurationCommandInput,
56
+ UpdateAccountConfigurationCommandOutput,
57
+ } from "../commands/UpdateAccountConfigurationCommand";
58
+ export declare const se_BatchGetFindingsCommand: (
59
+ input: BatchGetFindingsCommandInput,
60
+ context: __SerdeContext
61
+ ) => Promise<__HttpRequest>;
62
+ export declare const se_CreateScanCommand: (
63
+ input: CreateScanCommandInput,
64
+ context: __SerdeContext
65
+ ) => Promise<__HttpRequest>;
66
+ export declare const se_CreateUploadUrlCommand: (
67
+ input: CreateUploadUrlCommandInput,
68
+ context: __SerdeContext
69
+ ) => Promise<__HttpRequest>;
70
+ export declare const se_GetAccountConfigurationCommand: (
71
+ input: GetAccountConfigurationCommandInput,
72
+ context: __SerdeContext
73
+ ) => Promise<__HttpRequest>;
74
+ export declare const se_GetFindingsCommand: (
75
+ input: GetFindingsCommandInput,
76
+ context: __SerdeContext
77
+ ) => Promise<__HttpRequest>;
78
+ export declare const se_GetMetricsSummaryCommand: (
79
+ input: GetMetricsSummaryCommandInput,
80
+ context: __SerdeContext
81
+ ) => Promise<__HttpRequest>;
82
+ export declare const se_GetScanCommand: (
83
+ input: GetScanCommandInput,
84
+ context: __SerdeContext
85
+ ) => Promise<__HttpRequest>;
86
+ export declare const se_ListFindingsMetricsCommand: (
87
+ input: ListFindingsMetricsCommandInput,
88
+ context: __SerdeContext
89
+ ) => Promise<__HttpRequest>;
90
+ export declare const se_ListScansCommand: (
91
+ input: ListScansCommandInput,
92
+ context: __SerdeContext
93
+ ) => Promise<__HttpRequest>;
94
+ export declare const se_ListTagsForResourceCommand: (
95
+ input: ListTagsForResourceCommandInput,
96
+ context: __SerdeContext
97
+ ) => Promise<__HttpRequest>;
98
+ export declare const se_TagResourceCommand: (
99
+ input: TagResourceCommandInput,
100
+ context: __SerdeContext
101
+ ) => Promise<__HttpRequest>;
102
+ export declare const se_UntagResourceCommand: (
103
+ input: UntagResourceCommandInput,
104
+ context: __SerdeContext
105
+ ) => Promise<__HttpRequest>;
106
+ export declare const se_UpdateAccountConfigurationCommand: (
107
+ input: UpdateAccountConfigurationCommandInput,
108
+ context: __SerdeContext
109
+ ) => Promise<__HttpRequest>;
110
+ export declare const de_BatchGetFindingsCommand: (
111
+ output: __HttpResponse,
112
+ context: __SerdeContext
113
+ ) => Promise<BatchGetFindingsCommandOutput>;
114
+ export declare const de_CreateScanCommand: (
115
+ output: __HttpResponse,
116
+ context: __SerdeContext
117
+ ) => Promise<CreateScanCommandOutput>;
118
+ export declare const de_CreateUploadUrlCommand: (
119
+ output: __HttpResponse,
120
+ context: __SerdeContext
121
+ ) => Promise<CreateUploadUrlCommandOutput>;
122
+ export declare const de_GetAccountConfigurationCommand: (
123
+ output: __HttpResponse,
124
+ context: __SerdeContext
125
+ ) => Promise<GetAccountConfigurationCommandOutput>;
126
+ export declare const de_GetFindingsCommand: (
127
+ output: __HttpResponse,
128
+ context: __SerdeContext
129
+ ) => Promise<GetFindingsCommandOutput>;
130
+ export declare const de_GetMetricsSummaryCommand: (
131
+ output: __HttpResponse,
132
+ context: __SerdeContext
133
+ ) => Promise<GetMetricsSummaryCommandOutput>;
134
+ export declare const de_GetScanCommand: (
135
+ output: __HttpResponse,
136
+ context: __SerdeContext
137
+ ) => Promise<GetScanCommandOutput>;
138
+ export declare const de_ListFindingsMetricsCommand: (
139
+ output: __HttpResponse,
140
+ context: __SerdeContext
141
+ ) => Promise<ListFindingsMetricsCommandOutput>;
142
+ export declare const de_ListScansCommand: (
143
+ output: __HttpResponse,
144
+ context: __SerdeContext
145
+ ) => Promise<ListScansCommandOutput>;
146
+ export declare const de_ListTagsForResourceCommand: (
147
+ output: __HttpResponse,
148
+ context: __SerdeContext
149
+ ) => Promise<ListTagsForResourceCommandOutput>;
150
+ export declare const de_TagResourceCommand: (
151
+ output: __HttpResponse,
152
+ context: __SerdeContext
153
+ ) => Promise<TagResourceCommandOutput>;
154
+ export declare const de_UntagResourceCommand: (
155
+ output: __HttpResponse,
156
+ context: __SerdeContext
157
+ ) => Promise<UntagResourceCommandOutput>;
158
+ export declare const de_UpdateAccountConfigurationCommand: (
159
+ output: __HttpResponse,
160
+ context: __SerdeContext
161
+ ) => Promise<UpdateAccountConfigurationCommandOutput>;