aws-sdk 2.658.0 → 2.662.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/CHANGELOG.md +30 -1
- package/README.md +1 -1
- package/apis/apigatewayv2-2018-11-29.min.json +51 -0
- package/apis/application-autoscaling-2016-02-06.examples.json +6 -169
- package/apis/ce-2017-10-25.min.json +123 -88
- package/apis/ce-2017-10-25.paginators.json +5 -0
- package/apis/codeguru-reviewer-2019-09-19.min.json +341 -3
- package/apis/codeguru-reviewer-2019-09-19.paginators.json +15 -0
- package/apis/elasticmapreduce-2009-03-31.min.json +98 -17
- package/apis/es-2015-01-01.min.json +3 -0
- package/apis/firehose-2015-08-04.min.json +74 -30
- package/apis/guardduty-2017-11-28.min.json +165 -16
- package/apis/guardduty-2017-11-28.paginators.json +6 -0
- package/apis/iotevents-2018-07-27.min.json +102 -20
- package/apis/mediapackage-vod-2018-11-07.min.json +173 -36
- package/apis/metadata.json +3 -0
- package/apis/pinpoint-2016-12-01.min.json +363 -335
- package/apis/ram-2018-01-04.min.json +30 -0
- package/apis/rds-2014-10-31.min.json +2 -0
- package/apis/redshift-2012-12-01.min.json +154 -46
- package/apis/redshift-2012-12-01.paginators.json +6 -0
- package/apis/route53domains-2014-05-15.min.json +97 -24
- package/apis/storagegateway-2013-06-30.min.json +99 -14
- package/apis/synthetics-2017-10-11.examples.json +5 -0
- package/apis/synthetics-2017-10-11.min.json +578 -0
- package/apis/synthetics-2017-10-11.paginators.json +24 -0
- package/apis/transfer-2018-11-05.min.json +41 -24
- package/clients/all.d.ts +1 -0
- package/clients/all.js +2 -1
- package/clients/apigatewayv2.d.ts +40 -2
- package/clients/applicationautoscaling.d.ts +83 -83
- package/clients/codegurureviewer.d.ts +417 -10
- package/clients/costexplorer.d.ts +66 -28
- package/clients/emr.d.ts +91 -6
- package/clients/es.d.ts +4 -0
- package/clients/firehose.d.ts +50 -8
- package/clients/fms.d.ts +6 -6
- package/clients/glue.d.ts +4 -4
- package/clients/guardduty.d.ts +340 -224
- package/clients/iotevents.d.ts +106 -0
- package/clients/mediapackagevod.d.ts +55 -0
- package/clients/pinpoint.d.ts +115 -77
- package/clients/ram.d.ts +41 -2
- package/clients/rds.d.ts +13 -5
- package/clients/redshift.d.ts +162 -1
- package/clients/route53domains.d.ts +140 -47
- package/clients/storagegateway.d.ts +137 -60
- package/clients/synthetics.d.ts +656 -0
- package/clients/synthetics.js +18 -0
- package/clients/transfer.d.ts +154 -123
- package/dist/aws-sdk-core-react-native.js +2 -2
- package/dist/aws-sdk-react-native.js +61 -24
- package/dist/aws-sdk.js +664 -222
- package/dist/aws-sdk.min.js +74 -74
- package/lib/config_service_placeholders.d.ts +2 -0
- package/lib/core.js +1 -1
- package/package.json +1 -1
|
@@ -12,13 +12,29 @@ declare class CodeGuruReviewer extends Service {
|
|
|
12
12
|
constructor(options?: CodeGuruReviewer.Types.ClientConfiguration)
|
|
13
13
|
config: Config & CodeGuruReviewer.Types.ClientConfiguration;
|
|
14
14
|
/**
|
|
15
|
-
* Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer. When you associate an AWS CodeCommit repository with Amazon CodeGuru Reviewer, Amazon CodeGuru Reviewer will provide recommendations for each pull request. You can view recommendations in the AWS CodeCommit repository. You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.
|
|
15
|
+
* Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer. When you associate an AWS CodeCommit repository with Amazon CodeGuru Reviewer, Amazon CodeGuru Reviewer will provide recommendations for each pull request raised within the repository. You can view recommendations in the AWS CodeCommit repository. You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.
|
|
16
16
|
*/
|
|
17
17
|
associateRepository(params: CodeGuruReviewer.Types.AssociateRepositoryRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.AssociateRepositoryResponse) => void): Request<CodeGuruReviewer.Types.AssociateRepositoryResponse, AWSError>;
|
|
18
18
|
/**
|
|
19
|
-
* Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer. When you associate an AWS CodeCommit repository with Amazon CodeGuru Reviewer, Amazon CodeGuru Reviewer will provide recommendations for each pull request. You can view recommendations in the AWS CodeCommit repository. You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.
|
|
19
|
+
* Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer. When you associate an AWS CodeCommit repository with Amazon CodeGuru Reviewer, Amazon CodeGuru Reviewer will provide recommendations for each pull request raised within the repository. You can view recommendations in the AWS CodeCommit repository. You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.
|
|
20
20
|
*/
|
|
21
21
|
associateRepository(callback?: (err: AWSError, data: CodeGuruReviewer.Types.AssociateRepositoryResponse) => void): Request<CodeGuruReviewer.Types.AssociateRepositoryResponse, AWSError>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the metadaata associated with the code review along with its status.
|
|
24
|
+
*/
|
|
25
|
+
describeCodeReview(params: CodeGuruReviewer.Types.DescribeCodeReviewRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.DescribeCodeReviewResponse) => void): Request<CodeGuruReviewer.Types.DescribeCodeReviewResponse, AWSError>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the metadaata associated with the code review along with its status.
|
|
28
|
+
*/
|
|
29
|
+
describeCodeReview(callback?: (err: AWSError, data: CodeGuruReviewer.Types.DescribeCodeReviewResponse) => void): Request<CodeGuruReviewer.Types.DescribeCodeReviewResponse, AWSError>;
|
|
30
|
+
/**
|
|
31
|
+
* Describes the customer feedback for a CodeGuru Reviewer recommendation.
|
|
32
|
+
*/
|
|
33
|
+
describeRecommendationFeedback(params: CodeGuruReviewer.Types.DescribeRecommendationFeedbackRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.DescribeRecommendationFeedbackResponse) => void): Request<CodeGuruReviewer.Types.DescribeRecommendationFeedbackResponse, AWSError>;
|
|
34
|
+
/**
|
|
35
|
+
* Describes the customer feedback for a CodeGuru Reviewer recommendation.
|
|
36
|
+
*/
|
|
37
|
+
describeRecommendationFeedback(callback?: (err: AWSError, data: CodeGuruReviewer.Types.DescribeRecommendationFeedbackResponse) => void): Request<CodeGuruReviewer.Types.DescribeRecommendationFeedbackResponse, AWSError>;
|
|
22
38
|
/**
|
|
23
39
|
* Describes a repository association.
|
|
24
40
|
*/
|
|
@@ -35,6 +51,30 @@ declare class CodeGuruReviewer extends Service {
|
|
|
35
51
|
* Removes the association between Amazon CodeGuru Reviewer and a repository.
|
|
36
52
|
*/
|
|
37
53
|
disassociateRepository(callback?: (err: AWSError, data: CodeGuruReviewer.Types.DisassociateRepositoryResponse) => void): Request<CodeGuruReviewer.Types.DisassociateRepositoryResponse, AWSError>;
|
|
54
|
+
/**
|
|
55
|
+
* Lists all the code reviews that the customer has created in the past 90 days.
|
|
56
|
+
*/
|
|
57
|
+
listCodeReviews(params: CodeGuruReviewer.Types.ListCodeReviewsRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListCodeReviewsResponse) => void): Request<CodeGuruReviewer.Types.ListCodeReviewsResponse, AWSError>;
|
|
58
|
+
/**
|
|
59
|
+
* Lists all the code reviews that the customer has created in the past 90 days.
|
|
60
|
+
*/
|
|
61
|
+
listCodeReviews(callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListCodeReviewsResponse) => void): Request<CodeGuruReviewer.Types.ListCodeReviewsResponse, AWSError>;
|
|
62
|
+
/**
|
|
63
|
+
* Lists the customer feedback for a CodeGuru Reviewer recommendation for all users. This API will be used from the console to extract the previously given feedback by the user to pre-populate the feedback emojis for all recommendations.
|
|
64
|
+
*/
|
|
65
|
+
listRecommendationFeedback(params: CodeGuruReviewer.Types.ListRecommendationFeedbackRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListRecommendationFeedbackResponse) => void): Request<CodeGuruReviewer.Types.ListRecommendationFeedbackResponse, AWSError>;
|
|
66
|
+
/**
|
|
67
|
+
* Lists the customer feedback for a CodeGuru Reviewer recommendation for all users. This API will be used from the console to extract the previously given feedback by the user to pre-populate the feedback emojis for all recommendations.
|
|
68
|
+
*/
|
|
69
|
+
listRecommendationFeedback(callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListRecommendationFeedbackResponse) => void): Request<CodeGuruReviewer.Types.ListRecommendationFeedbackResponse, AWSError>;
|
|
70
|
+
/**
|
|
71
|
+
* Returns the list of all recommendations for a completed code review.
|
|
72
|
+
*/
|
|
73
|
+
listRecommendations(params: CodeGuruReviewer.Types.ListRecommendationsRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListRecommendationsResponse) => void): Request<CodeGuruReviewer.Types.ListRecommendationsResponse, AWSError>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the list of all recommendations for a completed code review.
|
|
76
|
+
*/
|
|
77
|
+
listRecommendations(callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListRecommendationsResponse) => void): Request<CodeGuruReviewer.Types.ListRecommendationsResponse, AWSError>;
|
|
38
78
|
/**
|
|
39
79
|
* Lists repository associations. You can optionally filter on one or more of the following recommendation properties: provider types, states, names, and owners.
|
|
40
80
|
*/
|
|
@@ -43,6 +83,14 @@ declare class CodeGuruReviewer extends Service {
|
|
|
43
83
|
* Lists repository associations. You can optionally filter on one or more of the following recommendation properties: provider types, states, names, and owners.
|
|
44
84
|
*/
|
|
45
85
|
listRepositoryAssociations(callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListRepositoryAssociationsResponse) => void): Request<CodeGuruReviewer.Types.ListRepositoryAssociationsResponse, AWSError>;
|
|
86
|
+
/**
|
|
87
|
+
* Stores customer feedback for a CodeGuru-Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
|
|
88
|
+
*/
|
|
89
|
+
putRecommendationFeedback(params: CodeGuruReviewer.Types.PutRecommendationFeedbackRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.PutRecommendationFeedbackResponse) => void): Request<CodeGuruReviewer.Types.PutRecommendationFeedbackResponse, AWSError>;
|
|
90
|
+
/**
|
|
91
|
+
* Stores customer feedback for a CodeGuru-Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
|
|
92
|
+
*/
|
|
93
|
+
putRecommendationFeedback(callback?: (err: AWSError, data: CodeGuruReviewer.Types.PutRecommendationFeedbackResponse) => void): Request<CodeGuruReviewer.Types.PutRecommendationFeedbackResponse, AWSError>;
|
|
46
94
|
}
|
|
47
95
|
declare namespace CodeGuruReviewer {
|
|
48
96
|
export type Arn = string;
|
|
@@ -52,7 +100,7 @@ declare namespace CodeGuruReviewer {
|
|
|
52
100
|
*/
|
|
53
101
|
Repository: Repository;
|
|
54
102
|
/**
|
|
55
|
-
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
|
103
|
+
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. To add a new repository association, this parameter specifies a unique identifier for the new repository association that helps ensure idempotency. If you use the AWS CLI or one of the AWS SDKs to call this operation, you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that in the request. If you don't use the SDK and instead generate a raw HTTP request to the Secrets Manager service endpoint, you must generate a ClientRequestToken yourself for new versions and include that value in the request. You typically interact with this value if you implement your own retry logic and want to ensure that a given repository association is not created twice. We recommend that you generate a UUID-type value to ensure uniqueness within the specified repository association. Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
|
|
56
104
|
*/
|
|
57
105
|
ClientRequestToken?: ClientRequestToken;
|
|
58
106
|
}
|
|
@@ -70,9 +118,153 @@ declare namespace CodeGuruReviewer {
|
|
|
70
118
|
*/
|
|
71
119
|
Name: Name;
|
|
72
120
|
}
|
|
121
|
+
export interface CodeReview {
|
|
122
|
+
/**
|
|
123
|
+
* The name of the code review.
|
|
124
|
+
*/
|
|
125
|
+
Name?: Name;
|
|
126
|
+
/**
|
|
127
|
+
* The Amazon Resource Name (ARN) of the code review to describe.
|
|
128
|
+
*/
|
|
129
|
+
CodeReviewArn?: Arn;
|
|
130
|
+
/**
|
|
131
|
+
* The name of the repository.
|
|
132
|
+
*/
|
|
133
|
+
RepositoryName?: Name;
|
|
134
|
+
/**
|
|
135
|
+
* The owner of the repository.
|
|
136
|
+
*/
|
|
137
|
+
Owner?: Owner;
|
|
138
|
+
/**
|
|
139
|
+
* The provider type of the repository association.
|
|
140
|
+
*/
|
|
141
|
+
ProviderType?: ProviderType;
|
|
142
|
+
/**
|
|
143
|
+
* The state of the code review.
|
|
144
|
+
*/
|
|
145
|
+
State?: JobState;
|
|
146
|
+
/**
|
|
147
|
+
* The reason for the state of the code review.
|
|
148
|
+
*/
|
|
149
|
+
StateReason?: StateReason;
|
|
150
|
+
/**
|
|
151
|
+
* The time, in milliseconds since the epoch, when the code review was created.
|
|
152
|
+
*/
|
|
153
|
+
CreatedTimeStamp?: TimeStamp;
|
|
154
|
+
/**
|
|
155
|
+
* The time, in milliseconds since the epoch, when the code review was last updated.
|
|
156
|
+
*/
|
|
157
|
+
LastUpdatedTimeStamp?: TimeStamp;
|
|
158
|
+
/**
|
|
159
|
+
* The type of code review.
|
|
160
|
+
*/
|
|
161
|
+
Type?: Type;
|
|
162
|
+
/**
|
|
163
|
+
* The pull request ID for the code review.
|
|
164
|
+
*/
|
|
165
|
+
PullRequestId?: PullRequestId;
|
|
166
|
+
/**
|
|
167
|
+
* The type of the source code for the code review.
|
|
168
|
+
*/
|
|
169
|
+
SourceCodeType?: SourceCodeType;
|
|
170
|
+
/**
|
|
171
|
+
* The statistics from the code review.
|
|
172
|
+
*/
|
|
173
|
+
Metrics?: Metrics;
|
|
174
|
+
}
|
|
175
|
+
export type CodeReviewSummaries = CodeReviewSummary[];
|
|
176
|
+
export interface CodeReviewSummary {
|
|
177
|
+
/**
|
|
178
|
+
* The name of the code review.
|
|
179
|
+
*/
|
|
180
|
+
Name?: Name;
|
|
181
|
+
/**
|
|
182
|
+
* The Amazon Resource Name (ARN) of the code review to describe.
|
|
183
|
+
*/
|
|
184
|
+
CodeReviewArn?: Arn;
|
|
185
|
+
/**
|
|
186
|
+
* The name of the repository.
|
|
187
|
+
*/
|
|
188
|
+
RepositoryName?: Name;
|
|
189
|
+
/**
|
|
190
|
+
* The owner of the repository.
|
|
191
|
+
*/
|
|
192
|
+
Owner?: Owner;
|
|
193
|
+
/**
|
|
194
|
+
* The provider type of the repository association.
|
|
195
|
+
*/
|
|
196
|
+
ProviderType?: ProviderType;
|
|
197
|
+
/**
|
|
198
|
+
* The state of the code review.
|
|
199
|
+
*/
|
|
200
|
+
State?: JobState;
|
|
201
|
+
/**
|
|
202
|
+
* The time, in milliseconds since the epoch, when the code review was created.
|
|
203
|
+
*/
|
|
204
|
+
CreatedTimeStamp?: TimeStamp;
|
|
205
|
+
/**
|
|
206
|
+
* The time, in milliseconds since the epoch, when the code review was last updated.
|
|
207
|
+
*/
|
|
208
|
+
LastUpdatedTimeStamp?: TimeStamp;
|
|
209
|
+
/**
|
|
210
|
+
* The type of the code review.
|
|
211
|
+
*/
|
|
212
|
+
Type?: Type;
|
|
213
|
+
/**
|
|
214
|
+
* The pull request ID for the code review.
|
|
215
|
+
*/
|
|
216
|
+
PullRequestId?: PullRequestId;
|
|
217
|
+
/**
|
|
218
|
+
* The statistics from the code review.
|
|
219
|
+
*/
|
|
220
|
+
MetricsSummary?: MetricsSummary;
|
|
221
|
+
}
|
|
222
|
+
export interface CommitDiffSourceCodeType {
|
|
223
|
+
/**
|
|
224
|
+
* Source Commit SHA.
|
|
225
|
+
*/
|
|
226
|
+
SourceCommit?: CommitId;
|
|
227
|
+
/**
|
|
228
|
+
* Destination Commit SHA
|
|
229
|
+
*/
|
|
230
|
+
DestinationCommit?: CommitId;
|
|
231
|
+
}
|
|
232
|
+
export type CommitId = string;
|
|
233
|
+
export interface DescribeCodeReviewRequest {
|
|
234
|
+
/**
|
|
235
|
+
* The Amazon Resource Name (ARN) of the code review to describe.
|
|
236
|
+
*/
|
|
237
|
+
CodeReviewArn: Arn;
|
|
238
|
+
}
|
|
239
|
+
export interface DescribeCodeReviewResponse {
|
|
240
|
+
/**
|
|
241
|
+
* Information about the code review.
|
|
242
|
+
*/
|
|
243
|
+
CodeReview?: CodeReview;
|
|
244
|
+
}
|
|
245
|
+
export interface DescribeRecommendationFeedbackRequest {
|
|
246
|
+
/**
|
|
247
|
+
* The Amazon Resource Name (ARN) that identifies the code review.
|
|
248
|
+
*/
|
|
249
|
+
CodeReviewArn: Arn;
|
|
250
|
+
/**
|
|
251
|
+
* The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
|
|
252
|
+
*/
|
|
253
|
+
RecommendationId: RecommendationId;
|
|
254
|
+
/**
|
|
255
|
+
* Optional parameter to describe the feedback for a given user. If this is not supplied, it defaults to the user making the request.
|
|
256
|
+
*/
|
|
257
|
+
UserId?: UserId;
|
|
258
|
+
}
|
|
259
|
+
export interface DescribeRecommendationFeedbackResponse {
|
|
260
|
+
/**
|
|
261
|
+
* The recommendation feedback given by the user.
|
|
262
|
+
*/
|
|
263
|
+
RecommendationFeedback?: RecommendationFeedback;
|
|
264
|
+
}
|
|
73
265
|
export interface DescribeRepositoryAssociationRequest {
|
|
74
266
|
/**
|
|
75
|
-
* The Amazon Resource Name (ARN) identifying the association.
|
|
267
|
+
* The Amazon Resource Name (ARN) identifying the association. You can retrieve this ARN by calling ListRepositories.
|
|
76
268
|
*/
|
|
77
269
|
AssociationArn: Arn;
|
|
78
270
|
}
|
|
@@ -94,6 +286,104 @@ declare namespace CodeGuruReviewer {
|
|
|
94
286
|
*/
|
|
95
287
|
RepositoryAssociation?: RepositoryAssociation;
|
|
96
288
|
}
|
|
289
|
+
export type FilePath = string;
|
|
290
|
+
export type FindingsCount = number;
|
|
291
|
+
export type JobState = "Completed"|"Pending"|"Failed"|"Deleting"|string;
|
|
292
|
+
export type JobStates = JobState[];
|
|
293
|
+
export type LineNumber = number;
|
|
294
|
+
export type ListCodeReviewsMaxResults = number;
|
|
295
|
+
export interface ListCodeReviewsRequest {
|
|
296
|
+
/**
|
|
297
|
+
* List of provider types for filtering that needs to be applied before displaying the result. For example, "providerTypes=[GitHub]" will list code reviews from GitHub.
|
|
298
|
+
*/
|
|
299
|
+
ProviderTypes?: ProviderTypes;
|
|
300
|
+
/**
|
|
301
|
+
* List of states for filtering that needs to be applied before displaying the result. For example, "states=[Pending]" will list code reviews in the Pending state.
|
|
302
|
+
*/
|
|
303
|
+
States?: JobStates;
|
|
304
|
+
/**
|
|
305
|
+
* List of repository names for filtering that needs to be applied before displaying the result.
|
|
306
|
+
*/
|
|
307
|
+
RepositoryNames?: RepositoryNames;
|
|
308
|
+
/**
|
|
309
|
+
* The type of code reviews to list in the response.
|
|
310
|
+
*/
|
|
311
|
+
Type: Type;
|
|
312
|
+
/**
|
|
313
|
+
* The maximum number of results that are returned per call. The default is 100.
|
|
314
|
+
*/
|
|
315
|
+
MaxResults?: ListCodeReviewsMaxResults;
|
|
316
|
+
/**
|
|
317
|
+
* If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
|
|
318
|
+
*/
|
|
319
|
+
NextToken?: NextToken;
|
|
320
|
+
}
|
|
321
|
+
export interface ListCodeReviewsResponse {
|
|
322
|
+
/**
|
|
323
|
+
* A list of code reviews that meet the criteria of the request.
|
|
324
|
+
*/
|
|
325
|
+
CodeReviewSummaries?: CodeReviewSummaries;
|
|
326
|
+
/**
|
|
327
|
+
* Pagination token.
|
|
328
|
+
*/
|
|
329
|
+
NextToken?: NextToken;
|
|
330
|
+
}
|
|
331
|
+
export interface ListRecommendationFeedbackRequest {
|
|
332
|
+
/**
|
|
333
|
+
* If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
|
|
334
|
+
*/
|
|
335
|
+
NextToken?: NextToken;
|
|
336
|
+
/**
|
|
337
|
+
* The maximum number of results that are returned per call. The default is 100.
|
|
338
|
+
*/
|
|
339
|
+
MaxResults?: MaxResults;
|
|
340
|
+
/**
|
|
341
|
+
* The Amazon Resource Name (ARN) that identifies the code review.
|
|
342
|
+
*/
|
|
343
|
+
CodeReviewArn: Arn;
|
|
344
|
+
/**
|
|
345
|
+
* Filter on userIds that need to be applied before displaying the result. This can be used to query all the recommendation feedback for a code review from a given user.
|
|
346
|
+
*/
|
|
347
|
+
UserIds?: UserIds;
|
|
348
|
+
/**
|
|
349
|
+
* Filter on recommendationIds that need to be applied before displaying the result. This can be used to query all the recommendation feedback for a given recommendation.
|
|
350
|
+
*/
|
|
351
|
+
RecommendationIds?: RecommendationIds;
|
|
352
|
+
}
|
|
353
|
+
export interface ListRecommendationFeedbackResponse {
|
|
354
|
+
/**
|
|
355
|
+
* Recommendation feedback summaries corresponding to the code reivew ARN.
|
|
356
|
+
*/
|
|
357
|
+
RecommendationFeedbackSummaries?: RecommendationFeedbackSummaries;
|
|
358
|
+
/**
|
|
359
|
+
* If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
|
|
360
|
+
*/
|
|
361
|
+
NextToken?: NextToken;
|
|
362
|
+
}
|
|
363
|
+
export interface ListRecommendationsRequest {
|
|
364
|
+
/**
|
|
365
|
+
* Pagination token.
|
|
366
|
+
*/
|
|
367
|
+
NextToken?: NextToken;
|
|
368
|
+
/**
|
|
369
|
+
* The maximum number of results that are returned per call. The default is 100.
|
|
370
|
+
*/
|
|
371
|
+
MaxResults?: MaxResults;
|
|
372
|
+
/**
|
|
373
|
+
* The Amazon Resource Name (ARN) of the code review to describe.
|
|
374
|
+
*/
|
|
375
|
+
CodeReviewArn: Arn;
|
|
376
|
+
}
|
|
377
|
+
export interface ListRecommendationsResponse {
|
|
378
|
+
/**
|
|
379
|
+
* List of recommendations for the requested code review.
|
|
380
|
+
*/
|
|
381
|
+
RecommendationSummaries?: RecommendationSummaries;
|
|
382
|
+
/**
|
|
383
|
+
* Pagination token.
|
|
384
|
+
*/
|
|
385
|
+
NextToken?: NextToken;
|
|
386
|
+
}
|
|
97
387
|
export interface ListRepositoryAssociationsRequest {
|
|
98
388
|
/**
|
|
99
389
|
* List of provider types to use as a filter.
|
|
@@ -104,19 +394,19 @@ declare namespace CodeGuruReviewer {
|
|
|
104
394
|
*/
|
|
105
395
|
States?: RepositoryAssociationStates;
|
|
106
396
|
/**
|
|
107
|
-
* List of names to use as a filter.
|
|
397
|
+
* List of repository names to use as a filter.
|
|
108
398
|
*/
|
|
109
399
|
Names?: Names;
|
|
110
400
|
/**
|
|
111
|
-
* List of owners to use as a filter. For
|
|
401
|
+
* List of owners to use as a filter. For GitHub, this is name of the GitHub account that was used to associate the repository. For AWS CodeCommit, it is the name of the CodeCommit account that was used to associate the repository.
|
|
112
402
|
*/
|
|
113
403
|
Owners?: Owners;
|
|
114
404
|
/**
|
|
115
|
-
* The maximum number of repository association results returned by ListRepositoryAssociations in paginated output. When this parameter is used, ListRepositoryAssociations only returns maxResults results in a single page
|
|
405
|
+
* The maximum number of repository association results returned by ListRepositoryAssociations in paginated output. When this parameter is used, ListRepositoryAssociations only returns maxResults results in a single page with a nextToken response element. The remaining results of the initial request can be seen by sending another ListRepositoryAssociations request with the returned nextToken value. This value can be between 1 and 25. If this parameter is not used, ListRepositoryAssociations returns up to 25 results and a nextToken value if applicable.
|
|
116
406
|
*/
|
|
117
407
|
MaxResults?: MaxResults;
|
|
118
408
|
/**
|
|
119
|
-
* The nextToken value returned from a previous paginated ListRepositoryAssociations request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.
|
|
409
|
+
* The nextToken value returned from a previous paginated ListRepositoryAssociations request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. Treat this token as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
|
|
120
410
|
*/
|
|
121
411
|
NextToken?: NextToken;
|
|
122
412
|
}
|
|
@@ -131,6 +421,27 @@ declare namespace CodeGuruReviewer {
|
|
|
131
421
|
NextToken?: NextToken;
|
|
132
422
|
}
|
|
133
423
|
export type MaxResults = number;
|
|
424
|
+
export type MeteredLinesOfCodeCount = number;
|
|
425
|
+
export interface Metrics {
|
|
426
|
+
/**
|
|
427
|
+
* Lines of code metered in the code review.
|
|
428
|
+
*/
|
|
429
|
+
MeteredLinesOfCodeCount?: MeteredLinesOfCodeCount;
|
|
430
|
+
/**
|
|
431
|
+
* Total number of recommendations found in the code review.
|
|
432
|
+
*/
|
|
433
|
+
FindingsCount?: FindingsCount;
|
|
434
|
+
}
|
|
435
|
+
export interface MetricsSummary {
|
|
436
|
+
/**
|
|
437
|
+
* Lines of code metered in the code review.
|
|
438
|
+
*/
|
|
439
|
+
MeteredLinesOfCodeCount?: MeteredLinesOfCodeCount;
|
|
440
|
+
/**
|
|
441
|
+
* Total number of recommendations found in the code review.
|
|
442
|
+
*/
|
|
443
|
+
FindingsCount?: FindingsCount;
|
|
444
|
+
}
|
|
134
445
|
export type Name = string;
|
|
135
446
|
export type Names = Name[];
|
|
136
447
|
export type NextToken = string;
|
|
@@ -138,6 +449,91 @@ declare namespace CodeGuruReviewer {
|
|
|
138
449
|
export type Owners = Owner[];
|
|
139
450
|
export type ProviderType = "CodeCommit"|"GitHub"|string;
|
|
140
451
|
export type ProviderTypes = ProviderType[];
|
|
452
|
+
export type PullRequestId = string;
|
|
453
|
+
export interface PutRecommendationFeedbackRequest {
|
|
454
|
+
/**
|
|
455
|
+
* The Amazon Resource Name (ARN) that identifies the code review.
|
|
456
|
+
*/
|
|
457
|
+
CodeReviewArn: Arn;
|
|
458
|
+
/**
|
|
459
|
+
* The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
|
|
460
|
+
*/
|
|
461
|
+
RecommendationId: RecommendationId;
|
|
462
|
+
/**
|
|
463
|
+
* List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all your feedback.
|
|
464
|
+
*/
|
|
465
|
+
Reactions: Reactions;
|
|
466
|
+
}
|
|
467
|
+
export interface PutRecommendationFeedbackResponse {
|
|
468
|
+
}
|
|
469
|
+
export type Reaction = "ThumbsUp"|"ThumbsDown"|string;
|
|
470
|
+
export type Reactions = Reaction[];
|
|
471
|
+
export interface RecommendationFeedback {
|
|
472
|
+
/**
|
|
473
|
+
* The Amazon Resource Name (ARN) that identifies the code review.
|
|
474
|
+
*/
|
|
475
|
+
CodeReviewArn?: Arn;
|
|
476
|
+
/**
|
|
477
|
+
* The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
|
|
478
|
+
*/
|
|
479
|
+
RecommendationId?: RecommendationId;
|
|
480
|
+
/**
|
|
481
|
+
* List for storing reactions. Reactions are utf-8 text code for emojis. You can send an empty list to clear off all your feedback.
|
|
482
|
+
*/
|
|
483
|
+
Reactions?: Reactions;
|
|
484
|
+
/**
|
|
485
|
+
* The user principal that made the API call.
|
|
486
|
+
*/
|
|
487
|
+
UserId?: UserId;
|
|
488
|
+
/**
|
|
489
|
+
* The time at which the feedback was created.
|
|
490
|
+
*/
|
|
491
|
+
CreatedTimeStamp?: TimeStamp;
|
|
492
|
+
/**
|
|
493
|
+
* The time at which the feedback was last updated.
|
|
494
|
+
*/
|
|
495
|
+
LastUpdatedTimeStamp?: TimeStamp;
|
|
496
|
+
}
|
|
497
|
+
export type RecommendationFeedbackSummaries = RecommendationFeedbackSummary[];
|
|
498
|
+
export interface RecommendationFeedbackSummary {
|
|
499
|
+
/**
|
|
500
|
+
* The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
|
|
501
|
+
*/
|
|
502
|
+
RecommendationId?: RecommendationId;
|
|
503
|
+
/**
|
|
504
|
+
* List for storing reactions. Reactions are utf-8 text code for emojis.
|
|
505
|
+
*/
|
|
506
|
+
Reactions?: Reactions;
|
|
507
|
+
/**
|
|
508
|
+
* The identifier for the user that gave the feedback.
|
|
509
|
+
*/
|
|
510
|
+
UserId?: UserId;
|
|
511
|
+
}
|
|
512
|
+
export type RecommendationId = string;
|
|
513
|
+
export type RecommendationIds = RecommendationId[];
|
|
514
|
+
export type RecommendationSummaries = RecommendationSummary[];
|
|
515
|
+
export interface RecommendationSummary {
|
|
516
|
+
/**
|
|
517
|
+
* Name of the file on which a recommendation is provided.
|
|
518
|
+
*/
|
|
519
|
+
FilePath?: FilePath;
|
|
520
|
+
/**
|
|
521
|
+
* The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
|
|
522
|
+
*/
|
|
523
|
+
RecommendationId?: RecommendationId;
|
|
524
|
+
/**
|
|
525
|
+
* Start line from where the recommendation is applicable in the source commit or source branch.
|
|
526
|
+
*/
|
|
527
|
+
StartLine?: LineNumber;
|
|
528
|
+
/**
|
|
529
|
+
* Last line where the recommendation is applicable in the source commit or source branch. For a single line comment the start line and end line values will be the same.
|
|
530
|
+
*/
|
|
531
|
+
EndLine?: LineNumber;
|
|
532
|
+
/**
|
|
533
|
+
* A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
|
|
534
|
+
*/
|
|
535
|
+
Description?: Text;
|
|
536
|
+
}
|
|
141
537
|
export interface Repository {
|
|
142
538
|
/**
|
|
143
539
|
* Information about an AWS CodeCommit repository.
|
|
@@ -146,7 +542,7 @@ declare namespace CodeGuruReviewer {
|
|
|
146
542
|
}
|
|
147
543
|
export interface RepositoryAssociation {
|
|
148
544
|
/**
|
|
149
|
-
* The
|
|
545
|
+
* The ID of the repository association.
|
|
150
546
|
*/
|
|
151
547
|
AssociationId?: AssociationId;
|
|
152
548
|
/**
|
|
@@ -211,12 +607,23 @@ declare namespace CodeGuruReviewer {
|
|
|
211
607
|
*/
|
|
212
608
|
ProviderType?: ProviderType;
|
|
213
609
|
/**
|
|
214
|
-
* The state of the repository association. Associated Amazon CodeGuru Reviewer is associated with the repository. Associating The association is in progress. Failed The association failed.
|
|
610
|
+
* The state of the repository association. Associated Amazon CodeGuru Reviewer is associated with the repository. Associating The association is in progress. Failed The association failed. Disassociating Amazon CodeGuru Reviewer is in the process of disassociating with the repository.
|
|
215
611
|
*/
|
|
216
612
|
State?: RepositoryAssociationState;
|
|
217
613
|
}
|
|
614
|
+
export type RepositoryNames = Name[];
|
|
615
|
+
export interface SourceCodeType {
|
|
616
|
+
/**
|
|
617
|
+
* The commit diff for the pull request.
|
|
618
|
+
*/
|
|
619
|
+
CommitDiff?: CommitDiffSourceCodeType;
|
|
620
|
+
}
|
|
218
621
|
export type StateReason = string;
|
|
622
|
+
export type Text = string;
|
|
219
623
|
export type TimeStamp = Date;
|
|
624
|
+
export type Type = "PullRequest"|string;
|
|
625
|
+
export type UserId = string;
|
|
626
|
+
export type UserIds = UserId[];
|
|
220
627
|
/**
|
|
221
628
|
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
|
222
629
|
*/
|