UNPKG

135 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 merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
16 */
17 batchDescribeMergeConflicts(params: CodeCommit.Types.BatchDescribeMergeConflictsInput, callback?: (err: AWSError, data: CodeCommit.Types.BatchDescribeMergeConflictsOutput) => void): Request<CodeCommit.Types.BatchDescribeMergeConflictsOutput, AWSError>;
18 /**
19 * Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
20 */
21 batchDescribeMergeConflicts(callback?: (err: AWSError, data: CodeCommit.Types.BatchDescribeMergeConflictsOutput) => void): Request<CodeCommit.Types.BatchDescribeMergeConflictsOutput, AWSError>;
22 /**
23 * Returns information about the contents of one or more commits in a repository.
24 */
25 batchGetCommits(params: CodeCommit.Types.BatchGetCommitsInput, callback?: (err: AWSError, data: CodeCommit.Types.BatchGetCommitsOutput) => void): Request<CodeCommit.Types.BatchGetCommitsOutput, AWSError>;
26 /**
27 * Returns information about the contents of one or more commits in a repository.
28 */
29 batchGetCommits(callback?: (err: AWSError, data: CodeCommit.Types.BatchGetCommitsOutput) => void): Request<CodeCommit.Types.BatchGetCommitsOutput, AWSError>;
30 /**
31 * 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.
32 */
33 batchGetRepositories(params: CodeCommit.Types.BatchGetRepositoriesInput, callback?: (err: AWSError, data: CodeCommit.Types.BatchGetRepositoriesOutput) => void): Request<CodeCommit.Types.BatchGetRepositoriesOutput, AWSError>;
34 /**
35 * 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.
36 */
37 batchGetRepositories(callback?: (err: AWSError, data: CodeCommit.Types.BatchGetRepositoriesOutput) => void): Request<CodeCommit.Types.BatchGetRepositoriesOutput, AWSError>;
38 /**
39 * 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.
40 */
41 createBranch(params: CodeCommit.Types.CreateBranchInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
42 /**
43 * 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.
44 */
45 createBranch(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
46 /**
47 * Creates a commit for a repository on the tip of a specified branch.
48 */
49 createCommit(params: CodeCommit.Types.CreateCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.CreateCommitOutput) => void): Request<CodeCommit.Types.CreateCommitOutput, AWSError>;
50 /**
51 * Creates a commit for a repository on the tip of a specified branch.
52 */
53 createCommit(callback?: (err: AWSError, data: CodeCommit.Types.CreateCommitOutput) => void): Request<CodeCommit.Types.CreateCommitOutput, AWSError>;
54 /**
55 * Creates a pull request in the specified repository.
56 */
57 createPullRequest(params: CodeCommit.Types.CreatePullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.CreatePullRequestOutput) => void): Request<CodeCommit.Types.CreatePullRequestOutput, AWSError>;
58 /**
59 * Creates a pull request in the specified repository.
60 */
61 createPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.CreatePullRequestOutput) => void): Request<CodeCommit.Types.CreatePullRequestOutput, AWSError>;
62 /**
63 * Creates a new, empty repository.
64 */
65 createRepository(params: CodeCommit.Types.CreateRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.CreateRepositoryOutput) => void): Request<CodeCommit.Types.CreateRepositoryOutput, AWSError>;
66 /**
67 * Creates a new, empty repository.
68 */
69 createRepository(callback?: (err: AWSError, data: CodeCommit.Types.CreateRepositoryOutput) => void): Request<CodeCommit.Types.CreateRepositoryOutput, AWSError>;
70 /**
71 * Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy, as that strategy does not create a merge commit. This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.
72 */
73 createUnreferencedMergeCommit(params: CodeCommit.Types.CreateUnreferencedMergeCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.CreateUnreferencedMergeCommitOutput) => void): Request<CodeCommit.Types.CreateUnreferencedMergeCommitOutput, AWSError>;
74 /**
75 * Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy, as that strategy does not create a merge commit. This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.
76 */
77 createUnreferencedMergeCommit(callback?: (err: AWSError, data: CodeCommit.Types.CreateUnreferencedMergeCommitOutput) => void): Request<CodeCommit.Types.CreateUnreferencedMergeCommitOutput, AWSError>;
78 /**
79 * Deletes a branch from a repository, unless that branch is the default branch for the repository.
80 */
81 deleteBranch(params: CodeCommit.Types.DeleteBranchInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteBranchOutput) => void): Request<CodeCommit.Types.DeleteBranchOutput, AWSError>;
82 /**
83 * Deletes a branch from a repository, unless that branch is the default branch for the repository.
84 */
85 deleteBranch(callback?: (err: AWSError, data: CodeCommit.Types.DeleteBranchOutput) => void): Request<CodeCommit.Types.DeleteBranchOutput, AWSError>;
86 /**
87 * Deletes the content of a comment made on a change, file, or commit in a repository.
88 */
89 deleteCommentContent(params: CodeCommit.Types.DeleteCommentContentInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteCommentContentOutput) => void): Request<CodeCommit.Types.DeleteCommentContentOutput, AWSError>;
90 /**
91 * Deletes the content of a comment made on a change, file, or commit in a repository.
92 */
93 deleteCommentContent(callback?: (err: AWSError, data: CodeCommit.Types.DeleteCommentContentOutput) => void): Request<CodeCommit.Types.DeleteCommentContentOutput, AWSError>;
94 /**
95 * 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.
96 */
97 deleteFile(params: CodeCommit.Types.DeleteFileInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteFileOutput) => void): Request<CodeCommit.Types.DeleteFileOutput, AWSError>;
98 /**
99 * 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.
100 */
101 deleteFile(callback?: (err: AWSError, data: CodeCommit.Types.DeleteFileOutput) => void): Request<CodeCommit.Types.DeleteFileOutput, AWSError>;
102 /**
103 * 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.
104 */
105 deleteRepository(params: CodeCommit.Types.DeleteRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteRepositoryOutput) => void): Request<CodeCommit.Types.DeleteRepositoryOutput, AWSError>;
106 /**
107 * 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.
108 */
109 deleteRepository(callback?: (err: AWSError, data: CodeCommit.Types.DeleteRepositoryOutput) => void): Request<CodeCommit.Types.DeleteRepositoryOutput, AWSError>;
110 /**
111 * Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception will be thrown.
112 */
113 describeMergeConflicts(params: CodeCommit.Types.DescribeMergeConflictsInput, callback?: (err: AWSError, data: CodeCommit.Types.DescribeMergeConflictsOutput) => void): Request<CodeCommit.Types.DescribeMergeConflictsOutput, AWSError>;
114 /**
115 * Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception will be thrown.
116 */
117 describeMergeConflicts(callback?: (err: AWSError, data: CodeCommit.Types.DescribeMergeConflictsOutput) => void): Request<CodeCommit.Types.DescribeMergeConflictsOutput, AWSError>;
118 /**
119 * Returns information about one or more pull request events.
120 */
121 describePullRequestEvents(params: CodeCommit.Types.DescribePullRequestEventsInput, callback?: (err: AWSError, data: CodeCommit.Types.DescribePullRequestEventsOutput) => void): Request<CodeCommit.Types.DescribePullRequestEventsOutput, AWSError>;
122 /**
123 * Returns information about one or more pull request events.
124 */
125 describePullRequestEvents(callback?: (err: AWSError, data: CodeCommit.Types.DescribePullRequestEventsOutput) => void): Request<CodeCommit.Types.DescribePullRequestEventsOutput, AWSError>;
126 /**
127 * Returns the base-64 encoded content of an individual blob within a repository.
128 */
129 getBlob(params: CodeCommit.Types.GetBlobInput, callback?: (err: AWSError, data: CodeCommit.Types.GetBlobOutput) => void): Request<CodeCommit.Types.GetBlobOutput, AWSError>;
130 /**
131 * Returns the base-64 encoded content of an individual blob within a repository.
132 */
133 getBlob(callback?: (err: AWSError, data: CodeCommit.Types.GetBlobOutput) => void): Request<CodeCommit.Types.GetBlobOutput, AWSError>;
134 /**
135 * Returns information about a repository branch, including its name and the last commit ID.
136 */
137 getBranch(params: CodeCommit.Types.GetBranchInput, callback?: (err: AWSError, data: CodeCommit.Types.GetBranchOutput) => void): Request<CodeCommit.Types.GetBranchOutput, AWSError>;
138 /**
139 * Returns information about a repository branch, including its name and the last commit ID.
140 */
141 getBranch(callback?: (err: AWSError, data: CodeCommit.Types.GetBranchOutput) => void): Request<CodeCommit.Types.GetBranchOutput, AWSError>;
142 /**
143 * Returns the content of a comment made on a change, file, or commit in a repository.
144 */
145 getComment(params: CodeCommit.Types.GetCommentInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentOutput) => void): Request<CodeCommit.Types.GetCommentOutput, AWSError>;
146 /**
147 * Returns the content of a comment made on a change, file, or commit in a repository.
148 */
149 getComment(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentOutput) => void): Request<CodeCommit.Types.GetCommentOutput, AWSError>;
150 /**
151 * Returns information about comments made on the comparison between two commits.
152 */
153 getCommentsForComparedCommit(params: CodeCommit.Types.GetCommentsForComparedCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForComparedCommitOutput) => void): Request<CodeCommit.Types.GetCommentsForComparedCommitOutput, AWSError>;
154 /**
155 * Returns information about comments made on the comparison between two commits.
156 */
157 getCommentsForComparedCommit(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForComparedCommitOutput) => void): Request<CodeCommit.Types.GetCommentsForComparedCommitOutput, AWSError>;
158 /**
159 * Returns comments made on a pull request.
160 */
161 getCommentsForPullRequest(params: CodeCommit.Types.GetCommentsForPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForPullRequestOutput) => void): Request<CodeCommit.Types.GetCommentsForPullRequestOutput, AWSError>;
162 /**
163 * Returns comments made on a pull request.
164 */
165 getCommentsForPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForPullRequestOutput) => void): Request<CodeCommit.Types.GetCommentsForPullRequestOutput, AWSError>;
166 /**
167 * Returns information about a commit, including commit message and committer information.
168 */
169 getCommit(params: CodeCommit.Types.GetCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommitOutput) => void): Request<CodeCommit.Types.GetCommitOutput, AWSError>;
170 /**
171 * Returns information about a commit, including commit message and committer information.
172 */
173 getCommit(callback?: (err: AWSError, data: CodeCommit.Types.GetCommitOutput) => void): Request<CodeCommit.Types.GetCommitOutput, AWSError>;
174 /**
175 * 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.
176 */
177 getDifferences(params: CodeCommit.Types.GetDifferencesInput, callback?: (err: AWSError, data: CodeCommit.Types.GetDifferencesOutput) => void): Request<CodeCommit.Types.GetDifferencesOutput, AWSError>;
178 /**
179 * 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.
180 */
181 getDifferences(callback?: (err: AWSError, data: CodeCommit.Types.GetDifferencesOutput) => void): Request<CodeCommit.Types.GetDifferencesOutput, AWSError>;
182 /**
183 * Returns the base-64 encoded contents of a specified file and its metadata.
184 */
185 getFile(params: CodeCommit.Types.GetFileInput, callback?: (err: AWSError, data: CodeCommit.Types.GetFileOutput) => void): Request<CodeCommit.Types.GetFileOutput, AWSError>;
186 /**
187 * Returns the base-64 encoded contents of a specified file and its metadata.
188 */
189 getFile(callback?: (err: AWSError, data: CodeCommit.Types.GetFileOutput) => void): Request<CodeCommit.Types.GetFileOutput, AWSError>;
190 /**
191 * Returns the contents of a specified folder in a repository.
192 */
193 getFolder(params: CodeCommit.Types.GetFolderInput, callback?: (err: AWSError, data: CodeCommit.Types.GetFolderOutput) => void): Request<CodeCommit.Types.GetFolderOutput, AWSError>;
194 /**
195 * Returns the contents of a specified folder in a repository.
196 */
197 getFolder(callback?: (err: AWSError, data: CodeCommit.Types.GetFolderOutput) => void): Request<CodeCommit.Types.GetFolderOutput, AWSError>;
198 /**
199 * Returns information about a specified merge commit.
200 */
201 getMergeCommit(params: CodeCommit.Types.GetMergeCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.GetMergeCommitOutput) => void): Request<CodeCommit.Types.GetMergeCommitOutput, AWSError>;
202 /**
203 * Returns information about a specified merge commit.
204 */
205 getMergeCommit(callback?: (err: AWSError, data: CodeCommit.Types.GetMergeCommitOutput) => void): Request<CodeCommit.Types.GetMergeCommitOutput, AWSError>;
206 /**
207 * Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
208 */
209 getMergeConflicts(params: CodeCommit.Types.GetMergeConflictsInput, callback?: (err: AWSError, data: CodeCommit.Types.GetMergeConflictsOutput) => void): Request<CodeCommit.Types.GetMergeConflictsOutput, AWSError>;
210 /**
211 * Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
212 */
213 getMergeConflicts(callback?: (err: AWSError, data: CodeCommit.Types.GetMergeConflictsOutput) => void): Request<CodeCommit.Types.GetMergeConflictsOutput, AWSError>;
214 /**
215 * Returns information about the merge options available for merging two specified branches. For details about why a particular merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
216 */
217 getMergeOptions(params: CodeCommit.Types.GetMergeOptionsInput, callback?: (err: AWSError, data: CodeCommit.Types.GetMergeOptionsOutput) => void): Request<CodeCommit.Types.GetMergeOptionsOutput, AWSError>;
218 /**
219 * Returns information about the merge options available for merging two specified branches. For details about why a particular merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
220 */
221 getMergeOptions(callback?: (err: AWSError, data: CodeCommit.Types.GetMergeOptionsOutput) => void): Request<CodeCommit.Types.GetMergeOptionsOutput, AWSError>;
222 /**
223 * Gets information about a pull request in a specified repository.
224 */
225 getPullRequest(params: CodeCommit.Types.GetPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.GetPullRequestOutput) => void): Request<CodeCommit.Types.GetPullRequestOutput, AWSError>;
226 /**
227 * Gets information about a pull request in a specified repository.
228 */
229 getPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.GetPullRequestOutput) => void): Request<CodeCommit.Types.GetPullRequestOutput, AWSError>;
230 /**
231 * 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.
232 */
233 getRepository(params: CodeCommit.Types.GetRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryOutput) => void): Request<CodeCommit.Types.GetRepositoryOutput, AWSError>;
234 /**
235 * 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.
236 */
237 getRepository(callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryOutput) => void): Request<CodeCommit.Types.GetRepositoryOutput, AWSError>;
238 /**
239 * Gets information about triggers configured for a repository.
240 */
241 getRepositoryTriggers(params: CodeCommit.Types.GetRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryTriggersOutput) => void): Request<CodeCommit.Types.GetRepositoryTriggersOutput, AWSError>;
242 /**
243 * Gets information about triggers configured for a repository.
244 */
245 getRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryTriggersOutput) => void): Request<CodeCommit.Types.GetRepositoryTriggersOutput, AWSError>;
246 /**
247 * Gets information about one or more branches in a repository.
248 */
249 listBranches(params: CodeCommit.Types.ListBranchesInput, callback?: (err: AWSError, data: CodeCommit.Types.ListBranchesOutput) => void): Request<CodeCommit.Types.ListBranchesOutput, AWSError>;
250 /**
251 * Gets information about one or more branches in a repository.
252 */
253 listBranches(callback?: (err: AWSError, data: CodeCommit.Types.ListBranchesOutput) => void): Request<CodeCommit.Types.ListBranchesOutput, AWSError>;
254 /**
255 * 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.
256 */
257 listPullRequests(params: CodeCommit.Types.ListPullRequestsInput, callback?: (err: AWSError, data: CodeCommit.Types.ListPullRequestsOutput) => void): Request<CodeCommit.Types.ListPullRequestsOutput, AWSError>;
258 /**
259 * 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.
260 */
261 listPullRequests(callback?: (err: AWSError, data: CodeCommit.Types.ListPullRequestsOutput) => void): Request<CodeCommit.Types.ListPullRequestsOutput, AWSError>;
262 /**
263 * Gets information about one or more repositories.
264 */
265 listRepositories(params: CodeCommit.Types.ListRepositoriesInput, callback?: (err: AWSError, data: CodeCommit.Types.ListRepositoriesOutput) => void): Request<CodeCommit.Types.ListRepositoriesOutput, AWSError>;
266 /**
267 * Gets information about one or more repositories.
268 */
269 listRepositories(callback?: (err: AWSError, data: CodeCommit.Types.ListRepositoriesOutput) => void): Request<CodeCommit.Types.ListRepositoriesOutput, AWSError>;
270 /**
271 * Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.
272 */
273 listTagsForResource(params: CodeCommit.Types.ListTagsForResourceInput, callback?: (err: AWSError, data: CodeCommit.Types.ListTagsForResourceOutput) => void): Request<CodeCommit.Types.ListTagsForResourceOutput, AWSError>;
274 /**
275 * Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.
276 */
277 listTagsForResource(callback?: (err: AWSError, data: CodeCommit.Types.ListTagsForResourceOutput) => void): Request<CodeCommit.Types.ListTagsForResourceOutput, AWSError>;
278 /**
279 * Merges two branches using the fast-forward merge strategy.
280 */
281 mergeBranchesByFastForward(params: CodeCommit.Types.MergeBranchesByFastForwardInput, callback?: (err: AWSError, data: CodeCommit.Types.MergeBranchesByFastForwardOutput) => void): Request<CodeCommit.Types.MergeBranchesByFastForwardOutput, AWSError>;
282 /**
283 * Merges two branches using the fast-forward merge strategy.
284 */
285 mergeBranchesByFastForward(callback?: (err: AWSError, data: CodeCommit.Types.MergeBranchesByFastForwardOutput) => void): Request<CodeCommit.Types.MergeBranchesByFastForwardOutput, AWSError>;
286 /**
287 * Merges two branches using the squash merge strategy.
288 */
289 mergeBranchesBySquash(params: CodeCommit.Types.MergeBranchesBySquashInput, callback?: (err: AWSError, data: CodeCommit.Types.MergeBranchesBySquashOutput) => void): Request<CodeCommit.Types.MergeBranchesBySquashOutput, AWSError>;
290 /**
291 * Merges two branches using the squash merge strategy.
292 */
293 mergeBranchesBySquash(callback?: (err: AWSError, data: CodeCommit.Types.MergeBranchesBySquashOutput) => void): Request<CodeCommit.Types.MergeBranchesBySquashOutput, AWSError>;
294 /**
295 * Merges two specified branches using the three-way merge strategy.
296 */
297 mergeBranchesByThreeWay(params: CodeCommit.Types.MergeBranchesByThreeWayInput, callback?: (err: AWSError, data: CodeCommit.Types.MergeBranchesByThreeWayOutput) => void): Request<CodeCommit.Types.MergeBranchesByThreeWayOutput, AWSError>;
298 /**
299 * Merges two specified branches using the three-way merge strategy.
300 */
301 mergeBranchesByThreeWay(callback?: (err: AWSError, data: CodeCommit.Types.MergeBranchesByThreeWayOutput) => void): Request<CodeCommit.Types.MergeBranchesByThreeWayOutput, AWSError>;
302 /**
303 * 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 strategy. If the merge is successful, it closes the pull request.
304 */
305 mergePullRequestByFastForward(params: CodeCommit.Types.MergePullRequestByFastForwardInput, callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestByFastForwardOutput) => void): Request<CodeCommit.Types.MergePullRequestByFastForwardOutput, AWSError>;
306 /**
307 * 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 strategy. If the merge is successful, it closes the pull request.
308 */
309 mergePullRequestByFastForward(callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestByFastForwardOutput) => void): Request<CodeCommit.Types.MergePullRequestByFastForwardOutput, AWSError>;
310 /**
311 * 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 squash merge strategy. If the merge is successful, it closes the pull request.
312 */
313 mergePullRequestBySquash(params: CodeCommit.Types.MergePullRequestBySquashInput, callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestBySquashOutput) => void): Request<CodeCommit.Types.MergePullRequestBySquashOutput, AWSError>;
314 /**
315 * 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 squash merge strategy. If the merge is successful, it closes the pull request.
316 */
317 mergePullRequestBySquash(callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestBySquashOutput) => void): Request<CodeCommit.Types.MergePullRequestBySquashOutput, AWSError>;
318 /**
319 * 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 three-way merge strategy. If the merge is successful, it closes the pull request.
320 */
321 mergePullRequestByThreeWay(params: CodeCommit.Types.MergePullRequestByThreeWayInput, callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestByThreeWayOutput) => void): Request<CodeCommit.Types.MergePullRequestByThreeWayOutput, AWSError>;
322 /**
323 * 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 three-way merge strategy. If the merge is successful, it closes the pull request.
324 */
325 mergePullRequestByThreeWay(callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestByThreeWayOutput) => void): Request<CodeCommit.Types.MergePullRequestByThreeWayOutput, AWSError>;
326 /**
327 * Posts a comment on the comparison between two commits.
328 */
329 postCommentForComparedCommit(params: CodeCommit.Types.PostCommentForComparedCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForComparedCommitOutput) => void): Request<CodeCommit.Types.PostCommentForComparedCommitOutput, AWSError>;
330 /**
331 * Posts a comment on the comparison between two commits.
332 */
333 postCommentForComparedCommit(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForComparedCommitOutput) => void): Request<CodeCommit.Types.PostCommentForComparedCommitOutput, AWSError>;
334 /**
335 * Posts a comment on a pull request.
336 */
337 postCommentForPullRequest(params: CodeCommit.Types.PostCommentForPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForPullRequestOutput) => void): Request<CodeCommit.Types.PostCommentForPullRequestOutput, AWSError>;
338 /**
339 * Posts a comment on a pull request.
340 */
341 postCommentForPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForPullRequestOutput) => void): Request<CodeCommit.Types.PostCommentForPullRequestOutput, AWSError>;
342 /**
343 * Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
344 */
345 postCommentReply(params: CodeCommit.Types.PostCommentReplyInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentReplyOutput) => void): Request<CodeCommit.Types.PostCommentReplyOutput, AWSError>;
346 /**
347 * Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
348 */
349 postCommentReply(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentReplyOutput) => void): Request<CodeCommit.Types.PostCommentReplyOutput, AWSError>;
350 /**
351 * Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
352 */
353 putFile(params: CodeCommit.Types.PutFileInput, callback?: (err: AWSError, data: CodeCommit.Types.PutFileOutput) => void): Request<CodeCommit.Types.PutFileOutput, AWSError>;
354 /**
355 * Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
356 */
357 putFile(callback?: (err: AWSError, data: CodeCommit.Types.PutFileOutput) => void): Request<CodeCommit.Types.PutFileOutput, AWSError>;
358 /**
359 * Replaces all triggers for a repository. This can be used to create or delete triggers.
360 */
361 putRepositoryTriggers(params: CodeCommit.Types.PutRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.PutRepositoryTriggersOutput) => void): Request<CodeCommit.Types.PutRepositoryTriggersOutput, AWSError>;
362 /**
363 * Replaces all triggers for a repository. This can be used to create or delete triggers.
364 */
365 putRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.PutRepositoryTriggersOutput) => void): Request<CodeCommit.Types.PutRepositoryTriggersOutput, AWSError>;
366 /**
367 * Adds or updates tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.
368 */
369 tagResource(params: CodeCommit.Types.TagResourceInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
370 /**
371 * Adds or updates tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.
372 */
373 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
374 /**
375 * 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.
376 */
377 testRepositoryTriggers(params: CodeCommit.Types.TestRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.TestRepositoryTriggersOutput) => void): Request<CodeCommit.Types.TestRepositoryTriggersOutput, AWSError>;
378 /**
379 * 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.
380 */
381 testRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.TestRepositoryTriggersOutput) => void): Request<CodeCommit.Types.TestRepositoryTriggersOutput, AWSError>;
382 /**
383 * Removes tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.
384 */
385 untagResource(params: CodeCommit.Types.UntagResourceInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
386 /**
387 * Removes tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.
388 */
389 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
390 /**
391 * Replaces the contents of a comment.
392 */
393 updateComment(params: CodeCommit.Types.UpdateCommentInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdateCommentOutput) => void): Request<CodeCommit.Types.UpdateCommentOutput, AWSError>;
394 /**
395 * Replaces the contents of a comment.
396 */
397 updateComment(callback?: (err: AWSError, data: CodeCommit.Types.UpdateCommentOutput) => void): Request<CodeCommit.Types.UpdateCommentOutput, AWSError>;
398 /**
399 * 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.
400 */
401 updateDefaultBranch(params: CodeCommit.Types.UpdateDefaultBranchInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
402 /**
403 * 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.
404 */
405 updateDefaultBranch(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
406 /**
407 * Replaces the contents of the description of a pull request.
408 */
409 updatePullRequestDescription(params: CodeCommit.Types.UpdatePullRequestDescriptionInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestDescriptionOutput) => void): Request<CodeCommit.Types.UpdatePullRequestDescriptionOutput, AWSError>;
410 /**
411 * Replaces the contents of the description of a pull request.
412 */
413 updatePullRequestDescription(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestDescriptionOutput) => void): Request<CodeCommit.Types.UpdatePullRequestDescriptionOutput, AWSError>;
414 /**
415 * Updates the status of a pull request.
416 */
417 updatePullRequestStatus(params: CodeCommit.Types.UpdatePullRequestStatusInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestStatusOutput) => void): Request<CodeCommit.Types.UpdatePullRequestStatusOutput, AWSError>;
418 /**
419 * Updates the status of a pull request.
420 */
421 updatePullRequestStatus(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestStatusOutput) => void): Request<CodeCommit.Types.UpdatePullRequestStatusOutput, AWSError>;
422 /**
423 * Replaces the title of a pull request.
424 */
425 updatePullRequestTitle(params: CodeCommit.Types.UpdatePullRequestTitleInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestTitleOutput) => void): Request<CodeCommit.Types.UpdatePullRequestTitleOutput, AWSError>;
426 /**
427 * Replaces the title of a pull request.
428 */
429 updatePullRequestTitle(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestTitleOutput) => void): Request<CodeCommit.Types.UpdatePullRequestTitleOutput, AWSError>;
430 /**
431 * 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.
432 */
433 updateRepositoryDescription(params: CodeCommit.Types.UpdateRepositoryDescriptionInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
434 /**
435 * 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.
436 */
437 updateRepositoryDescription(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
438 /**
439 * 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.
440 */
441 updateRepositoryName(params: CodeCommit.Types.UpdateRepositoryNameInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
442 /**
443 * 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.
444 */
445 updateRepositoryName(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
446}
447declare namespace CodeCommit {
448 export type AccountId = string;
449 export type AdditionalData = string;
450 export type Arn = string;
451 export interface BatchDescribeMergeConflictsError {
452 /**
453 * The path to the file.
454 */
455 filePath: Path;
456 /**
457 * The name of the exception.
458 */
459 exceptionName: ExceptionName;
460 /**
461 * The message provided by the exception.
462 */
463 message: Message;
464 }
465 export type BatchDescribeMergeConflictsErrors = BatchDescribeMergeConflictsError[];
466 export interface BatchDescribeMergeConflictsInput {
467 /**
468 * The name of the repository that contains the merge conflicts you want to review.
469 */
470 repositoryName: RepositoryName;
471 /**
472 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
473 */
474 destinationCommitSpecifier: CommitName;
475 /**
476 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
477 */
478 sourceCommitSpecifier: CommitName;
479 /**
480 * The merge option or strategy you want to use to merge the code.
481 */
482 mergeOption: MergeOptionTypeEnum;
483 /**
484 * The maximum number of merge hunks to include in the output.
485 */
486 maxMergeHunks?: MaxResults;
487 /**
488 * The maximum number of files to include in the output.
489 */
490 maxConflictFiles?: MaxResults;
491 /**
492 * The path of the target files used to describe the conflicts. If not specified, the default is all conflict files.
493 */
494 filePaths?: FilePaths;
495 /**
496 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
497 */
498 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
499 /**
500 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
501 */
502 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
503 /**
504 * An enumeration token that when provided in a request, returns the next batch of the results.
505 */
506 nextToken?: NextToken;
507 }
508 export interface BatchDescribeMergeConflictsOutput {
509 /**
510 * A list of conflicts for each file, including the conflict metadata and the hunks of the differences between the files.
511 */
512 conflicts: Conflicts;
513 /**
514 * An enumeration token that can be used in a request to return the next batch of the results.
515 */
516 nextToken?: NextToken;
517 /**
518 * A list of any errors returned while describing the merge conflicts for each file.
519 */
520 errors?: BatchDescribeMergeConflictsErrors;
521 /**
522 * The commit ID of the destination commit specifier that was used in the merge evaluation.
523 */
524 destinationCommitId: ObjectId;
525 /**
526 * The commit ID of the source commit specifier that was used in the merge evaluation.
527 */
528 sourceCommitId: ObjectId;
529 /**
530 * The commit ID of the merge base.
531 */
532 baseCommitId?: ObjectId;
533 }
534 export interface BatchGetCommitsError {
535 /**
536 * A commit ID that either could not be found or was not in a valid format.
537 */
538 commitId?: ObjectId;
539 /**
540 * An error code that specifies whether the commit ID was not valid or not found.
541 */
542 errorCode?: ErrorCode;
543 /**
544 * An error message that provides detail about why the commit ID either was not found or was not valid.
545 */
546 errorMessage?: ErrorMessage;
547 }
548 export type BatchGetCommitsErrorsList = BatchGetCommitsError[];
549 export interface BatchGetCommitsInput {
550 /**
551 * The full commit IDs of the commits to get information about. You must supply the full SHAs of each commit. You cannot use shortened SHAs.
552 */
553 commitIds: CommitIdsInputList;
554 /**
555 * The name of the repository that contains the commits.
556 */
557 repositoryName: RepositoryName;
558 }
559 export interface BatchGetCommitsOutput {
560 /**
561 * An array of commit data type objects, each of which contains information about a specified commit.
562 */
563 commits?: CommitObjectsList;
564 /**
565 * Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA or that commit was not found in the specified repository, the ID will return an error object with additional information.
566 */
567 errors?: BatchGetCommitsErrorsList;
568 }
569 export interface BatchGetRepositoriesInput {
570 /**
571 * The names of the repositories to get information about.
572 */
573 repositoryNames: RepositoryNameList;
574 }
575 export interface BatchGetRepositoriesOutput {
576 /**
577 * A list of repositories returned by the batch get repositories operation.
578 */
579 repositories?: RepositoryMetadataList;
580 /**
581 * Returns a list of repository names for which information could not be found.
582 */
583 repositoriesNotFound?: RepositoryNotFoundList;
584 }
585 export interface BlobMetadata {
586 /**
587 * The full ID of the blob.
588 */
589 blobId?: ObjectId;
590 /**
591 * The path to the blob and any associated file name, if any.
592 */
593 path?: Path;
594 /**
595 * 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
596 */
597 mode?: Mode;
598 }
599 export interface BranchInfo {
600 /**
601 * The name of the branch.
602 */
603 branchName?: BranchName;
604 /**
605 * The ID of the last commit made to the branch.
606 */
607 commitId?: CommitId;
608 }
609 export type BranchName = string;
610 export type BranchNameList = BranchName[];
611 export type CapitalBoolean = boolean;
612 export type ChangeTypeEnum = "A"|"M"|"D"|string;
613 export type ClientRequestToken = string;
614 export type CloneUrlHttp = string;
615 export type CloneUrlSsh = string;
616 export interface Comment {
617 /**
618 * The system-generated comment ID.
619 */
620 commentId?: CommentId;
621 /**
622 * The content of the comment.
623 */
624 content?: Content;
625 /**
626 * The ID of the comment for which this comment is a reply, if any.
627 */
628 inReplyTo?: CommentId;
629 /**
630 * The date and time the comment was created, in timestamp format.
631 */
632 creationDate?: CreationDate;
633 /**
634 * The date and time the comment was most recently modified, in timestamp format.
635 */
636 lastModifiedDate?: LastModifiedDate;
637 /**
638 * The Amazon Resource Name (ARN) of the person who posted the comment.
639 */
640 authorArn?: Arn;
641 /**
642 * A Boolean value indicating whether the comment has been deleted.
643 */
644 deleted?: IsCommentDeleted;
645 /**
646 * 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.
647 */
648 clientRequestToken?: ClientRequestToken;
649 }
650 export type CommentId = string;
651 export type Comments = Comment[];
652 export interface CommentsForComparedCommit {
653 /**
654 * The name of the repository that contains the compared commits.
655 */
656 repositoryName?: RepositoryName;
657 /**
658 * The full commit ID of the commit used to establish the 'before' of the comparison.
659 */
660 beforeCommitId?: CommitId;
661 /**
662 * The full commit ID of the commit used to establish the 'after' of the comparison.
663 */
664 afterCommitId?: CommitId;
665 /**
666 * The full blob ID of the commit used to establish the 'before' of the comparison.
667 */
668 beforeBlobId?: ObjectId;
669 /**
670 * The full blob ID of the commit used to establish the 'after' of the comparison.
671 */
672 afterBlobId?: ObjectId;
673 /**
674 * 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'.
675 */
676 location?: Location;
677 /**
678 * An array of comment objects. Each comment object contains information about a comment on the comparison between commits.
679 */
680 comments?: Comments;
681 }
682 export type CommentsForComparedCommitData = CommentsForComparedCommit[];
683 export interface CommentsForPullRequest {
684 /**
685 * The system-generated ID of the pull request.
686 */
687 pullRequestId?: PullRequestId;
688 /**
689 * The name of the repository that contains the pull request.
690 */
691 repositoryName?: RepositoryName;
692 /**
693 * 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.
694 */
695 beforeCommitId?: CommitId;
696 /**
697 * he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
698 */
699 afterCommitId?: CommitId;
700 /**
701 * The full blob ID of the file on which you want to comment on the destination commit.
702 */
703 beforeBlobId?: ObjectId;
704 /**
705 * The full blob ID of the file on which you want to comment on the source commit.
706 */
707 afterBlobId?: ObjectId;
708 /**
709 * 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).
710 */
711 location?: Location;
712 /**
713 * An array of comment objects. Each comment object contains information about a comment on the pull request.
714 */
715 comments?: Comments;
716 }
717 export type CommentsForPullRequestData = CommentsForPullRequest[];
718 export interface Commit {
719 /**
720 * The full SHA of the specified commit.
721 */
722 commitId?: ObjectId;
723 /**
724 * Tree information for the specified commit.
725 */
726 treeId?: ObjectId;
727 /**
728 * A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
729 */
730 parents?: ParentList;
731 /**
732 * The commit message associated with the specified commit.
733 */
734 message?: Message;
735 /**
736 * 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.
737 */
738 author?: UserInfo;
739 /**
740 * 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.
741 */
742 committer?: UserInfo;
743 /**
744 * Any additional data associated with the specified commit.
745 */
746 additionalData?: AdditionalData;
747 }
748 export type CommitId = string;
749 export type CommitIdsInputList = ObjectId[];
750 export type CommitName = string;
751 export type CommitObjectsList = Commit[];
752 export interface Conflict {
753 /**
754 * Metadata about a conflict in a merge operation.
755 */
756 conflictMetadata?: ConflictMetadata;
757 /**
758 * A list of hunks that contain the differences between files or lines causing the conflict.
759 */
760 mergeHunks?: MergeHunks;
761 }
762 export type ConflictDetailLevelTypeEnum = "FILE_LEVEL"|"LINE_LEVEL"|string;
763 export interface ConflictMetadata {
764 /**
765 * The path of the file that contains conflicts.
766 */
767 filePath?: Path;
768 /**
769 * The file sizes of the file in the source, destination, and base of the merge.
770 */
771 fileSizes?: FileSizes;
772 /**
773 * The file modes of the file in the source, destination, and base of the merge.
774 */
775 fileModes?: FileModes;
776 /**
777 * Information about any object type conflicts in a merge operation.
778 */
779 objectTypes?: ObjectTypes;
780 /**
781 * The number of conflicts, including both hunk conflicts and metadata conflicts.
782 */
783 numberOfConflicts?: NumberOfConflicts;
784 /**
785 * A boolean value (true or false) indicating whether the file is binary or textual in the source, destination, and base of the merge.
786 */
787 isBinaryFile?: IsBinaryFile;
788 /**
789 * A boolean value indicating whether there are conflicts in the content of a file.
790 */
791 contentConflict?: IsContentConflict;
792 /**
793 * A boolean value indicating whether there are conflicts in the file mode of a file.
794 */
795 fileModeConflict?: IsFileModeConflict;
796 /**
797 * A boolean value (true or false) indicating whether there are conflicts between the branches in the object type of a file, folder, or submodule.
798 */
799 objectTypeConflict?: IsObjectTypeConflict;
800 /**
801 * Whether an add, modify, or delete operation caused the conflict between the source and destination of the merge.
802 */
803 mergeOperations?: MergeOperations;
804 }
805 export type ConflictMetadataList = ConflictMetadata[];
806 export interface ConflictResolution {
807 /**
808 * Files that will have content replaced as part of the merge conflict resolution.
809 */
810 replaceContents?: ReplaceContentEntries;
811 /**
812 * Files that will be deleted as part of the merge conflict resolution.
813 */
814 deleteFiles?: DeleteFileEntries;
815 /**
816 * File modes that will be set as part of the merge conflict resolution.
817 */
818 setFileModes?: SetFileModeEntries;
819 }
820 export type ConflictResolutionStrategyTypeEnum = "NONE"|"ACCEPT_SOURCE"|"ACCEPT_DESTINATION"|"AUTOMERGE"|string;
821 export type Conflicts = Conflict[];
822 export type Content = string;
823 export interface CreateBranchInput {
824 /**
825 * The name of the repository in which you want to create the new branch.
826 */
827 repositoryName: RepositoryName;
828 /**
829 * The name of the new branch to create.
830 */
831 branchName: BranchName;
832 /**
833 * The ID of the commit to point the new branch to.
834 */
835 commitId: CommitId;
836 }
837 export interface CreateCommitInput {
838 /**
839 * The name of the repository where you will create the commit.
840 */
841 repositoryName: RepositoryName;
842 /**
843 * The name of the branch where you will create the commit.
844 */
845 branchName: BranchName;
846 /**
847 * 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.
848 */
849 parentCommitId?: CommitId;
850 /**
851 * The name of the author who created the commit. This information will be used as both the author and committer for the commit.
852 */
853 authorName?: Name;
854 /**
855 * The email address of the person who created the commit.
856 */
857 email?: Email;
858 /**
859 * 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.
860 */
861 commitMessage?: Message;
862 /**
863 * 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. The default is false.
864 */
865 keepEmptyFolders?: KeepEmptyFolders;
866 /**
867 * The files to add or update in this commit.
868 */
869 putFiles?: PutFileEntries;
870 /**
871 * The files to delete in this commit. These files will still exist in prior commits.
872 */
873 deleteFiles?: DeleteFileEntries;
874 /**
875 * The file modes to update for files in this commit.
876 */
877 setFileModes?: SetFileModeEntries;
878 }
879 export interface CreateCommitOutput {
880 /**
881 * The full commit ID of the commit that contains your committed file changes.
882 */
883 commitId?: ObjectId;
884 /**
885 * The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
886 */
887 treeId?: ObjectId;
888 /**
889 * The files added as part of the committed file changes.
890 */
891 filesAdded?: FilesMetadata;
892 /**
893 * The files updated as part of the commited file changes.
894 */
895 filesUpdated?: FilesMetadata;
896 /**
897 * The files deleted as part of the committed file changes.
898 */
899 filesDeleted?: FilesMetadata;
900 }
901 export interface CreatePullRequestInput {
902 /**
903 * The title of the pull request. This title will be used to identify the pull request to other users in the repository.
904 */
905 title: Title;
906 /**
907 * A description of the pull request.
908 */
909 description?: Description;
910 /**
911 * 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).
912 */
913 targets: TargetList;
914 /**
915 * 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.
916 */
917 clientRequestToken?: ClientRequestToken;
918 }
919 export interface CreatePullRequestOutput {
920 /**
921 * Information about the newly created pull request.
922 */
923 pullRequest: PullRequest;
924 }
925 export interface CreateRepositoryInput {
926 /**
927 * 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.
928 */
929 repositoryName: RepositoryName;
930 /**
931 * 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.
932 */
933 repositoryDescription?: RepositoryDescription;
934 /**
935 * One or more tag key-value pairs to use when tagging this repository.
936 */
937 tags?: TagsMap;
938 }
939 export interface CreateRepositoryOutput {
940 /**
941 * Information about the newly created repository.
942 */
943 repositoryMetadata?: RepositoryMetadata;
944 }
945 export interface CreateUnreferencedMergeCommitInput {
946 /**
947 * The name of the repository where you want to create the unreferenced merge commit.
948 */
949 repositoryName: RepositoryName;
950 /**
951 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
952 */
953 sourceCommitSpecifier: CommitName;
954 /**
955 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
956 */
957 destinationCommitSpecifier: CommitName;
958 /**
959 * The merge option or strategy you want to use to merge the code.
960 */
961 mergeOption: MergeOptionTypeEnum;
962 /**
963 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
964 */
965 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
966 /**
967 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
968 */
969 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
970 /**
971 * The name of the author who created the unreferenced commit. This information will be used as both the author and committer for the commit.
972 */
973 authorName?: Name;
974 /**
975 * The email address for the person who created the unreferenced commit.
976 */
977 email?: Email;
978 /**
979 * The commit message for the unreferenced commit.
980 */
981 commitMessage?: Message;
982 /**
983 * 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. The default is false.
984 */
985 keepEmptyFolders?: KeepEmptyFolders;
986 /**
987 * A list of inputs to use when resolving conflicts during a merge if AUTOMERGE is chosen as the conflict resolution strategy.
988 */
989 conflictResolution?: ConflictResolution;
990 }
991 export interface CreateUnreferencedMergeCommitOutput {
992 /**
993 * The full commit ID of the commit that contains your merge results.
994 */
995 commitId?: ObjectId;
996 /**
997 * The full SHA-1 pointer of the tree information for the commit that contains the merge results.
998 */
999 treeId?: ObjectId;
1000 }
1001 export type CreationDate = Date;
1002 export type _Date = string;
1003 export interface DeleteBranchInput {
1004 /**
1005 * The name of the repository that contains the branch to be deleted.
1006 */
1007 repositoryName: RepositoryName;
1008 /**
1009 * The name of the branch to delete.
1010 */
1011 branchName: BranchName;
1012 }
1013 export interface DeleteBranchOutput {
1014 /**
1015 * Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
1016 */
1017 deletedBranch?: BranchInfo;
1018 }
1019 export interface DeleteCommentContentInput {
1020 /**
1021 * The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
1022 */
1023 commentId: CommentId;
1024 }
1025 export interface DeleteCommentContentOutput {
1026 /**
1027 * Information about the comment you just deleted.
1028 */
1029 comment?: Comment;
1030 }
1031 export type DeleteFileEntries = DeleteFileEntry[];
1032 export interface DeleteFileEntry {
1033 /**
1034 * The full path of the file that will be deleted, including the name of the file.
1035 */
1036 filePath: Path;
1037 }
1038 export interface DeleteFileInput {
1039 /**
1040 * The name of the repository that contains the file to delete.
1041 */
1042 repositoryName: RepositoryName;
1043 /**
1044 * The name of the branch where the commit will be made deleting the file.
1045 */
1046 branchName: BranchName;
1047 /**
1048 * 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.
1049 */
1050 filePath: Path;
1051 /**
1052 * 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.
1053 */
1054 parentCommitId: CommitId;
1055 /**
1056 * 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.
1057 */
1058 keepEmptyFolders?: KeepEmptyFolders;
1059 /**
1060 * 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.
1061 */
1062 commitMessage?: Message;
1063 /**
1064 * 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.
1065 */
1066 name?: Name;
1067 /**
1068 * The email address for the commit that deletes the file. If no email address is specified, the email address will be left blank.
1069 */
1070 email?: Email;
1071 }
1072 export interface DeleteFileOutput {
1073 /**
1074 * The full commit ID of the commit that contains the change that deletes the file.
1075 */
1076 commitId: ObjectId;
1077 /**
1078 * The blob ID removed from the tree as part of deleting the file.
1079 */
1080 blobId: ObjectId;
1081 /**
1082 * The full SHA-1 pointer of the tree information for the commit that contains the delete file change.
1083 */
1084 treeId: ObjectId;
1085 /**
1086 * The fully-qualified path to the file that will be deleted, including the full name and extension of that file.
1087 */
1088 filePath: Path;
1089 }
1090 export interface DeleteRepositoryInput {
1091 /**
1092 * The name of the repository to delete.
1093 */
1094 repositoryName: RepositoryName;
1095 }
1096 export interface DeleteRepositoryOutput {
1097 /**
1098 * The ID of the repository that was deleted.
1099 */
1100 repositoryId?: RepositoryId;
1101 }
1102 export interface DescribeMergeConflictsInput {
1103 /**
1104 * The name of the repository where you want to get information about a merge conflict.
1105 */
1106 repositoryName: RepositoryName;
1107 /**
1108 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1109 */
1110 destinationCommitSpecifier: CommitName;
1111 /**
1112 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1113 */
1114 sourceCommitSpecifier: CommitName;
1115 /**
1116 * The merge option or strategy you want to use to merge the code.
1117 */
1118 mergeOption: MergeOptionTypeEnum;
1119 /**
1120 * The maximum number of merge hunks to include in the output.
1121 */
1122 maxMergeHunks?: MaxResults;
1123 /**
1124 * The path of the target files used to describe the conflicts.
1125 */
1126 filePath: Path;
1127 /**
1128 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
1129 */
1130 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
1131 /**
1132 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
1133 */
1134 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
1135 /**
1136 * An enumeration token that when provided in a request, returns the next batch of the results.
1137 */
1138 nextToken?: NextToken;
1139 }
1140 export interface DescribeMergeConflictsOutput {
1141 /**
1142 * Contains metadata about the conflicts found in the merge.
1143 */
1144 conflictMetadata: ConflictMetadata;
1145 /**
1146 * A list of merge hunks of the differences between the files or lines.
1147 */
1148 mergeHunks: MergeHunks;
1149 /**
1150 * An enumeration token that can be used in a request to return the next batch of the results.
1151 */
1152 nextToken?: NextToken;
1153 /**
1154 * The commit ID of the destination commit specifier that was used in the merge evaluation.
1155 */
1156 destinationCommitId: ObjectId;
1157 /**
1158 * The commit ID of the source commit specifier that was used in the merge evaluation.
1159 */
1160 sourceCommitId: ObjectId;
1161 /**
1162 * The commit ID of the merge base.
1163 */
1164 baseCommitId?: ObjectId;
1165 }
1166 export interface DescribePullRequestEventsInput {
1167 /**
1168 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1169 */
1170 pullRequestId: PullRequestId;
1171 /**
1172 * Optional. The pull request event type about which you want to return information.
1173 */
1174 pullRequestEventType?: PullRequestEventType;
1175 /**
1176 * 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.
1177 */
1178 actorArn?: Arn;
1179 /**
1180 * An enumeration token that when provided in a request, returns the next batch of the results.
1181 */
1182 nextToken?: NextToken;
1183 /**
1184 * 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.
1185 */
1186 maxResults?: MaxResults;
1187 }
1188 export interface DescribePullRequestEventsOutput {
1189 /**
1190 * Information about the pull request events.
1191 */
1192 pullRequestEvents: PullRequestEventList;
1193 /**
1194 * An enumeration token that can be used in a request to return the next batch of the results.
1195 */
1196 nextToken?: NextToken;
1197 }
1198 export type Description = string;
1199 export interface Difference {
1200 /**
1201 * Information about a beforeBlob data type object, including the ID, the file mode permission code, and the path.
1202 */
1203 beforeBlob?: BlobMetadata;
1204 /**
1205 * Information about an afterBlob data type object, including the ID, the file mode permission code, and the path.
1206 */
1207 afterBlob?: BlobMetadata;
1208 /**
1209 * Whether the change type of the difference is an addition (A), deletion (D), or modification (M).
1210 */
1211 changeType?: ChangeTypeEnum;
1212 }
1213 export type DifferenceList = Difference[];
1214 export type Email = string;
1215 export type ErrorCode = string;
1216 export type ErrorMessage = string;
1217 export type EventDate = Date;
1218 export type ExceptionName = string;
1219 export interface File {
1220 /**
1221 * The blob ID that contains the file information.
1222 */
1223 blobId?: ObjectId;
1224 /**
1225 * The fully-qualified path to the file in the repository.
1226 */
1227 absolutePath?: Path;
1228 /**
1229 * The relative path of the file from the folder where the query originated.
1230 */
1231 relativePath?: Path;
1232 /**
1233 * The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
1234 */
1235 fileMode?: FileModeTypeEnum;
1236 }
1237 export type FileContent = Buffer|Uint8Array|Blob|string;
1238 export type FileList = File[];
1239 export interface FileMetadata {
1240 /**
1241 * The full path to the file that will be added or updated, including the name of the file.
1242 */
1243 absolutePath?: Path;
1244 /**
1245 * The blob ID that contains the file information.
1246 */
1247 blobId?: ObjectId;
1248 /**
1249 * The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
1250 */
1251 fileMode?: FileModeTypeEnum;
1252 }
1253 export type FileModeTypeEnum = "EXECUTABLE"|"NORMAL"|"SYMLINK"|string;
1254 export interface FileModes {
1255 /**
1256 * The file mode of a file in the source of a merge or pull request.
1257 */
1258 source?: FileModeTypeEnum;
1259 /**
1260 * The file mode of a file in the destination of a merge or pull request.
1261 */
1262 destination?: FileModeTypeEnum;
1263 /**
1264 * The file mode of a file in the base of a merge or pull request.
1265 */
1266 base?: FileModeTypeEnum;
1267 }
1268 export type FilePaths = Path[];
1269 export type FileSize = number;
1270 export interface FileSizes {
1271 /**
1272 * The size of a file in the source of a merge or pull request.
1273 */
1274 source?: FileSize;
1275 /**
1276 * The size of a file in the destination of a merge or pull request.
1277 */
1278 destination?: FileSize;
1279 /**
1280 * The size of a file in the base of a merge or pull request.
1281 */
1282 base?: FileSize;
1283 }
1284 export type FilesMetadata = FileMetadata[];
1285 export interface Folder {
1286 /**
1287 * The full SHA-1 pointer of the tree information for the commit that contains the folder.
1288 */
1289 treeId?: ObjectId;
1290 /**
1291 * The fully-qualified path of the folder in the repository.
1292 */
1293 absolutePath?: Path;
1294 /**
1295 * The relative path of the specified folder from the folder where the query originated.
1296 */
1297 relativePath?: Path;
1298 }
1299 export type FolderList = Folder[];
1300 export interface GetBlobInput {
1301 /**
1302 * The name of the repository that contains the blob.
1303 */
1304 repositoryName: RepositoryName;
1305 /**
1306 * The ID of the blob, which is its SHA-1 pointer.
1307 */
1308 blobId: ObjectId;
1309 }
1310 export interface GetBlobOutput {
1311 /**
1312 * The content of the blob, usually a file.
1313 */
1314 content: blob;
1315 }
1316 export interface GetBranchInput {
1317 /**
1318 * The name of the repository that contains the branch for which you want to retrieve information.
1319 */
1320 repositoryName?: RepositoryName;
1321 /**
1322 * The name of the branch for which you want to retrieve information.
1323 */
1324 branchName?: BranchName;
1325 }
1326 export interface GetBranchOutput {
1327 /**
1328 * The name of the branch.
1329 */
1330 branch?: BranchInfo;
1331 }
1332 export interface GetCommentInput {
1333 /**
1334 * The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
1335 */
1336 commentId: CommentId;
1337 }
1338 export interface GetCommentOutput {
1339 /**
1340 * The contents of the comment.
1341 */
1342 comment?: Comment;
1343 }
1344 export interface GetCommentsForComparedCommitInput {
1345 /**
1346 * The name of the repository where you want to compare commits.
1347 */
1348 repositoryName: RepositoryName;
1349 /**
1350 * To establish the directionality of the comparison, the full commit ID of the 'before' commit.
1351 */
1352 beforeCommitId?: CommitId;
1353 /**
1354 * To establish the directionality of the comparison, the full commit ID of the 'after' commit.
1355 */
1356 afterCommitId: CommitId;
1357 /**
1358 * An enumeration token that when provided in a request, returns the next batch of the results.
1359 */
1360 nextToken?: NextToken;
1361 /**
1362 * A non-negative integer used to limit the number of returned results. The default is 100 comments, and is configurable up to 500.
1363 */
1364 maxResults?: MaxResults;
1365 }
1366 export interface GetCommentsForComparedCommitOutput {
1367 /**
1368 * A list of comment objects on the compared commit.
1369 */
1370 commentsForComparedCommitData?: CommentsForComparedCommitData;
1371 /**
1372 * An enumeration token that can be used in a request to return the next batch of the results.
1373 */
1374 nextToken?: NextToken;
1375 }
1376 export interface GetCommentsForPullRequestInput {
1377 /**
1378 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1379 */
1380 pullRequestId: PullRequestId;
1381 /**
1382 * The name of the repository that contains the pull request.
1383 */
1384 repositoryName?: RepositoryName;
1385 /**
1386 * 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.
1387 */
1388 beforeCommitId?: CommitId;
1389 /**
1390 * 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.
1391 */
1392 afterCommitId?: CommitId;
1393 /**
1394 * An enumeration token that when provided in a request, returns the next batch of the results.
1395 */
1396 nextToken?: NextToken;
1397 /**
1398 * 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.
1399 */
1400 maxResults?: MaxResults;
1401 }
1402 export interface GetCommentsForPullRequestOutput {
1403 /**
1404 * An array of comment objects on the pull request.
1405 */
1406 commentsForPullRequestData?: CommentsForPullRequestData;
1407 /**
1408 * An enumeration token that can be used in a request to return the next batch of the results.
1409 */
1410 nextToken?: NextToken;
1411 }
1412 export interface GetCommitInput {
1413 /**
1414 * The name of the repository to which the commit was made.
1415 */
1416 repositoryName: RepositoryName;
1417 /**
1418 * The commit ID. Commit IDs are the full SHA of the commit.
1419 */
1420 commitId: ObjectId;
1421 }
1422 export interface GetCommitOutput {
1423 /**
1424 * A commit data type object that contains information about the specified commit.
1425 */
1426 commit: Commit;
1427 }
1428 export interface GetDifferencesInput {
1429 /**
1430 * The name of the repository where you want to get differences.
1431 */
1432 repositoryName: RepositoryName;
1433 /**
1434 * 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.
1435 */
1436 beforeCommitSpecifier?: CommitName;
1437 /**
1438 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit.
1439 */
1440 afterCommitSpecifier: CommitName;
1441 /**
1442 * 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.
1443 */
1444 beforePath?: Path;
1445 /**
1446 * 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.
1447 */
1448 afterPath?: Path;
1449 /**
1450 * A non-negative integer used to limit the number of returned results.
1451 */
1452 MaxResults?: Limit;
1453 /**
1454 * An enumeration token that when provided in a request, returns the next batch of the results.
1455 */
1456 NextToken?: NextToken;
1457 }
1458 export interface GetDifferencesOutput {
1459 /**
1460 * A differences data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).
1461 */
1462 differences?: DifferenceList;
1463 /**
1464 * An enumeration token that can be used in a request to return the next batch of the results.
1465 */
1466 NextToken?: NextToken;
1467 }
1468 export interface GetFileInput {
1469 /**
1470 * The name of the repository that contains the file.
1471 */
1472 repositoryName: RepositoryName;
1473 /**
1474 * 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.
1475 */
1476 commitSpecifier?: CommitName;
1477 /**
1478 * 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.
1479 */
1480 filePath: Path;
1481 }
1482 export interface GetFileOutput {
1483 /**
1484 * The full commit ID of the commit that contains the content returned by GetFile.
1485 */
1486 commitId: ObjectId;
1487 /**
1488 * The blob ID of the object that represents the file content.
1489 */
1490 blobId: ObjectId;
1491 /**
1492 * The fully qualified path to the specified file. This returns the name and extension of the file.
1493 */
1494 filePath: Path;
1495 /**
1496 * 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.
1497 */
1498 fileMode: FileModeTypeEnum;
1499 /**
1500 * The size of the contents of the file, in bytes.
1501 */
1502 fileSize: ObjectSize;
1503 /**
1504 * The base-64 encoded binary data object that represents the content of the file.
1505 */
1506 fileContent: FileContent;
1507 }
1508 export interface GetFolderInput {
1509 /**
1510 * The name of the repository.
1511 */
1512 repositoryName: RepositoryName;
1513 /**
1514 * 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.
1515 */
1516 commitSpecifier?: CommitName;
1517 /**
1518 * 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.
1519 */
1520 folderPath: Path;
1521 }
1522 export interface GetFolderOutput {
1523 /**
1524 * The full commit ID used as a reference for which version of the folder content is returned.
1525 */
1526 commitId: ObjectId;
1527 /**
1528 * The fully-qualified path of the folder whose contents are returned.
1529 */
1530 folderPath: Path;
1531 /**
1532 * The full SHA-1 pointer of the tree information for the commit that contains the folder.
1533 */
1534 treeId?: ObjectId;
1535 /**
1536 * The list of folders that exist beneath the specified folder, if any.
1537 */
1538 subFolders?: FolderList;
1539 /**
1540 * The list of files that exist in the specified folder, if any.
1541 */
1542 files?: FileList;
1543 /**
1544 * The list of symbolic links to other files and folders that exist in the specified folder, if any.
1545 */
1546 symbolicLinks?: SymbolicLinkList;
1547 /**
1548 * The list of submodules that exist in the specified folder, if any.
1549 */
1550 subModules?: SubModuleList;
1551 }
1552 export interface GetMergeCommitInput {
1553 /**
1554 * The name of the repository that contains the merge commit about which you want to get information.
1555 */
1556 repositoryName: RepositoryName;
1557 /**
1558 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1559 */
1560 sourceCommitSpecifier: CommitName;
1561 /**
1562 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1563 */
1564 destinationCommitSpecifier: CommitName;
1565 /**
1566 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
1567 */
1568 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
1569 /**
1570 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
1571 */
1572 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
1573 }
1574 export interface GetMergeCommitOutput {
1575 /**
1576 * The commit ID of the source commit specifier that was used in the merge evaluation.
1577 */
1578 sourceCommitId?: ObjectId;
1579 /**
1580 * The commit ID of the destination commit specifier that was used in the merge evaluation.
1581 */
1582 destinationCommitId?: ObjectId;
1583 /**
1584 * The commit ID of the merge base.
1585 */
1586 baseCommitId?: ObjectId;
1587 /**
1588 * The commit ID for the merge commit created when the source branch was merged into the destination branch. If the fast-forward merge strategy was used, no merge commit exists.
1589 */
1590 mergedCommitId?: ObjectId;
1591 }
1592 export interface GetMergeConflictsInput {
1593 /**
1594 * The name of the repository where the pull request was created.
1595 */
1596 repositoryName: RepositoryName;
1597 /**
1598 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1599 */
1600 destinationCommitSpecifier: CommitName;
1601 /**
1602 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1603 */
1604 sourceCommitSpecifier: CommitName;
1605 /**
1606 * The merge option or strategy you want to use to merge the code.
1607 */
1608 mergeOption: MergeOptionTypeEnum;
1609 /**
1610 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
1611 */
1612 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
1613 /**
1614 * The maximum number of files to include in the output.
1615 */
1616 maxConflictFiles?: MaxResults;
1617 /**
1618 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
1619 */
1620 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
1621 /**
1622 * An enumeration token that when provided in a request, returns the next batch of the results.
1623 */
1624 nextToken?: NextToken;
1625 }
1626 export interface GetMergeConflictsOutput {
1627 /**
1628 * A Boolean value that indicates whether the code is mergeable by the specified merge option.
1629 */
1630 mergeable: IsMergeable;
1631 /**
1632 * The commit ID of the destination commit specifier that was used in the merge evaluation.
1633 */
1634 destinationCommitId: ObjectId;
1635 /**
1636 * The commit ID of the source commit specifier that was used in the merge evaluation.
1637 */
1638 sourceCommitId: ObjectId;
1639 /**
1640 * The commit ID of the merge base.
1641 */
1642 baseCommitId?: ObjectId;
1643 /**
1644 * A list of metadata for any conflicting files. If the specified merge strategy is FAST_FORWARD_MERGE, this list will always be empty.
1645 */
1646 conflictMetadataList: ConflictMetadataList;
1647 /**
1648 * An enumeration token that can be used in a request to return the next batch of the results.
1649 */
1650 nextToken?: NextToken;
1651 }
1652 export interface GetMergeOptionsInput {
1653 /**
1654 * The name of the repository that contains the commits about which you want to get merge options.
1655 */
1656 repositoryName: RepositoryName;
1657 /**
1658 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1659 */
1660 sourceCommitSpecifier: CommitName;
1661 /**
1662 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1663 */
1664 destinationCommitSpecifier: CommitName;
1665 /**
1666 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
1667 */
1668 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
1669 /**
1670 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
1671 */
1672 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
1673 }
1674 export interface GetMergeOptionsOutput {
1675 /**
1676 * The merge option or strategy used to merge the code.
1677 */
1678 mergeOptions: MergeOptions;
1679 /**
1680 * The commit ID of the source commit specifier that was used in the merge evaluation.
1681 */
1682 sourceCommitId: ObjectId;
1683 /**
1684 * The commit ID of the destination commit specifier that was used in the merge evaluation.
1685 */
1686 destinationCommitId: ObjectId;
1687 /**
1688 * The commit ID of the merge base.
1689 */
1690 baseCommitId: ObjectId;
1691 }
1692 export interface GetPullRequestInput {
1693 /**
1694 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
1695 */
1696 pullRequestId: PullRequestId;
1697 }
1698 export interface GetPullRequestOutput {
1699 /**
1700 * Information about the specified pull request.
1701 */
1702 pullRequest: PullRequest;
1703 }
1704 export interface GetRepositoryInput {
1705 /**
1706 * The name of the repository to get information about.
1707 */
1708 repositoryName: RepositoryName;
1709 }
1710 export interface GetRepositoryOutput {
1711 /**
1712 * Information about the repository.
1713 */
1714 repositoryMetadata?: RepositoryMetadata;
1715 }
1716 export interface GetRepositoryTriggersInput {
1717 /**
1718 * The name of the repository for which the trigger is configured.
1719 */
1720 repositoryName: RepositoryName;
1721 }
1722 export interface GetRepositoryTriggersOutput {
1723 /**
1724 * The system-generated unique ID for the trigger.
1725 */
1726 configurationId?: RepositoryTriggersConfigurationId;
1727 /**
1728 * The JSON block of configuration information for each trigger.
1729 */
1730 triggers?: RepositoryTriggersList;
1731 }
1732 export type HunkContent = string;
1733 export interface IsBinaryFile {
1734 /**
1735 * The binary or non-binary status of file in the source of a merge or pull request.
1736 */
1737 source?: CapitalBoolean;
1738 /**
1739 * The binary or non-binary status of a file in the destination of a merge or pull request.
1740 */
1741 destination?: CapitalBoolean;
1742 /**
1743 * The binary or non-binary status of a file in the base of a merge or pull request.
1744 */
1745 base?: CapitalBoolean;
1746 }
1747 export type IsCommentDeleted = boolean;
1748 export type IsContentConflict = boolean;
1749 export type IsFileModeConflict = boolean;
1750 export type IsHunkConflict = boolean;
1751 export type IsMergeable = boolean;
1752 export type IsMerged = boolean;
1753 export type IsMove = boolean;
1754 export type IsObjectTypeConflict = boolean;
1755 export type KeepEmptyFolders = boolean;
1756 export type LastModifiedDate = Date;
1757 export type Limit = number;
1758 export type LineNumber = number;
1759 export interface ListBranchesInput {
1760 /**
1761 * The name of the repository that contains the branches.
1762 */
1763 repositoryName: RepositoryName;
1764 /**
1765 * An enumeration token that allows the operation to batch the results.
1766 */
1767 nextToken?: NextToken;
1768 }
1769 export interface ListBranchesOutput {
1770 /**
1771 * The list of branch names.
1772 */
1773 branches?: BranchNameList;
1774 /**
1775 * An enumeration token that returns the batch of the results.
1776 */
1777 nextToken?: NextToken;
1778 }
1779 export interface ListPullRequestsInput {
1780 /**
1781 * The name of the repository for which you want to list pull requests.
1782 */
1783 repositoryName: RepositoryName;
1784 /**
1785 * 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.
1786 */
1787 authorArn?: Arn;
1788 /**
1789 * Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.
1790 */
1791 pullRequestStatus?: PullRequestStatusEnum;
1792 /**
1793 * An enumeration token that when provided in a request, returns the next batch of the results.
1794 */
1795 nextToken?: NextToken;
1796 /**
1797 * A non-negative integer used to limit the number of returned results.
1798 */
1799 maxResults?: MaxResults;
1800 }
1801 export interface ListPullRequestsOutput {
1802 /**
1803 * The system-generated IDs of the pull requests.
1804 */
1805 pullRequestIds: PullRequestIdList;
1806 /**
1807 * An enumeration token that when provided in a request, returns the next batch of the results.
1808 */
1809 nextToken?: NextToken;
1810 }
1811 export interface ListRepositoriesInput {
1812 /**
1813 * 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.
1814 */
1815 nextToken?: NextToken;
1816 /**
1817 * The criteria used to sort the results of a list repositories operation.
1818 */
1819 sortBy?: SortByEnum;
1820 /**
1821 * The order in which to sort the results of a list repositories operation.
1822 */
1823 order?: OrderEnum;
1824 }
1825 export interface ListRepositoriesOutput {
1826 /**
1827 * Lists the repositories called by the list repositories operation.
1828 */
1829 repositories?: RepositoryNameIdPairList;
1830 /**
1831 * 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.
1832 */
1833 nextToken?: NextToken;
1834 }
1835 export interface ListTagsForResourceInput {
1836 /**
1837 * The Amazon Resource Name (ARN) of the resource for which you want to get information about tags, if any.
1838 */
1839 resourceArn: ResourceArn;
1840 /**
1841 * An enumeration token that when provided in a request, returns the next batch of the results.
1842 */
1843 nextToken?: NextToken;
1844 }
1845 export interface ListTagsForResourceOutput {
1846 /**
1847 * A list of tag key and value pairs associated with the specified resource.
1848 */
1849 tags?: TagsMap;
1850 /**
1851 * An enumeration token that allows the operation to batch the next results of the operation.
1852 */
1853 nextToken?: NextToken;
1854 }
1855 export interface Location {
1856 /**
1857 * The name of the file being compared, including its extension and subdirectory, if any.
1858 */
1859 filePath?: Path;
1860 /**
1861 * The position of a change within a compared file, in line number format.
1862 */
1863 filePosition?: Position;
1864 /**
1865 * In a comparison of commits or a pull request, whether the change is in the 'before' or 'after' of that comparison.
1866 */
1867 relativeFileVersion?: RelativeFileVersionEnum;
1868 }
1869 export type MaxResults = number;
1870 export interface MergeBranchesByFastForwardInput {
1871 /**
1872 * The name of the repository where you want to merge two branches.
1873 */
1874 repositoryName: RepositoryName;
1875 /**
1876 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1877 */
1878 sourceCommitSpecifier: CommitName;
1879 /**
1880 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1881 */
1882 destinationCommitSpecifier: CommitName;
1883 /**
1884 * The branch where the merge will be applied.
1885 */
1886 targetBranch?: BranchName;
1887 }
1888 export interface MergeBranchesByFastForwardOutput {
1889 /**
1890 * The commit ID of the merge in the destination or target branch.
1891 */
1892 commitId?: ObjectId;
1893 /**
1894 * The tree ID of the merge in the destination or target branch.
1895 */
1896 treeId?: ObjectId;
1897 }
1898 export interface MergeBranchesBySquashInput {
1899 /**
1900 * The name of the repository where you want to merge two branches.
1901 */
1902 repositoryName: RepositoryName;
1903 /**
1904 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1905 */
1906 sourceCommitSpecifier: CommitName;
1907 /**
1908 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1909 */
1910 destinationCommitSpecifier: CommitName;
1911 /**
1912 * The branch where the merge will be applied.
1913 */
1914 targetBranch?: BranchName;
1915 /**
1916 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
1917 */
1918 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
1919 /**
1920 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
1921 */
1922 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
1923 /**
1924 * The name of the author who created the commit. This information will be used as both the author and committer for the commit.
1925 */
1926 authorName?: Name;
1927 /**
1928 * The email address of the person merging the branches. This information will be used in the commit information for the merge.
1929 */
1930 email?: Email;
1931 /**
1932 * The commit message for the merge.
1933 */
1934 commitMessage?: Message;
1935 /**
1936 * 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. The default is false.
1937 */
1938 keepEmptyFolders?: KeepEmptyFolders;
1939 /**
1940 * A list of inputs to use when resolving conflicts during a merge if AUTOMERGE is chosen as the conflict resolution strategy.
1941 */
1942 conflictResolution?: ConflictResolution;
1943 }
1944 export interface MergeBranchesBySquashOutput {
1945 /**
1946 * The commit ID of the merge in the destination or target branch.
1947 */
1948 commitId?: ObjectId;
1949 /**
1950 * The tree ID of the merge in the destination or target branch.
1951 */
1952 treeId?: ObjectId;
1953 }
1954 export interface MergeBranchesByThreeWayInput {
1955 /**
1956 * The name of the repository where you want to merge two branches.
1957 */
1958 repositoryName: RepositoryName;
1959 /**
1960 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1961 */
1962 sourceCommitSpecifier: CommitName;
1963 /**
1964 * The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.
1965 */
1966 destinationCommitSpecifier: CommitName;
1967 /**
1968 * The branch where the merge will be applied.
1969 */
1970 targetBranch?: BranchName;
1971 /**
1972 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
1973 */
1974 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
1975 /**
1976 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
1977 */
1978 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
1979 /**
1980 * The name of the author who created the commit. This information will be used as both the author and committer for the commit.
1981 */
1982 authorName?: Name;
1983 /**
1984 * The email address of the person merging the branches. This information will be used in the commit information for the merge.
1985 */
1986 email?: Email;
1987 /**
1988 * The commit message to include in the commit information for the merge.
1989 */
1990 commitMessage?: Message;
1991 /**
1992 * 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. The default is false.
1993 */
1994 keepEmptyFolders?: KeepEmptyFolders;
1995 /**
1996 * A list of inputs to use when resolving conflicts during a merge if AUTOMERGE is chosen as the conflict resolution strategy.
1997 */
1998 conflictResolution?: ConflictResolution;
1999 }
2000 export interface MergeBranchesByThreeWayOutput {
2001 /**
2002 * The commit ID of the merge in the destination or target branch.
2003 */
2004 commitId?: ObjectId;
2005 /**
2006 * The tree ID of the merge in the destination or target branch.
2007 */
2008 treeId?: ObjectId;
2009 }
2010 export interface MergeHunk {
2011 /**
2012 * A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. This will be true when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge will not set this to be true.
2013 */
2014 isConflict?: IsHunkConflict;
2015 /**
2016 * Information about the merge hunk in the source of a merge or pull request.
2017 */
2018 source?: MergeHunkDetail;
2019 /**
2020 * Information about the merge hunk in the destination of a merge or pull request.
2021 */
2022 destination?: MergeHunkDetail;
2023 /**
2024 * Information about the merge hunk in the base of a merge or pull request.
2025 */
2026 base?: MergeHunkDetail;
2027 }
2028 export interface MergeHunkDetail {
2029 /**
2030 * The start position of the hunk in the merge result.
2031 */
2032 startLine?: LineNumber;
2033 /**
2034 * The end position of the hunk in the merge result.
2035 */
2036 endLine?: LineNumber;
2037 /**
2038 * The base-64 encoded content of the hunk merged region that might or might not contain a conflict.
2039 */
2040 hunkContent?: HunkContent;
2041 }
2042 export type MergeHunks = MergeHunk[];
2043 export interface MergeMetadata {
2044 /**
2045 * A Boolean value indicating whether the merge has been made.
2046 */
2047 isMerged?: IsMerged;
2048 /**
2049 * The Amazon Resource Name (ARN) of the user who merged the branches.
2050 */
2051 mergedBy?: Arn;
2052 /**
2053 * The commit ID for the merge commit, if any.
2054 */
2055 mergeCommitId?: CommitId;
2056 /**
2057 * The merge strategy used in the merge.
2058 */
2059 mergeOption?: MergeOptionTypeEnum;
2060 }
2061 export interface MergeOperations {
2062 /**
2063 * The operation on a file (add, modify, or delete) of a file in the source of a merge or pull request.
2064 */
2065 source?: ChangeTypeEnum;
2066 /**
2067 * The operation on a file in the destination of a merge or pull request.
2068 */
2069 destination?: ChangeTypeEnum;
2070 }
2071 export type MergeOptionTypeEnum = "FAST_FORWARD_MERGE"|"SQUASH_MERGE"|"THREE_WAY_MERGE"|string;
2072 export type MergeOptions = MergeOptionTypeEnum[];
2073 export interface MergePullRequestByFastForwardInput {
2074 /**
2075 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
2076 */
2077 pullRequestId: PullRequestId;
2078 /**
2079 * The name of the repository where the pull request was created.
2080 */
2081 repositoryName: RepositoryName;
2082 /**
2083 * 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.
2084 */
2085 sourceCommitId?: ObjectId;
2086 }
2087 export interface MergePullRequestByFastForwardOutput {
2088 /**
2089 * Information about the specified pull request, including information about the merge.
2090 */
2091 pullRequest?: PullRequest;
2092 }
2093 export interface MergePullRequestBySquashInput {
2094 /**
2095 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
2096 */
2097 pullRequestId: PullRequestId;
2098 /**
2099 * The name of the repository where the pull request was created.
2100 */
2101 repositoryName: RepositoryName;
2102 /**
2103 * 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.
2104 */
2105 sourceCommitId?: ObjectId;
2106 /**
2107 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
2108 */
2109 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
2110 /**
2111 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
2112 */
2113 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
2114 /**
2115 * The commit message to include in the commit information for the merge.
2116 */
2117 commitMessage?: Message;
2118 /**
2119 * The name of the author who created the commit. This information will be used as both the author and committer for the commit.
2120 */
2121 authorName?: Name;
2122 /**
2123 * The email address of the person merging the branches. This information will be used in the commit information for the merge.
2124 */
2125 email?: Email;
2126 /**
2127 * 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. The default is false.
2128 */
2129 keepEmptyFolders?: KeepEmptyFolders;
2130 /**
2131 * A list of inputs to use when resolving conflicts during a merge if AUTOMERGE is chosen as the conflict resolution strategy.
2132 */
2133 conflictResolution?: ConflictResolution;
2134 }
2135 export interface MergePullRequestBySquashOutput {
2136 pullRequest?: PullRequest;
2137 }
2138 export interface MergePullRequestByThreeWayInput {
2139 /**
2140 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
2141 */
2142 pullRequestId: PullRequestId;
2143 /**
2144 * The name of the repository where the pull request was created.
2145 */
2146 repositoryName: RepositoryName;
2147 /**
2148 * 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.
2149 */
2150 sourceCommitId?: ObjectId;
2151 /**
2152 * The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.
2153 */
2154 conflictDetailLevel?: ConflictDetailLevelTypeEnum;
2155 /**
2156 * Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.
2157 */
2158 conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
2159 /**
2160 * The commit message to include in the commit information for the merge.
2161 */
2162 commitMessage?: Message;
2163 /**
2164 * The name of the author who created the commit. This information will be used as both the author and committer for the commit.
2165 */
2166 authorName?: Name;
2167 /**
2168 * The email address of the person merging the branches. This information will be used in the commit information for the merge.
2169 */
2170 email?: Email;
2171 /**
2172 * 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. The default is false.
2173 */
2174 keepEmptyFolders?: KeepEmptyFolders;
2175 /**
2176 * A list of inputs to use when resolving conflicts during a merge if AUTOMERGE is chosen as the conflict resolution strategy.
2177 */
2178 conflictResolution?: ConflictResolution;
2179 }
2180 export interface MergePullRequestByThreeWayOutput {
2181 pullRequest?: PullRequest;
2182 }
2183 export type Message = string;
2184 export type Mode = string;
2185 export type Name = string;
2186 export type NextToken = string;
2187 export type NumberOfConflicts = number;
2188 export type ObjectId = string;
2189 export type ObjectSize = number;
2190 export type ObjectTypeEnum = "FILE"|"DIRECTORY"|"GIT_LINK"|"SYMBOLIC_LINK"|string;
2191 export interface ObjectTypes {
2192 /**
2193 * The type of the object in the source branch.
2194 */
2195 source?: ObjectTypeEnum;
2196 /**
2197 * The type of the object in the destination branch.
2198 */
2199 destination?: ObjectTypeEnum;
2200 /**
2201 * The type of the object in the base commit of the merge.
2202 */
2203 base?: ObjectTypeEnum;
2204 }
2205 export type OrderEnum = "ascending"|"descending"|string;
2206 export type ParentList = ObjectId[];
2207 export type Path = string;
2208 export type Position = number;
2209 export interface PostCommentForComparedCommitInput {
2210 /**
2211 * The name of the repository where you want to post a comment on the comparison between commits.
2212 */
2213 repositoryName: RepositoryName;
2214 /**
2215 * To establish the directionality of the comparison, the full commit ID of the 'before' commit. This is required for commenting on any commit unless that commit is the initial commit.
2216 */
2217 beforeCommitId?: CommitId;
2218 /**
2219 * To establish the directionality of the comparison, the full commit ID of the 'after' commit.
2220 */
2221 afterCommitId: CommitId;
2222 /**
2223 * The location of the comparison where you want to comment.
2224 */
2225 location?: Location;
2226 /**
2227 * The content of the comment you want to make.
2228 */
2229 content: Content;
2230 /**
2231 * 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.
2232 */
2233 clientRequestToken?: ClientRequestToken;
2234 }
2235 export interface PostCommentForComparedCommitOutput {
2236 /**
2237 * The name of the repository where you posted a comment on the comparison between commits.
2238 */
2239 repositoryName?: RepositoryName;
2240 /**
2241 * In the directionality you established, the full commit ID of the 'before' commit.
2242 */
2243 beforeCommitId?: CommitId;
2244 /**
2245 * In the directionality you established, the full commit ID of the 'after' commit.
2246 */
2247 afterCommitId?: CommitId;
2248 /**
2249 * In the directionality you established, the blob ID of the 'before' blob.
2250 */
2251 beforeBlobId?: ObjectId;
2252 /**
2253 * In the directionality you established, the blob ID of the 'after' blob.
2254 */
2255 afterBlobId?: ObjectId;
2256 /**
2257 * The location of the comment in the comparison between the two commits.
2258 */
2259 location?: Location;
2260 /**
2261 * The content of the comment you posted.
2262 */
2263 comment?: Comment;
2264 }
2265 export interface PostCommentForPullRequestInput {
2266 /**
2267 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
2268 */
2269 pullRequestId: PullRequestId;
2270 /**
2271 * The name of the repository where you want to post a comment on a pull request.
2272 */
2273 repositoryName: RepositoryName;
2274 /**
2275 * 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.
2276 */
2277 beforeCommitId: CommitId;
2278 /**
2279 * 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.
2280 */
2281 afterCommitId: CommitId;
2282 /**
2283 * 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.
2284 */
2285 location?: Location;
2286 /**
2287 * The content of your comment on the change.
2288 */
2289 content: Content;
2290 /**
2291 * 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.
2292 */
2293 clientRequestToken?: ClientRequestToken;
2294 }
2295 export interface PostCommentForPullRequestOutput {
2296 /**
2297 * The name of the repository where you posted a comment on a pull request.
2298 */
2299 repositoryName?: RepositoryName;
2300 /**
2301 * The system-generated ID of the pull request.
2302 */
2303 pullRequestId?: PullRequestId;
2304 /**
2305 * 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.
2306 */
2307 beforeCommitId?: CommitId;
2308 /**
2309 * The full commit ID of the commit in the destination branch where the pull request will be merged.
2310 */
2311 afterCommitId?: CommitId;
2312 /**
2313 * In the directionality of the pull request, the blob ID of the 'before' blob.
2314 */
2315 beforeBlobId?: ObjectId;
2316 /**
2317 * In the directionality of the pull request, the blob ID of the 'after' blob.
2318 */
2319 afterBlobId?: ObjectId;
2320 /**
2321 * The location of the change where you posted your comment.
2322 */
2323 location?: Location;
2324 /**
2325 * The content of the comment you posted.
2326 */
2327 comment?: Comment;
2328 }
2329 export interface PostCommentReplyInput {
2330 /**
2331 * The system-generated ID of the comment to which you want to reply. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
2332 */
2333 inReplyTo: CommentId;
2334 /**
2335 * 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.
2336 */
2337 clientRequestToken?: ClientRequestToken;
2338 /**
2339 * The contents of your reply to a comment.
2340 */
2341 content: Content;
2342 }
2343 export interface PostCommentReplyOutput {
2344 /**
2345 * Information about the reply to a comment.
2346 */
2347 comment?: Comment;
2348 }
2349 export interface PullRequest {
2350 /**
2351 * The system-generated ID of the pull request.
2352 */
2353 pullRequestId?: PullRequestId;
2354 /**
2355 * The user-defined title of the pull request. This title is displayed in the list of pull requests to other users of the repository.
2356 */
2357 title?: Title;
2358 /**
2359 * 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.
2360 */
2361 description?: Description;
2362 /**
2363 * The day and time of the last user or system activity on the pull request, in timestamp format.
2364 */
2365 lastActivityDate?: LastModifiedDate;
2366 /**
2367 * The date and time the pull request was originally created, in timestamp format.
2368 */
2369 creationDate?: CreationDate;
2370 /**
2371 * The status of the pull request. Pull request status can only change from OPEN to CLOSED.
2372 */
2373 pullRequestStatus?: PullRequestStatusEnum;
2374 /**
2375 * The Amazon Resource Name (ARN) of the user who created the pull request.
2376 */
2377 authorArn?: Arn;
2378 /**
2379 * The targets of the pull request, including the source branch and destination branch for the pull request.
2380 */
2381 pullRequestTargets?: PullRequestTargetList;
2382 /**
2383 * 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.
2384 */
2385 clientRequestToken?: ClientRequestToken;
2386 }
2387 export interface PullRequestCreatedEventMetadata {
2388 /**
2389 * The name of the repository where the pull request was created.
2390 */
2391 repositoryName?: RepositoryName;
2392 /**
2393 * The commit ID on the source branch used when the pull request was created.
2394 */
2395 sourceCommitId?: CommitId;
2396 /**
2397 * The commit ID of the tip of the branch specified as the destination branch when the pull request was created.
2398 */
2399 destinationCommitId?: CommitId;
2400 /**
2401 * The commit ID of the most recent commit that the source branch and the destination branch have in common.
2402 */
2403 mergeBase?: CommitId;
2404 }
2405 export interface PullRequestEvent {
2406 /**
2407 * The system-generated ID of the pull request.
2408 */
2409 pullRequestId?: PullRequestId;
2410 /**
2411 * The day and time of the pull request event, in timestamp format.
2412 */
2413 eventDate?: EventDate;
2414 /**
2415 * 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).
2416 */
2417 pullRequestEventType?: PullRequestEventType;
2418 /**
2419 * 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.
2420 */
2421 actorArn?: Arn;
2422 /**
2423 * Information about the source and destination branches for the pull request.
2424 */
2425 pullRequestCreatedEventMetadata?: PullRequestCreatedEventMetadata;
2426 /**
2427 * Information about the change in status for the pull request event.
2428 */
2429 pullRequestStatusChangedEventMetadata?: PullRequestStatusChangedEventMetadata;
2430 /**
2431 * Information about the updated source branch for the pull request event.
2432 */
2433 pullRequestSourceReferenceUpdatedEventMetadata?: PullRequestSourceReferenceUpdatedEventMetadata;
2434 /**
2435 * Information about the change in mergability state for the pull request event.
2436 */
2437 pullRequestMergedStateChangedEventMetadata?: PullRequestMergedStateChangedEventMetadata;
2438 }
2439 export type PullRequestEventList = PullRequestEvent[];
2440 export type PullRequestEventType = "PULL_REQUEST_CREATED"|"PULL_REQUEST_STATUS_CHANGED"|"PULL_REQUEST_SOURCE_REFERENCE_UPDATED"|"PULL_REQUEST_MERGE_STATE_CHANGED"|string;
2441 export type PullRequestId = string;
2442 export type PullRequestIdList = PullRequestId[];
2443 export interface PullRequestMergedStateChangedEventMetadata {
2444 /**
2445 * The name of the repository where the pull request was created.
2446 */
2447 repositoryName?: RepositoryName;
2448 /**
2449 * The name of the branch that the pull request will be merged into.
2450 */
2451 destinationReference?: ReferenceName;
2452 /**
2453 * Information about the merge state change event.
2454 */
2455 mergeMetadata?: MergeMetadata;
2456 }
2457 export interface PullRequestSourceReferenceUpdatedEventMetadata {
2458 /**
2459 * The name of the repository where the pull request was updated.
2460 */
2461 repositoryName?: RepositoryName;
2462 /**
2463 * 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.
2464 */
2465 beforeCommitId?: CommitId;
2466 /**
2467 * 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.
2468 */
2469 afterCommitId?: CommitId;
2470 /**
2471 * The commit ID of the most recent commit that the source branch and the destination branch have in common.
2472 */
2473 mergeBase?: CommitId;
2474 }
2475 export interface PullRequestStatusChangedEventMetadata {
2476 /**
2477 * The changed status of the pull request.
2478 */
2479 pullRequestStatus?: PullRequestStatusEnum;
2480 }
2481 export type PullRequestStatusEnum = "OPEN"|"CLOSED"|string;
2482 export interface PullRequestTarget {
2483 /**
2484 * The name of the repository that contains the pull request source and destination branches.
2485 */
2486 repositoryName?: RepositoryName;
2487 /**
2488 * The branch of the repository that contains the changes for the pull request. Also known as the source branch.
2489 */
2490 sourceReference?: ReferenceName;
2491 /**
2492 * The branch of the repository where the pull request changes will be merged into. Also known as the destination branch.
2493 */
2494 destinationReference?: ReferenceName;
2495 /**
2496 * 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.
2497 */
2498 destinationCommit?: CommitId;
2499 /**
2500 * 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.
2501 */
2502 sourceCommit?: CommitId;
2503 /**
2504 * The commit ID of the most recent commit that the source branch and the destination branch have in common.
2505 */
2506 mergeBase?: CommitId;
2507 /**
2508 * Returns metadata about the state of the merge, including whether the merge has been made.
2509 */
2510 mergeMetadata?: MergeMetadata;
2511 }
2512 export type PullRequestTargetList = PullRequestTarget[];
2513 export type PutFileEntries = PutFileEntry[];
2514 export interface PutFileEntry {
2515 /**
2516 * The full path to the file in the repository, including the name of the file.
2517 */
2518 filePath: Path;
2519 /**
2520 * The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
2521 */
2522 fileMode?: FileModeTypeEnum;
2523 /**
2524 * The content of the file, if a source file is not specified.
2525 */
2526 fileContent?: FileContent;
2527 /**
2528 * 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.
2529 */
2530 sourceFile?: SourceFileSpecifier;
2531 }
2532 export interface PutFileInput {
2533 /**
2534 * The name of the repository where you want to add or update the file.
2535 */
2536 repositoryName: RepositoryName;
2537 /**
2538 * 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.
2539 */
2540 branchName: BranchName;
2541 /**
2542 * The content of the file, in binary object format.
2543 */
2544 fileContent: FileContent;
2545 /**
2546 * 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.
2547 */
2548 filePath: Path;
2549 /**
2550 * The file mode permissions of the blob. Valid file mode permissions are listed below.
2551 */
2552 fileMode?: FileModeTypeEnum;
2553 /**
2554 * 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.
2555 */
2556 parentCommitId?: CommitId;
2557 /**
2558 * 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.
2559 */
2560 commitMessage?: Message;
2561 /**
2562 * 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.
2563 */
2564 name?: Name;
2565 /**
2566 * An email address for the person adding or updating the file.
2567 */
2568 email?: Email;
2569 }
2570 export interface PutFileOutput {
2571 /**
2572 * The full SHA of the commit that contains this file change.
2573 */
2574 commitId: ObjectId;
2575 /**
2576 * The ID of the blob, which is its SHA-1 pointer.
2577 */
2578 blobId: ObjectId;
2579 /**
2580 * The full SHA-1 pointer of the tree information for the commit that contains this file change.
2581 */
2582 treeId: ObjectId;
2583 }
2584 export interface PutRepositoryTriggersInput {
2585 /**
2586 * The name of the repository where you want to create or update the trigger.
2587 */
2588 repositoryName: RepositoryName;
2589 /**
2590 * The JSON block of configuration information for each trigger.
2591 */
2592 triggers: RepositoryTriggersList;
2593 }
2594 export interface PutRepositoryTriggersOutput {
2595 /**
2596 * The system-generated unique ID for the create or update operation.
2597 */
2598 configurationId?: RepositoryTriggersConfigurationId;
2599 }
2600 export type ReferenceName = string;
2601 export type RelativeFileVersionEnum = "BEFORE"|"AFTER"|string;
2602 export type ReplaceContentEntries = ReplaceContentEntry[];
2603 export interface ReplaceContentEntry {
2604 /**
2605 * The path of the conflicting file.
2606 */
2607 filePath: Path;
2608 /**
2609 * The replacement type to use when determining how to resolve the conflict.
2610 */
2611 replacementType: ReplacementTypeEnum;
2612 /**
2613 * The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
2614 */
2615 content?: FileContent;
2616 /**
2617 * The file mode to apply during conflict resoltion.
2618 */
2619 fileMode?: FileModeTypeEnum;
2620 }
2621 export type ReplacementTypeEnum = "KEEP_BASE"|"KEEP_SOURCE"|"KEEP_DESTINATION"|"USE_NEW_CONTENT"|string;
2622 export type RepositoryDescription = string;
2623 export type RepositoryId = string;
2624 export interface RepositoryMetadata {
2625 /**
2626 * The ID of the AWS account associated with the repository.
2627 */
2628 accountId?: AccountId;
2629 /**
2630 * The ID of the repository.
2631 */
2632 repositoryId?: RepositoryId;
2633 /**
2634 * The repository's name.
2635 */
2636 repositoryName?: RepositoryName;
2637 /**
2638 * A comment or description about the repository.
2639 */
2640 repositoryDescription?: RepositoryDescription;
2641 /**
2642 * The repository's default branch name.
2643 */
2644 defaultBranch?: BranchName;
2645 /**
2646 * The date and time the repository was last modified, in timestamp format.
2647 */
2648 lastModifiedDate?: LastModifiedDate;
2649 /**
2650 * The date and time the repository was created, in timestamp format.
2651 */
2652 creationDate?: CreationDate;
2653 /**
2654 * The URL to use for cloning the repository over HTTPS.
2655 */
2656 cloneUrlHttp?: CloneUrlHttp;
2657 /**
2658 * The URL to use for cloning the repository over SSH.
2659 */
2660 cloneUrlSsh?: CloneUrlSsh;
2661 /**
2662 * The Amazon Resource Name (ARN) of the repository.
2663 */
2664 Arn?: Arn;
2665 }
2666 export type RepositoryMetadataList = RepositoryMetadata[];
2667 export type RepositoryName = string;
2668 export interface RepositoryNameIdPair {
2669 /**
2670 * The name associated with the repository.
2671 */
2672 repositoryName?: RepositoryName;
2673 /**
2674 * The ID associated with the repository.
2675 */
2676 repositoryId?: RepositoryId;
2677 }
2678 export type RepositoryNameIdPairList = RepositoryNameIdPair[];
2679 export type RepositoryNameList = RepositoryName[];
2680 export type RepositoryNotFoundList = RepositoryName[];
2681 export interface RepositoryTrigger {
2682 /**
2683 * The name of the trigger.
2684 */
2685 name: RepositoryTriggerName;
2686 /**
2687 * The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon SNS.
2688 */
2689 destinationArn: Arn;
2690 /**
2691 * Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
2692 */
2693 customData?: RepositoryTriggerCustomData;
2694 /**
2695 * The branches that will be included in the trigger configuration. If you specify an empty array, the trigger will apply to all branches. Although no content is required in the array, you must include the array itself.
2696 */
2697 branches?: BranchNameList;
2698 /**
2699 * The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon SNS. The valid value "all" cannot be used with any other values.
2700 */
2701 events: RepositoryTriggerEventList;
2702 }
2703 export type RepositoryTriggerCustomData = string;
2704 export type RepositoryTriggerEventEnum = "all"|"updateReference"|"createReference"|"deleteReference"|string;
2705 export type RepositoryTriggerEventList = RepositoryTriggerEventEnum[];
2706 export interface RepositoryTriggerExecutionFailure {
2707 /**
2708 * The name of the trigger that did not run.
2709 */
2710 trigger?: RepositoryTriggerName;
2711 /**
2712 * Additional message information about the trigger that did not run.
2713 */
2714 failureMessage?: RepositoryTriggerExecutionFailureMessage;
2715 }
2716 export type RepositoryTriggerExecutionFailureList = RepositoryTriggerExecutionFailure[];
2717 export type RepositoryTriggerExecutionFailureMessage = string;
2718 export type RepositoryTriggerName = string;
2719 export type RepositoryTriggerNameList = RepositoryTriggerName[];
2720 export type RepositoryTriggersConfigurationId = string;
2721 export type RepositoryTriggersList = RepositoryTrigger[];
2722 export type ResourceArn = string;
2723 export type SetFileModeEntries = SetFileModeEntry[];
2724 export interface SetFileModeEntry {
2725 /**
2726 * The full path to the file, including the name of the file.
2727 */
2728 filePath: Path;
2729 /**
2730 * The file mode for the file.
2731 */
2732 fileMode: FileModeTypeEnum;
2733 }
2734 export type SortByEnum = "repositoryName"|"lastModifiedDate"|string;
2735 export interface SourceFileSpecifier {
2736 /**
2737 * The full path to the file, including the name of the file.
2738 */
2739 filePath: Path;
2740 /**
2741 * Whether to remove the source file from the parent commit.
2742 */
2743 isMove?: IsMove;
2744 }
2745 export interface SubModule {
2746 /**
2747 * The commit ID that contains the reference to the submodule.
2748 */
2749 commitId?: ObjectId;
2750 /**
2751 * The fully qualified path to the folder that contains the reference to the submodule.
2752 */
2753 absolutePath?: Path;
2754 /**
2755 * The relative path of the submodule from the folder where the query originated.
2756 */
2757 relativePath?: Path;
2758 }
2759 export type SubModuleList = SubModule[];
2760 export interface SymbolicLink {
2761 /**
2762 * The blob ID that contains the information about the symbolic link.
2763 */
2764 blobId?: ObjectId;
2765 /**
2766 * The fully-qualified path to the folder that contains the symbolic link.
2767 */
2768 absolutePath?: Path;
2769 /**
2770 * The relative path of the symbolic link from the folder where the query originated.
2771 */
2772 relativePath?: Path;
2773 /**
2774 * The file mode permissions of the blob that cotains information about the symbolic link.
2775 */
2776 fileMode?: FileModeTypeEnum;
2777 }
2778 export type SymbolicLinkList = SymbolicLink[];
2779 export type TagKey = string;
2780 export type TagKeysList = TagKey[];
2781 export interface TagResourceInput {
2782 /**
2783 * The Amazon Resource Name (ARN) of the resource to which you want to add or update tags.
2784 */
2785 resourceArn: ResourceArn;
2786 /**
2787 * The key-value pair to use when tagging this repository.
2788 */
2789 tags: TagsMap;
2790 }
2791 export type TagValue = string;
2792 export type TagsMap = {[key: string]: TagValue};
2793 export interface Target {
2794 /**
2795 * The name of the repository that contains the pull request.
2796 */
2797 repositoryName: RepositoryName;
2798 /**
2799 * The branch of the repository that contains the changes for the pull request. Also known as the source branch.
2800 */
2801 sourceReference: ReferenceName;
2802 /**
2803 * The branch of the repository where the pull request changes will be merged into. Also known as the destination branch.
2804 */
2805 destinationReference?: ReferenceName;
2806 }
2807 export type TargetList = Target[];
2808 export interface TestRepositoryTriggersInput {
2809 /**
2810 * The name of the repository in which to test the triggers.
2811 */
2812 repositoryName: RepositoryName;
2813 /**
2814 * The list of triggers to test.
2815 */
2816 triggers: RepositoryTriggersList;
2817 }
2818 export interface TestRepositoryTriggersOutput {
2819 /**
2820 * The list of triggers that were successfully tested. This list provides the names of the triggers that were successfully tested, separated by commas.
2821 */
2822 successfulExecutions?: RepositoryTriggerNameList;
2823 /**
2824 * 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.
2825 */
2826 failedExecutions?: RepositoryTriggerExecutionFailureList;
2827 }
2828 export type Title = string;
2829 export interface UntagResourceInput {
2830 /**
2831 * The Amazon Resource Name (ARN) of the resource to which you want to remove tags.
2832 */
2833 resourceArn: ResourceArn;
2834 /**
2835 * The tag key for each tag that you want to remove from the resource.
2836 */
2837 tagKeys: TagKeysList;
2838 }
2839 export interface UpdateCommentInput {
2840 /**
2841 * The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
2842 */
2843 commentId: CommentId;
2844 /**
2845 * The updated content with which you want to replace the existing content of the comment.
2846 */
2847 content: Content;
2848 }
2849 export interface UpdateCommentOutput {
2850 /**
2851 * Information about the updated comment.
2852 */
2853 comment?: Comment;
2854 }
2855 export interface UpdateDefaultBranchInput {
2856 /**
2857 * The name of the repository to set or change the default branch for.
2858 */
2859 repositoryName: RepositoryName;
2860 /**
2861 * The name of the branch to set as the default.
2862 */
2863 defaultBranchName: BranchName;
2864 }
2865 export interface UpdatePullRequestDescriptionInput {
2866 /**
2867 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
2868 */
2869 pullRequestId: PullRequestId;
2870 /**
2871 * The updated content of the description for the pull request. This content will replace the existing description.
2872 */
2873 description: Description;
2874 }
2875 export interface UpdatePullRequestDescriptionOutput {
2876 /**
2877 * Information about the updated pull request.
2878 */
2879 pullRequest: PullRequest;
2880 }
2881 export interface UpdatePullRequestStatusInput {
2882 /**
2883 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
2884 */
2885 pullRequestId: PullRequestId;
2886 /**
2887 * 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.
2888 */
2889 pullRequestStatus: PullRequestStatusEnum;
2890 }
2891 export interface UpdatePullRequestStatusOutput {
2892 /**
2893 * Information about the pull request.
2894 */
2895 pullRequest: PullRequest;
2896 }
2897 export interface UpdatePullRequestTitleInput {
2898 /**
2899 * The system-generated ID of the pull request. To get this ID, use ListPullRequests.
2900 */
2901 pullRequestId: PullRequestId;
2902 /**
2903 * The updated title of the pull request. This will replace the existing title.
2904 */
2905 title: Title;
2906 }
2907 export interface UpdatePullRequestTitleOutput {
2908 /**
2909 * Information about the updated pull request.
2910 */
2911 pullRequest: PullRequest;
2912 }
2913 export interface UpdateRepositoryDescriptionInput {
2914 /**
2915 * The name of the repository to set or change the comment or description for.
2916 */
2917 repositoryName: RepositoryName;
2918 /**
2919 * The new comment or description for the specified repository. Repository descriptions are limited to 1,000 characters.
2920 */
2921 repositoryDescription?: RepositoryDescription;
2922 }
2923 export interface UpdateRepositoryNameInput {
2924 /**
2925 * The existing name of the repository.
2926 */
2927 oldName: RepositoryName;
2928 /**
2929 * The new name for the repository.
2930 */
2931 newName: RepositoryName;
2932 }
2933 export interface UserInfo {
2934 /**
2935 * The name of the user who made the specified commit.
2936 */
2937 name?: Name;
2938 /**
2939 * The email address associated with the user who made the commit, if any.
2940 */
2941 email?: Email;
2942 /**
2943 * The date when the specified commit was commited, in timestamp format with GMT offset.
2944 */
2945 date?: _Date;
2946 }
2947 export type blob = Buffer|Uint8Array|Blob|string;
2948 /**
2949 * 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.
2950 */
2951 export type apiVersion = "2015-04-13"|"latest"|string;
2952 export interface ClientApiVersions {
2953 /**
2954 * 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.
2955 */
2956 apiVersion?: apiVersion;
2957 }
2958 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
2959 /**
2960 * Contains interfaces for use with the CodeCommit client.
2961 */
2962 export import Types = CodeCommit;
2963}
2964export = CodeCommit;