@aws-sdk/client-codeguru-reviewer 3.489.0 → 3.495.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.
- package/dist-cjs/CodeGuruReviewer.js +1 -39
- package/dist-cjs/CodeGuruReviewerClient.js +1 -43
- package/dist-cjs/commands/AssociateRepositoryCommand.js +1 -28
- package/dist-cjs/commands/CreateCodeReviewCommand.js +1 -28
- package/dist-cjs/commands/DescribeCodeReviewCommand.js +1 -28
- package/dist-cjs/commands/DescribeRecommendationFeedbackCommand.js +1 -28
- package/dist-cjs/commands/DescribeRepositoryAssociationCommand.js +1 -28
- package/dist-cjs/commands/DisassociateRepositoryCommand.js +1 -28
- package/dist-cjs/commands/ListCodeReviewsCommand.js +1 -28
- package/dist-cjs/commands/ListRecommendationFeedbackCommand.js +1 -28
- package/dist-cjs/commands/ListRecommendationsCommand.js +1 -28
- package/dist-cjs/commands/ListRepositoryAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutRecommendationFeedbackCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -17
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1838 -12
- package/dist-cjs/models/CodeGuruReviewerServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -168
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCodeReviewsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRecommendationFeedbackPaginator.js +1 -7
- package/dist-cjs/pagination/ListRecommendationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRepositoryAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1077
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -5
- package/dist-cjs/waiters/waitForCodeReviewCompleted.js +1 -54
- package/dist-cjs/waiters/waitForRepositoryAssociationSucceeded.js +1 -54
- package/package.json +41 -41
package/dist-cjs/index.js
CHANGED
|
@@ -1,13 +1,1839 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AnalysisType: () => AnalysisType,
|
|
26
|
+
AssociateRepositoryCommand: () => AssociateRepositoryCommand,
|
|
27
|
+
CodeGuruReviewer: () => CodeGuruReviewer,
|
|
28
|
+
CodeGuruReviewerClient: () => CodeGuruReviewerClient,
|
|
29
|
+
CodeGuruReviewerServiceException: () => CodeGuruReviewerServiceException,
|
|
30
|
+
ConfigFileState: () => ConfigFileState,
|
|
31
|
+
ConflictException: () => ConflictException,
|
|
32
|
+
CreateCodeReviewCommand: () => CreateCodeReviewCommand,
|
|
33
|
+
DescribeCodeReviewCommand: () => DescribeCodeReviewCommand,
|
|
34
|
+
DescribeRecommendationFeedbackCommand: () => DescribeRecommendationFeedbackCommand,
|
|
35
|
+
DescribeRepositoryAssociationCommand: () => DescribeRepositoryAssociationCommand,
|
|
36
|
+
DisassociateRepositoryCommand: () => DisassociateRepositoryCommand,
|
|
37
|
+
EncryptionOption: () => EncryptionOption,
|
|
38
|
+
InternalServerException: () => InternalServerException,
|
|
39
|
+
JobState: () => JobState,
|
|
40
|
+
ListCodeReviewsCommand: () => ListCodeReviewsCommand,
|
|
41
|
+
ListRecommendationFeedbackCommand: () => ListRecommendationFeedbackCommand,
|
|
42
|
+
ListRecommendationsCommand: () => ListRecommendationsCommand,
|
|
43
|
+
ListRepositoryAssociationsCommand: () => ListRepositoryAssociationsCommand,
|
|
44
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
45
|
+
NotFoundException: () => NotFoundException,
|
|
46
|
+
ProviderType: () => ProviderType,
|
|
47
|
+
PutRecommendationFeedbackCommand: () => PutRecommendationFeedbackCommand,
|
|
48
|
+
Reaction: () => Reaction,
|
|
49
|
+
RecommendationCategory: () => RecommendationCategory,
|
|
50
|
+
RepositoryAssociationState: () => RepositoryAssociationState,
|
|
51
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
52
|
+
Severity: () => Severity,
|
|
53
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
54
|
+
ThrottlingException: () => ThrottlingException,
|
|
55
|
+
Type: () => Type,
|
|
56
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
57
|
+
ValidationException: () => ValidationException,
|
|
58
|
+
VendorName: () => VendorName,
|
|
59
|
+
__Client: () => import_smithy_client.Client,
|
|
60
|
+
paginateListCodeReviews: () => paginateListCodeReviews,
|
|
61
|
+
paginateListRecommendationFeedback: () => paginateListRecommendationFeedback,
|
|
62
|
+
paginateListRecommendations: () => paginateListRecommendations,
|
|
63
|
+
paginateListRepositoryAssociations: () => paginateListRepositoryAssociations,
|
|
64
|
+
waitForCodeReviewCompleted: () => waitForCodeReviewCompleted,
|
|
65
|
+
waitForRepositoryAssociationSucceeded: () => waitForRepositoryAssociationSucceeded,
|
|
66
|
+
waitUntilCodeReviewCompleted: () => waitUntilCodeReviewCompleted,
|
|
67
|
+
waitUntilRepositoryAssociationSucceeded: () => waitUntilRepositoryAssociationSucceeded
|
|
68
|
+
});
|
|
69
|
+
module.exports = __toCommonJS(src_exports);
|
|
70
|
+
|
|
71
|
+
// src/CodeGuruReviewerClient.ts
|
|
72
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
73
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
74
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
75
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
76
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
77
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
78
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
79
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
80
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// src/endpoint/EndpointParameters.ts
|
|
84
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
85
|
+
return {
|
|
86
|
+
...options,
|
|
87
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
88
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
89
|
+
defaultSigningName: "codeguru-reviewer"
|
|
90
|
+
};
|
|
91
|
+
}, "resolveClientEndpointParameters");
|
|
92
|
+
var commonParams = {
|
|
93
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
94
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
95
|
+
Region: { type: "builtInParams", name: "region" },
|
|
96
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
// src/CodeGuruReviewerClient.ts
|
|
100
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
101
|
+
|
|
102
|
+
// src/runtimeExtensions.ts
|
|
103
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
104
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
105
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
106
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
107
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
108
|
+
const extensionConfiguration = {
|
|
109
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
110
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
111
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
112
|
+
};
|
|
113
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
114
|
+
return {
|
|
115
|
+
...runtimeConfig,
|
|
116
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
117
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
118
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
119
|
+
};
|
|
120
|
+
}, "resolveRuntimeExtensions");
|
|
121
|
+
|
|
122
|
+
// src/CodeGuruReviewerClient.ts
|
|
123
|
+
var _CodeGuruReviewerClient = class _CodeGuruReviewerClient extends import_smithy_client.Client {
|
|
124
|
+
constructor(...[configuration]) {
|
|
125
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
126
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
127
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
128
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
129
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
130
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
131
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
132
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
133
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
134
|
+
super(_config_8);
|
|
135
|
+
this.config = _config_8;
|
|
136
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
146
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
147
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
148
|
+
*/
|
|
149
|
+
destroy() {
|
|
150
|
+
super.destroy();
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
__name(_CodeGuruReviewerClient, "CodeGuruReviewerClient");
|
|
154
|
+
var CodeGuruReviewerClient = _CodeGuruReviewerClient;
|
|
155
|
+
|
|
156
|
+
// src/CodeGuruReviewer.ts
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
// src/commands/AssociateRepositoryCommand.ts
|
|
160
|
+
|
|
161
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
162
|
+
|
|
163
|
+
var import_types = require("@smithy/types");
|
|
164
|
+
|
|
165
|
+
// src/protocols/Aws_restJson1.ts
|
|
166
|
+
var import_core = require("@smithy/core");
|
|
167
|
+
|
|
168
|
+
var import_uuid = require("uuid");
|
|
169
|
+
|
|
170
|
+
// src/models/CodeGuruReviewerServiceException.ts
|
|
171
|
+
|
|
172
|
+
var _CodeGuruReviewerServiceException = class _CodeGuruReviewerServiceException extends import_smithy_client.ServiceException {
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
constructor(options) {
|
|
177
|
+
super(options);
|
|
178
|
+
Object.setPrototypeOf(this, _CodeGuruReviewerServiceException.prototype);
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
__name(_CodeGuruReviewerServiceException, "CodeGuruReviewerServiceException");
|
|
182
|
+
var CodeGuruReviewerServiceException = _CodeGuruReviewerServiceException;
|
|
183
|
+
|
|
184
|
+
// src/models/models_0.ts
|
|
185
|
+
var _AccessDeniedException = class _AccessDeniedException extends CodeGuruReviewerServiceException {
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "AccessDeniedException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts
|
|
194
|
+
});
|
|
195
|
+
this.name = "AccessDeniedException";
|
|
196
|
+
this.$fault = "client";
|
|
197
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
198
|
+
this.Message = opts.Message;
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
202
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
203
|
+
var AnalysisType = {
|
|
204
|
+
CODE_QUALITY: "CodeQuality",
|
|
205
|
+
SECURITY: "Security"
|
|
206
|
+
};
|
|
207
|
+
var EncryptionOption = {
|
|
208
|
+
AoCmk: "AWS_OWNED_CMK",
|
|
209
|
+
CmCmk: "CUSTOMER_MANAGED_CMK"
|
|
210
|
+
};
|
|
211
|
+
var ProviderType = {
|
|
212
|
+
BITBUCKET: "Bitbucket",
|
|
213
|
+
CODE_COMMIT: "CodeCommit",
|
|
214
|
+
GIT_HUB: "GitHub",
|
|
215
|
+
GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
|
|
216
|
+
S3_BUCKET: "S3Bucket"
|
|
217
|
+
};
|
|
218
|
+
var RepositoryAssociationState = {
|
|
219
|
+
ASSOCIATED: "Associated",
|
|
220
|
+
ASSOCIATING: "Associating",
|
|
221
|
+
DISASSOCIATED: "Disassociated",
|
|
222
|
+
DISASSOCIATING: "Disassociating",
|
|
223
|
+
FAILED: "Failed"
|
|
224
|
+
};
|
|
225
|
+
var _ConflictException = class _ConflictException extends CodeGuruReviewerServiceException {
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "ConflictException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts
|
|
234
|
+
});
|
|
235
|
+
this.name = "ConflictException";
|
|
236
|
+
this.$fault = "client";
|
|
237
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
238
|
+
this.Message = opts.Message;
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
__name(_ConflictException, "ConflictException");
|
|
242
|
+
var ConflictException = _ConflictException;
|
|
243
|
+
var _InternalServerException = class _InternalServerException extends CodeGuruReviewerServiceException {
|
|
244
|
+
/**
|
|
245
|
+
* @internal
|
|
246
|
+
*/
|
|
247
|
+
constructor(opts) {
|
|
248
|
+
super({
|
|
249
|
+
name: "InternalServerException",
|
|
250
|
+
$fault: "server",
|
|
251
|
+
...opts
|
|
252
|
+
});
|
|
253
|
+
this.name = "InternalServerException";
|
|
254
|
+
this.$fault = "server";
|
|
255
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
256
|
+
this.Message = opts.Message;
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
__name(_InternalServerException, "InternalServerException");
|
|
260
|
+
var InternalServerException = _InternalServerException;
|
|
261
|
+
var _ThrottlingException = class _ThrottlingException extends CodeGuruReviewerServiceException {
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
*/
|
|
265
|
+
constructor(opts) {
|
|
266
|
+
super({
|
|
267
|
+
name: "ThrottlingException",
|
|
268
|
+
$fault: "client",
|
|
269
|
+
...opts
|
|
270
|
+
});
|
|
271
|
+
this.name = "ThrottlingException";
|
|
272
|
+
this.$fault = "client";
|
|
273
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
274
|
+
this.Message = opts.Message;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
278
|
+
var ThrottlingException = _ThrottlingException;
|
|
279
|
+
var _ValidationException = class _ValidationException extends CodeGuruReviewerServiceException {
|
|
280
|
+
/**
|
|
281
|
+
* @internal
|
|
282
|
+
*/
|
|
283
|
+
constructor(opts) {
|
|
284
|
+
super({
|
|
285
|
+
name: "ValidationException",
|
|
286
|
+
$fault: "client",
|
|
287
|
+
...opts
|
|
288
|
+
});
|
|
289
|
+
this.name = "ValidationException";
|
|
290
|
+
this.$fault = "client";
|
|
291
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
292
|
+
this.Message = opts.Message;
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
__name(_ValidationException, "ValidationException");
|
|
296
|
+
var ValidationException = _ValidationException;
|
|
297
|
+
var VendorName = {
|
|
298
|
+
GITHUB: "GitHub",
|
|
299
|
+
GITLAB: "GitLab",
|
|
300
|
+
NATIVE_S3: "NativeS3"
|
|
301
|
+
};
|
|
302
|
+
var ConfigFileState = {
|
|
303
|
+
ABSENT: "Absent",
|
|
304
|
+
PRESENT: "Present",
|
|
305
|
+
PRESENT_WITH_ERRORS: "PresentWithErrors"
|
|
306
|
+
};
|
|
307
|
+
var JobState = {
|
|
308
|
+
COMPLETED: "Completed",
|
|
309
|
+
DELETING: "Deleting",
|
|
310
|
+
FAILED: "Failed",
|
|
311
|
+
PENDING: "Pending"
|
|
312
|
+
};
|
|
313
|
+
var Type = {
|
|
314
|
+
PULL_REQUEST: "PullRequest",
|
|
315
|
+
REPOSITORY_ANALYSIS: "RepositoryAnalysis"
|
|
316
|
+
};
|
|
317
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends CodeGuruReviewerServiceException {
|
|
318
|
+
/**
|
|
319
|
+
* @internal
|
|
320
|
+
*/
|
|
321
|
+
constructor(opts) {
|
|
322
|
+
super({
|
|
323
|
+
name: "ResourceNotFoundException",
|
|
324
|
+
$fault: "client",
|
|
325
|
+
...opts
|
|
326
|
+
});
|
|
327
|
+
this.name = "ResourceNotFoundException";
|
|
328
|
+
this.$fault = "client";
|
|
329
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
330
|
+
this.Message = opts.Message;
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
334
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
335
|
+
var Reaction = {
|
|
336
|
+
THUMBS_DOWN: "ThumbsDown",
|
|
337
|
+
THUMBS_UP: "ThumbsUp"
|
|
338
|
+
};
|
|
339
|
+
var _NotFoundException = class _NotFoundException extends CodeGuruReviewerServiceException {
|
|
340
|
+
/**
|
|
341
|
+
* @internal
|
|
342
|
+
*/
|
|
343
|
+
constructor(opts) {
|
|
344
|
+
super({
|
|
345
|
+
name: "NotFoundException",
|
|
346
|
+
$fault: "client",
|
|
347
|
+
...opts
|
|
348
|
+
});
|
|
349
|
+
this.name = "NotFoundException";
|
|
350
|
+
this.$fault = "client";
|
|
351
|
+
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
352
|
+
this.Message = opts.Message;
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
__name(_NotFoundException, "NotFoundException");
|
|
356
|
+
var NotFoundException = _NotFoundException;
|
|
357
|
+
var RecommendationCategory = {
|
|
358
|
+
AWS_BEST_PRACTICES: "AWSBestPractices",
|
|
359
|
+
AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues",
|
|
360
|
+
CODE_INCONSISTENCIES: "CodeInconsistencies",
|
|
361
|
+
CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues",
|
|
362
|
+
CONCURRENCY_ISSUES: "ConcurrencyIssues",
|
|
363
|
+
DUPLICATE_CODE: "DuplicateCode",
|
|
364
|
+
INPUT_VALIDATIONS: "InputValidations",
|
|
365
|
+
JAVA_BEST_PRACTICES: "JavaBestPractices",
|
|
366
|
+
PYTHON_BEST_PRACTICES: "PythonBestPractices",
|
|
367
|
+
RESOURCE_LEAKS: "ResourceLeaks",
|
|
368
|
+
SECURITY_ISSUES: "SecurityIssues"
|
|
369
|
+
};
|
|
370
|
+
var Severity = {
|
|
371
|
+
CRITICAL: "Critical",
|
|
372
|
+
HIGH: "High",
|
|
373
|
+
INFO: "Info",
|
|
374
|
+
LOW: "Low",
|
|
375
|
+
MEDIUM: "Medium"
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
// src/protocols/Aws_restJson1.ts
|
|
379
|
+
var se_AssociateRepositoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
380
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
381
|
+
const headers = {
|
|
382
|
+
"content-type": "application/json"
|
|
383
|
+
};
|
|
384
|
+
b.bp("/associations");
|
|
385
|
+
let body;
|
|
386
|
+
body = JSON.stringify(
|
|
387
|
+
(0, import_smithy_client.take)(input, {
|
|
388
|
+
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
389
|
+
KMSKeyDetails: (_) => (0, import_smithy_client._json)(_),
|
|
390
|
+
Repository: (_) => (0, import_smithy_client._json)(_),
|
|
391
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
392
|
+
})
|
|
393
|
+
);
|
|
394
|
+
b.m("POST").h(headers).b(body);
|
|
395
|
+
return b.build();
|
|
396
|
+
}, "se_AssociateRepositoryCommand");
|
|
397
|
+
var se_CreateCodeReviewCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
398
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
399
|
+
const headers = {
|
|
400
|
+
"content-type": "application/json"
|
|
401
|
+
};
|
|
402
|
+
b.bp("/codereviews");
|
|
403
|
+
let body;
|
|
404
|
+
body = JSON.stringify(
|
|
405
|
+
(0, import_smithy_client.take)(input, {
|
|
406
|
+
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
407
|
+
Name: [],
|
|
408
|
+
RepositoryAssociationArn: [],
|
|
409
|
+
Type: (_) => (0, import_smithy_client._json)(_)
|
|
410
|
+
})
|
|
411
|
+
);
|
|
412
|
+
b.m("POST").h(headers).b(body);
|
|
413
|
+
return b.build();
|
|
414
|
+
}, "se_CreateCodeReviewCommand");
|
|
415
|
+
var se_DescribeCodeReviewCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
416
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
417
|
+
const headers = {};
|
|
418
|
+
b.bp("/codereviews/{CodeReviewArn}");
|
|
419
|
+
b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
|
|
420
|
+
let body;
|
|
421
|
+
b.m("GET").h(headers).b(body);
|
|
422
|
+
return b.build();
|
|
423
|
+
}, "se_DescribeCodeReviewCommand");
|
|
424
|
+
var se_DescribeRecommendationFeedbackCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
426
|
+
const headers = {};
|
|
427
|
+
b.bp("/feedback/{CodeReviewArn}");
|
|
428
|
+
b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
|
|
429
|
+
const query = (0, import_smithy_client.map)({
|
|
430
|
+
[_RI]: [, (0, import_smithy_client.expectNonNull)(input[_RI], `RecommendationId`)],
|
|
431
|
+
[_UI]: [, input[_UI]]
|
|
432
|
+
});
|
|
433
|
+
let body;
|
|
434
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
435
|
+
return b.build();
|
|
436
|
+
}, "se_DescribeRecommendationFeedbackCommand");
|
|
437
|
+
var se_DescribeRepositoryAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
439
|
+
const headers = {};
|
|
440
|
+
b.bp("/associations/{AssociationArn}");
|
|
441
|
+
b.p("AssociationArn", () => input.AssociationArn, "{AssociationArn}", false);
|
|
442
|
+
let body;
|
|
443
|
+
b.m("GET").h(headers).b(body);
|
|
444
|
+
return b.build();
|
|
445
|
+
}, "se_DescribeRepositoryAssociationCommand");
|
|
446
|
+
var se_DisassociateRepositoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
447
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
448
|
+
const headers = {};
|
|
449
|
+
b.bp("/associations/{AssociationArn}");
|
|
450
|
+
b.p("AssociationArn", () => input.AssociationArn, "{AssociationArn}", false);
|
|
451
|
+
let body;
|
|
452
|
+
b.m("DELETE").h(headers).b(body);
|
|
453
|
+
return b.build();
|
|
454
|
+
}, "se_DisassociateRepositoryCommand");
|
|
455
|
+
var se_ListCodeReviewsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
456
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
457
|
+
const headers = {};
|
|
458
|
+
b.bp("/codereviews");
|
|
459
|
+
const query = (0, import_smithy_client.map)({
|
|
460
|
+
[_PT]: [() => input.ProviderTypes !== void 0, () => (input[_PT] || []).map((_entry) => _entry)],
|
|
461
|
+
[_S]: [() => input.States !== void 0, () => (input[_S] || []).map((_entry) => _entry)],
|
|
462
|
+
[_RN]: [() => input.RepositoryNames !== void 0, () => (input[_RN] || []).map((_entry) => _entry)],
|
|
463
|
+
[_T]: [, (0, import_smithy_client.expectNonNull)(input[_T], `Type`)],
|
|
464
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
465
|
+
[_NT]: [, input[_NT]]
|
|
466
|
+
});
|
|
467
|
+
let body;
|
|
468
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
469
|
+
return b.build();
|
|
470
|
+
}, "se_ListCodeReviewsCommand");
|
|
471
|
+
var se_ListRecommendationFeedbackCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
472
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
473
|
+
const headers = {};
|
|
474
|
+
b.bp("/feedback/{CodeReviewArn}/RecommendationFeedback");
|
|
475
|
+
b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
|
|
476
|
+
const query = (0, import_smithy_client.map)({
|
|
477
|
+
[_NT]: [, input[_NT]],
|
|
478
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
479
|
+
[_UIs]: [() => input.UserIds !== void 0, () => (input[_UIs] || []).map((_entry) => _entry)],
|
|
480
|
+
[_RIe]: [() => input.RecommendationIds !== void 0, () => (input[_RIe] || []).map((_entry) => _entry)]
|
|
481
|
+
});
|
|
482
|
+
let body;
|
|
483
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
484
|
+
return b.build();
|
|
485
|
+
}, "se_ListRecommendationFeedbackCommand");
|
|
486
|
+
var se_ListRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
487
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
488
|
+
const headers = {};
|
|
489
|
+
b.bp("/codereviews/{CodeReviewArn}/Recommendations");
|
|
490
|
+
b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
|
|
491
|
+
const query = (0, import_smithy_client.map)({
|
|
492
|
+
[_NT]: [, input[_NT]],
|
|
493
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
494
|
+
});
|
|
495
|
+
let body;
|
|
496
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
497
|
+
return b.build();
|
|
498
|
+
}, "se_ListRecommendationsCommand");
|
|
499
|
+
var se_ListRepositoryAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
500
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
501
|
+
const headers = {};
|
|
502
|
+
b.bp("/associations");
|
|
503
|
+
const query = (0, import_smithy_client.map)({
|
|
504
|
+
[_PTr]: [() => input.ProviderTypes !== void 0, () => (input[_PT] || []).map((_entry) => _entry)],
|
|
505
|
+
[_St]: [() => input.States !== void 0, () => (input[_S] || []).map((_entry) => _entry)],
|
|
506
|
+
[_Na]: [() => input.Names !== void 0, () => (input[_N] || []).map((_entry) => _entry)],
|
|
507
|
+
[_Ow]: [() => input.Owners !== void 0, () => (input[_O] || []).map((_entry) => _entry)],
|
|
508
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
509
|
+
[_NT]: [, input[_NT]]
|
|
510
|
+
});
|
|
511
|
+
let body;
|
|
512
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
513
|
+
return b.build();
|
|
514
|
+
}, "se_ListRepositoryAssociationsCommand");
|
|
515
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
516
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
517
|
+
const headers = {};
|
|
518
|
+
b.bp("/tags/{resourceArn}");
|
|
519
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
520
|
+
let body;
|
|
521
|
+
b.m("GET").h(headers).b(body);
|
|
522
|
+
return b.build();
|
|
523
|
+
}, "se_ListTagsForResourceCommand");
|
|
524
|
+
var se_PutRecommendationFeedbackCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
525
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
526
|
+
const headers = {
|
|
527
|
+
"content-type": "application/json"
|
|
528
|
+
};
|
|
529
|
+
b.bp("/feedback");
|
|
530
|
+
let body;
|
|
531
|
+
body = JSON.stringify(
|
|
532
|
+
(0, import_smithy_client.take)(input, {
|
|
533
|
+
CodeReviewArn: [],
|
|
534
|
+
Reactions: (_) => (0, import_smithy_client._json)(_),
|
|
535
|
+
RecommendationId: []
|
|
536
|
+
})
|
|
537
|
+
);
|
|
538
|
+
b.m("PUT").h(headers).b(body);
|
|
539
|
+
return b.build();
|
|
540
|
+
}, "se_PutRecommendationFeedbackCommand");
|
|
541
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
542
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
543
|
+
const headers = {
|
|
544
|
+
"content-type": "application/json"
|
|
545
|
+
};
|
|
546
|
+
b.bp("/tags/{resourceArn}");
|
|
547
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
548
|
+
let body;
|
|
549
|
+
body = JSON.stringify(
|
|
550
|
+
(0, import_smithy_client.take)(input, {
|
|
551
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
552
|
+
})
|
|
553
|
+
);
|
|
554
|
+
b.m("POST").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
556
|
+
}, "se_TagResourceCommand");
|
|
557
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
558
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
559
|
+
const headers = {};
|
|
560
|
+
b.bp("/tags/{resourceArn}");
|
|
561
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
562
|
+
const query = (0, import_smithy_client.map)({
|
|
563
|
+
[_tK]: [
|
|
564
|
+
(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
565
|
+
() => (input[_TK] || []).map((_entry) => _entry)
|
|
566
|
+
]
|
|
567
|
+
});
|
|
568
|
+
let body;
|
|
569
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
570
|
+
return b.build();
|
|
571
|
+
}, "se_UntagResourceCommand");
|
|
572
|
+
var de_AssociateRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
573
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
|
+
return de_AssociateRepositoryCommandError(output, context);
|
|
575
|
+
}
|
|
576
|
+
const contents = (0, import_smithy_client.map)({
|
|
577
|
+
$metadata: deserializeMetadata(output)
|
|
578
|
+
});
|
|
579
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
580
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
581
|
+
RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
|
|
582
|
+
Tags: import_smithy_client._json
|
|
583
|
+
});
|
|
584
|
+
Object.assign(contents, doc);
|
|
585
|
+
return contents;
|
|
586
|
+
}, "de_AssociateRepositoryCommand");
|
|
587
|
+
var de_AssociateRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
588
|
+
const parsedOutput = {
|
|
589
|
+
...output,
|
|
590
|
+
body: await parseErrorBody(output.body, context)
|
|
591
|
+
};
|
|
592
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
+
switch (errorCode) {
|
|
594
|
+
case "AccessDeniedException":
|
|
595
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
596
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
597
|
+
case "ConflictException":
|
|
598
|
+
case "com.amazonaws.codegurureviewer#ConflictException":
|
|
599
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
600
|
+
case "InternalServerException":
|
|
601
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
602
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
|
+
case "ThrottlingException":
|
|
604
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
605
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
606
|
+
case "ValidationException":
|
|
607
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
608
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
609
|
+
default:
|
|
610
|
+
const parsedBody = parsedOutput.body;
|
|
611
|
+
return throwDefaultError({
|
|
612
|
+
output,
|
|
613
|
+
parsedBody,
|
|
614
|
+
errorCode
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
}, "de_AssociateRepositoryCommandError");
|
|
618
|
+
var de_CreateCodeReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
619
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
+
return de_CreateCodeReviewCommandError(output, context);
|
|
621
|
+
}
|
|
622
|
+
const contents = (0, import_smithy_client.map)({
|
|
623
|
+
$metadata: deserializeMetadata(output)
|
|
624
|
+
});
|
|
625
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
626
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
627
|
+
CodeReview: (_) => de_CodeReview(_, context)
|
|
628
|
+
});
|
|
629
|
+
Object.assign(contents, doc);
|
|
630
|
+
return contents;
|
|
631
|
+
}, "de_CreateCodeReviewCommand");
|
|
632
|
+
var de_CreateCodeReviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
633
|
+
const parsedOutput = {
|
|
634
|
+
...output,
|
|
635
|
+
body: await parseErrorBody(output.body, context)
|
|
636
|
+
};
|
|
637
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
+
switch (errorCode) {
|
|
639
|
+
case "AccessDeniedException":
|
|
640
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
641
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
642
|
+
case "ConflictException":
|
|
643
|
+
case "com.amazonaws.codegurureviewer#ConflictException":
|
|
644
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
645
|
+
case "InternalServerException":
|
|
646
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
647
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
648
|
+
case "ResourceNotFoundException":
|
|
649
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
650
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
651
|
+
case "ThrottlingException":
|
|
652
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
653
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
654
|
+
case "ValidationException":
|
|
655
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
656
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
657
|
+
default:
|
|
658
|
+
const parsedBody = parsedOutput.body;
|
|
659
|
+
return throwDefaultError({
|
|
660
|
+
output,
|
|
661
|
+
parsedBody,
|
|
662
|
+
errorCode
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
}, "de_CreateCodeReviewCommandError");
|
|
666
|
+
var de_DescribeCodeReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
667
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
668
|
+
return de_DescribeCodeReviewCommandError(output, context);
|
|
669
|
+
}
|
|
670
|
+
const contents = (0, import_smithy_client.map)({
|
|
671
|
+
$metadata: deserializeMetadata(output)
|
|
672
|
+
});
|
|
673
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
674
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
675
|
+
CodeReview: (_) => de_CodeReview(_, context)
|
|
676
|
+
});
|
|
677
|
+
Object.assign(contents, doc);
|
|
678
|
+
return contents;
|
|
679
|
+
}, "de_DescribeCodeReviewCommand");
|
|
680
|
+
var de_DescribeCodeReviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
+
const parsedOutput = {
|
|
682
|
+
...output,
|
|
683
|
+
body: await parseErrorBody(output.body, context)
|
|
684
|
+
};
|
|
685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
|
+
switch (errorCode) {
|
|
687
|
+
case "AccessDeniedException":
|
|
688
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
689
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
690
|
+
case "InternalServerException":
|
|
691
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
692
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
693
|
+
case "ResourceNotFoundException":
|
|
694
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
695
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
696
|
+
case "ThrottlingException":
|
|
697
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
698
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
699
|
+
case "ValidationException":
|
|
700
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
701
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
702
|
+
default:
|
|
703
|
+
const parsedBody = parsedOutput.body;
|
|
704
|
+
return throwDefaultError({
|
|
705
|
+
output,
|
|
706
|
+
parsedBody,
|
|
707
|
+
errorCode
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
}, "de_DescribeCodeReviewCommandError");
|
|
711
|
+
var de_DescribeRecommendationFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
712
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
713
|
+
return de_DescribeRecommendationFeedbackCommandError(output, context);
|
|
714
|
+
}
|
|
715
|
+
const contents = (0, import_smithy_client.map)({
|
|
716
|
+
$metadata: deserializeMetadata(output)
|
|
717
|
+
});
|
|
718
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
719
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
720
|
+
RecommendationFeedback: (_) => de_RecommendationFeedback(_, context)
|
|
721
|
+
});
|
|
722
|
+
Object.assign(contents, doc);
|
|
723
|
+
return contents;
|
|
724
|
+
}, "de_DescribeRecommendationFeedbackCommand");
|
|
725
|
+
var de_DescribeRecommendationFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
726
|
+
const parsedOutput = {
|
|
727
|
+
...output,
|
|
728
|
+
body: await parseErrorBody(output.body, context)
|
|
729
|
+
};
|
|
730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
+
switch (errorCode) {
|
|
732
|
+
case "AccessDeniedException":
|
|
733
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
734
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
735
|
+
case "InternalServerException":
|
|
736
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
737
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
738
|
+
case "ResourceNotFoundException":
|
|
739
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
740
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
741
|
+
case "ThrottlingException":
|
|
742
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
743
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
744
|
+
case "ValidationException":
|
|
745
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
746
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
747
|
+
default:
|
|
748
|
+
const parsedBody = parsedOutput.body;
|
|
749
|
+
return throwDefaultError({
|
|
750
|
+
output,
|
|
751
|
+
parsedBody,
|
|
752
|
+
errorCode
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
}, "de_DescribeRecommendationFeedbackCommandError");
|
|
756
|
+
var de_DescribeRepositoryAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
757
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
+
return de_DescribeRepositoryAssociationCommandError(output, context);
|
|
759
|
+
}
|
|
760
|
+
const contents = (0, import_smithy_client.map)({
|
|
761
|
+
$metadata: deserializeMetadata(output)
|
|
762
|
+
});
|
|
763
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
764
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
765
|
+
RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
|
|
766
|
+
Tags: import_smithy_client._json
|
|
767
|
+
});
|
|
768
|
+
Object.assign(contents, doc);
|
|
769
|
+
return contents;
|
|
770
|
+
}, "de_DescribeRepositoryAssociationCommand");
|
|
771
|
+
var de_DescribeRepositoryAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
772
|
+
const parsedOutput = {
|
|
773
|
+
...output,
|
|
774
|
+
body: await parseErrorBody(output.body, context)
|
|
775
|
+
};
|
|
776
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
|
+
switch (errorCode) {
|
|
778
|
+
case "AccessDeniedException":
|
|
779
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
780
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
781
|
+
case "InternalServerException":
|
|
782
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
783
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
784
|
+
case "NotFoundException":
|
|
785
|
+
case "com.amazonaws.codegurureviewer#NotFoundException":
|
|
786
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
787
|
+
case "ThrottlingException":
|
|
788
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
789
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
790
|
+
case "ValidationException":
|
|
791
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
792
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
793
|
+
default:
|
|
794
|
+
const parsedBody = parsedOutput.body;
|
|
795
|
+
return throwDefaultError({
|
|
796
|
+
output,
|
|
797
|
+
parsedBody,
|
|
798
|
+
errorCode
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
}, "de_DescribeRepositoryAssociationCommandError");
|
|
802
|
+
var de_DisassociateRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
804
|
+
return de_DisassociateRepositoryCommandError(output, context);
|
|
805
|
+
}
|
|
806
|
+
const contents = (0, import_smithy_client.map)({
|
|
807
|
+
$metadata: deserializeMetadata(output)
|
|
808
|
+
});
|
|
809
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
810
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
811
|
+
RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
|
|
812
|
+
Tags: import_smithy_client._json
|
|
813
|
+
});
|
|
814
|
+
Object.assign(contents, doc);
|
|
815
|
+
return contents;
|
|
816
|
+
}, "de_DisassociateRepositoryCommand");
|
|
817
|
+
var de_DisassociateRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
|
+
const parsedOutput = {
|
|
819
|
+
...output,
|
|
820
|
+
body: await parseErrorBody(output.body, context)
|
|
821
|
+
};
|
|
822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
823
|
+
switch (errorCode) {
|
|
824
|
+
case "AccessDeniedException":
|
|
825
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
826
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
827
|
+
case "ConflictException":
|
|
828
|
+
case "com.amazonaws.codegurureviewer#ConflictException":
|
|
829
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
830
|
+
case "InternalServerException":
|
|
831
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
832
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
833
|
+
case "NotFoundException":
|
|
834
|
+
case "com.amazonaws.codegurureviewer#NotFoundException":
|
|
835
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
836
|
+
case "ThrottlingException":
|
|
837
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
838
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
839
|
+
case "ValidationException":
|
|
840
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
841
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
842
|
+
default:
|
|
843
|
+
const parsedBody = parsedOutput.body;
|
|
844
|
+
return throwDefaultError({
|
|
845
|
+
output,
|
|
846
|
+
parsedBody,
|
|
847
|
+
errorCode
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
}, "de_DisassociateRepositoryCommandError");
|
|
851
|
+
var de_ListCodeReviewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
852
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
853
|
+
return de_ListCodeReviewsCommandError(output, context);
|
|
854
|
+
}
|
|
855
|
+
const contents = (0, import_smithy_client.map)({
|
|
856
|
+
$metadata: deserializeMetadata(output)
|
|
857
|
+
});
|
|
858
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
859
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
860
|
+
CodeReviewSummaries: (_) => de_CodeReviewSummaries(_, context),
|
|
861
|
+
NextToken: import_smithy_client.expectString
|
|
862
|
+
});
|
|
863
|
+
Object.assign(contents, doc);
|
|
864
|
+
return contents;
|
|
865
|
+
}, "de_ListCodeReviewsCommand");
|
|
866
|
+
var de_ListCodeReviewsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
867
|
+
const parsedOutput = {
|
|
868
|
+
...output,
|
|
869
|
+
body: await parseErrorBody(output.body, context)
|
|
870
|
+
};
|
|
871
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
+
switch (errorCode) {
|
|
873
|
+
case "AccessDeniedException":
|
|
874
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
875
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
876
|
+
case "InternalServerException":
|
|
877
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
878
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
879
|
+
case "ThrottlingException":
|
|
880
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
881
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
882
|
+
case "ValidationException":
|
|
883
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
884
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
885
|
+
default:
|
|
886
|
+
const parsedBody = parsedOutput.body;
|
|
887
|
+
return throwDefaultError({
|
|
888
|
+
output,
|
|
889
|
+
parsedBody,
|
|
890
|
+
errorCode
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
}, "de_ListCodeReviewsCommandError");
|
|
894
|
+
var de_ListRecommendationFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
895
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
896
|
+
return de_ListRecommendationFeedbackCommandError(output, context);
|
|
897
|
+
}
|
|
898
|
+
const contents = (0, import_smithy_client.map)({
|
|
899
|
+
$metadata: deserializeMetadata(output)
|
|
900
|
+
});
|
|
901
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
902
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
903
|
+
NextToken: import_smithy_client.expectString,
|
|
904
|
+
RecommendationFeedbackSummaries: import_smithy_client._json
|
|
905
|
+
});
|
|
906
|
+
Object.assign(contents, doc);
|
|
907
|
+
return contents;
|
|
908
|
+
}, "de_ListRecommendationFeedbackCommand");
|
|
909
|
+
var de_ListRecommendationFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
910
|
+
const parsedOutput = {
|
|
911
|
+
...output,
|
|
912
|
+
body: await parseErrorBody(output.body, context)
|
|
913
|
+
};
|
|
914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
915
|
+
switch (errorCode) {
|
|
916
|
+
case "AccessDeniedException":
|
|
917
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
918
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
919
|
+
case "InternalServerException":
|
|
920
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
921
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
922
|
+
case "ResourceNotFoundException":
|
|
923
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
924
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
925
|
+
case "ThrottlingException":
|
|
926
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
927
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
928
|
+
case "ValidationException":
|
|
929
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
930
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
931
|
+
default:
|
|
932
|
+
const parsedBody = parsedOutput.body;
|
|
933
|
+
return throwDefaultError({
|
|
934
|
+
output,
|
|
935
|
+
parsedBody,
|
|
936
|
+
errorCode
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
}, "de_ListRecommendationFeedbackCommandError");
|
|
940
|
+
var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
+
return de_ListRecommendationsCommandError(output, context);
|
|
943
|
+
}
|
|
944
|
+
const contents = (0, import_smithy_client.map)({
|
|
945
|
+
$metadata: deserializeMetadata(output)
|
|
946
|
+
});
|
|
947
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
948
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
949
|
+
NextToken: import_smithy_client.expectString,
|
|
950
|
+
RecommendationSummaries: import_smithy_client._json
|
|
951
|
+
});
|
|
952
|
+
Object.assign(contents, doc);
|
|
953
|
+
return contents;
|
|
954
|
+
}, "de_ListRecommendationsCommand");
|
|
955
|
+
var de_ListRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
+
const parsedOutput = {
|
|
957
|
+
...output,
|
|
958
|
+
body: await parseErrorBody(output.body, context)
|
|
959
|
+
};
|
|
960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
+
switch (errorCode) {
|
|
962
|
+
case "AccessDeniedException":
|
|
963
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
964
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
965
|
+
case "InternalServerException":
|
|
966
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
967
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
968
|
+
case "ResourceNotFoundException":
|
|
969
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
970
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
971
|
+
case "ThrottlingException":
|
|
972
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
973
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
974
|
+
case "ValidationException":
|
|
975
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
976
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
977
|
+
default:
|
|
978
|
+
const parsedBody = parsedOutput.body;
|
|
979
|
+
return throwDefaultError({
|
|
980
|
+
output,
|
|
981
|
+
parsedBody,
|
|
982
|
+
errorCode
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
}, "de_ListRecommendationsCommandError");
|
|
986
|
+
var de_ListRepositoryAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
|
+
return de_ListRepositoryAssociationsCommandError(output, context);
|
|
989
|
+
}
|
|
990
|
+
const contents = (0, import_smithy_client.map)({
|
|
991
|
+
$metadata: deserializeMetadata(output)
|
|
992
|
+
});
|
|
993
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
994
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
995
|
+
NextToken: import_smithy_client.expectString,
|
|
996
|
+
RepositoryAssociationSummaries: (_) => de_RepositoryAssociationSummaries(_, context)
|
|
997
|
+
});
|
|
998
|
+
Object.assign(contents, doc);
|
|
999
|
+
return contents;
|
|
1000
|
+
}, "de_ListRepositoryAssociationsCommand");
|
|
1001
|
+
var de_ListRepositoryAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1002
|
+
const parsedOutput = {
|
|
1003
|
+
...output,
|
|
1004
|
+
body: await parseErrorBody(output.body, context)
|
|
1005
|
+
};
|
|
1006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
+
switch (errorCode) {
|
|
1008
|
+
case "InternalServerException":
|
|
1009
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1010
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1011
|
+
case "ThrottlingException":
|
|
1012
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
1013
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1014
|
+
case "ValidationException":
|
|
1015
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1016
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1017
|
+
default:
|
|
1018
|
+
const parsedBody = parsedOutput.body;
|
|
1019
|
+
return throwDefaultError({
|
|
1020
|
+
output,
|
|
1021
|
+
parsedBody,
|
|
1022
|
+
errorCode
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
}, "de_ListRepositoryAssociationsCommandError");
|
|
1026
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1027
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1029
|
+
}
|
|
1030
|
+
const contents = (0, import_smithy_client.map)({
|
|
1031
|
+
$metadata: deserializeMetadata(output)
|
|
1032
|
+
});
|
|
1033
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1034
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1035
|
+
Tags: import_smithy_client._json
|
|
1036
|
+
});
|
|
1037
|
+
Object.assign(contents, doc);
|
|
1038
|
+
return contents;
|
|
1039
|
+
}, "de_ListTagsForResourceCommand");
|
|
1040
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1041
|
+
const parsedOutput = {
|
|
1042
|
+
...output,
|
|
1043
|
+
body: await parseErrorBody(output.body, context)
|
|
1044
|
+
};
|
|
1045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
+
switch (errorCode) {
|
|
1047
|
+
case "InternalServerException":
|
|
1048
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1049
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
|
+
case "ResourceNotFoundException":
|
|
1051
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1052
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
|
+
case "ValidationException":
|
|
1054
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1055
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
|
+
default:
|
|
1057
|
+
const parsedBody = parsedOutput.body;
|
|
1058
|
+
return throwDefaultError({
|
|
1059
|
+
output,
|
|
1060
|
+
parsedBody,
|
|
1061
|
+
errorCode
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1065
|
+
var de_PutRecommendationFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1067
|
+
return de_PutRecommendationFeedbackCommandError(output, context);
|
|
1068
|
+
}
|
|
1069
|
+
const contents = (0, import_smithy_client.map)({
|
|
1070
|
+
$metadata: deserializeMetadata(output)
|
|
1071
|
+
});
|
|
1072
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1073
|
+
return contents;
|
|
1074
|
+
}, "de_PutRecommendationFeedbackCommand");
|
|
1075
|
+
var de_PutRecommendationFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
|
+
const parsedOutput = {
|
|
1077
|
+
...output,
|
|
1078
|
+
body: await parseErrorBody(output.body, context)
|
|
1079
|
+
};
|
|
1080
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
+
switch (errorCode) {
|
|
1082
|
+
case "AccessDeniedException":
|
|
1083
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
1084
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "InternalServerException":
|
|
1086
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1087
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1088
|
+
case "ResourceNotFoundException":
|
|
1089
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1090
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1091
|
+
case "ThrottlingException":
|
|
1092
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
1093
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1094
|
+
case "ValidationException":
|
|
1095
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1096
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1097
|
+
default:
|
|
1098
|
+
const parsedBody = parsedOutput.body;
|
|
1099
|
+
return throwDefaultError({
|
|
1100
|
+
output,
|
|
1101
|
+
parsedBody,
|
|
1102
|
+
errorCode
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
}, "de_PutRecommendationFeedbackCommandError");
|
|
1106
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1108
|
+
return de_TagResourceCommandError(output, context);
|
|
1109
|
+
}
|
|
1110
|
+
const contents = (0, import_smithy_client.map)({
|
|
1111
|
+
$metadata: deserializeMetadata(output)
|
|
1112
|
+
});
|
|
1113
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1114
|
+
return contents;
|
|
1115
|
+
}, "de_TagResourceCommand");
|
|
1116
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1117
|
+
const parsedOutput = {
|
|
1118
|
+
...output,
|
|
1119
|
+
body: await parseErrorBody(output.body, context)
|
|
1120
|
+
};
|
|
1121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
|
+
switch (errorCode) {
|
|
1123
|
+
case "InternalServerException":
|
|
1124
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1125
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1126
|
+
case "ResourceNotFoundException":
|
|
1127
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1128
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1129
|
+
case "ValidationException":
|
|
1130
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1131
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1132
|
+
default:
|
|
1133
|
+
const parsedBody = parsedOutput.body;
|
|
1134
|
+
return throwDefaultError({
|
|
1135
|
+
output,
|
|
1136
|
+
parsedBody,
|
|
1137
|
+
errorCode
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
}, "de_TagResourceCommandError");
|
|
1141
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1142
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1143
|
+
return de_UntagResourceCommandError(output, context);
|
|
1144
|
+
}
|
|
1145
|
+
const contents = (0, import_smithy_client.map)({
|
|
1146
|
+
$metadata: deserializeMetadata(output)
|
|
1147
|
+
});
|
|
1148
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1149
|
+
return contents;
|
|
1150
|
+
}, "de_UntagResourceCommand");
|
|
1151
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1152
|
+
const parsedOutput = {
|
|
1153
|
+
...output,
|
|
1154
|
+
body: await parseErrorBody(output.body, context)
|
|
1155
|
+
};
|
|
1156
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
+
switch (errorCode) {
|
|
1158
|
+
case "InternalServerException":
|
|
1159
|
+
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1160
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1161
|
+
case "ResourceNotFoundException":
|
|
1162
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1163
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1164
|
+
case "ValidationException":
|
|
1165
|
+
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1166
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1167
|
+
default:
|
|
1168
|
+
const parsedBody = parsedOutput.body;
|
|
1169
|
+
return throwDefaultError({
|
|
1170
|
+
output,
|
|
1171
|
+
parsedBody,
|
|
1172
|
+
errorCode
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
}, "de_UntagResourceCommandError");
|
|
1176
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeGuruReviewerServiceException);
|
|
1177
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1178
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1179
|
+
const data = parsedOutput.body;
|
|
1180
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1181
|
+
Message: import_smithy_client.expectString
|
|
1182
|
+
});
|
|
1183
|
+
Object.assign(contents, doc);
|
|
1184
|
+
const exception = new AccessDeniedException({
|
|
1185
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1186
|
+
...contents
|
|
1187
|
+
});
|
|
1188
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1189
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1190
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1191
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1192
|
+
const data = parsedOutput.body;
|
|
1193
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1194
|
+
Message: import_smithy_client.expectString
|
|
1195
|
+
});
|
|
1196
|
+
Object.assign(contents, doc);
|
|
1197
|
+
const exception = new ConflictException({
|
|
1198
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1199
|
+
...contents
|
|
1200
|
+
});
|
|
1201
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1202
|
+
}, "de_ConflictExceptionRes");
|
|
1203
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1204
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1205
|
+
const data = parsedOutput.body;
|
|
1206
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1207
|
+
Message: import_smithy_client.expectString
|
|
1208
|
+
});
|
|
1209
|
+
Object.assign(contents, doc);
|
|
1210
|
+
const exception = new InternalServerException({
|
|
1211
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1212
|
+
...contents
|
|
1213
|
+
});
|
|
1214
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1215
|
+
}, "de_InternalServerExceptionRes");
|
|
1216
|
+
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1217
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1218
|
+
const data = parsedOutput.body;
|
|
1219
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1220
|
+
Message: import_smithy_client.expectString
|
|
1221
|
+
});
|
|
1222
|
+
Object.assign(contents, doc);
|
|
1223
|
+
const exception = new NotFoundException({
|
|
1224
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1225
|
+
...contents
|
|
1226
|
+
});
|
|
1227
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1228
|
+
}, "de_NotFoundExceptionRes");
|
|
1229
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1230
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1231
|
+
const data = parsedOutput.body;
|
|
1232
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1233
|
+
Message: import_smithy_client.expectString
|
|
1234
|
+
});
|
|
1235
|
+
Object.assign(contents, doc);
|
|
1236
|
+
const exception = new ResourceNotFoundException({
|
|
1237
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1238
|
+
...contents
|
|
1239
|
+
});
|
|
1240
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1241
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1242
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1243
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1244
|
+
const data = parsedOutput.body;
|
|
1245
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1246
|
+
Message: import_smithy_client.expectString
|
|
1247
|
+
});
|
|
1248
|
+
Object.assign(contents, doc);
|
|
1249
|
+
const exception = new ThrottlingException({
|
|
1250
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1251
|
+
...contents
|
|
1252
|
+
});
|
|
1253
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1254
|
+
}, "de_ThrottlingExceptionRes");
|
|
1255
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1256
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1257
|
+
const data = parsedOutput.body;
|
|
1258
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1259
|
+
Message: import_smithy_client.expectString
|
|
1260
|
+
});
|
|
1261
|
+
Object.assign(contents, doc);
|
|
1262
|
+
const exception = new ValidationException({
|
|
1263
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1264
|
+
...contents
|
|
1265
|
+
});
|
|
1266
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1267
|
+
}, "de_ValidationExceptionRes");
|
|
1268
|
+
var de_CodeReview = /* @__PURE__ */ __name((output, context) => {
|
|
1269
|
+
return (0, import_smithy_client.take)(output, {
|
|
1270
|
+
AnalysisTypes: import_smithy_client._json,
|
|
1271
|
+
AssociationArn: import_smithy_client.expectString,
|
|
1272
|
+
CodeReviewArn: import_smithy_client.expectString,
|
|
1273
|
+
ConfigFileState: import_smithy_client.expectString,
|
|
1274
|
+
CreatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1275
|
+
LastUpdatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1276
|
+
Metrics: import_smithy_client._json,
|
|
1277
|
+
Name: import_smithy_client.expectString,
|
|
1278
|
+
Owner: import_smithy_client.expectString,
|
|
1279
|
+
ProviderType: import_smithy_client.expectString,
|
|
1280
|
+
PullRequestId: import_smithy_client.expectString,
|
|
1281
|
+
RepositoryName: import_smithy_client.expectString,
|
|
1282
|
+
SourceCodeType: import_smithy_client._json,
|
|
1283
|
+
State: import_smithy_client.expectString,
|
|
1284
|
+
StateReason: import_smithy_client.expectString,
|
|
1285
|
+
Type: import_smithy_client.expectString
|
|
1286
|
+
});
|
|
1287
|
+
}, "de_CodeReview");
|
|
1288
|
+
var de_CodeReviewSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1289
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1290
|
+
return de_CodeReviewSummary(entry, context);
|
|
1291
|
+
});
|
|
1292
|
+
return retVal;
|
|
1293
|
+
}, "de_CodeReviewSummaries");
|
|
1294
|
+
var de_CodeReviewSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1295
|
+
return (0, import_smithy_client.take)(output, {
|
|
1296
|
+
CodeReviewArn: import_smithy_client.expectString,
|
|
1297
|
+
CreatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1298
|
+
LastUpdatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1299
|
+
MetricsSummary: import_smithy_client._json,
|
|
1300
|
+
Name: import_smithy_client.expectString,
|
|
1301
|
+
Owner: import_smithy_client.expectString,
|
|
1302
|
+
ProviderType: import_smithy_client.expectString,
|
|
1303
|
+
PullRequestId: import_smithy_client.expectString,
|
|
1304
|
+
RepositoryName: import_smithy_client.expectString,
|
|
1305
|
+
SourceCodeType: import_smithy_client._json,
|
|
1306
|
+
State: import_smithy_client.expectString,
|
|
1307
|
+
Type: import_smithy_client.expectString
|
|
1308
|
+
});
|
|
1309
|
+
}, "de_CodeReviewSummary");
|
|
1310
|
+
var de_RecommendationFeedback = /* @__PURE__ */ __name((output, context) => {
|
|
1311
|
+
return (0, import_smithy_client.take)(output, {
|
|
1312
|
+
CodeReviewArn: import_smithy_client.expectString,
|
|
1313
|
+
CreatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1314
|
+
LastUpdatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1315
|
+
Reactions: import_smithy_client._json,
|
|
1316
|
+
RecommendationId: import_smithy_client.expectString,
|
|
1317
|
+
UserId: import_smithy_client.expectString
|
|
1318
|
+
});
|
|
1319
|
+
}, "de_RecommendationFeedback");
|
|
1320
|
+
var de_RepositoryAssociation = /* @__PURE__ */ __name((output, context) => {
|
|
1321
|
+
return (0, import_smithy_client.take)(output, {
|
|
1322
|
+
AssociationArn: import_smithy_client.expectString,
|
|
1323
|
+
AssociationId: import_smithy_client.expectString,
|
|
1324
|
+
ConnectionArn: import_smithy_client.expectString,
|
|
1325
|
+
CreatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1326
|
+
KMSKeyDetails: import_smithy_client._json,
|
|
1327
|
+
LastUpdatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1328
|
+
Name: import_smithy_client.expectString,
|
|
1329
|
+
Owner: import_smithy_client.expectString,
|
|
1330
|
+
ProviderType: import_smithy_client.expectString,
|
|
1331
|
+
S3RepositoryDetails: import_smithy_client._json,
|
|
1332
|
+
State: import_smithy_client.expectString,
|
|
1333
|
+
StateReason: import_smithy_client.expectString
|
|
1334
|
+
});
|
|
1335
|
+
}, "de_RepositoryAssociation");
|
|
1336
|
+
var de_RepositoryAssociationSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1337
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1338
|
+
return de_RepositoryAssociationSummary(entry, context);
|
|
1339
|
+
});
|
|
1340
|
+
return retVal;
|
|
1341
|
+
}, "de_RepositoryAssociationSummaries");
|
|
1342
|
+
var de_RepositoryAssociationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1343
|
+
return (0, import_smithy_client.take)(output, {
|
|
1344
|
+
AssociationArn: import_smithy_client.expectString,
|
|
1345
|
+
AssociationId: import_smithy_client.expectString,
|
|
1346
|
+
ConnectionArn: import_smithy_client.expectString,
|
|
1347
|
+
LastUpdatedTimeStamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1348
|
+
Name: import_smithy_client.expectString,
|
|
1349
|
+
Owner: import_smithy_client.expectString,
|
|
1350
|
+
ProviderType: import_smithy_client.expectString,
|
|
1351
|
+
State: import_smithy_client.expectString
|
|
1352
|
+
});
|
|
1353
|
+
}, "de_RepositoryAssociationSummary");
|
|
1354
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1355
|
+
httpStatusCode: output.statusCode,
|
|
1356
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1357
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1358
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1359
|
+
}), "deserializeMetadata");
|
|
1360
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1361
|
+
var _MR = "MaxResults";
|
|
1362
|
+
var _N = "Names";
|
|
1363
|
+
var _NT = "NextToken";
|
|
1364
|
+
var _Na = "Name";
|
|
1365
|
+
var _O = "Owners";
|
|
1366
|
+
var _Ow = "Owner";
|
|
1367
|
+
var _PT = "ProviderTypes";
|
|
1368
|
+
var _PTr = "ProviderType";
|
|
1369
|
+
var _RI = "RecommendationId";
|
|
1370
|
+
var _RIe = "RecommendationIds";
|
|
1371
|
+
var _RN = "RepositoryNames";
|
|
1372
|
+
var _S = "States";
|
|
1373
|
+
var _St = "State";
|
|
1374
|
+
var _T = "Type";
|
|
1375
|
+
var _TK = "TagKeys";
|
|
1376
|
+
var _UI = "UserId";
|
|
1377
|
+
var _UIs = "UserIds";
|
|
1378
|
+
var _tK = "tagKeys";
|
|
1379
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1380
|
+
if (encoded.length) {
|
|
1381
|
+
return JSON.parse(encoded);
|
|
1382
|
+
}
|
|
1383
|
+
return {};
|
|
1384
|
+
}), "parseBody");
|
|
1385
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1386
|
+
const value = await parseBody(errorBody, context);
|
|
1387
|
+
value.message = value.message ?? value.Message;
|
|
1388
|
+
return value;
|
|
1389
|
+
}, "parseErrorBody");
|
|
1390
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1391
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1392
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1393
|
+
let cleanValue = rawValue;
|
|
1394
|
+
if (typeof cleanValue === "number") {
|
|
1395
|
+
cleanValue = cleanValue.toString();
|
|
1396
|
+
}
|
|
1397
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1398
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1399
|
+
}
|
|
1400
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1401
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1402
|
+
}
|
|
1403
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1404
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1405
|
+
}
|
|
1406
|
+
return cleanValue;
|
|
1407
|
+
}, "sanitizeErrorCode");
|
|
1408
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1409
|
+
if (headerKey !== void 0) {
|
|
1410
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1411
|
+
}
|
|
1412
|
+
if (data.code !== void 0) {
|
|
1413
|
+
return sanitizeErrorCode(data.code);
|
|
1414
|
+
}
|
|
1415
|
+
if (data["__type"] !== void 0) {
|
|
1416
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1417
|
+
}
|
|
1418
|
+
}, "loadRestJsonErrorCode");
|
|
1419
|
+
|
|
1420
|
+
// src/commands/AssociateRepositoryCommand.ts
|
|
1421
|
+
var _AssociateRepositoryCommand = class _AssociateRepositoryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1422
|
+
...commonParams
|
|
1423
|
+
}).m(function(Command, cs, config, o) {
|
|
1424
|
+
return [
|
|
1425
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1426
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1427
|
+
];
|
|
1428
|
+
}).s("AWSGuruFrontendService", "AssociateRepository", {}).n("CodeGuruReviewerClient", "AssociateRepositoryCommand").f(void 0, void 0).ser(se_AssociateRepositoryCommand).de(de_AssociateRepositoryCommand).build() {
|
|
1429
|
+
};
|
|
1430
|
+
__name(_AssociateRepositoryCommand, "AssociateRepositoryCommand");
|
|
1431
|
+
var AssociateRepositoryCommand = _AssociateRepositoryCommand;
|
|
1432
|
+
|
|
1433
|
+
// src/commands/CreateCodeReviewCommand.ts
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
var _CreateCodeReviewCommand = class _CreateCodeReviewCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1439
|
+
...commonParams
|
|
1440
|
+
}).m(function(Command, cs, config, o) {
|
|
1441
|
+
return [
|
|
1442
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1443
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1444
|
+
];
|
|
1445
|
+
}).s("AWSGuruFrontendService", "CreateCodeReview", {}).n("CodeGuruReviewerClient", "CreateCodeReviewCommand").f(void 0, void 0).ser(se_CreateCodeReviewCommand).de(de_CreateCodeReviewCommand).build() {
|
|
1446
|
+
};
|
|
1447
|
+
__name(_CreateCodeReviewCommand, "CreateCodeReviewCommand");
|
|
1448
|
+
var CreateCodeReviewCommand = _CreateCodeReviewCommand;
|
|
1449
|
+
|
|
1450
|
+
// src/commands/DescribeCodeReviewCommand.ts
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
var _DescribeCodeReviewCommand = class _DescribeCodeReviewCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1456
|
+
...commonParams
|
|
1457
|
+
}).m(function(Command, cs, config, o) {
|
|
1458
|
+
return [
|
|
1459
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1460
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1461
|
+
];
|
|
1462
|
+
}).s("AWSGuruFrontendService", "DescribeCodeReview", {}).n("CodeGuruReviewerClient", "DescribeCodeReviewCommand").f(void 0, void 0).ser(se_DescribeCodeReviewCommand).de(de_DescribeCodeReviewCommand).build() {
|
|
1463
|
+
};
|
|
1464
|
+
__name(_DescribeCodeReviewCommand, "DescribeCodeReviewCommand");
|
|
1465
|
+
var DescribeCodeReviewCommand = _DescribeCodeReviewCommand;
|
|
1466
|
+
|
|
1467
|
+
// src/commands/DescribeRecommendationFeedbackCommand.ts
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
var _DescribeRecommendationFeedbackCommand = class _DescribeRecommendationFeedbackCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1473
|
+
...commonParams
|
|
1474
|
+
}).m(function(Command, cs, config, o) {
|
|
1475
|
+
return [
|
|
1476
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1477
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1478
|
+
];
|
|
1479
|
+
}).s("AWSGuruFrontendService", "DescribeRecommendationFeedback", {}).n("CodeGuruReviewerClient", "DescribeRecommendationFeedbackCommand").f(void 0, void 0).ser(se_DescribeRecommendationFeedbackCommand).de(de_DescribeRecommendationFeedbackCommand).build() {
|
|
1480
|
+
};
|
|
1481
|
+
__name(_DescribeRecommendationFeedbackCommand, "DescribeRecommendationFeedbackCommand");
|
|
1482
|
+
var DescribeRecommendationFeedbackCommand = _DescribeRecommendationFeedbackCommand;
|
|
1483
|
+
|
|
1484
|
+
// src/commands/DescribeRepositoryAssociationCommand.ts
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
var _DescribeRepositoryAssociationCommand = class _DescribeRepositoryAssociationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1490
|
+
...commonParams
|
|
1491
|
+
}).m(function(Command, cs, config, o) {
|
|
1492
|
+
return [
|
|
1493
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1494
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1495
|
+
];
|
|
1496
|
+
}).s("AWSGuruFrontendService", "DescribeRepositoryAssociation", {}).n("CodeGuruReviewerClient", "DescribeRepositoryAssociationCommand").f(void 0, void 0).ser(se_DescribeRepositoryAssociationCommand).de(de_DescribeRepositoryAssociationCommand).build() {
|
|
1497
|
+
};
|
|
1498
|
+
__name(_DescribeRepositoryAssociationCommand, "DescribeRepositoryAssociationCommand");
|
|
1499
|
+
var DescribeRepositoryAssociationCommand = _DescribeRepositoryAssociationCommand;
|
|
1500
|
+
|
|
1501
|
+
// src/commands/DisassociateRepositoryCommand.ts
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
var _DisassociateRepositoryCommand = class _DisassociateRepositoryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1507
|
+
...commonParams
|
|
1508
|
+
}).m(function(Command, cs, config, o) {
|
|
1509
|
+
return [
|
|
1510
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1511
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1512
|
+
];
|
|
1513
|
+
}).s("AWSGuruFrontendService", "DisassociateRepository", {}).n("CodeGuruReviewerClient", "DisassociateRepositoryCommand").f(void 0, void 0).ser(se_DisassociateRepositoryCommand).de(de_DisassociateRepositoryCommand).build() {
|
|
1514
|
+
};
|
|
1515
|
+
__name(_DisassociateRepositoryCommand, "DisassociateRepositoryCommand");
|
|
1516
|
+
var DisassociateRepositoryCommand = _DisassociateRepositoryCommand;
|
|
1517
|
+
|
|
1518
|
+
// src/commands/ListCodeReviewsCommand.ts
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
var _ListCodeReviewsCommand = class _ListCodeReviewsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1524
|
+
...commonParams
|
|
1525
|
+
}).m(function(Command, cs, config, o) {
|
|
1526
|
+
return [
|
|
1527
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1528
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1529
|
+
];
|
|
1530
|
+
}).s("AWSGuruFrontendService", "ListCodeReviews", {}).n("CodeGuruReviewerClient", "ListCodeReviewsCommand").f(void 0, void 0).ser(se_ListCodeReviewsCommand).de(de_ListCodeReviewsCommand).build() {
|
|
1531
|
+
};
|
|
1532
|
+
__name(_ListCodeReviewsCommand, "ListCodeReviewsCommand");
|
|
1533
|
+
var ListCodeReviewsCommand = _ListCodeReviewsCommand;
|
|
1534
|
+
|
|
1535
|
+
// src/commands/ListRecommendationFeedbackCommand.ts
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
var _ListRecommendationFeedbackCommand = class _ListRecommendationFeedbackCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1541
|
+
...commonParams
|
|
1542
|
+
}).m(function(Command, cs, config, o) {
|
|
1543
|
+
return [
|
|
1544
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1545
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1546
|
+
];
|
|
1547
|
+
}).s("AWSGuruFrontendService", "ListRecommendationFeedback", {}).n("CodeGuruReviewerClient", "ListRecommendationFeedbackCommand").f(void 0, void 0).ser(se_ListRecommendationFeedbackCommand).de(de_ListRecommendationFeedbackCommand).build() {
|
|
1548
|
+
};
|
|
1549
|
+
__name(_ListRecommendationFeedbackCommand, "ListRecommendationFeedbackCommand");
|
|
1550
|
+
var ListRecommendationFeedbackCommand = _ListRecommendationFeedbackCommand;
|
|
1551
|
+
|
|
1552
|
+
// src/commands/ListRecommendationsCommand.ts
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
var _ListRecommendationsCommand = class _ListRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1558
|
+
...commonParams
|
|
1559
|
+
}).m(function(Command, cs, config, o) {
|
|
1560
|
+
return [
|
|
1561
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1562
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1563
|
+
];
|
|
1564
|
+
}).s("AWSGuruFrontendService", "ListRecommendations", {}).n("CodeGuruReviewerClient", "ListRecommendationsCommand").f(void 0, void 0).ser(se_ListRecommendationsCommand).de(de_ListRecommendationsCommand).build() {
|
|
1565
|
+
};
|
|
1566
|
+
__name(_ListRecommendationsCommand, "ListRecommendationsCommand");
|
|
1567
|
+
var ListRecommendationsCommand = _ListRecommendationsCommand;
|
|
1568
|
+
|
|
1569
|
+
// src/commands/ListRepositoryAssociationsCommand.ts
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
var _ListRepositoryAssociationsCommand = class _ListRepositoryAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1575
|
+
...commonParams
|
|
1576
|
+
}).m(function(Command, cs, config, o) {
|
|
1577
|
+
return [
|
|
1578
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1579
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1580
|
+
];
|
|
1581
|
+
}).s("AWSGuruFrontendService", "ListRepositoryAssociations", {}).n("CodeGuruReviewerClient", "ListRepositoryAssociationsCommand").f(void 0, void 0).ser(se_ListRepositoryAssociationsCommand).de(de_ListRepositoryAssociationsCommand).build() {
|
|
1582
|
+
};
|
|
1583
|
+
__name(_ListRepositoryAssociationsCommand, "ListRepositoryAssociationsCommand");
|
|
1584
|
+
var ListRepositoryAssociationsCommand = _ListRepositoryAssociationsCommand;
|
|
1585
|
+
|
|
1586
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1592
|
+
...commonParams
|
|
1593
|
+
}).m(function(Command, cs, config, o) {
|
|
1594
|
+
return [
|
|
1595
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1596
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1597
|
+
];
|
|
1598
|
+
}).s("AWSGuruFrontendService", "ListTagsForResource", {}).n("CodeGuruReviewerClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1599
|
+
};
|
|
1600
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1601
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1602
|
+
|
|
1603
|
+
// src/commands/PutRecommendationFeedbackCommand.ts
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
|
|
1608
|
+
var _PutRecommendationFeedbackCommand = class _PutRecommendationFeedbackCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1609
|
+
...commonParams
|
|
1610
|
+
}).m(function(Command, cs, config, o) {
|
|
1611
|
+
return [
|
|
1612
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1613
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1614
|
+
];
|
|
1615
|
+
}).s("AWSGuruFrontendService", "PutRecommendationFeedback", {}).n("CodeGuruReviewerClient", "PutRecommendationFeedbackCommand").f(void 0, void 0).ser(se_PutRecommendationFeedbackCommand).de(de_PutRecommendationFeedbackCommand).build() {
|
|
1616
|
+
};
|
|
1617
|
+
__name(_PutRecommendationFeedbackCommand, "PutRecommendationFeedbackCommand");
|
|
1618
|
+
var PutRecommendationFeedbackCommand = _PutRecommendationFeedbackCommand;
|
|
1619
|
+
|
|
1620
|
+
// src/commands/TagResourceCommand.ts
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1626
|
+
...commonParams
|
|
1627
|
+
}).m(function(Command, cs, config, o) {
|
|
1628
|
+
return [
|
|
1629
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1630
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1631
|
+
];
|
|
1632
|
+
}).s("AWSGuruFrontendService", "TagResource", {}).n("CodeGuruReviewerClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1633
|
+
};
|
|
1634
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1635
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1636
|
+
|
|
1637
|
+
// src/commands/UntagResourceCommand.ts
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1643
|
+
...commonParams
|
|
1644
|
+
}).m(function(Command, cs, config, o) {
|
|
1645
|
+
return [
|
|
1646
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1647
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1648
|
+
];
|
|
1649
|
+
}).s("AWSGuruFrontendService", "UntagResource", {}).n("CodeGuruReviewerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1650
|
+
};
|
|
1651
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1652
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1653
|
+
|
|
1654
|
+
// src/CodeGuruReviewer.ts
|
|
1655
|
+
var commands = {
|
|
1656
|
+
AssociateRepositoryCommand,
|
|
1657
|
+
CreateCodeReviewCommand,
|
|
1658
|
+
DescribeCodeReviewCommand,
|
|
1659
|
+
DescribeRecommendationFeedbackCommand,
|
|
1660
|
+
DescribeRepositoryAssociationCommand,
|
|
1661
|
+
DisassociateRepositoryCommand,
|
|
1662
|
+
ListCodeReviewsCommand,
|
|
1663
|
+
ListRecommendationFeedbackCommand,
|
|
1664
|
+
ListRecommendationsCommand,
|
|
1665
|
+
ListRepositoryAssociationsCommand,
|
|
1666
|
+
ListTagsForResourceCommand,
|
|
1667
|
+
PutRecommendationFeedbackCommand,
|
|
1668
|
+
TagResourceCommand,
|
|
1669
|
+
UntagResourceCommand
|
|
1670
|
+
};
|
|
1671
|
+
var _CodeGuruReviewer = class _CodeGuruReviewer extends CodeGuruReviewerClient {
|
|
1672
|
+
};
|
|
1673
|
+
__name(_CodeGuruReviewer, "CodeGuruReviewer");
|
|
1674
|
+
var CodeGuruReviewer = _CodeGuruReviewer;
|
|
1675
|
+
(0, import_smithy_client.createAggregatedClient)(commands, CodeGuruReviewer);
|
|
1676
|
+
|
|
1677
|
+
// src/pagination/ListCodeReviewsPaginator.ts
|
|
1678
|
+
|
|
1679
|
+
var paginateListCodeReviews = (0, import_core.createPaginator)(CodeGuruReviewerClient, ListCodeReviewsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1680
|
+
|
|
1681
|
+
// src/pagination/ListRecommendationFeedbackPaginator.ts
|
|
1682
|
+
|
|
1683
|
+
var paginateListRecommendationFeedback = (0, import_core.createPaginator)(CodeGuruReviewerClient, ListRecommendationFeedbackCommand, "NextToken", "NextToken", "MaxResults");
|
|
1684
|
+
|
|
1685
|
+
// src/pagination/ListRecommendationsPaginator.ts
|
|
1686
|
+
|
|
1687
|
+
var paginateListRecommendations = (0, import_core.createPaginator)(CodeGuruReviewerClient, ListRecommendationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1688
|
+
|
|
1689
|
+
// src/pagination/ListRepositoryAssociationsPaginator.ts
|
|
1690
|
+
|
|
1691
|
+
var paginateListRepositoryAssociations = (0, import_core.createPaginator)(CodeGuruReviewerClient, ListRepositoryAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1692
|
+
|
|
1693
|
+
// src/waiters/waitForCodeReviewCompleted.ts
|
|
1694
|
+
var import_util_waiter = require("@smithy/util-waiter");
|
|
1695
|
+
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
1696
|
+
let reason;
|
|
1697
|
+
try {
|
|
1698
|
+
const result = await client.send(new DescribeCodeReviewCommand(input));
|
|
1699
|
+
reason = result;
|
|
1700
|
+
try {
|
|
1701
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1702
|
+
return result.CodeReview.State;
|
|
1703
|
+
}, "returnComparator");
|
|
1704
|
+
if (returnComparator() === "Completed") {
|
|
1705
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1706
|
+
}
|
|
1707
|
+
} catch (e) {
|
|
1708
|
+
}
|
|
1709
|
+
try {
|
|
1710
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1711
|
+
return result.CodeReview.State;
|
|
1712
|
+
}, "returnComparator");
|
|
1713
|
+
if (returnComparator() === "Failed") {
|
|
1714
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1715
|
+
}
|
|
1716
|
+
} catch (e) {
|
|
1717
|
+
}
|
|
1718
|
+
try {
|
|
1719
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1720
|
+
return result.CodeReview.State;
|
|
1721
|
+
}, "returnComparator");
|
|
1722
|
+
if (returnComparator() === "Pending") {
|
|
1723
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
1724
|
+
}
|
|
1725
|
+
} catch (e) {
|
|
1726
|
+
}
|
|
1727
|
+
} catch (exception) {
|
|
1728
|
+
reason = exception;
|
|
1729
|
+
}
|
|
1730
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
1731
|
+
}, "checkState");
|
|
1732
|
+
var waitForCodeReviewCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
1733
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
1734
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
1735
|
+
}, "waitForCodeReviewCompleted");
|
|
1736
|
+
var waitUntilCodeReviewCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
1737
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
1738
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
1739
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
1740
|
+
}, "waitUntilCodeReviewCompleted");
|
|
1741
|
+
|
|
1742
|
+
// src/waiters/waitForRepositoryAssociationSucceeded.ts
|
|
1743
|
+
|
|
1744
|
+
var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
|
|
1745
|
+
let reason;
|
|
1746
|
+
try {
|
|
1747
|
+
const result = await client.send(new DescribeRepositoryAssociationCommand(input));
|
|
1748
|
+
reason = result;
|
|
1749
|
+
try {
|
|
1750
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1751
|
+
return result.RepositoryAssociation.State;
|
|
1752
|
+
}, "returnComparator");
|
|
1753
|
+
if (returnComparator() === "Associated") {
|
|
1754
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1755
|
+
}
|
|
1756
|
+
} catch (e) {
|
|
1757
|
+
}
|
|
1758
|
+
try {
|
|
1759
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1760
|
+
return result.RepositoryAssociation.State;
|
|
1761
|
+
}, "returnComparator");
|
|
1762
|
+
if (returnComparator() === "Failed") {
|
|
1763
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1764
|
+
}
|
|
1765
|
+
} catch (e) {
|
|
1766
|
+
}
|
|
1767
|
+
try {
|
|
1768
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1769
|
+
return result.RepositoryAssociation.State;
|
|
1770
|
+
}, "returnComparator");
|
|
1771
|
+
if (returnComparator() === "Associating") {
|
|
1772
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
1773
|
+
}
|
|
1774
|
+
} catch (e) {
|
|
1775
|
+
}
|
|
1776
|
+
} catch (exception) {
|
|
1777
|
+
reason = exception;
|
|
1778
|
+
}
|
|
1779
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
1780
|
+
}, "checkState");
|
|
1781
|
+
var waitForRepositoryAssociationSucceeded = /* @__PURE__ */ __name(async (params, input) => {
|
|
1782
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
1783
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
1784
|
+
}, "waitForRepositoryAssociationSucceeded");
|
|
1785
|
+
var waitUntilRepositoryAssociationSucceeded = /* @__PURE__ */ __name(async (params, input) => {
|
|
1786
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
1787
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
1788
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
1789
|
+
}, "waitUntilRepositoryAssociationSucceeded");
|
|
1790
|
+
|
|
1791
|
+
// src/index.ts
|
|
1792
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1793
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1794
|
+
0 && (module.exports = {
|
|
1795
|
+
AccessDeniedException,
|
|
1796
|
+
AnalysisType,
|
|
1797
|
+
AssociateRepositoryCommand,
|
|
1798
|
+
CodeGuruReviewer,
|
|
1799
|
+
CodeGuruReviewerClient,
|
|
1800
|
+
CodeGuruReviewerServiceException,
|
|
1801
|
+
ConfigFileState,
|
|
1802
|
+
ConflictException,
|
|
1803
|
+
CreateCodeReviewCommand,
|
|
1804
|
+
DescribeCodeReviewCommand,
|
|
1805
|
+
DescribeRecommendationFeedbackCommand,
|
|
1806
|
+
DescribeRepositoryAssociationCommand,
|
|
1807
|
+
DisassociateRepositoryCommand,
|
|
1808
|
+
EncryptionOption,
|
|
1809
|
+
InternalServerException,
|
|
1810
|
+
JobState,
|
|
1811
|
+
ListCodeReviewsCommand,
|
|
1812
|
+
ListRecommendationFeedbackCommand,
|
|
1813
|
+
ListRecommendationsCommand,
|
|
1814
|
+
ListRepositoryAssociationsCommand,
|
|
1815
|
+
ListTagsForResourceCommand,
|
|
1816
|
+
NotFoundException,
|
|
1817
|
+
ProviderType,
|
|
1818
|
+
PutRecommendationFeedbackCommand,
|
|
1819
|
+
Reaction,
|
|
1820
|
+
RecommendationCategory,
|
|
1821
|
+
RepositoryAssociationState,
|
|
1822
|
+
ResourceNotFoundException,
|
|
1823
|
+
Severity,
|
|
1824
|
+
TagResourceCommand,
|
|
1825
|
+
ThrottlingException,
|
|
1826
|
+
Type,
|
|
1827
|
+
UntagResourceCommand,
|
|
1828
|
+
ValidationException,
|
|
1829
|
+
VendorName,
|
|
1830
|
+
__Client,
|
|
1831
|
+
paginateListCodeReviews,
|
|
1832
|
+
paginateListRecommendationFeedback,
|
|
1833
|
+
paginateListRecommendations,
|
|
1834
|
+
paginateListRepositoryAssociations,
|
|
1835
|
+
waitForCodeReviewCompleted,
|
|
1836
|
+
waitForRepositoryAssociationSucceeded,
|
|
1837
|
+
waitUntilCodeReviewCompleted,
|
|
1838
|
+
waitUntilRepositoryAssociationSucceeded
|
|
1839
|
+
});
|