@aws-sdk/client-codecommit 3.926.0 → 3.928.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 (100) hide show
  1. package/dist-cjs/index.js +4997 -5401
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CodeCommitClient.js +2 -0
  4. package/dist-es/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.js +3 -9
  5. package/dist-es/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.js +3 -9
  6. package/dist-es/commands/BatchDescribeMergeConflictsCommand.js +3 -9
  7. package/dist-es/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.js +3 -9
  8. package/dist-es/commands/BatchGetCommitsCommand.js +3 -9
  9. package/dist-es/commands/BatchGetRepositoriesCommand.js +3 -9
  10. package/dist-es/commands/CreateApprovalRuleTemplateCommand.js +3 -9
  11. package/dist-es/commands/CreateBranchCommand.js +3 -9
  12. package/dist-es/commands/CreateCommitCommand.js +3 -9
  13. package/dist-es/commands/CreatePullRequestApprovalRuleCommand.js +3 -9
  14. package/dist-es/commands/CreatePullRequestCommand.js +3 -9
  15. package/dist-es/commands/CreateRepositoryCommand.js +3 -9
  16. package/dist-es/commands/CreateUnreferencedMergeCommitCommand.js +3 -9
  17. package/dist-es/commands/DeleteApprovalRuleTemplateCommand.js +3 -9
  18. package/dist-es/commands/DeleteBranchCommand.js +3 -9
  19. package/dist-es/commands/DeleteCommentContentCommand.js +3 -9
  20. package/dist-es/commands/DeleteFileCommand.js +3 -9
  21. package/dist-es/commands/DeletePullRequestApprovalRuleCommand.js +3 -9
  22. package/dist-es/commands/DeleteRepositoryCommand.js +3 -9
  23. package/dist-es/commands/DescribeMergeConflictsCommand.js +3 -9
  24. package/dist-es/commands/DescribePullRequestEventsCommand.js +3 -9
  25. package/dist-es/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.js +3 -9
  26. package/dist-es/commands/EvaluatePullRequestApprovalRulesCommand.js +3 -9
  27. package/dist-es/commands/GetApprovalRuleTemplateCommand.js +3 -9
  28. package/dist-es/commands/GetBlobCommand.js +3 -9
  29. package/dist-es/commands/GetBranchCommand.js +3 -9
  30. package/dist-es/commands/GetCommentCommand.js +3 -9
  31. package/dist-es/commands/GetCommentReactionsCommand.js +3 -9
  32. package/dist-es/commands/GetCommentsForComparedCommitCommand.js +3 -9
  33. package/dist-es/commands/GetCommentsForPullRequestCommand.js +3 -9
  34. package/dist-es/commands/GetCommitCommand.js +3 -9
  35. package/dist-es/commands/GetDifferencesCommand.js +3 -9
  36. package/dist-es/commands/GetFileCommand.js +3 -9
  37. package/dist-es/commands/GetFolderCommand.js +3 -9
  38. package/dist-es/commands/GetMergeCommitCommand.js +3 -9
  39. package/dist-es/commands/GetMergeConflictsCommand.js +3 -9
  40. package/dist-es/commands/GetMergeOptionsCommand.js +3 -9
  41. package/dist-es/commands/GetPullRequestApprovalStatesCommand.js +3 -9
  42. package/dist-es/commands/GetPullRequestCommand.js +3 -9
  43. package/dist-es/commands/GetPullRequestOverrideStateCommand.js +3 -9
  44. package/dist-es/commands/GetRepositoryCommand.js +3 -9
  45. package/dist-es/commands/GetRepositoryTriggersCommand.js +3 -9
  46. package/dist-es/commands/ListApprovalRuleTemplatesCommand.js +3 -9
  47. package/dist-es/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.js +3 -9
  48. package/dist-es/commands/ListBranchesCommand.js +3 -9
  49. package/dist-es/commands/ListFileCommitHistoryCommand.js +3 -9
  50. package/dist-es/commands/ListPullRequestsCommand.js +3 -9
  51. package/dist-es/commands/ListRepositoriesCommand.js +3 -9
  52. package/dist-es/commands/ListRepositoriesForApprovalRuleTemplateCommand.js +3 -9
  53. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  54. package/dist-es/commands/MergeBranchesByFastForwardCommand.js +3 -9
  55. package/dist-es/commands/MergeBranchesBySquashCommand.js +3 -9
  56. package/dist-es/commands/MergeBranchesByThreeWayCommand.js +3 -9
  57. package/dist-es/commands/MergePullRequestByFastForwardCommand.js +3 -9
  58. package/dist-es/commands/MergePullRequestBySquashCommand.js +3 -9
  59. package/dist-es/commands/MergePullRequestByThreeWayCommand.js +3 -9
  60. package/dist-es/commands/OverridePullRequestApprovalRulesCommand.js +3 -9
  61. package/dist-es/commands/PostCommentForComparedCommitCommand.js +3 -9
  62. package/dist-es/commands/PostCommentForPullRequestCommand.js +3 -9
  63. package/dist-es/commands/PostCommentReplyCommand.js +3 -9
  64. package/dist-es/commands/PutCommentReactionCommand.js +3 -9
  65. package/dist-es/commands/PutFileCommand.js +3 -9
  66. package/dist-es/commands/PutRepositoryTriggersCommand.js +3 -9
  67. package/dist-es/commands/TagResourceCommand.js +3 -9
  68. package/dist-es/commands/TestRepositoryTriggersCommand.js +3 -9
  69. package/dist-es/commands/UntagResourceCommand.js +3 -9
  70. package/dist-es/commands/UpdateApprovalRuleTemplateContentCommand.js +3 -9
  71. package/dist-es/commands/UpdateApprovalRuleTemplateDescriptionCommand.js +3 -9
  72. package/dist-es/commands/UpdateApprovalRuleTemplateNameCommand.js +3 -9
  73. package/dist-es/commands/UpdateCommentCommand.js +3 -9
  74. package/dist-es/commands/UpdateDefaultBranchCommand.js +3 -9
  75. package/dist-es/commands/UpdatePullRequestApprovalRuleContentCommand.js +3 -9
  76. package/dist-es/commands/UpdatePullRequestApprovalStateCommand.js +3 -9
  77. package/dist-es/commands/UpdatePullRequestDescriptionCommand.js +3 -9
  78. package/dist-es/commands/UpdatePullRequestStatusCommand.js +3 -9
  79. package/dist-es/commands/UpdatePullRequestTitleCommand.js +3 -9
  80. package/dist-es/commands/UpdateRepositoryDescriptionCommand.js +3 -9
  81. package/dist-es/commands/UpdateRepositoryEncryptionKeyCommand.js +3 -9
  82. package/dist-es/commands/UpdateRepositoryNameCommand.js +3 -9
  83. package/dist-es/runtimeConfig.shared.js +7 -0
  84. package/dist-es/schemas/schemas_0.js +4289 -0
  85. package/dist-types/CodeCommitClient.d.ts +10 -1
  86. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  87. package/dist-types/runtimeConfig.d.ts +1 -0
  88. package/dist-types/runtimeConfig.native.d.ts +1 -0
  89. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  90. package/dist-types/schemas/schemas_0.d.ts +528 -0
  91. package/dist-types/ts3.4/CodeCommitClient.d.ts +4 -0
  92. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  93. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  94. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  95. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  96. package/dist-types/ts3.4/schemas/schemas_0.d.ts +533 -0
  97. package/package.json +5 -6
  98. package/dist-es/protocols/Aws_json1_1.js +0 -4286
  99. package/dist-types/protocols/Aws_json1_1.d.ts +0 -713
  100. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -953
@@ -1,4286 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { CodeCommitServiceException as __BaseException } from "../models/CodeCommitServiceException";
6
- import { ActorDoesNotExistException, ApprovalRuleContentRequiredException, ApprovalRuleDoesNotExistException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleNameRequiredException, ApprovalRuleTemplateContentRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateInUseException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateNameRequiredException, ApprovalStateRequiredException, AuthorDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, BlobIdDoesNotExistException, BlobIdRequiredException, BranchDoesNotExistException, BranchNameExistsException, BranchNameIsTagNameException, BranchNameRequiredException, CannotDeleteApprovalRuleFromTemplateException, CannotModifyApprovalRuleFromTemplateException, ClientRequestTokenRequiredException, CommentDeletedException, CommentDoesNotExistException, CommentIdRequiredException, CommitDoesNotExistException, CommitIdDoesNotExistException, CommitIdRequiredException, CommitIdsLimitExceededException, CommitIdsListRequiredException, CommitMessageLengthExceededException, CommitRequiredException, ConcurrentReferenceUpdateException, DefaultBranchCannotBeDeletedException, DirectoryNameConflictsWithFileNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyInvalidIdException, EncryptionKeyInvalidUsageException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileContentAndSourceFileSpecifiedException, FileContentSizeLimitExceededException, FileDoesNotExistException, FileEntryRequiredException, FileModeRequiredException, FileNameConflictsWithDirectoryNameException, FilePathConflictsWithSubmodulePathException, FileTooLargeException, FolderContentSizeLimitExceededException, FolderDoesNotExistException, IdempotencyParameterMismatchException, InvalidActorArnException, InvalidApprovalRuleContentException, InvalidApprovalRuleNameException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, InvalidApprovalRuleTemplateNameException, InvalidBlobIdException, InvalidBranchNameException, InvalidClientRequestTokenException, InvalidCommentIdException, InvalidCommitException, InvalidCommitIdException, InvalidConflictDetailLevelException, InvalidConflictResolutionException, InvalidConflictResolutionStrategyException, InvalidContinuationTokenException, InvalidDeletionParameterException, InvalidDescriptionException, InvalidDestinationCommitSpecifierException, InvalidEmailException, InvalidFileModeException, InvalidMaxConflictFilesException, InvalidMaxMergeHunksException, InvalidMaxResultsException, InvalidMergeOptionException, InvalidParentCommitIdException, InvalidPathException, InvalidPullRequestEventTypeException, InvalidPullRequestIdException, InvalidReactionUserArnException, InvalidReferenceNameException, InvalidReplacementContentException, InvalidReplacementTypeException, InvalidRepositoryDescriptionException, InvalidRepositoryNameException, InvalidRevisionIdException, InvalidSourceCommitSpecifierException, InvalidSystemTagUsageException, InvalidTagsMapException, InvalidTargetException, InvalidTargetsException, InvalidTitleException, ManualMergeRequiredException, MaximumConflictResolutionEntriesExceededException, MaximumFileContentToLoadExceededException, MaximumFileEntriesExceededException, MaximumItemsToCompareExceededException, MaximumOpenPullRequestsExceededException, MaximumRepositoryNamesExceededException, MaximumRuleTemplatesAssociatedWithRepositoryException, MergeOptionRequiredException, MultipleConflictResolutionEntriesException, MultipleRepositoriesInPullRequestException, NameLengthExceededException, NoChangeException, NumberOfRulesExceededException, NumberOfRuleTemplatesExceededException, OperationNotAllowedException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, ParentCommitIdRequiredException, PathDoesNotExistException, PathRequiredException, PullRequestAlreadyClosedException, PullRequestDoesNotExistException, PullRequestIdRequiredException, PutFileEntryConflictException, ReferenceDoesNotExistException, ReferenceNameRequiredException, ReferenceTypeNotSupportedException, ReplacementContentRequiredException, ReplacementTypeRequiredException, RepositoryDoesNotExistException, RepositoryLimitExceededException, RepositoryNameExistsException, RepositoryNameRequiredException, RepositoryNamesRequiredException, RepositoryNotAssociatedWithPullRequestException, RestrictedSourceFileException, RevisionIdRequiredException, RevisionNotCurrentException, SamePathRequestException, SourceAndDestinationAreSameException, SourceFileOrContentRequiredException, TagPolicyException, TargetRequiredException, TargetsRequiredException, TipsDivergenceExceededException, TitleRequiredException, TooManyTagsException, } from "../models/models_0";
7
- import { CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentNotCreatedByCallerException, EncryptionKeyRequiredException, FileContentRequiredException, InvalidApprovalStateException, InvalidAuthorArnException, InvalidFileLocationException, InvalidFilePositionException, InvalidOrderException, InvalidOverrideStatusException, InvalidPullRequestStatusException, InvalidPullRequestStatusUpdateException, InvalidReactionValueException, InvalidRelativeFileVersionEnumException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerCustomDataException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerEventsException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerRegionException, InvalidResourceArnException, InvalidRuleContentSha256Exception, InvalidSortByException, InvalidTagKeysListException, InvalidTargetBranchException, MaximumBranchesExceededException, MaximumNumberOfApprovalsExceededException, MaximumRepositoryTriggersExceededException, OverrideAlreadySetException, OverrideStatusRequiredException, PullRequestApprovalRulesNotSatisfiedException, PullRequestCannotBeApprovedByAuthorException, PullRequestStatusRequiredException, ReactionLimitExceededException, ReactionValueRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerEventsListRequiredException, RepositoryTriggerNameRequiredException, RepositoryTriggersListRequiredException, ResourceArnRequiredException, SameFileContentException, TagKeysListRequiredException, TagsMapRequiredException, TipOfSourceReferenceIsDifferentException, } from "../models/models_1";
8
- export const se_AssociateApprovalRuleTemplateWithRepositoryCommand = async (input, context) => {
9
- const headers = sharedHeaders("AssociateApprovalRuleTemplateWithRepository");
10
- let body;
11
- body = JSON.stringify(_json(input));
12
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
- };
14
- export const se_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = async (input, context) => {
15
- const headers = sharedHeaders("BatchAssociateApprovalRuleTemplateWithRepositories");
16
- let body;
17
- body = JSON.stringify(_json(input));
18
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
19
- };
20
- export const se_BatchDescribeMergeConflictsCommand = async (input, context) => {
21
- const headers = sharedHeaders("BatchDescribeMergeConflicts");
22
- let body;
23
- body = JSON.stringify(_json(input));
24
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
25
- };
26
- export const se_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = async (input, context) => {
27
- const headers = sharedHeaders("BatchDisassociateApprovalRuleTemplateFromRepositories");
28
- let body;
29
- body = JSON.stringify(_json(input));
30
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
- };
32
- export const se_BatchGetCommitsCommand = async (input, context) => {
33
- const headers = sharedHeaders("BatchGetCommits");
34
- let body;
35
- body = JSON.stringify(_json(input));
36
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
- };
38
- export const se_BatchGetRepositoriesCommand = async (input, context) => {
39
- const headers = sharedHeaders("BatchGetRepositories");
40
- let body;
41
- body = JSON.stringify(_json(input));
42
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
- };
44
- export const se_CreateApprovalRuleTemplateCommand = async (input, context) => {
45
- const headers = sharedHeaders("CreateApprovalRuleTemplate");
46
- let body;
47
- body = JSON.stringify(_json(input));
48
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
- };
50
- export const se_CreateBranchCommand = async (input, context) => {
51
- const headers = sharedHeaders("CreateBranch");
52
- let body;
53
- body = JSON.stringify(_json(input));
54
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
- };
56
- export const se_CreateCommitCommand = async (input, context) => {
57
- const headers = sharedHeaders("CreateCommit");
58
- let body;
59
- body = JSON.stringify(se_CreateCommitInput(input, context));
60
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
61
- };
62
- export const se_CreatePullRequestCommand = async (input, context) => {
63
- const headers = sharedHeaders("CreatePullRequest");
64
- let body;
65
- body = JSON.stringify(se_CreatePullRequestInput(input, context));
66
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
- };
68
- export const se_CreatePullRequestApprovalRuleCommand = async (input, context) => {
69
- const headers = sharedHeaders("CreatePullRequestApprovalRule");
70
- let body;
71
- body = JSON.stringify(_json(input));
72
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
73
- };
74
- export const se_CreateRepositoryCommand = async (input, context) => {
75
- const headers = sharedHeaders("CreateRepository");
76
- let body;
77
- body = JSON.stringify(_json(input));
78
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
79
- };
80
- export const se_CreateUnreferencedMergeCommitCommand = async (input, context) => {
81
- const headers = sharedHeaders("CreateUnreferencedMergeCommit");
82
- let body;
83
- body = JSON.stringify(se_CreateUnreferencedMergeCommitInput(input, context));
84
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
- };
86
- export const se_DeleteApprovalRuleTemplateCommand = async (input, context) => {
87
- const headers = sharedHeaders("DeleteApprovalRuleTemplate");
88
- let body;
89
- body = JSON.stringify(_json(input));
90
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
- };
92
- export const se_DeleteBranchCommand = async (input, context) => {
93
- const headers = sharedHeaders("DeleteBranch");
94
- let body;
95
- body = JSON.stringify(_json(input));
96
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
- };
98
- export const se_DeleteCommentContentCommand = async (input, context) => {
99
- const headers = sharedHeaders("DeleteCommentContent");
100
- let body;
101
- body = JSON.stringify(_json(input));
102
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
- };
104
- export const se_DeleteFileCommand = async (input, context) => {
105
- const headers = sharedHeaders("DeleteFile");
106
- let body;
107
- body = JSON.stringify(_json(input));
108
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
109
- };
110
- export const se_DeletePullRequestApprovalRuleCommand = async (input, context) => {
111
- const headers = sharedHeaders("DeletePullRequestApprovalRule");
112
- let body;
113
- body = JSON.stringify(_json(input));
114
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
115
- };
116
- export const se_DeleteRepositoryCommand = async (input, context) => {
117
- const headers = sharedHeaders("DeleteRepository");
118
- let body;
119
- body = JSON.stringify(_json(input));
120
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
- };
122
- export const se_DescribeMergeConflictsCommand = async (input, context) => {
123
- const headers = sharedHeaders("DescribeMergeConflicts");
124
- let body;
125
- body = JSON.stringify(_json(input));
126
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
- };
128
- export const se_DescribePullRequestEventsCommand = async (input, context) => {
129
- const headers = sharedHeaders("DescribePullRequestEvents");
130
- let body;
131
- body = JSON.stringify(_json(input));
132
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
- };
134
- export const se_DisassociateApprovalRuleTemplateFromRepositoryCommand = async (input, context) => {
135
- const headers = sharedHeaders("DisassociateApprovalRuleTemplateFromRepository");
136
- let body;
137
- body = JSON.stringify(_json(input));
138
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
- };
140
- export const se_EvaluatePullRequestApprovalRulesCommand = async (input, context) => {
141
- const headers = sharedHeaders("EvaluatePullRequestApprovalRules");
142
- let body;
143
- body = JSON.stringify(_json(input));
144
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
145
- };
146
- export const se_GetApprovalRuleTemplateCommand = async (input, context) => {
147
- const headers = sharedHeaders("GetApprovalRuleTemplate");
148
- let body;
149
- body = JSON.stringify(_json(input));
150
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
151
- };
152
- export const se_GetBlobCommand = async (input, context) => {
153
- const headers = sharedHeaders("GetBlob");
154
- let body;
155
- body = JSON.stringify(_json(input));
156
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
- };
158
- export const se_GetBranchCommand = async (input, context) => {
159
- const headers = sharedHeaders("GetBranch");
160
- let body;
161
- body = JSON.stringify(_json(input));
162
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
163
- };
164
- export const se_GetCommentCommand = async (input, context) => {
165
- const headers = sharedHeaders("GetComment");
166
- let body;
167
- body = JSON.stringify(_json(input));
168
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
- };
170
- export const se_GetCommentReactionsCommand = async (input, context) => {
171
- const headers = sharedHeaders("GetCommentReactions");
172
- let body;
173
- body = JSON.stringify(_json(input));
174
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
- };
176
- export const se_GetCommentsForComparedCommitCommand = async (input, context) => {
177
- const headers = sharedHeaders("GetCommentsForComparedCommit");
178
- let body;
179
- body = JSON.stringify(_json(input));
180
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
181
- };
182
- export const se_GetCommentsForPullRequestCommand = async (input, context) => {
183
- const headers = sharedHeaders("GetCommentsForPullRequest");
184
- let body;
185
- body = JSON.stringify(_json(input));
186
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
187
- };
188
- export const se_GetCommitCommand = async (input, context) => {
189
- const headers = sharedHeaders("GetCommit");
190
- let body;
191
- body = JSON.stringify(_json(input));
192
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
- };
194
- export const se_GetDifferencesCommand = async (input, context) => {
195
- const headers = sharedHeaders("GetDifferences");
196
- let body;
197
- body = JSON.stringify(_json(input));
198
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
199
- };
200
- export const se_GetFileCommand = async (input, context) => {
201
- const headers = sharedHeaders("GetFile");
202
- let body;
203
- body = JSON.stringify(_json(input));
204
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
205
- };
206
- export const se_GetFolderCommand = async (input, context) => {
207
- const headers = sharedHeaders("GetFolder");
208
- let body;
209
- body = JSON.stringify(_json(input));
210
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
- };
212
- export const se_GetMergeCommitCommand = async (input, context) => {
213
- const headers = sharedHeaders("GetMergeCommit");
214
- let body;
215
- body = JSON.stringify(_json(input));
216
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
- };
218
- export const se_GetMergeConflictsCommand = async (input, context) => {
219
- const headers = sharedHeaders("GetMergeConflicts");
220
- let body;
221
- body = JSON.stringify(_json(input));
222
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
223
- };
224
- export const se_GetMergeOptionsCommand = async (input, context) => {
225
- const headers = sharedHeaders("GetMergeOptions");
226
- let body;
227
- body = JSON.stringify(_json(input));
228
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
- };
230
- export const se_GetPullRequestCommand = async (input, context) => {
231
- const headers = sharedHeaders("GetPullRequest");
232
- let body;
233
- body = JSON.stringify(_json(input));
234
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
235
- };
236
- export const se_GetPullRequestApprovalStatesCommand = async (input, context) => {
237
- const headers = sharedHeaders("GetPullRequestApprovalStates");
238
- let body;
239
- body = JSON.stringify(_json(input));
240
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
241
- };
242
- export const se_GetPullRequestOverrideStateCommand = async (input, context) => {
243
- const headers = sharedHeaders("GetPullRequestOverrideState");
244
- let body;
245
- body = JSON.stringify(_json(input));
246
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
- };
248
- export const se_GetRepositoryCommand = async (input, context) => {
249
- const headers = sharedHeaders("GetRepository");
250
- let body;
251
- body = JSON.stringify(_json(input));
252
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
- };
254
- export const se_GetRepositoryTriggersCommand = async (input, context) => {
255
- const headers = sharedHeaders("GetRepositoryTriggers");
256
- let body;
257
- body = JSON.stringify(_json(input));
258
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
- };
260
- export const se_ListApprovalRuleTemplatesCommand = async (input, context) => {
261
- const headers = sharedHeaders("ListApprovalRuleTemplates");
262
- let body;
263
- body = JSON.stringify(_json(input));
264
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
- };
266
- export const se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = async (input, context) => {
267
- const headers = sharedHeaders("ListAssociatedApprovalRuleTemplatesForRepository");
268
- let body;
269
- body = JSON.stringify(_json(input));
270
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
271
- };
272
- export const se_ListBranchesCommand = async (input, context) => {
273
- const headers = sharedHeaders("ListBranches");
274
- let body;
275
- body = JSON.stringify(_json(input));
276
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
- };
278
- export const se_ListFileCommitHistoryCommand = async (input, context) => {
279
- const headers = sharedHeaders("ListFileCommitHistory");
280
- let body;
281
- body = JSON.stringify(_json(input));
282
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
- };
284
- export const se_ListPullRequestsCommand = async (input, context) => {
285
- const headers = sharedHeaders("ListPullRequests");
286
- let body;
287
- body = JSON.stringify(_json(input));
288
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
289
- };
290
- export const se_ListRepositoriesCommand = async (input, context) => {
291
- const headers = sharedHeaders("ListRepositories");
292
- let body;
293
- body = JSON.stringify(_json(input));
294
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
- };
296
- export const se_ListRepositoriesForApprovalRuleTemplateCommand = async (input, context) => {
297
- const headers = sharedHeaders("ListRepositoriesForApprovalRuleTemplate");
298
- let body;
299
- body = JSON.stringify(_json(input));
300
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
- };
302
- export const se_ListTagsForResourceCommand = async (input, context) => {
303
- const headers = sharedHeaders("ListTagsForResource");
304
- let body;
305
- body = JSON.stringify(_json(input));
306
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
- };
308
- export const se_MergeBranchesByFastForwardCommand = async (input, context) => {
309
- const headers = sharedHeaders("MergeBranchesByFastForward");
310
- let body;
311
- body = JSON.stringify(_json(input));
312
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
313
- };
314
- export const se_MergeBranchesBySquashCommand = async (input, context) => {
315
- const headers = sharedHeaders("MergeBranchesBySquash");
316
- let body;
317
- body = JSON.stringify(se_MergeBranchesBySquashInput(input, context));
318
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
- };
320
- export const se_MergeBranchesByThreeWayCommand = async (input, context) => {
321
- const headers = sharedHeaders("MergeBranchesByThreeWay");
322
- let body;
323
- body = JSON.stringify(se_MergeBranchesByThreeWayInput(input, context));
324
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
325
- };
326
- export const se_MergePullRequestByFastForwardCommand = async (input, context) => {
327
- const headers = sharedHeaders("MergePullRequestByFastForward");
328
- let body;
329
- body = JSON.stringify(_json(input));
330
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
331
- };
332
- export const se_MergePullRequestBySquashCommand = async (input, context) => {
333
- const headers = sharedHeaders("MergePullRequestBySquash");
334
- let body;
335
- body = JSON.stringify(se_MergePullRequestBySquashInput(input, context));
336
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
- };
338
- export const se_MergePullRequestByThreeWayCommand = async (input, context) => {
339
- const headers = sharedHeaders("MergePullRequestByThreeWay");
340
- let body;
341
- body = JSON.stringify(se_MergePullRequestByThreeWayInput(input, context));
342
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
343
- };
344
- export const se_OverridePullRequestApprovalRulesCommand = async (input, context) => {
345
- const headers = sharedHeaders("OverridePullRequestApprovalRules");
346
- let body;
347
- body = JSON.stringify(_json(input));
348
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
349
- };
350
- export const se_PostCommentForComparedCommitCommand = async (input, context) => {
351
- const headers = sharedHeaders("PostCommentForComparedCommit");
352
- let body;
353
- body = JSON.stringify(se_PostCommentForComparedCommitInput(input, context));
354
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
- };
356
- export const se_PostCommentForPullRequestCommand = async (input, context) => {
357
- const headers = sharedHeaders("PostCommentForPullRequest");
358
- let body;
359
- body = JSON.stringify(se_PostCommentForPullRequestInput(input, context));
360
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
361
- };
362
- export const se_PostCommentReplyCommand = async (input, context) => {
363
- const headers = sharedHeaders("PostCommentReply");
364
- let body;
365
- body = JSON.stringify(se_PostCommentReplyInput(input, context));
366
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
- };
368
- export const se_PutCommentReactionCommand = async (input, context) => {
369
- const headers = sharedHeaders("PutCommentReaction");
370
- let body;
371
- body = JSON.stringify(_json(input));
372
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
373
- };
374
- export const se_PutFileCommand = async (input, context) => {
375
- const headers = sharedHeaders("PutFile");
376
- let body;
377
- body = JSON.stringify(se_PutFileInput(input, context));
378
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
- };
380
- export const se_PutRepositoryTriggersCommand = async (input, context) => {
381
- const headers = sharedHeaders("PutRepositoryTriggers");
382
- let body;
383
- body = JSON.stringify(_json(input));
384
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
385
- };
386
- export const se_TagResourceCommand = async (input, context) => {
387
- const headers = sharedHeaders("TagResource");
388
- let body;
389
- body = JSON.stringify(_json(input));
390
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
391
- };
392
- export const se_TestRepositoryTriggersCommand = async (input, context) => {
393
- const headers = sharedHeaders("TestRepositoryTriggers");
394
- let body;
395
- body = JSON.stringify(_json(input));
396
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
397
- };
398
- export const se_UntagResourceCommand = async (input, context) => {
399
- const headers = sharedHeaders("UntagResource");
400
- let body;
401
- body = JSON.stringify(_json(input));
402
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
403
- };
404
- export const se_UpdateApprovalRuleTemplateContentCommand = async (input, context) => {
405
- const headers = sharedHeaders("UpdateApprovalRuleTemplateContent");
406
- let body;
407
- body = JSON.stringify(_json(input));
408
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
409
- };
410
- export const se_UpdateApprovalRuleTemplateDescriptionCommand = async (input, context) => {
411
- const headers = sharedHeaders("UpdateApprovalRuleTemplateDescription");
412
- let body;
413
- body = JSON.stringify(_json(input));
414
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
415
- };
416
- export const se_UpdateApprovalRuleTemplateNameCommand = async (input, context) => {
417
- const headers = sharedHeaders("UpdateApprovalRuleTemplateName");
418
- let body;
419
- body = JSON.stringify(_json(input));
420
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
421
- };
422
- export const se_UpdateCommentCommand = async (input, context) => {
423
- const headers = sharedHeaders("UpdateComment");
424
- let body;
425
- body = JSON.stringify(_json(input));
426
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
- };
428
- export const se_UpdateDefaultBranchCommand = async (input, context) => {
429
- const headers = sharedHeaders("UpdateDefaultBranch");
430
- let body;
431
- body = JSON.stringify(_json(input));
432
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
433
- };
434
- export const se_UpdatePullRequestApprovalRuleContentCommand = async (input, context) => {
435
- const headers = sharedHeaders("UpdatePullRequestApprovalRuleContent");
436
- let body;
437
- body = JSON.stringify(_json(input));
438
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
439
- };
440
- export const se_UpdatePullRequestApprovalStateCommand = async (input, context) => {
441
- const headers = sharedHeaders("UpdatePullRequestApprovalState");
442
- let body;
443
- body = JSON.stringify(_json(input));
444
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
445
- };
446
- export const se_UpdatePullRequestDescriptionCommand = async (input, context) => {
447
- const headers = sharedHeaders("UpdatePullRequestDescription");
448
- let body;
449
- body = JSON.stringify(_json(input));
450
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
451
- };
452
- export const se_UpdatePullRequestStatusCommand = async (input, context) => {
453
- const headers = sharedHeaders("UpdatePullRequestStatus");
454
- let body;
455
- body = JSON.stringify(_json(input));
456
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
457
- };
458
- export const se_UpdatePullRequestTitleCommand = async (input, context) => {
459
- const headers = sharedHeaders("UpdatePullRequestTitle");
460
- let body;
461
- body = JSON.stringify(_json(input));
462
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
- };
464
- export const se_UpdateRepositoryDescriptionCommand = async (input, context) => {
465
- const headers = sharedHeaders("UpdateRepositoryDescription");
466
- let body;
467
- body = JSON.stringify(_json(input));
468
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
469
- };
470
- export const se_UpdateRepositoryEncryptionKeyCommand = async (input, context) => {
471
- const headers = sharedHeaders("UpdateRepositoryEncryptionKey");
472
- let body;
473
- body = JSON.stringify(_json(input));
474
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
475
- };
476
- export const se_UpdateRepositoryNameCommand = async (input, context) => {
477
- const headers = sharedHeaders("UpdateRepositoryName");
478
- let body;
479
- body = JSON.stringify(_json(input));
480
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
481
- };
482
- export const de_AssociateApprovalRuleTemplateWithRepositoryCommand = async (output, context) => {
483
- if (output.statusCode >= 300) {
484
- return de_CommandError(output, context);
485
- }
486
- await collectBody(output.body, context);
487
- const response = {
488
- $metadata: deserializeMetadata(output),
489
- };
490
- return response;
491
- };
492
- export const de_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = async (output, context) => {
493
- if (output.statusCode >= 300) {
494
- return de_CommandError(output, context);
495
- }
496
- const data = await parseBody(output.body, context);
497
- let contents = {};
498
- contents = _json(data);
499
- const response = {
500
- $metadata: deserializeMetadata(output),
501
- ...contents,
502
- };
503
- return response;
504
- };
505
- export const de_BatchDescribeMergeConflictsCommand = async (output, context) => {
506
- if (output.statusCode >= 300) {
507
- return de_CommandError(output, context);
508
- }
509
- const data = await parseBody(output.body, context);
510
- let contents = {};
511
- contents = _json(data);
512
- const response = {
513
- $metadata: deserializeMetadata(output),
514
- ...contents,
515
- };
516
- return response;
517
- };
518
- export const de_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = async (output, context) => {
519
- if (output.statusCode >= 300) {
520
- return de_CommandError(output, context);
521
- }
522
- const data = await parseBody(output.body, context);
523
- let contents = {};
524
- contents = _json(data);
525
- const response = {
526
- $metadata: deserializeMetadata(output),
527
- ...contents,
528
- };
529
- return response;
530
- };
531
- export const de_BatchGetCommitsCommand = async (output, context) => {
532
- if (output.statusCode >= 300) {
533
- return de_CommandError(output, context);
534
- }
535
- const data = await parseBody(output.body, context);
536
- let contents = {};
537
- contents = _json(data);
538
- const response = {
539
- $metadata: deserializeMetadata(output),
540
- ...contents,
541
- };
542
- return response;
543
- };
544
- export const de_BatchGetRepositoriesCommand = async (output, context) => {
545
- if (output.statusCode >= 300) {
546
- return de_CommandError(output, context);
547
- }
548
- const data = await parseBody(output.body, context);
549
- let contents = {};
550
- contents = de_BatchGetRepositoriesOutput(data, context);
551
- const response = {
552
- $metadata: deserializeMetadata(output),
553
- ...contents,
554
- };
555
- return response;
556
- };
557
- export const de_CreateApprovalRuleTemplateCommand = async (output, context) => {
558
- if (output.statusCode >= 300) {
559
- return de_CommandError(output, context);
560
- }
561
- const data = await parseBody(output.body, context);
562
- let contents = {};
563
- contents = de_CreateApprovalRuleTemplateOutput(data, context);
564
- const response = {
565
- $metadata: deserializeMetadata(output),
566
- ...contents,
567
- };
568
- return response;
569
- };
570
- export const de_CreateBranchCommand = async (output, context) => {
571
- if (output.statusCode >= 300) {
572
- return de_CommandError(output, context);
573
- }
574
- await collectBody(output.body, context);
575
- const response = {
576
- $metadata: deserializeMetadata(output),
577
- };
578
- return response;
579
- };
580
- export const de_CreateCommitCommand = async (output, context) => {
581
- if (output.statusCode >= 300) {
582
- return de_CommandError(output, context);
583
- }
584
- const data = await parseBody(output.body, context);
585
- let contents = {};
586
- contents = _json(data);
587
- const response = {
588
- $metadata: deserializeMetadata(output),
589
- ...contents,
590
- };
591
- return response;
592
- };
593
- export const de_CreatePullRequestCommand = async (output, context) => {
594
- if (output.statusCode >= 300) {
595
- return de_CommandError(output, context);
596
- }
597
- const data = await parseBody(output.body, context);
598
- let contents = {};
599
- contents = de_CreatePullRequestOutput(data, context);
600
- const response = {
601
- $metadata: deserializeMetadata(output),
602
- ...contents,
603
- };
604
- return response;
605
- };
606
- export const de_CreatePullRequestApprovalRuleCommand = async (output, context) => {
607
- if (output.statusCode >= 300) {
608
- return de_CommandError(output, context);
609
- }
610
- const data = await parseBody(output.body, context);
611
- let contents = {};
612
- contents = de_CreatePullRequestApprovalRuleOutput(data, context);
613
- const response = {
614
- $metadata: deserializeMetadata(output),
615
- ...contents,
616
- };
617
- return response;
618
- };
619
- export const de_CreateRepositoryCommand = async (output, context) => {
620
- if (output.statusCode >= 300) {
621
- return de_CommandError(output, context);
622
- }
623
- const data = await parseBody(output.body, context);
624
- let contents = {};
625
- contents = de_CreateRepositoryOutput(data, context);
626
- const response = {
627
- $metadata: deserializeMetadata(output),
628
- ...contents,
629
- };
630
- return response;
631
- };
632
- export const de_CreateUnreferencedMergeCommitCommand = async (output, context) => {
633
- if (output.statusCode >= 300) {
634
- return de_CommandError(output, context);
635
- }
636
- const data = await parseBody(output.body, context);
637
- let contents = {};
638
- contents = _json(data);
639
- const response = {
640
- $metadata: deserializeMetadata(output),
641
- ...contents,
642
- };
643
- return response;
644
- };
645
- export const de_DeleteApprovalRuleTemplateCommand = async (output, context) => {
646
- if (output.statusCode >= 300) {
647
- return de_CommandError(output, context);
648
- }
649
- const data = await parseBody(output.body, context);
650
- let contents = {};
651
- contents = _json(data);
652
- const response = {
653
- $metadata: deserializeMetadata(output),
654
- ...contents,
655
- };
656
- return response;
657
- };
658
- export const de_DeleteBranchCommand = async (output, context) => {
659
- if (output.statusCode >= 300) {
660
- return de_CommandError(output, context);
661
- }
662
- const data = await parseBody(output.body, context);
663
- let contents = {};
664
- contents = _json(data);
665
- const response = {
666
- $metadata: deserializeMetadata(output),
667
- ...contents,
668
- };
669
- return response;
670
- };
671
- export const de_DeleteCommentContentCommand = async (output, context) => {
672
- if (output.statusCode >= 300) {
673
- return de_CommandError(output, context);
674
- }
675
- const data = await parseBody(output.body, context);
676
- let contents = {};
677
- contents = de_DeleteCommentContentOutput(data, context);
678
- const response = {
679
- $metadata: deserializeMetadata(output),
680
- ...contents,
681
- };
682
- return response;
683
- };
684
- export const de_DeleteFileCommand = async (output, context) => {
685
- if (output.statusCode >= 300) {
686
- return de_CommandError(output, context);
687
- }
688
- const data = await parseBody(output.body, context);
689
- let contents = {};
690
- contents = _json(data);
691
- const response = {
692
- $metadata: deserializeMetadata(output),
693
- ...contents,
694
- };
695
- return response;
696
- };
697
- export const de_DeletePullRequestApprovalRuleCommand = async (output, context) => {
698
- if (output.statusCode >= 300) {
699
- return de_CommandError(output, context);
700
- }
701
- const data = await parseBody(output.body, context);
702
- let contents = {};
703
- contents = _json(data);
704
- const response = {
705
- $metadata: deserializeMetadata(output),
706
- ...contents,
707
- };
708
- return response;
709
- };
710
- export const de_DeleteRepositoryCommand = async (output, context) => {
711
- if (output.statusCode >= 300) {
712
- return de_CommandError(output, context);
713
- }
714
- const data = await parseBody(output.body, context);
715
- let contents = {};
716
- contents = _json(data);
717
- const response = {
718
- $metadata: deserializeMetadata(output),
719
- ...contents,
720
- };
721
- return response;
722
- };
723
- export const de_DescribeMergeConflictsCommand = async (output, context) => {
724
- if (output.statusCode >= 300) {
725
- return de_CommandError(output, context);
726
- }
727
- const data = await parseBody(output.body, context);
728
- let contents = {};
729
- contents = _json(data);
730
- const response = {
731
- $metadata: deserializeMetadata(output),
732
- ...contents,
733
- };
734
- return response;
735
- };
736
- export const de_DescribePullRequestEventsCommand = async (output, context) => {
737
- if (output.statusCode >= 300) {
738
- return de_CommandError(output, context);
739
- }
740
- const data = await parseBody(output.body, context);
741
- let contents = {};
742
- contents = de_DescribePullRequestEventsOutput(data, context);
743
- const response = {
744
- $metadata: deserializeMetadata(output),
745
- ...contents,
746
- };
747
- return response;
748
- };
749
- export const de_DisassociateApprovalRuleTemplateFromRepositoryCommand = async (output, context) => {
750
- if (output.statusCode >= 300) {
751
- return de_CommandError(output, context);
752
- }
753
- await collectBody(output.body, context);
754
- const response = {
755
- $metadata: deserializeMetadata(output),
756
- };
757
- return response;
758
- };
759
- export const de_EvaluatePullRequestApprovalRulesCommand = async (output, context) => {
760
- if (output.statusCode >= 300) {
761
- return de_CommandError(output, context);
762
- }
763
- const data = await parseBody(output.body, context);
764
- let contents = {};
765
- contents = _json(data);
766
- const response = {
767
- $metadata: deserializeMetadata(output),
768
- ...contents,
769
- };
770
- return response;
771
- };
772
- export const de_GetApprovalRuleTemplateCommand = async (output, context) => {
773
- if (output.statusCode >= 300) {
774
- return de_CommandError(output, context);
775
- }
776
- const data = await parseBody(output.body, context);
777
- let contents = {};
778
- contents = de_GetApprovalRuleTemplateOutput(data, context);
779
- const response = {
780
- $metadata: deserializeMetadata(output),
781
- ...contents,
782
- };
783
- return response;
784
- };
785
- export const de_GetBlobCommand = async (output, context) => {
786
- if (output.statusCode >= 300) {
787
- return de_CommandError(output, context);
788
- }
789
- const data = await parseBody(output.body, context);
790
- let contents = {};
791
- contents = de_GetBlobOutput(data, context);
792
- const response = {
793
- $metadata: deserializeMetadata(output),
794
- ...contents,
795
- };
796
- return response;
797
- };
798
- export const de_GetBranchCommand = async (output, context) => {
799
- if (output.statusCode >= 300) {
800
- return de_CommandError(output, context);
801
- }
802
- const data = await parseBody(output.body, context);
803
- let contents = {};
804
- contents = _json(data);
805
- const response = {
806
- $metadata: deserializeMetadata(output),
807
- ...contents,
808
- };
809
- return response;
810
- };
811
- export const de_GetCommentCommand = async (output, context) => {
812
- if (output.statusCode >= 300) {
813
- return de_CommandError(output, context);
814
- }
815
- const data = await parseBody(output.body, context);
816
- let contents = {};
817
- contents = de_GetCommentOutput(data, context);
818
- const response = {
819
- $metadata: deserializeMetadata(output),
820
- ...contents,
821
- };
822
- return response;
823
- };
824
- export const de_GetCommentReactionsCommand = async (output, context) => {
825
- if (output.statusCode >= 300) {
826
- return de_CommandError(output, context);
827
- }
828
- const data = await parseBody(output.body, context);
829
- let contents = {};
830
- contents = _json(data);
831
- const response = {
832
- $metadata: deserializeMetadata(output),
833
- ...contents,
834
- };
835
- return response;
836
- };
837
- export const de_GetCommentsForComparedCommitCommand = async (output, context) => {
838
- if (output.statusCode >= 300) {
839
- return de_CommandError(output, context);
840
- }
841
- const data = await parseBody(output.body, context);
842
- let contents = {};
843
- contents = de_GetCommentsForComparedCommitOutput(data, context);
844
- const response = {
845
- $metadata: deserializeMetadata(output),
846
- ...contents,
847
- };
848
- return response;
849
- };
850
- export const de_GetCommentsForPullRequestCommand = async (output, context) => {
851
- if (output.statusCode >= 300) {
852
- return de_CommandError(output, context);
853
- }
854
- const data = await parseBody(output.body, context);
855
- let contents = {};
856
- contents = de_GetCommentsForPullRequestOutput(data, context);
857
- const response = {
858
- $metadata: deserializeMetadata(output),
859
- ...contents,
860
- };
861
- return response;
862
- };
863
- export const de_GetCommitCommand = async (output, context) => {
864
- if (output.statusCode >= 300) {
865
- return de_CommandError(output, context);
866
- }
867
- const data = await parseBody(output.body, context);
868
- let contents = {};
869
- contents = _json(data);
870
- const response = {
871
- $metadata: deserializeMetadata(output),
872
- ...contents,
873
- };
874
- return response;
875
- };
876
- export const de_GetDifferencesCommand = async (output, context) => {
877
- if (output.statusCode >= 300) {
878
- return de_CommandError(output, context);
879
- }
880
- const data = await parseBody(output.body, context);
881
- let contents = {};
882
- contents = _json(data);
883
- const response = {
884
- $metadata: deserializeMetadata(output),
885
- ...contents,
886
- };
887
- return response;
888
- };
889
- export const de_GetFileCommand = async (output, context) => {
890
- if (output.statusCode >= 300) {
891
- return de_CommandError(output, context);
892
- }
893
- const data = await parseBody(output.body, context);
894
- let contents = {};
895
- contents = de_GetFileOutput(data, context);
896
- const response = {
897
- $metadata: deserializeMetadata(output),
898
- ...contents,
899
- };
900
- return response;
901
- };
902
- export const de_GetFolderCommand = async (output, context) => {
903
- if (output.statusCode >= 300) {
904
- return de_CommandError(output, context);
905
- }
906
- const data = await parseBody(output.body, context);
907
- let contents = {};
908
- contents = _json(data);
909
- const response = {
910
- $metadata: deserializeMetadata(output),
911
- ...contents,
912
- };
913
- return response;
914
- };
915
- export const de_GetMergeCommitCommand = async (output, context) => {
916
- if (output.statusCode >= 300) {
917
- return de_CommandError(output, context);
918
- }
919
- const data = await parseBody(output.body, context);
920
- let contents = {};
921
- contents = _json(data);
922
- const response = {
923
- $metadata: deserializeMetadata(output),
924
- ...contents,
925
- };
926
- return response;
927
- };
928
- export const de_GetMergeConflictsCommand = async (output, context) => {
929
- if (output.statusCode >= 300) {
930
- return de_CommandError(output, context);
931
- }
932
- const data = await parseBody(output.body, context);
933
- let contents = {};
934
- contents = _json(data);
935
- const response = {
936
- $metadata: deserializeMetadata(output),
937
- ...contents,
938
- };
939
- return response;
940
- };
941
- export const de_GetMergeOptionsCommand = async (output, context) => {
942
- if (output.statusCode >= 300) {
943
- return de_CommandError(output, context);
944
- }
945
- const data = await parseBody(output.body, context);
946
- let contents = {};
947
- contents = _json(data);
948
- const response = {
949
- $metadata: deserializeMetadata(output),
950
- ...contents,
951
- };
952
- return response;
953
- };
954
- export const de_GetPullRequestCommand = async (output, context) => {
955
- if (output.statusCode >= 300) {
956
- return de_CommandError(output, context);
957
- }
958
- const data = await parseBody(output.body, context);
959
- let contents = {};
960
- contents = de_GetPullRequestOutput(data, context);
961
- const response = {
962
- $metadata: deserializeMetadata(output),
963
- ...contents,
964
- };
965
- return response;
966
- };
967
- export const de_GetPullRequestApprovalStatesCommand = async (output, context) => {
968
- if (output.statusCode >= 300) {
969
- return de_CommandError(output, context);
970
- }
971
- const data = await parseBody(output.body, context);
972
- let contents = {};
973
- contents = _json(data);
974
- const response = {
975
- $metadata: deserializeMetadata(output),
976
- ...contents,
977
- };
978
- return response;
979
- };
980
- export const de_GetPullRequestOverrideStateCommand = async (output, context) => {
981
- if (output.statusCode >= 300) {
982
- return de_CommandError(output, context);
983
- }
984
- const data = await parseBody(output.body, context);
985
- let contents = {};
986
- contents = _json(data);
987
- const response = {
988
- $metadata: deserializeMetadata(output),
989
- ...contents,
990
- };
991
- return response;
992
- };
993
- export const de_GetRepositoryCommand = async (output, context) => {
994
- if (output.statusCode >= 300) {
995
- return de_CommandError(output, context);
996
- }
997
- const data = await parseBody(output.body, context);
998
- let contents = {};
999
- contents = de_GetRepositoryOutput(data, context);
1000
- const response = {
1001
- $metadata: deserializeMetadata(output),
1002
- ...contents,
1003
- };
1004
- return response;
1005
- };
1006
- export const de_GetRepositoryTriggersCommand = async (output, context) => {
1007
- if (output.statusCode >= 300) {
1008
- return de_CommandError(output, context);
1009
- }
1010
- const data = await parseBody(output.body, context);
1011
- let contents = {};
1012
- contents = _json(data);
1013
- const response = {
1014
- $metadata: deserializeMetadata(output),
1015
- ...contents,
1016
- };
1017
- return response;
1018
- };
1019
- export const de_ListApprovalRuleTemplatesCommand = async (output, context) => {
1020
- if (output.statusCode >= 300) {
1021
- return de_CommandError(output, context);
1022
- }
1023
- const data = await parseBody(output.body, context);
1024
- let contents = {};
1025
- contents = _json(data);
1026
- const response = {
1027
- $metadata: deserializeMetadata(output),
1028
- ...contents,
1029
- };
1030
- return response;
1031
- };
1032
- export const de_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = async (output, context) => {
1033
- if (output.statusCode >= 300) {
1034
- return de_CommandError(output, context);
1035
- }
1036
- const data = await parseBody(output.body, context);
1037
- let contents = {};
1038
- contents = _json(data);
1039
- const response = {
1040
- $metadata: deserializeMetadata(output),
1041
- ...contents,
1042
- };
1043
- return response;
1044
- };
1045
- export const de_ListBranchesCommand = async (output, context) => {
1046
- if (output.statusCode >= 300) {
1047
- return de_CommandError(output, context);
1048
- }
1049
- const data = await parseBody(output.body, context);
1050
- let contents = {};
1051
- contents = _json(data);
1052
- const response = {
1053
- $metadata: deserializeMetadata(output),
1054
- ...contents,
1055
- };
1056
- return response;
1057
- };
1058
- export const de_ListFileCommitHistoryCommand = async (output, context) => {
1059
- if (output.statusCode >= 300) {
1060
- return de_CommandError(output, context);
1061
- }
1062
- const data = await parseBody(output.body, context);
1063
- let contents = {};
1064
- contents = _json(data);
1065
- const response = {
1066
- $metadata: deserializeMetadata(output),
1067
- ...contents,
1068
- };
1069
- return response;
1070
- };
1071
- export const de_ListPullRequestsCommand = async (output, context) => {
1072
- if (output.statusCode >= 300) {
1073
- return de_CommandError(output, context);
1074
- }
1075
- const data = await parseBody(output.body, context);
1076
- let contents = {};
1077
- contents = _json(data);
1078
- const response = {
1079
- $metadata: deserializeMetadata(output),
1080
- ...contents,
1081
- };
1082
- return response;
1083
- };
1084
- export const de_ListRepositoriesCommand = async (output, context) => {
1085
- if (output.statusCode >= 300) {
1086
- return de_CommandError(output, context);
1087
- }
1088
- const data = await parseBody(output.body, context);
1089
- let contents = {};
1090
- contents = _json(data);
1091
- const response = {
1092
- $metadata: deserializeMetadata(output),
1093
- ...contents,
1094
- };
1095
- return response;
1096
- };
1097
- export const de_ListRepositoriesForApprovalRuleTemplateCommand = async (output, context) => {
1098
- if (output.statusCode >= 300) {
1099
- return de_CommandError(output, context);
1100
- }
1101
- const data = await parseBody(output.body, context);
1102
- let contents = {};
1103
- contents = _json(data);
1104
- const response = {
1105
- $metadata: deserializeMetadata(output),
1106
- ...contents,
1107
- };
1108
- return response;
1109
- };
1110
- export const de_ListTagsForResourceCommand = async (output, context) => {
1111
- if (output.statusCode >= 300) {
1112
- return de_CommandError(output, context);
1113
- }
1114
- const data = await parseBody(output.body, context);
1115
- let contents = {};
1116
- contents = _json(data);
1117
- const response = {
1118
- $metadata: deserializeMetadata(output),
1119
- ...contents,
1120
- };
1121
- return response;
1122
- };
1123
- export const de_MergeBranchesByFastForwardCommand = async (output, context) => {
1124
- if (output.statusCode >= 300) {
1125
- return de_CommandError(output, context);
1126
- }
1127
- const data = await parseBody(output.body, context);
1128
- let contents = {};
1129
- contents = _json(data);
1130
- const response = {
1131
- $metadata: deserializeMetadata(output),
1132
- ...contents,
1133
- };
1134
- return response;
1135
- };
1136
- export const de_MergeBranchesBySquashCommand = async (output, context) => {
1137
- if (output.statusCode >= 300) {
1138
- return de_CommandError(output, context);
1139
- }
1140
- const data = await parseBody(output.body, context);
1141
- let contents = {};
1142
- contents = _json(data);
1143
- const response = {
1144
- $metadata: deserializeMetadata(output),
1145
- ...contents,
1146
- };
1147
- return response;
1148
- };
1149
- export const de_MergeBranchesByThreeWayCommand = async (output, context) => {
1150
- if (output.statusCode >= 300) {
1151
- return de_CommandError(output, context);
1152
- }
1153
- const data = await parseBody(output.body, context);
1154
- let contents = {};
1155
- contents = _json(data);
1156
- const response = {
1157
- $metadata: deserializeMetadata(output),
1158
- ...contents,
1159
- };
1160
- return response;
1161
- };
1162
- export const de_MergePullRequestByFastForwardCommand = async (output, context) => {
1163
- if (output.statusCode >= 300) {
1164
- return de_CommandError(output, context);
1165
- }
1166
- const data = await parseBody(output.body, context);
1167
- let contents = {};
1168
- contents = de_MergePullRequestByFastForwardOutput(data, context);
1169
- const response = {
1170
- $metadata: deserializeMetadata(output),
1171
- ...contents,
1172
- };
1173
- return response;
1174
- };
1175
- export const de_MergePullRequestBySquashCommand = async (output, context) => {
1176
- if (output.statusCode >= 300) {
1177
- return de_CommandError(output, context);
1178
- }
1179
- const data = await parseBody(output.body, context);
1180
- let contents = {};
1181
- contents = de_MergePullRequestBySquashOutput(data, context);
1182
- const response = {
1183
- $metadata: deserializeMetadata(output),
1184
- ...contents,
1185
- };
1186
- return response;
1187
- };
1188
- export const de_MergePullRequestByThreeWayCommand = async (output, context) => {
1189
- if (output.statusCode >= 300) {
1190
- return de_CommandError(output, context);
1191
- }
1192
- const data = await parseBody(output.body, context);
1193
- let contents = {};
1194
- contents = de_MergePullRequestByThreeWayOutput(data, context);
1195
- const response = {
1196
- $metadata: deserializeMetadata(output),
1197
- ...contents,
1198
- };
1199
- return response;
1200
- };
1201
- export const de_OverridePullRequestApprovalRulesCommand = async (output, context) => {
1202
- if (output.statusCode >= 300) {
1203
- return de_CommandError(output, context);
1204
- }
1205
- await collectBody(output.body, context);
1206
- const response = {
1207
- $metadata: deserializeMetadata(output),
1208
- };
1209
- return response;
1210
- };
1211
- export const de_PostCommentForComparedCommitCommand = async (output, context) => {
1212
- if (output.statusCode >= 300) {
1213
- return de_CommandError(output, context);
1214
- }
1215
- const data = await parseBody(output.body, context);
1216
- let contents = {};
1217
- contents = de_PostCommentForComparedCommitOutput(data, context);
1218
- const response = {
1219
- $metadata: deserializeMetadata(output),
1220
- ...contents,
1221
- };
1222
- return response;
1223
- };
1224
- export const de_PostCommentForPullRequestCommand = async (output, context) => {
1225
- if (output.statusCode >= 300) {
1226
- return de_CommandError(output, context);
1227
- }
1228
- const data = await parseBody(output.body, context);
1229
- let contents = {};
1230
- contents = de_PostCommentForPullRequestOutput(data, context);
1231
- const response = {
1232
- $metadata: deserializeMetadata(output),
1233
- ...contents,
1234
- };
1235
- return response;
1236
- };
1237
- export const de_PostCommentReplyCommand = async (output, context) => {
1238
- if (output.statusCode >= 300) {
1239
- return de_CommandError(output, context);
1240
- }
1241
- const data = await parseBody(output.body, context);
1242
- let contents = {};
1243
- contents = de_PostCommentReplyOutput(data, context);
1244
- const response = {
1245
- $metadata: deserializeMetadata(output),
1246
- ...contents,
1247
- };
1248
- return response;
1249
- };
1250
- export const de_PutCommentReactionCommand = async (output, context) => {
1251
- if (output.statusCode >= 300) {
1252
- return de_CommandError(output, context);
1253
- }
1254
- await collectBody(output.body, context);
1255
- const response = {
1256
- $metadata: deserializeMetadata(output),
1257
- };
1258
- return response;
1259
- };
1260
- export const de_PutFileCommand = async (output, context) => {
1261
- if (output.statusCode >= 300) {
1262
- return de_CommandError(output, context);
1263
- }
1264
- const data = await parseBody(output.body, context);
1265
- let contents = {};
1266
- contents = _json(data);
1267
- const response = {
1268
- $metadata: deserializeMetadata(output),
1269
- ...contents,
1270
- };
1271
- return response;
1272
- };
1273
- export const de_PutRepositoryTriggersCommand = async (output, context) => {
1274
- if (output.statusCode >= 300) {
1275
- return de_CommandError(output, context);
1276
- }
1277
- const data = await parseBody(output.body, context);
1278
- let contents = {};
1279
- contents = _json(data);
1280
- const response = {
1281
- $metadata: deserializeMetadata(output),
1282
- ...contents,
1283
- };
1284
- return response;
1285
- };
1286
- export const de_TagResourceCommand = async (output, context) => {
1287
- if (output.statusCode >= 300) {
1288
- return de_CommandError(output, context);
1289
- }
1290
- await collectBody(output.body, context);
1291
- const response = {
1292
- $metadata: deserializeMetadata(output),
1293
- };
1294
- return response;
1295
- };
1296
- export const de_TestRepositoryTriggersCommand = async (output, context) => {
1297
- if (output.statusCode >= 300) {
1298
- return de_CommandError(output, context);
1299
- }
1300
- const data = await parseBody(output.body, context);
1301
- let contents = {};
1302
- contents = _json(data);
1303
- const response = {
1304
- $metadata: deserializeMetadata(output),
1305
- ...contents,
1306
- };
1307
- return response;
1308
- };
1309
- export const de_UntagResourceCommand = async (output, context) => {
1310
- if (output.statusCode >= 300) {
1311
- return de_CommandError(output, context);
1312
- }
1313
- await collectBody(output.body, context);
1314
- const response = {
1315
- $metadata: deserializeMetadata(output),
1316
- };
1317
- return response;
1318
- };
1319
- export const de_UpdateApprovalRuleTemplateContentCommand = async (output, context) => {
1320
- if (output.statusCode >= 300) {
1321
- return de_CommandError(output, context);
1322
- }
1323
- const data = await parseBody(output.body, context);
1324
- let contents = {};
1325
- contents = de_UpdateApprovalRuleTemplateContentOutput(data, context);
1326
- const response = {
1327
- $metadata: deserializeMetadata(output),
1328
- ...contents,
1329
- };
1330
- return response;
1331
- };
1332
- export const de_UpdateApprovalRuleTemplateDescriptionCommand = async (output, context) => {
1333
- if (output.statusCode >= 300) {
1334
- return de_CommandError(output, context);
1335
- }
1336
- const data = await parseBody(output.body, context);
1337
- let contents = {};
1338
- contents = de_UpdateApprovalRuleTemplateDescriptionOutput(data, context);
1339
- const response = {
1340
- $metadata: deserializeMetadata(output),
1341
- ...contents,
1342
- };
1343
- return response;
1344
- };
1345
- export const de_UpdateApprovalRuleTemplateNameCommand = async (output, context) => {
1346
- if (output.statusCode >= 300) {
1347
- return de_CommandError(output, context);
1348
- }
1349
- const data = await parseBody(output.body, context);
1350
- let contents = {};
1351
- contents = de_UpdateApprovalRuleTemplateNameOutput(data, context);
1352
- const response = {
1353
- $metadata: deserializeMetadata(output),
1354
- ...contents,
1355
- };
1356
- return response;
1357
- };
1358
- export const de_UpdateCommentCommand = async (output, context) => {
1359
- if (output.statusCode >= 300) {
1360
- return de_CommandError(output, context);
1361
- }
1362
- const data = await parseBody(output.body, context);
1363
- let contents = {};
1364
- contents = de_UpdateCommentOutput(data, context);
1365
- const response = {
1366
- $metadata: deserializeMetadata(output),
1367
- ...contents,
1368
- };
1369
- return response;
1370
- };
1371
- export const de_UpdateDefaultBranchCommand = async (output, context) => {
1372
- if (output.statusCode >= 300) {
1373
- return de_CommandError(output, context);
1374
- }
1375
- await collectBody(output.body, context);
1376
- const response = {
1377
- $metadata: deserializeMetadata(output),
1378
- };
1379
- return response;
1380
- };
1381
- export const de_UpdatePullRequestApprovalRuleContentCommand = async (output, context) => {
1382
- if (output.statusCode >= 300) {
1383
- return de_CommandError(output, context);
1384
- }
1385
- const data = await parseBody(output.body, context);
1386
- let contents = {};
1387
- contents = de_UpdatePullRequestApprovalRuleContentOutput(data, context);
1388
- const response = {
1389
- $metadata: deserializeMetadata(output),
1390
- ...contents,
1391
- };
1392
- return response;
1393
- };
1394
- export const de_UpdatePullRequestApprovalStateCommand = async (output, context) => {
1395
- if (output.statusCode >= 300) {
1396
- return de_CommandError(output, context);
1397
- }
1398
- await collectBody(output.body, context);
1399
- const response = {
1400
- $metadata: deserializeMetadata(output),
1401
- };
1402
- return response;
1403
- };
1404
- export const de_UpdatePullRequestDescriptionCommand = async (output, context) => {
1405
- if (output.statusCode >= 300) {
1406
- return de_CommandError(output, context);
1407
- }
1408
- const data = await parseBody(output.body, context);
1409
- let contents = {};
1410
- contents = de_UpdatePullRequestDescriptionOutput(data, context);
1411
- const response = {
1412
- $metadata: deserializeMetadata(output),
1413
- ...contents,
1414
- };
1415
- return response;
1416
- };
1417
- export const de_UpdatePullRequestStatusCommand = async (output, context) => {
1418
- if (output.statusCode >= 300) {
1419
- return de_CommandError(output, context);
1420
- }
1421
- const data = await parseBody(output.body, context);
1422
- let contents = {};
1423
- contents = de_UpdatePullRequestStatusOutput(data, context);
1424
- const response = {
1425
- $metadata: deserializeMetadata(output),
1426
- ...contents,
1427
- };
1428
- return response;
1429
- };
1430
- export const de_UpdatePullRequestTitleCommand = async (output, context) => {
1431
- if (output.statusCode >= 300) {
1432
- return de_CommandError(output, context);
1433
- }
1434
- const data = await parseBody(output.body, context);
1435
- let contents = {};
1436
- contents = de_UpdatePullRequestTitleOutput(data, context);
1437
- const response = {
1438
- $metadata: deserializeMetadata(output),
1439
- ...contents,
1440
- };
1441
- return response;
1442
- };
1443
- export const de_UpdateRepositoryDescriptionCommand = async (output, context) => {
1444
- if (output.statusCode >= 300) {
1445
- return de_CommandError(output, context);
1446
- }
1447
- await collectBody(output.body, context);
1448
- const response = {
1449
- $metadata: deserializeMetadata(output),
1450
- };
1451
- return response;
1452
- };
1453
- export const de_UpdateRepositoryEncryptionKeyCommand = async (output, context) => {
1454
- if (output.statusCode >= 300) {
1455
- return de_CommandError(output, context);
1456
- }
1457
- const data = await parseBody(output.body, context);
1458
- let contents = {};
1459
- contents = _json(data);
1460
- const response = {
1461
- $metadata: deserializeMetadata(output),
1462
- ...contents,
1463
- };
1464
- return response;
1465
- };
1466
- export const de_UpdateRepositoryNameCommand = async (output, context) => {
1467
- if (output.statusCode >= 300) {
1468
- return de_CommandError(output, context);
1469
- }
1470
- await collectBody(output.body, context);
1471
- const response = {
1472
- $metadata: deserializeMetadata(output),
1473
- };
1474
- return response;
1475
- };
1476
- const de_CommandError = async (output, context) => {
1477
- const parsedOutput = {
1478
- ...output,
1479
- body: await parseErrorBody(output.body, context),
1480
- };
1481
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1482
- switch (errorCode) {
1483
- case "ApprovalRuleTemplateDoesNotExistException":
1484
- case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
1485
- throw await de_ApprovalRuleTemplateDoesNotExistExceptionRes(parsedOutput, context);
1486
- case "ApprovalRuleTemplateNameRequiredException":
1487
- case "com.amazonaws.codecommit#ApprovalRuleTemplateNameRequiredException":
1488
- throw await de_ApprovalRuleTemplateNameRequiredExceptionRes(parsedOutput, context);
1489
- case "EncryptionIntegrityChecksFailedException":
1490
- case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
1491
- throw await de_EncryptionIntegrityChecksFailedExceptionRes(parsedOutput, context);
1492
- case "EncryptionKeyAccessDeniedException":
1493
- case "com.amazonaws.codecommit#EncryptionKeyAccessDeniedException":
1494
- throw await de_EncryptionKeyAccessDeniedExceptionRes(parsedOutput, context);
1495
- case "EncryptionKeyDisabledException":
1496
- case "com.amazonaws.codecommit#EncryptionKeyDisabledException":
1497
- throw await de_EncryptionKeyDisabledExceptionRes(parsedOutput, context);
1498
- case "EncryptionKeyNotFoundException":
1499
- case "com.amazonaws.codecommit#EncryptionKeyNotFoundException":
1500
- throw await de_EncryptionKeyNotFoundExceptionRes(parsedOutput, context);
1501
- case "EncryptionKeyUnavailableException":
1502
- case "com.amazonaws.codecommit#EncryptionKeyUnavailableException":
1503
- throw await de_EncryptionKeyUnavailableExceptionRes(parsedOutput, context);
1504
- case "InvalidApprovalRuleTemplateNameException":
1505
- case "com.amazonaws.codecommit#InvalidApprovalRuleTemplateNameException":
1506
- throw await de_InvalidApprovalRuleTemplateNameExceptionRes(parsedOutput, context);
1507
- case "InvalidRepositoryNameException":
1508
- case "com.amazonaws.codecommit#InvalidRepositoryNameException":
1509
- throw await de_InvalidRepositoryNameExceptionRes(parsedOutput, context);
1510
- case "MaximumRuleTemplatesAssociatedWithRepositoryException":
1511
- case "com.amazonaws.codecommit#MaximumRuleTemplatesAssociatedWithRepositoryException":
1512
- throw await de_MaximumRuleTemplatesAssociatedWithRepositoryExceptionRes(parsedOutput, context);
1513
- case "RepositoryDoesNotExistException":
1514
- case "com.amazonaws.codecommit#RepositoryDoesNotExistException":
1515
- throw await de_RepositoryDoesNotExistExceptionRes(parsedOutput, context);
1516
- case "RepositoryNameRequiredException":
1517
- case "com.amazonaws.codecommit#RepositoryNameRequiredException":
1518
- throw await de_RepositoryNameRequiredExceptionRes(parsedOutput, context);
1519
- case "MaximumRepositoryNamesExceededException":
1520
- case "com.amazonaws.codecommit#MaximumRepositoryNamesExceededException":
1521
- throw await de_MaximumRepositoryNamesExceededExceptionRes(parsedOutput, context);
1522
- case "RepositoryNamesRequiredException":
1523
- case "com.amazonaws.codecommit#RepositoryNamesRequiredException":
1524
- throw await de_RepositoryNamesRequiredExceptionRes(parsedOutput, context);
1525
- case "CommitDoesNotExistException":
1526
- case "com.amazonaws.codecommit#CommitDoesNotExistException":
1527
- throw await de_CommitDoesNotExistExceptionRes(parsedOutput, context);
1528
- case "CommitRequiredException":
1529
- case "com.amazonaws.codecommit#CommitRequiredException":
1530
- throw await de_CommitRequiredExceptionRes(parsedOutput, context);
1531
- case "InvalidCommitException":
1532
- case "com.amazonaws.codecommit#InvalidCommitException":
1533
- throw await de_InvalidCommitExceptionRes(parsedOutput, context);
1534
- case "InvalidConflictDetailLevelException":
1535
- case "com.amazonaws.codecommit#InvalidConflictDetailLevelException":
1536
- throw await de_InvalidConflictDetailLevelExceptionRes(parsedOutput, context);
1537
- case "InvalidConflictResolutionStrategyException":
1538
- case "com.amazonaws.codecommit#InvalidConflictResolutionStrategyException":
1539
- throw await de_InvalidConflictResolutionStrategyExceptionRes(parsedOutput, context);
1540
- case "InvalidContinuationTokenException":
1541
- case "com.amazonaws.codecommit#InvalidContinuationTokenException":
1542
- throw await de_InvalidContinuationTokenExceptionRes(parsedOutput, context);
1543
- case "InvalidMaxConflictFilesException":
1544
- case "com.amazonaws.codecommit#InvalidMaxConflictFilesException":
1545
- throw await de_InvalidMaxConflictFilesExceptionRes(parsedOutput, context);
1546
- case "InvalidMaxMergeHunksException":
1547
- case "com.amazonaws.codecommit#InvalidMaxMergeHunksException":
1548
- throw await de_InvalidMaxMergeHunksExceptionRes(parsedOutput, context);
1549
- case "InvalidMergeOptionException":
1550
- case "com.amazonaws.codecommit#InvalidMergeOptionException":
1551
- throw await de_InvalidMergeOptionExceptionRes(parsedOutput, context);
1552
- case "MaximumFileContentToLoadExceededException":
1553
- case "com.amazonaws.codecommit#MaximumFileContentToLoadExceededException":
1554
- throw await de_MaximumFileContentToLoadExceededExceptionRes(parsedOutput, context);
1555
- case "MaximumItemsToCompareExceededException":
1556
- case "com.amazonaws.codecommit#MaximumItemsToCompareExceededException":
1557
- throw await de_MaximumItemsToCompareExceededExceptionRes(parsedOutput, context);
1558
- case "MergeOptionRequiredException":
1559
- case "com.amazonaws.codecommit#MergeOptionRequiredException":
1560
- throw await de_MergeOptionRequiredExceptionRes(parsedOutput, context);
1561
- case "TipsDivergenceExceededException":
1562
- case "com.amazonaws.codecommit#TipsDivergenceExceededException":
1563
- throw await de_TipsDivergenceExceededExceptionRes(parsedOutput, context);
1564
- case "CommitIdsLimitExceededException":
1565
- case "com.amazonaws.codecommit#CommitIdsLimitExceededException":
1566
- throw await de_CommitIdsLimitExceededExceptionRes(parsedOutput, context);
1567
- case "CommitIdsListRequiredException":
1568
- case "com.amazonaws.codecommit#CommitIdsListRequiredException":
1569
- throw await de_CommitIdsListRequiredExceptionRes(parsedOutput, context);
1570
- case "ApprovalRuleTemplateContentRequiredException":
1571
- case "com.amazonaws.codecommit#ApprovalRuleTemplateContentRequiredException":
1572
- throw await de_ApprovalRuleTemplateContentRequiredExceptionRes(parsedOutput, context);
1573
- case "ApprovalRuleTemplateNameAlreadyExistsException":
1574
- case "com.amazonaws.codecommit#ApprovalRuleTemplateNameAlreadyExistsException":
1575
- throw await de_ApprovalRuleTemplateNameAlreadyExistsExceptionRes(parsedOutput, context);
1576
- case "InvalidApprovalRuleTemplateContentException":
1577
- case "com.amazonaws.codecommit#InvalidApprovalRuleTemplateContentException":
1578
- throw await de_InvalidApprovalRuleTemplateContentExceptionRes(parsedOutput, context);
1579
- case "InvalidApprovalRuleTemplateDescriptionException":
1580
- case "com.amazonaws.codecommit#InvalidApprovalRuleTemplateDescriptionException":
1581
- throw await de_InvalidApprovalRuleTemplateDescriptionExceptionRes(parsedOutput, context);
1582
- case "NumberOfRuleTemplatesExceededException":
1583
- case "com.amazonaws.codecommit#NumberOfRuleTemplatesExceededException":
1584
- throw await de_NumberOfRuleTemplatesExceededExceptionRes(parsedOutput, context);
1585
- case "BranchNameExistsException":
1586
- case "com.amazonaws.codecommit#BranchNameExistsException":
1587
- throw await de_BranchNameExistsExceptionRes(parsedOutput, context);
1588
- case "BranchNameRequiredException":
1589
- case "com.amazonaws.codecommit#BranchNameRequiredException":
1590
- throw await de_BranchNameRequiredExceptionRes(parsedOutput, context);
1591
- case "CommitIdRequiredException":
1592
- case "com.amazonaws.codecommit#CommitIdRequiredException":
1593
- throw await de_CommitIdRequiredExceptionRes(parsedOutput, context);
1594
- case "InvalidBranchNameException":
1595
- case "com.amazonaws.codecommit#InvalidBranchNameException":
1596
- throw await de_InvalidBranchNameExceptionRes(parsedOutput, context);
1597
- case "InvalidCommitIdException":
1598
- case "com.amazonaws.codecommit#InvalidCommitIdException":
1599
- throw await de_InvalidCommitIdExceptionRes(parsedOutput, context);
1600
- case "BranchDoesNotExistException":
1601
- case "com.amazonaws.codecommit#BranchDoesNotExistException":
1602
- throw await de_BranchDoesNotExistExceptionRes(parsedOutput, context);
1603
- case "BranchNameIsTagNameException":
1604
- case "com.amazonaws.codecommit#BranchNameIsTagNameException":
1605
- throw await de_BranchNameIsTagNameExceptionRes(parsedOutput, context);
1606
- case "CommitMessageLengthExceededException":
1607
- case "com.amazonaws.codecommit#CommitMessageLengthExceededException":
1608
- throw await de_CommitMessageLengthExceededExceptionRes(parsedOutput, context);
1609
- case "DirectoryNameConflictsWithFileNameException":
1610
- case "com.amazonaws.codecommit#DirectoryNameConflictsWithFileNameException":
1611
- throw await de_DirectoryNameConflictsWithFileNameExceptionRes(parsedOutput, context);
1612
- case "FileContentAndSourceFileSpecifiedException":
1613
- case "com.amazonaws.codecommit#FileContentAndSourceFileSpecifiedException":
1614
- throw await de_FileContentAndSourceFileSpecifiedExceptionRes(parsedOutput, context);
1615
- case "FileContentSizeLimitExceededException":
1616
- case "com.amazonaws.codecommit#FileContentSizeLimitExceededException":
1617
- throw await de_FileContentSizeLimitExceededExceptionRes(parsedOutput, context);
1618
- case "FileDoesNotExistException":
1619
- case "com.amazonaws.codecommit#FileDoesNotExistException":
1620
- throw await de_FileDoesNotExistExceptionRes(parsedOutput, context);
1621
- case "FileEntryRequiredException":
1622
- case "com.amazonaws.codecommit#FileEntryRequiredException":
1623
- throw await de_FileEntryRequiredExceptionRes(parsedOutput, context);
1624
- case "FileModeRequiredException":
1625
- case "com.amazonaws.codecommit#FileModeRequiredException":
1626
- throw await de_FileModeRequiredExceptionRes(parsedOutput, context);
1627
- case "FileNameConflictsWithDirectoryNameException":
1628
- case "com.amazonaws.codecommit#FileNameConflictsWithDirectoryNameException":
1629
- throw await de_FileNameConflictsWithDirectoryNameExceptionRes(parsedOutput, context);
1630
- case "FilePathConflictsWithSubmodulePathException":
1631
- case "com.amazonaws.codecommit#FilePathConflictsWithSubmodulePathException":
1632
- throw await de_FilePathConflictsWithSubmodulePathExceptionRes(parsedOutput, context);
1633
- case "FolderContentSizeLimitExceededException":
1634
- case "com.amazonaws.codecommit#FolderContentSizeLimitExceededException":
1635
- throw await de_FolderContentSizeLimitExceededExceptionRes(parsedOutput, context);
1636
- case "InvalidDeletionParameterException":
1637
- case "com.amazonaws.codecommit#InvalidDeletionParameterException":
1638
- throw await de_InvalidDeletionParameterExceptionRes(parsedOutput, context);
1639
- case "InvalidEmailException":
1640
- case "com.amazonaws.codecommit#InvalidEmailException":
1641
- throw await de_InvalidEmailExceptionRes(parsedOutput, context);
1642
- case "InvalidFileModeException":
1643
- case "com.amazonaws.codecommit#InvalidFileModeException":
1644
- throw await de_InvalidFileModeExceptionRes(parsedOutput, context);
1645
- case "InvalidParentCommitIdException":
1646
- case "com.amazonaws.codecommit#InvalidParentCommitIdException":
1647
- throw await de_InvalidParentCommitIdExceptionRes(parsedOutput, context);
1648
- case "InvalidPathException":
1649
- case "com.amazonaws.codecommit#InvalidPathException":
1650
- throw await de_InvalidPathExceptionRes(parsedOutput, context);
1651
- case "MaximumFileEntriesExceededException":
1652
- case "com.amazonaws.codecommit#MaximumFileEntriesExceededException":
1653
- throw await de_MaximumFileEntriesExceededExceptionRes(parsedOutput, context);
1654
- case "NameLengthExceededException":
1655
- case "com.amazonaws.codecommit#NameLengthExceededException":
1656
- throw await de_NameLengthExceededExceptionRes(parsedOutput, context);
1657
- case "NoChangeException":
1658
- case "com.amazonaws.codecommit#NoChangeException":
1659
- throw await de_NoChangeExceptionRes(parsedOutput, context);
1660
- case "ParentCommitDoesNotExistException":
1661
- case "com.amazonaws.codecommit#ParentCommitDoesNotExistException":
1662
- throw await de_ParentCommitDoesNotExistExceptionRes(parsedOutput, context);
1663
- case "ParentCommitIdOutdatedException":
1664
- case "com.amazonaws.codecommit#ParentCommitIdOutdatedException":
1665
- throw await de_ParentCommitIdOutdatedExceptionRes(parsedOutput, context);
1666
- case "ParentCommitIdRequiredException":
1667
- case "com.amazonaws.codecommit#ParentCommitIdRequiredException":
1668
- throw await de_ParentCommitIdRequiredExceptionRes(parsedOutput, context);
1669
- case "PathRequiredException":
1670
- case "com.amazonaws.codecommit#PathRequiredException":
1671
- throw await de_PathRequiredExceptionRes(parsedOutput, context);
1672
- case "PutFileEntryConflictException":
1673
- case "com.amazonaws.codecommit#PutFileEntryConflictException":
1674
- throw await de_PutFileEntryConflictExceptionRes(parsedOutput, context);
1675
- case "RestrictedSourceFileException":
1676
- case "com.amazonaws.codecommit#RestrictedSourceFileException":
1677
- throw await de_RestrictedSourceFileExceptionRes(parsedOutput, context);
1678
- case "SamePathRequestException":
1679
- case "com.amazonaws.codecommit#SamePathRequestException":
1680
- throw await de_SamePathRequestExceptionRes(parsedOutput, context);
1681
- case "SourceFileOrContentRequiredException":
1682
- case "com.amazonaws.codecommit#SourceFileOrContentRequiredException":
1683
- throw await de_SourceFileOrContentRequiredExceptionRes(parsedOutput, context);
1684
- case "ClientRequestTokenRequiredException":
1685
- case "com.amazonaws.codecommit#ClientRequestTokenRequiredException":
1686
- throw await de_ClientRequestTokenRequiredExceptionRes(parsedOutput, context);
1687
- case "IdempotencyParameterMismatchException":
1688
- case "com.amazonaws.codecommit#IdempotencyParameterMismatchException":
1689
- throw await de_IdempotencyParameterMismatchExceptionRes(parsedOutput, context);
1690
- case "InvalidClientRequestTokenException":
1691
- case "com.amazonaws.codecommit#InvalidClientRequestTokenException":
1692
- throw await de_InvalidClientRequestTokenExceptionRes(parsedOutput, context);
1693
- case "InvalidDescriptionException":
1694
- case "com.amazonaws.codecommit#InvalidDescriptionException":
1695
- throw await de_InvalidDescriptionExceptionRes(parsedOutput, context);
1696
- case "InvalidReferenceNameException":
1697
- case "com.amazonaws.codecommit#InvalidReferenceNameException":
1698
- throw await de_InvalidReferenceNameExceptionRes(parsedOutput, context);
1699
- case "InvalidTargetException":
1700
- case "com.amazonaws.codecommit#InvalidTargetException":
1701
- throw await de_InvalidTargetExceptionRes(parsedOutput, context);
1702
- case "InvalidTargetsException":
1703
- case "com.amazonaws.codecommit#InvalidTargetsException":
1704
- throw await de_InvalidTargetsExceptionRes(parsedOutput, context);
1705
- case "InvalidTitleException":
1706
- case "com.amazonaws.codecommit#InvalidTitleException":
1707
- throw await de_InvalidTitleExceptionRes(parsedOutput, context);
1708
- case "MaximumOpenPullRequestsExceededException":
1709
- case "com.amazonaws.codecommit#MaximumOpenPullRequestsExceededException":
1710
- throw await de_MaximumOpenPullRequestsExceededExceptionRes(parsedOutput, context);
1711
- case "MultipleRepositoriesInPullRequestException":
1712
- case "com.amazonaws.codecommit#MultipleRepositoriesInPullRequestException":
1713
- throw await de_MultipleRepositoriesInPullRequestExceptionRes(parsedOutput, context);
1714
- case "ReferenceDoesNotExistException":
1715
- case "com.amazonaws.codecommit#ReferenceDoesNotExistException":
1716
- throw await de_ReferenceDoesNotExistExceptionRes(parsedOutput, context);
1717
- case "ReferenceNameRequiredException":
1718
- case "com.amazonaws.codecommit#ReferenceNameRequiredException":
1719
- throw await de_ReferenceNameRequiredExceptionRes(parsedOutput, context);
1720
- case "ReferenceTypeNotSupportedException":
1721
- case "com.amazonaws.codecommit#ReferenceTypeNotSupportedException":
1722
- throw await de_ReferenceTypeNotSupportedExceptionRes(parsedOutput, context);
1723
- case "SourceAndDestinationAreSameException":
1724
- case "com.amazonaws.codecommit#SourceAndDestinationAreSameException":
1725
- throw await de_SourceAndDestinationAreSameExceptionRes(parsedOutput, context);
1726
- case "TargetRequiredException":
1727
- case "com.amazonaws.codecommit#TargetRequiredException":
1728
- throw await de_TargetRequiredExceptionRes(parsedOutput, context);
1729
- case "TargetsRequiredException":
1730
- case "com.amazonaws.codecommit#TargetsRequiredException":
1731
- throw await de_TargetsRequiredExceptionRes(parsedOutput, context);
1732
- case "TitleRequiredException":
1733
- case "com.amazonaws.codecommit#TitleRequiredException":
1734
- throw await de_TitleRequiredExceptionRes(parsedOutput, context);
1735
- case "ApprovalRuleContentRequiredException":
1736
- case "com.amazonaws.codecommit#ApprovalRuleContentRequiredException":
1737
- throw await de_ApprovalRuleContentRequiredExceptionRes(parsedOutput, context);
1738
- case "ApprovalRuleNameAlreadyExistsException":
1739
- case "com.amazonaws.codecommit#ApprovalRuleNameAlreadyExistsException":
1740
- throw await de_ApprovalRuleNameAlreadyExistsExceptionRes(parsedOutput, context);
1741
- case "ApprovalRuleNameRequiredException":
1742
- case "com.amazonaws.codecommit#ApprovalRuleNameRequiredException":
1743
- throw await de_ApprovalRuleNameRequiredExceptionRes(parsedOutput, context);
1744
- case "InvalidApprovalRuleContentException":
1745
- case "com.amazonaws.codecommit#InvalidApprovalRuleContentException":
1746
- throw await de_InvalidApprovalRuleContentExceptionRes(parsedOutput, context);
1747
- case "InvalidApprovalRuleNameException":
1748
- case "com.amazonaws.codecommit#InvalidApprovalRuleNameException":
1749
- throw await de_InvalidApprovalRuleNameExceptionRes(parsedOutput, context);
1750
- case "InvalidPullRequestIdException":
1751
- case "com.amazonaws.codecommit#InvalidPullRequestIdException":
1752
- throw await de_InvalidPullRequestIdExceptionRes(parsedOutput, context);
1753
- case "NumberOfRulesExceededException":
1754
- case "com.amazonaws.codecommit#NumberOfRulesExceededException":
1755
- throw await de_NumberOfRulesExceededExceptionRes(parsedOutput, context);
1756
- case "PullRequestAlreadyClosedException":
1757
- case "com.amazonaws.codecommit#PullRequestAlreadyClosedException":
1758
- throw await de_PullRequestAlreadyClosedExceptionRes(parsedOutput, context);
1759
- case "PullRequestDoesNotExistException":
1760
- case "com.amazonaws.codecommit#PullRequestDoesNotExistException":
1761
- throw await de_PullRequestDoesNotExistExceptionRes(parsedOutput, context);
1762
- case "PullRequestIdRequiredException":
1763
- case "com.amazonaws.codecommit#PullRequestIdRequiredException":
1764
- throw await de_PullRequestIdRequiredExceptionRes(parsedOutput, context);
1765
- case "EncryptionKeyInvalidIdException":
1766
- case "com.amazonaws.codecommit#EncryptionKeyInvalidIdException":
1767
- throw await de_EncryptionKeyInvalidIdExceptionRes(parsedOutput, context);
1768
- case "EncryptionKeyInvalidUsageException":
1769
- case "com.amazonaws.codecommit#EncryptionKeyInvalidUsageException":
1770
- throw await de_EncryptionKeyInvalidUsageExceptionRes(parsedOutput, context);
1771
- case "InvalidRepositoryDescriptionException":
1772
- case "com.amazonaws.codecommit#InvalidRepositoryDescriptionException":
1773
- throw await de_InvalidRepositoryDescriptionExceptionRes(parsedOutput, context);
1774
- case "InvalidSystemTagUsageException":
1775
- case "com.amazonaws.codecommit#InvalidSystemTagUsageException":
1776
- throw await de_InvalidSystemTagUsageExceptionRes(parsedOutput, context);
1777
- case "InvalidTagsMapException":
1778
- case "com.amazonaws.codecommit#InvalidTagsMapException":
1779
- throw await de_InvalidTagsMapExceptionRes(parsedOutput, context);
1780
- case "OperationNotAllowedException":
1781
- case "com.amazonaws.codecommit#OperationNotAllowedException":
1782
- throw await de_OperationNotAllowedExceptionRes(parsedOutput, context);
1783
- case "RepositoryLimitExceededException":
1784
- case "com.amazonaws.codecommit#RepositoryLimitExceededException":
1785
- throw await de_RepositoryLimitExceededExceptionRes(parsedOutput, context);
1786
- case "RepositoryNameExistsException":
1787
- case "com.amazonaws.codecommit#RepositoryNameExistsException":
1788
- throw await de_RepositoryNameExistsExceptionRes(parsedOutput, context);
1789
- case "TagPolicyException":
1790
- case "com.amazonaws.codecommit#TagPolicyException":
1791
- throw await de_TagPolicyExceptionRes(parsedOutput, context);
1792
- case "TooManyTagsException":
1793
- case "com.amazonaws.codecommit#TooManyTagsException":
1794
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1795
- case "ConcurrentReferenceUpdateException":
1796
- case "com.amazonaws.codecommit#ConcurrentReferenceUpdateException":
1797
- throw await de_ConcurrentReferenceUpdateExceptionRes(parsedOutput, context);
1798
- case "InvalidConflictResolutionException":
1799
- case "com.amazonaws.codecommit#InvalidConflictResolutionException":
1800
- throw await de_InvalidConflictResolutionExceptionRes(parsedOutput, context);
1801
- case "InvalidReplacementContentException":
1802
- case "com.amazonaws.codecommit#InvalidReplacementContentException":
1803
- throw await de_InvalidReplacementContentExceptionRes(parsedOutput, context);
1804
- case "InvalidReplacementTypeException":
1805
- case "com.amazonaws.codecommit#InvalidReplacementTypeException":
1806
- throw await de_InvalidReplacementTypeExceptionRes(parsedOutput, context);
1807
- case "ManualMergeRequiredException":
1808
- case "com.amazonaws.codecommit#ManualMergeRequiredException":
1809
- throw await de_ManualMergeRequiredExceptionRes(parsedOutput, context);
1810
- case "MaximumConflictResolutionEntriesExceededException":
1811
- case "com.amazonaws.codecommit#MaximumConflictResolutionEntriesExceededException":
1812
- throw await de_MaximumConflictResolutionEntriesExceededExceptionRes(parsedOutput, context);
1813
- case "MultipleConflictResolutionEntriesException":
1814
- case "com.amazonaws.codecommit#MultipleConflictResolutionEntriesException":
1815
- throw await de_MultipleConflictResolutionEntriesExceptionRes(parsedOutput, context);
1816
- case "ReplacementContentRequiredException":
1817
- case "com.amazonaws.codecommit#ReplacementContentRequiredException":
1818
- throw await de_ReplacementContentRequiredExceptionRes(parsedOutput, context);
1819
- case "ReplacementTypeRequiredException":
1820
- case "com.amazonaws.codecommit#ReplacementTypeRequiredException":
1821
- throw await de_ReplacementTypeRequiredExceptionRes(parsedOutput, context);
1822
- case "ApprovalRuleTemplateInUseException":
1823
- case "com.amazonaws.codecommit#ApprovalRuleTemplateInUseException":
1824
- throw await de_ApprovalRuleTemplateInUseExceptionRes(parsedOutput, context);
1825
- case "DefaultBranchCannotBeDeletedException":
1826
- case "com.amazonaws.codecommit#DefaultBranchCannotBeDeletedException":
1827
- throw await de_DefaultBranchCannotBeDeletedExceptionRes(parsedOutput, context);
1828
- case "CommentDeletedException":
1829
- case "com.amazonaws.codecommit#CommentDeletedException":
1830
- throw await de_CommentDeletedExceptionRes(parsedOutput, context);
1831
- case "CommentDoesNotExistException":
1832
- case "com.amazonaws.codecommit#CommentDoesNotExistException":
1833
- throw await de_CommentDoesNotExistExceptionRes(parsedOutput, context);
1834
- case "CommentIdRequiredException":
1835
- case "com.amazonaws.codecommit#CommentIdRequiredException":
1836
- throw await de_CommentIdRequiredExceptionRes(parsedOutput, context);
1837
- case "InvalidCommentIdException":
1838
- case "com.amazonaws.codecommit#InvalidCommentIdException":
1839
- throw await de_InvalidCommentIdExceptionRes(parsedOutput, context);
1840
- case "CannotDeleteApprovalRuleFromTemplateException":
1841
- case "com.amazonaws.codecommit#CannotDeleteApprovalRuleFromTemplateException":
1842
- throw await de_CannotDeleteApprovalRuleFromTemplateExceptionRes(parsedOutput, context);
1843
- case "ActorDoesNotExistException":
1844
- case "com.amazonaws.codecommit#ActorDoesNotExistException":
1845
- throw await de_ActorDoesNotExistExceptionRes(parsedOutput, context);
1846
- case "InvalidActorArnException":
1847
- case "com.amazonaws.codecommit#InvalidActorArnException":
1848
- throw await de_InvalidActorArnExceptionRes(parsedOutput, context);
1849
- case "InvalidMaxResultsException":
1850
- case "com.amazonaws.codecommit#InvalidMaxResultsException":
1851
- throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
1852
- case "InvalidPullRequestEventTypeException":
1853
- case "com.amazonaws.codecommit#InvalidPullRequestEventTypeException":
1854
- throw await de_InvalidPullRequestEventTypeExceptionRes(parsedOutput, context);
1855
- case "InvalidRevisionIdException":
1856
- case "com.amazonaws.codecommit#InvalidRevisionIdException":
1857
- throw await de_InvalidRevisionIdExceptionRes(parsedOutput, context);
1858
- case "RevisionIdRequiredException":
1859
- case "com.amazonaws.codecommit#RevisionIdRequiredException":
1860
- throw await de_RevisionIdRequiredExceptionRes(parsedOutput, context);
1861
- case "RevisionNotCurrentException":
1862
- case "com.amazonaws.codecommit#RevisionNotCurrentException":
1863
- throw await de_RevisionNotCurrentExceptionRes(parsedOutput, context);
1864
- case "BlobIdDoesNotExistException":
1865
- case "com.amazonaws.codecommit#BlobIdDoesNotExistException":
1866
- throw await de_BlobIdDoesNotExistExceptionRes(parsedOutput, context);
1867
- case "BlobIdRequiredException":
1868
- case "com.amazonaws.codecommit#BlobIdRequiredException":
1869
- throw await de_BlobIdRequiredExceptionRes(parsedOutput, context);
1870
- case "FileTooLargeException":
1871
- case "com.amazonaws.codecommit#FileTooLargeException":
1872
- throw await de_FileTooLargeExceptionRes(parsedOutput, context);
1873
- case "InvalidBlobIdException":
1874
- case "com.amazonaws.codecommit#InvalidBlobIdException":
1875
- throw await de_InvalidBlobIdExceptionRes(parsedOutput, context);
1876
- case "InvalidReactionUserArnException":
1877
- case "com.amazonaws.codecommit#InvalidReactionUserArnException":
1878
- throw await de_InvalidReactionUserArnExceptionRes(parsedOutput, context);
1879
- case "RepositoryNotAssociatedWithPullRequestException":
1880
- case "com.amazonaws.codecommit#RepositoryNotAssociatedWithPullRequestException":
1881
- throw await de_RepositoryNotAssociatedWithPullRequestExceptionRes(parsedOutput, context);
1882
- case "CommitIdDoesNotExistException":
1883
- case "com.amazonaws.codecommit#CommitIdDoesNotExistException":
1884
- throw await de_CommitIdDoesNotExistExceptionRes(parsedOutput, context);
1885
- case "PathDoesNotExistException":
1886
- case "com.amazonaws.codecommit#PathDoesNotExistException":
1887
- throw await de_PathDoesNotExistExceptionRes(parsedOutput, context);
1888
- case "FolderDoesNotExistException":
1889
- case "com.amazonaws.codecommit#FolderDoesNotExistException":
1890
- throw await de_FolderDoesNotExistExceptionRes(parsedOutput, context);
1891
- case "InvalidDestinationCommitSpecifierException":
1892
- case "com.amazonaws.codecommit#InvalidDestinationCommitSpecifierException":
1893
- throw await de_InvalidDestinationCommitSpecifierExceptionRes(parsedOutput, context);
1894
- case "InvalidSourceCommitSpecifierException":
1895
- case "com.amazonaws.codecommit#InvalidSourceCommitSpecifierException":
1896
- throw await de_InvalidSourceCommitSpecifierExceptionRes(parsedOutput, context);
1897
- case "AuthorDoesNotExistException":
1898
- case "com.amazonaws.codecommit#AuthorDoesNotExistException":
1899
- throw await de_AuthorDoesNotExistExceptionRes(parsedOutput, context);
1900
- case "InvalidAuthorArnException":
1901
- case "com.amazonaws.codecommit#InvalidAuthorArnException":
1902
- throw await de_InvalidAuthorArnExceptionRes(parsedOutput, context);
1903
- case "InvalidPullRequestStatusException":
1904
- case "com.amazonaws.codecommit#InvalidPullRequestStatusException":
1905
- throw await de_InvalidPullRequestStatusExceptionRes(parsedOutput, context);
1906
- case "InvalidOrderException":
1907
- case "com.amazonaws.codecommit#InvalidOrderException":
1908
- throw await de_InvalidOrderExceptionRes(parsedOutput, context);
1909
- case "InvalidSortByException":
1910
- case "com.amazonaws.codecommit#InvalidSortByException":
1911
- throw await de_InvalidSortByExceptionRes(parsedOutput, context);
1912
- case "InvalidResourceArnException":
1913
- case "com.amazonaws.codecommit#InvalidResourceArnException":
1914
- throw await de_InvalidResourceArnExceptionRes(parsedOutput, context);
1915
- case "ResourceArnRequiredException":
1916
- case "com.amazonaws.codecommit#ResourceArnRequiredException":
1917
- throw await de_ResourceArnRequiredExceptionRes(parsedOutput, context);
1918
- case "InvalidTargetBranchException":
1919
- case "com.amazonaws.codecommit#InvalidTargetBranchException":
1920
- throw await de_InvalidTargetBranchExceptionRes(parsedOutput, context);
1921
- case "PullRequestApprovalRulesNotSatisfiedException":
1922
- case "com.amazonaws.codecommit#PullRequestApprovalRulesNotSatisfiedException":
1923
- throw await de_PullRequestApprovalRulesNotSatisfiedExceptionRes(parsedOutput, context);
1924
- case "TipOfSourceReferenceIsDifferentException":
1925
- case "com.amazonaws.codecommit#TipOfSourceReferenceIsDifferentException":
1926
- throw await de_TipOfSourceReferenceIsDifferentExceptionRes(parsedOutput, context);
1927
- case "InvalidOverrideStatusException":
1928
- case "com.amazonaws.codecommit#InvalidOverrideStatusException":
1929
- throw await de_InvalidOverrideStatusExceptionRes(parsedOutput, context);
1930
- case "OverrideAlreadySetException":
1931
- case "com.amazonaws.codecommit#OverrideAlreadySetException":
1932
- throw await de_OverrideAlreadySetExceptionRes(parsedOutput, context);
1933
- case "OverrideStatusRequiredException":
1934
- case "com.amazonaws.codecommit#OverrideStatusRequiredException":
1935
- throw await de_OverrideStatusRequiredExceptionRes(parsedOutput, context);
1936
- case "BeforeCommitIdAndAfterCommitIdAreSameException":
1937
- case "com.amazonaws.codecommit#BeforeCommitIdAndAfterCommitIdAreSameException":
1938
- throw await de_BeforeCommitIdAndAfterCommitIdAreSameExceptionRes(parsedOutput, context);
1939
- case "CommentContentRequiredException":
1940
- case "com.amazonaws.codecommit#CommentContentRequiredException":
1941
- throw await de_CommentContentRequiredExceptionRes(parsedOutput, context);
1942
- case "CommentContentSizeLimitExceededException":
1943
- case "com.amazonaws.codecommit#CommentContentSizeLimitExceededException":
1944
- throw await de_CommentContentSizeLimitExceededExceptionRes(parsedOutput, context);
1945
- case "InvalidFileLocationException":
1946
- case "com.amazonaws.codecommit#InvalidFileLocationException":
1947
- throw await de_InvalidFileLocationExceptionRes(parsedOutput, context);
1948
- case "InvalidFilePositionException":
1949
- case "com.amazonaws.codecommit#InvalidFilePositionException":
1950
- throw await de_InvalidFilePositionExceptionRes(parsedOutput, context);
1951
- case "InvalidRelativeFileVersionEnumException":
1952
- case "com.amazonaws.codecommit#InvalidRelativeFileVersionEnumException":
1953
- throw await de_InvalidRelativeFileVersionEnumExceptionRes(parsedOutput, context);
1954
- case "InvalidReactionValueException":
1955
- case "com.amazonaws.codecommit#InvalidReactionValueException":
1956
- throw await de_InvalidReactionValueExceptionRes(parsedOutput, context);
1957
- case "ReactionLimitExceededException":
1958
- case "com.amazonaws.codecommit#ReactionLimitExceededException":
1959
- throw await de_ReactionLimitExceededExceptionRes(parsedOutput, context);
1960
- case "ReactionValueRequiredException":
1961
- case "com.amazonaws.codecommit#ReactionValueRequiredException":
1962
- throw await de_ReactionValueRequiredExceptionRes(parsedOutput, context);
1963
- case "FileContentRequiredException":
1964
- case "com.amazonaws.codecommit#FileContentRequiredException":
1965
- throw await de_FileContentRequiredExceptionRes(parsedOutput, context);
1966
- case "SameFileContentException":
1967
- case "com.amazonaws.codecommit#SameFileContentException":
1968
- throw await de_SameFileContentExceptionRes(parsedOutput, context);
1969
- case "InvalidRepositoryTriggerBranchNameException":
1970
- case "com.amazonaws.codecommit#InvalidRepositoryTriggerBranchNameException":
1971
- throw await de_InvalidRepositoryTriggerBranchNameExceptionRes(parsedOutput, context);
1972
- case "InvalidRepositoryTriggerCustomDataException":
1973
- case "com.amazonaws.codecommit#InvalidRepositoryTriggerCustomDataException":
1974
- throw await de_InvalidRepositoryTriggerCustomDataExceptionRes(parsedOutput, context);
1975
- case "InvalidRepositoryTriggerDestinationArnException":
1976
- case "com.amazonaws.codecommit#InvalidRepositoryTriggerDestinationArnException":
1977
- throw await de_InvalidRepositoryTriggerDestinationArnExceptionRes(parsedOutput, context);
1978
- case "InvalidRepositoryTriggerEventsException":
1979
- case "com.amazonaws.codecommit#InvalidRepositoryTriggerEventsException":
1980
- throw await de_InvalidRepositoryTriggerEventsExceptionRes(parsedOutput, context);
1981
- case "InvalidRepositoryTriggerNameException":
1982
- case "com.amazonaws.codecommit#InvalidRepositoryTriggerNameException":
1983
- throw await de_InvalidRepositoryTriggerNameExceptionRes(parsedOutput, context);
1984
- case "InvalidRepositoryTriggerRegionException":
1985
- case "com.amazonaws.codecommit#InvalidRepositoryTriggerRegionException":
1986
- throw await de_InvalidRepositoryTriggerRegionExceptionRes(parsedOutput, context);
1987
- case "MaximumBranchesExceededException":
1988
- case "com.amazonaws.codecommit#MaximumBranchesExceededException":
1989
- throw await de_MaximumBranchesExceededExceptionRes(parsedOutput, context);
1990
- case "MaximumRepositoryTriggersExceededException":
1991
- case "com.amazonaws.codecommit#MaximumRepositoryTriggersExceededException":
1992
- throw await de_MaximumRepositoryTriggersExceededExceptionRes(parsedOutput, context);
1993
- case "RepositoryTriggerBranchNameListRequiredException":
1994
- case "com.amazonaws.codecommit#RepositoryTriggerBranchNameListRequiredException":
1995
- throw await de_RepositoryTriggerBranchNameListRequiredExceptionRes(parsedOutput, context);
1996
- case "RepositoryTriggerDestinationArnRequiredException":
1997
- case "com.amazonaws.codecommit#RepositoryTriggerDestinationArnRequiredException":
1998
- throw await de_RepositoryTriggerDestinationArnRequiredExceptionRes(parsedOutput, context);
1999
- case "RepositoryTriggerEventsListRequiredException":
2000
- case "com.amazonaws.codecommit#RepositoryTriggerEventsListRequiredException":
2001
- throw await de_RepositoryTriggerEventsListRequiredExceptionRes(parsedOutput, context);
2002
- case "RepositoryTriggerNameRequiredException":
2003
- case "com.amazonaws.codecommit#RepositoryTriggerNameRequiredException":
2004
- throw await de_RepositoryTriggerNameRequiredExceptionRes(parsedOutput, context);
2005
- case "RepositoryTriggersListRequiredException":
2006
- case "com.amazonaws.codecommit#RepositoryTriggersListRequiredException":
2007
- throw await de_RepositoryTriggersListRequiredExceptionRes(parsedOutput, context);
2008
- case "TagsMapRequiredException":
2009
- case "com.amazonaws.codecommit#TagsMapRequiredException":
2010
- throw await de_TagsMapRequiredExceptionRes(parsedOutput, context);
2011
- case "InvalidTagKeysListException":
2012
- case "com.amazonaws.codecommit#InvalidTagKeysListException":
2013
- throw await de_InvalidTagKeysListExceptionRes(parsedOutput, context);
2014
- case "TagKeysListRequiredException":
2015
- case "com.amazonaws.codecommit#TagKeysListRequiredException":
2016
- throw await de_TagKeysListRequiredExceptionRes(parsedOutput, context);
2017
- case "InvalidRuleContentSha256Exception":
2018
- case "com.amazonaws.codecommit#InvalidRuleContentSha256Exception":
2019
- throw await de_InvalidRuleContentSha256ExceptionRes(parsedOutput, context);
2020
- case "CommentNotCreatedByCallerException":
2021
- case "com.amazonaws.codecommit#CommentNotCreatedByCallerException":
2022
- throw await de_CommentNotCreatedByCallerExceptionRes(parsedOutput, context);
2023
- case "ApprovalRuleDoesNotExistException":
2024
- case "com.amazonaws.codecommit#ApprovalRuleDoesNotExistException":
2025
- throw await de_ApprovalRuleDoesNotExistExceptionRes(parsedOutput, context);
2026
- case "CannotModifyApprovalRuleFromTemplateException":
2027
- case "com.amazonaws.codecommit#CannotModifyApprovalRuleFromTemplateException":
2028
- throw await de_CannotModifyApprovalRuleFromTemplateExceptionRes(parsedOutput, context);
2029
- case "ApprovalStateRequiredException":
2030
- case "com.amazonaws.codecommit#ApprovalStateRequiredException":
2031
- throw await de_ApprovalStateRequiredExceptionRes(parsedOutput, context);
2032
- case "InvalidApprovalStateException":
2033
- case "com.amazonaws.codecommit#InvalidApprovalStateException":
2034
- throw await de_InvalidApprovalStateExceptionRes(parsedOutput, context);
2035
- case "MaximumNumberOfApprovalsExceededException":
2036
- case "com.amazonaws.codecommit#MaximumNumberOfApprovalsExceededException":
2037
- throw await de_MaximumNumberOfApprovalsExceededExceptionRes(parsedOutput, context);
2038
- case "PullRequestCannotBeApprovedByAuthorException":
2039
- case "com.amazonaws.codecommit#PullRequestCannotBeApprovedByAuthorException":
2040
- throw await de_PullRequestCannotBeApprovedByAuthorExceptionRes(parsedOutput, context);
2041
- case "InvalidPullRequestStatusUpdateException":
2042
- case "com.amazonaws.codecommit#InvalidPullRequestStatusUpdateException":
2043
- throw await de_InvalidPullRequestStatusUpdateExceptionRes(parsedOutput, context);
2044
- case "PullRequestStatusRequiredException":
2045
- case "com.amazonaws.codecommit#PullRequestStatusRequiredException":
2046
- throw await de_PullRequestStatusRequiredExceptionRes(parsedOutput, context);
2047
- case "EncryptionKeyRequiredException":
2048
- case "com.amazonaws.codecommit#EncryptionKeyRequiredException":
2049
- throw await de_EncryptionKeyRequiredExceptionRes(parsedOutput, context);
2050
- default:
2051
- const parsedBody = parsedOutput.body;
2052
- return throwDefaultError({
2053
- output,
2054
- parsedBody,
2055
- errorCode,
2056
- });
2057
- }
2058
- };
2059
- const de_ActorDoesNotExistExceptionRes = async (parsedOutput, context) => {
2060
- const body = parsedOutput.body;
2061
- const deserialized = _json(body);
2062
- const exception = new ActorDoesNotExistException({
2063
- $metadata: deserializeMetadata(parsedOutput),
2064
- ...deserialized,
2065
- });
2066
- return __decorateServiceException(exception, body);
2067
- };
2068
- const de_ApprovalRuleContentRequiredExceptionRes = async (parsedOutput, context) => {
2069
- const body = parsedOutput.body;
2070
- const deserialized = _json(body);
2071
- const exception = new ApprovalRuleContentRequiredException({
2072
- $metadata: deserializeMetadata(parsedOutput),
2073
- ...deserialized,
2074
- });
2075
- return __decorateServiceException(exception, body);
2076
- };
2077
- const de_ApprovalRuleDoesNotExistExceptionRes = async (parsedOutput, context) => {
2078
- const body = parsedOutput.body;
2079
- const deserialized = _json(body);
2080
- const exception = new ApprovalRuleDoesNotExistException({
2081
- $metadata: deserializeMetadata(parsedOutput),
2082
- ...deserialized,
2083
- });
2084
- return __decorateServiceException(exception, body);
2085
- };
2086
- const de_ApprovalRuleNameAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2087
- const body = parsedOutput.body;
2088
- const deserialized = _json(body);
2089
- const exception = new ApprovalRuleNameAlreadyExistsException({
2090
- $metadata: deserializeMetadata(parsedOutput),
2091
- ...deserialized,
2092
- });
2093
- return __decorateServiceException(exception, body);
2094
- };
2095
- const de_ApprovalRuleNameRequiredExceptionRes = async (parsedOutput, context) => {
2096
- const body = parsedOutput.body;
2097
- const deserialized = _json(body);
2098
- const exception = new ApprovalRuleNameRequiredException({
2099
- $metadata: deserializeMetadata(parsedOutput),
2100
- ...deserialized,
2101
- });
2102
- return __decorateServiceException(exception, body);
2103
- };
2104
- const de_ApprovalRuleTemplateContentRequiredExceptionRes = async (parsedOutput, context) => {
2105
- const body = parsedOutput.body;
2106
- const deserialized = _json(body);
2107
- const exception = new ApprovalRuleTemplateContentRequiredException({
2108
- $metadata: deserializeMetadata(parsedOutput),
2109
- ...deserialized,
2110
- });
2111
- return __decorateServiceException(exception, body);
2112
- };
2113
- const de_ApprovalRuleTemplateDoesNotExistExceptionRes = async (parsedOutput, context) => {
2114
- const body = parsedOutput.body;
2115
- const deserialized = _json(body);
2116
- const exception = new ApprovalRuleTemplateDoesNotExistException({
2117
- $metadata: deserializeMetadata(parsedOutput),
2118
- ...deserialized,
2119
- });
2120
- return __decorateServiceException(exception, body);
2121
- };
2122
- const de_ApprovalRuleTemplateInUseExceptionRes = async (parsedOutput, context) => {
2123
- const body = parsedOutput.body;
2124
- const deserialized = _json(body);
2125
- const exception = new ApprovalRuleTemplateInUseException({
2126
- $metadata: deserializeMetadata(parsedOutput),
2127
- ...deserialized,
2128
- });
2129
- return __decorateServiceException(exception, body);
2130
- };
2131
- const de_ApprovalRuleTemplateNameAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2132
- const body = parsedOutput.body;
2133
- const deserialized = _json(body);
2134
- const exception = new ApprovalRuleTemplateNameAlreadyExistsException({
2135
- $metadata: deserializeMetadata(parsedOutput),
2136
- ...deserialized,
2137
- });
2138
- return __decorateServiceException(exception, body);
2139
- };
2140
- const de_ApprovalRuleTemplateNameRequiredExceptionRes = async (parsedOutput, context) => {
2141
- const body = parsedOutput.body;
2142
- const deserialized = _json(body);
2143
- const exception = new ApprovalRuleTemplateNameRequiredException({
2144
- $metadata: deserializeMetadata(parsedOutput),
2145
- ...deserialized,
2146
- });
2147
- return __decorateServiceException(exception, body);
2148
- };
2149
- const de_ApprovalStateRequiredExceptionRes = async (parsedOutput, context) => {
2150
- const body = parsedOutput.body;
2151
- const deserialized = _json(body);
2152
- const exception = new ApprovalStateRequiredException({
2153
- $metadata: deserializeMetadata(parsedOutput),
2154
- ...deserialized,
2155
- });
2156
- return __decorateServiceException(exception, body);
2157
- };
2158
- const de_AuthorDoesNotExistExceptionRes = async (parsedOutput, context) => {
2159
- const body = parsedOutput.body;
2160
- const deserialized = _json(body);
2161
- const exception = new AuthorDoesNotExistException({
2162
- $metadata: deserializeMetadata(parsedOutput),
2163
- ...deserialized,
2164
- });
2165
- return __decorateServiceException(exception, body);
2166
- };
2167
- const de_BeforeCommitIdAndAfterCommitIdAreSameExceptionRes = async (parsedOutput, context) => {
2168
- const body = parsedOutput.body;
2169
- const deserialized = _json(body);
2170
- const exception = new BeforeCommitIdAndAfterCommitIdAreSameException({
2171
- $metadata: deserializeMetadata(parsedOutput),
2172
- ...deserialized,
2173
- });
2174
- return __decorateServiceException(exception, body);
2175
- };
2176
- const de_BlobIdDoesNotExistExceptionRes = async (parsedOutput, context) => {
2177
- const body = parsedOutput.body;
2178
- const deserialized = _json(body);
2179
- const exception = new BlobIdDoesNotExistException({
2180
- $metadata: deserializeMetadata(parsedOutput),
2181
- ...deserialized,
2182
- });
2183
- return __decorateServiceException(exception, body);
2184
- };
2185
- const de_BlobIdRequiredExceptionRes = async (parsedOutput, context) => {
2186
- const body = parsedOutput.body;
2187
- const deserialized = _json(body);
2188
- const exception = new BlobIdRequiredException({
2189
- $metadata: deserializeMetadata(parsedOutput),
2190
- ...deserialized,
2191
- });
2192
- return __decorateServiceException(exception, body);
2193
- };
2194
- const de_BranchDoesNotExistExceptionRes = async (parsedOutput, context) => {
2195
- const body = parsedOutput.body;
2196
- const deserialized = _json(body);
2197
- const exception = new BranchDoesNotExistException({
2198
- $metadata: deserializeMetadata(parsedOutput),
2199
- ...deserialized,
2200
- });
2201
- return __decorateServiceException(exception, body);
2202
- };
2203
- const de_BranchNameExistsExceptionRes = async (parsedOutput, context) => {
2204
- const body = parsedOutput.body;
2205
- const deserialized = _json(body);
2206
- const exception = new BranchNameExistsException({
2207
- $metadata: deserializeMetadata(parsedOutput),
2208
- ...deserialized,
2209
- });
2210
- return __decorateServiceException(exception, body);
2211
- };
2212
- const de_BranchNameIsTagNameExceptionRes = async (parsedOutput, context) => {
2213
- const body = parsedOutput.body;
2214
- const deserialized = _json(body);
2215
- const exception = new BranchNameIsTagNameException({
2216
- $metadata: deserializeMetadata(parsedOutput),
2217
- ...deserialized,
2218
- });
2219
- return __decorateServiceException(exception, body);
2220
- };
2221
- const de_BranchNameRequiredExceptionRes = async (parsedOutput, context) => {
2222
- const body = parsedOutput.body;
2223
- const deserialized = _json(body);
2224
- const exception = new BranchNameRequiredException({
2225
- $metadata: deserializeMetadata(parsedOutput),
2226
- ...deserialized,
2227
- });
2228
- return __decorateServiceException(exception, body);
2229
- };
2230
- const de_CannotDeleteApprovalRuleFromTemplateExceptionRes = async (parsedOutput, context) => {
2231
- const body = parsedOutput.body;
2232
- const deserialized = _json(body);
2233
- const exception = new CannotDeleteApprovalRuleFromTemplateException({
2234
- $metadata: deserializeMetadata(parsedOutput),
2235
- ...deserialized,
2236
- });
2237
- return __decorateServiceException(exception, body);
2238
- };
2239
- const de_CannotModifyApprovalRuleFromTemplateExceptionRes = async (parsedOutput, context) => {
2240
- const body = parsedOutput.body;
2241
- const deserialized = _json(body);
2242
- const exception = new CannotModifyApprovalRuleFromTemplateException({
2243
- $metadata: deserializeMetadata(parsedOutput),
2244
- ...deserialized,
2245
- });
2246
- return __decorateServiceException(exception, body);
2247
- };
2248
- const de_ClientRequestTokenRequiredExceptionRes = async (parsedOutput, context) => {
2249
- const body = parsedOutput.body;
2250
- const deserialized = _json(body);
2251
- const exception = new ClientRequestTokenRequiredException({
2252
- $metadata: deserializeMetadata(parsedOutput),
2253
- ...deserialized,
2254
- });
2255
- return __decorateServiceException(exception, body);
2256
- };
2257
- const de_CommentContentRequiredExceptionRes = async (parsedOutput, context) => {
2258
- const body = parsedOutput.body;
2259
- const deserialized = _json(body);
2260
- const exception = new CommentContentRequiredException({
2261
- $metadata: deserializeMetadata(parsedOutput),
2262
- ...deserialized,
2263
- });
2264
- return __decorateServiceException(exception, body);
2265
- };
2266
- const de_CommentContentSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
2267
- const body = parsedOutput.body;
2268
- const deserialized = _json(body);
2269
- const exception = new CommentContentSizeLimitExceededException({
2270
- $metadata: deserializeMetadata(parsedOutput),
2271
- ...deserialized,
2272
- });
2273
- return __decorateServiceException(exception, body);
2274
- };
2275
- const de_CommentDeletedExceptionRes = async (parsedOutput, context) => {
2276
- const body = parsedOutput.body;
2277
- const deserialized = _json(body);
2278
- const exception = new CommentDeletedException({
2279
- $metadata: deserializeMetadata(parsedOutput),
2280
- ...deserialized,
2281
- });
2282
- return __decorateServiceException(exception, body);
2283
- };
2284
- const de_CommentDoesNotExistExceptionRes = async (parsedOutput, context) => {
2285
- const body = parsedOutput.body;
2286
- const deserialized = _json(body);
2287
- const exception = new CommentDoesNotExistException({
2288
- $metadata: deserializeMetadata(parsedOutput),
2289
- ...deserialized,
2290
- });
2291
- return __decorateServiceException(exception, body);
2292
- };
2293
- const de_CommentIdRequiredExceptionRes = async (parsedOutput, context) => {
2294
- const body = parsedOutput.body;
2295
- const deserialized = _json(body);
2296
- const exception = new CommentIdRequiredException({
2297
- $metadata: deserializeMetadata(parsedOutput),
2298
- ...deserialized,
2299
- });
2300
- return __decorateServiceException(exception, body);
2301
- };
2302
- const de_CommentNotCreatedByCallerExceptionRes = async (parsedOutput, context) => {
2303
- const body = parsedOutput.body;
2304
- const deserialized = _json(body);
2305
- const exception = new CommentNotCreatedByCallerException({
2306
- $metadata: deserializeMetadata(parsedOutput),
2307
- ...deserialized,
2308
- });
2309
- return __decorateServiceException(exception, body);
2310
- };
2311
- const de_CommitDoesNotExistExceptionRes = async (parsedOutput, context) => {
2312
- const body = parsedOutput.body;
2313
- const deserialized = _json(body);
2314
- const exception = new CommitDoesNotExistException({
2315
- $metadata: deserializeMetadata(parsedOutput),
2316
- ...deserialized,
2317
- });
2318
- return __decorateServiceException(exception, body);
2319
- };
2320
- const de_CommitIdDoesNotExistExceptionRes = async (parsedOutput, context) => {
2321
- const body = parsedOutput.body;
2322
- const deserialized = _json(body);
2323
- const exception = new CommitIdDoesNotExistException({
2324
- $metadata: deserializeMetadata(parsedOutput),
2325
- ...deserialized,
2326
- });
2327
- return __decorateServiceException(exception, body);
2328
- };
2329
- const de_CommitIdRequiredExceptionRes = async (parsedOutput, context) => {
2330
- const body = parsedOutput.body;
2331
- const deserialized = _json(body);
2332
- const exception = new CommitIdRequiredException({
2333
- $metadata: deserializeMetadata(parsedOutput),
2334
- ...deserialized,
2335
- });
2336
- return __decorateServiceException(exception, body);
2337
- };
2338
- const de_CommitIdsLimitExceededExceptionRes = async (parsedOutput, context) => {
2339
- const body = parsedOutput.body;
2340
- const deserialized = _json(body);
2341
- const exception = new CommitIdsLimitExceededException({
2342
- $metadata: deserializeMetadata(parsedOutput),
2343
- ...deserialized,
2344
- });
2345
- return __decorateServiceException(exception, body);
2346
- };
2347
- const de_CommitIdsListRequiredExceptionRes = async (parsedOutput, context) => {
2348
- const body = parsedOutput.body;
2349
- const deserialized = _json(body);
2350
- const exception = new CommitIdsListRequiredException({
2351
- $metadata: deserializeMetadata(parsedOutput),
2352
- ...deserialized,
2353
- });
2354
- return __decorateServiceException(exception, body);
2355
- };
2356
- const de_CommitMessageLengthExceededExceptionRes = async (parsedOutput, context) => {
2357
- const body = parsedOutput.body;
2358
- const deserialized = _json(body);
2359
- const exception = new CommitMessageLengthExceededException({
2360
- $metadata: deserializeMetadata(parsedOutput),
2361
- ...deserialized,
2362
- });
2363
- return __decorateServiceException(exception, body);
2364
- };
2365
- const de_CommitRequiredExceptionRes = async (parsedOutput, context) => {
2366
- const body = parsedOutput.body;
2367
- const deserialized = _json(body);
2368
- const exception = new CommitRequiredException({
2369
- $metadata: deserializeMetadata(parsedOutput),
2370
- ...deserialized,
2371
- });
2372
- return __decorateServiceException(exception, body);
2373
- };
2374
- const de_ConcurrentReferenceUpdateExceptionRes = async (parsedOutput, context) => {
2375
- const body = parsedOutput.body;
2376
- const deserialized = _json(body);
2377
- const exception = new ConcurrentReferenceUpdateException({
2378
- $metadata: deserializeMetadata(parsedOutput),
2379
- ...deserialized,
2380
- });
2381
- return __decorateServiceException(exception, body);
2382
- };
2383
- const de_DefaultBranchCannotBeDeletedExceptionRes = async (parsedOutput, context) => {
2384
- const body = parsedOutput.body;
2385
- const deserialized = _json(body);
2386
- const exception = new DefaultBranchCannotBeDeletedException({
2387
- $metadata: deserializeMetadata(parsedOutput),
2388
- ...deserialized,
2389
- });
2390
- return __decorateServiceException(exception, body);
2391
- };
2392
- const de_DirectoryNameConflictsWithFileNameExceptionRes = async (parsedOutput, context) => {
2393
- const body = parsedOutput.body;
2394
- const deserialized = _json(body);
2395
- const exception = new DirectoryNameConflictsWithFileNameException({
2396
- $metadata: deserializeMetadata(parsedOutput),
2397
- ...deserialized,
2398
- });
2399
- return __decorateServiceException(exception, body);
2400
- };
2401
- const de_EncryptionIntegrityChecksFailedExceptionRes = async (parsedOutput, context) => {
2402
- const body = parsedOutput.body;
2403
- const deserialized = _json(body);
2404
- const exception = new EncryptionIntegrityChecksFailedException({
2405
- $metadata: deserializeMetadata(parsedOutput),
2406
- ...deserialized,
2407
- });
2408
- return __decorateServiceException(exception, body);
2409
- };
2410
- const de_EncryptionKeyAccessDeniedExceptionRes = async (parsedOutput, context) => {
2411
- const body = parsedOutput.body;
2412
- const deserialized = _json(body);
2413
- const exception = new EncryptionKeyAccessDeniedException({
2414
- $metadata: deserializeMetadata(parsedOutput),
2415
- ...deserialized,
2416
- });
2417
- return __decorateServiceException(exception, body);
2418
- };
2419
- const de_EncryptionKeyDisabledExceptionRes = async (parsedOutput, context) => {
2420
- const body = parsedOutput.body;
2421
- const deserialized = _json(body);
2422
- const exception = new EncryptionKeyDisabledException({
2423
- $metadata: deserializeMetadata(parsedOutput),
2424
- ...deserialized,
2425
- });
2426
- return __decorateServiceException(exception, body);
2427
- };
2428
- const de_EncryptionKeyInvalidIdExceptionRes = async (parsedOutput, context) => {
2429
- const body = parsedOutput.body;
2430
- const deserialized = _json(body);
2431
- const exception = new EncryptionKeyInvalidIdException({
2432
- $metadata: deserializeMetadata(parsedOutput),
2433
- ...deserialized,
2434
- });
2435
- return __decorateServiceException(exception, body);
2436
- };
2437
- const de_EncryptionKeyInvalidUsageExceptionRes = async (parsedOutput, context) => {
2438
- const body = parsedOutput.body;
2439
- const deserialized = _json(body);
2440
- const exception = new EncryptionKeyInvalidUsageException({
2441
- $metadata: deserializeMetadata(parsedOutput),
2442
- ...deserialized,
2443
- });
2444
- return __decorateServiceException(exception, body);
2445
- };
2446
- const de_EncryptionKeyNotFoundExceptionRes = async (parsedOutput, context) => {
2447
- const body = parsedOutput.body;
2448
- const deserialized = _json(body);
2449
- const exception = new EncryptionKeyNotFoundException({
2450
- $metadata: deserializeMetadata(parsedOutput),
2451
- ...deserialized,
2452
- });
2453
- return __decorateServiceException(exception, body);
2454
- };
2455
- const de_EncryptionKeyRequiredExceptionRes = async (parsedOutput, context) => {
2456
- const body = parsedOutput.body;
2457
- const deserialized = _json(body);
2458
- const exception = new EncryptionKeyRequiredException({
2459
- $metadata: deserializeMetadata(parsedOutput),
2460
- ...deserialized,
2461
- });
2462
- return __decorateServiceException(exception, body);
2463
- };
2464
- const de_EncryptionKeyUnavailableExceptionRes = async (parsedOutput, context) => {
2465
- const body = parsedOutput.body;
2466
- const deserialized = _json(body);
2467
- const exception = new EncryptionKeyUnavailableException({
2468
- $metadata: deserializeMetadata(parsedOutput),
2469
- ...deserialized,
2470
- });
2471
- return __decorateServiceException(exception, body);
2472
- };
2473
- const de_FileContentAndSourceFileSpecifiedExceptionRes = async (parsedOutput, context) => {
2474
- const body = parsedOutput.body;
2475
- const deserialized = _json(body);
2476
- const exception = new FileContentAndSourceFileSpecifiedException({
2477
- $metadata: deserializeMetadata(parsedOutput),
2478
- ...deserialized,
2479
- });
2480
- return __decorateServiceException(exception, body);
2481
- };
2482
- const de_FileContentRequiredExceptionRes = async (parsedOutput, context) => {
2483
- const body = parsedOutput.body;
2484
- const deserialized = _json(body);
2485
- const exception = new FileContentRequiredException({
2486
- $metadata: deserializeMetadata(parsedOutput),
2487
- ...deserialized,
2488
- });
2489
- return __decorateServiceException(exception, body);
2490
- };
2491
- const de_FileContentSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
2492
- const body = parsedOutput.body;
2493
- const deserialized = _json(body);
2494
- const exception = new FileContentSizeLimitExceededException({
2495
- $metadata: deserializeMetadata(parsedOutput),
2496
- ...deserialized,
2497
- });
2498
- return __decorateServiceException(exception, body);
2499
- };
2500
- const de_FileDoesNotExistExceptionRes = async (parsedOutput, context) => {
2501
- const body = parsedOutput.body;
2502
- const deserialized = _json(body);
2503
- const exception = new FileDoesNotExistException({
2504
- $metadata: deserializeMetadata(parsedOutput),
2505
- ...deserialized,
2506
- });
2507
- return __decorateServiceException(exception, body);
2508
- };
2509
- const de_FileEntryRequiredExceptionRes = async (parsedOutput, context) => {
2510
- const body = parsedOutput.body;
2511
- const deserialized = _json(body);
2512
- const exception = new FileEntryRequiredException({
2513
- $metadata: deserializeMetadata(parsedOutput),
2514
- ...deserialized,
2515
- });
2516
- return __decorateServiceException(exception, body);
2517
- };
2518
- const de_FileModeRequiredExceptionRes = async (parsedOutput, context) => {
2519
- const body = parsedOutput.body;
2520
- const deserialized = _json(body);
2521
- const exception = new FileModeRequiredException({
2522
- $metadata: deserializeMetadata(parsedOutput),
2523
- ...deserialized,
2524
- });
2525
- return __decorateServiceException(exception, body);
2526
- };
2527
- const de_FileNameConflictsWithDirectoryNameExceptionRes = async (parsedOutput, context) => {
2528
- const body = parsedOutput.body;
2529
- const deserialized = _json(body);
2530
- const exception = new FileNameConflictsWithDirectoryNameException({
2531
- $metadata: deserializeMetadata(parsedOutput),
2532
- ...deserialized,
2533
- });
2534
- return __decorateServiceException(exception, body);
2535
- };
2536
- const de_FilePathConflictsWithSubmodulePathExceptionRes = async (parsedOutput, context) => {
2537
- const body = parsedOutput.body;
2538
- const deserialized = _json(body);
2539
- const exception = new FilePathConflictsWithSubmodulePathException({
2540
- $metadata: deserializeMetadata(parsedOutput),
2541
- ...deserialized,
2542
- });
2543
- return __decorateServiceException(exception, body);
2544
- };
2545
- const de_FileTooLargeExceptionRes = async (parsedOutput, context) => {
2546
- const body = parsedOutput.body;
2547
- const deserialized = _json(body);
2548
- const exception = new FileTooLargeException({
2549
- $metadata: deserializeMetadata(parsedOutput),
2550
- ...deserialized,
2551
- });
2552
- return __decorateServiceException(exception, body);
2553
- };
2554
- const de_FolderContentSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
2555
- const body = parsedOutput.body;
2556
- const deserialized = _json(body);
2557
- const exception = new FolderContentSizeLimitExceededException({
2558
- $metadata: deserializeMetadata(parsedOutput),
2559
- ...deserialized,
2560
- });
2561
- return __decorateServiceException(exception, body);
2562
- };
2563
- const de_FolderDoesNotExistExceptionRes = async (parsedOutput, context) => {
2564
- const body = parsedOutput.body;
2565
- const deserialized = _json(body);
2566
- const exception = new FolderDoesNotExistException({
2567
- $metadata: deserializeMetadata(parsedOutput),
2568
- ...deserialized,
2569
- });
2570
- return __decorateServiceException(exception, body);
2571
- };
2572
- const de_IdempotencyParameterMismatchExceptionRes = async (parsedOutput, context) => {
2573
- const body = parsedOutput.body;
2574
- const deserialized = _json(body);
2575
- const exception = new IdempotencyParameterMismatchException({
2576
- $metadata: deserializeMetadata(parsedOutput),
2577
- ...deserialized,
2578
- });
2579
- return __decorateServiceException(exception, body);
2580
- };
2581
- const de_InvalidActorArnExceptionRes = async (parsedOutput, context) => {
2582
- const body = parsedOutput.body;
2583
- const deserialized = _json(body);
2584
- const exception = new InvalidActorArnException({
2585
- $metadata: deserializeMetadata(parsedOutput),
2586
- ...deserialized,
2587
- });
2588
- return __decorateServiceException(exception, body);
2589
- };
2590
- const de_InvalidApprovalRuleContentExceptionRes = async (parsedOutput, context) => {
2591
- const body = parsedOutput.body;
2592
- const deserialized = _json(body);
2593
- const exception = new InvalidApprovalRuleContentException({
2594
- $metadata: deserializeMetadata(parsedOutput),
2595
- ...deserialized,
2596
- });
2597
- return __decorateServiceException(exception, body);
2598
- };
2599
- const de_InvalidApprovalRuleNameExceptionRes = async (parsedOutput, context) => {
2600
- const body = parsedOutput.body;
2601
- const deserialized = _json(body);
2602
- const exception = new InvalidApprovalRuleNameException({
2603
- $metadata: deserializeMetadata(parsedOutput),
2604
- ...deserialized,
2605
- });
2606
- return __decorateServiceException(exception, body);
2607
- };
2608
- const de_InvalidApprovalRuleTemplateContentExceptionRes = async (parsedOutput, context) => {
2609
- const body = parsedOutput.body;
2610
- const deserialized = _json(body);
2611
- const exception = new InvalidApprovalRuleTemplateContentException({
2612
- $metadata: deserializeMetadata(parsedOutput),
2613
- ...deserialized,
2614
- });
2615
- return __decorateServiceException(exception, body);
2616
- };
2617
- const de_InvalidApprovalRuleTemplateDescriptionExceptionRes = async (parsedOutput, context) => {
2618
- const body = parsedOutput.body;
2619
- const deserialized = _json(body);
2620
- const exception = new InvalidApprovalRuleTemplateDescriptionException({
2621
- $metadata: deserializeMetadata(parsedOutput),
2622
- ...deserialized,
2623
- });
2624
- return __decorateServiceException(exception, body);
2625
- };
2626
- const de_InvalidApprovalRuleTemplateNameExceptionRes = async (parsedOutput, context) => {
2627
- const body = parsedOutput.body;
2628
- const deserialized = _json(body);
2629
- const exception = new InvalidApprovalRuleTemplateNameException({
2630
- $metadata: deserializeMetadata(parsedOutput),
2631
- ...deserialized,
2632
- });
2633
- return __decorateServiceException(exception, body);
2634
- };
2635
- const de_InvalidApprovalStateExceptionRes = async (parsedOutput, context) => {
2636
- const body = parsedOutput.body;
2637
- const deserialized = _json(body);
2638
- const exception = new InvalidApprovalStateException({
2639
- $metadata: deserializeMetadata(parsedOutput),
2640
- ...deserialized,
2641
- });
2642
- return __decorateServiceException(exception, body);
2643
- };
2644
- const de_InvalidAuthorArnExceptionRes = async (parsedOutput, context) => {
2645
- const body = parsedOutput.body;
2646
- const deserialized = _json(body);
2647
- const exception = new InvalidAuthorArnException({
2648
- $metadata: deserializeMetadata(parsedOutput),
2649
- ...deserialized,
2650
- });
2651
- return __decorateServiceException(exception, body);
2652
- };
2653
- const de_InvalidBlobIdExceptionRes = async (parsedOutput, context) => {
2654
- const body = parsedOutput.body;
2655
- const deserialized = _json(body);
2656
- const exception = new InvalidBlobIdException({
2657
- $metadata: deserializeMetadata(parsedOutput),
2658
- ...deserialized,
2659
- });
2660
- return __decorateServiceException(exception, body);
2661
- };
2662
- const de_InvalidBranchNameExceptionRes = async (parsedOutput, context) => {
2663
- const body = parsedOutput.body;
2664
- const deserialized = _json(body);
2665
- const exception = new InvalidBranchNameException({
2666
- $metadata: deserializeMetadata(parsedOutput),
2667
- ...deserialized,
2668
- });
2669
- return __decorateServiceException(exception, body);
2670
- };
2671
- const de_InvalidClientRequestTokenExceptionRes = async (parsedOutput, context) => {
2672
- const body = parsedOutput.body;
2673
- const deserialized = _json(body);
2674
- const exception = new InvalidClientRequestTokenException({
2675
- $metadata: deserializeMetadata(parsedOutput),
2676
- ...deserialized,
2677
- });
2678
- return __decorateServiceException(exception, body);
2679
- };
2680
- const de_InvalidCommentIdExceptionRes = async (parsedOutput, context) => {
2681
- const body = parsedOutput.body;
2682
- const deserialized = _json(body);
2683
- const exception = new InvalidCommentIdException({
2684
- $metadata: deserializeMetadata(parsedOutput),
2685
- ...deserialized,
2686
- });
2687
- return __decorateServiceException(exception, body);
2688
- };
2689
- const de_InvalidCommitExceptionRes = async (parsedOutput, context) => {
2690
- const body = parsedOutput.body;
2691
- const deserialized = _json(body);
2692
- const exception = new InvalidCommitException({
2693
- $metadata: deserializeMetadata(parsedOutput),
2694
- ...deserialized,
2695
- });
2696
- return __decorateServiceException(exception, body);
2697
- };
2698
- const de_InvalidCommitIdExceptionRes = async (parsedOutput, context) => {
2699
- const body = parsedOutput.body;
2700
- const deserialized = _json(body);
2701
- const exception = new InvalidCommitIdException({
2702
- $metadata: deserializeMetadata(parsedOutput),
2703
- ...deserialized,
2704
- });
2705
- return __decorateServiceException(exception, body);
2706
- };
2707
- const de_InvalidConflictDetailLevelExceptionRes = async (parsedOutput, context) => {
2708
- const body = parsedOutput.body;
2709
- const deserialized = _json(body);
2710
- const exception = new InvalidConflictDetailLevelException({
2711
- $metadata: deserializeMetadata(parsedOutput),
2712
- ...deserialized,
2713
- });
2714
- return __decorateServiceException(exception, body);
2715
- };
2716
- const de_InvalidConflictResolutionExceptionRes = async (parsedOutput, context) => {
2717
- const body = parsedOutput.body;
2718
- const deserialized = _json(body);
2719
- const exception = new InvalidConflictResolutionException({
2720
- $metadata: deserializeMetadata(parsedOutput),
2721
- ...deserialized,
2722
- });
2723
- return __decorateServiceException(exception, body);
2724
- };
2725
- const de_InvalidConflictResolutionStrategyExceptionRes = async (parsedOutput, context) => {
2726
- const body = parsedOutput.body;
2727
- const deserialized = _json(body);
2728
- const exception = new InvalidConflictResolutionStrategyException({
2729
- $metadata: deserializeMetadata(parsedOutput),
2730
- ...deserialized,
2731
- });
2732
- return __decorateServiceException(exception, body);
2733
- };
2734
- const de_InvalidContinuationTokenExceptionRes = async (parsedOutput, context) => {
2735
- const body = parsedOutput.body;
2736
- const deserialized = _json(body);
2737
- const exception = new InvalidContinuationTokenException({
2738
- $metadata: deserializeMetadata(parsedOutput),
2739
- ...deserialized,
2740
- });
2741
- return __decorateServiceException(exception, body);
2742
- };
2743
- const de_InvalidDeletionParameterExceptionRes = async (parsedOutput, context) => {
2744
- const body = parsedOutput.body;
2745
- const deserialized = _json(body);
2746
- const exception = new InvalidDeletionParameterException({
2747
- $metadata: deserializeMetadata(parsedOutput),
2748
- ...deserialized,
2749
- });
2750
- return __decorateServiceException(exception, body);
2751
- };
2752
- const de_InvalidDescriptionExceptionRes = async (parsedOutput, context) => {
2753
- const body = parsedOutput.body;
2754
- const deserialized = _json(body);
2755
- const exception = new InvalidDescriptionException({
2756
- $metadata: deserializeMetadata(parsedOutput),
2757
- ...deserialized,
2758
- });
2759
- return __decorateServiceException(exception, body);
2760
- };
2761
- const de_InvalidDestinationCommitSpecifierExceptionRes = async (parsedOutput, context) => {
2762
- const body = parsedOutput.body;
2763
- const deserialized = _json(body);
2764
- const exception = new InvalidDestinationCommitSpecifierException({
2765
- $metadata: deserializeMetadata(parsedOutput),
2766
- ...deserialized,
2767
- });
2768
- return __decorateServiceException(exception, body);
2769
- };
2770
- const de_InvalidEmailExceptionRes = async (parsedOutput, context) => {
2771
- const body = parsedOutput.body;
2772
- const deserialized = _json(body);
2773
- const exception = new InvalidEmailException({
2774
- $metadata: deserializeMetadata(parsedOutput),
2775
- ...deserialized,
2776
- });
2777
- return __decorateServiceException(exception, body);
2778
- };
2779
- const de_InvalidFileLocationExceptionRes = async (parsedOutput, context) => {
2780
- const body = parsedOutput.body;
2781
- const deserialized = _json(body);
2782
- const exception = new InvalidFileLocationException({
2783
- $metadata: deserializeMetadata(parsedOutput),
2784
- ...deserialized,
2785
- });
2786
- return __decorateServiceException(exception, body);
2787
- };
2788
- const de_InvalidFileModeExceptionRes = async (parsedOutput, context) => {
2789
- const body = parsedOutput.body;
2790
- const deserialized = _json(body);
2791
- const exception = new InvalidFileModeException({
2792
- $metadata: deserializeMetadata(parsedOutput),
2793
- ...deserialized,
2794
- });
2795
- return __decorateServiceException(exception, body);
2796
- };
2797
- const de_InvalidFilePositionExceptionRes = async (parsedOutput, context) => {
2798
- const body = parsedOutput.body;
2799
- const deserialized = _json(body);
2800
- const exception = new InvalidFilePositionException({
2801
- $metadata: deserializeMetadata(parsedOutput),
2802
- ...deserialized,
2803
- });
2804
- return __decorateServiceException(exception, body);
2805
- };
2806
- const de_InvalidMaxConflictFilesExceptionRes = async (parsedOutput, context) => {
2807
- const body = parsedOutput.body;
2808
- const deserialized = _json(body);
2809
- const exception = new InvalidMaxConflictFilesException({
2810
- $metadata: deserializeMetadata(parsedOutput),
2811
- ...deserialized,
2812
- });
2813
- return __decorateServiceException(exception, body);
2814
- };
2815
- const de_InvalidMaxMergeHunksExceptionRes = async (parsedOutput, context) => {
2816
- const body = parsedOutput.body;
2817
- const deserialized = _json(body);
2818
- const exception = new InvalidMaxMergeHunksException({
2819
- $metadata: deserializeMetadata(parsedOutput),
2820
- ...deserialized,
2821
- });
2822
- return __decorateServiceException(exception, body);
2823
- };
2824
- const de_InvalidMaxResultsExceptionRes = async (parsedOutput, context) => {
2825
- const body = parsedOutput.body;
2826
- const deserialized = _json(body);
2827
- const exception = new InvalidMaxResultsException({
2828
- $metadata: deserializeMetadata(parsedOutput),
2829
- ...deserialized,
2830
- });
2831
- return __decorateServiceException(exception, body);
2832
- };
2833
- const de_InvalidMergeOptionExceptionRes = async (parsedOutput, context) => {
2834
- const body = parsedOutput.body;
2835
- const deserialized = _json(body);
2836
- const exception = new InvalidMergeOptionException({
2837
- $metadata: deserializeMetadata(parsedOutput),
2838
- ...deserialized,
2839
- });
2840
- return __decorateServiceException(exception, body);
2841
- };
2842
- const de_InvalidOrderExceptionRes = async (parsedOutput, context) => {
2843
- const body = parsedOutput.body;
2844
- const deserialized = _json(body);
2845
- const exception = new InvalidOrderException({
2846
- $metadata: deserializeMetadata(parsedOutput),
2847
- ...deserialized,
2848
- });
2849
- return __decorateServiceException(exception, body);
2850
- };
2851
- const de_InvalidOverrideStatusExceptionRes = async (parsedOutput, context) => {
2852
- const body = parsedOutput.body;
2853
- const deserialized = _json(body);
2854
- const exception = new InvalidOverrideStatusException({
2855
- $metadata: deserializeMetadata(parsedOutput),
2856
- ...deserialized,
2857
- });
2858
- return __decorateServiceException(exception, body);
2859
- };
2860
- const de_InvalidParentCommitIdExceptionRes = async (parsedOutput, context) => {
2861
- const body = parsedOutput.body;
2862
- const deserialized = _json(body);
2863
- const exception = new InvalidParentCommitIdException({
2864
- $metadata: deserializeMetadata(parsedOutput),
2865
- ...deserialized,
2866
- });
2867
- return __decorateServiceException(exception, body);
2868
- };
2869
- const de_InvalidPathExceptionRes = async (parsedOutput, context) => {
2870
- const body = parsedOutput.body;
2871
- const deserialized = _json(body);
2872
- const exception = new InvalidPathException({
2873
- $metadata: deserializeMetadata(parsedOutput),
2874
- ...deserialized,
2875
- });
2876
- return __decorateServiceException(exception, body);
2877
- };
2878
- const de_InvalidPullRequestEventTypeExceptionRes = async (parsedOutput, context) => {
2879
- const body = parsedOutput.body;
2880
- const deserialized = _json(body);
2881
- const exception = new InvalidPullRequestEventTypeException({
2882
- $metadata: deserializeMetadata(parsedOutput),
2883
- ...deserialized,
2884
- });
2885
- return __decorateServiceException(exception, body);
2886
- };
2887
- const de_InvalidPullRequestIdExceptionRes = async (parsedOutput, context) => {
2888
- const body = parsedOutput.body;
2889
- const deserialized = _json(body);
2890
- const exception = new InvalidPullRequestIdException({
2891
- $metadata: deserializeMetadata(parsedOutput),
2892
- ...deserialized,
2893
- });
2894
- return __decorateServiceException(exception, body);
2895
- };
2896
- const de_InvalidPullRequestStatusExceptionRes = async (parsedOutput, context) => {
2897
- const body = parsedOutput.body;
2898
- const deserialized = _json(body);
2899
- const exception = new InvalidPullRequestStatusException({
2900
- $metadata: deserializeMetadata(parsedOutput),
2901
- ...deserialized,
2902
- });
2903
- return __decorateServiceException(exception, body);
2904
- };
2905
- const de_InvalidPullRequestStatusUpdateExceptionRes = async (parsedOutput, context) => {
2906
- const body = parsedOutput.body;
2907
- const deserialized = _json(body);
2908
- const exception = new InvalidPullRequestStatusUpdateException({
2909
- $metadata: deserializeMetadata(parsedOutput),
2910
- ...deserialized,
2911
- });
2912
- return __decorateServiceException(exception, body);
2913
- };
2914
- const de_InvalidReactionUserArnExceptionRes = async (parsedOutput, context) => {
2915
- const body = parsedOutput.body;
2916
- const deserialized = _json(body);
2917
- const exception = new InvalidReactionUserArnException({
2918
- $metadata: deserializeMetadata(parsedOutput),
2919
- ...deserialized,
2920
- });
2921
- return __decorateServiceException(exception, body);
2922
- };
2923
- const de_InvalidReactionValueExceptionRes = async (parsedOutput, context) => {
2924
- const body = parsedOutput.body;
2925
- const deserialized = _json(body);
2926
- const exception = new InvalidReactionValueException({
2927
- $metadata: deserializeMetadata(parsedOutput),
2928
- ...deserialized,
2929
- });
2930
- return __decorateServiceException(exception, body);
2931
- };
2932
- const de_InvalidReferenceNameExceptionRes = async (parsedOutput, context) => {
2933
- const body = parsedOutput.body;
2934
- const deserialized = _json(body);
2935
- const exception = new InvalidReferenceNameException({
2936
- $metadata: deserializeMetadata(parsedOutput),
2937
- ...deserialized,
2938
- });
2939
- return __decorateServiceException(exception, body);
2940
- };
2941
- const de_InvalidRelativeFileVersionEnumExceptionRes = async (parsedOutput, context) => {
2942
- const body = parsedOutput.body;
2943
- const deserialized = _json(body);
2944
- const exception = new InvalidRelativeFileVersionEnumException({
2945
- $metadata: deserializeMetadata(parsedOutput),
2946
- ...deserialized,
2947
- });
2948
- return __decorateServiceException(exception, body);
2949
- };
2950
- const de_InvalidReplacementContentExceptionRes = async (parsedOutput, context) => {
2951
- const body = parsedOutput.body;
2952
- const deserialized = _json(body);
2953
- const exception = new InvalidReplacementContentException({
2954
- $metadata: deserializeMetadata(parsedOutput),
2955
- ...deserialized,
2956
- });
2957
- return __decorateServiceException(exception, body);
2958
- };
2959
- const de_InvalidReplacementTypeExceptionRes = async (parsedOutput, context) => {
2960
- const body = parsedOutput.body;
2961
- const deserialized = _json(body);
2962
- const exception = new InvalidReplacementTypeException({
2963
- $metadata: deserializeMetadata(parsedOutput),
2964
- ...deserialized,
2965
- });
2966
- return __decorateServiceException(exception, body);
2967
- };
2968
- const de_InvalidRepositoryDescriptionExceptionRes = async (parsedOutput, context) => {
2969
- const body = parsedOutput.body;
2970
- const deserialized = _json(body);
2971
- const exception = new InvalidRepositoryDescriptionException({
2972
- $metadata: deserializeMetadata(parsedOutput),
2973
- ...deserialized,
2974
- });
2975
- return __decorateServiceException(exception, body);
2976
- };
2977
- const de_InvalidRepositoryNameExceptionRes = async (parsedOutput, context) => {
2978
- const body = parsedOutput.body;
2979
- const deserialized = _json(body);
2980
- const exception = new InvalidRepositoryNameException({
2981
- $metadata: deserializeMetadata(parsedOutput),
2982
- ...deserialized,
2983
- });
2984
- return __decorateServiceException(exception, body);
2985
- };
2986
- const de_InvalidRepositoryTriggerBranchNameExceptionRes = async (parsedOutput, context) => {
2987
- const body = parsedOutput.body;
2988
- const deserialized = _json(body);
2989
- const exception = new InvalidRepositoryTriggerBranchNameException({
2990
- $metadata: deserializeMetadata(parsedOutput),
2991
- ...deserialized,
2992
- });
2993
- return __decorateServiceException(exception, body);
2994
- };
2995
- const de_InvalidRepositoryTriggerCustomDataExceptionRes = async (parsedOutput, context) => {
2996
- const body = parsedOutput.body;
2997
- const deserialized = _json(body);
2998
- const exception = new InvalidRepositoryTriggerCustomDataException({
2999
- $metadata: deserializeMetadata(parsedOutput),
3000
- ...deserialized,
3001
- });
3002
- return __decorateServiceException(exception, body);
3003
- };
3004
- const de_InvalidRepositoryTriggerDestinationArnExceptionRes = async (parsedOutput, context) => {
3005
- const body = parsedOutput.body;
3006
- const deserialized = _json(body);
3007
- const exception = new InvalidRepositoryTriggerDestinationArnException({
3008
- $metadata: deserializeMetadata(parsedOutput),
3009
- ...deserialized,
3010
- });
3011
- return __decorateServiceException(exception, body);
3012
- };
3013
- const de_InvalidRepositoryTriggerEventsExceptionRes = async (parsedOutput, context) => {
3014
- const body = parsedOutput.body;
3015
- const deserialized = _json(body);
3016
- const exception = new InvalidRepositoryTriggerEventsException({
3017
- $metadata: deserializeMetadata(parsedOutput),
3018
- ...deserialized,
3019
- });
3020
- return __decorateServiceException(exception, body);
3021
- };
3022
- const de_InvalidRepositoryTriggerNameExceptionRes = async (parsedOutput, context) => {
3023
- const body = parsedOutput.body;
3024
- const deserialized = _json(body);
3025
- const exception = new InvalidRepositoryTriggerNameException({
3026
- $metadata: deserializeMetadata(parsedOutput),
3027
- ...deserialized,
3028
- });
3029
- return __decorateServiceException(exception, body);
3030
- };
3031
- const de_InvalidRepositoryTriggerRegionExceptionRes = async (parsedOutput, context) => {
3032
- const body = parsedOutput.body;
3033
- const deserialized = _json(body);
3034
- const exception = new InvalidRepositoryTriggerRegionException({
3035
- $metadata: deserializeMetadata(parsedOutput),
3036
- ...deserialized,
3037
- });
3038
- return __decorateServiceException(exception, body);
3039
- };
3040
- const de_InvalidResourceArnExceptionRes = async (parsedOutput, context) => {
3041
- const body = parsedOutput.body;
3042
- const deserialized = _json(body);
3043
- const exception = new InvalidResourceArnException({
3044
- $metadata: deserializeMetadata(parsedOutput),
3045
- ...deserialized,
3046
- });
3047
- return __decorateServiceException(exception, body);
3048
- };
3049
- const de_InvalidRevisionIdExceptionRes = async (parsedOutput, context) => {
3050
- const body = parsedOutput.body;
3051
- const deserialized = _json(body);
3052
- const exception = new InvalidRevisionIdException({
3053
- $metadata: deserializeMetadata(parsedOutput),
3054
- ...deserialized,
3055
- });
3056
- return __decorateServiceException(exception, body);
3057
- };
3058
- const de_InvalidRuleContentSha256ExceptionRes = async (parsedOutput, context) => {
3059
- const body = parsedOutput.body;
3060
- const deserialized = _json(body);
3061
- const exception = new InvalidRuleContentSha256Exception({
3062
- $metadata: deserializeMetadata(parsedOutput),
3063
- ...deserialized,
3064
- });
3065
- return __decorateServiceException(exception, body);
3066
- };
3067
- const de_InvalidSortByExceptionRes = async (parsedOutput, context) => {
3068
- const body = parsedOutput.body;
3069
- const deserialized = _json(body);
3070
- const exception = new InvalidSortByException({
3071
- $metadata: deserializeMetadata(parsedOutput),
3072
- ...deserialized,
3073
- });
3074
- return __decorateServiceException(exception, body);
3075
- };
3076
- const de_InvalidSourceCommitSpecifierExceptionRes = async (parsedOutput, context) => {
3077
- const body = parsedOutput.body;
3078
- const deserialized = _json(body);
3079
- const exception = new InvalidSourceCommitSpecifierException({
3080
- $metadata: deserializeMetadata(parsedOutput),
3081
- ...deserialized,
3082
- });
3083
- return __decorateServiceException(exception, body);
3084
- };
3085
- const de_InvalidSystemTagUsageExceptionRes = async (parsedOutput, context) => {
3086
- const body = parsedOutput.body;
3087
- const deserialized = _json(body);
3088
- const exception = new InvalidSystemTagUsageException({
3089
- $metadata: deserializeMetadata(parsedOutput),
3090
- ...deserialized,
3091
- });
3092
- return __decorateServiceException(exception, body);
3093
- };
3094
- const de_InvalidTagKeysListExceptionRes = async (parsedOutput, context) => {
3095
- const body = parsedOutput.body;
3096
- const deserialized = _json(body);
3097
- const exception = new InvalidTagKeysListException({
3098
- $metadata: deserializeMetadata(parsedOutput),
3099
- ...deserialized,
3100
- });
3101
- return __decorateServiceException(exception, body);
3102
- };
3103
- const de_InvalidTagsMapExceptionRes = async (parsedOutput, context) => {
3104
- const body = parsedOutput.body;
3105
- const deserialized = _json(body);
3106
- const exception = new InvalidTagsMapException({
3107
- $metadata: deserializeMetadata(parsedOutput),
3108
- ...deserialized,
3109
- });
3110
- return __decorateServiceException(exception, body);
3111
- };
3112
- const de_InvalidTargetBranchExceptionRes = async (parsedOutput, context) => {
3113
- const body = parsedOutput.body;
3114
- const deserialized = _json(body);
3115
- const exception = new InvalidTargetBranchException({
3116
- $metadata: deserializeMetadata(parsedOutput),
3117
- ...deserialized,
3118
- });
3119
- return __decorateServiceException(exception, body);
3120
- };
3121
- const de_InvalidTargetExceptionRes = async (parsedOutput, context) => {
3122
- const body = parsedOutput.body;
3123
- const deserialized = _json(body);
3124
- const exception = new InvalidTargetException({
3125
- $metadata: deserializeMetadata(parsedOutput),
3126
- ...deserialized,
3127
- });
3128
- return __decorateServiceException(exception, body);
3129
- };
3130
- const de_InvalidTargetsExceptionRes = async (parsedOutput, context) => {
3131
- const body = parsedOutput.body;
3132
- const deserialized = _json(body);
3133
- const exception = new InvalidTargetsException({
3134
- $metadata: deserializeMetadata(parsedOutput),
3135
- ...deserialized,
3136
- });
3137
- return __decorateServiceException(exception, body);
3138
- };
3139
- const de_InvalidTitleExceptionRes = async (parsedOutput, context) => {
3140
- const body = parsedOutput.body;
3141
- const deserialized = _json(body);
3142
- const exception = new InvalidTitleException({
3143
- $metadata: deserializeMetadata(parsedOutput),
3144
- ...deserialized,
3145
- });
3146
- return __decorateServiceException(exception, body);
3147
- };
3148
- const de_ManualMergeRequiredExceptionRes = async (parsedOutput, context) => {
3149
- const body = parsedOutput.body;
3150
- const deserialized = _json(body);
3151
- const exception = new ManualMergeRequiredException({
3152
- $metadata: deserializeMetadata(parsedOutput),
3153
- ...deserialized,
3154
- });
3155
- return __decorateServiceException(exception, body);
3156
- };
3157
- const de_MaximumBranchesExceededExceptionRes = async (parsedOutput, context) => {
3158
- const body = parsedOutput.body;
3159
- const deserialized = _json(body);
3160
- const exception = new MaximumBranchesExceededException({
3161
- $metadata: deserializeMetadata(parsedOutput),
3162
- ...deserialized,
3163
- });
3164
- return __decorateServiceException(exception, body);
3165
- };
3166
- const de_MaximumConflictResolutionEntriesExceededExceptionRes = async (parsedOutput, context) => {
3167
- const body = parsedOutput.body;
3168
- const deserialized = _json(body);
3169
- const exception = new MaximumConflictResolutionEntriesExceededException({
3170
- $metadata: deserializeMetadata(parsedOutput),
3171
- ...deserialized,
3172
- });
3173
- return __decorateServiceException(exception, body);
3174
- };
3175
- const de_MaximumFileContentToLoadExceededExceptionRes = async (parsedOutput, context) => {
3176
- const body = parsedOutput.body;
3177
- const deserialized = _json(body);
3178
- const exception = new MaximumFileContentToLoadExceededException({
3179
- $metadata: deserializeMetadata(parsedOutput),
3180
- ...deserialized,
3181
- });
3182
- return __decorateServiceException(exception, body);
3183
- };
3184
- const de_MaximumFileEntriesExceededExceptionRes = async (parsedOutput, context) => {
3185
- const body = parsedOutput.body;
3186
- const deserialized = _json(body);
3187
- const exception = new MaximumFileEntriesExceededException({
3188
- $metadata: deserializeMetadata(parsedOutput),
3189
- ...deserialized,
3190
- });
3191
- return __decorateServiceException(exception, body);
3192
- };
3193
- const de_MaximumItemsToCompareExceededExceptionRes = async (parsedOutput, context) => {
3194
- const body = parsedOutput.body;
3195
- const deserialized = _json(body);
3196
- const exception = new MaximumItemsToCompareExceededException({
3197
- $metadata: deserializeMetadata(parsedOutput),
3198
- ...deserialized,
3199
- });
3200
- return __decorateServiceException(exception, body);
3201
- };
3202
- const de_MaximumNumberOfApprovalsExceededExceptionRes = async (parsedOutput, context) => {
3203
- const body = parsedOutput.body;
3204
- const deserialized = _json(body);
3205
- const exception = new MaximumNumberOfApprovalsExceededException({
3206
- $metadata: deserializeMetadata(parsedOutput),
3207
- ...deserialized,
3208
- });
3209
- return __decorateServiceException(exception, body);
3210
- };
3211
- const de_MaximumOpenPullRequestsExceededExceptionRes = async (parsedOutput, context) => {
3212
- const body = parsedOutput.body;
3213
- const deserialized = _json(body);
3214
- const exception = new MaximumOpenPullRequestsExceededException({
3215
- $metadata: deserializeMetadata(parsedOutput),
3216
- ...deserialized,
3217
- });
3218
- return __decorateServiceException(exception, body);
3219
- };
3220
- const de_MaximumRepositoryNamesExceededExceptionRes = async (parsedOutput, context) => {
3221
- const body = parsedOutput.body;
3222
- const deserialized = _json(body);
3223
- const exception = new MaximumRepositoryNamesExceededException({
3224
- $metadata: deserializeMetadata(parsedOutput),
3225
- ...deserialized,
3226
- });
3227
- return __decorateServiceException(exception, body);
3228
- };
3229
- const de_MaximumRepositoryTriggersExceededExceptionRes = async (parsedOutput, context) => {
3230
- const body = parsedOutput.body;
3231
- const deserialized = _json(body);
3232
- const exception = new MaximumRepositoryTriggersExceededException({
3233
- $metadata: deserializeMetadata(parsedOutput),
3234
- ...deserialized,
3235
- });
3236
- return __decorateServiceException(exception, body);
3237
- };
3238
- const de_MaximumRuleTemplatesAssociatedWithRepositoryExceptionRes = async (parsedOutput, context) => {
3239
- const body = parsedOutput.body;
3240
- const deserialized = _json(body);
3241
- const exception = new MaximumRuleTemplatesAssociatedWithRepositoryException({
3242
- $metadata: deserializeMetadata(parsedOutput),
3243
- ...deserialized,
3244
- });
3245
- return __decorateServiceException(exception, body);
3246
- };
3247
- const de_MergeOptionRequiredExceptionRes = async (parsedOutput, context) => {
3248
- const body = parsedOutput.body;
3249
- const deserialized = _json(body);
3250
- const exception = new MergeOptionRequiredException({
3251
- $metadata: deserializeMetadata(parsedOutput),
3252
- ...deserialized,
3253
- });
3254
- return __decorateServiceException(exception, body);
3255
- };
3256
- const de_MultipleConflictResolutionEntriesExceptionRes = async (parsedOutput, context) => {
3257
- const body = parsedOutput.body;
3258
- const deserialized = _json(body);
3259
- const exception = new MultipleConflictResolutionEntriesException({
3260
- $metadata: deserializeMetadata(parsedOutput),
3261
- ...deserialized,
3262
- });
3263
- return __decorateServiceException(exception, body);
3264
- };
3265
- const de_MultipleRepositoriesInPullRequestExceptionRes = async (parsedOutput, context) => {
3266
- const body = parsedOutput.body;
3267
- const deserialized = _json(body);
3268
- const exception = new MultipleRepositoriesInPullRequestException({
3269
- $metadata: deserializeMetadata(parsedOutput),
3270
- ...deserialized,
3271
- });
3272
- return __decorateServiceException(exception, body);
3273
- };
3274
- const de_NameLengthExceededExceptionRes = async (parsedOutput, context) => {
3275
- const body = parsedOutput.body;
3276
- const deserialized = _json(body);
3277
- const exception = new NameLengthExceededException({
3278
- $metadata: deserializeMetadata(parsedOutput),
3279
- ...deserialized,
3280
- });
3281
- return __decorateServiceException(exception, body);
3282
- };
3283
- const de_NoChangeExceptionRes = async (parsedOutput, context) => {
3284
- const body = parsedOutput.body;
3285
- const deserialized = _json(body);
3286
- const exception = new NoChangeException({
3287
- $metadata: deserializeMetadata(parsedOutput),
3288
- ...deserialized,
3289
- });
3290
- return __decorateServiceException(exception, body);
3291
- };
3292
- const de_NumberOfRulesExceededExceptionRes = async (parsedOutput, context) => {
3293
- const body = parsedOutput.body;
3294
- const deserialized = _json(body);
3295
- const exception = new NumberOfRulesExceededException({
3296
- $metadata: deserializeMetadata(parsedOutput),
3297
- ...deserialized,
3298
- });
3299
- return __decorateServiceException(exception, body);
3300
- };
3301
- const de_NumberOfRuleTemplatesExceededExceptionRes = async (parsedOutput, context) => {
3302
- const body = parsedOutput.body;
3303
- const deserialized = _json(body);
3304
- const exception = new NumberOfRuleTemplatesExceededException({
3305
- $metadata: deserializeMetadata(parsedOutput),
3306
- ...deserialized,
3307
- });
3308
- return __decorateServiceException(exception, body);
3309
- };
3310
- const de_OperationNotAllowedExceptionRes = async (parsedOutput, context) => {
3311
- const body = parsedOutput.body;
3312
- const deserialized = _json(body);
3313
- const exception = new OperationNotAllowedException({
3314
- $metadata: deserializeMetadata(parsedOutput),
3315
- ...deserialized,
3316
- });
3317
- return __decorateServiceException(exception, body);
3318
- };
3319
- const de_OverrideAlreadySetExceptionRes = async (parsedOutput, context) => {
3320
- const body = parsedOutput.body;
3321
- const deserialized = _json(body);
3322
- const exception = new OverrideAlreadySetException({
3323
- $metadata: deserializeMetadata(parsedOutput),
3324
- ...deserialized,
3325
- });
3326
- return __decorateServiceException(exception, body);
3327
- };
3328
- const de_OverrideStatusRequiredExceptionRes = async (parsedOutput, context) => {
3329
- const body = parsedOutput.body;
3330
- const deserialized = _json(body);
3331
- const exception = new OverrideStatusRequiredException({
3332
- $metadata: deserializeMetadata(parsedOutput),
3333
- ...deserialized,
3334
- });
3335
- return __decorateServiceException(exception, body);
3336
- };
3337
- const de_ParentCommitDoesNotExistExceptionRes = async (parsedOutput, context) => {
3338
- const body = parsedOutput.body;
3339
- const deserialized = _json(body);
3340
- const exception = new ParentCommitDoesNotExistException({
3341
- $metadata: deserializeMetadata(parsedOutput),
3342
- ...deserialized,
3343
- });
3344
- return __decorateServiceException(exception, body);
3345
- };
3346
- const de_ParentCommitIdOutdatedExceptionRes = async (parsedOutput, context) => {
3347
- const body = parsedOutput.body;
3348
- const deserialized = _json(body);
3349
- const exception = new ParentCommitIdOutdatedException({
3350
- $metadata: deserializeMetadata(parsedOutput),
3351
- ...deserialized,
3352
- });
3353
- return __decorateServiceException(exception, body);
3354
- };
3355
- const de_ParentCommitIdRequiredExceptionRes = async (parsedOutput, context) => {
3356
- const body = parsedOutput.body;
3357
- const deserialized = _json(body);
3358
- const exception = new ParentCommitIdRequiredException({
3359
- $metadata: deserializeMetadata(parsedOutput),
3360
- ...deserialized,
3361
- });
3362
- return __decorateServiceException(exception, body);
3363
- };
3364
- const de_PathDoesNotExistExceptionRes = async (parsedOutput, context) => {
3365
- const body = parsedOutput.body;
3366
- const deserialized = _json(body);
3367
- const exception = new PathDoesNotExistException({
3368
- $metadata: deserializeMetadata(parsedOutput),
3369
- ...deserialized,
3370
- });
3371
- return __decorateServiceException(exception, body);
3372
- };
3373
- const de_PathRequiredExceptionRes = async (parsedOutput, context) => {
3374
- const body = parsedOutput.body;
3375
- const deserialized = _json(body);
3376
- const exception = new PathRequiredException({
3377
- $metadata: deserializeMetadata(parsedOutput),
3378
- ...deserialized,
3379
- });
3380
- return __decorateServiceException(exception, body);
3381
- };
3382
- const de_PullRequestAlreadyClosedExceptionRes = async (parsedOutput, context) => {
3383
- const body = parsedOutput.body;
3384
- const deserialized = _json(body);
3385
- const exception = new PullRequestAlreadyClosedException({
3386
- $metadata: deserializeMetadata(parsedOutput),
3387
- ...deserialized,
3388
- });
3389
- return __decorateServiceException(exception, body);
3390
- };
3391
- const de_PullRequestApprovalRulesNotSatisfiedExceptionRes = async (parsedOutput, context) => {
3392
- const body = parsedOutput.body;
3393
- const deserialized = _json(body);
3394
- const exception = new PullRequestApprovalRulesNotSatisfiedException({
3395
- $metadata: deserializeMetadata(parsedOutput),
3396
- ...deserialized,
3397
- });
3398
- return __decorateServiceException(exception, body);
3399
- };
3400
- const de_PullRequestCannotBeApprovedByAuthorExceptionRes = async (parsedOutput, context) => {
3401
- const body = parsedOutput.body;
3402
- const deserialized = _json(body);
3403
- const exception = new PullRequestCannotBeApprovedByAuthorException({
3404
- $metadata: deserializeMetadata(parsedOutput),
3405
- ...deserialized,
3406
- });
3407
- return __decorateServiceException(exception, body);
3408
- };
3409
- const de_PullRequestDoesNotExistExceptionRes = async (parsedOutput, context) => {
3410
- const body = parsedOutput.body;
3411
- const deserialized = _json(body);
3412
- const exception = new PullRequestDoesNotExistException({
3413
- $metadata: deserializeMetadata(parsedOutput),
3414
- ...deserialized,
3415
- });
3416
- return __decorateServiceException(exception, body);
3417
- };
3418
- const de_PullRequestIdRequiredExceptionRes = async (parsedOutput, context) => {
3419
- const body = parsedOutput.body;
3420
- const deserialized = _json(body);
3421
- const exception = new PullRequestIdRequiredException({
3422
- $metadata: deserializeMetadata(parsedOutput),
3423
- ...deserialized,
3424
- });
3425
- return __decorateServiceException(exception, body);
3426
- };
3427
- const de_PullRequestStatusRequiredExceptionRes = async (parsedOutput, context) => {
3428
- const body = parsedOutput.body;
3429
- const deserialized = _json(body);
3430
- const exception = new PullRequestStatusRequiredException({
3431
- $metadata: deserializeMetadata(parsedOutput),
3432
- ...deserialized,
3433
- });
3434
- return __decorateServiceException(exception, body);
3435
- };
3436
- const de_PutFileEntryConflictExceptionRes = async (parsedOutput, context) => {
3437
- const body = parsedOutput.body;
3438
- const deserialized = _json(body);
3439
- const exception = new PutFileEntryConflictException({
3440
- $metadata: deserializeMetadata(parsedOutput),
3441
- ...deserialized,
3442
- });
3443
- return __decorateServiceException(exception, body);
3444
- };
3445
- const de_ReactionLimitExceededExceptionRes = async (parsedOutput, context) => {
3446
- const body = parsedOutput.body;
3447
- const deserialized = _json(body);
3448
- const exception = new ReactionLimitExceededException({
3449
- $metadata: deserializeMetadata(parsedOutput),
3450
- ...deserialized,
3451
- });
3452
- return __decorateServiceException(exception, body);
3453
- };
3454
- const de_ReactionValueRequiredExceptionRes = async (parsedOutput, context) => {
3455
- const body = parsedOutput.body;
3456
- const deserialized = _json(body);
3457
- const exception = new ReactionValueRequiredException({
3458
- $metadata: deserializeMetadata(parsedOutput),
3459
- ...deserialized,
3460
- });
3461
- return __decorateServiceException(exception, body);
3462
- };
3463
- const de_ReferenceDoesNotExistExceptionRes = async (parsedOutput, context) => {
3464
- const body = parsedOutput.body;
3465
- const deserialized = _json(body);
3466
- const exception = new ReferenceDoesNotExistException({
3467
- $metadata: deserializeMetadata(parsedOutput),
3468
- ...deserialized,
3469
- });
3470
- return __decorateServiceException(exception, body);
3471
- };
3472
- const de_ReferenceNameRequiredExceptionRes = async (parsedOutput, context) => {
3473
- const body = parsedOutput.body;
3474
- const deserialized = _json(body);
3475
- const exception = new ReferenceNameRequiredException({
3476
- $metadata: deserializeMetadata(parsedOutput),
3477
- ...deserialized,
3478
- });
3479
- return __decorateServiceException(exception, body);
3480
- };
3481
- const de_ReferenceTypeNotSupportedExceptionRes = async (parsedOutput, context) => {
3482
- const body = parsedOutput.body;
3483
- const deserialized = _json(body);
3484
- const exception = new ReferenceTypeNotSupportedException({
3485
- $metadata: deserializeMetadata(parsedOutput),
3486
- ...deserialized,
3487
- });
3488
- return __decorateServiceException(exception, body);
3489
- };
3490
- const de_ReplacementContentRequiredExceptionRes = async (parsedOutput, context) => {
3491
- const body = parsedOutput.body;
3492
- const deserialized = _json(body);
3493
- const exception = new ReplacementContentRequiredException({
3494
- $metadata: deserializeMetadata(parsedOutput),
3495
- ...deserialized,
3496
- });
3497
- return __decorateServiceException(exception, body);
3498
- };
3499
- const de_ReplacementTypeRequiredExceptionRes = async (parsedOutput, context) => {
3500
- const body = parsedOutput.body;
3501
- const deserialized = _json(body);
3502
- const exception = new ReplacementTypeRequiredException({
3503
- $metadata: deserializeMetadata(parsedOutput),
3504
- ...deserialized,
3505
- });
3506
- return __decorateServiceException(exception, body);
3507
- };
3508
- const de_RepositoryDoesNotExistExceptionRes = async (parsedOutput, context) => {
3509
- const body = parsedOutput.body;
3510
- const deserialized = _json(body);
3511
- const exception = new RepositoryDoesNotExistException({
3512
- $metadata: deserializeMetadata(parsedOutput),
3513
- ...deserialized,
3514
- });
3515
- return __decorateServiceException(exception, body);
3516
- };
3517
- const de_RepositoryLimitExceededExceptionRes = async (parsedOutput, context) => {
3518
- const body = parsedOutput.body;
3519
- const deserialized = _json(body);
3520
- const exception = new RepositoryLimitExceededException({
3521
- $metadata: deserializeMetadata(parsedOutput),
3522
- ...deserialized,
3523
- });
3524
- return __decorateServiceException(exception, body);
3525
- };
3526
- const de_RepositoryNameExistsExceptionRes = async (parsedOutput, context) => {
3527
- const body = parsedOutput.body;
3528
- const deserialized = _json(body);
3529
- const exception = new RepositoryNameExistsException({
3530
- $metadata: deserializeMetadata(parsedOutput),
3531
- ...deserialized,
3532
- });
3533
- return __decorateServiceException(exception, body);
3534
- };
3535
- const de_RepositoryNameRequiredExceptionRes = async (parsedOutput, context) => {
3536
- const body = parsedOutput.body;
3537
- const deserialized = _json(body);
3538
- const exception = new RepositoryNameRequiredException({
3539
- $metadata: deserializeMetadata(parsedOutput),
3540
- ...deserialized,
3541
- });
3542
- return __decorateServiceException(exception, body);
3543
- };
3544
- const de_RepositoryNamesRequiredExceptionRes = async (parsedOutput, context) => {
3545
- const body = parsedOutput.body;
3546
- const deserialized = _json(body);
3547
- const exception = new RepositoryNamesRequiredException({
3548
- $metadata: deserializeMetadata(parsedOutput),
3549
- ...deserialized,
3550
- });
3551
- return __decorateServiceException(exception, body);
3552
- };
3553
- const de_RepositoryNotAssociatedWithPullRequestExceptionRes = async (parsedOutput, context) => {
3554
- const body = parsedOutput.body;
3555
- const deserialized = _json(body);
3556
- const exception = new RepositoryNotAssociatedWithPullRequestException({
3557
- $metadata: deserializeMetadata(parsedOutput),
3558
- ...deserialized,
3559
- });
3560
- return __decorateServiceException(exception, body);
3561
- };
3562
- const de_RepositoryTriggerBranchNameListRequiredExceptionRes = async (parsedOutput, context) => {
3563
- const body = parsedOutput.body;
3564
- const deserialized = _json(body);
3565
- const exception = new RepositoryTriggerBranchNameListRequiredException({
3566
- $metadata: deserializeMetadata(parsedOutput),
3567
- ...deserialized,
3568
- });
3569
- return __decorateServiceException(exception, body);
3570
- };
3571
- const de_RepositoryTriggerDestinationArnRequiredExceptionRes = async (parsedOutput, context) => {
3572
- const body = parsedOutput.body;
3573
- const deserialized = _json(body);
3574
- const exception = new RepositoryTriggerDestinationArnRequiredException({
3575
- $metadata: deserializeMetadata(parsedOutput),
3576
- ...deserialized,
3577
- });
3578
- return __decorateServiceException(exception, body);
3579
- };
3580
- const de_RepositoryTriggerEventsListRequiredExceptionRes = async (parsedOutput, context) => {
3581
- const body = parsedOutput.body;
3582
- const deserialized = _json(body);
3583
- const exception = new RepositoryTriggerEventsListRequiredException({
3584
- $metadata: deserializeMetadata(parsedOutput),
3585
- ...deserialized,
3586
- });
3587
- return __decorateServiceException(exception, body);
3588
- };
3589
- const de_RepositoryTriggerNameRequiredExceptionRes = async (parsedOutput, context) => {
3590
- const body = parsedOutput.body;
3591
- const deserialized = _json(body);
3592
- const exception = new RepositoryTriggerNameRequiredException({
3593
- $metadata: deserializeMetadata(parsedOutput),
3594
- ...deserialized,
3595
- });
3596
- return __decorateServiceException(exception, body);
3597
- };
3598
- const de_RepositoryTriggersListRequiredExceptionRes = async (parsedOutput, context) => {
3599
- const body = parsedOutput.body;
3600
- const deserialized = _json(body);
3601
- const exception = new RepositoryTriggersListRequiredException({
3602
- $metadata: deserializeMetadata(parsedOutput),
3603
- ...deserialized,
3604
- });
3605
- return __decorateServiceException(exception, body);
3606
- };
3607
- const de_ResourceArnRequiredExceptionRes = async (parsedOutput, context) => {
3608
- const body = parsedOutput.body;
3609
- const deserialized = _json(body);
3610
- const exception = new ResourceArnRequiredException({
3611
- $metadata: deserializeMetadata(parsedOutput),
3612
- ...deserialized,
3613
- });
3614
- return __decorateServiceException(exception, body);
3615
- };
3616
- const de_RestrictedSourceFileExceptionRes = async (parsedOutput, context) => {
3617
- const body = parsedOutput.body;
3618
- const deserialized = _json(body);
3619
- const exception = new RestrictedSourceFileException({
3620
- $metadata: deserializeMetadata(parsedOutput),
3621
- ...deserialized,
3622
- });
3623
- return __decorateServiceException(exception, body);
3624
- };
3625
- const de_RevisionIdRequiredExceptionRes = async (parsedOutput, context) => {
3626
- const body = parsedOutput.body;
3627
- const deserialized = _json(body);
3628
- const exception = new RevisionIdRequiredException({
3629
- $metadata: deserializeMetadata(parsedOutput),
3630
- ...deserialized,
3631
- });
3632
- return __decorateServiceException(exception, body);
3633
- };
3634
- const de_RevisionNotCurrentExceptionRes = async (parsedOutput, context) => {
3635
- const body = parsedOutput.body;
3636
- const deserialized = _json(body);
3637
- const exception = new RevisionNotCurrentException({
3638
- $metadata: deserializeMetadata(parsedOutput),
3639
- ...deserialized,
3640
- });
3641
- return __decorateServiceException(exception, body);
3642
- };
3643
- const de_SameFileContentExceptionRes = async (parsedOutput, context) => {
3644
- const body = parsedOutput.body;
3645
- const deserialized = _json(body);
3646
- const exception = new SameFileContentException({
3647
- $metadata: deserializeMetadata(parsedOutput),
3648
- ...deserialized,
3649
- });
3650
- return __decorateServiceException(exception, body);
3651
- };
3652
- const de_SamePathRequestExceptionRes = async (parsedOutput, context) => {
3653
- const body = parsedOutput.body;
3654
- const deserialized = _json(body);
3655
- const exception = new SamePathRequestException({
3656
- $metadata: deserializeMetadata(parsedOutput),
3657
- ...deserialized,
3658
- });
3659
- return __decorateServiceException(exception, body);
3660
- };
3661
- const de_SourceAndDestinationAreSameExceptionRes = async (parsedOutput, context) => {
3662
- const body = parsedOutput.body;
3663
- const deserialized = _json(body);
3664
- const exception = new SourceAndDestinationAreSameException({
3665
- $metadata: deserializeMetadata(parsedOutput),
3666
- ...deserialized,
3667
- });
3668
- return __decorateServiceException(exception, body);
3669
- };
3670
- const de_SourceFileOrContentRequiredExceptionRes = async (parsedOutput, context) => {
3671
- const body = parsedOutput.body;
3672
- const deserialized = _json(body);
3673
- const exception = new SourceFileOrContentRequiredException({
3674
- $metadata: deserializeMetadata(parsedOutput),
3675
- ...deserialized,
3676
- });
3677
- return __decorateServiceException(exception, body);
3678
- };
3679
- const de_TagKeysListRequiredExceptionRes = async (parsedOutput, context) => {
3680
- const body = parsedOutput.body;
3681
- const deserialized = _json(body);
3682
- const exception = new TagKeysListRequiredException({
3683
- $metadata: deserializeMetadata(parsedOutput),
3684
- ...deserialized,
3685
- });
3686
- return __decorateServiceException(exception, body);
3687
- };
3688
- const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
3689
- const body = parsedOutput.body;
3690
- const deserialized = _json(body);
3691
- const exception = new TagPolicyException({
3692
- $metadata: deserializeMetadata(parsedOutput),
3693
- ...deserialized,
3694
- });
3695
- return __decorateServiceException(exception, body);
3696
- };
3697
- const de_TagsMapRequiredExceptionRes = async (parsedOutput, context) => {
3698
- const body = parsedOutput.body;
3699
- const deserialized = _json(body);
3700
- const exception = new TagsMapRequiredException({
3701
- $metadata: deserializeMetadata(parsedOutput),
3702
- ...deserialized,
3703
- });
3704
- return __decorateServiceException(exception, body);
3705
- };
3706
- const de_TargetRequiredExceptionRes = async (parsedOutput, context) => {
3707
- const body = parsedOutput.body;
3708
- const deserialized = _json(body);
3709
- const exception = new TargetRequiredException({
3710
- $metadata: deserializeMetadata(parsedOutput),
3711
- ...deserialized,
3712
- });
3713
- return __decorateServiceException(exception, body);
3714
- };
3715
- const de_TargetsRequiredExceptionRes = async (parsedOutput, context) => {
3716
- const body = parsedOutput.body;
3717
- const deserialized = _json(body);
3718
- const exception = new TargetsRequiredException({
3719
- $metadata: deserializeMetadata(parsedOutput),
3720
- ...deserialized,
3721
- });
3722
- return __decorateServiceException(exception, body);
3723
- };
3724
- const de_TipOfSourceReferenceIsDifferentExceptionRes = async (parsedOutput, context) => {
3725
- const body = parsedOutput.body;
3726
- const deserialized = _json(body);
3727
- const exception = new TipOfSourceReferenceIsDifferentException({
3728
- $metadata: deserializeMetadata(parsedOutput),
3729
- ...deserialized,
3730
- });
3731
- return __decorateServiceException(exception, body);
3732
- };
3733
- const de_TipsDivergenceExceededExceptionRes = async (parsedOutput, context) => {
3734
- const body = parsedOutput.body;
3735
- const deserialized = _json(body);
3736
- const exception = new TipsDivergenceExceededException({
3737
- $metadata: deserializeMetadata(parsedOutput),
3738
- ...deserialized,
3739
- });
3740
- return __decorateServiceException(exception, body);
3741
- };
3742
- const de_TitleRequiredExceptionRes = async (parsedOutput, context) => {
3743
- const body = parsedOutput.body;
3744
- const deserialized = _json(body);
3745
- const exception = new TitleRequiredException({
3746
- $metadata: deserializeMetadata(parsedOutput),
3747
- ...deserialized,
3748
- });
3749
- return __decorateServiceException(exception, body);
3750
- };
3751
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
3752
- const body = parsedOutput.body;
3753
- const deserialized = _json(body);
3754
- const exception = new TooManyTagsException({
3755
- $metadata: deserializeMetadata(parsedOutput),
3756
- ...deserialized,
3757
- });
3758
- return __decorateServiceException(exception, body);
3759
- };
3760
- const se_ConflictResolution = (input, context) => {
3761
- return take(input, {
3762
- deleteFiles: _json,
3763
- replaceContents: (_) => se_ReplaceContentEntries(_, context),
3764
- setFileModes: _json,
3765
- });
3766
- };
3767
- const se_CreateCommitInput = (input, context) => {
3768
- return take(input, {
3769
- authorName: [],
3770
- branchName: [],
3771
- commitMessage: [],
3772
- deleteFiles: _json,
3773
- email: [],
3774
- keepEmptyFolders: [],
3775
- parentCommitId: [],
3776
- putFiles: (_) => se_PutFileEntries(_, context),
3777
- repositoryName: [],
3778
- setFileModes: _json,
3779
- });
3780
- };
3781
- const se_CreatePullRequestInput = (input, context) => {
3782
- return take(input, {
3783
- clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
3784
- description: [],
3785
- targets: _json,
3786
- title: [],
3787
- });
3788
- };
3789
- const se_CreateUnreferencedMergeCommitInput = (input, context) => {
3790
- return take(input, {
3791
- authorName: [],
3792
- commitMessage: [],
3793
- conflictDetailLevel: [],
3794
- conflictResolution: (_) => se_ConflictResolution(_, context),
3795
- conflictResolutionStrategy: [],
3796
- destinationCommitSpecifier: [],
3797
- email: [],
3798
- keepEmptyFolders: [],
3799
- mergeOption: [],
3800
- repositoryName: [],
3801
- sourceCommitSpecifier: [],
3802
- });
3803
- };
3804
- const se_MergeBranchesBySquashInput = (input, context) => {
3805
- return take(input, {
3806
- authorName: [],
3807
- commitMessage: [],
3808
- conflictDetailLevel: [],
3809
- conflictResolution: (_) => se_ConflictResolution(_, context),
3810
- conflictResolutionStrategy: [],
3811
- destinationCommitSpecifier: [],
3812
- email: [],
3813
- keepEmptyFolders: [],
3814
- repositoryName: [],
3815
- sourceCommitSpecifier: [],
3816
- targetBranch: [],
3817
- });
3818
- };
3819
- const se_MergeBranchesByThreeWayInput = (input, context) => {
3820
- return take(input, {
3821
- authorName: [],
3822
- commitMessage: [],
3823
- conflictDetailLevel: [],
3824
- conflictResolution: (_) => se_ConflictResolution(_, context),
3825
- conflictResolutionStrategy: [],
3826
- destinationCommitSpecifier: [],
3827
- email: [],
3828
- keepEmptyFolders: [],
3829
- repositoryName: [],
3830
- sourceCommitSpecifier: [],
3831
- targetBranch: [],
3832
- });
3833
- };
3834
- const se_MergePullRequestBySquashInput = (input, context) => {
3835
- return take(input, {
3836
- authorName: [],
3837
- commitMessage: [],
3838
- conflictDetailLevel: [],
3839
- conflictResolution: (_) => se_ConflictResolution(_, context),
3840
- conflictResolutionStrategy: [],
3841
- email: [],
3842
- keepEmptyFolders: [],
3843
- pullRequestId: [],
3844
- repositoryName: [],
3845
- sourceCommitId: [],
3846
- });
3847
- };
3848
- const se_MergePullRequestByThreeWayInput = (input, context) => {
3849
- return take(input, {
3850
- authorName: [],
3851
- commitMessage: [],
3852
- conflictDetailLevel: [],
3853
- conflictResolution: (_) => se_ConflictResolution(_, context),
3854
- conflictResolutionStrategy: [],
3855
- email: [],
3856
- keepEmptyFolders: [],
3857
- pullRequestId: [],
3858
- repositoryName: [],
3859
- sourceCommitId: [],
3860
- });
3861
- };
3862
- const se_PostCommentForComparedCommitInput = (input, context) => {
3863
- return take(input, {
3864
- afterCommitId: [],
3865
- beforeCommitId: [],
3866
- clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
3867
- content: [],
3868
- location: _json,
3869
- repositoryName: [],
3870
- });
3871
- };
3872
- const se_PostCommentForPullRequestInput = (input, context) => {
3873
- return take(input, {
3874
- afterCommitId: [],
3875
- beforeCommitId: [],
3876
- clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
3877
- content: [],
3878
- location: _json,
3879
- pullRequestId: [],
3880
- repositoryName: [],
3881
- });
3882
- };
3883
- const se_PostCommentReplyInput = (input, context) => {
3884
- return take(input, {
3885
- clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
3886
- content: [],
3887
- inReplyTo: [],
3888
- });
3889
- };
3890
- const se_PutFileEntries = (input, context) => {
3891
- return input
3892
- .filter((e) => e != null)
3893
- .map((entry) => {
3894
- return se_PutFileEntry(entry, context);
3895
- });
3896
- };
3897
- const se_PutFileEntry = (input, context) => {
3898
- return take(input, {
3899
- fileContent: context.base64Encoder,
3900
- fileMode: [],
3901
- filePath: [],
3902
- sourceFile: _json,
3903
- });
3904
- };
3905
- const se_PutFileInput = (input, context) => {
3906
- return take(input, {
3907
- branchName: [],
3908
- commitMessage: [],
3909
- email: [],
3910
- fileContent: context.base64Encoder,
3911
- fileMode: [],
3912
- filePath: [],
3913
- name: [],
3914
- parentCommitId: [],
3915
- repositoryName: [],
3916
- });
3917
- };
3918
- const se_ReplaceContentEntries = (input, context) => {
3919
- return input
3920
- .filter((e) => e != null)
3921
- .map((entry) => {
3922
- return se_ReplaceContentEntry(entry, context);
3923
- });
3924
- };
3925
- const se_ReplaceContentEntry = (input, context) => {
3926
- return take(input, {
3927
- content: context.base64Encoder,
3928
- fileMode: [],
3929
- filePath: [],
3930
- replacementType: [],
3931
- });
3932
- };
3933
- const de_ApprovalRule = (output, context) => {
3934
- return take(output, {
3935
- approvalRuleContent: __expectString,
3936
- approvalRuleId: __expectString,
3937
- approvalRuleName: __expectString,
3938
- creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3939
- lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3940
- lastModifiedUser: __expectString,
3941
- originApprovalRuleTemplate: _json,
3942
- ruleContentSha256: __expectString,
3943
- });
3944
- };
3945
- const de_ApprovalRulesList = (output, context) => {
3946
- const retVal = (output || [])
3947
- .filter((e) => e != null)
3948
- .map((entry) => {
3949
- return de_ApprovalRule(entry, context);
3950
- });
3951
- return retVal;
3952
- };
3953
- const de_ApprovalRuleTemplate = (output, context) => {
3954
- return take(output, {
3955
- approvalRuleTemplateContent: __expectString,
3956
- approvalRuleTemplateDescription: __expectString,
3957
- approvalRuleTemplateId: __expectString,
3958
- approvalRuleTemplateName: __expectString,
3959
- creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3960
- lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3961
- lastModifiedUser: __expectString,
3962
- ruleContentSha256: __expectString,
3963
- });
3964
- };
3965
- const de_BatchGetRepositoriesOutput = (output, context) => {
3966
- return take(output, {
3967
- errors: _json,
3968
- repositories: (_) => de_RepositoryMetadataList(_, context),
3969
- repositoriesNotFound: _json,
3970
- });
3971
- };
3972
- const de_Comment = (output, context) => {
3973
- return take(output, {
3974
- authorArn: __expectString,
3975
- callerReactions: _json,
3976
- clientRequestToken: __expectString,
3977
- commentId: __expectString,
3978
- content: __expectString,
3979
- creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3980
- deleted: __expectBoolean,
3981
- inReplyTo: __expectString,
3982
- lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3983
- reactionCounts: _json,
3984
- });
3985
- };
3986
- const de_Comments = (output, context) => {
3987
- const retVal = (output || [])
3988
- .filter((e) => e != null)
3989
- .map((entry) => {
3990
- return de_Comment(entry, context);
3991
- });
3992
- return retVal;
3993
- };
3994
- const de_CommentsForComparedCommit = (output, context) => {
3995
- return take(output, {
3996
- afterBlobId: __expectString,
3997
- afterCommitId: __expectString,
3998
- beforeBlobId: __expectString,
3999
- beforeCommitId: __expectString,
4000
- comments: (_) => de_Comments(_, context),
4001
- location: _json,
4002
- repositoryName: __expectString,
4003
- });
4004
- };
4005
- const de_CommentsForComparedCommitData = (output, context) => {
4006
- const retVal = (output || [])
4007
- .filter((e) => e != null)
4008
- .map((entry) => {
4009
- return de_CommentsForComparedCommit(entry, context);
4010
- });
4011
- return retVal;
4012
- };
4013
- const de_CommentsForPullRequest = (output, context) => {
4014
- return take(output, {
4015
- afterBlobId: __expectString,
4016
- afterCommitId: __expectString,
4017
- beforeBlobId: __expectString,
4018
- beforeCommitId: __expectString,
4019
- comments: (_) => de_Comments(_, context),
4020
- location: _json,
4021
- pullRequestId: __expectString,
4022
- repositoryName: __expectString,
4023
- });
4024
- };
4025
- const de_CommentsForPullRequestData = (output, context) => {
4026
- const retVal = (output || [])
4027
- .filter((e) => e != null)
4028
- .map((entry) => {
4029
- return de_CommentsForPullRequest(entry, context);
4030
- });
4031
- return retVal;
4032
- };
4033
- const de_CreateApprovalRuleTemplateOutput = (output, context) => {
4034
- return take(output, {
4035
- approvalRuleTemplate: (_) => de_ApprovalRuleTemplate(_, context),
4036
- });
4037
- };
4038
- const de_CreatePullRequestApprovalRuleOutput = (output, context) => {
4039
- return take(output, {
4040
- approvalRule: (_) => de_ApprovalRule(_, context),
4041
- });
4042
- };
4043
- const de_CreatePullRequestOutput = (output, context) => {
4044
- return take(output, {
4045
- pullRequest: (_) => de_PullRequest(_, context),
4046
- });
4047
- };
4048
- const de_CreateRepositoryOutput = (output, context) => {
4049
- return take(output, {
4050
- repositoryMetadata: (_) => de_RepositoryMetadata(_, context),
4051
- });
4052
- };
4053
- const de_DeleteCommentContentOutput = (output, context) => {
4054
- return take(output, {
4055
- comment: (_) => de_Comment(_, context),
4056
- });
4057
- };
4058
- const de_DescribePullRequestEventsOutput = (output, context) => {
4059
- return take(output, {
4060
- nextToken: __expectString,
4061
- pullRequestEvents: (_) => de_PullRequestEventList(_, context),
4062
- });
4063
- };
4064
- const de_GetApprovalRuleTemplateOutput = (output, context) => {
4065
- return take(output, {
4066
- approvalRuleTemplate: (_) => de_ApprovalRuleTemplate(_, context),
4067
- });
4068
- };
4069
- const de_GetBlobOutput = (output, context) => {
4070
- return take(output, {
4071
- content: context.base64Decoder,
4072
- });
4073
- };
4074
- const de_GetCommentOutput = (output, context) => {
4075
- return take(output, {
4076
- comment: (_) => de_Comment(_, context),
4077
- });
4078
- };
4079
- const de_GetCommentsForComparedCommitOutput = (output, context) => {
4080
- return take(output, {
4081
- commentsForComparedCommitData: (_) => de_CommentsForComparedCommitData(_, context),
4082
- nextToken: __expectString,
4083
- });
4084
- };
4085
- const de_GetCommentsForPullRequestOutput = (output, context) => {
4086
- return take(output, {
4087
- commentsForPullRequestData: (_) => de_CommentsForPullRequestData(_, context),
4088
- nextToken: __expectString,
4089
- });
4090
- };
4091
- const de_GetFileOutput = (output, context) => {
4092
- return take(output, {
4093
- blobId: __expectString,
4094
- commitId: __expectString,
4095
- fileContent: context.base64Decoder,
4096
- fileMode: __expectString,
4097
- filePath: __expectString,
4098
- fileSize: __expectLong,
4099
- });
4100
- };
4101
- const de_GetPullRequestOutput = (output, context) => {
4102
- return take(output, {
4103
- pullRequest: (_) => de_PullRequest(_, context),
4104
- });
4105
- };
4106
- const de_GetRepositoryOutput = (output, context) => {
4107
- return take(output, {
4108
- repositoryMetadata: (_) => de_RepositoryMetadata(_, context),
4109
- });
4110
- };
4111
- const de_MergePullRequestByFastForwardOutput = (output, context) => {
4112
- return take(output, {
4113
- pullRequest: (_) => de_PullRequest(_, context),
4114
- });
4115
- };
4116
- const de_MergePullRequestBySquashOutput = (output, context) => {
4117
- return take(output, {
4118
- pullRequest: (_) => de_PullRequest(_, context),
4119
- });
4120
- };
4121
- const de_MergePullRequestByThreeWayOutput = (output, context) => {
4122
- return take(output, {
4123
- pullRequest: (_) => de_PullRequest(_, context),
4124
- });
4125
- };
4126
- const de_PostCommentForComparedCommitOutput = (output, context) => {
4127
- return take(output, {
4128
- afterBlobId: __expectString,
4129
- afterCommitId: __expectString,
4130
- beforeBlobId: __expectString,
4131
- beforeCommitId: __expectString,
4132
- comment: (_) => de_Comment(_, context),
4133
- location: _json,
4134
- repositoryName: __expectString,
4135
- });
4136
- };
4137
- const de_PostCommentForPullRequestOutput = (output, context) => {
4138
- return take(output, {
4139
- afterBlobId: __expectString,
4140
- afterCommitId: __expectString,
4141
- beforeBlobId: __expectString,
4142
- beforeCommitId: __expectString,
4143
- comment: (_) => de_Comment(_, context),
4144
- location: _json,
4145
- pullRequestId: __expectString,
4146
- repositoryName: __expectString,
4147
- });
4148
- };
4149
- const de_PostCommentReplyOutput = (output, context) => {
4150
- return take(output, {
4151
- comment: (_) => de_Comment(_, context),
4152
- });
4153
- };
4154
- const de_PullRequest = (output, context) => {
4155
- return take(output, {
4156
- approvalRules: (_) => de_ApprovalRulesList(_, context),
4157
- authorArn: __expectString,
4158
- clientRequestToken: __expectString,
4159
- creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4160
- description: __expectString,
4161
- lastActivityDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4162
- pullRequestId: __expectString,
4163
- pullRequestStatus: __expectString,
4164
- pullRequestTargets: _json,
4165
- revisionId: __expectString,
4166
- title: __expectString,
4167
- });
4168
- };
4169
- const de_PullRequestEvent = (output, context) => {
4170
- return take(output, {
4171
- actorArn: __expectString,
4172
- approvalRuleEventMetadata: _json,
4173
- approvalRuleOverriddenEventMetadata: _json,
4174
- approvalStateChangedEventMetadata: _json,
4175
- eventDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4176
- pullRequestCreatedEventMetadata: _json,
4177
- pullRequestEventType: __expectString,
4178
- pullRequestId: __expectString,
4179
- pullRequestMergedStateChangedEventMetadata: _json,
4180
- pullRequestSourceReferenceUpdatedEventMetadata: _json,
4181
- pullRequestStatusChangedEventMetadata: _json,
4182
- });
4183
- };
4184
- const de_PullRequestEventList = (output, context) => {
4185
- const retVal = (output || [])
4186
- .filter((e) => e != null)
4187
- .map((entry) => {
4188
- return de_PullRequestEvent(entry, context);
4189
- });
4190
- return retVal;
4191
- };
4192
- const de_RepositoryMetadata = (output, context) => {
4193
- return take(output, {
4194
- Arn: __expectString,
4195
- accountId: __expectString,
4196
- cloneUrlHttp: __expectString,
4197
- cloneUrlSsh: __expectString,
4198
- creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4199
- defaultBranch: __expectString,
4200
- kmsKeyId: __expectString,
4201
- lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4202
- repositoryDescription: __expectString,
4203
- repositoryId: __expectString,
4204
- repositoryName: __expectString,
4205
- });
4206
- };
4207
- const de_RepositoryMetadataList = (output, context) => {
4208
- const retVal = (output || [])
4209
- .filter((e) => e != null)
4210
- .map((entry) => {
4211
- return de_RepositoryMetadata(entry, context);
4212
- });
4213
- return retVal;
4214
- };
4215
- const de_UpdateApprovalRuleTemplateContentOutput = (output, context) => {
4216
- return take(output, {
4217
- approvalRuleTemplate: (_) => de_ApprovalRuleTemplate(_, context),
4218
- });
4219
- };
4220
- const de_UpdateApprovalRuleTemplateDescriptionOutput = (output, context) => {
4221
- return take(output, {
4222
- approvalRuleTemplate: (_) => de_ApprovalRuleTemplate(_, context),
4223
- });
4224
- };
4225
- const de_UpdateApprovalRuleTemplateNameOutput = (output, context) => {
4226
- return take(output, {
4227
- approvalRuleTemplate: (_) => de_ApprovalRuleTemplate(_, context),
4228
- });
4229
- };
4230
- const de_UpdateCommentOutput = (output, context) => {
4231
- return take(output, {
4232
- comment: (_) => de_Comment(_, context),
4233
- });
4234
- };
4235
- const de_UpdatePullRequestApprovalRuleContentOutput = (output, context) => {
4236
- return take(output, {
4237
- approvalRule: (_) => de_ApprovalRule(_, context),
4238
- });
4239
- };
4240
- const de_UpdatePullRequestDescriptionOutput = (output, context) => {
4241
- return take(output, {
4242
- pullRequest: (_) => de_PullRequest(_, context),
4243
- });
4244
- };
4245
- const de_UpdatePullRequestStatusOutput = (output, context) => {
4246
- return take(output, {
4247
- pullRequest: (_) => de_PullRequest(_, context),
4248
- });
4249
- };
4250
- const de_UpdatePullRequestTitleOutput = (output, context) => {
4251
- return take(output, {
4252
- pullRequest: (_) => de_PullRequest(_, context),
4253
- });
4254
- };
4255
- const deserializeMetadata = (output) => ({
4256
- httpStatusCode: output.statusCode,
4257
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4258
- extendedRequestId: output.headers["x-amz-id-2"],
4259
- cfId: output.headers["x-amz-cf-id"],
4260
- });
4261
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4262
- const throwDefaultError = withBaseException(__BaseException);
4263
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4264
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4265
- const contents = {
4266
- protocol,
4267
- hostname,
4268
- port,
4269
- method: "POST",
4270
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
4271
- headers,
4272
- };
4273
- if (resolvedHostname !== undefined) {
4274
- contents.hostname = resolvedHostname;
4275
- }
4276
- if (body !== undefined) {
4277
- contents.body = body;
4278
- }
4279
- return new __HttpRequest(contents);
4280
- };
4281
- function sharedHeaders(operation) {
4282
- return {
4283
- "content-type": "application/x-amz-json-1.1",
4284
- "x-amz-target": `CodeCommit_20150413.${operation}`,
4285
- };
4286
- }