@aws-sdk/client-codeguru-reviewer 3.315.0 → 3.316.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 +18 -196
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/CodeGuruReviewer.js +18 -196
- package/dist-es/protocols/Aws_restJson1.js +2 -2
- package/dist-types/CodeGuruReviewer.d.ts +37 -78
- package/dist-types/ts3.4/CodeGuruReviewer.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CodeGuruReviewer = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CodeGuruReviewerClient_1 = require("./CodeGuruReviewerClient");
|
|
5
6
|
const AssociateRepositoryCommand_1 = require("./commands/AssociateRepositoryCommand");
|
|
6
7
|
const CreateCodeReviewCommand_1 = require("./commands/CreateCodeReviewCommand");
|
|
@@ -16,202 +17,23 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
|
|
|
16
17
|
const PutRecommendationFeedbackCommand_1 = require("./commands/PutRecommendationFeedbackCommand");
|
|
17
18
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
18
19
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
20
|
+
const commands = {
|
|
21
|
+
AssociateRepositoryCommand: AssociateRepositoryCommand_1.AssociateRepositoryCommand,
|
|
22
|
+
CreateCodeReviewCommand: CreateCodeReviewCommand_1.CreateCodeReviewCommand,
|
|
23
|
+
DescribeCodeReviewCommand: DescribeCodeReviewCommand_1.DescribeCodeReviewCommand,
|
|
24
|
+
DescribeRecommendationFeedbackCommand: DescribeRecommendationFeedbackCommand_1.DescribeRecommendationFeedbackCommand,
|
|
25
|
+
DescribeRepositoryAssociationCommand: DescribeRepositoryAssociationCommand_1.DescribeRepositoryAssociationCommand,
|
|
26
|
+
DisassociateRepositoryCommand: DisassociateRepositoryCommand_1.DisassociateRepositoryCommand,
|
|
27
|
+
ListCodeReviewsCommand: ListCodeReviewsCommand_1.ListCodeReviewsCommand,
|
|
28
|
+
ListRecommendationFeedbackCommand: ListRecommendationFeedbackCommand_1.ListRecommendationFeedbackCommand,
|
|
29
|
+
ListRecommendationsCommand: ListRecommendationsCommand_1.ListRecommendationsCommand,
|
|
30
|
+
ListRepositoryAssociationsCommand: ListRepositoryAssociationsCommand_1.ListRepositoryAssociationsCommand,
|
|
31
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
32
|
+
PutRecommendationFeedbackCommand: PutRecommendationFeedbackCommand_1.PutRecommendationFeedbackCommand,
|
|
33
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
34
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
35
|
+
};
|
|
19
36
|
class CodeGuruReviewer extends CodeGuruReviewerClient_1.CodeGuruReviewerClient {
|
|
20
|
-
associateRepository(args, optionsOrCb, cb) {
|
|
21
|
-
const command = new AssociateRepositoryCommand_1.AssociateRepositoryCommand(args);
|
|
22
|
-
if (typeof optionsOrCb === "function") {
|
|
23
|
-
this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
else if (typeof cb === "function") {
|
|
26
|
-
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
createCodeReview(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new CreateCodeReviewCommand_1.CreateCodeReviewCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
describeCodeReview(args, optionsOrCb, cb) {
|
|
49
|
-
const command = new DescribeCodeReviewCommand_1.DescribeCodeReviewCommand(args);
|
|
50
|
-
if (typeof optionsOrCb === "function") {
|
|
51
|
-
this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
else if (typeof cb === "function") {
|
|
54
|
-
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
describeRecommendationFeedback(args, optionsOrCb, cb) {
|
|
63
|
-
const command = new DescribeRecommendationFeedbackCommand_1.DescribeRecommendationFeedbackCommand(args);
|
|
64
|
-
if (typeof optionsOrCb === "function") {
|
|
65
|
-
this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
else if (typeof cb === "function") {
|
|
68
|
-
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
describeRepositoryAssociation(args, optionsOrCb, cb) {
|
|
77
|
-
const command = new DescribeRepositoryAssociationCommand_1.DescribeRepositoryAssociationCommand(args);
|
|
78
|
-
if (typeof optionsOrCb === "function") {
|
|
79
|
-
this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof cb === "function") {
|
|
82
|
-
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
disassociateRepository(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new DisassociateRepositoryCommand_1.DisassociateRepositoryCommand(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
listCodeReviews(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new ListCodeReviewsCommand_1.ListCodeReviewsCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
listRecommendationFeedback(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new ListRecommendationFeedbackCommand_1.ListRecommendationFeedbackCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
listRecommendations(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new ListRecommendationsCommand_1.ListRecommendationsCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
listRepositoryAssociations(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new ListRepositoryAssociationsCommand_1.ListRepositoryAssociationsCommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
putRecommendationFeedback(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new PutRecommendationFeedbackCommand_1.PutRecommendationFeedbackCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
tagResource(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
untagResource(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
37
|
}
|
|
217
38
|
exports.CodeGuruReviewer = CodeGuruReviewer;
|
|
39
|
+
(0, smithy_client_1.createAggregatedClient)(commands, CodeGuruReviewer);
|
|
@@ -14,7 +14,7 @@ const se_AssociateRepositoryCommand = async (input, context) => {
|
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
17
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
18
18
|
KMSKeyDetails: (_) => (0, smithy_client_1._json)(_),
|
|
19
19
|
Repository: (_) => (0, smithy_client_1._json)(_),
|
|
20
20
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -38,7 +38,7 @@ const se_CreateCodeReviewCommand = async (input, context) => {
|
|
|
38
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews";
|
|
39
39
|
let body;
|
|
40
40
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
-
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
41
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
42
42
|
Name: [],
|
|
43
43
|
RepositoryAssociationArn: [],
|
|
44
44
|
Type: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CodeGuruReviewerClient } from "./CodeGuruReviewerClient";
|
|
2
3
|
import { AssociateRepositoryCommand, } from "./commands/AssociateRepositoryCommand";
|
|
3
4
|
import { CreateCodeReviewCommand, } from "./commands/CreateCodeReviewCommand";
|
|
@@ -13,201 +14,22 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
13
14
|
import { PutRecommendationFeedbackCommand, } from "./commands/PutRecommendationFeedbackCommand";
|
|
14
15
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
15
16
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
17
|
+
const commands = {
|
|
18
|
+
AssociateRepositoryCommand,
|
|
19
|
+
CreateCodeReviewCommand,
|
|
20
|
+
DescribeCodeReviewCommand,
|
|
21
|
+
DescribeRecommendationFeedbackCommand,
|
|
22
|
+
DescribeRepositoryAssociationCommand,
|
|
23
|
+
DisassociateRepositoryCommand,
|
|
24
|
+
ListCodeReviewsCommand,
|
|
25
|
+
ListRecommendationFeedbackCommand,
|
|
26
|
+
ListRecommendationsCommand,
|
|
27
|
+
ListRepositoryAssociationsCommand,
|
|
28
|
+
ListTagsForResourceCommand,
|
|
29
|
+
PutRecommendationFeedbackCommand,
|
|
30
|
+
TagResourceCommand,
|
|
31
|
+
UntagResourceCommand,
|
|
32
|
+
};
|
|
16
33
|
export class CodeGuruReviewer extends CodeGuruReviewerClient {
|
|
17
|
-
associateRepository(args, optionsOrCb, cb) {
|
|
18
|
-
const command = new AssociateRepositoryCommand(args);
|
|
19
|
-
if (typeof optionsOrCb === "function") {
|
|
20
|
-
this.send(command, optionsOrCb);
|
|
21
|
-
}
|
|
22
|
-
else if (typeof cb === "function") {
|
|
23
|
-
if (typeof optionsOrCb !== "object")
|
|
24
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
25
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
return this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
createCodeReview(args, optionsOrCb, cb) {
|
|
32
|
-
const command = new CreateCodeReviewCommand(args);
|
|
33
|
-
if (typeof optionsOrCb === "function") {
|
|
34
|
-
this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
else if (typeof cb === "function") {
|
|
37
|
-
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
39
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
describeCodeReview(args, optionsOrCb, cb) {
|
|
46
|
-
const command = new DescribeCodeReviewCommand(args);
|
|
47
|
-
if (typeof optionsOrCb === "function") {
|
|
48
|
-
this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
else if (typeof cb === "function") {
|
|
51
|
-
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
53
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
describeRecommendationFeedback(args, optionsOrCb, cb) {
|
|
60
|
-
const command = new DescribeRecommendationFeedbackCommand(args);
|
|
61
|
-
if (typeof optionsOrCb === "function") {
|
|
62
|
-
this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
else if (typeof cb === "function") {
|
|
65
|
-
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
describeRepositoryAssociation(args, optionsOrCb, cb) {
|
|
74
|
-
const command = new DescribeRepositoryAssociationCommand(args);
|
|
75
|
-
if (typeof optionsOrCb === "function") {
|
|
76
|
-
this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
else if (typeof cb === "function") {
|
|
79
|
-
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
81
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
return this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
disassociateRepository(args, optionsOrCb, cb) {
|
|
88
|
-
const command = new DisassociateRepositoryCommand(args);
|
|
89
|
-
if (typeof optionsOrCb === "function") {
|
|
90
|
-
this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
else if (typeof cb === "function") {
|
|
93
|
-
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
95
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
return this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
listCodeReviews(args, optionsOrCb, cb) {
|
|
102
|
-
const command = new ListCodeReviewsCommand(args);
|
|
103
|
-
if (typeof optionsOrCb === "function") {
|
|
104
|
-
this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
else if (typeof cb === "function") {
|
|
107
|
-
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
listRecommendationFeedback(args, optionsOrCb, cb) {
|
|
116
|
-
const command = new ListRecommendationFeedbackCommand(args);
|
|
117
|
-
if (typeof optionsOrCb === "function") {
|
|
118
|
-
this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
else if (typeof cb === "function") {
|
|
121
|
-
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
123
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
return this.send(command, optionsOrCb);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
listRecommendations(args, optionsOrCb, cb) {
|
|
130
|
-
const command = new ListRecommendationsCommand(args);
|
|
131
|
-
if (typeof optionsOrCb === "function") {
|
|
132
|
-
this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
else if (typeof cb === "function") {
|
|
135
|
-
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
137
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
return this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
listRepositoryAssociations(args, optionsOrCb, cb) {
|
|
144
|
-
const command = new ListRepositoryAssociationsCommand(args);
|
|
145
|
-
if (typeof optionsOrCb === "function") {
|
|
146
|
-
this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
else if (typeof cb === "function") {
|
|
149
|
-
if (typeof optionsOrCb !== "object")
|
|
150
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
151
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
return this.send(command, optionsOrCb);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
158
|
-
const command = new ListTagsForResourceCommand(args);
|
|
159
|
-
if (typeof optionsOrCb === "function") {
|
|
160
|
-
this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
else if (typeof cb === "function") {
|
|
163
|
-
if (typeof optionsOrCb !== "object")
|
|
164
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
165
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
return this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
putRecommendationFeedback(args, optionsOrCb, cb) {
|
|
172
|
-
const command = new PutRecommendationFeedbackCommand(args);
|
|
173
|
-
if (typeof optionsOrCb === "function") {
|
|
174
|
-
this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
else if (typeof cb === "function") {
|
|
177
|
-
if (typeof optionsOrCb !== "object")
|
|
178
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
179
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
return this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
tagResource(args, optionsOrCb, cb) {
|
|
186
|
-
const command = new TagResourceCommand(args);
|
|
187
|
-
if (typeof optionsOrCb === "function") {
|
|
188
|
-
this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
else if (typeof cb === "function") {
|
|
191
|
-
if (typeof optionsOrCb !== "object")
|
|
192
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
193
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
return this.send(command, optionsOrCb);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
untagResource(args, optionsOrCb, cb) {
|
|
200
|
-
const command = new UntagResourceCommand(args);
|
|
201
|
-
if (typeof optionsOrCb === "function") {
|
|
202
|
-
this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
else if (typeof cb === "function") {
|
|
205
|
-
if (typeof optionsOrCb !== "object")
|
|
206
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
207
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
return this.send(command, optionsOrCb);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
34
|
}
|
|
35
|
+
createAggregatedClient(commands, CodeGuruReviewer);
|
|
@@ -11,7 +11,7 @@ export const se_AssociateRepositoryCommand = async (input, context) => {
|
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
|
-
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
14
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
15
15
|
KMSKeyDetails: (_) => _json(_),
|
|
16
16
|
Repository: (_) => _json(_),
|
|
17
17
|
Tags: (_) => _json(_),
|
|
@@ -34,7 +34,7 @@ export const se_CreateCodeReviewCommand = async (input, context) => {
|
|
|
34
34
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews";
|
|
35
35
|
let body;
|
|
36
36
|
body = JSON.stringify(take(input, {
|
|
37
|
-
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
37
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
38
38
|
Name: [],
|
|
39
39
|
RepositoryAssociationArn: [],
|
|
40
40
|
Type: (_) => _json(_),
|
|
@@ -14,152 +14,111 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
14
14
|
import { PutRecommendationFeedbackCommandInput, PutRecommendationFeedbackCommandOutput } from "./commands/PutRecommendationFeedbackCommand";
|
|
15
15
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
16
16
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
17
|
-
|
|
18
|
-
* @public
|
|
19
|
-
* <p>This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a
|
|
20
|
-
* service that uses program analysis and machine learning to detect potential defects that
|
|
21
|
-
* are difficult for developers to find and recommends fixes in your Java and Python
|
|
22
|
-
* code.</p>
|
|
23
|
-
*
|
|
24
|
-
* <p>By proactively detecting and providing recommendations for addressing code defects and
|
|
25
|
-
* implementing best practices, CodeGuru Reviewer improves the overall quality and maintainability of
|
|
26
|
-
* your code base during the code review stage. For more information about CodeGuru Reviewer, see the
|
|
27
|
-
* <i>
|
|
28
|
-
* <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/welcome.html">Amazon CodeGuru Reviewer User Guide</a>.</i>
|
|
29
|
-
* </p>
|
|
30
|
-
*
|
|
31
|
-
* <p>To improve the security of your CodeGuru Reviewer API calls, you can establish a private connection
|
|
32
|
-
* between your VPC and CodeGuru Reviewer by creating an <i>interface VPC endpoint</i>. For
|
|
33
|
-
* more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/vpc-interface-endpoints.html">CodeGuru Reviewer and interface VPC
|
|
34
|
-
* endpoints (Amazon Web Services PrivateLink)</a> in the <i>Amazon CodeGuru Reviewer User
|
|
35
|
-
* Guide</i>.</p>
|
|
36
|
-
*/
|
|
37
|
-
export declare class CodeGuruReviewer extends CodeGuruReviewerClient {
|
|
17
|
+
export interface CodeGuruReviewer {
|
|
38
18
|
/**
|
|
39
|
-
* @
|
|
40
|
-
* <p>Use to associate an Amazon Web Services CodeCommit repository or a repository managed by Amazon Web Services
|
|
41
|
-
* CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a repository, CodeGuru Reviewer reviews
|
|
42
|
-
* source code changes in the repository's pull requests and provides automatic
|
|
43
|
-
* recommendations. You can view recommendations using the CodeGuru Reviewer console. For more
|
|
44
|
-
* information, see <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html">Recommendations in
|
|
45
|
-
* Amazon CodeGuru Reviewer</a> in the <i>Amazon CodeGuru Reviewer User Guide.</i>
|
|
46
|
-
* </p>
|
|
47
|
-
*
|
|
48
|
-
* <p>If you associate a CodeCommit or S3 repository, it must be in the same Amazon Web Services Region and
|
|
49
|
-
* Amazon Web Services account where its CodeGuru Reviewer code reviews are configured.</p>
|
|
50
|
-
*
|
|
51
|
-
* <p>Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services CodeStar
|
|
52
|
-
* Connections to connect to CodeGuru Reviewer. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-associate-repository.html">Associate a
|
|
53
|
-
* repository</a> in the <i>Amazon CodeGuru Reviewer User Guide.</i>
|
|
54
|
-
* </p>
|
|
55
|
-
*
|
|
56
|
-
* <note>
|
|
57
|
-
* <p>You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services CLI to associate a GitHub repository with
|
|
58
|
-
* Amazon CodeGuru Reviewer. To associate a GitHub repository, use the console. For more information, see
|
|
59
|
-
* <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html">Getting started with
|
|
60
|
-
* CodeGuru Reviewer</a> in the <i>CodeGuru Reviewer User Guide.</i>
|
|
61
|
-
* </p>
|
|
62
|
-
* </note>
|
|
19
|
+
* @see {@link AssociateRepositoryCommand}
|
|
63
20
|
*/
|
|
64
21
|
associateRepository(args: AssociateRepositoryCommandInput, options?: __HttpHandlerOptions): Promise<AssociateRepositoryCommandOutput>;
|
|
65
22
|
associateRepository(args: AssociateRepositoryCommandInput, cb: (err: any, data?: AssociateRepositoryCommandOutput) => void): void;
|
|
66
23
|
associateRepository(args: AssociateRepositoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateRepositoryCommandOutput) => void): void;
|
|
67
24
|
/**
|
|
68
|
-
* @
|
|
69
|
-
* <p>Use to create a code review with a <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html">CodeReviewType</a> of
|
|
70
|
-
* <code>RepositoryAnalysis</code>. This type of code review analyzes all code under a
|
|
71
|
-
* specified branch in an associated repository. <code>PullRequest</code> code reviews are
|
|
72
|
-
* automatically triggered by a pull request.</p>
|
|
25
|
+
* @see {@link CreateCodeReviewCommand}
|
|
73
26
|
*/
|
|
74
27
|
createCodeReview(args: CreateCodeReviewCommandInput, options?: __HttpHandlerOptions): Promise<CreateCodeReviewCommandOutput>;
|
|
75
28
|
createCodeReview(args: CreateCodeReviewCommandInput, cb: (err: any, data?: CreateCodeReviewCommandOutput) => void): void;
|
|
76
29
|
createCodeReview(args: CreateCodeReviewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCodeReviewCommandOutput) => void): void;
|
|
77
30
|
/**
|
|
78
|
-
* @
|
|
79
|
-
* <p>Returns the metadata associated with the code review along with its status.</p>
|
|
31
|
+
* @see {@link DescribeCodeReviewCommand}
|
|
80
32
|
*/
|
|
81
33
|
describeCodeReview(args: DescribeCodeReviewCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCodeReviewCommandOutput>;
|
|
82
34
|
describeCodeReview(args: DescribeCodeReviewCommandInput, cb: (err: any, data?: DescribeCodeReviewCommandOutput) => void): void;
|
|
83
35
|
describeCodeReview(args: DescribeCodeReviewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCodeReviewCommandOutput) => void): void;
|
|
84
36
|
/**
|
|
85
|
-
* @
|
|
86
|
-
* <p>Describes the customer feedback for a CodeGuru Reviewer recommendation.</p>
|
|
37
|
+
* @see {@link DescribeRecommendationFeedbackCommand}
|
|
87
38
|
*/
|
|
88
39
|
describeRecommendationFeedback(args: DescribeRecommendationFeedbackCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRecommendationFeedbackCommandOutput>;
|
|
89
40
|
describeRecommendationFeedback(args: DescribeRecommendationFeedbackCommandInput, cb: (err: any, data?: DescribeRecommendationFeedbackCommandOutput) => void): void;
|
|
90
41
|
describeRecommendationFeedback(args: DescribeRecommendationFeedbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRecommendationFeedbackCommandOutput) => void): void;
|
|
91
42
|
/**
|
|
92
|
-
* @
|
|
93
|
-
* <p>Returns a <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">RepositoryAssociation</a> object that contains information about the requested
|
|
94
|
-
* repository association.</p>
|
|
43
|
+
* @see {@link DescribeRepositoryAssociationCommand}
|
|
95
44
|
*/
|
|
96
45
|
describeRepositoryAssociation(args: DescribeRepositoryAssociationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRepositoryAssociationCommandOutput>;
|
|
97
46
|
describeRepositoryAssociation(args: DescribeRepositoryAssociationCommandInput, cb: (err: any, data?: DescribeRepositoryAssociationCommandOutput) => void): void;
|
|
98
47
|
describeRepositoryAssociation(args: DescribeRepositoryAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRepositoryAssociationCommandOutput) => void): void;
|
|
99
48
|
/**
|
|
100
|
-
* @
|
|
101
|
-
* <p>Removes the association between Amazon CodeGuru Reviewer and a repository.</p>
|
|
49
|
+
* @see {@link DisassociateRepositoryCommand}
|
|
102
50
|
*/
|
|
103
51
|
disassociateRepository(args: DisassociateRepositoryCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateRepositoryCommandOutput>;
|
|
104
52
|
disassociateRepository(args: DisassociateRepositoryCommandInput, cb: (err: any, data?: DisassociateRepositoryCommandOutput) => void): void;
|
|
105
53
|
disassociateRepository(args: DisassociateRepositoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateRepositoryCommandOutput) => void): void;
|
|
106
54
|
/**
|
|
107
|
-
* @
|
|
108
|
-
* <p>Lists all the code reviews that the customer has created in the past 90 days.</p>
|
|
55
|
+
* @see {@link ListCodeReviewsCommand}
|
|
109
56
|
*/
|
|
110
57
|
listCodeReviews(args: ListCodeReviewsCommandInput, options?: __HttpHandlerOptions): Promise<ListCodeReviewsCommandOutput>;
|
|
111
58
|
listCodeReviews(args: ListCodeReviewsCommandInput, cb: (err: any, data?: ListCodeReviewsCommandOutput) => void): void;
|
|
112
59
|
listCodeReviews(args: ListCodeReviewsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCodeReviewsCommandOutput) => void): void;
|
|
113
60
|
/**
|
|
114
|
-
* @
|
|
115
|
-
* <p>Returns a list of <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html">RecommendationFeedbackSummary</a> objects that contain customer recommendation
|
|
116
|
-
* feedback for all CodeGuru Reviewer users.</p>
|
|
61
|
+
* @see {@link ListRecommendationFeedbackCommand}
|
|
117
62
|
*/
|
|
118
63
|
listRecommendationFeedback(args: ListRecommendationFeedbackCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationFeedbackCommandOutput>;
|
|
119
64
|
listRecommendationFeedback(args: ListRecommendationFeedbackCommandInput, cb: (err: any, data?: ListRecommendationFeedbackCommandOutput) => void): void;
|
|
120
65
|
listRecommendationFeedback(args: ListRecommendationFeedbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationFeedbackCommandOutput) => void): void;
|
|
121
66
|
/**
|
|
122
|
-
* @
|
|
123
|
-
* <p>Returns the list of all recommendations for a completed code review.</p>
|
|
67
|
+
* @see {@link ListRecommendationsCommand}
|
|
124
68
|
*/
|
|
125
69
|
listRecommendations(args: ListRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationsCommandOutput>;
|
|
126
70
|
listRecommendations(args: ListRecommendationsCommandInput, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
|
|
127
71
|
listRecommendations(args: ListRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
|
|
128
72
|
/**
|
|
129
|
-
* @
|
|
130
|
-
* <p>Returns a list of <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html">RepositoryAssociationSummary</a> objects that contain summary information about a
|
|
131
|
-
* repository association. You can filter the returned list by <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-ProviderType">ProviderType</a>, <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Name">Name</a>, <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-State">State</a>, and <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Owner">Owner</a>.</p>
|
|
73
|
+
* @see {@link ListRepositoryAssociationsCommand}
|
|
132
74
|
*/
|
|
133
75
|
listRepositoryAssociations(args: ListRepositoryAssociationsCommandInput, options?: __HttpHandlerOptions): Promise<ListRepositoryAssociationsCommandOutput>;
|
|
134
76
|
listRepositoryAssociations(args: ListRepositoryAssociationsCommandInput, cb: (err: any, data?: ListRepositoryAssociationsCommandOutput) => void): void;
|
|
135
77
|
listRepositoryAssociations(args: ListRepositoryAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRepositoryAssociationsCommandOutput) => void): void;
|
|
136
78
|
/**
|
|
137
|
-
* @
|
|
138
|
-
* <p>Returns the list of tags associated with an associated repository resource.</p>
|
|
79
|
+
* @see {@link ListTagsForResourceCommand}
|
|
139
80
|
*/
|
|
140
81
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
141
82
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
142
83
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
143
84
|
/**
|
|
144
|
-
* @
|
|
145
|
-
* <p>Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with
|
|
146
|
-
* different reactions the previous feedback is overwritten.</p>
|
|
85
|
+
* @see {@link PutRecommendationFeedbackCommand}
|
|
147
86
|
*/
|
|
148
87
|
putRecommendationFeedback(args: PutRecommendationFeedbackCommandInput, options?: __HttpHandlerOptions): Promise<PutRecommendationFeedbackCommandOutput>;
|
|
149
88
|
putRecommendationFeedback(args: PutRecommendationFeedbackCommandInput, cb: (err: any, data?: PutRecommendationFeedbackCommandOutput) => void): void;
|
|
150
89
|
putRecommendationFeedback(args: PutRecommendationFeedbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecommendationFeedbackCommandOutput) => void): void;
|
|
151
90
|
/**
|
|
152
|
-
* @
|
|
153
|
-
* <p>Adds one or more tags to an associated repository.</p>
|
|
91
|
+
* @see {@link TagResourceCommand}
|
|
154
92
|
*/
|
|
155
93
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
156
94
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
157
95
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
158
96
|
/**
|
|
159
|
-
* @
|
|
160
|
-
* <p>Removes a tag from an associated repository.</p>
|
|
97
|
+
* @see {@link UntagResourceCommand}
|
|
161
98
|
*/
|
|
162
99
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
163
100
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
164
101
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
165
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
* <p>This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a
|
|
106
|
+
* service that uses program analysis and machine learning to detect potential defects that
|
|
107
|
+
* are difficult for developers to find and recommends fixes in your Java and Python
|
|
108
|
+
* code.</p>
|
|
109
|
+
*
|
|
110
|
+
* <p>By proactively detecting and providing recommendations for addressing code defects and
|
|
111
|
+
* implementing best practices, CodeGuru Reviewer improves the overall quality and maintainability of
|
|
112
|
+
* your code base during the code review stage. For more information about CodeGuru Reviewer, see the
|
|
113
|
+
* <i>
|
|
114
|
+
* <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/welcome.html">Amazon CodeGuru Reviewer User Guide</a>.</i>
|
|
115
|
+
* </p>
|
|
116
|
+
*
|
|
117
|
+
* <p>To improve the security of your CodeGuru Reviewer API calls, you can establish a private connection
|
|
118
|
+
* between your VPC and CodeGuru Reviewer by creating an <i>interface VPC endpoint</i>. For
|
|
119
|
+
* more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/vpc-interface-endpoints.html">CodeGuru Reviewer and interface VPC
|
|
120
|
+
* endpoints (Amazon Web Services PrivateLink)</a> in the <i>Amazon CodeGuru Reviewer User
|
|
121
|
+
* Guide</i>.</p>
|
|
122
|
+
*/
|
|
123
|
+
export declare class CodeGuruReviewer extends CodeGuruReviewerClient implements CodeGuruReviewer {
|
|
124
|
+
}
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
UntagResourceCommandInput,
|
|
57
57
|
UntagResourceCommandOutput,
|
|
58
58
|
} from "./commands/UntagResourceCommand";
|
|
59
|
-
export
|
|
59
|
+
export interface CodeGuruReviewer {
|
|
60
60
|
associateRepository(
|
|
61
61
|
args: AssociateRepositoryCommandInput,
|
|
62
62
|
options?: __HttpHandlerOptions
|
|
@@ -240,3 +240,6 @@ export declare class CodeGuruReviewer extends CodeGuruReviewerClient {
|
|
|
240
240
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
241
241
|
): void;
|
|
242
242
|
}
|
|
243
|
+
export declare class CodeGuruReviewer
|
|
244
|
+
extends CodeGuruReviewerClient
|
|
245
|
+
implements CodeGuruReviewer {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codeguru-reviewer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codeguru Reviewer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|