@aws-sdk/client-codecommit 3.934.0 → 3.936.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist-cjs/index.js +87 -87
  2. package/dist-es/index.js +2 -1
  3. package/dist-es/models/enums.js +86 -0
  4. package/dist-es/models/errors.js +2269 -0
  5. package/dist-es/models/models_0.js +1 -1795
  6. package/dist-es/schemas/schemas_0.js +1 -1
  7. package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +1 -2
  8. package/dist-types/commands/ListPullRequestsCommand.d.ts +1 -1
  9. package/dist-types/commands/ListRepositoriesCommand.d.ts +1 -1
  10. package/dist-types/commands/ListRepositoriesForApprovalRuleTemplateCommand.d.ts +1 -1
  11. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  12. package/dist-types/commands/MergeBranchesByFastForwardCommand.d.ts +1 -1
  13. package/dist-types/commands/MergeBranchesBySquashCommand.d.ts +1 -1
  14. package/dist-types/commands/MergeBranchesByThreeWayCommand.d.ts +1 -1
  15. package/dist-types/commands/MergePullRequestByFastForwardCommand.d.ts +1 -1
  16. package/dist-types/commands/MergePullRequestBySquashCommand.d.ts +1 -1
  17. package/dist-types/commands/MergePullRequestByThreeWayCommand.d.ts +1 -1
  18. package/dist-types/commands/OverridePullRequestApprovalRulesCommand.d.ts +1 -1
  19. package/dist-types/commands/PostCommentForComparedCommitCommand.d.ts +1 -1
  20. package/dist-types/commands/PostCommentForPullRequestCommand.d.ts +1 -1
  21. package/dist-types/commands/PostCommentReplyCommand.d.ts +1 -1
  22. package/dist-types/commands/PutCommentReactionCommand.d.ts +1 -1
  23. package/dist-types/commands/PutFileCommand.d.ts +1 -1
  24. package/dist-types/commands/PutRepositoryTriggersCommand.d.ts +1 -1
  25. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  26. package/dist-types/commands/TestRepositoryTriggersCommand.d.ts +1 -1
  27. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  28. package/dist-types/commands/UpdateApprovalRuleTemplateContentCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateApprovalRuleTemplateDescriptionCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateApprovalRuleTemplateNameCommand.d.ts +1 -1
  31. package/dist-types/commands/UpdateCommentCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateDefaultBranchCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdatePullRequestApprovalRuleContentCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdatePullRequestApprovalStateCommand.d.ts +1 -1
  35. package/dist-types/commands/UpdatePullRequestDescriptionCommand.d.ts +1 -1
  36. package/dist-types/commands/UpdatePullRequestStatusCommand.d.ts +1 -1
  37. package/dist-types/commands/UpdatePullRequestTitleCommand.d.ts +1 -1
  38. package/dist-types/commands/UpdateRepositoryDescriptionCommand.d.ts +1 -1
  39. package/dist-types/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +1 -1
  40. package/dist-types/commands/UpdateRepositoryNameCommand.d.ts +1 -1
  41. package/dist-types/index.d.ts +3 -1
  42. package/dist-types/models/enums.d.ts +214 -0
  43. package/dist-types/models/errors.d.ts +2337 -0
  44. package/dist-types/models/models_0.d.ts +1480 -2026
  45. package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +4 -2
  46. package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/ListRepositoriesCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/ListRepositoriesForApprovalRuleTemplateCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/MergeBranchesByFastForwardCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/MergeBranchesBySquashCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/MergeBranchesByThreeWayCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/MergePullRequestByFastForwardCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/MergePullRequestBySquashCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/MergePullRequestByThreeWayCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/OverridePullRequestApprovalRulesCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/PostCommentForComparedCommitCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/PostCommentForPullRequestCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/PostCommentReplyCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/PutCommentReactionCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/PutFileCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/PutRepositoryTriggersCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/TestRepositoryTriggersCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/UpdateApprovalRuleTemplateContentCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/UpdateApprovalRuleTemplateDescriptionCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/UpdateApprovalRuleTemplateNameCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/UpdateCommentCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/UpdateDefaultBranchCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/UpdatePullRequestApprovalRuleContentCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/UpdatePullRequestApprovalStateCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/UpdatePullRequestDescriptionCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/UpdatePullRequestStatusCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/UpdatePullRequestTitleCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/UpdateRepositoryDescriptionCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/UpdateRepositoryNameCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/index.d.ts +3 -1
  80. package/dist-types/ts3.4/models/enums.d.ts +115 -0
  81. package/dist-types/ts3.4/models/errors.d.ts +1621 -0
  82. package/dist-types/ts3.4/models/models_0.d.ts +332 -1326
  83. package/package.json +19 -19
  84. package/dist-es/models/index.js +0 -2
  85. package/dist-es/models/models_1.js +0 -561
  86. package/dist-types/models/index.d.ts +0 -2
  87. package/dist-types/models/models_1.d.ts +0 -2007
  88. package/dist-types/ts3.4/models/index.d.ts +0 -2
  89. package/dist-types/ts3.4/models/models_1.d.ts +0 -742
@@ -1,2007 +0,0 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { CodeCommitServiceException as __BaseException } from "./CodeCommitServiceException";
3
- import { ApprovalRule, ApprovalRuleTemplate, ApprovalState, Comment, Commit, ConflictDetailLevelTypeEnum, ConflictResolution, ConflictResolutionStrategyTypeEnum, FileModeTypeEnum, Location, OverrideStatus, PullRequest, PullRequestStatusEnum, RepositoryTrigger } from "./models_0";
4
- /**
5
- * <p>Information about a version of a file.</p>
6
- * @public
7
- */
8
- export interface FileVersion {
9
- /**
10
- * <p>Returns information about a specific commit.</p>
11
- * @public
12
- */
13
- commit?: Commit | undefined;
14
- /**
15
- * <p>The blob ID of the object that represents the content of the file in this version.</p>
16
- * @public
17
- */
18
- blobId?: string | undefined;
19
- /**
20
- * <p>The name and path of the file at which this blob is indexed which contains the data for this version of the file. This value will
21
- * vary between file versions if a file is renamed or if its path changes.</p>
22
- * @public
23
- */
24
- path?: string | undefined;
25
- /**
26
- * <p>An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.</p>
27
- * @public
28
- */
29
- revisionChildren?: string[] | undefined;
30
- }
31
- /**
32
- * @public
33
- */
34
- export interface ListFileCommitHistoryResponse {
35
- /**
36
- * <p>An array of FileVersion objects that form a directed acyclic graph (DAG) of the changes to the file made by the commits that changed the file.</p>
37
- * @public
38
- */
39
- revisionDag: FileVersion[] | undefined;
40
- /**
41
- * <p>An enumeration token that can be used to return the next batch of results.</p>
42
- * @public
43
- */
44
- nextToken?: string | undefined;
45
- }
46
- /**
47
- * <p>The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of the pull request, and then try again.</p>
48
- * @public
49
- */
50
- export declare class InvalidAuthorArnException extends __BaseException {
51
- readonly name: "InvalidAuthorArnException";
52
- readonly $fault: "client";
53
- /**
54
- * @internal
55
- */
56
- constructor(opts: __ExceptionOptionType<InvalidAuthorArnException, __BaseException>);
57
- }
58
- /**
59
- * <p>The pull request status is not valid. The only valid values are <code>OPEN</code> and <code>CLOSED</code>.</p>
60
- * @public
61
- */
62
- export declare class InvalidPullRequestStatusException extends __BaseException {
63
- readonly name: "InvalidPullRequestStatusException";
64
- readonly $fault: "client";
65
- /**
66
- * @internal
67
- */
68
- constructor(opts: __ExceptionOptionType<InvalidPullRequestStatusException, __BaseException>);
69
- }
70
- /**
71
- * @public
72
- */
73
- export interface ListPullRequestsInput {
74
- /**
75
- * <p>The name of the repository for which you want to list pull requests.</p>
76
- * @public
77
- */
78
- repositoryName: string | undefined;
79
- /**
80
- * <p>Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results
81
- * to pull requests created by that user.</p>
82
- * @public
83
- */
84
- authorArn?: string | undefined;
85
- /**
86
- * <p>Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.</p>
87
- * @public
88
- */
89
- pullRequestStatus?: PullRequestStatusEnum | undefined;
90
- /**
91
- * <p>An enumeration token that, when provided in a request, returns the next batch of the
92
- * results.</p>
93
- * @public
94
- */
95
- nextToken?: string | undefined;
96
- /**
97
- * <p>A non-zero, non-negative integer used to limit the number of returned results.</p>
98
- * @public
99
- */
100
- maxResults?: number | undefined;
101
- }
102
- /**
103
- * @public
104
- */
105
- export interface ListPullRequestsOutput {
106
- /**
107
- * <p>The system-generated IDs of the pull requests.</p>
108
- * @public
109
- */
110
- pullRequestIds: string[] | undefined;
111
- /**
112
- * <p>An enumeration token that allows the operation to batch the next results of the operation.</p>
113
- * @public
114
- */
115
- nextToken?: string | undefined;
116
- }
117
- /**
118
- * <p>The specified sort order is not valid.</p>
119
- * @public
120
- */
121
- export declare class InvalidOrderException extends __BaseException {
122
- readonly name: "InvalidOrderException";
123
- readonly $fault: "client";
124
- /**
125
- * @internal
126
- */
127
- constructor(opts: __ExceptionOptionType<InvalidOrderException, __BaseException>);
128
- }
129
- /**
130
- * <p>The specified sort by value is not valid.</p>
131
- * @public
132
- */
133
- export declare class InvalidSortByException extends __BaseException {
134
- readonly name: "InvalidSortByException";
135
- readonly $fault: "client";
136
- /**
137
- * @internal
138
- */
139
- constructor(opts: __ExceptionOptionType<InvalidSortByException, __BaseException>);
140
- }
141
- /**
142
- * @public
143
- * @enum
144
- */
145
- export declare const OrderEnum: {
146
- readonly ASCENDING: "ascending";
147
- readonly DESCENDING: "descending";
148
- };
149
- /**
150
- * @public
151
- */
152
- export type OrderEnum = (typeof OrderEnum)[keyof typeof OrderEnum];
153
- /**
154
- * @public
155
- * @enum
156
- */
157
- export declare const SortByEnum: {
158
- readonly MODIFIED_DATE: "lastModifiedDate";
159
- readonly REPOSITORY_NAME: "repositoryName";
160
- };
161
- /**
162
- * @public
163
- */
164
- export type SortByEnum = (typeof SortByEnum)[keyof typeof SortByEnum];
165
- /**
166
- * <p>Represents the input of a list repositories operation.</p>
167
- * @public
168
- */
169
- export interface ListRepositoriesInput {
170
- /**
171
- * <p>An enumeration token that allows the operation to batch the results of the operation.
172
- * Batch sizes are 1,000 for list repository operations. When the client sends the token back to CodeCommit,
173
- * another page of 1,000 records is retrieved.</p>
174
- * @public
175
- */
176
- nextToken?: string | undefined;
177
- /**
178
- * <p>The criteria used to sort the results of a list repositories operation.</p>
179
- * @public
180
- */
181
- sortBy?: SortByEnum | undefined;
182
- /**
183
- * <p>The order in which to sort the results of a list repositories operation.</p>
184
- * @public
185
- */
186
- order?: OrderEnum | undefined;
187
- }
188
- /**
189
- * <p>Information about a repository name and ID.</p>
190
- * @public
191
- */
192
- export interface RepositoryNameIdPair {
193
- /**
194
- * <p>The name associated with the repository.</p>
195
- * @public
196
- */
197
- repositoryName?: string | undefined;
198
- /**
199
- * <p>The ID associated with the repository.</p>
200
- * @public
201
- */
202
- repositoryId?: string | undefined;
203
- }
204
- /**
205
- * <p>Represents the output of a list repositories operation.</p>
206
- * @public
207
- */
208
- export interface ListRepositoriesOutput {
209
- /**
210
- * <p>Lists the repositories called by the list repositories operation.</p>
211
- * @public
212
- */
213
- repositories?: RepositoryNameIdPair[] | undefined;
214
- /**
215
- * <p>An enumeration token that allows the operation to batch the results of the operation.
216
- * Batch sizes are 1,000 for list repository operations. When the client sends the token back to CodeCommit,
217
- * another page of 1,000 records is retrieved.</p>
218
- * @public
219
- */
220
- nextToken?: string | undefined;
221
- }
222
- /**
223
- * @public
224
- */
225
- export interface ListRepositoriesForApprovalRuleTemplateInput {
226
- /**
227
- * <p>The name of the approval rule template for which you want to list repositories that are associated with that template.</p>
228
- * @public
229
- */
230
- approvalRuleTemplateName: string | undefined;
231
- /**
232
- * <p>An enumeration token that, when provided in a request, returns the next batch of the
233
- * results.</p>
234
- * @public
235
- */
236
- nextToken?: string | undefined;
237
- /**
238
- * <p>A non-zero, non-negative integer used to limit the number of returned results.</p>
239
- * @public
240
- */
241
- maxResults?: number | undefined;
242
- }
243
- /**
244
- * @public
245
- */
246
- export interface ListRepositoriesForApprovalRuleTemplateOutput {
247
- /**
248
- * <p>A list of repository names that are associated with the specified approval rule template.</p>
249
- * @public
250
- */
251
- repositoryNames?: string[] | undefined;
252
- /**
253
- * <p>An enumeration token that allows the operation to batch the next results of the operation.</p>
254
- * @public
255
- */
256
- nextToken?: string | undefined;
257
- }
258
- /**
259
- * <p>The value for the resource ARN is not valid. For more information about resources in CodeCommit, see
260
- * <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats">CodeCommit Resources and Operations</a>
261
- * in the CodeCommit User Guide.</p>
262
- * @public
263
- */
264
- export declare class InvalidResourceArnException extends __BaseException {
265
- readonly name: "InvalidResourceArnException";
266
- readonly $fault: "client";
267
- /**
268
- * @internal
269
- */
270
- constructor(opts: __ExceptionOptionType<InvalidResourceArnException, __BaseException>);
271
- }
272
- /**
273
- * @public
274
- */
275
- export interface ListTagsForResourceInput {
276
- /**
277
- * <p>The Amazon Resource Name (ARN) of the resource for which you want to get information
278
- * about tags, if any.</p>
279
- * @public
280
- */
281
- resourceArn: string | undefined;
282
- /**
283
- * <p>An enumeration token that, when provided in a request, returns the next batch of the
284
- * results.</p>
285
- * @public
286
- */
287
- nextToken?: string | undefined;
288
- }
289
- /**
290
- * @public
291
- */
292
- export interface ListTagsForResourceOutput {
293
- /**
294
- * <p>A list of tag key and value pairs associated with the specified resource.</p>
295
- * @public
296
- */
297
- tags?: Record<string, string> | undefined;
298
- /**
299
- * <p>An enumeration token that allows the operation to batch the next results of the operation.</p>
300
- * @public
301
- */
302
- nextToken?: string | undefined;
303
- }
304
- /**
305
- * <p>A valid Amazon Resource Name (ARN) for an CodeCommit resource is required. For a list of valid resources in CodeCommit, see
306
- * <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats">CodeCommit Resources and Operations</a>
307
- * in the CodeCommit User Guide.</p>
308
- * @public
309
- */
310
- export declare class ResourceArnRequiredException extends __BaseException {
311
- readonly name: "ResourceArnRequiredException";
312
- readonly $fault: "client";
313
- /**
314
- * @internal
315
- */
316
- constructor(opts: __ExceptionOptionType<ResourceArnRequiredException, __BaseException>);
317
- }
318
- /**
319
- * <p>The specified target branch is not valid.</p>
320
- * @public
321
- */
322
- export declare class InvalidTargetBranchException extends __BaseException {
323
- readonly name: "InvalidTargetBranchException";
324
- readonly $fault: "client";
325
- /**
326
- * @internal
327
- */
328
- constructor(opts: __ExceptionOptionType<InvalidTargetBranchException, __BaseException>);
329
- }
330
- /**
331
- * @public
332
- */
333
- export interface MergeBranchesByFastForwardInput {
334
- /**
335
- * <p>The name of the repository where you want to merge two branches.</p>
336
- * @public
337
- */
338
- repositoryName: string | undefined;
339
- /**
340
- * <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit
341
- * (for example, a branch name or a full commit ID).</p>
342
- * @public
343
- */
344
- sourceCommitSpecifier: string | undefined;
345
- /**
346
- * <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit
347
- * (for example, a branch name or a full commit ID).</p>
348
- * @public
349
- */
350
- destinationCommitSpecifier: string | undefined;
351
- /**
352
- * <p>The branch where the merge is applied.</p>
353
- * @public
354
- */
355
- targetBranch?: string | undefined;
356
- }
357
- /**
358
- * @public
359
- */
360
- export interface MergeBranchesByFastForwardOutput {
361
- /**
362
- * <p>The commit ID of the merge in the destination or target branch.</p>
363
- * @public
364
- */
365
- commitId?: string | undefined;
366
- /**
367
- * <p>The tree ID of the merge in the destination or target branch.</p>
368
- * @public
369
- */
370
- treeId?: string | undefined;
371
- }
372
- /**
373
- * @public
374
- */
375
- export interface MergeBranchesBySquashInput {
376
- /**
377
- * <p>The name of the repository where you want to merge two branches.</p>
378
- * @public
379
- */
380
- repositoryName: string | undefined;
381
- /**
382
- * <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit
383
- * (for example, a branch name or a full commit ID).</p>
384
- * @public
385
- */
386
- sourceCommitSpecifier: string | undefined;
387
- /**
388
- * <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit
389
- * (for example, a branch name or a full commit ID).</p>
390
- * @public
391
- */
392
- destinationCommitSpecifier: string | undefined;
393
- /**
394
- * <p>The branch where the merge is applied. </p>
395
- * @public
396
- */
397
- targetBranch?: string | undefined;
398
- /**
399
- * <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used,
400
- * which returns a not-mergeable result if the same file has differences in both branches.
401
- * If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in
402
- * both branches has differences on the same line.</p>
403
- * @public
404
- */
405
- conflictDetailLevel?: ConflictDetailLevelTypeEnum | undefined;
406
- /**
407
- * <p>Specifies which branch to use when resolving conflicts, or whether to attempt
408
- * automatically merging two versions of a file. The default is NONE, which requires any
409
- * conflicts to be resolved manually before the merge operation is successful.</p>
410
- * @public
411
- */
412
- conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | undefined;
413
- /**
414
- * <p>The name of the author who created the commit. This information is used as both the
415
- * author and committer for the commit.</p>
416
- * @public
417
- */
418
- authorName?: string | undefined;
419
- /**
420
- * <p>The email address of the person merging the branches. This information is used in the
421
- * commit information for the merge.</p>
422
- * @public
423
- */
424
- email?: string | undefined;
425
- /**
426
- * <p>The commit message for the merge.</p>
427
- * @public
428
- */
429
- commitMessage?: string | undefined;
430
- /**
431
- * <p>If the commit contains deletions, whether to keep a folder or folder structure if the
432
- * changes leave the folders empty. If this is specified as true, a .gitkeep file is
433
- * created for empty folders. The default is false.</p>
434
- * @public
435
- */
436
- keepEmptyFolders?: boolean | undefined;
437
- /**
438
- * <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
439
- * resolving conflicts during a merge.</p>
440
- * @public
441
- */
442
- conflictResolution?: ConflictResolution | undefined;
443
- }
444
- /**
445
- * @public
446
- */
447
- export interface MergeBranchesBySquashOutput {
448
- /**
449
- * <p>The commit ID of the merge in the destination or target branch.</p>
450
- * @public
451
- */
452
- commitId?: string | undefined;
453
- /**
454
- * <p>The tree ID of the merge in the destination or target branch.</p>
455
- * @public
456
- */
457
- treeId?: string | undefined;
458
- }
459
- /**
460
- * @public
461
- */
462
- export interface MergeBranchesByThreeWayInput {
463
- /**
464
- * <p>The name of the repository where you want to merge two branches.</p>
465
- * @public
466
- */
467
- repositoryName: string | undefined;
468
- /**
469
- * <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit
470
- * (for example, a branch name or a full commit ID).</p>
471
- * @public
472
- */
473
- sourceCommitSpecifier: string | undefined;
474
- /**
475
- * <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit
476
- * (for example, a branch name or a full commit ID).</p>
477
- * @public
478
- */
479
- destinationCommitSpecifier: string | undefined;
480
- /**
481
- * <p>The branch where the merge is applied. </p>
482
- * @public
483
- */
484
- targetBranch?: string | undefined;
485
- /**
486
- * <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used,
487
- * which returns a not-mergeable result if the same file has differences in both branches.
488
- * If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in
489
- * both branches has differences on the same line.</p>
490
- * @public
491
- */
492
- conflictDetailLevel?: ConflictDetailLevelTypeEnum | undefined;
493
- /**
494
- * <p>Specifies which branch to use when resolving conflicts, or whether to attempt
495
- * automatically merging two versions of a file. The default is NONE, which requires any
496
- * conflicts to be resolved manually before the merge operation is successful.</p>
497
- * @public
498
- */
499
- conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | undefined;
500
- /**
501
- * <p>The name of the author who created the commit. This information is used as both the
502
- * author and committer for the commit.</p>
503
- * @public
504
- */
505
- authorName?: string | undefined;
506
- /**
507
- * <p>The email address of the person merging the branches. This information is used in the
508
- * commit information for the merge.</p>
509
- * @public
510
- */
511
- email?: string | undefined;
512
- /**
513
- * <p>The commit message to include in the commit information for the merge.</p>
514
- * @public
515
- */
516
- commitMessage?: string | undefined;
517
- /**
518
- * <p>If the commit contains deletions, whether to keep a folder or folder structure if the
519
- * changes leave the folders empty. If true, a .gitkeep file is created for empty folders.
520
- * The default is false.</p>
521
- * @public
522
- */
523
- keepEmptyFolders?: boolean | undefined;
524
- /**
525
- * <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
526
- * resolving conflicts during a merge.</p>
527
- * @public
528
- */
529
- conflictResolution?: ConflictResolution | undefined;
530
- }
531
- /**
532
- * @public
533
- */
534
- export interface MergeBranchesByThreeWayOutput {
535
- /**
536
- * <p>The commit ID of the merge in the destination or target branch.</p>
537
- * @public
538
- */
539
- commitId?: string | undefined;
540
- /**
541
- * <p>The tree ID of the merge in the destination or target branch.</p>
542
- * @public
543
- */
544
- treeId?: string | undefined;
545
- }
546
- /**
547
- * @public
548
- */
549
- export interface MergePullRequestByFastForwardInput {
550
- /**
551
- * <p>The system-generated ID of the pull request. To get this ID, use <a>ListPullRequests</a>.</p>
552
- * @public
553
- */
554
- pullRequestId: string | undefined;
555
- /**
556
- * <p>The name of the repository where the pull request was created.</p>
557
- * @public
558
- */
559
- repositoryName: string | undefined;
560
- /**
561
- * <p>The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an
562
- * exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.</p>
563
- * @public
564
- */
565
- sourceCommitId?: string | undefined;
566
- }
567
- /**
568
- * @public
569
- */
570
- export interface MergePullRequestByFastForwardOutput {
571
- /**
572
- * <p>Information about the specified pull request, including the merge.</p>
573
- * @public
574
- */
575
- pullRequest?: PullRequest | undefined;
576
- }
577
- /**
578
- * <p>The pull request cannot be merged because one or more approval rules applied to the pull request have conditions that have not been met.</p>
579
- * @public
580
- */
581
- export declare class PullRequestApprovalRulesNotSatisfiedException extends __BaseException {
582
- readonly name: "PullRequestApprovalRulesNotSatisfiedException";
583
- readonly $fault: "client";
584
- /**
585
- * @internal
586
- */
587
- constructor(opts: __ExceptionOptionType<PullRequestApprovalRulesNotSatisfiedException, __BaseException>);
588
- }
589
- /**
590
- * <p>The tip of the source branch in the destination repository does not match the tip of the source branch specified in your request.
591
- * The pull request might have been updated. Make sure that you have the latest changes.</p>
592
- * @public
593
- */
594
- export declare class TipOfSourceReferenceIsDifferentException extends __BaseException {
595
- readonly name: "TipOfSourceReferenceIsDifferentException";
596
- readonly $fault: "client";
597
- /**
598
- * @internal
599
- */
600
- constructor(opts: __ExceptionOptionType<TipOfSourceReferenceIsDifferentException, __BaseException>);
601
- }
602
- /**
603
- * @public
604
- */
605
- export interface MergePullRequestBySquashInput {
606
- /**
607
- * <p>The system-generated ID of the pull request. To get this ID, use <a>ListPullRequests</a>.</p>
608
- * @public
609
- */
610
- pullRequestId: string | undefined;
611
- /**
612
- * <p>The name of the repository where the pull request was created.</p>
613
- * @public
614
- */
615
- repositoryName: string | undefined;
616
- /**
617
- * <p>The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an
618
- * exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.</p>
619
- * @public
620
- */
621
- sourceCommitId?: string | undefined;
622
- /**
623
- * <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used,
624
- * which returns a not-mergeable result if the same file has differences in both branches.
625
- * If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in
626
- * both branches has differences on the same line.</p>
627
- * @public
628
- */
629
- conflictDetailLevel?: ConflictDetailLevelTypeEnum | undefined;
630
- /**
631
- * <p>Specifies which branch to use when resolving conflicts, or whether to attempt
632
- * automatically merging two versions of a file. The default is NONE, which requires any
633
- * conflicts to be resolved manually before the merge operation is successful.</p>
634
- * @public
635
- */
636
- conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | undefined;
637
- /**
638
- * <p>The commit message to include in the commit information for the merge.</p>
639
- * @public
640
- */
641
- commitMessage?: string | undefined;
642
- /**
643
- * <p>The name of the author who created the commit. This information is used as both the
644
- * author and committer for the commit.</p>
645
- * @public
646
- */
647
- authorName?: string | undefined;
648
- /**
649
- * <p>The email address of the person merging the branches. This information is used in the
650
- * commit information for the merge.</p>
651
- * @public
652
- */
653
- email?: string | undefined;
654
- /**
655
- * <p>If the commit contains deletions, whether to keep a folder or folder structure if the
656
- * changes leave the folders empty. If true, a .gitkeep file is created for empty folders.
657
- * The default is false.</p>
658
- * @public
659
- */
660
- keepEmptyFolders?: boolean | undefined;
661
- /**
662
- * <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
663
- * resolving conflicts during a merge.</p>
664
- * @public
665
- */
666
- conflictResolution?: ConflictResolution | undefined;
667
- }
668
- /**
669
- * @public
670
- */
671
- export interface MergePullRequestBySquashOutput {
672
- /**
673
- * <p>Returns information about a pull request.</p>
674
- * @public
675
- */
676
- pullRequest?: PullRequest | undefined;
677
- }
678
- /**
679
- * @public
680
- */
681
- export interface MergePullRequestByThreeWayInput {
682
- /**
683
- * <p>The system-generated ID of the pull request. To get this ID, use <a>ListPullRequests</a>.</p>
684
- * @public
685
- */
686
- pullRequestId: string | undefined;
687
- /**
688
- * <p>The name of the repository where the pull request was created.</p>
689
- * @public
690
- */
691
- repositoryName: string | undefined;
692
- /**
693
- * <p>The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an
694
- * exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.</p>
695
- * @public
696
- */
697
- sourceCommitId?: string | undefined;
698
- /**
699
- * <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used,
700
- * which returns a not-mergeable result if the same file has differences in both branches.
701
- * If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in
702
- * both branches has differences on the same line.</p>
703
- * @public
704
- */
705
- conflictDetailLevel?: ConflictDetailLevelTypeEnum | undefined;
706
- /**
707
- * <p>Specifies which branch to use when resolving conflicts, or whether to attempt
708
- * automatically merging two versions of a file. The default is NONE, which requires any
709
- * conflicts to be resolved manually before the merge operation is successful.</p>
710
- * @public
711
- */
712
- conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | undefined;
713
- /**
714
- * <p>The commit message to include in the commit information for the merge.</p>
715
- * @public
716
- */
717
- commitMessage?: string | undefined;
718
- /**
719
- * <p>The name of the author who created the commit. This information is used as both the
720
- * author and committer for the commit.</p>
721
- * @public
722
- */
723
- authorName?: string | undefined;
724
- /**
725
- * <p>The email address of the person merging the branches. This information is used in the
726
- * commit information for the merge.</p>
727
- * @public
728
- */
729
- email?: string | undefined;
730
- /**
731
- * <p>If the commit contains deletions, whether to keep a folder or folder structure if the
732
- * changes leave the folders empty. If true, a .gitkeep file is created for empty folders.
733
- * The default is false.</p>
734
- * @public
735
- */
736
- keepEmptyFolders?: boolean | undefined;
737
- /**
738
- * <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
739
- * resolving conflicts during a merge.</p>
740
- * @public
741
- */
742
- conflictResolution?: ConflictResolution | undefined;
743
- }
744
- /**
745
- * @public
746
- */
747
- export interface MergePullRequestByThreeWayOutput {
748
- /**
749
- * <p>Returns information about a pull request.</p>
750
- * @public
751
- */
752
- pullRequest?: PullRequest | undefined;
753
- }
754
- /**
755
- * <p>The override status is not valid. Valid statuses are OVERRIDE and REVOKE.</p>
756
- * @public
757
- */
758
- export declare class InvalidOverrideStatusException extends __BaseException {
759
- readonly name: "InvalidOverrideStatusException";
760
- readonly $fault: "client";
761
- /**
762
- * @internal
763
- */
764
- constructor(opts: __ExceptionOptionType<InvalidOverrideStatusException, __BaseException>);
765
- }
766
- /**
767
- * <p>The pull request has already had its approval rules set to override.</p>
768
- * @public
769
- */
770
- export declare class OverrideAlreadySetException extends __BaseException {
771
- readonly name: "OverrideAlreadySetException";
772
- readonly $fault: "client";
773
- /**
774
- * @internal
775
- */
776
- constructor(opts: __ExceptionOptionType<OverrideAlreadySetException, __BaseException>);
777
- }
778
- /**
779
- * @public
780
- */
781
- export interface OverridePullRequestApprovalRulesInput {
782
- /**
783
- * <p>The system-generated ID of the pull request for which you want to override all
784
- * approval rule requirements. To get this information, use
785
- * <a>GetPullRequest</a>.</p>
786
- * @public
787
- */
788
- pullRequestId: string | undefined;
789
- /**
790
- * <p>The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request.
791
- * To get the revision ID, use GetPullRequest.</p>
792
- * @public
793
- */
794
- revisionId: string | undefined;
795
- /**
796
- * <p>Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply
797
- * approval rule requirements (REVOKE). REVOKE status is not stored.</p>
798
- * @public
799
- */
800
- overrideStatus: OverrideStatus | undefined;
801
- }
802
- /**
803
- * <p>An override status is required, but no value was provided. Valid values include OVERRIDE and REVOKE.</p>
804
- * @public
805
- */
806
- export declare class OverrideStatusRequiredException extends __BaseException {
807
- readonly name: "OverrideStatusRequiredException";
808
- readonly $fault: "client";
809
- /**
810
- * @internal
811
- */
812
- constructor(opts: __ExceptionOptionType<OverrideStatusRequiredException, __BaseException>);
813
- }
814
- /**
815
- * <p>The comment is empty. You must provide some content for a comment. The content cannot be null.</p>
816
- * @public
817
- */
818
- export declare class CommentContentRequiredException extends __BaseException {
819
- readonly name: "CommentContentRequiredException";
820
- readonly $fault: "client";
821
- /**
822
- * @internal
823
- */
824
- constructor(opts: __ExceptionOptionType<CommentContentRequiredException, __BaseException>);
825
- }
826
- /**
827
- * <p>The comment is too large. Comments are limited to 10,240 characters.</p>
828
- * @public
829
- */
830
- export declare class CommentContentSizeLimitExceededException extends __BaseException {
831
- readonly name: "CommentContentSizeLimitExceededException";
832
- readonly $fault: "client";
833
- /**
834
- * @internal
835
- */
836
- constructor(opts: __ExceptionOptionType<CommentContentSizeLimitExceededException, __BaseException>);
837
- }
838
- /**
839
- * <p>The location of the file is not valid. Make sure that you include the file name and
840
- * extension.</p>
841
- * @public
842
- */
843
- export declare class InvalidFileLocationException extends __BaseException {
844
- readonly name: "InvalidFileLocationException";
845
- readonly $fault: "client";
846
- /**
847
- * @internal
848
- */
849
- constructor(opts: __ExceptionOptionType<InvalidFileLocationException, __BaseException>);
850
- }
851
- /**
852
- * <p>The position is not valid. Make sure that the line number exists in the version of the file you want to comment on.</p>
853
- * @public
854
- */
855
- export declare class InvalidFilePositionException extends __BaseException {
856
- readonly name: "InvalidFilePositionException";
857
- readonly $fault: "client";
858
- /**
859
- * @internal
860
- */
861
- constructor(opts: __ExceptionOptionType<InvalidFilePositionException, __BaseException>);
862
- }
863
- /**
864
- * <p>Either the enum is not in a valid format, or the specified file version enum is not valid in respect to the current file version.</p>
865
- * @public
866
- */
867
- export declare class InvalidRelativeFileVersionEnumException extends __BaseException {
868
- readonly name: "InvalidRelativeFileVersionEnumException";
869
- readonly $fault: "client";
870
- /**
871
- * @internal
872
- */
873
- constructor(opts: __ExceptionOptionType<InvalidRelativeFileVersionEnumException, __BaseException>);
874
- }
875
- /**
876
- * @public
877
- */
878
- export interface PostCommentForComparedCommitInput {
879
- /**
880
- * <p>The name of the repository where you want to post a comment on the comparison between commits.</p>
881
- * @public
882
- */
883
- repositoryName: string | undefined;
884
- /**
885
- * <p>To establish the directionality of the comparison, the full commit ID of the before
886
- * commit. Required for commenting on any commit unless that commit is the initial
887
- * commit.</p>
888
- * @public
889
- */
890
- beforeCommitId?: string | undefined;
891
- /**
892
- * <p>To establish the directionality of the comparison, the full commit ID of the after
893
- * commit.</p>
894
- * @public
895
- */
896
- afterCommitId: string | undefined;
897
- /**
898
- * <p>The location of the comparison where you want to comment.</p>
899
- * @public
900
- */
901
- location?: Location | undefined;
902
- /**
903
- * <p>The content of the comment you want to make.</p>
904
- * @public
905
- */
906
- content: string | undefined;
907
- /**
908
- * <p>A unique, client-generated idempotency token that, when provided in a request, ensures
909
- * the request cannot be repeated with a changed parameter. If a request is received with
910
- * the same parameters and a token is included, the request returns information about the
911
- * initial request that used that token.</p>
912
- * @public
913
- */
914
- clientRequestToken?: string | undefined;
915
- }
916
- /**
917
- * @public
918
- */
919
- export interface PostCommentForComparedCommitOutput {
920
- /**
921
- * <p>The name of the repository where you posted a comment on the comparison between commits.</p>
922
- * @public
923
- */
924
- repositoryName?: string | undefined;
925
- /**
926
- * <p>In the directionality you established, the full commit ID of the before commit.</p>
927
- * @public
928
- */
929
- beforeCommitId?: string | undefined;
930
- /**
931
- * <p>In the directionality you established, the full commit ID of the after commit.</p>
932
- * @public
933
- */
934
- afterCommitId?: string | undefined;
935
- /**
936
- * <p>In the directionality you established, the blob ID of the before blob.</p>
937
- * @public
938
- */
939
- beforeBlobId?: string | undefined;
940
- /**
941
- * <p>In the directionality you established, the blob ID of the after blob.</p>
942
- * @public
943
- */
944
- afterBlobId?: string | undefined;
945
- /**
946
- * <p>The location of the comment in the comparison between the two commits.</p>
947
- * @public
948
- */
949
- location?: Location | undefined;
950
- /**
951
- * <p>The content of the comment you posted.</p>
952
- * @public
953
- */
954
- comment?: Comment | undefined;
955
- }
956
- /**
957
- * @public
958
- */
959
- export interface PostCommentForPullRequestInput {
960
- /**
961
- * <p>The system-generated ID of the pull request. To get this ID, use <a>ListPullRequests</a>.</p>
962
- * @public
963
- */
964
- pullRequestId: string | undefined;
965
- /**
966
- * <p>The name of the repository where you want to post a comment on a pull request.</p>
967
- * @public
968
- */
969
- repositoryName: string | undefined;
970
- /**
971
- * <p>The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.</p>
972
- * @public
973
- */
974
- beforeCommitId: string | undefined;
975
- /**
976
- * <p>The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.</p>
977
- * @public
978
- */
979
- afterCommitId: string | undefined;
980
- /**
981
- * <p>The location of the change where you want to post your comment. If no location is
982
- * provided, the comment is posted as a general comment on the pull request difference
983
- * between the before commit ID and the after commit ID.</p>
984
- * @public
985
- */
986
- location?: Location | undefined;
987
- /**
988
- * <p>The content of your comment on the change.</p>
989
- * @public
990
- */
991
- content: string | undefined;
992
- /**
993
- * <p>A unique, client-generated idempotency token that, when provided in a request, ensures
994
- * the request cannot be repeated with a changed parameter. If a request is received with
995
- * the same parameters and a token is included, the request returns information about the
996
- * initial request that used that token.</p>
997
- * @public
998
- */
999
- clientRequestToken?: string | undefined;
1000
- }
1001
- /**
1002
- * @public
1003
- */
1004
- export interface PostCommentForPullRequestOutput {
1005
- /**
1006
- * <p>The name of the repository where you posted a comment on a pull request.</p>
1007
- * @public
1008
- */
1009
- repositoryName?: string | undefined;
1010
- /**
1011
- * <p>The system-generated ID of the pull request. </p>
1012
- * @public
1013
- */
1014
- pullRequestId?: string | undefined;
1015
- /**
1016
- * <p>The full commit ID of the commit in the source branch used to create the pull request,
1017
- * or in the case of an updated pull request, the full commit ID of the commit used to update the pull request.</p>
1018
- * @public
1019
- */
1020
- beforeCommitId?: string | undefined;
1021
- /**
1022
- * <p>The full commit ID of the commit in the destination branch where the pull request is
1023
- * merged.</p>
1024
- * @public
1025
- */
1026
- afterCommitId?: string | undefined;
1027
- /**
1028
- * <p>In the directionality of the pull request, the blob ID of the before blob.</p>
1029
- * @public
1030
- */
1031
- beforeBlobId?: string | undefined;
1032
- /**
1033
- * <p>In the directionality of the pull request, the blob ID of the after blob.</p>
1034
- * @public
1035
- */
1036
- afterBlobId?: string | undefined;
1037
- /**
1038
- * <p>The location of the change where you posted your comment.</p>
1039
- * @public
1040
- */
1041
- location?: Location | undefined;
1042
- /**
1043
- * <p>The content of the comment you posted.</p>
1044
- * @public
1045
- */
1046
- comment?: Comment | undefined;
1047
- }
1048
- /**
1049
- * @public
1050
- */
1051
- export interface PostCommentReplyInput {
1052
- /**
1053
- * <p>The system-generated ID of the comment to which you want to reply. To get this ID, use <a>GetCommentsForComparedCommit</a>
1054
- * or <a>GetCommentsForPullRequest</a>.</p>
1055
- * @public
1056
- */
1057
- inReplyTo: string | undefined;
1058
- /**
1059
- * <p>A unique, client-generated idempotency token that, when provided in a request, ensures
1060
- * the request cannot be repeated with a changed parameter. If a request is received with
1061
- * the same parameters and a token is included, the request returns information about the
1062
- * initial request that used that token.</p>
1063
- * @public
1064
- */
1065
- clientRequestToken?: string | undefined;
1066
- /**
1067
- * <p>The contents of your reply to a comment.</p>
1068
- * @public
1069
- */
1070
- content: string | undefined;
1071
- }
1072
- /**
1073
- * @public
1074
- */
1075
- export interface PostCommentReplyOutput {
1076
- /**
1077
- * <p>Information about the reply to a comment.</p>
1078
- * @public
1079
- */
1080
- comment?: Comment | undefined;
1081
- }
1082
- /**
1083
- * <p>The value of the reaction is not valid. For more information, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">CodeCommit User Guide</a>.</p>
1084
- * @public
1085
- */
1086
- export declare class InvalidReactionValueException extends __BaseException {
1087
- readonly name: "InvalidReactionValueException";
1088
- readonly $fault: "client";
1089
- /**
1090
- * @internal
1091
- */
1092
- constructor(opts: __ExceptionOptionType<InvalidReactionValueException, __BaseException>);
1093
- }
1094
- /**
1095
- * @public
1096
- */
1097
- export interface PutCommentReactionInput {
1098
- /**
1099
- * <p>The ID of the comment to which you want to add or update a reaction.</p>
1100
- * @public
1101
- */
1102
- commentId: string | undefined;
1103
- /**
1104
- * <p>The emoji reaction you want to add or update. To remove a reaction, provide a value of blank or null. You can also provide the value of none.
1105
- * For information about emoji reaction values supported in CodeCommit, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">CodeCommit User Guide</a>.</p>
1106
- * @public
1107
- */
1108
- reactionValue: string | undefined;
1109
- }
1110
- /**
1111
- * <p>The number of reactions has been exceeded. Reactions are limited to one reaction per user for each individual comment ID.</p>
1112
- * @public
1113
- */
1114
- export declare class ReactionLimitExceededException extends __BaseException {
1115
- readonly name: "ReactionLimitExceededException";
1116
- readonly $fault: "client";
1117
- /**
1118
- * @internal
1119
- */
1120
- constructor(opts: __ExceptionOptionType<ReactionLimitExceededException, __BaseException>);
1121
- }
1122
- /**
1123
- * <p>A reaction value is required. </p>
1124
- * @public
1125
- */
1126
- export declare class ReactionValueRequiredException extends __BaseException {
1127
- readonly name: "ReactionValueRequiredException";
1128
- readonly $fault: "client";
1129
- /**
1130
- * @internal
1131
- */
1132
- constructor(opts: __ExceptionOptionType<ReactionValueRequiredException, __BaseException>);
1133
- }
1134
- /**
1135
- * <p>The file cannot be added because it is empty. Empty files cannot be added to the repository with this API.</p>
1136
- * @public
1137
- */
1138
- export declare class FileContentRequiredException extends __BaseException {
1139
- readonly name: "FileContentRequiredException";
1140
- readonly $fault: "client";
1141
- /**
1142
- * @internal
1143
- */
1144
- constructor(opts: __ExceptionOptionType<FileContentRequiredException, __BaseException>);
1145
- }
1146
- /**
1147
- * @public
1148
- */
1149
- export interface PutFileInput {
1150
- /**
1151
- * <p>The name of the repository where you want to add or update the file.</p>
1152
- * @public
1153
- */
1154
- repositoryName: string | undefined;
1155
- /**
1156
- * <p>The name of the branch where you want to add or update the file. If this is an empty
1157
- * repository, this branch is created.</p>
1158
- * @public
1159
- */
1160
- branchName: string | undefined;
1161
- /**
1162
- * <p>The content of the file, in binary object format. </p>
1163
- * @public
1164
- */
1165
- fileContent: Uint8Array | undefined;
1166
- /**
1167
- * <p>The name of the file you want to add or update, including the relative path to the file in the repository.</p>
1168
- * <note>
1169
- * <p>If the path does not currently exist in the repository, the path is created as part of adding
1170
- * the file.</p>
1171
- * </note>
1172
- * @public
1173
- */
1174
- filePath: string | undefined;
1175
- /**
1176
- * <p>The file mode permissions of the blob. Valid file mode permissions are listed
1177
- * here.</p>
1178
- * @public
1179
- */
1180
- fileMode?: FileModeTypeEnum | undefined;
1181
- /**
1182
- * <p>The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository,
1183
- * no commit ID is required. If this is not an empty repository, a commit ID is required. </p>
1184
- * <p>The commit ID must match the ID of the head commit at the time of the operation.
1185
- * Otherwise, an error occurs, and the file is not added or updated.</p>
1186
- * @public
1187
- */
1188
- parentCommitId?: string | undefined;
1189
- /**
1190
- * <p>A message about why this file was added or updated. Although it is optional, a message
1191
- * makes the commit history for your repository more useful.</p>
1192
- * @public
1193
- */
1194
- commitMessage?: string | undefined;
1195
- /**
1196
- * <p>The name of the person adding or updating the file. Although it is optional, a name
1197
- * makes the commit history for your repository more useful.</p>
1198
- * @public
1199
- */
1200
- name?: string | undefined;
1201
- /**
1202
- * <p>An email address for the person adding or updating the file.</p>
1203
- * @public
1204
- */
1205
- email?: string | undefined;
1206
- }
1207
- /**
1208
- * @public
1209
- */
1210
- export interface PutFileOutput {
1211
- /**
1212
- * <p>The full SHA ID of the commit that contains this file change.</p>
1213
- * @public
1214
- */
1215
- commitId: string | undefined;
1216
- /**
1217
- * <p>The ID of the blob, which is its SHA-1 pointer.</p>
1218
- * @public
1219
- */
1220
- blobId: string | undefined;
1221
- /**
1222
- * <p>The full SHA-1 pointer of the tree information for the commit that contains this file change.</p>
1223
- * @public
1224
- */
1225
- treeId: string | undefined;
1226
- }
1227
- /**
1228
- * <p>The file was not added or updated because the content of the file is exactly the same as the content of that file in the repository and branch
1229
- * that you specified.</p>
1230
- * @public
1231
- */
1232
- export declare class SameFileContentException extends __BaseException {
1233
- readonly name: "SameFileContentException";
1234
- readonly $fault: "client";
1235
- /**
1236
- * @internal
1237
- */
1238
- constructor(opts: __ExceptionOptionType<SameFileContentException, __BaseException>);
1239
- }
1240
- /**
1241
- * <p>One or more branch names specified for the trigger is not valid.</p>
1242
- * @public
1243
- */
1244
- export declare class InvalidRepositoryTriggerBranchNameException extends __BaseException {
1245
- readonly name: "InvalidRepositoryTriggerBranchNameException";
1246
- readonly $fault: "client";
1247
- /**
1248
- * @internal
1249
- */
1250
- constructor(opts: __ExceptionOptionType<InvalidRepositoryTriggerBranchNameException, __BaseException>);
1251
- }
1252
- /**
1253
- * <p>The custom data provided for the trigger is not valid.</p>
1254
- * @public
1255
- */
1256
- export declare class InvalidRepositoryTriggerCustomDataException extends __BaseException {
1257
- readonly name: "InvalidRepositoryTriggerCustomDataException";
1258
- readonly $fault: "client";
1259
- /**
1260
- * @internal
1261
- */
1262
- constructor(opts: __ExceptionOptionType<InvalidRepositoryTriggerCustomDataException, __BaseException>);
1263
- }
1264
- /**
1265
- * <p>The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most common reason for this error is that the ARN does not meet the requirements for the service type.</p>
1266
- * @public
1267
- */
1268
- export declare class InvalidRepositoryTriggerDestinationArnException extends __BaseException {
1269
- readonly name: "InvalidRepositoryTriggerDestinationArnException";
1270
- readonly $fault: "client";
1271
- /**
1272
- * @internal
1273
- */
1274
- constructor(opts: __ExceptionOptionType<InvalidRepositoryTriggerDestinationArnException, __BaseException>);
1275
- }
1276
- /**
1277
- * <p>One or more events specified for the trigger is not valid. Check to make sure that all events specified match the requirements for allowed events.</p>
1278
- * @public
1279
- */
1280
- export declare class InvalidRepositoryTriggerEventsException extends __BaseException {
1281
- readonly name: "InvalidRepositoryTriggerEventsException";
1282
- readonly $fault: "client";
1283
- /**
1284
- * @internal
1285
- */
1286
- constructor(opts: __ExceptionOptionType<InvalidRepositoryTriggerEventsException, __BaseException>);
1287
- }
1288
- /**
1289
- * <p>The name of the trigger is not valid.</p>
1290
- * @public
1291
- */
1292
- export declare class InvalidRepositoryTriggerNameException extends __BaseException {
1293
- readonly name: "InvalidRepositoryTriggerNameException";
1294
- readonly $fault: "client";
1295
- /**
1296
- * @internal
1297
- */
1298
- constructor(opts: __ExceptionOptionType<InvalidRepositoryTriggerNameException, __BaseException>);
1299
- }
1300
- /**
1301
- * <p>The Amazon Web Services Region for the trigger target does not match the Amazon Web Services Region for the
1302
- * repository. Triggers must be created in the same Amazon Web Services Region as the target for the
1303
- * trigger.</p>
1304
- * @public
1305
- */
1306
- export declare class InvalidRepositoryTriggerRegionException extends __BaseException {
1307
- readonly name: "InvalidRepositoryTriggerRegionException";
1308
- readonly $fault: "client";
1309
- /**
1310
- * @internal
1311
- */
1312
- constructor(opts: __ExceptionOptionType<InvalidRepositoryTriggerRegionException, __BaseException>);
1313
- }
1314
- /**
1315
- * <p>The number of branches for the trigger was exceeded.</p>
1316
- * @public
1317
- */
1318
- export declare class MaximumBranchesExceededException extends __BaseException {
1319
- readonly name: "MaximumBranchesExceededException";
1320
- readonly $fault: "client";
1321
- /**
1322
- * @internal
1323
- */
1324
- constructor(opts: __ExceptionOptionType<MaximumBranchesExceededException, __BaseException>);
1325
- }
1326
- /**
1327
- * <p>The number of triggers allowed for the repository was exceeded.</p>
1328
- * @public
1329
- */
1330
- export declare class MaximumRepositoryTriggersExceededException extends __BaseException {
1331
- readonly name: "MaximumRepositoryTriggersExceededException";
1332
- readonly $fault: "client";
1333
- /**
1334
- * @internal
1335
- */
1336
- constructor(opts: __ExceptionOptionType<MaximumRepositoryTriggersExceededException, __BaseException>);
1337
- }
1338
- /**
1339
- * <p>Represents the input of a put repository triggers operation.</p>
1340
- * @public
1341
- */
1342
- export interface PutRepositoryTriggersInput {
1343
- /**
1344
- * <p>The name of the repository where you want to create or update the trigger.</p>
1345
- * @public
1346
- */
1347
- repositoryName: string | undefined;
1348
- /**
1349
- * <p>The JSON block of configuration information for each trigger.</p>
1350
- * @public
1351
- */
1352
- triggers: RepositoryTrigger[] | undefined;
1353
- }
1354
- /**
1355
- * <p>Represents the output of a put repository triggers operation.</p>
1356
- * @public
1357
- */
1358
- export interface PutRepositoryTriggersOutput {
1359
- /**
1360
- * <p>The system-generated unique ID for the create or update operation.</p>
1361
- * @public
1362
- */
1363
- configurationId?: string | undefined;
1364
- }
1365
- /**
1366
- * <p>At least one branch name is required, but was not specified in the trigger
1367
- * configuration.</p>
1368
- * @public
1369
- */
1370
- export declare class RepositoryTriggerBranchNameListRequiredException extends __BaseException {
1371
- readonly name: "RepositoryTriggerBranchNameListRequiredException";
1372
- readonly $fault: "client";
1373
- /**
1374
- * @internal
1375
- */
1376
- constructor(opts: __ExceptionOptionType<RepositoryTriggerBranchNameListRequiredException, __BaseException>);
1377
- }
1378
- /**
1379
- * <p>A destination ARN for the target service for the trigger is required, but was not
1380
- * specified.</p>
1381
- * @public
1382
- */
1383
- export declare class RepositoryTriggerDestinationArnRequiredException extends __BaseException {
1384
- readonly name: "RepositoryTriggerDestinationArnRequiredException";
1385
- readonly $fault: "client";
1386
- /**
1387
- * @internal
1388
- */
1389
- constructor(opts: __ExceptionOptionType<RepositoryTriggerDestinationArnRequiredException, __BaseException>);
1390
- }
1391
- /**
1392
- * <p>At least one event for the trigger is required, but was not specified.</p>
1393
- * @public
1394
- */
1395
- export declare class RepositoryTriggerEventsListRequiredException extends __BaseException {
1396
- readonly name: "RepositoryTriggerEventsListRequiredException";
1397
- readonly $fault: "client";
1398
- /**
1399
- * @internal
1400
- */
1401
- constructor(opts: __ExceptionOptionType<RepositoryTriggerEventsListRequiredException, __BaseException>);
1402
- }
1403
- /**
1404
- * <p>A name for the trigger is required, but was not specified.</p>
1405
- * @public
1406
- */
1407
- export declare class RepositoryTriggerNameRequiredException extends __BaseException {
1408
- readonly name: "RepositoryTriggerNameRequiredException";
1409
- readonly $fault: "client";
1410
- /**
1411
- * @internal
1412
- */
1413
- constructor(opts: __ExceptionOptionType<RepositoryTriggerNameRequiredException, __BaseException>);
1414
- }
1415
- /**
1416
- * <p>The list of triggers for the repository is required, but was not specified.</p>
1417
- * @public
1418
- */
1419
- export declare class RepositoryTriggersListRequiredException extends __BaseException {
1420
- readonly name: "RepositoryTriggersListRequiredException";
1421
- readonly $fault: "client";
1422
- /**
1423
- * @internal
1424
- */
1425
- constructor(opts: __ExceptionOptionType<RepositoryTriggersListRequiredException, __BaseException>);
1426
- }
1427
- /**
1428
- * @public
1429
- */
1430
- export interface TagResourceInput {
1431
- /**
1432
- * <p>The Amazon Resource Name (ARN) of the resource to which you want to add or update tags.</p>
1433
- * @public
1434
- */
1435
- resourceArn: string | undefined;
1436
- /**
1437
- * <p>The key-value pair to use when tagging this repository.</p>
1438
- * @public
1439
- */
1440
- tags: Record<string, string> | undefined;
1441
- }
1442
- /**
1443
- * <p>A map of tags is required.</p>
1444
- * @public
1445
- */
1446
- export declare class TagsMapRequiredException extends __BaseException {
1447
- readonly name: "TagsMapRequiredException";
1448
- readonly $fault: "client";
1449
- /**
1450
- * @internal
1451
- */
1452
- constructor(opts: __ExceptionOptionType<TagsMapRequiredException, __BaseException>);
1453
- }
1454
- /**
1455
- * <p>Represents the input of a test repository triggers operation.</p>
1456
- * @public
1457
- */
1458
- export interface TestRepositoryTriggersInput {
1459
- /**
1460
- * <p>The name of the repository in which to test the triggers.</p>
1461
- * @public
1462
- */
1463
- repositoryName: string | undefined;
1464
- /**
1465
- * <p>The list of triggers to test.</p>
1466
- * @public
1467
- */
1468
- triggers: RepositoryTrigger[] | undefined;
1469
- }
1470
- /**
1471
- * <p>A trigger failed to run.</p>
1472
- * @public
1473
- */
1474
- export interface RepositoryTriggerExecutionFailure {
1475
- /**
1476
- * <p>The name of the trigger that did not run.</p>
1477
- * @public
1478
- */
1479
- trigger?: string | undefined;
1480
- /**
1481
- * <p>Message information about the trigger that did not run.</p>
1482
- * @public
1483
- */
1484
- failureMessage?: string | undefined;
1485
- }
1486
- /**
1487
- * <p>Represents the output of a test repository triggers operation.</p>
1488
- * @public
1489
- */
1490
- export interface TestRepositoryTriggersOutput {
1491
- /**
1492
- * <p>The list of triggers that were successfully tested. This list provides the names of the triggers that were successfully tested, separated by commas.</p>
1493
- * @public
1494
- */
1495
- successfulExecutions?: string[] | undefined;
1496
- /**
1497
- * <p>The list of triggers that were not tested. This list provides the names of the
1498
- * triggers that could not be tested, separated by commas.</p>
1499
- * @public
1500
- */
1501
- failedExecutions?: RepositoryTriggerExecutionFailure[] | undefined;
1502
- }
1503
- /**
1504
- * <p>The list of tags is not valid.</p>
1505
- * @public
1506
- */
1507
- export declare class InvalidTagKeysListException extends __BaseException {
1508
- readonly name: "InvalidTagKeysListException";
1509
- readonly $fault: "client";
1510
- /**
1511
- * @internal
1512
- */
1513
- constructor(opts: __ExceptionOptionType<InvalidTagKeysListException, __BaseException>);
1514
- }
1515
- /**
1516
- * <p>A list of tag keys is required. The list cannot be empty or null.</p>
1517
- * @public
1518
- */
1519
- export declare class TagKeysListRequiredException extends __BaseException {
1520
- readonly name: "TagKeysListRequiredException";
1521
- readonly $fault: "client";
1522
- /**
1523
- * @internal
1524
- */
1525
- constructor(opts: __ExceptionOptionType<TagKeysListRequiredException, __BaseException>);
1526
- }
1527
- /**
1528
- * @public
1529
- */
1530
- export interface UntagResourceInput {
1531
- /**
1532
- * <p>The Amazon Resource Name (ARN) of the resource to which you want to remove tags.</p>
1533
- * @public
1534
- */
1535
- resourceArn: string | undefined;
1536
- /**
1537
- * <p>The tag key for each tag that you want to remove from the resource.</p>
1538
- * @public
1539
- */
1540
- tagKeys: string[] | undefined;
1541
- }
1542
- /**
1543
- * <p>The SHA-256 hash signature for the rule content is not valid.</p>
1544
- * @public
1545
- */
1546
- export declare class InvalidRuleContentSha256Exception extends __BaseException {
1547
- readonly name: "InvalidRuleContentSha256Exception";
1548
- readonly $fault: "client";
1549
- /**
1550
- * @internal
1551
- */
1552
- constructor(opts: __ExceptionOptionType<InvalidRuleContentSha256Exception, __BaseException>);
1553
- }
1554
- /**
1555
- * @public
1556
- */
1557
- export interface UpdateApprovalRuleTemplateContentInput {
1558
- /**
1559
- * <p>The name of the approval rule template where you want to update the content of the rule. </p>
1560
- * @public
1561
- */
1562
- approvalRuleTemplateName: string | undefined;
1563
- /**
1564
- * <p>The content that replaces the existing content of the rule. Content statements must be
1565
- * complete. You cannot provide only the changes.</p>
1566
- * @public
1567
- */
1568
- newRuleContent: string | undefined;
1569
- /**
1570
- * <p>The SHA-256 hash signature for the content of the approval rule. You can retrieve this
1571
- * information by using
1572
- * <a>GetPullRequest</a>.</p>
1573
- * @public
1574
- */
1575
- existingRuleContentSha256?: string | undefined;
1576
- }
1577
- /**
1578
- * @public
1579
- */
1580
- export interface UpdateApprovalRuleTemplateContentOutput {
1581
- /**
1582
- * <p>Returns information about an approval rule template.</p>
1583
- * @public
1584
- */
1585
- approvalRuleTemplate: ApprovalRuleTemplate | undefined;
1586
- }
1587
- /**
1588
- * @public
1589
- */
1590
- export interface UpdateApprovalRuleTemplateDescriptionInput {
1591
- /**
1592
- * <p>The name of the template for which you want to update the description.</p>
1593
- * @public
1594
- */
1595
- approvalRuleTemplateName: string | undefined;
1596
- /**
1597
- * <p>The updated description of the approval rule template.</p>
1598
- * @public
1599
- */
1600
- approvalRuleTemplateDescription: string | undefined;
1601
- }
1602
- /**
1603
- * @public
1604
- */
1605
- export interface UpdateApprovalRuleTemplateDescriptionOutput {
1606
- /**
1607
- * <p>The structure and content of the updated approval rule template.</p>
1608
- * @public
1609
- */
1610
- approvalRuleTemplate: ApprovalRuleTemplate | undefined;
1611
- }
1612
- /**
1613
- * @public
1614
- */
1615
- export interface UpdateApprovalRuleTemplateNameInput {
1616
- /**
1617
- * <p>The current name of the approval rule template.</p>
1618
- * @public
1619
- */
1620
- oldApprovalRuleTemplateName: string | undefined;
1621
- /**
1622
- * <p>The new name you want to apply to the approval rule template.</p>
1623
- * @public
1624
- */
1625
- newApprovalRuleTemplateName: string | undefined;
1626
- }
1627
- /**
1628
- * @public
1629
- */
1630
- export interface UpdateApprovalRuleTemplateNameOutput {
1631
- /**
1632
- * <p>The structure and content of the updated approval rule template.</p>
1633
- * @public
1634
- */
1635
- approvalRuleTemplate: ApprovalRuleTemplate | undefined;
1636
- }
1637
- /**
1638
- * <p>You cannot modify or delete this comment. Only comment authors can modify or delete their comments.</p>
1639
- * @public
1640
- */
1641
- export declare class CommentNotCreatedByCallerException extends __BaseException {
1642
- readonly name: "CommentNotCreatedByCallerException";
1643
- readonly $fault: "client";
1644
- /**
1645
- * @internal
1646
- */
1647
- constructor(opts: __ExceptionOptionType<CommentNotCreatedByCallerException, __BaseException>);
1648
- }
1649
- /**
1650
- * @public
1651
- */
1652
- export interface UpdateCommentInput {
1653
- /**
1654
- * <p>The system-generated ID of the comment you want to update. To get this ID, use <a>GetCommentsForComparedCommit</a>
1655
- * or <a>GetCommentsForPullRequest</a>.</p>
1656
- * @public
1657
- */
1658
- commentId: string | undefined;
1659
- /**
1660
- * <p>The updated content to replace the existing content of the comment.</p>
1661
- * @public
1662
- */
1663
- content: string | undefined;
1664
- }
1665
- /**
1666
- * @public
1667
- */
1668
- export interface UpdateCommentOutput {
1669
- /**
1670
- * <p>Information about the updated comment.</p>
1671
- * @public
1672
- */
1673
- comment?: Comment | undefined;
1674
- }
1675
- /**
1676
- * <p>Represents the input of an update default branch operation.</p>
1677
- * @public
1678
- */
1679
- export interface UpdateDefaultBranchInput {
1680
- /**
1681
- * <p>The name of the repository for which you want to set or change the default branch.</p>
1682
- * @public
1683
- */
1684
- repositoryName: string | undefined;
1685
- /**
1686
- * <p>The name of the branch to set as the default branch.</p>
1687
- * @public
1688
- */
1689
- defaultBranchName: string | undefined;
1690
- }
1691
- /**
1692
- * @public
1693
- */
1694
- export interface UpdatePullRequestApprovalRuleContentInput {
1695
- /**
1696
- * <p>The system-generated ID of the pull request.</p>
1697
- * @public
1698
- */
1699
- pullRequestId: string | undefined;
1700
- /**
1701
- * <p>The name of the approval rule you want to update.</p>
1702
- * @public
1703
- */
1704
- approvalRuleName: string | undefined;
1705
- /**
1706
- * <p>The SHA-256 hash signature for the content of the approval rule. You can retrieve this
1707
- * information by using
1708
- * <a>GetPullRequest</a>.</p>
1709
- * @public
1710
- */
1711
- existingRuleContentSha256?: string | undefined;
1712
- /**
1713
- * <p>The updated content for the approval rule.</p>
1714
- * <note>
1715
- * <p>When you update the content of the approval rule, you can specify approvers in an
1716
- * approval pool in one of two ways:</p>
1717
- * <ul>
1718
- * <li>
1719
- * <p>
1720
- * <b>CodeCommitApprovers</b>: This option only
1721
- * requires an Amazon Web Services account and a resource. It can be used for both IAM users
1722
- * and federated access users whose name matches the provided resource name.
1723
- * This is a very powerful option that offers a great deal of flexibility. For
1724
- * example, if you specify the Amazon Web Services account <i>123456789012</i>
1725
- * and <i>Mary_Major</i>, all of the following are counted as
1726
- * approvals coming from that user:</p>
1727
- * <ul>
1728
- * <li>
1729
- * <p>An IAM user in the account
1730
- * (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p>
1731
- * </li>
1732
- * <li>
1733
- * <p>A federated user identified in IAM as Mary_Major
1734
- * (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p>
1735
- * </li>
1736
- * </ul>
1737
- * <p>This option does not recognize an active session of someone assuming the
1738
- * role of CodeCommitReview with a role session name of
1739
- * <i>Mary_Major</i>
1740
- * (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
1741
- * unless you include a wildcard (*Mary_Major).</p>
1742
- * </li>
1743
- * <li>
1744
- * <p>
1745
- * <b>Fully qualified ARN</b>: This option allows
1746
- * you to specify the fully qualified Amazon Resource Name (ARN) of the IAM
1747
- * user or role. </p>
1748
- * </li>
1749
- * </ul>
1750
- * <p>For more information about IAM ARNs, wildcards, and formats, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
1751
- * Identifiers</a> in the <i>IAM User Guide</i>.</p>
1752
- * </note>
1753
- * @public
1754
- */
1755
- newRuleContent: string | undefined;
1756
- }
1757
- /**
1758
- * @public
1759
- */
1760
- export interface UpdatePullRequestApprovalRuleContentOutput {
1761
- /**
1762
- * <p>Information about the updated approval rule.</p>
1763
- * @public
1764
- */
1765
- approvalRule: ApprovalRule | undefined;
1766
- }
1767
- /**
1768
- * <p>The state for the approval is not valid. Valid values include APPROVE and REVOKE. </p>
1769
- * @public
1770
- */
1771
- export declare class InvalidApprovalStateException extends __BaseException {
1772
- readonly name: "InvalidApprovalStateException";
1773
- readonly $fault: "client";
1774
- /**
1775
- * @internal
1776
- */
1777
- constructor(opts: __ExceptionOptionType<InvalidApprovalStateException, __BaseException>);
1778
- }
1779
- /**
1780
- * <p>The number of approvals required for the approval rule exceeds the maximum number allowed.</p>
1781
- * @public
1782
- */
1783
- export declare class MaximumNumberOfApprovalsExceededException extends __BaseException {
1784
- readonly name: "MaximumNumberOfApprovalsExceededException";
1785
- readonly $fault: "client";
1786
- /**
1787
- * @internal
1788
- */
1789
- constructor(opts: __ExceptionOptionType<MaximumNumberOfApprovalsExceededException, __BaseException>);
1790
- }
1791
- /**
1792
- * <p>The approval cannot be applied because the user approving the pull request matches the user who created the pull request. You cannot approve a pull
1793
- * request that you created.</p>
1794
- * @public
1795
- */
1796
- export declare class PullRequestCannotBeApprovedByAuthorException extends __BaseException {
1797
- readonly name: "PullRequestCannotBeApprovedByAuthorException";
1798
- readonly $fault: "client";
1799
- /**
1800
- * @internal
1801
- */
1802
- constructor(opts: __ExceptionOptionType<PullRequestCannotBeApprovedByAuthorException, __BaseException>);
1803
- }
1804
- /**
1805
- * @public
1806
- */
1807
- export interface UpdatePullRequestApprovalStateInput {
1808
- /**
1809
- * <p>The system-generated ID of the pull request.</p>
1810
- * @public
1811
- */
1812
- pullRequestId: string | undefined;
1813
- /**
1814
- * <p>The system-generated ID of the revision.</p>
1815
- * @public
1816
- */
1817
- revisionId: string | undefined;
1818
- /**
1819
- * <p>The approval state to associate with the user on the pull request.</p>
1820
- * @public
1821
- */
1822
- approvalState: ApprovalState | undefined;
1823
- }
1824
- /**
1825
- * @public
1826
- */
1827
- export interface UpdatePullRequestDescriptionInput {
1828
- /**
1829
- * <p>The system-generated ID of the pull request. To get this ID, use <a>ListPullRequests</a>.</p>
1830
- * @public
1831
- */
1832
- pullRequestId: string | undefined;
1833
- /**
1834
- * <p>The updated content of the description for the pull request. This content replaces the
1835
- * existing description.</p>
1836
- * @public
1837
- */
1838
- description: string | undefined;
1839
- }
1840
- /**
1841
- * @public
1842
- */
1843
- export interface UpdatePullRequestDescriptionOutput {
1844
- /**
1845
- * <p>Information about the updated pull request.</p>
1846
- * @public
1847
- */
1848
- pullRequest: PullRequest | undefined;
1849
- }
1850
- /**
1851
- * <p>The pull request status update is not valid. The only valid update is from <code>OPEN</code> to <code>CLOSED</code>.</p>
1852
- * @public
1853
- */
1854
- export declare class InvalidPullRequestStatusUpdateException extends __BaseException {
1855
- readonly name: "InvalidPullRequestStatusUpdateException";
1856
- readonly $fault: "client";
1857
- /**
1858
- * @internal
1859
- */
1860
- constructor(opts: __ExceptionOptionType<InvalidPullRequestStatusUpdateException, __BaseException>);
1861
- }
1862
- /**
1863
- * <p>A pull request status is required, but none was provided.</p>
1864
- * @public
1865
- */
1866
- export declare class PullRequestStatusRequiredException extends __BaseException {
1867
- readonly name: "PullRequestStatusRequiredException";
1868
- readonly $fault: "client";
1869
- /**
1870
- * @internal
1871
- */
1872
- constructor(opts: __ExceptionOptionType<PullRequestStatusRequiredException, __BaseException>);
1873
- }
1874
- /**
1875
- * @public
1876
- */
1877
- export interface UpdatePullRequestStatusInput {
1878
- /**
1879
- * <p>The system-generated ID of the pull request. To get this ID, use <a>ListPullRequests</a>.</p>
1880
- * @public
1881
- */
1882
- pullRequestId: string | undefined;
1883
- /**
1884
- * <p>The status of the pull request. The only valid operations are to update the status
1885
- * from <code>OPEN</code> to <code>OPEN</code>, <code>OPEN</code> to <code>CLOSED</code> or
1886
- * from <code>CLOSED</code> to <code>CLOSED</code>.</p>
1887
- * @public
1888
- */
1889
- pullRequestStatus: PullRequestStatusEnum | undefined;
1890
- }
1891
- /**
1892
- * @public
1893
- */
1894
- export interface UpdatePullRequestStatusOutput {
1895
- /**
1896
- * <p>Information about the pull request.</p>
1897
- * @public
1898
- */
1899
- pullRequest: PullRequest | undefined;
1900
- }
1901
- /**
1902
- * @public
1903
- */
1904
- export interface UpdatePullRequestTitleInput {
1905
- /**
1906
- * <p>The system-generated ID of the pull request. To get this ID, use <a>ListPullRequests</a>.</p>
1907
- * @public
1908
- */
1909
- pullRequestId: string | undefined;
1910
- /**
1911
- * <p>The updated title of the pull request. This replaces the existing title.</p>
1912
- * @public
1913
- */
1914
- title: string | undefined;
1915
- }
1916
- /**
1917
- * @public
1918
- */
1919
- export interface UpdatePullRequestTitleOutput {
1920
- /**
1921
- * <p>Information about the updated pull request.</p>
1922
- * @public
1923
- */
1924
- pullRequest: PullRequest | undefined;
1925
- }
1926
- /**
1927
- * <p>Represents the input of an update repository description operation.</p>
1928
- * @public
1929
- */
1930
- export interface UpdateRepositoryDescriptionInput {
1931
- /**
1932
- * <p>The name of the repository to set or change the comment or description for.</p>
1933
- * @public
1934
- */
1935
- repositoryName: string | undefined;
1936
- /**
1937
- * <p>The new comment or description for the specified repository. Repository descriptions are limited to 1,000 characters.</p>
1938
- * @public
1939
- */
1940
- repositoryDescription?: string | undefined;
1941
- }
1942
- /**
1943
- * <p>A KMS encryption key ID is required but was not specified.</p>
1944
- * @public
1945
- */
1946
- export declare class EncryptionKeyRequiredException extends __BaseException {
1947
- readonly name: "EncryptionKeyRequiredException";
1948
- readonly $fault: "client";
1949
- /**
1950
- * @internal
1951
- */
1952
- constructor(opts: __ExceptionOptionType<EncryptionKeyRequiredException, __BaseException>);
1953
- }
1954
- /**
1955
- * @public
1956
- */
1957
- export interface UpdateRepositoryEncryptionKeyInput {
1958
- /**
1959
- * <p>The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.</p>
1960
- * @public
1961
- */
1962
- repositoryName: string | undefined;
1963
- /**
1964
- * <p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to
1965
- * programmatically retrieve a key ID. For more information about acceptable values for keyID, see
1966
- * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId">KeyId</a> in the Decrypt API description in
1967
- * the <i>Key Management Service API Reference</i>.</p>
1968
- * @public
1969
- */
1970
- kmsKeyId: string | undefined;
1971
- }
1972
- /**
1973
- * @public
1974
- */
1975
- export interface UpdateRepositoryEncryptionKeyOutput {
1976
- /**
1977
- * <p>The ID of the repository.</p>
1978
- * @public
1979
- */
1980
- repositoryId?: string | undefined;
1981
- /**
1982
- * <p>The ID of the encryption key.</p>
1983
- * @public
1984
- */
1985
- kmsKeyId?: string | undefined;
1986
- /**
1987
- * <p>The ID of the encryption key formerly used to encrypt and decrypt the repository.</p>
1988
- * @public
1989
- */
1990
- originalKmsKeyId?: string | undefined;
1991
- }
1992
- /**
1993
- * <p>Represents the input of an update repository description operation.</p>
1994
- * @public
1995
- */
1996
- export interface UpdateRepositoryNameInput {
1997
- /**
1998
- * <p>The current name of the repository.</p>
1999
- * @public
2000
- */
2001
- oldName: string | undefined;
2002
- /**
2003
- * <p>The new name for the repository.</p>
2004
- * @public
2005
- */
2006
- newName: string | undefined;
2007
- }