UNPKG

89.5 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class CodeCommit extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: CodeCommit.Types.ClientConfiguration)
13 config: Config & CodeCommit.Types.ClientConfiguration;
14 /**
15 * Returns information about one or more repositories. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
16 */
17 batchGetRepositories(params: CodeCommit.Types.BatchGetRepositoriesInput, callback?: (err: AWSError, data: CodeCommit.Types.BatchGetRepositoriesOutput) => void): Request<CodeCommit.Types.BatchGetRepositoriesOutput, AWSError>;
18 /**
19 * Returns information about one or more repositories. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
20 */
21 batchGetRepositories(callback?: (err: AWSError, data: CodeCommit.Types.BatchGetRepositoriesOutput) => void): Request<CodeCommit.Types.BatchGetRepositoriesOutput, AWSError>;
22 /**
23 * Creates a new branch in a repository and points the branch to a commit. Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
24 */
25 createBranch(params: CodeCommit.Types.CreateBranchInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
26 /**
27 * Creates a new branch in a repository and points the branch to a commit. Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
28 */
29 createBranch(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
30 /**
31 * Creates a commit for a repository on the tip of a specified branch.
32 */
33 createCommit(params: CodeCommit.Types.CreateCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.CreateCommitOutput) => void): Request<CodeCommit.Types.CreateCommitOutput, AWSError>;
34 /**
35 * Creates a commit for a repository on the tip of a specified branch.
36 */
37 createCommit(callback?: (err: AWSError, data: CodeCommit.Types.CreateCommitOutput) => void): Request<CodeCommit.Types.CreateCommitOutput, AWSError>;
38 /**
39 * Creates a pull request in the specified repository.
40 */
41 createPullRequest(params: CodeCommit.Types.CreatePullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.CreatePullRequestOutput) => void): Request<CodeCommit.Types.CreatePullRequestOutput, AWSError>;
42 /**
43 * Creates a pull request in the specified repository.
44 */
45 createPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.CreatePullRequestOutput) => void): Request<CodeCommit.Types.CreatePullRequestOutput, AWSError>;
46 /**
47 * Creates a new, empty repository.
48 */
49 createRepository(params: CodeCommit.Types.CreateRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.CreateRepositoryOutput) => void): Request<CodeCommit.Types.CreateRepositoryOutput, AWSError>;
50 /**
51 * Creates a new, empty repository.
52 */
53 createRepository(callback?: (err: AWSError, data: CodeCommit.Types.CreateRepositoryOutput) => void): Request<CodeCommit.Types.CreateRepositoryOutput, AWSError>;
54 /**
55 * Deletes a branch from a repository, unless that branch is the default branch for the repository.
56 */
57 deleteBranch(params: CodeCommit.Types.DeleteBranchInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteBranchOutput) => void): Request<CodeCommit.Types.DeleteBranchOutput, AWSError>;
58 /**
59 * Deletes a branch from a repository, unless that branch is the default branch for the repository.
60 */
61 deleteBranch(callback?: (err: AWSError, data: CodeCommit.Types.DeleteBranchOutput) => void): Request<CodeCommit.Types.DeleteBranchOutput, AWSError>;
62 /**
63 * Deletes the content of a comment made on a change, file, or commit in a repository.
64 */
65 deleteCommentContent(params: CodeCommit.Types.DeleteCommentContentInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteCommentContentOutput) => void): Request<CodeCommit.Types.DeleteCommentContentOutput, AWSError>;
66 /**
67 * Deletes the content of a comment made on a change, file, or commit in a repository.
68 */
69 deleteCommentContent(callback?: (err: AWSError, data: CodeCommit.Types.DeleteCommentContentOutput) => void): Request<CodeCommit.Types.DeleteCommentContentOutput, AWSError>;
70 /**
71 * Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.
72 */
73 deleteFile(params: CodeCommit.Types.DeleteFileInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteFileOutput) => void): Request<CodeCommit.Types.DeleteFileOutput, AWSError>;
74 /**
75 * Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.
76 */
77 deleteFile(callback?: (err: AWSError, data: CodeCommit.Types.DeleteFileOutput) => void): Request<CodeCommit.Types.DeleteFileOutput, AWSError>;
78 /**
79 * Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned. Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
80 */
81 deleteRepository(params: CodeCommit.Types.DeleteRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteRepositoryOutput) => void): Request<CodeCommit.Types.DeleteRepositoryOutput, AWSError>;
82 /**
83 * Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned. Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
84 */
85 deleteRepository(callback?: (err: AWSError, data: CodeCommit.Types.DeleteRepositoryOutput) => void): Request<CodeCommit.Types.DeleteRepositoryOutput, AWSError>;
86 /**
87 * Returns information about one or more pull request events.
88 */
89 describePullRequestEvents(params: CodeCommit.Types.DescribePullRequestEventsInput, callback?: (err: AWSError, data: CodeCommit.Types.DescribePullRequestEventsOutput) => void): Request<CodeCommit.Types.DescribePullRequestEventsOutput, AWSError>;
90 /**
91 * Returns information about one or more pull request events.
92 */
93 describePullRequestEvents(callback?: (err: AWSError, data: CodeCommit.Types.DescribePullRequestEventsOutput) => void): Request<CodeCommit.Types.DescribePullRequestEventsOutput, AWSError>;
94 /**
95 * Returns the base-64 encoded content of an individual blob within a repository.
96 */
97 getBlob(params: CodeCommit.Types.GetBlobInput, callback?: (err: AWSError, data: CodeCommit.Types.GetBlobOutput) => void): Request<CodeCommit.Types.GetBlobOutput, AWSError>;
98 /**
99 * Returns the base-64 encoded content of an individual blob within a repository.
100 */
101 getBlob(callback?: (err: AWSError, data: CodeCommit.Types.GetBlobOutput) => void): Request<CodeCommit.Types.GetBlobOutput, AWSError>;
102 /**
103 * Returns information about a repository branch, including its name and the last commit ID.
104 */
105 getBranch(params: CodeCommit.Types.GetBranchInput, callback?: (err: AWSError, data: CodeCommit.Types.GetBranchOutput) => void): Request<CodeCommit.Types.GetBranchOutput, AWSError>;
106 /**
107 * Returns information about a repository branch, including its name and the last commit ID.
108 */
109 getBranch(callback?: (err: AWSError, data: CodeCommit.Types.GetBranchOutput) => void): Request<CodeCommit.Types.GetBranchOutput, AWSError>;
110 /**
111 * Returns the content of a comment made on a change, file, or commit in a repository.
112 */
113 getComment(params: CodeCommit.Types.GetCommentInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentOutput) => void): Request<CodeCommit.Types.GetCommentOutput, AWSError>;
114 /**
115 * Returns the content of a comment made on a change, file, or commit in a repository.
116 */
117 getComment(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentOutput) => void): Request<CodeCommit.Types.GetCommentOutput, AWSError>;
118 /**
119 * Returns information about comments made on the comparison between two commits.
120 */
121 getCommentsForComparedCommit(params: CodeCommit.Types.GetCommentsForComparedCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForComparedCommitOutput) => void): Request<CodeCommit.Types.GetCommentsForComparedCommitOutput, AWSError>;
122 /**
123 * Returns information about comments made on the comparison between two commits.
124 */
125 getCommentsForComparedCommit(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForComparedCommitOutput) => void): Request<CodeCommit.Types.GetCommentsForComparedCommitOutput, AWSError>;
126 /**
127 * Returns comments made on a pull request.
128 */
129 getCommentsForPullRequest(params: CodeCommit.Types.GetCommentsForPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForPullRequestOutput) => void): Request<CodeCommit.Types.GetCommentsForPullRequestOutput, AWSError>;
130 /**
131 * Returns comments made on a pull request.
132 */
133 getCommentsForPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForPullRequestOutput) => void): Request<CodeCommit.Types.GetCommentsForPullRequestOutput, AWSError>;
134 /**
135 * Returns information about a commit, including commit message and committer information.
136 */
137 getCommit(params: CodeCommit.Types.GetCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommitOutput) => void): Request<CodeCommit.Types.GetCommitOutput, AWSError>;
138 /**
139 * Returns information about a commit, including commit message and committer information.
140 */
141 getCommit(callback?: (err: AWSError, data: CodeCommit.Types.GetCommitOutput) => void): Request<CodeCommit.Types.GetCommitOutput, AWSError>;
142 /**
143 * Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference). Results can be limited to a specified path.
144 */
145 getDifferences(params: CodeCommit.Types.GetDifferencesInput, callback?: (err: AWSError, data: CodeCommit.Types.GetDifferencesOutput) => void): Request<CodeCommit.Types.GetDifferencesOutput, AWSError>;
146 /**
147 * Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference). Results can be limited to a specified path.
148 */
149 getDifferences(callback?: (err: AWSError, data: CodeCommit.Types.GetDifferencesOutput) => void): Request<CodeCommit.Types.GetDifferencesOutput, AWSError>;
150 /**
151 * Returns the base-64 encoded contents of a specified file and its metadata.
152 */
153 getFile(params: CodeCommit.Types.GetFileInput, callback?: (err: AWSError, data: CodeCommit.Types.GetFileOutput) => void): Request<CodeCommit.Types.GetFileOutput, AWSError>;
154 /**
155 * Returns the base-64 encoded contents of a specified file and its metadata.
156 */
157 getFile(callback?: (err: AWSError, data: CodeCommit.Types.GetFileOutput) => void): Request<CodeCommit.Types.GetFileOutput, AWSError>;
158 /**
159 * Returns the contents of a specified folder in a repository.
160 */
161 getFolder(params: CodeCommit.Types.GetFolderInput, callback?: (err: AWSError, data: CodeCommit.Types.GetFolderOutput) => void): Request<CodeCommit.Types.GetFolderOutput, AWSError>;
162 /**
163 * Returns the contents of a specified folder in a repository.
164 */
165 getFolder(callback?: (err: AWSError, data: CodeCommit.Types.GetFolderOutput) => void): Request<CodeCommit.Types.GetFolderOutput, AWSError>;
166 /**
167 * Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
168 */
169 getMergeConflicts(params: CodeCommit.Types.GetMergeConflictsInput, callback?: (err: AWSError, data: CodeCommit.Types.GetMergeConflictsOutput) => void): Request<CodeCommit.Types.GetMergeConflictsOutput, AWSError>;
170 /**
171 * Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
172 */
173 getMergeConflicts(callback?: (err: AWSError, data: CodeCommit.Types.GetMergeConflictsOutput) => void): Request<CodeCommit.Types.GetMergeConflictsOutput, AWSError>;
174 /**
175 * Gets information about a pull request in a specified repository.
176 */
177 getPullRequest(params: CodeCommit.Types.GetPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.GetPullRequestOutput) => void): Request<CodeCommit.Types.GetPullRequestOutput, AWSError>;
178 /**
179 * Gets information about a pull request in a specified repository.
180 */
181 getPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.GetPullRequestOutput) => void): Request<CodeCommit.Types.GetPullRequestOutput, AWSError>;
182 /**
183 * Returns information about a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
184 */
185 getRepository(params: CodeCommit.Types.GetRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryOutput) => void): Request<CodeCommit.Types.GetRepositoryOutput, AWSError>;
186 /**
187 * Returns information about a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
188 */
189 getRepository(callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryOutput) => void): Request<CodeCommit.Types.GetRepositoryOutput, AWSError>;
190 /**
191 * Gets information about triggers configured for a repository.
192 */
193 getRepositoryTriggers(params: CodeCommit.Types.GetRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryTriggersOutput) => void): Request<CodeCommit.Types.GetRepositoryTriggersOutput, AWSError>;
194 /**
195 * Gets information about triggers configured for a repository.
196 */
197 getRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryTriggersOutput) => void): Request<CodeCommit.Types.GetRepositoryTriggersOutput, AWSError>;
198 /**
199 * Gets information about one or more branches in a repository.
200 */
201 listBranches(params: CodeCommit.Types.ListBranchesInput, callback?: (err: AWSError, data: CodeCommit.Types.ListBranchesOutput) => void): Request<CodeCommit.Types.ListBranchesOutput, AWSError>;
202 /**
203 * Gets information about one or more branches in a repository.
204 */
205 listBranches(callback?: (err: AWSError, data: CodeCommit.Types.ListBranchesOutput) => void): Request<CodeCommit.Types.ListBranchesOutput, AWSError>;
206 /**
207 * Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
208 */
209 listPullRequests(params: CodeCommit.Types.ListPullRequestsInput, callback?: (err: AWSError, data: CodeCommit.Types.ListPullRequestsOutput) => void): Request<CodeCommit.Types.ListPullRequestsOutput, AWSError>;
210 /**
211 * Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
212 */
213 listPullRequests(callback?: (err: AWSError, data: CodeCommit.Types.ListPullRequestsOutput) => void): Request<CodeCommit.Types.ListPullRequestsOutput, AWSError>;
214 /**
215 * Gets information about one or more repositories.
216 */
217 listRepositories(params: CodeCommit.Types.ListRepositoriesInput, callback?: (err: AWSError, data: CodeCommit.Types.ListRepositoriesOutput) => void): Request<CodeCommit.Types.ListRepositoriesOutput, AWSError>;
218 /**
219 * Gets information about one or more repositories.
220 */
221 listRepositories(callback?: (err: AWSError, data: CodeCommit.Types.ListRepositoriesOutput) => void): Request<CodeCommit.Types.ListRepositoriesOutput, AWSError>;
222 /**
223 * Closes a pull request and attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge option.
224 */
225 mergePullRequestByFastForward(params: CodeCommit.Types.MergePullRequestByFastForwardInput, callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestByFastForwardOutput) => void): Request<CodeCommit.Types.MergePullRequestByFastForwardOutput, AWSError>;
226 /**
227 * Closes a pull request and attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge option.
228 */
229 mergePullRequestByFastForward(callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestByFastForwardOutput) => void): Request<CodeCommit.Types.MergePullRequestByFastForwardOutput, AWSError>;
230 /**
231 * Posts a comment on the comparison between two commits.
232 */
233 postCommentForComparedCommit(params: CodeCommit.Types.PostCommentForComparedCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForComparedCommitOutput) => void): Request<CodeCommit.Types.PostCommentForComparedCommitOutput, AWSError>;
234 /**
235 * Posts a comment on the comparison between two commits.
236 */
237 postCommentForComparedCommit(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForComparedCommitOutput) => void): Request<CodeCommit.Types.PostCommentForComparedCommitOutput, AWSError>;
238 /**
239 * Posts a comment on a pull request.
240 */
241 postCommentForPullRequest(params: CodeCommit.Types.PostCommentForPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForPullRequestOutput) => void): Request<CodeCommit.Types.PostCommentForPullRequestOutput, AWSError>;
242 /**
243 * Posts a comment on a pull request.
244 */
245 postCommentForPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForPullRequestOutput) => void): Request<CodeCommit.Types.PostCommentForPullRequestOutput, AWSError>;
246 /**
247 * Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
248 */
249 postCommentReply(params: CodeCommit.Types.PostCommentReplyInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentReplyOutput) => void): Request<CodeCommit.Types.PostCommentReplyOutput, AWSError>;
250 /**
251 * Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
252 */
253 postCommentReply(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentReplyOutput) => void): Request<CodeCommit.Types.PostCommentReplyOutput, AWSError>;
254 /**
255 * Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
256 */
257 putFile(params: CodeCommit.Types.PutFileInput, callback?: (err: AWSError, data: CodeCommit.Types.PutFileOutput) => void): Request<CodeCommit.Types.PutFileOutput, AWSError>;
258 /**
259 * Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
260 */
261 putFile(callback?: (err: AWSError, data: CodeCommit.Types.PutFileOutput) => void): Request<CodeCommit.Types.PutFileOutput, AWSError>;
262 /**
263 * Replaces all triggers for a repository. This can be used to create or delete triggers.
264 */
265 putRepositoryTriggers(params: CodeCommit.Types.PutRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.PutRepositoryTriggersOutput) => void): Request<CodeCommit.Types.PutRepositoryTriggersOutput, AWSError>;
266 /**
267 * Replaces all triggers for a repository. This can be used to create or delete triggers.
268 */
269 putRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.PutRepositoryTriggersOutput) => void): Request<CodeCommit.Types.PutRepositoryTriggersOutput, AWSError>;
270 /**
271 * Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.
272 */
273 testRepositoryTriggers(params: CodeCommit.Types.TestRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.TestRepositoryTriggersOutput) => void): Request<CodeCommit.Types.TestRepositoryTriggersOutput, AWSError>;
274 /**
275 * Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.
276 */
277 testRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.TestRepositoryTriggersOutput) => void): Request<CodeCommit.Types.TestRepositoryTriggersOutput, AWSError>;
278 /**
279 * Replaces the contents of a comment.
280 */
281 updateComment(params: CodeCommit.Types.UpdateCommentInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdateCommentOutput) => void): Request<CodeCommit.Types.UpdateCommentOutput, AWSError>;
282 /**
283 * Replaces the contents of a comment.
284 */
285 updateComment(callback?: (err: AWSError, data: CodeCommit.Types.UpdateCommentOutput) => void): Request<CodeCommit.Types.UpdateCommentOutput, AWSError>;
286 /**
287 * Sets or changes the default branch name for the specified repository. If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
288 */
289 updateDefaultBranch(params: CodeCommit.Types.UpdateDefaultBranchInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
290 /**
291 * Sets or changes the default branch name for the specified repository. If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
292 */
293 updateDefaultBranch(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
294 /**
295 * Replaces the contents of the description of a pull request.
296 */
297 updatePullRequestDescription(params: CodeCommit.Types.UpdatePullRequestDescriptionInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestDescriptionOutput) => void): Request<CodeCommit.Types.UpdatePullRequestDescriptionOutput, AWSError>;
298 /**
299 * Replaces the contents of the description of a pull request.
300 */
301 updatePullRequestDescription(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestDescriptionOutput) => void): Request<CodeCommit.Types.UpdatePullRequestDescriptionOutput, AWSError>;
302 /**
303 * Updates the status of a pull request.
304 */
305 updatePullRequestStatus(params: CodeCommit.Types.UpdatePullRequestStatusInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestStatusOutput) => void): Request<CodeCommit.Types.UpdatePullRequestStatusOutput, AWSError>;
306 /**
307 * Updates the status of a pull request.
308 */
309 updatePullRequestStatus(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestStatusOutput) => void): Request<CodeCommit.Types.UpdatePullRequestStatusOutput, AWSError>;
310 /**
311 * Replaces the title of a pull request.
312 */
313 updatePullRequestTitle(params: CodeCommit.Types.UpdatePullRequestTitleInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestTitleOutput) => void): Request<CodeCommit.Types.UpdatePullRequestTitleOutput, AWSError>;
314 /**
315 * Replaces the title of a pull request.
316 */
317 updatePullRequestTitle(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestTitleOutput) => void): Request<CodeCommit.Types.UpdatePullRequestTitleOutput, AWSError>;
318 /**
319 * Sets or changes the comment or description for a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
320 */
321 updateRepositoryDescription(params: CodeCommit.Types.UpdateRepositoryDescriptionInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
322 /**
323 * Sets or changes the comment or description for a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
324 */
325 updateRepositoryDescription(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
326 /**
327 * Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.
328 */
329 updateRepositoryName(params: CodeCommit.Types.UpdateRepositoryNameInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
330 /**
331 * Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.
332 */
333 updateRepositoryName(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
334}
335declare namespace CodeCommit {
336 export type AccountId = string;
337 export type AdditionalData = string;
338 export type Arn = string;
339 export interface BatchGetRepositoriesInput {
340 /**
341 * The names of the repositories to get information about.
342 */
343 repositoryNames: RepositoryNameList;
344 }
345 export interface BatchGetRepositoriesOutput {
346 /**
347 * A list of repositories returned by the batch get repositories operation.
348 */
349 repositories?: RepositoryMetadataList;
350 /**
351 * Returns a list of repository names for which information could not be found.
352 */
353 repositoriesNotFound?: RepositoryNotFoundList;
354 }
355 export interface BlobMetadata {
356 /**
357 * The full ID of the blob.
358 */
359 blobId?: ObjectId;
360 /**
361 * The path to the blob and any associated file name, if any.
362 */
363 path?: Path;
364 /**
365 * The file mode permissions of the blob. File mode permission codes include: 100644 indicates read/write 100755 indicates read/write/execute 160000 indicates a submodule 120000 indicates a symlink
366 */
367 mode?: Mode;
368 }
369 export interface BranchInfo {
370 /**
371 * The name of the branch.
372 */
373 branchName?: BranchName;
374 /**
375 * The ID of the last commit made to the branch.
376 */
377 commitId?: CommitId;
378 }
379 export type BranchName = string;
380 export type BranchNameList = BranchName[];
381 export type ChangeTypeEnum = "A"|"M"|"D"|string;
382 export type ClientRequestToken = string;
383 export type CloneUrlHttp = string;
384 export type CloneUrlSsh = string;
385 export interface Comment {
386 /**
387 * The system-generated comment ID.
388 */
389 commentId?: CommentId;
390 /**
391 * The content of the comment.
392 */
393 content?: Content;
394 /**
395 * The ID of the comment for which this comment is a reply, if any.
396 */
397 inReplyTo?: CommentId;
398 /**
399 * The date and time the comment was created, in timestamp format.
400 */
401 creationDate?: CreationDate;
402 /**
403 * The date and time the comment was most recently modified, in timestamp format.
404 */
405 lastModifiedDate?: LastModifiedDate;
406 /**
407 * The Amazon Resource Name (ARN) of the person who posted the comment.
408 */
409 authorArn?: Arn;
410 /**
411 * A Boolean value indicating whether the comment has been deleted.
412 */
413 deleted?: IsCommentDeleted;
414 /**
415 * A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
416 */
417 clientRequestToken?: ClientRequestToken;
418 }
419 export type CommentId = string;
420 export type Comments = Comment[];
421 export interface CommentsForComparedCommit {
422 /**
423 * The name of the repository that contains the compared commits.
424 */
425 repositoryName?: RepositoryName;
426 /**
427 * The full commit ID of the commit used to establish the 'before' of the comparison.
428 */
429 beforeCommitId?: CommitId;
430 /**
431 * The full commit ID of the commit used to establish the 'after' of the comparison.
432 */
433 afterCommitId?: CommitId;
434 /**
435 * The full blob ID of the commit used to establish the 'before' of the comparison.
436 */
437 beforeBlobId?: ObjectId;
438 /**
439 * The full blob ID of the commit used to establish the 'after' of the comparison.
440 */
441 afterBlobId?: ObjectId;
442 /**
443 * Location information about the comment on the comparison, including the file name, line number, and whether the version of the file where the comment was made is 'BEFORE' or 'AFTER'.
444 */
445 location?: Location;
446 /**
447 * An array of comment objects. Each comment object contains information about a comment on the comparison between commits.
448 */
449 comments?: Comments;
450 }
451 export type CommentsForComparedCommitData = CommentsForComparedCommit[];
452 export interface CommentsForPullRequest {
453 /**
454 * The system-generated ID of the pull request.
455 */
456 pullRequestId?: PullRequestId;
457 /**
458 * The name of the repository that contains the pull request.
459 */
460 repositoryName?: RepositoryName;
461 /**
462 * The full commit ID of the commit that was the tip of the destination branch when the pull request was created. This commit will be superceded by the after commit in the source branch when and if you merge the source branch into the destination branch.
463 */
464 beforeCommitId?: CommitId;
465 /**
466 * he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
467 */
468 afterCommitId?: CommitId;
469 /**
470 * The full blob ID of the file on which you want to comment on the destination commit.
471 */
472 beforeBlobId?: ObjectId;
473 /**
474 * The full blob ID of the file on which you want to comment on the source commit.
475 */
476 afterBlobId?: ObjectId;
477 /**
478 * Location information about the comment on the pull request, including the file name, line number, and whether the version of the file where the comment was made is 'BEFORE' (destination branch) or 'AFTER' (source branch).
479 */
480 location?: Location;
481 /**
482 * An array of comment objects. Each comment object contains information about a comment on the pull request.
483 */
484 comments?: Comments;
485 }
486 export type CommentsForPullRequestData = CommentsForPullRequest[];
487 export interface Commit {
488 /**
489 * The full SHA of the specified commit.
490 */
491 commitId?: ObjectId;
492 /**
493 * Tree information for the specified commit.
494 */
495 treeId?: ObjectId;
496 /**
497 * A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
498 */
499 parents?: ParentList;
500 /**
501 * The commit message associated with the specified commit.
502 */
503 message?: Message;
504 /**
505 * Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.
506 */
507 author?: UserInfo;
508 /**
509 * Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git. For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
510 */
511 committer?: UserInfo;
512 /**
513 * Any additional data associated with the specified commit.
514 */
515 additionalData?: AdditionalData;
516 }
517 export type CommitId = string;
518 export type CommitName = string;
519 export type Content = string;
520 export interface CreateBranchInput {
521 /**
522 * The name of the repository in which you want to create the new branch.
523 */
524 repositoryName: RepositoryName;
525 /**
526 * The name of the new branch to create.
527 */
528 branchName: BranchName;
529 /**
530 * The ID of the commit to point the new branch to.
531 */
532 commitId: CommitId;
533 }
534 export interface CreateCommitInput {
535 /**
536 * The name of the repository where you will create the commit.
537 */
538 repositoryName: RepositoryName;
539 /**
540 * The name of the branch where you will create the commit.
541 */
542 branchName: BranchName;
543 /**
544 * The ID of the commit that is the parent of the commit you will create. If this is an empty repository, this is not required.
545 */
546 parentCommitId?: CommitId;
547 /**
548 * The name of the author who created the commit. This information will be used as both the author and committer for the commit.
549 */
550 authorName?: Name;
551 /**
552 * The email address of the person who created the commit.
553 */
554 email?: Email;
555 /**
556 * The commit message you want to include as part of creating the commit. Commit messages are limited to 256 KB. If no message is specified, a default message will be used.
557 */
558 commitMessage?: Message;
559 /**
560 * If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If this is specified as true, a .gitkeep file will be created for empty folders.
561 */
562 keepEmptyFolders?: KeepEmptyFolders;
563 /**
564 * The files to add or update in this commit.
565 */
566 putFiles?: PutFileEntries;
567 /**
568 * The files to delete in this commit. These files will still exist in prior commits.
569 */
570 deleteFiles?: DeleteFileEntries;
571 /**
572 * The file modes to update for files in this commit.
573 */
574 setFileModes?: SetFileModeEntries;
575 }
576 export interface CreateCommitOutput {
577 /**
578 * The full commit ID of the commit that contains your committed file changes.
579 */
580 commitId?: ObjectId;
581 /**
582 * The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
583 */
584 treeId?: ObjectId;
585 /**
586 * The files added as part of the committed file changes.
587 */
588 filesAdded?: FilesMetadata;
589 /**
590 * The files updated as part of the commited file changes.
591 */
592 filesUpdated?: FilesMetadata;
593 /**
594 * The files deleted as part of the committed file changes.
595 */
596 filesDeleted?: FilesMetadata;
597 }
598 export interface CreatePullRequestInput {
599 /**
600 * The title of the pull request. This title will be used to identify the pull request to other users in the repository.
601 */
602 title: Title;
603 /**
604 * A description of the pull request.
605 */
606 description?: Description;
607 /**
608 * The targets for the pull request, including the source of the code to be reviewed (the source branch), and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).
609 */
610 targets: TargetList;
611 /**
612 * A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token. The AWS SDKs prepopulate client request tokens. If using an AWS SDK, you do not have to generate an idempotency token, as this will be done for you.
613 */
614 clientRequestToken?: ClientRequestToken;
615 }
616 export interface CreatePullRequestOutput {
617 /**
618 * Information about the newly created pull request.
619 */
620 pullRequest: PullRequest;
621 }
622 export interface CreateRepositoryInput {
623 /**
624 * The name of the new repository to be created. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
625 */
626 repositoryName: RepositoryName;
627 /**
628 * A comment or description about the new repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
629 */
630 repositoryDescription?: RepositoryDescription;
631 }
632 export interface CreateRepositoryOutput {
633 /**
634 * Information about the newly created repository.
635 */
636 repositoryMetadata?: RepositoryMetadata;
637 }
638 export type CreationDate = Date;
639 export type _Date = string;
640 export interface DeleteBranchInput {
641 /**
642 * The name of the repository that contains the branch to be deleted.
643 */
644 repositoryName: RepositoryName;
645 /**
646 * The name of the branch to delete.
647 */
648 branchName: BranchName;
649 }
650 export interface DeleteBranchOutput {
651 /**
652 * Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
653 */
654 deletedBranch?: BranchInfo;
655 }
656 export interface DeleteCommentContentInput {
657 /**
658 * The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
659 */
660 commentId: CommentId;
661 }
662 export interface DeleteCommentContentOutput {
663 /**
664 * Information about the comment you just deleted.
665 */
666 comment?: Comment;
667 }
668 export type DeleteFileEntries = DeleteFileEntry[];
669 export interface DeleteFileEntry {
670 /**
671 * The full path of the file that will be deleted, including the name of the file.
672 */
673 filePath: Path;
674 }
675 export interface DeleteFileInput {
676 /**
677 * The name of the repository that contains the file to delete.
678 */
679 repositoryName: RepositoryName;
680 /**
681 * The name of the branch where the commit will be made deleting the file.
682 */
683 branchName: BranchName;
684 /**
685 * The fully-qualified path to the file that will be deleted, including the full name and extension of that file. For example, /examples/file.md is a fully qualified path to a file named file.md in a folder named examples.
686 */
687 filePath: Path;
688 /**
689 * The ID of the commit that is the tip of the branch where you want to create the commit that will delete the file. This must be the HEAD commit for the branch. The commit that deletes the file will be created from this commit ID.
690 */
691 parentCommitId: CommitId;
692 /**
693 * Specifies whether to delete the folder or directory that contains the file you want to delete if that file is the only object in the folder or directory. By default, empty folders will be deleted. This includes empty folders that are part of the directory structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and dir2 and dir3 are empty, deleting the last file in dir4 will also delete the empty folders dir4, dir3, and dir2.
694 */
695 keepEmptyFolders?: KeepEmptyFolders;
696 /**
697 * The commit message you want to include as part of deleting the file. Commit messages are limited to 256 KB. If no message is specified, a default message will be used.
698 */
699 commitMessage?: Message;
700 /**
701 * The name of the author of the commit that deletes the file. If no name is specified, the user's ARN will be used as the author name and committer name.
702 */
703 name?: Name;
704 /**
705 * The email address for the commit that deletes the file. If no email address is specified, the email address will be left blank.
706 */
707 email?: Email;
708 }
709 export interface DeleteFileOutput {
710 /**
711 * The full commit ID of the commit that contains the change that deletes the file.
712 */
713 commitId: ObjectId;
714 /**
715 * The blob ID removed from the tree as part of deleting the file.
716 */
717 blobId: ObjectId;
718 /**
719 * The full SHA-1 pointer of the tree information for the commit that contains the delete file change.
720 */
721 treeId: ObjectId;
722 /**
723 * The fully-qualified path to the file that will be deleted, including the full name and extension of that file.
724 */
725 filePath: Path;
726 }
727 export interface DeleteRepositoryInput {
728 /**
729 * The name of the repository to delete.
730 */
731 repositoryName: RepositoryName;
732 }
733 export interface DeleteRepositoryOutput {
734 /**
735 * The ID of the repository that was deleted.
736 */
737 repositoryId?: RepositoryId;
738 }
739 export interface DescribePullRequestEventsInput {
740 /**
741 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
742 */
743 pullRequestId: PullRequestId;
744 /**
745 * Optional. The pull request event type about which you want to return information.
746 */
747 pullRequestEventType?: PullRequestEventType;
748 /**
749 * The Amazon Resource Name (ARN) of the user whose actions resulted in the event. Examples include updating the pull request with additional commits or changing the status of a pull request.
750 */
751 actorArn?: Arn;
752 /**
753 * An enumeration token that when provided in a request, returns the next batch of the results.
754 */
755 nextToken?: NextToken;
756 /**
757 * A non-negative integer used to limit the number of returned results. The default is 100 events, which is also the maximum number of events that can be returned in a result.
758 */
759 maxResults?: MaxResults;
760 }
761 export interface DescribePullRequestEventsOutput {
762 /**
763 * Information about the pull request events.
764 */
765 pullRequestEvents: PullRequestEventList;
766 /**
767 * An enumeration token that can be used in a request to return the next batch of the results.
768 */
769 nextToken?: NextToken;
770 }
771 export type Description = string;
772 export interface Difference {
773 /**
774 * Information about a beforeBlob data type object, including the ID, the file mode permission code, and the path.
775 */
776 beforeBlob?: BlobMetadata;
777 /**
778 * Information about an afterBlob data type object, including the ID, the file mode permission code, and the path.
779 */
780 afterBlob?: BlobMetadata;
781 /**
782 * Whether the change type of the difference is an addition (A), deletion (D), or modification (M).
783 */
784 changeType?: ChangeTypeEnum;
785 }
786 export type DifferenceList = Difference[];
787 export type Email = string;
788 export type EventDate = Date;
789 export interface File {
790 /**
791 * The blob ID that contains the file information.
792 */
793 blobId?: ObjectId;
794 /**
795 * The fully-qualified path to the file in the repository.
796 */
797 absolutePath?: Path;
798 /**
799 * The relative path of the file from the folder where the query originated.
800 */
801 relativePath?: Path;
802 /**
803 * The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
804 */
805 fileMode?: FileModeTypeEnum;
806 }
807 export type FileContent = Buffer|Uint8Array|Blob|string;
808 export type FileList = File[];
809 export interface FileMetadata {
810 /**
811 * The full path to the file that will be added or updated, including the name of the file.
812 */
813 absolutePath?: Path;
814 /**
815 * The blob ID that contains the file information.
816 */
817 blobId?: ObjectId;
818 /**
819 * The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
820 */
821 fileMode?: FileModeTypeEnum;
822 }
823 export type FileModeTypeEnum = "EXECUTABLE"|"NORMAL"|"SYMLINK"|string;
824 export type FilesMetadata = FileMetadata[];
825 export interface Folder {
826 /**
827 * The full SHA-1 pointer of the tree information for the commit that contains the folder.
828 */
829 treeId?: ObjectId;
830 /**
831 * The fully-qualified path of the folder in the repository.
832 */
833 absolutePath?: Path;
834 /**
835 * The relative path of the specified folder from the folder where the query originated.
836 */
837 relativePath?: Path;
838 }
839 export type FolderList = Folder[];
840 export interface GetBlobInput {
841 /**
842 * The name of the repository that contains the blob.
843 */
844 repositoryName: RepositoryName;
845 /**
846 * The ID of the blob, which is its SHA-1 pointer.
847 */
848 blobId: ObjectId;
849 }
850 export interface GetBlobOutput {
851 /**
852 * The content of the blob, usually a file.
853 */
854 content: blob;
855 }
856 export interface GetBranchInput {
857 /**
858 * The name of the repository that contains the branch for which you want to retrieve information.
859 */
860 repositoryName?: RepositoryName;
861 /**
862 * The name of the branch for which you want to retrieve information.
863 */
864 branchName?: BranchName;
865 }
866 export interface GetBranchOutput {
867 /**
868 * The name of the branch.
869 */
870 branch?: BranchInfo;
871 }
872 export interface GetCommentInput {
873 /**
874 * The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
875 */
876 commentId: CommentId;
877 }
878 export interface GetCommentOutput {
879 /**
880 * The contents of the comment.
881 */
882 comment?: Comment;
883 }
884 export interface GetCommentsForComparedCommitInput {
885 /**
886 * The name of the repository where you want to compare commits.
887 */
888 repositoryName: RepositoryName;
889 /**
890 * To establish the directionality of the comparison, the full commit ID of the 'before' commit.
891 */
892 beforeCommitId?: CommitId;
893 /**
894 * To establish the directionality of the comparison, the full commit ID of the 'after' commit.
895 */
896 afterCommitId: CommitId;
897 /**
898 * An enumeration token that when provided in a request, returns the next batch of the results.
899 */
900 nextToken?: NextToken;
901 /**
902 * A non-negative integer used to limit the number of returned results. The default is 100 comments, and is configurable up to 500.
903 */
904 maxResults?: MaxResults;
905 }
906 export interface GetCommentsForComparedCommitOutput {
907 /**
908 * A list of comment objects on the compared commit.
909 */
910 commentsForComparedCommitData?: CommentsForComparedCommitData;
911 /**
912 * An enumeration token that can be used in a request to return the next batch of the results.
913 */
914 nextToken?: NextToken;
915 }
916 export interface GetCommentsForPullRequestInput {
917 /**
918 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
919 */
920 pullRequestId: PullRequestId;
921 /**
922 * The name of the repository that contains the pull request.
923 */
924 repositoryName?: RepositoryName;
925 /**
926 * 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.
927 */
928 beforeCommitId?: CommitId;
929 /**
930 * The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.
931 */
932 afterCommitId?: CommitId;
933 /**
934 * An enumeration token that when provided in a request, returns the next batch of the results.
935 */
936 nextToken?: NextToken;
937 /**
938 * A non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.
939 */
940 maxResults?: MaxResults;
941 }
942 export interface GetCommentsForPullRequestOutput {
943 /**
944 * An array of comment objects on the pull request.
945 */
946 commentsForPullRequestData?: CommentsForPullRequestData;
947 /**
948 * An enumeration token that can be used in a request to return the next batch of the results.
949 */
950 nextToken?: NextToken;
951 }
952 export interface GetCommitInput {
953 /**
954 * The name of the repository to which the commit was made.
955 */
956 repositoryName: RepositoryName;
957 /**
958 * The commit ID. Commit IDs are the full SHA of the commit.
959 */
960 commitId: ObjectId;
961 }
962 export interface GetCommitOutput {
963 /**
964 * A commit data type object that contains information about the specified commit.
965 */
966 commit: Commit;
967 }
968 export interface GetDifferencesInput {
969 /**
970 * The name of the repository where you want to get differences.
971 */
972 repositoryName: RepositoryName;
973 /**
974 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, the full commit ID. Optional. If not specified, all changes prior to the afterCommitSpecifier value will be shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults.
975 */
976 beforeCommitSpecifier?: CommitName;
977 /**
978 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit.
979 */
980 afterCommitSpecifier: CommitName;
981 /**
982 * The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If beforePath and afterPath are not specified, differences will be shown for all paths.
983 */
984 beforePath?: Path;
985 /**
986 * The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences will be shown for all paths.
987 */
988 afterPath?: Path;
989 /**
990 * A non-negative integer used to limit the number of returned results.
991 */
992 MaxResults?: Limit;
993 /**
994 * An enumeration token that when provided in a request, returns the next batch of the results.
995 */
996 NextToken?: NextToken;
997 }
998 export interface GetDifferencesOutput {
999 /**
1000 * A differences data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).
1001 */
1002 differences?: DifferenceList;
1003 /**
1004 * An enumeration token that can be used in a request to return the next batch of the results.
1005 */
1006 NextToken?: NextToken;
1007 }
1008 export interface GetFileInput {
1009 /**
1010 * The name of the repository that contains the file.
1011 */
1012 repositoryName: RepositoryName;
1013 /**
1014 * The fully-quaified reference that identifies the commit that contains the file. For example, you could specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/master. If none is provided, then the head commit will be used.
1015 */
1016 commitSpecifier?: CommitName;
1017 /**
1018 * The fully-qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully-qualified path to a file named file.md in a folder named examples.
1019 */
1020 filePath: Path;
1021 }
1022 export interface GetFileOutput {
1023 /**
1024 * The full commit ID of the commit that contains the content returned by GetFile.
1025 */
1026 commitId: ObjectId;
1027 /**
1028 * The blob ID of the object that represents the file content.
1029 */
1030 blobId: ObjectId;
1031 /**
1032 * The fully qualified path to the specified file. This returns the name and extension of the file.
1033 */
1034 filePath: Path;
1035 /**
1036 * The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values. The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See below for a full list of supported return values.
1037 */
1038 fileMode: FileModeTypeEnum;
1039 /**
1040 * The size of the contents of the file, in bytes.
1041 */
1042 fileSize: ObjectSize;
1043 /**
1044 * The base-64 encoded binary data object that represents the content of the file.
1045 */
1046 fileContent: FileContent;
1047 }
1048 export interface GetFolderInput {
1049 /**
1050 * The name of the repository.
1051 */
1052 repositoryName: RepositoryName;
1053 /**
1054 * A fully-qualified reference used to identify a commit that contains the version of the folder's content to return. A fully-qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content will be returned as it exists in the HEAD commit.
1055 */
1056 commitSpecifier?: CommitName;
1057 /**
1058 * The fully-qualified path to the folder whose contents will be returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
1059 */
1060 folderPath: Path;
1061 }
1062 export interface GetFolderOutput {
1063 /**
1064 * The full commit ID used as a reference for which version of the folder content is returned.
1065 */
1066 commitId: ObjectId;
1067 /**
1068 * The fully-qualified path of the folder whose contents are returned.
1069 */
1070 folderPath: Path;
1071 /**
1072 * The full SHA-1 pointer of the tree information for the commit that contains the folder.
1073 */
1074 treeId?: ObjectId;
1075 /**
1076 * The list of folders that exist beneath the specified folder, if any.
1077 */
1078 subFolders?: FolderList;
1079 /**
1080 * The list of files that exist in the specified folder, if any.
1081 */
1082 files?: FileList;
1083 /**
1084 * The list of symbolic links to other files and folders that exist in the specified folder, if any.
1085 */
1086 symbolicLinks?: SymbolicLinkList;
1087 /**
1088 * The list of submodules that exist in the specified folder, if any.
1089 */
1090 subModules?: SubModuleList;
1091 }
1092 export interface GetMergeConflictsInput {
1093 /**
1094 * The name of the repository where the pull request was created.
1095 */
1096 repositoryName: RepositoryName;
1097 /**
1098 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1099 */
1100 destinationCommitSpecifier: CommitName;
1101 /**
1102 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1103 */
1104 sourceCommitSpecifier: CommitName;
1105 /**
1106 * The merge option or strategy you want to use to merge the code. The only valid value is FAST_FORWARD_MERGE.
1107 */
1108 mergeOption: MergeOptionTypeEnum;
1109 }
1110 export interface GetMergeConflictsOutput {
1111 /**
1112 * A Boolean value that indicates whether the code is mergable by the specified merge option.
1113 */
1114 mergeable: IsMergeable;
1115 /**
1116 * The commit ID of the destination commit specifier that was used in the merge evaluation.
1117 */
1118 destinationCommitId: CommitId;
1119 /**
1120 * The commit ID of the source commit specifier that was used in the merge evaluation.
1121 */
1122 sourceCommitId: CommitId;
1123 }
1124 export interface GetPullRequestInput {
1125 /**
1126 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1127 */
1128 pullRequestId: PullRequestId;
1129 }
1130 export interface GetPullRequestOutput {
1131 /**
1132 * Information about the specified pull request.
1133 */
1134 pullRequest: PullRequest;
1135 }
1136 export interface GetRepositoryInput {
1137 /**
1138 * The name of the repository to get information about.
1139 */
1140 repositoryName: RepositoryName;
1141 }
1142 export interface GetRepositoryOutput {
1143 /**
1144 * Information about the repository.
1145 */
1146 repositoryMetadata?: RepositoryMetadata;
1147 }
1148 export interface GetRepositoryTriggersInput {
1149 /**
1150 * The name of the repository for which the trigger is configured.
1151 */
1152 repositoryName: RepositoryName;
1153 }
1154 export interface GetRepositoryTriggersOutput {
1155 /**
1156 * The system-generated unique ID for the trigger.
1157 */
1158 configurationId?: RepositoryTriggersConfigurationId;
1159 /**
1160 * The JSON block of configuration information for each trigger.
1161 */
1162 triggers?: RepositoryTriggersList;
1163 }
1164 export type IsCommentDeleted = boolean;
1165 export type IsMergeable = boolean;
1166 export type IsMerged = boolean;
1167 export type IsMove = boolean;
1168 export type KeepEmptyFolders = boolean;
1169 export type LastModifiedDate = Date;
1170 export type Limit = number;
1171 export interface ListBranchesInput {
1172 /**
1173 * The name of the repository that contains the branches.
1174 */
1175 repositoryName: RepositoryName;
1176 /**
1177 * An enumeration token that allows the operation to batch the results.
1178 */
1179 nextToken?: NextToken;
1180 }
1181 export interface ListBranchesOutput {
1182 /**
1183 * The list of branch names.
1184 */
1185 branches?: BranchNameList;
1186 /**
1187 * An enumeration token that returns the batch of the results.
1188 */
1189 nextToken?: NextToken;
1190 }
1191 export interface ListPullRequestsInput {
1192 /**
1193 * The name of the repository for which you want to list pull requests.
1194 */
1195 repositoryName: RepositoryName;
1196 /**
1197 * Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results to pull requests created by that user.
1198 */
1199 authorArn?: Arn;
1200 /**
1201 * Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.
1202 */
1203 pullRequestStatus?: PullRequestStatusEnum;
1204 /**
1205 * An enumeration token that when provided in a request, returns the next batch of the results.
1206 */
1207 nextToken?: NextToken;
1208 /**
1209 * A non-negative integer used to limit the number of returned results.
1210 */
1211 maxResults?: MaxResults;
1212 }
1213 export interface ListPullRequestsOutput {
1214 /**
1215 * The system-generated IDs of the pull requests.
1216 */
1217 pullRequestIds: PullRequestIdList;
1218 /**
1219 * An enumeration token that when provided in a request, returns the next batch of the results.
1220 */
1221 nextToken?: NextToken;
1222 }
1223 export interface ListRepositoriesInput {
1224 /**
1225 * An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list repository operations. When the client sends the token back to AWS CodeCommit, another page of 1,000 records is retrieved.
1226 */
1227 nextToken?: NextToken;
1228 /**
1229 * The criteria used to sort the results of a list repositories operation.
1230 */
1231 sortBy?: SortByEnum;
1232 /**
1233 * The order in which to sort the results of a list repositories operation.
1234 */
1235 order?: OrderEnum;
1236 }
1237 export interface ListRepositoriesOutput {
1238 /**
1239 * Lists the repositories called by the list repositories operation.
1240 */
1241 repositories?: RepositoryNameIdPairList;
1242 /**
1243 * An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list repository operations. When the client sends the token back to AWS CodeCommit, another page of 1,000 records is retrieved.
1244 */
1245 nextToken?: NextToken;
1246 }
1247 export interface Location {
1248 /**
1249 * The name of the file being compared, including its extension and subdirectory, if any.
1250 */
1251 filePath?: Path;
1252 /**
1253 * The position of a change within a compared file, in line number format.
1254 */
1255 filePosition?: Position;
1256 /**
1257 * In a comparison of commits or a pull request, whether the change is in the 'before' or 'after' of that comparison.
1258 */
1259 relativeFileVersion?: RelativeFileVersionEnum;
1260 }
1261 export type MaxResults = number;
1262 export interface MergeMetadata {
1263 /**
1264 * A Boolean value indicating whether the merge has been made.
1265 */
1266 isMerged?: IsMerged;
1267 /**
1268 * The Amazon Resource Name (ARN) of the user who merged the branches.
1269 */
1270 mergedBy?: Arn;
1271 }
1272 export type MergeOptionTypeEnum = "FAST_FORWARD_MERGE"|string;
1273 export interface MergePullRequestByFastForwardInput {
1274 /**
1275 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1276 */
1277 pullRequestId: PullRequestId;
1278 /**
1279 * The name of the repository where the pull request was created.
1280 */
1281 repositoryName: RepositoryName;
1282 /**
1283 * The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.
1284 */
1285 sourceCommitId?: CommitId;
1286 }
1287 export interface MergePullRequestByFastForwardOutput {
1288 /**
1289 * Information about the specified pull request, including information about the merge.
1290 */
1291 pullRequest?: PullRequest;
1292 }
1293 export type Message = string;
1294 export type Mode = string;
1295 export type Name = string;
1296 export type NextToken = string;
1297 export type ObjectId = string;
1298 export type ObjectSize = number;
1299 export type OrderEnum = "ascending"|"descending"|string;
1300 export type ParentList = ObjectId[];
1301 export type Path = string;
1302 export type Position = number;
1303 export interface PostCommentForComparedCommitInput {
1304 /**
1305 * The name of the repository where you want to post a comment on the comparison between commits.
1306 */
1307 repositoryName: RepositoryName;
1308 /**
1309 * To establish the directionality of the comparison, the full commit ID of the 'before' commit.
1310 */
1311 beforeCommitId?: CommitId;
1312 /**
1313 * To establish the directionality of the comparison, the full commit ID of the 'after' commit.
1314 */
1315 afterCommitId: CommitId;
1316 /**
1317 * The location of the comparison where you want to comment.
1318 */
1319 location?: Location;
1320 /**
1321 * The content of the comment you want to make.
1322 */
1323 content: Content;
1324 /**
1325 * A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
1326 */
1327 clientRequestToken?: ClientRequestToken;
1328 }
1329 export interface PostCommentForComparedCommitOutput {
1330 /**
1331 * The name of the repository where you posted a comment on the comparison between commits.
1332 */
1333 repositoryName?: RepositoryName;
1334 /**
1335 * In the directionality you established, the full commit ID of the 'before' commit.
1336 */
1337 beforeCommitId?: CommitId;
1338 /**
1339 * In the directionality you established, the full commit ID of the 'after' commit.
1340 */
1341 afterCommitId?: CommitId;
1342 /**
1343 * In the directionality you established, the blob ID of the 'before' blob.
1344 */
1345 beforeBlobId?: ObjectId;
1346 /**
1347 * In the directionality you established, the blob ID of the 'after' blob.
1348 */
1349 afterBlobId?: ObjectId;
1350 /**
1351 * The location of the comment in the comparison between the two commits.
1352 */
1353 location?: Location;
1354 /**
1355 * The content of the comment you posted.
1356 */
1357 comment?: Comment;
1358 }
1359 export interface PostCommentForPullRequestInput {
1360 /**
1361 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1362 */
1363 pullRequestId: PullRequestId;
1364 /**
1365 * The name of the repository where you want to post a comment on a pull request.
1366 */
1367 repositoryName: RepositoryName;
1368 /**
1369 * 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.
1370 */
1371 beforeCommitId: CommitId;
1372 /**
1373 * 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.
1374 */
1375 afterCommitId: CommitId;
1376 /**
1377 * The location of the change where you want to post your comment. If no location is provided, the comment will be posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
1378 */
1379 location?: Location;
1380 /**
1381 * The content of your comment on the change.
1382 */
1383 content: Content;
1384 /**
1385 * A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
1386 */
1387 clientRequestToken?: ClientRequestToken;
1388 }
1389 export interface PostCommentForPullRequestOutput {
1390 /**
1391 * The name of the repository where you posted a comment on a pull request.
1392 */
1393 repositoryName?: RepositoryName;
1394 /**
1395 * The system-generated ID of the pull request.
1396 */
1397 pullRequestId?: PullRequestId;
1398 /**
1399 * The full commit ID of the commit in the source branch used to create the pull request, or in the case of an updated pull request, the full commit ID of the commit used to update the pull request.
1400 */
1401 beforeCommitId?: CommitId;
1402 /**
1403 * The full commit ID of the commit in the destination branch where the pull request will be merged.
1404 */
1405 afterCommitId?: CommitId;
1406 /**
1407 * In the directionality of the pull request, the blob ID of the 'before' blob.
1408 */
1409 beforeBlobId?: ObjectId;
1410 /**
1411 * In the directionality of the pull request, the blob ID of the 'after' blob.
1412 */
1413 afterBlobId?: ObjectId;
1414 /**
1415 * The location of the change where you posted your comment.
1416 */
1417 location?: Location;
1418 /**
1419 * The content of the comment you posted.
1420 */
1421 comment?: Comment;
1422 }
1423 export interface PostCommentReplyInput {
1424 /**
1425 * The system-generated ID of the comment to which you want to reply. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
1426 */
1427 inReplyTo: CommentId;
1428 /**
1429 * A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
1430 */
1431 clientRequestToken?: ClientRequestToken;
1432 /**
1433 * The contents of your reply to a comment.
1434 */
1435 content: Content;
1436 }
1437 export interface PostCommentReplyOutput {
1438 /**
1439 * Information about the reply to a comment.
1440 */
1441 comment?: Comment;
1442 }
1443 export interface PullRequest {
1444 /**
1445 * The system-generated ID of the pull request.
1446 */
1447 pullRequestId?: PullRequestId;
1448 /**
1449 * The user-defined title of the pull request. This title is displayed in the list of pull requests to other users of the repository.
1450 */
1451 title?: Title;
1452 /**
1453 * The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.
1454 */
1455 description?: Description;
1456 /**
1457 * The day and time of the last user or system activity on the pull request, in timestamp format.
1458 */
1459 lastActivityDate?: LastModifiedDate;
1460 /**
1461 * The date and time the pull request was originally created, in timestamp format.
1462 */
1463 creationDate?: CreationDate;
1464 /**
1465 * The status of the pull request. Pull request status can only change from OPEN to CLOSED.
1466 */
1467 pullRequestStatus?: PullRequestStatusEnum;
1468 /**
1469 * The Amazon Resource Name (ARN) of the user who created the pull request.
1470 */
1471 authorArn?: Arn;
1472 /**
1473 * The targets of the pull request, including the source branch and destination branch for the pull request.
1474 */
1475 pullRequestTargets?: PullRequestTargetList;
1476 /**
1477 * A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
1478 */
1479 clientRequestToken?: ClientRequestToken;
1480 }
1481 export interface PullRequestCreatedEventMetadata {
1482 /**
1483 * The name of the repository where the pull request was created.
1484 */
1485 repositoryName?: RepositoryName;
1486 /**
1487 * The commit ID on the source branch used when the pull request was created.
1488 */
1489 sourceCommitId?: CommitId;
1490 /**
1491 * The commit ID of the tip of the branch specified as the destination branch when the pull request was created.
1492 */
1493 destinationCommitId?: CommitId;
1494 /**
1495 * The commit ID of the most recent commit that the source branch and the destination branch have in common.
1496 */
1497 mergeBase?: CommitId;
1498 }
1499 export interface PullRequestEvent {
1500 /**
1501 * The system-generated ID of the pull request.
1502 */
1503 pullRequestId?: PullRequestId;
1504 /**
1505 * The day and time of the pull request event, in timestamp format.
1506 */
1507 eventDate?: EventDate;
1508 /**
1509 * The type of the pull request event, for example a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED).
1510 */
1511 pullRequestEventType?: PullRequestEventType;
1512 /**
1513 * The Amazon Resource Name (ARN) of the user whose actions resulted in the event. Examples include updating the pull request with additional commits or changing the status of a pull request.
1514 */
1515 actorArn?: Arn;
1516 /**
1517 * Information about the source and destination branches for the pull request.
1518 */
1519 pullRequestCreatedEventMetadata?: PullRequestCreatedEventMetadata;
1520 /**
1521 * Information about the change in status for the pull request event.
1522 */
1523 pullRequestStatusChangedEventMetadata?: PullRequestStatusChangedEventMetadata;
1524 /**
1525 * Information about the updated source branch for the pull request event.
1526 */
1527 pullRequestSourceReferenceUpdatedEventMetadata?: PullRequestSourceReferenceUpdatedEventMetadata;
1528 /**
1529 * Information about the change in mergability state for the pull request event.
1530 */
1531 pullRequestMergedStateChangedEventMetadata?: PullRequestMergedStateChangedEventMetadata;
1532 }
1533 export type PullRequestEventList = PullRequestEvent[];
1534 export type PullRequestEventType = "PULL_REQUEST_CREATED"|"PULL_REQUEST_STATUS_CHANGED"|"PULL_REQUEST_SOURCE_REFERENCE_UPDATED"|"PULL_REQUEST_MERGE_STATE_CHANGED"|string;
1535 export type PullRequestId = string;
1536 export type PullRequestIdList = PullRequestId[];
1537 export interface PullRequestMergedStateChangedEventMetadata {
1538 /**
1539 * The name of the repository where the pull request was created.
1540 */
1541 repositoryName?: RepositoryName;
1542 /**
1543 * The name of the branch that the pull request will be merged into.
1544 */
1545 destinationReference?: ReferenceName;
1546 /**
1547 * Information about the merge state change event.
1548 */
1549 mergeMetadata?: MergeMetadata;
1550 }
1551 export interface PullRequestSourceReferenceUpdatedEventMetadata {
1552 /**
1553 * The name of the repository where the pull request was updated.
1554 */
1555 repositoryName?: RepositoryName;
1556 /**
1557 * 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 updated.
1558 */
1559 beforeCommitId?: CommitId;
1560 /**
1561 * The full commit ID of the commit in the source branch that was the tip of the branch at the time the pull request was updated.
1562 */
1563 afterCommitId?: CommitId;
1564 /**
1565 * The commit ID of the most recent commit that the source branch and the destination branch have in common.
1566 */
1567 mergeBase?: CommitId;
1568 }
1569 export interface PullRequestStatusChangedEventMetadata {
1570 /**
1571 * The changed status of the pull request.
1572 */
1573 pullRequestStatus?: PullRequestStatusEnum;
1574 }
1575 export type PullRequestStatusEnum = "OPEN"|"CLOSED"|string;
1576 export interface PullRequestTarget {
1577 /**
1578 * The name of the repository that contains the pull request source and destination branches.
1579 */
1580 repositoryName?: RepositoryName;
1581 /**
1582 * The branch of the repository that contains the changes for the pull request. Also known as the source branch.
1583 */
1584 sourceReference?: ReferenceName;
1585 /**
1586 * The branch of the repository where the pull request changes will be merged into. Also known as the destination branch.
1587 */
1588 destinationReference?: ReferenceName;
1589 /**
1590 * The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.
1591 */
1592 destinationCommit?: CommitId;
1593 /**
1594 * The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID will change to reflect the new tip of the branch.
1595 */
1596 sourceCommit?: CommitId;
1597 /**
1598 * The commit ID of the most recent commit that the source branch and the destination branch have in common.
1599 */
1600 mergeBase?: CommitId;
1601 /**
1602 * Returns metadata about the state of the merge, including whether the merge has been made.
1603 */
1604 mergeMetadata?: MergeMetadata;
1605 }
1606 export type PullRequestTargetList = PullRequestTarget[];
1607 export type PutFileEntries = PutFileEntry[];
1608 export interface PutFileEntry {
1609 /**
1610 * The full path to the file in the repository, including the name of the file.
1611 */
1612 filePath: Path;
1613 /**
1614 * The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
1615 */
1616 fileMode?: FileModeTypeEnum;
1617 /**
1618 * The content of the file, if a source file is not specified.
1619 */
1620 fileContent?: FileContent;
1621 /**
1622 * The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
1623 */
1624 sourceFile?: SourceFileSpecifier;
1625 }
1626 export interface PutFileInput {
1627 /**
1628 * The name of the repository where you want to add or update the file.
1629 */
1630 repositoryName: RepositoryName;
1631 /**
1632 * The name of the branch where you want to add or update the file. If this is an empty repository, this branch will be created.
1633 */
1634 branchName: BranchName;
1635 /**
1636 * The content of the file, in binary object format.
1637 */
1638 fileContent: FileContent;
1639 /**
1640 * The name of the file you want to add or update, including the relative path to the file in the repository. If the path does not currently exist in the repository, the path will be created as part of adding the file.
1641 */
1642 filePath: Path;
1643 /**
1644 * The file mode permissions of the blob. Valid file mode permissions are listed below.
1645 */
1646 fileMode?: FileModeTypeEnum;
1647 /**
1648 * 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, no commit ID is required. If this is not an empty repository, a commit ID is required. The commit ID must match the ID of the head commit at the time of the operation, or an error will occur, and the file will not be added or updated.
1649 */
1650 parentCommitId?: CommitId;
1651 /**
1652 * A message about why this file was added or updated. While optional, adding a message is strongly encouraged in order to provide a more useful commit history for your repository.
1653 */
1654 commitMessage?: Message;
1655 /**
1656 * The name of the person adding or updating the file. While optional, adding a name is strongly encouraged in order to provide a more useful commit history for your repository.
1657 */
1658 name?: Name;
1659 /**
1660 * An email address for the person adding or updating the file.
1661 */
1662 email?: Email;
1663 }
1664 export interface PutFileOutput {
1665 /**
1666 * The full SHA of the commit that contains this file change.
1667 */
1668 commitId: ObjectId;
1669 /**
1670 * The ID of the blob, which is its SHA-1 pointer.
1671 */
1672 blobId: ObjectId;
1673 /**
1674 * The full SHA-1 pointer of the tree information for the commit that contains this file change.
1675 */
1676 treeId: ObjectId;
1677 }
1678 export interface PutRepositoryTriggersInput {
1679 /**
1680 * The name of the repository where you want to create or update the trigger.
1681 */
1682 repositoryName: RepositoryName;
1683 /**
1684 * The JSON block of configuration information for each trigger.
1685 */
1686 triggers: RepositoryTriggersList;
1687 }
1688 export interface PutRepositoryTriggersOutput {
1689 /**
1690 * The system-generated unique ID for the create or update operation.
1691 */
1692 configurationId?: RepositoryTriggersConfigurationId;
1693 }
1694 export type ReferenceName = string;
1695 export type RelativeFileVersionEnum = "BEFORE"|"AFTER"|string;
1696 export type RepositoryDescription = string;
1697 export type RepositoryId = string;
1698 export interface RepositoryMetadata {
1699 /**
1700 * The ID of the AWS account associated with the repository.
1701 */
1702 accountId?: AccountId;
1703 /**
1704 * The ID of the repository.
1705 */
1706 repositoryId?: RepositoryId;
1707 /**
1708 * The repository's name.
1709 */
1710 repositoryName?: RepositoryName;
1711 /**
1712 * A comment or description about the repository.
1713 */
1714 repositoryDescription?: RepositoryDescription;
1715 /**
1716 * The repository's default branch name.
1717 */
1718 defaultBranch?: BranchName;
1719 /**
1720 * The date and time the repository was last modified, in timestamp format.
1721 */
1722 lastModifiedDate?: LastModifiedDate;
1723 /**
1724 * The date and time the repository was created, in timestamp format.
1725 */
1726 creationDate?: CreationDate;
1727 /**
1728 * The URL to use for cloning the repository over HTTPS.
1729 */
1730 cloneUrlHttp?: CloneUrlHttp;
1731 /**
1732 * The URL to use for cloning the repository over SSH.
1733 */
1734 cloneUrlSsh?: CloneUrlSsh;
1735 /**
1736 * The Amazon Resource Name (ARN) of the repository.
1737 */
1738 Arn?: Arn;
1739 }
1740 export type RepositoryMetadataList = RepositoryMetadata[];
1741 export type RepositoryName = string;
1742 export interface RepositoryNameIdPair {
1743 /**
1744 * The name associated with the repository.
1745 */
1746 repositoryName?: RepositoryName;
1747 /**
1748 * The ID associated with the repository.
1749 */
1750 repositoryId?: RepositoryId;
1751 }
1752 export type RepositoryNameIdPairList = RepositoryNameIdPair[];
1753 export type RepositoryNameList = RepositoryName[];
1754 export type RepositoryNotFoundList = RepositoryName[];
1755 export interface RepositoryTrigger {
1756 /**
1757 * The name of the trigger.
1758 */
1759 name: RepositoryTriggerName;
1760 /**
1761 * The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
1762 */
1763 destinationArn: Arn;
1764 /**
1765 * Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
1766 */
1767 customData?: RepositoryTriggerCustomData;
1768 /**
1769 * The branches that will be included in the trigger configuration. If you specify an empty array, the trigger will apply to all branches. While no content is required in the array, you must include the array itself.
1770 */
1771 branches?: BranchNameList;
1772 /**
1773 * The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). The valid value "all" cannot be used with any other values.
1774 */
1775 events: RepositoryTriggerEventList;
1776 }
1777 export type RepositoryTriggerCustomData = string;
1778 export type RepositoryTriggerEventEnum = "all"|"updateReference"|"createReference"|"deleteReference"|string;
1779 export type RepositoryTriggerEventList = RepositoryTriggerEventEnum[];
1780 export interface RepositoryTriggerExecutionFailure {
1781 /**
1782 * The name of the trigger that did not run.
1783 */
1784 trigger?: RepositoryTriggerName;
1785 /**
1786 * Additional message information about the trigger that did not run.
1787 */
1788 failureMessage?: RepositoryTriggerExecutionFailureMessage;
1789 }
1790 export type RepositoryTriggerExecutionFailureList = RepositoryTriggerExecutionFailure[];
1791 export type RepositoryTriggerExecutionFailureMessage = string;
1792 export type RepositoryTriggerName = string;
1793 export type RepositoryTriggerNameList = RepositoryTriggerName[];
1794 export type RepositoryTriggersConfigurationId = string;
1795 export type RepositoryTriggersList = RepositoryTrigger[];
1796 export type SetFileModeEntries = SetFileModeEntry[];
1797 export interface SetFileModeEntry {
1798 /**
1799 * The full path to the file, including the name of the file.
1800 */
1801 filePath: Path;
1802 /**
1803 * The file mode for the file.
1804 */
1805 fileMode: FileModeTypeEnum;
1806 }
1807 export type SortByEnum = "repositoryName"|"lastModifiedDate"|string;
1808 export interface SourceFileSpecifier {
1809 /**
1810 * The full path to the file, including the name of the file.
1811 */
1812 filePath: Path;
1813 /**
1814 * Whether to remove the source file from the parent commit.
1815 */
1816 isMove?: IsMove;
1817 }
1818 export interface SubModule {
1819 /**
1820 * The commit ID that contains the reference to the submodule.
1821 */
1822 commitId?: ObjectId;
1823 /**
1824 * The fully qualified path to the folder that contains the reference to the submodule.
1825 */
1826 absolutePath?: Path;
1827 /**
1828 * The relative path of the submodule from the folder where the query originated.
1829 */
1830 relativePath?: Path;
1831 }
1832 export type SubModuleList = SubModule[];
1833 export interface SymbolicLink {
1834 /**
1835 * The blob ID that contains the information about the symbolic link.
1836 */
1837 blobId?: ObjectId;
1838 /**
1839 * The fully-qualified path to the folder that contains the symbolic link.
1840 */
1841 absolutePath?: Path;
1842 /**
1843 * The relative path of the symbolic link from the folder where the query originated.
1844 */
1845 relativePath?: Path;
1846 /**
1847 * The file mode permissions of the blob that cotains information about the symbolic link.
1848 */
1849 fileMode?: FileModeTypeEnum;
1850 }
1851 export type SymbolicLinkList = SymbolicLink[];
1852 export interface Target {
1853 /**
1854 * The name of the repository that contains the pull request.
1855 */
1856 repositoryName: RepositoryName;
1857 /**
1858 * The branch of the repository that contains the changes for the pull request. Also known as the source branch.
1859 */
1860 sourceReference: ReferenceName;
1861 /**
1862 * The branch of the repository where the pull request changes will be merged into. Also known as the destination branch.
1863 */
1864 destinationReference?: ReferenceName;
1865 }
1866 export type TargetList = Target[];
1867 export interface TestRepositoryTriggersInput {
1868 /**
1869 * The name of the repository in which to test the triggers.
1870 */
1871 repositoryName: RepositoryName;
1872 /**
1873 * The list of triggers to test.
1874 */
1875 triggers: RepositoryTriggersList;
1876 }
1877 export interface TestRepositoryTriggersOutput {
1878 /**
1879 * The list of triggers that were successfully tested. This list provides the names of the triggers that were successfully tested, separated by commas.
1880 */
1881 successfulExecutions?: RepositoryTriggerNameList;
1882 /**
1883 * The list of triggers that were not able to be tested. This list provides the names of the triggers that could not be tested, separated by commas.
1884 */
1885 failedExecutions?: RepositoryTriggerExecutionFailureList;
1886 }
1887 export type Title = string;
1888 export interface UpdateCommentInput {
1889 /**
1890 * The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
1891 */
1892 commentId: CommentId;
1893 /**
1894 * The updated content with which you want to replace the existing content of the comment.
1895 */
1896 content: Content;
1897 }
1898 export interface UpdateCommentOutput {
1899 /**
1900 * Information about the updated comment.
1901 */
1902 comment?: Comment;
1903 }
1904 export interface UpdateDefaultBranchInput {
1905 /**
1906 * The name of the repository to set or change the default branch for.
1907 */
1908 repositoryName: RepositoryName;
1909 /**
1910 * The name of the branch to set as the default.
1911 */
1912 defaultBranchName: BranchName;
1913 }
1914 export interface UpdatePullRequestDescriptionInput {
1915 /**
1916 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1917 */
1918 pullRequestId: PullRequestId;
1919 /**
1920 * The updated content of the description for the pull request. This content will replace the existing description.
1921 */
1922 description: Description;
1923 }
1924 export interface UpdatePullRequestDescriptionOutput {
1925 /**
1926 * Information about the updated pull request.
1927 */
1928 pullRequest: PullRequest;
1929 }
1930 export interface UpdatePullRequestStatusInput {
1931 /**
1932 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1933 */
1934 pullRequestId: PullRequestId;
1935 /**
1936 * The status of the pull request. The only valid operations are to update the status from OPEN to OPEN, OPEN to CLOSED or from from CLOSED to CLOSED.
1937 */
1938 pullRequestStatus: PullRequestStatusEnum;
1939 }
1940 export interface UpdatePullRequestStatusOutput {
1941 /**
1942 * Information about the pull request.
1943 */
1944 pullRequest: PullRequest;
1945 }
1946 export interface UpdatePullRequestTitleInput {
1947 /**
1948 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1949 */
1950 pullRequestId: PullRequestId;
1951 /**
1952 * The updated title of the pull request. This will replace the existing title.
1953 */
1954 title: Title;
1955 }
1956 export interface UpdatePullRequestTitleOutput {
1957 /**
1958 * Information about the updated pull request.
1959 */
1960 pullRequest: PullRequest;
1961 }
1962 export interface UpdateRepositoryDescriptionInput {
1963 /**
1964 * The name of the repository to set or change the comment or description for.
1965 */
1966 repositoryName: RepositoryName;
1967 /**
1968 * The new comment or description for the specified repository. Repository descriptions are limited to 1,000 characters.
1969 */
1970 repositoryDescription?: RepositoryDescription;
1971 }
1972 export interface UpdateRepositoryNameInput {
1973 /**
1974 * The existing name of the repository.
1975 */
1976 oldName: RepositoryName;
1977 /**
1978 * The new name for the repository.
1979 */
1980 newName: RepositoryName;
1981 }
1982 export interface UserInfo {
1983 /**
1984 * The name of the user who made the specified commit.
1985 */
1986 name?: Name;
1987 /**
1988 * The email address associated with the user who made the commit, if any.
1989 */
1990 email?: Email;
1991 /**
1992 * The date when the specified commit was commited, in timestamp format with GMT offset.
1993 */
1994 date?: _Date;
1995 }
1996 export type blob = Buffer|Uint8Array|Blob|string;
1997 /**
1998 * 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.
1999 */
2000 export type apiVersion = "2015-04-13"|"latest"|string;
2001 export interface ClientApiVersions {
2002 /**
2003 * 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.
2004 */
2005 apiVersion?: apiVersion;
2006 }
2007 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
2008 /**
2009 * Contains interfaces for use with the CodeCommit client.
2010 */
2011 export import Types = CodeCommit;
2012}
2013export = CodeCommit;