@aws-sdk/client-codecommit 3.186.0 → 3.190.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/CodeCommit.js +310 -317
  3. package/dist-es/CodeCommitClient.js +22 -28
  4. package/dist-es/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.js +22 -29
  5. package/dist-es/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.js +21 -28
  6. package/dist-es/commands/BatchDescribeMergeConflictsCommand.js +21 -28
  7. package/dist-es/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.js +21 -28
  8. package/dist-es/commands/BatchGetCommitsCommand.js +21 -28
  9. package/dist-es/commands/BatchGetRepositoriesCommand.js +21 -28
  10. package/dist-es/commands/CreateApprovalRuleTemplateCommand.js +21 -28
  11. package/dist-es/commands/CreateBranchCommand.js +22 -29
  12. package/dist-es/commands/CreateCommitCommand.js +21 -28
  13. package/dist-es/commands/CreatePullRequestApprovalRuleCommand.js +21 -28
  14. package/dist-es/commands/CreatePullRequestCommand.js +21 -28
  15. package/dist-es/commands/CreateRepositoryCommand.js +21 -28
  16. package/dist-es/commands/CreateUnreferencedMergeCommitCommand.js +21 -28
  17. package/dist-es/commands/DeleteApprovalRuleTemplateCommand.js +21 -28
  18. package/dist-es/commands/DeleteBranchCommand.js +21 -28
  19. package/dist-es/commands/DeleteCommentContentCommand.js +21 -28
  20. package/dist-es/commands/DeleteFileCommand.js +21 -28
  21. package/dist-es/commands/DeletePullRequestApprovalRuleCommand.js +21 -28
  22. package/dist-es/commands/DeleteRepositoryCommand.js +21 -28
  23. package/dist-es/commands/DescribeMergeConflictsCommand.js +21 -28
  24. package/dist-es/commands/DescribePullRequestEventsCommand.js +21 -28
  25. package/dist-es/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.js +22 -29
  26. package/dist-es/commands/EvaluatePullRequestApprovalRulesCommand.js +21 -28
  27. package/dist-es/commands/GetApprovalRuleTemplateCommand.js +21 -28
  28. package/dist-es/commands/GetBlobCommand.js +21 -28
  29. package/dist-es/commands/GetBranchCommand.js +21 -28
  30. package/dist-es/commands/GetCommentCommand.js +21 -28
  31. package/dist-es/commands/GetCommentReactionsCommand.js +21 -28
  32. package/dist-es/commands/GetCommentsForComparedCommitCommand.js +21 -28
  33. package/dist-es/commands/GetCommentsForPullRequestCommand.js +21 -28
  34. package/dist-es/commands/GetCommitCommand.js +21 -28
  35. package/dist-es/commands/GetDifferencesCommand.js +21 -28
  36. package/dist-es/commands/GetFileCommand.js +21 -28
  37. package/dist-es/commands/GetFolderCommand.js +21 -28
  38. package/dist-es/commands/GetMergeCommitCommand.js +21 -28
  39. package/dist-es/commands/GetMergeConflictsCommand.js +21 -28
  40. package/dist-es/commands/GetMergeOptionsCommand.js +21 -28
  41. package/dist-es/commands/GetPullRequestApprovalStatesCommand.js +21 -28
  42. package/dist-es/commands/GetPullRequestCommand.js +21 -28
  43. package/dist-es/commands/GetPullRequestOverrideStateCommand.js +21 -28
  44. package/dist-es/commands/GetRepositoryCommand.js +21 -28
  45. package/dist-es/commands/GetRepositoryTriggersCommand.js +21 -28
  46. package/dist-es/commands/ListApprovalRuleTemplatesCommand.js +21 -28
  47. package/dist-es/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.js +21 -28
  48. package/dist-es/commands/ListBranchesCommand.js +21 -28
  49. package/dist-es/commands/ListPullRequestsCommand.js +21 -28
  50. package/dist-es/commands/ListRepositoriesCommand.js +21 -28
  51. package/dist-es/commands/ListRepositoriesForApprovalRuleTemplateCommand.js +21 -28
  52. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  53. package/dist-es/commands/MergeBranchesByFastForwardCommand.js +21 -28
  54. package/dist-es/commands/MergeBranchesBySquashCommand.js +21 -28
  55. package/dist-es/commands/MergeBranchesByThreeWayCommand.js +21 -28
  56. package/dist-es/commands/MergePullRequestByFastForwardCommand.js +21 -28
  57. package/dist-es/commands/MergePullRequestBySquashCommand.js +21 -28
  58. package/dist-es/commands/MergePullRequestByThreeWayCommand.js +21 -28
  59. package/dist-es/commands/OverridePullRequestApprovalRulesCommand.js +22 -29
  60. package/dist-es/commands/PostCommentForComparedCommitCommand.js +21 -28
  61. package/dist-es/commands/PostCommentForPullRequestCommand.js +21 -28
  62. package/dist-es/commands/PostCommentReplyCommand.js +21 -28
  63. package/dist-es/commands/PutCommentReactionCommand.js +22 -29
  64. package/dist-es/commands/PutFileCommand.js +21 -28
  65. package/dist-es/commands/PutRepositoryTriggersCommand.js +21 -28
  66. package/dist-es/commands/TagResourceCommand.js +22 -29
  67. package/dist-es/commands/TestRepositoryTriggersCommand.js +21 -28
  68. package/dist-es/commands/UntagResourceCommand.js +22 -29
  69. package/dist-es/commands/UpdateApprovalRuleTemplateContentCommand.js +21 -28
  70. package/dist-es/commands/UpdateApprovalRuleTemplateDescriptionCommand.js +21 -28
  71. package/dist-es/commands/UpdateApprovalRuleTemplateNameCommand.js +21 -28
  72. package/dist-es/commands/UpdateCommentCommand.js +21 -28
  73. package/dist-es/commands/UpdateDefaultBranchCommand.js +22 -29
  74. package/dist-es/commands/UpdatePullRequestApprovalRuleContentCommand.js +21 -28
  75. package/dist-es/commands/UpdatePullRequestApprovalStateCommand.js +22 -29
  76. package/dist-es/commands/UpdatePullRequestDescriptionCommand.js +21 -28
  77. package/dist-es/commands/UpdatePullRequestStatusCommand.js +21 -28
  78. package/dist-es/commands/UpdatePullRequestTitleCommand.js +21 -28
  79. package/dist-es/commands/UpdateRepositoryDescriptionCommand.js +22 -29
  80. package/dist-es/commands/UpdateRepositoryNameCommand.js +22 -29
  81. package/dist-es/endpoints.js +8 -8
  82. package/dist-es/models/CodeCommitServiceException.js +5 -10
  83. package/dist-es/models/models_0.js +2157 -1872
  84. package/dist-es/models/models_1.js +660 -549
  85. package/dist-es/pagination/DescribeMergeConflictsPaginator.js +25 -68
  86. package/dist-es/pagination/DescribePullRequestEventsPaginator.js +25 -68
  87. package/dist-es/pagination/GetCommentReactionsPaginator.js +25 -68
  88. package/dist-es/pagination/GetCommentsForComparedCommitPaginator.js +25 -68
  89. package/dist-es/pagination/GetCommentsForPullRequestPaginator.js +25 -68
  90. package/dist-es/pagination/GetDifferencesPaginator.js +25 -68
  91. package/dist-es/pagination/GetMergeConflictsPaginator.js +25 -68
  92. package/dist-es/pagination/ListApprovalRuleTemplatesPaginator.js +25 -68
  93. package/dist-es/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +25 -68
  94. package/dist-es/pagination/ListBranchesPaginator.js +24 -67
  95. package/dist-es/pagination/ListPullRequestsPaginator.js +25 -68
  96. package/dist-es/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +25 -68
  97. package/dist-es/pagination/ListRepositoriesPaginator.js +24 -67
  98. package/dist-es/protocols/Aws_json1_1.js +9002 -11195
  99. package/dist-es/runtimeConfig.browser.js +26 -12
  100. package/dist-es/runtimeConfig.js +30 -12
  101. package/dist-es/runtimeConfig.native.js +8 -5
  102. package/dist-es/runtimeConfig.shared.js +8 -11
  103. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CodeCommitClient } from "./CodeCommitClient";
3
2
  import { AssociateApprovalRuleTemplateWithRepositoryCommand, } from "./commands/AssociateApprovalRuleTemplateWithRepositoryCommand";
4
3
  import { BatchAssociateApprovalRuleTemplateWithRepositoriesCommand, } from "./commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand";
@@ -77,1089 +76,1083 @@ import { UpdatePullRequestStatusCommand, } from "./commands/UpdatePullRequestSta
77
76
  import { UpdatePullRequestTitleCommand, } from "./commands/UpdatePullRequestTitleCommand";
78
77
  import { UpdateRepositoryDescriptionCommand, } from "./commands/UpdateRepositoryDescriptionCommand";
79
78
  import { UpdateRepositoryNameCommand, } from "./commands/UpdateRepositoryNameCommand";
80
- var CodeCommit = (function (_super) {
81
- __extends(CodeCommit, _super);
82
- function CodeCommit() {
83
- return _super !== null && _super.apply(this, arguments) || this;
84
- }
85
- CodeCommit.prototype.associateApprovalRuleTemplateWithRepository = function (args, optionsOrCb, cb) {
86
- var command = new AssociateApprovalRuleTemplateWithRepositoryCommand(args);
79
+ export class CodeCommit extends CodeCommitClient {
80
+ associateApprovalRuleTemplateWithRepository(args, optionsOrCb, cb) {
81
+ const command = new AssociateApprovalRuleTemplateWithRepositoryCommand(args);
87
82
  if (typeof optionsOrCb === "function") {
88
83
  this.send(command, optionsOrCb);
89
84
  }
90
85
  else if (typeof cb === "function") {
91
86
  if (typeof optionsOrCb !== "object")
92
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
88
  this.send(command, optionsOrCb || {}, cb);
94
89
  }
95
90
  else {
96
91
  return this.send(command, optionsOrCb);
97
92
  }
98
- };
99
- CodeCommit.prototype.batchAssociateApprovalRuleTemplateWithRepositories = function (args, optionsOrCb, cb) {
100
- var command = new BatchAssociateApprovalRuleTemplateWithRepositoriesCommand(args);
93
+ }
94
+ batchAssociateApprovalRuleTemplateWithRepositories(args, optionsOrCb, cb) {
95
+ const command = new BatchAssociateApprovalRuleTemplateWithRepositoriesCommand(args);
101
96
  if (typeof optionsOrCb === "function") {
102
97
  this.send(command, optionsOrCb);
103
98
  }
104
99
  else if (typeof cb === "function") {
105
100
  if (typeof optionsOrCb !== "object")
106
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
102
  this.send(command, optionsOrCb || {}, cb);
108
103
  }
109
104
  else {
110
105
  return this.send(command, optionsOrCb);
111
106
  }
112
- };
113
- CodeCommit.prototype.batchDescribeMergeConflicts = function (args, optionsOrCb, cb) {
114
- var command = new BatchDescribeMergeConflictsCommand(args);
107
+ }
108
+ batchDescribeMergeConflicts(args, optionsOrCb, cb) {
109
+ const command = new BatchDescribeMergeConflictsCommand(args);
115
110
  if (typeof optionsOrCb === "function") {
116
111
  this.send(command, optionsOrCb);
117
112
  }
118
113
  else if (typeof cb === "function") {
119
114
  if (typeof optionsOrCb !== "object")
120
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
116
  this.send(command, optionsOrCb || {}, cb);
122
117
  }
123
118
  else {
124
119
  return this.send(command, optionsOrCb);
125
120
  }
126
- };
127
- CodeCommit.prototype.batchDisassociateApprovalRuleTemplateFromRepositories = function (args, optionsOrCb, cb) {
128
- var command = new BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand(args);
121
+ }
122
+ batchDisassociateApprovalRuleTemplateFromRepositories(args, optionsOrCb, cb) {
123
+ const command = new BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand(args);
129
124
  if (typeof optionsOrCb === "function") {
130
125
  this.send(command, optionsOrCb);
131
126
  }
132
127
  else if (typeof cb === "function") {
133
128
  if (typeof optionsOrCb !== "object")
134
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
130
  this.send(command, optionsOrCb || {}, cb);
136
131
  }
137
132
  else {
138
133
  return this.send(command, optionsOrCb);
139
134
  }
140
- };
141
- CodeCommit.prototype.batchGetCommits = function (args, optionsOrCb, cb) {
142
- var command = new BatchGetCommitsCommand(args);
135
+ }
136
+ batchGetCommits(args, optionsOrCb, cb) {
137
+ const command = new BatchGetCommitsCommand(args);
143
138
  if (typeof optionsOrCb === "function") {
144
139
  this.send(command, optionsOrCb);
145
140
  }
146
141
  else if (typeof cb === "function") {
147
142
  if (typeof optionsOrCb !== "object")
148
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
144
  this.send(command, optionsOrCb || {}, cb);
150
145
  }
151
146
  else {
152
147
  return this.send(command, optionsOrCb);
153
148
  }
154
- };
155
- CodeCommit.prototype.batchGetRepositories = function (args, optionsOrCb, cb) {
156
- var command = new BatchGetRepositoriesCommand(args);
149
+ }
150
+ batchGetRepositories(args, optionsOrCb, cb) {
151
+ const command = new BatchGetRepositoriesCommand(args);
157
152
  if (typeof optionsOrCb === "function") {
158
153
  this.send(command, optionsOrCb);
159
154
  }
160
155
  else if (typeof cb === "function") {
161
156
  if (typeof optionsOrCb !== "object")
162
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
158
  this.send(command, optionsOrCb || {}, cb);
164
159
  }
165
160
  else {
166
161
  return this.send(command, optionsOrCb);
167
162
  }
168
- };
169
- CodeCommit.prototype.createApprovalRuleTemplate = function (args, optionsOrCb, cb) {
170
- var command = new CreateApprovalRuleTemplateCommand(args);
163
+ }
164
+ createApprovalRuleTemplate(args, optionsOrCb, cb) {
165
+ const command = new CreateApprovalRuleTemplateCommand(args);
171
166
  if (typeof optionsOrCb === "function") {
172
167
  this.send(command, optionsOrCb);
173
168
  }
174
169
  else if (typeof cb === "function") {
175
170
  if (typeof optionsOrCb !== "object")
176
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
172
  this.send(command, optionsOrCb || {}, cb);
178
173
  }
179
174
  else {
180
175
  return this.send(command, optionsOrCb);
181
176
  }
182
- };
183
- CodeCommit.prototype.createBranch = function (args, optionsOrCb, cb) {
184
- var command = new CreateBranchCommand(args);
177
+ }
178
+ createBranch(args, optionsOrCb, cb) {
179
+ const command = new CreateBranchCommand(args);
185
180
  if (typeof optionsOrCb === "function") {
186
181
  this.send(command, optionsOrCb);
187
182
  }
188
183
  else if (typeof cb === "function") {
189
184
  if (typeof optionsOrCb !== "object")
190
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
186
  this.send(command, optionsOrCb || {}, cb);
192
187
  }
193
188
  else {
194
189
  return this.send(command, optionsOrCb);
195
190
  }
196
- };
197
- CodeCommit.prototype.createCommit = function (args, optionsOrCb, cb) {
198
- var command = new CreateCommitCommand(args);
191
+ }
192
+ createCommit(args, optionsOrCb, cb) {
193
+ const command = new CreateCommitCommand(args);
199
194
  if (typeof optionsOrCb === "function") {
200
195
  this.send(command, optionsOrCb);
201
196
  }
202
197
  else if (typeof cb === "function") {
203
198
  if (typeof optionsOrCb !== "object")
204
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
200
  this.send(command, optionsOrCb || {}, cb);
206
201
  }
207
202
  else {
208
203
  return this.send(command, optionsOrCb);
209
204
  }
210
- };
211
- CodeCommit.prototype.createPullRequest = function (args, optionsOrCb, cb) {
212
- var command = new CreatePullRequestCommand(args);
205
+ }
206
+ createPullRequest(args, optionsOrCb, cb) {
207
+ const command = new CreatePullRequestCommand(args);
213
208
  if (typeof optionsOrCb === "function") {
214
209
  this.send(command, optionsOrCb);
215
210
  }
216
211
  else if (typeof cb === "function") {
217
212
  if (typeof optionsOrCb !== "object")
218
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
214
  this.send(command, optionsOrCb || {}, cb);
220
215
  }
221
216
  else {
222
217
  return this.send(command, optionsOrCb);
223
218
  }
224
- };
225
- CodeCommit.prototype.createPullRequestApprovalRule = function (args, optionsOrCb, cb) {
226
- var command = new CreatePullRequestApprovalRuleCommand(args);
219
+ }
220
+ createPullRequestApprovalRule(args, optionsOrCb, cb) {
221
+ const command = new CreatePullRequestApprovalRuleCommand(args);
227
222
  if (typeof optionsOrCb === "function") {
228
223
  this.send(command, optionsOrCb);
229
224
  }
230
225
  else if (typeof cb === "function") {
231
226
  if (typeof optionsOrCb !== "object")
232
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
228
  this.send(command, optionsOrCb || {}, cb);
234
229
  }
235
230
  else {
236
231
  return this.send(command, optionsOrCb);
237
232
  }
238
- };
239
- CodeCommit.prototype.createRepository = function (args, optionsOrCb, cb) {
240
- var command = new CreateRepositoryCommand(args);
233
+ }
234
+ createRepository(args, optionsOrCb, cb) {
235
+ const command = new CreateRepositoryCommand(args);
241
236
  if (typeof optionsOrCb === "function") {
242
237
  this.send(command, optionsOrCb);
243
238
  }
244
239
  else if (typeof cb === "function") {
245
240
  if (typeof optionsOrCb !== "object")
246
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
242
  this.send(command, optionsOrCb || {}, cb);
248
243
  }
249
244
  else {
250
245
  return this.send(command, optionsOrCb);
251
246
  }
252
- };
253
- CodeCommit.prototype.createUnreferencedMergeCommit = function (args, optionsOrCb, cb) {
254
- var command = new CreateUnreferencedMergeCommitCommand(args);
247
+ }
248
+ createUnreferencedMergeCommit(args, optionsOrCb, cb) {
249
+ const command = new CreateUnreferencedMergeCommitCommand(args);
255
250
  if (typeof optionsOrCb === "function") {
256
251
  this.send(command, optionsOrCb);
257
252
  }
258
253
  else if (typeof cb === "function") {
259
254
  if (typeof optionsOrCb !== "object")
260
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
255
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
256
  this.send(command, optionsOrCb || {}, cb);
262
257
  }
263
258
  else {
264
259
  return this.send(command, optionsOrCb);
265
260
  }
266
- };
267
- CodeCommit.prototype.deleteApprovalRuleTemplate = function (args, optionsOrCb, cb) {
268
- var command = new DeleteApprovalRuleTemplateCommand(args);
261
+ }
262
+ deleteApprovalRuleTemplate(args, optionsOrCb, cb) {
263
+ const command = new DeleteApprovalRuleTemplateCommand(args);
269
264
  if (typeof optionsOrCb === "function") {
270
265
  this.send(command, optionsOrCb);
271
266
  }
272
267
  else if (typeof cb === "function") {
273
268
  if (typeof optionsOrCb !== "object")
274
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
269
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
270
  this.send(command, optionsOrCb || {}, cb);
276
271
  }
277
272
  else {
278
273
  return this.send(command, optionsOrCb);
279
274
  }
280
- };
281
- CodeCommit.prototype.deleteBranch = function (args, optionsOrCb, cb) {
282
- var command = new DeleteBranchCommand(args);
275
+ }
276
+ deleteBranch(args, optionsOrCb, cb) {
277
+ const command = new DeleteBranchCommand(args);
283
278
  if (typeof optionsOrCb === "function") {
284
279
  this.send(command, optionsOrCb);
285
280
  }
286
281
  else if (typeof cb === "function") {
287
282
  if (typeof optionsOrCb !== "object")
288
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
283
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
284
  this.send(command, optionsOrCb || {}, cb);
290
285
  }
291
286
  else {
292
287
  return this.send(command, optionsOrCb);
293
288
  }
294
- };
295
- CodeCommit.prototype.deleteCommentContent = function (args, optionsOrCb, cb) {
296
- var command = new DeleteCommentContentCommand(args);
289
+ }
290
+ deleteCommentContent(args, optionsOrCb, cb) {
291
+ const command = new DeleteCommentContentCommand(args);
297
292
  if (typeof optionsOrCb === "function") {
298
293
  this.send(command, optionsOrCb);
299
294
  }
300
295
  else if (typeof cb === "function") {
301
296
  if (typeof optionsOrCb !== "object")
302
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
297
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
298
  this.send(command, optionsOrCb || {}, cb);
304
299
  }
305
300
  else {
306
301
  return this.send(command, optionsOrCb);
307
302
  }
308
- };
309
- CodeCommit.prototype.deleteFile = function (args, optionsOrCb, cb) {
310
- var command = new DeleteFileCommand(args);
303
+ }
304
+ deleteFile(args, optionsOrCb, cb) {
305
+ const command = new DeleteFileCommand(args);
311
306
  if (typeof optionsOrCb === "function") {
312
307
  this.send(command, optionsOrCb);
313
308
  }
314
309
  else if (typeof cb === "function") {
315
310
  if (typeof optionsOrCb !== "object")
316
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
311
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
312
  this.send(command, optionsOrCb || {}, cb);
318
313
  }
319
314
  else {
320
315
  return this.send(command, optionsOrCb);
321
316
  }
322
- };
323
- CodeCommit.prototype.deletePullRequestApprovalRule = function (args, optionsOrCb, cb) {
324
- var command = new DeletePullRequestApprovalRuleCommand(args);
317
+ }
318
+ deletePullRequestApprovalRule(args, optionsOrCb, cb) {
319
+ const command = new DeletePullRequestApprovalRuleCommand(args);
325
320
  if (typeof optionsOrCb === "function") {
326
321
  this.send(command, optionsOrCb);
327
322
  }
328
323
  else if (typeof cb === "function") {
329
324
  if (typeof optionsOrCb !== "object")
330
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
325
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
326
  this.send(command, optionsOrCb || {}, cb);
332
327
  }
333
328
  else {
334
329
  return this.send(command, optionsOrCb);
335
330
  }
336
- };
337
- CodeCommit.prototype.deleteRepository = function (args, optionsOrCb, cb) {
338
- var command = new DeleteRepositoryCommand(args);
331
+ }
332
+ deleteRepository(args, optionsOrCb, cb) {
333
+ const command = new DeleteRepositoryCommand(args);
339
334
  if (typeof optionsOrCb === "function") {
340
335
  this.send(command, optionsOrCb);
341
336
  }
342
337
  else if (typeof cb === "function") {
343
338
  if (typeof optionsOrCb !== "object")
344
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
339
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
340
  this.send(command, optionsOrCb || {}, cb);
346
341
  }
347
342
  else {
348
343
  return this.send(command, optionsOrCb);
349
344
  }
350
- };
351
- CodeCommit.prototype.describeMergeConflicts = function (args, optionsOrCb, cb) {
352
- var command = new DescribeMergeConflictsCommand(args);
345
+ }
346
+ describeMergeConflicts(args, optionsOrCb, cb) {
347
+ const command = new DescribeMergeConflictsCommand(args);
353
348
  if (typeof optionsOrCb === "function") {
354
349
  this.send(command, optionsOrCb);
355
350
  }
356
351
  else if (typeof cb === "function") {
357
352
  if (typeof optionsOrCb !== "object")
358
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
353
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
359
354
  this.send(command, optionsOrCb || {}, cb);
360
355
  }
361
356
  else {
362
357
  return this.send(command, optionsOrCb);
363
358
  }
364
- };
365
- CodeCommit.prototype.describePullRequestEvents = function (args, optionsOrCb, cb) {
366
- var command = new DescribePullRequestEventsCommand(args);
359
+ }
360
+ describePullRequestEvents(args, optionsOrCb, cb) {
361
+ const command = new DescribePullRequestEventsCommand(args);
367
362
  if (typeof optionsOrCb === "function") {
368
363
  this.send(command, optionsOrCb);
369
364
  }
370
365
  else if (typeof cb === "function") {
371
366
  if (typeof optionsOrCb !== "object")
372
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
367
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
373
368
  this.send(command, optionsOrCb || {}, cb);
374
369
  }
375
370
  else {
376
371
  return this.send(command, optionsOrCb);
377
372
  }
378
- };
379
- CodeCommit.prototype.disassociateApprovalRuleTemplateFromRepository = function (args, optionsOrCb, cb) {
380
- var command = new DisassociateApprovalRuleTemplateFromRepositoryCommand(args);
373
+ }
374
+ disassociateApprovalRuleTemplateFromRepository(args, optionsOrCb, cb) {
375
+ const command = new DisassociateApprovalRuleTemplateFromRepositoryCommand(args);
381
376
  if (typeof optionsOrCb === "function") {
382
377
  this.send(command, optionsOrCb);
383
378
  }
384
379
  else if (typeof cb === "function") {
385
380
  if (typeof optionsOrCb !== "object")
386
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
381
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
387
382
  this.send(command, optionsOrCb || {}, cb);
388
383
  }
389
384
  else {
390
385
  return this.send(command, optionsOrCb);
391
386
  }
392
- };
393
- CodeCommit.prototype.evaluatePullRequestApprovalRules = function (args, optionsOrCb, cb) {
394
- var command = new EvaluatePullRequestApprovalRulesCommand(args);
387
+ }
388
+ evaluatePullRequestApprovalRules(args, optionsOrCb, cb) {
389
+ const command = new EvaluatePullRequestApprovalRulesCommand(args);
395
390
  if (typeof optionsOrCb === "function") {
396
391
  this.send(command, optionsOrCb);
397
392
  }
398
393
  else if (typeof cb === "function") {
399
394
  if (typeof optionsOrCb !== "object")
400
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
395
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
401
396
  this.send(command, optionsOrCb || {}, cb);
402
397
  }
403
398
  else {
404
399
  return this.send(command, optionsOrCb);
405
400
  }
406
- };
407
- CodeCommit.prototype.getApprovalRuleTemplate = function (args, optionsOrCb, cb) {
408
- var command = new GetApprovalRuleTemplateCommand(args);
401
+ }
402
+ getApprovalRuleTemplate(args, optionsOrCb, cb) {
403
+ const command = new GetApprovalRuleTemplateCommand(args);
409
404
  if (typeof optionsOrCb === "function") {
410
405
  this.send(command, optionsOrCb);
411
406
  }
412
407
  else if (typeof cb === "function") {
413
408
  if (typeof optionsOrCb !== "object")
414
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
409
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
415
410
  this.send(command, optionsOrCb || {}, cb);
416
411
  }
417
412
  else {
418
413
  return this.send(command, optionsOrCb);
419
414
  }
420
- };
421
- CodeCommit.prototype.getBlob = function (args, optionsOrCb, cb) {
422
- var command = new GetBlobCommand(args);
415
+ }
416
+ getBlob(args, optionsOrCb, cb) {
417
+ const command = new GetBlobCommand(args);
423
418
  if (typeof optionsOrCb === "function") {
424
419
  this.send(command, optionsOrCb);
425
420
  }
426
421
  else if (typeof cb === "function") {
427
422
  if (typeof optionsOrCb !== "object")
428
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
423
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
429
424
  this.send(command, optionsOrCb || {}, cb);
430
425
  }
431
426
  else {
432
427
  return this.send(command, optionsOrCb);
433
428
  }
434
- };
435
- CodeCommit.prototype.getBranch = function (args, optionsOrCb, cb) {
436
- var command = new GetBranchCommand(args);
429
+ }
430
+ getBranch(args, optionsOrCb, cb) {
431
+ const command = new GetBranchCommand(args);
437
432
  if (typeof optionsOrCb === "function") {
438
433
  this.send(command, optionsOrCb);
439
434
  }
440
435
  else if (typeof cb === "function") {
441
436
  if (typeof optionsOrCb !== "object")
442
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
437
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
443
438
  this.send(command, optionsOrCb || {}, cb);
444
439
  }
445
440
  else {
446
441
  return this.send(command, optionsOrCb);
447
442
  }
448
- };
449
- CodeCommit.prototype.getComment = function (args, optionsOrCb, cb) {
450
- var command = new GetCommentCommand(args);
443
+ }
444
+ getComment(args, optionsOrCb, cb) {
445
+ const command = new GetCommentCommand(args);
451
446
  if (typeof optionsOrCb === "function") {
452
447
  this.send(command, optionsOrCb);
453
448
  }
454
449
  else if (typeof cb === "function") {
455
450
  if (typeof optionsOrCb !== "object")
456
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
451
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
457
452
  this.send(command, optionsOrCb || {}, cb);
458
453
  }
459
454
  else {
460
455
  return this.send(command, optionsOrCb);
461
456
  }
462
- };
463
- CodeCommit.prototype.getCommentReactions = function (args, optionsOrCb, cb) {
464
- var command = new GetCommentReactionsCommand(args);
457
+ }
458
+ getCommentReactions(args, optionsOrCb, cb) {
459
+ const command = new GetCommentReactionsCommand(args);
465
460
  if (typeof optionsOrCb === "function") {
466
461
  this.send(command, optionsOrCb);
467
462
  }
468
463
  else if (typeof cb === "function") {
469
464
  if (typeof optionsOrCb !== "object")
470
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
465
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
471
466
  this.send(command, optionsOrCb || {}, cb);
472
467
  }
473
468
  else {
474
469
  return this.send(command, optionsOrCb);
475
470
  }
476
- };
477
- CodeCommit.prototype.getCommentsForComparedCommit = function (args, optionsOrCb, cb) {
478
- var command = new GetCommentsForComparedCommitCommand(args);
471
+ }
472
+ getCommentsForComparedCommit(args, optionsOrCb, cb) {
473
+ const command = new GetCommentsForComparedCommitCommand(args);
479
474
  if (typeof optionsOrCb === "function") {
480
475
  this.send(command, optionsOrCb);
481
476
  }
482
477
  else if (typeof cb === "function") {
483
478
  if (typeof optionsOrCb !== "object")
484
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
479
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
485
480
  this.send(command, optionsOrCb || {}, cb);
486
481
  }
487
482
  else {
488
483
  return this.send(command, optionsOrCb);
489
484
  }
490
- };
491
- CodeCommit.prototype.getCommentsForPullRequest = function (args, optionsOrCb, cb) {
492
- var command = new GetCommentsForPullRequestCommand(args);
485
+ }
486
+ getCommentsForPullRequest(args, optionsOrCb, cb) {
487
+ const command = new GetCommentsForPullRequestCommand(args);
493
488
  if (typeof optionsOrCb === "function") {
494
489
  this.send(command, optionsOrCb);
495
490
  }
496
491
  else if (typeof cb === "function") {
497
492
  if (typeof optionsOrCb !== "object")
498
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
493
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
499
494
  this.send(command, optionsOrCb || {}, cb);
500
495
  }
501
496
  else {
502
497
  return this.send(command, optionsOrCb);
503
498
  }
504
- };
505
- CodeCommit.prototype.getCommit = function (args, optionsOrCb, cb) {
506
- var command = new GetCommitCommand(args);
499
+ }
500
+ getCommit(args, optionsOrCb, cb) {
501
+ const command = new GetCommitCommand(args);
507
502
  if (typeof optionsOrCb === "function") {
508
503
  this.send(command, optionsOrCb);
509
504
  }
510
505
  else if (typeof cb === "function") {
511
506
  if (typeof optionsOrCb !== "object")
512
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
507
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
513
508
  this.send(command, optionsOrCb || {}, cb);
514
509
  }
515
510
  else {
516
511
  return this.send(command, optionsOrCb);
517
512
  }
518
- };
519
- CodeCommit.prototype.getDifferences = function (args, optionsOrCb, cb) {
520
- var command = new GetDifferencesCommand(args);
513
+ }
514
+ getDifferences(args, optionsOrCb, cb) {
515
+ const command = new GetDifferencesCommand(args);
521
516
  if (typeof optionsOrCb === "function") {
522
517
  this.send(command, optionsOrCb);
523
518
  }
524
519
  else if (typeof cb === "function") {
525
520
  if (typeof optionsOrCb !== "object")
526
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
521
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
527
522
  this.send(command, optionsOrCb || {}, cb);
528
523
  }
529
524
  else {
530
525
  return this.send(command, optionsOrCb);
531
526
  }
532
- };
533
- CodeCommit.prototype.getFile = function (args, optionsOrCb, cb) {
534
- var command = new GetFileCommand(args);
527
+ }
528
+ getFile(args, optionsOrCb, cb) {
529
+ const command = new GetFileCommand(args);
535
530
  if (typeof optionsOrCb === "function") {
536
531
  this.send(command, optionsOrCb);
537
532
  }
538
533
  else if (typeof cb === "function") {
539
534
  if (typeof optionsOrCb !== "object")
540
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
535
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
541
536
  this.send(command, optionsOrCb || {}, cb);
542
537
  }
543
538
  else {
544
539
  return this.send(command, optionsOrCb);
545
540
  }
546
- };
547
- CodeCommit.prototype.getFolder = function (args, optionsOrCb, cb) {
548
- var command = new GetFolderCommand(args);
541
+ }
542
+ getFolder(args, optionsOrCb, cb) {
543
+ const command = new GetFolderCommand(args);
549
544
  if (typeof optionsOrCb === "function") {
550
545
  this.send(command, optionsOrCb);
551
546
  }
552
547
  else if (typeof cb === "function") {
553
548
  if (typeof optionsOrCb !== "object")
554
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
549
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
555
550
  this.send(command, optionsOrCb || {}, cb);
556
551
  }
557
552
  else {
558
553
  return this.send(command, optionsOrCb);
559
554
  }
560
- };
561
- CodeCommit.prototype.getMergeCommit = function (args, optionsOrCb, cb) {
562
- var command = new GetMergeCommitCommand(args);
555
+ }
556
+ getMergeCommit(args, optionsOrCb, cb) {
557
+ const command = new GetMergeCommitCommand(args);
563
558
  if (typeof optionsOrCb === "function") {
564
559
  this.send(command, optionsOrCb);
565
560
  }
566
561
  else if (typeof cb === "function") {
567
562
  if (typeof optionsOrCb !== "object")
568
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
563
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
569
564
  this.send(command, optionsOrCb || {}, cb);
570
565
  }
571
566
  else {
572
567
  return this.send(command, optionsOrCb);
573
568
  }
574
- };
575
- CodeCommit.prototype.getMergeConflicts = function (args, optionsOrCb, cb) {
576
- var command = new GetMergeConflictsCommand(args);
569
+ }
570
+ getMergeConflicts(args, optionsOrCb, cb) {
571
+ const command = new GetMergeConflictsCommand(args);
577
572
  if (typeof optionsOrCb === "function") {
578
573
  this.send(command, optionsOrCb);
579
574
  }
580
575
  else if (typeof cb === "function") {
581
576
  if (typeof optionsOrCb !== "object")
582
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
577
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
583
578
  this.send(command, optionsOrCb || {}, cb);
584
579
  }
585
580
  else {
586
581
  return this.send(command, optionsOrCb);
587
582
  }
588
- };
589
- CodeCommit.prototype.getMergeOptions = function (args, optionsOrCb, cb) {
590
- var command = new GetMergeOptionsCommand(args);
583
+ }
584
+ getMergeOptions(args, optionsOrCb, cb) {
585
+ const command = new GetMergeOptionsCommand(args);
591
586
  if (typeof optionsOrCb === "function") {
592
587
  this.send(command, optionsOrCb);
593
588
  }
594
589
  else if (typeof cb === "function") {
595
590
  if (typeof optionsOrCb !== "object")
596
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
591
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
597
592
  this.send(command, optionsOrCb || {}, cb);
598
593
  }
599
594
  else {
600
595
  return this.send(command, optionsOrCb);
601
596
  }
602
- };
603
- CodeCommit.prototype.getPullRequest = function (args, optionsOrCb, cb) {
604
- var command = new GetPullRequestCommand(args);
597
+ }
598
+ getPullRequest(args, optionsOrCb, cb) {
599
+ const command = new GetPullRequestCommand(args);
605
600
  if (typeof optionsOrCb === "function") {
606
601
  this.send(command, optionsOrCb);
607
602
  }
608
603
  else if (typeof cb === "function") {
609
604
  if (typeof optionsOrCb !== "object")
610
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
605
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
611
606
  this.send(command, optionsOrCb || {}, cb);
612
607
  }
613
608
  else {
614
609
  return this.send(command, optionsOrCb);
615
610
  }
616
- };
617
- CodeCommit.prototype.getPullRequestApprovalStates = function (args, optionsOrCb, cb) {
618
- var command = new GetPullRequestApprovalStatesCommand(args);
611
+ }
612
+ getPullRequestApprovalStates(args, optionsOrCb, cb) {
613
+ const command = new GetPullRequestApprovalStatesCommand(args);
619
614
  if (typeof optionsOrCb === "function") {
620
615
  this.send(command, optionsOrCb);
621
616
  }
622
617
  else if (typeof cb === "function") {
623
618
  if (typeof optionsOrCb !== "object")
624
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
619
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
625
620
  this.send(command, optionsOrCb || {}, cb);
626
621
  }
627
622
  else {
628
623
  return this.send(command, optionsOrCb);
629
624
  }
630
- };
631
- CodeCommit.prototype.getPullRequestOverrideState = function (args, optionsOrCb, cb) {
632
- var command = new GetPullRequestOverrideStateCommand(args);
625
+ }
626
+ getPullRequestOverrideState(args, optionsOrCb, cb) {
627
+ const command = new GetPullRequestOverrideStateCommand(args);
633
628
  if (typeof optionsOrCb === "function") {
634
629
  this.send(command, optionsOrCb);
635
630
  }
636
631
  else if (typeof cb === "function") {
637
632
  if (typeof optionsOrCb !== "object")
638
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
633
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
639
634
  this.send(command, optionsOrCb || {}, cb);
640
635
  }
641
636
  else {
642
637
  return this.send(command, optionsOrCb);
643
638
  }
644
- };
645
- CodeCommit.prototype.getRepository = function (args, optionsOrCb, cb) {
646
- var command = new GetRepositoryCommand(args);
639
+ }
640
+ getRepository(args, optionsOrCb, cb) {
641
+ const command = new GetRepositoryCommand(args);
647
642
  if (typeof optionsOrCb === "function") {
648
643
  this.send(command, optionsOrCb);
649
644
  }
650
645
  else if (typeof cb === "function") {
651
646
  if (typeof optionsOrCb !== "object")
652
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
647
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
653
648
  this.send(command, optionsOrCb || {}, cb);
654
649
  }
655
650
  else {
656
651
  return this.send(command, optionsOrCb);
657
652
  }
658
- };
659
- CodeCommit.prototype.getRepositoryTriggers = function (args, optionsOrCb, cb) {
660
- var command = new GetRepositoryTriggersCommand(args);
653
+ }
654
+ getRepositoryTriggers(args, optionsOrCb, cb) {
655
+ const command = new GetRepositoryTriggersCommand(args);
661
656
  if (typeof optionsOrCb === "function") {
662
657
  this.send(command, optionsOrCb);
663
658
  }
664
659
  else if (typeof cb === "function") {
665
660
  if (typeof optionsOrCb !== "object")
666
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
661
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
667
662
  this.send(command, optionsOrCb || {}, cb);
668
663
  }
669
664
  else {
670
665
  return this.send(command, optionsOrCb);
671
666
  }
672
- };
673
- CodeCommit.prototype.listApprovalRuleTemplates = function (args, optionsOrCb, cb) {
674
- var command = new ListApprovalRuleTemplatesCommand(args);
667
+ }
668
+ listApprovalRuleTemplates(args, optionsOrCb, cb) {
669
+ const command = new ListApprovalRuleTemplatesCommand(args);
675
670
  if (typeof optionsOrCb === "function") {
676
671
  this.send(command, optionsOrCb);
677
672
  }
678
673
  else if (typeof cb === "function") {
679
674
  if (typeof optionsOrCb !== "object")
680
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
675
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
681
676
  this.send(command, optionsOrCb || {}, cb);
682
677
  }
683
678
  else {
684
679
  return this.send(command, optionsOrCb);
685
680
  }
686
- };
687
- CodeCommit.prototype.listAssociatedApprovalRuleTemplatesForRepository = function (args, optionsOrCb, cb) {
688
- var command = new ListAssociatedApprovalRuleTemplatesForRepositoryCommand(args);
681
+ }
682
+ listAssociatedApprovalRuleTemplatesForRepository(args, optionsOrCb, cb) {
683
+ const command = new ListAssociatedApprovalRuleTemplatesForRepositoryCommand(args);
689
684
  if (typeof optionsOrCb === "function") {
690
685
  this.send(command, optionsOrCb);
691
686
  }
692
687
  else if (typeof cb === "function") {
693
688
  if (typeof optionsOrCb !== "object")
694
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
689
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
695
690
  this.send(command, optionsOrCb || {}, cb);
696
691
  }
697
692
  else {
698
693
  return this.send(command, optionsOrCb);
699
694
  }
700
- };
701
- CodeCommit.prototype.listBranches = function (args, optionsOrCb, cb) {
702
- var command = new ListBranchesCommand(args);
695
+ }
696
+ listBranches(args, optionsOrCb, cb) {
697
+ const command = new ListBranchesCommand(args);
703
698
  if (typeof optionsOrCb === "function") {
704
699
  this.send(command, optionsOrCb);
705
700
  }
706
701
  else if (typeof cb === "function") {
707
702
  if (typeof optionsOrCb !== "object")
708
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
703
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
709
704
  this.send(command, optionsOrCb || {}, cb);
710
705
  }
711
706
  else {
712
707
  return this.send(command, optionsOrCb);
713
708
  }
714
- };
715
- CodeCommit.prototype.listPullRequests = function (args, optionsOrCb, cb) {
716
- var command = new ListPullRequestsCommand(args);
709
+ }
710
+ listPullRequests(args, optionsOrCb, cb) {
711
+ const command = new ListPullRequestsCommand(args);
717
712
  if (typeof optionsOrCb === "function") {
718
713
  this.send(command, optionsOrCb);
719
714
  }
720
715
  else if (typeof cb === "function") {
721
716
  if (typeof optionsOrCb !== "object")
722
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
717
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
723
718
  this.send(command, optionsOrCb || {}, cb);
724
719
  }
725
720
  else {
726
721
  return this.send(command, optionsOrCb);
727
722
  }
728
- };
729
- CodeCommit.prototype.listRepositories = function (args, optionsOrCb, cb) {
730
- var command = new ListRepositoriesCommand(args);
723
+ }
724
+ listRepositories(args, optionsOrCb, cb) {
725
+ const command = new ListRepositoriesCommand(args);
731
726
  if (typeof optionsOrCb === "function") {
732
727
  this.send(command, optionsOrCb);
733
728
  }
734
729
  else if (typeof cb === "function") {
735
730
  if (typeof optionsOrCb !== "object")
736
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
731
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
737
732
  this.send(command, optionsOrCb || {}, cb);
738
733
  }
739
734
  else {
740
735
  return this.send(command, optionsOrCb);
741
736
  }
742
- };
743
- CodeCommit.prototype.listRepositoriesForApprovalRuleTemplate = function (args, optionsOrCb, cb) {
744
- var command = new ListRepositoriesForApprovalRuleTemplateCommand(args);
737
+ }
738
+ listRepositoriesForApprovalRuleTemplate(args, optionsOrCb, cb) {
739
+ const command = new ListRepositoriesForApprovalRuleTemplateCommand(args);
745
740
  if (typeof optionsOrCb === "function") {
746
741
  this.send(command, optionsOrCb);
747
742
  }
748
743
  else if (typeof cb === "function") {
749
744
  if (typeof optionsOrCb !== "object")
750
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
745
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
751
746
  this.send(command, optionsOrCb || {}, cb);
752
747
  }
753
748
  else {
754
749
  return this.send(command, optionsOrCb);
755
750
  }
756
- };
757
- CodeCommit.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
758
- var command = new ListTagsForResourceCommand(args);
751
+ }
752
+ listTagsForResource(args, optionsOrCb, cb) {
753
+ const command = new ListTagsForResourceCommand(args);
759
754
  if (typeof optionsOrCb === "function") {
760
755
  this.send(command, optionsOrCb);
761
756
  }
762
757
  else if (typeof cb === "function") {
763
758
  if (typeof optionsOrCb !== "object")
764
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
759
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
765
760
  this.send(command, optionsOrCb || {}, cb);
766
761
  }
767
762
  else {
768
763
  return this.send(command, optionsOrCb);
769
764
  }
770
- };
771
- CodeCommit.prototype.mergeBranchesByFastForward = function (args, optionsOrCb, cb) {
772
- var command = new MergeBranchesByFastForwardCommand(args);
765
+ }
766
+ mergeBranchesByFastForward(args, optionsOrCb, cb) {
767
+ const command = new MergeBranchesByFastForwardCommand(args);
773
768
  if (typeof optionsOrCb === "function") {
774
769
  this.send(command, optionsOrCb);
775
770
  }
776
771
  else if (typeof cb === "function") {
777
772
  if (typeof optionsOrCb !== "object")
778
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
773
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
779
774
  this.send(command, optionsOrCb || {}, cb);
780
775
  }
781
776
  else {
782
777
  return this.send(command, optionsOrCb);
783
778
  }
784
- };
785
- CodeCommit.prototype.mergeBranchesBySquash = function (args, optionsOrCb, cb) {
786
- var command = new MergeBranchesBySquashCommand(args);
779
+ }
780
+ mergeBranchesBySquash(args, optionsOrCb, cb) {
781
+ const command = new MergeBranchesBySquashCommand(args);
787
782
  if (typeof optionsOrCb === "function") {
788
783
  this.send(command, optionsOrCb);
789
784
  }
790
785
  else if (typeof cb === "function") {
791
786
  if (typeof optionsOrCb !== "object")
792
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
787
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
793
788
  this.send(command, optionsOrCb || {}, cb);
794
789
  }
795
790
  else {
796
791
  return this.send(command, optionsOrCb);
797
792
  }
798
- };
799
- CodeCommit.prototype.mergeBranchesByThreeWay = function (args, optionsOrCb, cb) {
800
- var command = new MergeBranchesByThreeWayCommand(args);
793
+ }
794
+ mergeBranchesByThreeWay(args, optionsOrCb, cb) {
795
+ const command = new MergeBranchesByThreeWayCommand(args);
801
796
  if (typeof optionsOrCb === "function") {
802
797
  this.send(command, optionsOrCb);
803
798
  }
804
799
  else if (typeof cb === "function") {
805
800
  if (typeof optionsOrCb !== "object")
806
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
801
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
807
802
  this.send(command, optionsOrCb || {}, cb);
808
803
  }
809
804
  else {
810
805
  return this.send(command, optionsOrCb);
811
806
  }
812
- };
813
- CodeCommit.prototype.mergePullRequestByFastForward = function (args, optionsOrCb, cb) {
814
- var command = new MergePullRequestByFastForwardCommand(args);
807
+ }
808
+ mergePullRequestByFastForward(args, optionsOrCb, cb) {
809
+ const command = new MergePullRequestByFastForwardCommand(args);
815
810
  if (typeof optionsOrCb === "function") {
816
811
  this.send(command, optionsOrCb);
817
812
  }
818
813
  else if (typeof cb === "function") {
819
814
  if (typeof optionsOrCb !== "object")
820
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
815
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
821
816
  this.send(command, optionsOrCb || {}, cb);
822
817
  }
823
818
  else {
824
819
  return this.send(command, optionsOrCb);
825
820
  }
826
- };
827
- CodeCommit.prototype.mergePullRequestBySquash = function (args, optionsOrCb, cb) {
828
- var command = new MergePullRequestBySquashCommand(args);
821
+ }
822
+ mergePullRequestBySquash(args, optionsOrCb, cb) {
823
+ const command = new MergePullRequestBySquashCommand(args);
829
824
  if (typeof optionsOrCb === "function") {
830
825
  this.send(command, optionsOrCb);
831
826
  }
832
827
  else if (typeof cb === "function") {
833
828
  if (typeof optionsOrCb !== "object")
834
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
829
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
835
830
  this.send(command, optionsOrCb || {}, cb);
836
831
  }
837
832
  else {
838
833
  return this.send(command, optionsOrCb);
839
834
  }
840
- };
841
- CodeCommit.prototype.mergePullRequestByThreeWay = function (args, optionsOrCb, cb) {
842
- var command = new MergePullRequestByThreeWayCommand(args);
835
+ }
836
+ mergePullRequestByThreeWay(args, optionsOrCb, cb) {
837
+ const command = new MergePullRequestByThreeWayCommand(args);
843
838
  if (typeof optionsOrCb === "function") {
844
839
  this.send(command, optionsOrCb);
845
840
  }
846
841
  else if (typeof cb === "function") {
847
842
  if (typeof optionsOrCb !== "object")
848
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
843
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
849
844
  this.send(command, optionsOrCb || {}, cb);
850
845
  }
851
846
  else {
852
847
  return this.send(command, optionsOrCb);
853
848
  }
854
- };
855
- CodeCommit.prototype.overridePullRequestApprovalRules = function (args, optionsOrCb, cb) {
856
- var command = new OverridePullRequestApprovalRulesCommand(args);
849
+ }
850
+ overridePullRequestApprovalRules(args, optionsOrCb, cb) {
851
+ const command = new OverridePullRequestApprovalRulesCommand(args);
857
852
  if (typeof optionsOrCb === "function") {
858
853
  this.send(command, optionsOrCb);
859
854
  }
860
855
  else if (typeof cb === "function") {
861
856
  if (typeof optionsOrCb !== "object")
862
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
857
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
863
858
  this.send(command, optionsOrCb || {}, cb);
864
859
  }
865
860
  else {
866
861
  return this.send(command, optionsOrCb);
867
862
  }
868
- };
869
- CodeCommit.prototype.postCommentForComparedCommit = function (args, optionsOrCb, cb) {
870
- var command = new PostCommentForComparedCommitCommand(args);
863
+ }
864
+ postCommentForComparedCommit(args, optionsOrCb, cb) {
865
+ const command = new PostCommentForComparedCommitCommand(args);
871
866
  if (typeof optionsOrCb === "function") {
872
867
  this.send(command, optionsOrCb);
873
868
  }
874
869
  else if (typeof cb === "function") {
875
870
  if (typeof optionsOrCb !== "object")
876
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
871
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
877
872
  this.send(command, optionsOrCb || {}, cb);
878
873
  }
879
874
  else {
880
875
  return this.send(command, optionsOrCb);
881
876
  }
882
- };
883
- CodeCommit.prototype.postCommentForPullRequest = function (args, optionsOrCb, cb) {
884
- var command = new PostCommentForPullRequestCommand(args);
877
+ }
878
+ postCommentForPullRequest(args, optionsOrCb, cb) {
879
+ const command = new PostCommentForPullRequestCommand(args);
885
880
  if (typeof optionsOrCb === "function") {
886
881
  this.send(command, optionsOrCb);
887
882
  }
888
883
  else if (typeof cb === "function") {
889
884
  if (typeof optionsOrCb !== "object")
890
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
885
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
891
886
  this.send(command, optionsOrCb || {}, cb);
892
887
  }
893
888
  else {
894
889
  return this.send(command, optionsOrCb);
895
890
  }
896
- };
897
- CodeCommit.prototype.postCommentReply = function (args, optionsOrCb, cb) {
898
- var command = new PostCommentReplyCommand(args);
891
+ }
892
+ postCommentReply(args, optionsOrCb, cb) {
893
+ const command = new PostCommentReplyCommand(args);
899
894
  if (typeof optionsOrCb === "function") {
900
895
  this.send(command, optionsOrCb);
901
896
  }
902
897
  else if (typeof cb === "function") {
903
898
  if (typeof optionsOrCb !== "object")
904
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
899
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
905
900
  this.send(command, optionsOrCb || {}, cb);
906
901
  }
907
902
  else {
908
903
  return this.send(command, optionsOrCb);
909
904
  }
910
- };
911
- CodeCommit.prototype.putCommentReaction = function (args, optionsOrCb, cb) {
912
- var command = new PutCommentReactionCommand(args);
905
+ }
906
+ putCommentReaction(args, optionsOrCb, cb) {
907
+ const command = new PutCommentReactionCommand(args);
913
908
  if (typeof optionsOrCb === "function") {
914
909
  this.send(command, optionsOrCb);
915
910
  }
916
911
  else if (typeof cb === "function") {
917
912
  if (typeof optionsOrCb !== "object")
918
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
913
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
919
914
  this.send(command, optionsOrCb || {}, cb);
920
915
  }
921
916
  else {
922
917
  return this.send(command, optionsOrCb);
923
918
  }
924
- };
925
- CodeCommit.prototype.putFile = function (args, optionsOrCb, cb) {
926
- var command = new PutFileCommand(args);
919
+ }
920
+ putFile(args, optionsOrCb, cb) {
921
+ const command = new PutFileCommand(args);
927
922
  if (typeof optionsOrCb === "function") {
928
923
  this.send(command, optionsOrCb);
929
924
  }
930
925
  else if (typeof cb === "function") {
931
926
  if (typeof optionsOrCb !== "object")
932
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
927
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
933
928
  this.send(command, optionsOrCb || {}, cb);
934
929
  }
935
930
  else {
936
931
  return this.send(command, optionsOrCb);
937
932
  }
938
- };
939
- CodeCommit.prototype.putRepositoryTriggers = function (args, optionsOrCb, cb) {
940
- var command = new PutRepositoryTriggersCommand(args);
933
+ }
934
+ putRepositoryTriggers(args, optionsOrCb, cb) {
935
+ const command = new PutRepositoryTriggersCommand(args);
941
936
  if (typeof optionsOrCb === "function") {
942
937
  this.send(command, optionsOrCb);
943
938
  }
944
939
  else if (typeof cb === "function") {
945
940
  if (typeof optionsOrCb !== "object")
946
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
941
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
947
942
  this.send(command, optionsOrCb || {}, cb);
948
943
  }
949
944
  else {
950
945
  return this.send(command, optionsOrCb);
951
946
  }
952
- };
953
- CodeCommit.prototype.tagResource = function (args, optionsOrCb, cb) {
954
- var command = new TagResourceCommand(args);
947
+ }
948
+ tagResource(args, optionsOrCb, cb) {
949
+ const command = new TagResourceCommand(args);
955
950
  if (typeof optionsOrCb === "function") {
956
951
  this.send(command, optionsOrCb);
957
952
  }
958
953
  else if (typeof cb === "function") {
959
954
  if (typeof optionsOrCb !== "object")
960
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
955
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
961
956
  this.send(command, optionsOrCb || {}, cb);
962
957
  }
963
958
  else {
964
959
  return this.send(command, optionsOrCb);
965
960
  }
966
- };
967
- CodeCommit.prototype.testRepositoryTriggers = function (args, optionsOrCb, cb) {
968
- var command = new TestRepositoryTriggersCommand(args);
961
+ }
962
+ testRepositoryTriggers(args, optionsOrCb, cb) {
963
+ const command = new TestRepositoryTriggersCommand(args);
969
964
  if (typeof optionsOrCb === "function") {
970
965
  this.send(command, optionsOrCb);
971
966
  }
972
967
  else if (typeof cb === "function") {
973
968
  if (typeof optionsOrCb !== "object")
974
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
969
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
975
970
  this.send(command, optionsOrCb || {}, cb);
976
971
  }
977
972
  else {
978
973
  return this.send(command, optionsOrCb);
979
974
  }
980
- };
981
- CodeCommit.prototype.untagResource = function (args, optionsOrCb, cb) {
982
- var command = new UntagResourceCommand(args);
975
+ }
976
+ untagResource(args, optionsOrCb, cb) {
977
+ const command = new UntagResourceCommand(args);
983
978
  if (typeof optionsOrCb === "function") {
984
979
  this.send(command, optionsOrCb);
985
980
  }
986
981
  else if (typeof cb === "function") {
987
982
  if (typeof optionsOrCb !== "object")
988
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
983
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
989
984
  this.send(command, optionsOrCb || {}, cb);
990
985
  }
991
986
  else {
992
987
  return this.send(command, optionsOrCb);
993
988
  }
994
- };
995
- CodeCommit.prototype.updateApprovalRuleTemplateContent = function (args, optionsOrCb, cb) {
996
- var command = new UpdateApprovalRuleTemplateContentCommand(args);
989
+ }
990
+ updateApprovalRuleTemplateContent(args, optionsOrCb, cb) {
991
+ const command = new UpdateApprovalRuleTemplateContentCommand(args);
997
992
  if (typeof optionsOrCb === "function") {
998
993
  this.send(command, optionsOrCb);
999
994
  }
1000
995
  else if (typeof cb === "function") {
1001
996
  if (typeof optionsOrCb !== "object")
1002
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
997
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1003
998
  this.send(command, optionsOrCb || {}, cb);
1004
999
  }
1005
1000
  else {
1006
1001
  return this.send(command, optionsOrCb);
1007
1002
  }
1008
- };
1009
- CodeCommit.prototype.updateApprovalRuleTemplateDescription = function (args, optionsOrCb, cb) {
1010
- var command = new UpdateApprovalRuleTemplateDescriptionCommand(args);
1003
+ }
1004
+ updateApprovalRuleTemplateDescription(args, optionsOrCb, cb) {
1005
+ const command = new UpdateApprovalRuleTemplateDescriptionCommand(args);
1011
1006
  if (typeof optionsOrCb === "function") {
1012
1007
  this.send(command, optionsOrCb);
1013
1008
  }
1014
1009
  else if (typeof cb === "function") {
1015
1010
  if (typeof optionsOrCb !== "object")
1016
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1011
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1017
1012
  this.send(command, optionsOrCb || {}, cb);
1018
1013
  }
1019
1014
  else {
1020
1015
  return this.send(command, optionsOrCb);
1021
1016
  }
1022
- };
1023
- CodeCommit.prototype.updateApprovalRuleTemplateName = function (args, optionsOrCb, cb) {
1024
- var command = new UpdateApprovalRuleTemplateNameCommand(args);
1017
+ }
1018
+ updateApprovalRuleTemplateName(args, optionsOrCb, cb) {
1019
+ const command = new UpdateApprovalRuleTemplateNameCommand(args);
1025
1020
  if (typeof optionsOrCb === "function") {
1026
1021
  this.send(command, optionsOrCb);
1027
1022
  }
1028
1023
  else if (typeof cb === "function") {
1029
1024
  if (typeof optionsOrCb !== "object")
1030
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1025
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1031
1026
  this.send(command, optionsOrCb || {}, cb);
1032
1027
  }
1033
1028
  else {
1034
1029
  return this.send(command, optionsOrCb);
1035
1030
  }
1036
- };
1037
- CodeCommit.prototype.updateComment = function (args, optionsOrCb, cb) {
1038
- var command = new UpdateCommentCommand(args);
1031
+ }
1032
+ updateComment(args, optionsOrCb, cb) {
1033
+ const command = new UpdateCommentCommand(args);
1039
1034
  if (typeof optionsOrCb === "function") {
1040
1035
  this.send(command, optionsOrCb);
1041
1036
  }
1042
1037
  else if (typeof cb === "function") {
1043
1038
  if (typeof optionsOrCb !== "object")
1044
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1039
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1045
1040
  this.send(command, optionsOrCb || {}, cb);
1046
1041
  }
1047
1042
  else {
1048
1043
  return this.send(command, optionsOrCb);
1049
1044
  }
1050
- };
1051
- CodeCommit.prototype.updateDefaultBranch = function (args, optionsOrCb, cb) {
1052
- var command = new UpdateDefaultBranchCommand(args);
1045
+ }
1046
+ updateDefaultBranch(args, optionsOrCb, cb) {
1047
+ const command = new UpdateDefaultBranchCommand(args);
1053
1048
  if (typeof optionsOrCb === "function") {
1054
1049
  this.send(command, optionsOrCb);
1055
1050
  }
1056
1051
  else if (typeof cb === "function") {
1057
1052
  if (typeof optionsOrCb !== "object")
1058
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1053
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1059
1054
  this.send(command, optionsOrCb || {}, cb);
1060
1055
  }
1061
1056
  else {
1062
1057
  return this.send(command, optionsOrCb);
1063
1058
  }
1064
- };
1065
- CodeCommit.prototype.updatePullRequestApprovalRuleContent = function (args, optionsOrCb, cb) {
1066
- var command = new UpdatePullRequestApprovalRuleContentCommand(args);
1059
+ }
1060
+ updatePullRequestApprovalRuleContent(args, optionsOrCb, cb) {
1061
+ const command = new UpdatePullRequestApprovalRuleContentCommand(args);
1067
1062
  if (typeof optionsOrCb === "function") {
1068
1063
  this.send(command, optionsOrCb);
1069
1064
  }
1070
1065
  else if (typeof cb === "function") {
1071
1066
  if (typeof optionsOrCb !== "object")
1072
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1067
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1073
1068
  this.send(command, optionsOrCb || {}, cb);
1074
1069
  }
1075
1070
  else {
1076
1071
  return this.send(command, optionsOrCb);
1077
1072
  }
1078
- };
1079
- CodeCommit.prototype.updatePullRequestApprovalState = function (args, optionsOrCb, cb) {
1080
- var command = new UpdatePullRequestApprovalStateCommand(args);
1073
+ }
1074
+ updatePullRequestApprovalState(args, optionsOrCb, cb) {
1075
+ const command = new UpdatePullRequestApprovalStateCommand(args);
1081
1076
  if (typeof optionsOrCb === "function") {
1082
1077
  this.send(command, optionsOrCb);
1083
1078
  }
1084
1079
  else if (typeof cb === "function") {
1085
1080
  if (typeof optionsOrCb !== "object")
1086
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1081
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1087
1082
  this.send(command, optionsOrCb || {}, cb);
1088
1083
  }
1089
1084
  else {
1090
1085
  return this.send(command, optionsOrCb);
1091
1086
  }
1092
- };
1093
- CodeCommit.prototype.updatePullRequestDescription = function (args, optionsOrCb, cb) {
1094
- var command = new UpdatePullRequestDescriptionCommand(args);
1087
+ }
1088
+ updatePullRequestDescription(args, optionsOrCb, cb) {
1089
+ const command = new UpdatePullRequestDescriptionCommand(args);
1095
1090
  if (typeof optionsOrCb === "function") {
1096
1091
  this.send(command, optionsOrCb);
1097
1092
  }
1098
1093
  else if (typeof cb === "function") {
1099
1094
  if (typeof optionsOrCb !== "object")
1100
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1095
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1101
1096
  this.send(command, optionsOrCb || {}, cb);
1102
1097
  }
1103
1098
  else {
1104
1099
  return this.send(command, optionsOrCb);
1105
1100
  }
1106
- };
1107
- CodeCommit.prototype.updatePullRequestStatus = function (args, optionsOrCb, cb) {
1108
- var command = new UpdatePullRequestStatusCommand(args);
1101
+ }
1102
+ updatePullRequestStatus(args, optionsOrCb, cb) {
1103
+ const command = new UpdatePullRequestStatusCommand(args);
1109
1104
  if (typeof optionsOrCb === "function") {
1110
1105
  this.send(command, optionsOrCb);
1111
1106
  }
1112
1107
  else if (typeof cb === "function") {
1113
1108
  if (typeof optionsOrCb !== "object")
1114
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1109
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1115
1110
  this.send(command, optionsOrCb || {}, cb);
1116
1111
  }
1117
1112
  else {
1118
1113
  return this.send(command, optionsOrCb);
1119
1114
  }
1120
- };
1121
- CodeCommit.prototype.updatePullRequestTitle = function (args, optionsOrCb, cb) {
1122
- var command = new UpdatePullRequestTitleCommand(args);
1115
+ }
1116
+ updatePullRequestTitle(args, optionsOrCb, cb) {
1117
+ const command = new UpdatePullRequestTitleCommand(args);
1123
1118
  if (typeof optionsOrCb === "function") {
1124
1119
  this.send(command, optionsOrCb);
1125
1120
  }
1126
1121
  else if (typeof cb === "function") {
1127
1122
  if (typeof optionsOrCb !== "object")
1128
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1123
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1129
1124
  this.send(command, optionsOrCb || {}, cb);
1130
1125
  }
1131
1126
  else {
1132
1127
  return this.send(command, optionsOrCb);
1133
1128
  }
1134
- };
1135
- CodeCommit.prototype.updateRepositoryDescription = function (args, optionsOrCb, cb) {
1136
- var command = new UpdateRepositoryDescriptionCommand(args);
1129
+ }
1130
+ updateRepositoryDescription(args, optionsOrCb, cb) {
1131
+ const command = new UpdateRepositoryDescriptionCommand(args);
1137
1132
  if (typeof optionsOrCb === "function") {
1138
1133
  this.send(command, optionsOrCb);
1139
1134
  }
1140
1135
  else if (typeof cb === "function") {
1141
1136
  if (typeof optionsOrCb !== "object")
1142
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1137
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1143
1138
  this.send(command, optionsOrCb || {}, cb);
1144
1139
  }
1145
1140
  else {
1146
1141
  return this.send(command, optionsOrCb);
1147
1142
  }
1148
- };
1149
- CodeCommit.prototype.updateRepositoryName = function (args, optionsOrCb, cb) {
1150
- var command = new UpdateRepositoryNameCommand(args);
1143
+ }
1144
+ updateRepositoryName(args, optionsOrCb, cb) {
1145
+ const command = new UpdateRepositoryNameCommand(args);
1151
1146
  if (typeof optionsOrCb === "function") {
1152
1147
  this.send(command, optionsOrCb);
1153
1148
  }
1154
1149
  else if (typeof cb === "function") {
1155
1150
  if (typeof optionsOrCb !== "object")
1156
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1151
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1157
1152
  this.send(command, optionsOrCb || {}, cb);
1158
1153
  }
1159
1154
  else {
1160
1155
  return this.send(command, optionsOrCb);
1161
1156
  }
1162
- };
1163
- return CodeCommit;
1164
- }(CodeCommitClient));
1165
- export { CodeCommit };
1157
+ }
1158
+ }