@aws-sdk/client-codeconnections 3.901.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +1760 -1953
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2030 +1,1837 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- BlockerStatus: () => BlockerStatus,
26
- BlockerType: () => BlockerType,
27
- CodeConnections: () => CodeConnections,
28
- CodeConnectionsClient: () => CodeConnectionsClient,
29
- CodeConnectionsServiceException: () => CodeConnectionsServiceException,
30
- ConcurrentModificationException: () => ConcurrentModificationException,
31
- ConditionalCheckFailedException: () => ConditionalCheckFailedException,
32
- ConflictException: () => ConflictException,
33
- ConnectionStatus: () => ConnectionStatus,
34
- CreateConnectionCommand: () => CreateConnectionCommand,
35
- CreateHostCommand: () => CreateHostCommand,
36
- CreateRepositoryLinkCommand: () => CreateRepositoryLinkCommand,
37
- CreateSyncConfigurationCommand: () => CreateSyncConfigurationCommand,
38
- DeleteConnectionCommand: () => DeleteConnectionCommand,
39
- DeleteHostCommand: () => DeleteHostCommand,
40
- DeleteRepositoryLinkCommand: () => DeleteRepositoryLinkCommand,
41
- DeleteSyncConfigurationCommand: () => DeleteSyncConfigurationCommand,
42
- GetConnectionCommand: () => GetConnectionCommand,
43
- GetHostCommand: () => GetHostCommand,
44
- GetRepositoryLinkCommand: () => GetRepositoryLinkCommand,
45
- GetRepositorySyncStatusCommand: () => GetRepositorySyncStatusCommand,
46
- GetResourceSyncStatusCommand: () => GetResourceSyncStatusCommand,
47
- GetSyncBlockerSummaryCommand: () => GetSyncBlockerSummaryCommand,
48
- GetSyncConfigurationCommand: () => GetSyncConfigurationCommand,
49
- InternalServerException: () => InternalServerException,
50
- InvalidInputException: () => InvalidInputException,
51
- LimitExceededException: () => LimitExceededException,
52
- ListConnectionsCommand: () => ListConnectionsCommand,
53
- ListHostsCommand: () => ListHostsCommand,
54
- ListRepositoryLinksCommand: () => ListRepositoryLinksCommand,
55
- ListRepositorySyncDefinitionsCommand: () => ListRepositorySyncDefinitionsCommand,
56
- ListSyncConfigurationsCommand: () => ListSyncConfigurationsCommand,
57
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
58
- ProviderType: () => ProviderType,
59
- PublishDeploymentStatus: () => PublishDeploymentStatus,
60
- PullRequestComment: () => PullRequestComment,
61
- RepositorySyncStatus: () => RepositorySyncStatus,
62
- ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
63
- ResourceNotFoundException: () => ResourceNotFoundException,
64
- ResourceSyncStatus: () => ResourceSyncStatus,
65
- ResourceUnavailableException: () => ResourceUnavailableException,
66
- RetryLatestCommitFailedException: () => RetryLatestCommitFailedException,
67
- SyncBlockerDoesNotExistException: () => SyncBlockerDoesNotExistException,
68
- SyncConfigurationStillExistsException: () => SyncConfigurationStillExistsException,
69
- SyncConfigurationType: () => SyncConfigurationType,
70
- TagResourceCommand: () => TagResourceCommand,
71
- ThrottlingException: () => ThrottlingException,
72
- TriggerResourceUpdateOn: () => TriggerResourceUpdateOn,
73
- UnsupportedOperationException: () => UnsupportedOperationException,
74
- UnsupportedProviderTypeException: () => UnsupportedProviderTypeException,
75
- UntagResourceCommand: () => UntagResourceCommand,
76
- UpdateHostCommand: () => UpdateHostCommand,
77
- UpdateOutOfSyncException: () => UpdateOutOfSyncException,
78
- UpdateRepositoryLinkCommand: () => UpdateRepositoryLinkCommand,
79
- UpdateSyncBlockerCommand: () => UpdateSyncBlockerCommand,
80
- UpdateSyncConfigurationCommand: () => UpdateSyncConfigurationCommand,
81
- __Client: () => import_smithy_client.Client,
82
- paginateListConnections: () => paginateListConnections,
83
- paginateListHosts: () => paginateListHosts,
84
- paginateListRepositoryLinks: () => paginateListRepositoryLinks,
85
- paginateListSyncConfigurations: () => paginateListSyncConfigurations
86
- });
87
- module.exports = __toCommonJS(index_exports);
88
-
89
- // src/CodeConnectionsClient.ts
90
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
91
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
92
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
93
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
94
- var import_config_resolver = require("@smithy/config-resolver");
95
- var import_core = require("@smithy/core");
96
- var import_middleware_content_length = require("@smithy/middleware-content-length");
97
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
98
- var import_middleware_retry = require("@smithy/middleware-retry");
99
-
100
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
101
-
102
- // src/endpoint/EndpointParameters.ts
103
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
104
- return Object.assign(options, {
105
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
106
- useFipsEndpoint: options.useFipsEndpoint ?? false,
107
- defaultSigningName: "codeconnections"
108
- });
109
- }, "resolveClientEndpointParameters");
110
- var commonParams = {
111
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
112
- Endpoint: { type: "builtInParams", name: "endpoint" },
113
- Region: { type: "builtInParams", name: "region" },
114
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "codeconnections",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
115
32
  };
116
33
 
117
- // src/CodeConnectionsClient.ts
118
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
119
72
 
120
- // src/runtimeExtensions.ts
121
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
122
- var import_protocol_http = require("@smithy/protocol-http");
123
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
124
78
 
125
- // src/auth/httpAuthExtensionConfiguration.ts
126
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
127
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
128
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
129
- let _credentials = runtimeConfig.credentials;
130
- return {
131
- setHttpAuthScheme(httpAuthScheme) {
132
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
133
- if (index === -1) {
134
- _httpAuthSchemes.push(httpAuthScheme);
135
- } else {
136
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
137
- }
138
- },
139
- httpAuthSchemes() {
140
- return _httpAuthSchemes;
141
- },
142
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
143
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
144
- },
145
- httpAuthSchemeProvider() {
146
- return _httpAuthSchemeProvider;
147
- },
148
- setCredentials(credentials) {
149
- _credentials = credentials;
150
- },
151
- credentials() {
152
- return _credentials;
79
+ class CodeConnectionsClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCodeConnectionsHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
153
107
  }
154
- };
155
- }, "getHttpAuthExtensionConfiguration");
156
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
157
- return {
158
- httpAuthSchemes: config.httpAuthSchemes(),
159
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
160
- credentials: config.credentials()
161
- };
162
- }, "resolveHttpAuthRuntimeConfig");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
163
112
 
164
- // src/runtimeExtensions.ts
165
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
166
- const extensionConfiguration = Object.assign(
167
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
168
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
169
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
170
- getHttpAuthExtensionConfiguration(runtimeConfig)
171
- );
172
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
173
- return Object.assign(
174
- runtimeConfig,
175
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
176
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
177
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
178
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
179
- );
180
- }, "resolveRuntimeExtensions");
113
+ class CodeConnectionsServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, CodeConnectionsServiceException.prototype);
117
+ }
118
+ }
181
119
 
182
- // src/CodeConnectionsClient.ts
183
- var CodeConnectionsClient = class extends import_smithy_client.Client {
184
- static {
185
- __name(this, "CodeConnectionsClient");
186
- }
187
- /**
188
- * The resolved configuration of CodeConnectionsClient class. This is resolved and normalized from the {@link CodeConnectionsClientConfig | constructor configuration interface}.
189
- */
190
- config;
191
- constructor(...[configuration]) {
192
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
193
- super(_config_0);
194
- this.initConfig = _config_0;
195
- const _config_1 = resolveClientEndpointParameters(_config_0);
196
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
197
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
198
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
199
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
200
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
201
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
202
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
203
- this.config = _config_8;
204
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
205
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
206
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
207
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
208
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
209
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
210
- this.middlewareStack.use(
211
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
212
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCodeConnectionsHttpAuthSchemeParametersProvider,
213
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
214
- "aws.auth#sigv4": config.credentials
215
- }), "identityProviderConfigProvider")
216
- })
217
- );
218
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
219
- }
220
- /**
221
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
222
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
223
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
224
- */
225
- destroy() {
226
- super.destroy();
227
- }
120
+ class AccessDeniedException extends CodeConnectionsServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ Message;
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ this.Message = opts.Message;
132
+ }
133
+ }
134
+ const BlockerStatus = {
135
+ ACTIVE: "ACTIVE",
136
+ RESOLVED: "RESOLVED",
228
137
  };
229
-
230
- // src/CodeConnections.ts
231
-
232
-
233
- // src/commands/CreateConnectionCommand.ts
234
-
235
- var import_middleware_serde = require("@smithy/middleware-serde");
236
-
237
-
238
- // src/protocols/Aws_json1_0.ts
239
- var import_core2 = require("@aws-sdk/core");
240
-
241
-
242
-
243
- // src/models/CodeConnectionsServiceException.ts
244
-
245
- var CodeConnectionsServiceException = class _CodeConnectionsServiceException extends import_smithy_client.ServiceException {
246
- static {
247
- __name(this, "CodeConnectionsServiceException");
248
- }
249
- /**
250
- * @internal
251
- */
252
- constructor(options) {
253
- super(options);
254
- Object.setPrototypeOf(this, _CodeConnectionsServiceException.prototype);
255
- }
138
+ const BlockerType = {
139
+ AUTOMATED: "AUTOMATED",
140
+ };
141
+ const ProviderType = {
142
+ AZURE_DEV_OPS: "AzureDevOps",
143
+ BITBUCKET: "Bitbucket",
144
+ GITHUB: "GitHub",
145
+ GITHUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
146
+ GITLAB: "GitLab",
147
+ GITLAB_SELF_MANAGED: "GitLabSelfManaged",
148
+ };
149
+ class LimitExceededException extends CodeConnectionsServiceException {
150
+ name = "LimitExceededException";
151
+ $fault = "client";
152
+ Message;
153
+ constructor(opts) {
154
+ super({
155
+ name: "LimitExceededException",
156
+ $fault: "client",
157
+ ...opts,
158
+ });
159
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
160
+ this.Message = opts.Message;
161
+ }
162
+ }
163
+ class ResourceNotFoundException extends CodeConnectionsServiceException {
164
+ name = "ResourceNotFoundException";
165
+ $fault = "client";
166
+ Message;
167
+ constructor(opts) {
168
+ super({
169
+ name: "ResourceNotFoundException",
170
+ $fault: "client",
171
+ ...opts,
172
+ });
173
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
174
+ this.Message = opts.Message;
175
+ }
176
+ }
177
+ class ResourceUnavailableException extends CodeConnectionsServiceException {
178
+ name = "ResourceUnavailableException";
179
+ $fault = "client";
180
+ Message;
181
+ constructor(opts) {
182
+ super({
183
+ name: "ResourceUnavailableException",
184
+ $fault: "client",
185
+ ...opts,
186
+ });
187
+ Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
188
+ this.Message = opts.Message;
189
+ }
190
+ }
191
+ class ConcurrentModificationException extends CodeConnectionsServiceException {
192
+ name = "ConcurrentModificationException";
193
+ $fault = "client";
194
+ Message;
195
+ constructor(opts) {
196
+ super({
197
+ name: "ConcurrentModificationException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
202
+ this.Message = opts.Message;
203
+ }
204
+ }
205
+ class InternalServerException extends CodeConnectionsServiceException {
206
+ name = "InternalServerException";
207
+ $fault = "server";
208
+ Message;
209
+ constructor(opts) {
210
+ super({
211
+ name: "InternalServerException",
212
+ $fault: "server",
213
+ ...opts,
214
+ });
215
+ Object.setPrototypeOf(this, InternalServerException.prototype);
216
+ this.Message = opts.Message;
217
+ }
218
+ }
219
+ class InvalidInputException extends CodeConnectionsServiceException {
220
+ name = "InvalidInputException";
221
+ $fault = "client";
222
+ Message;
223
+ constructor(opts) {
224
+ super({
225
+ name: "InvalidInputException",
226
+ $fault: "client",
227
+ ...opts,
228
+ });
229
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
230
+ this.Message = opts.Message;
231
+ }
232
+ }
233
+ class ResourceAlreadyExistsException extends CodeConnectionsServiceException {
234
+ name = "ResourceAlreadyExistsException";
235
+ $fault = "client";
236
+ Message;
237
+ constructor(opts) {
238
+ super({
239
+ name: "ResourceAlreadyExistsException",
240
+ $fault: "client",
241
+ ...opts,
242
+ });
243
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
244
+ this.Message = opts.Message;
245
+ }
246
+ }
247
+ class ThrottlingException extends CodeConnectionsServiceException {
248
+ name = "ThrottlingException";
249
+ $fault = "client";
250
+ Message;
251
+ constructor(opts) {
252
+ super({
253
+ name: "ThrottlingException",
254
+ $fault: "client",
255
+ ...opts,
256
+ });
257
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
258
+ this.Message = opts.Message;
259
+ }
260
+ }
261
+ const PublishDeploymentStatus = {
262
+ DISABLED: "DISABLED",
263
+ ENABLED: "ENABLED",
264
+ };
265
+ const PullRequestComment = {
266
+ DISABLED: "DISABLED",
267
+ ENABLED: "ENABLED",
268
+ };
269
+ const SyncConfigurationType = {
270
+ CFN_STACK_SYNC: "CFN_STACK_SYNC",
271
+ };
272
+ const TriggerResourceUpdateOn = {
273
+ ANY_CHANGE: "ANY_CHANGE",
274
+ FILE_CHANGE: "FILE_CHANGE",
275
+ };
276
+ class SyncConfigurationStillExistsException extends CodeConnectionsServiceException {
277
+ name = "SyncConfigurationStillExistsException";
278
+ $fault = "client";
279
+ Message;
280
+ constructor(opts) {
281
+ super({
282
+ name: "SyncConfigurationStillExistsException",
283
+ $fault: "client",
284
+ ...opts,
285
+ });
286
+ Object.setPrototypeOf(this, SyncConfigurationStillExistsException.prototype);
287
+ this.Message = opts.Message;
288
+ }
289
+ }
290
+ class UnsupportedProviderTypeException extends CodeConnectionsServiceException {
291
+ name = "UnsupportedProviderTypeException";
292
+ $fault = "client";
293
+ Message;
294
+ constructor(opts) {
295
+ super({
296
+ name: "UnsupportedProviderTypeException",
297
+ $fault: "client",
298
+ ...opts,
299
+ });
300
+ Object.setPrototypeOf(this, UnsupportedProviderTypeException.prototype);
301
+ this.Message = opts.Message;
302
+ }
303
+ }
304
+ const ConnectionStatus = {
305
+ AVAILABLE: "AVAILABLE",
306
+ ERROR: "ERROR",
307
+ PENDING: "PENDING",
308
+ };
309
+ const RepositorySyncStatus = {
310
+ FAILED: "FAILED",
311
+ INITIATED: "INITIATED",
312
+ IN_PROGRESS: "IN_PROGRESS",
313
+ QUEUED: "QUEUED",
314
+ SUCCEEDED: "SUCCEEDED",
315
+ };
316
+ const ResourceSyncStatus = {
317
+ FAILED: "FAILED",
318
+ INITIATED: "INITIATED",
319
+ IN_PROGRESS: "IN_PROGRESS",
320
+ SUCCEEDED: "SUCCEEDED",
256
321
  };
322
+ class ConflictException extends CodeConnectionsServiceException {
323
+ name = "ConflictException";
324
+ $fault = "client";
325
+ Message;
326
+ constructor(opts) {
327
+ super({
328
+ name: "ConflictException",
329
+ $fault: "client",
330
+ ...opts,
331
+ });
332
+ Object.setPrototypeOf(this, ConflictException.prototype);
333
+ this.Message = opts.Message;
334
+ }
335
+ }
336
+ class UnsupportedOperationException extends CodeConnectionsServiceException {
337
+ name = "UnsupportedOperationException";
338
+ $fault = "client";
339
+ Message;
340
+ constructor(opts) {
341
+ super({
342
+ name: "UnsupportedOperationException",
343
+ $fault: "client",
344
+ ...opts,
345
+ });
346
+ Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
347
+ this.Message = opts.Message;
348
+ }
349
+ }
350
+ class ConditionalCheckFailedException extends CodeConnectionsServiceException {
351
+ name = "ConditionalCheckFailedException";
352
+ $fault = "client";
353
+ Message;
354
+ constructor(opts) {
355
+ super({
356
+ name: "ConditionalCheckFailedException",
357
+ $fault: "client",
358
+ ...opts,
359
+ });
360
+ Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype);
361
+ this.Message = opts.Message;
362
+ }
363
+ }
364
+ class UpdateOutOfSyncException extends CodeConnectionsServiceException {
365
+ name = "UpdateOutOfSyncException";
366
+ $fault = "client";
367
+ Message;
368
+ constructor(opts) {
369
+ super({
370
+ name: "UpdateOutOfSyncException",
371
+ $fault: "client",
372
+ ...opts,
373
+ });
374
+ Object.setPrototypeOf(this, UpdateOutOfSyncException.prototype);
375
+ this.Message = opts.Message;
376
+ }
377
+ }
378
+ class RetryLatestCommitFailedException extends CodeConnectionsServiceException {
379
+ name = "RetryLatestCommitFailedException";
380
+ $fault = "server";
381
+ Message;
382
+ constructor(opts) {
383
+ super({
384
+ name: "RetryLatestCommitFailedException",
385
+ $fault: "server",
386
+ ...opts,
387
+ });
388
+ Object.setPrototypeOf(this, RetryLatestCommitFailedException.prototype);
389
+ this.Message = opts.Message;
390
+ }
391
+ }
392
+ class SyncBlockerDoesNotExistException extends CodeConnectionsServiceException {
393
+ name = "SyncBlockerDoesNotExistException";
394
+ $fault = "client";
395
+ Message;
396
+ constructor(opts) {
397
+ super({
398
+ name: "SyncBlockerDoesNotExistException",
399
+ $fault: "client",
400
+ ...opts,
401
+ });
402
+ Object.setPrototypeOf(this, SyncBlockerDoesNotExistException.prototype);
403
+ this.Message = opts.Message;
404
+ }
405
+ }
257
406
 
258
- // src/models/models_0.ts
259
- var AccessDeniedException = class _AccessDeniedException extends CodeConnectionsServiceException {
260
- static {
261
- __name(this, "AccessDeniedException");
262
- }
263
- name = "AccessDeniedException";
264
- $fault = "client";
265
- Message;
266
- /**
267
- * @internal
268
- */
269
- constructor(opts) {
270
- super({
271
- name: "AccessDeniedException",
272
- $fault: "client",
273
- ...opts
274
- });
275
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
276
- this.Message = opts.Message;
277
- }
278
- };
279
- var BlockerStatus = {
280
- ACTIVE: "ACTIVE",
281
- RESOLVED: "RESOLVED"
282
- };
283
- var BlockerType = {
284
- AUTOMATED: "AUTOMATED"
285
- };
286
- var ProviderType = {
287
- AZURE_DEV_OPS: "AzureDevOps",
288
- BITBUCKET: "Bitbucket",
289
- GITHUB: "GitHub",
290
- GITHUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
291
- GITLAB: "GitLab",
292
- GITLAB_SELF_MANAGED: "GitLabSelfManaged"
293
- };
294
- var LimitExceededException = class _LimitExceededException extends CodeConnectionsServiceException {
295
- static {
296
- __name(this, "LimitExceededException");
297
- }
298
- name = "LimitExceededException";
299
- $fault = "client";
300
- Message;
301
- /**
302
- * @internal
303
- */
304
- constructor(opts) {
305
- super({
306
- name: "LimitExceededException",
307
- $fault: "client",
308
- ...opts
309
- });
310
- Object.setPrototypeOf(this, _LimitExceededException.prototype);
311
- this.Message = opts.Message;
312
- }
313
- };
314
- var ResourceNotFoundException = class _ResourceNotFoundException extends CodeConnectionsServiceException {
315
- static {
316
- __name(this, "ResourceNotFoundException");
317
- }
318
- name = "ResourceNotFoundException";
319
- $fault = "client";
320
- Message;
321
- /**
322
- * @internal
323
- */
324
- constructor(opts) {
325
- super({
326
- name: "ResourceNotFoundException",
327
- $fault: "client",
328
- ...opts
329
- });
330
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
331
- this.Message = opts.Message;
332
- }
333
- };
334
- var ResourceUnavailableException = class _ResourceUnavailableException extends CodeConnectionsServiceException {
335
- static {
336
- __name(this, "ResourceUnavailableException");
337
- }
338
- name = "ResourceUnavailableException";
339
- $fault = "client";
340
- Message;
341
- /**
342
- * @internal
343
- */
344
- constructor(opts) {
345
- super({
346
- name: "ResourceUnavailableException",
347
- $fault: "client",
348
- ...opts
349
- });
350
- Object.setPrototypeOf(this, _ResourceUnavailableException.prototype);
351
- this.Message = opts.Message;
352
- }
353
- };
354
- var ConcurrentModificationException = class _ConcurrentModificationException extends CodeConnectionsServiceException {
355
- static {
356
- __name(this, "ConcurrentModificationException");
357
- }
358
- name = "ConcurrentModificationException";
359
- $fault = "client";
360
- Message;
361
- /**
362
- * @internal
363
- */
364
- constructor(opts) {
365
- super({
366
- name: "ConcurrentModificationException",
367
- $fault: "client",
368
- ...opts
369
- });
370
- Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
371
- this.Message = opts.Message;
372
- }
373
- };
374
- var InternalServerException = class _InternalServerException extends CodeConnectionsServiceException {
375
- static {
376
- __name(this, "InternalServerException");
377
- }
378
- name = "InternalServerException";
379
- $fault = "server";
380
- Message;
381
- /**
382
- * @internal
383
- */
384
- constructor(opts) {
385
- super({
386
- name: "InternalServerException",
387
- $fault: "server",
388
- ...opts
389
- });
390
- Object.setPrototypeOf(this, _InternalServerException.prototype);
391
- this.Message = opts.Message;
392
- }
393
- };
394
- var InvalidInputException = class _InvalidInputException extends CodeConnectionsServiceException {
395
- static {
396
- __name(this, "InvalidInputException");
397
- }
398
- name = "InvalidInputException";
399
- $fault = "client";
400
- Message;
401
- /**
402
- * @internal
403
- */
404
- constructor(opts) {
405
- super({
406
- name: "InvalidInputException",
407
- $fault: "client",
408
- ...opts
407
+ const se_CreateConnectionCommand = async (input, context) => {
408
+ const headers = sharedHeaders("CreateConnection");
409
+ let body;
410
+ body = JSON.stringify(smithyClient._json(input));
411
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
412
+ };
413
+ const se_CreateHostCommand = async (input, context) => {
414
+ const headers = sharedHeaders("CreateHost");
415
+ let body;
416
+ body = JSON.stringify(smithyClient._json(input));
417
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
+ };
419
+ const se_CreateRepositoryLinkCommand = async (input, context) => {
420
+ const headers = sharedHeaders("CreateRepositoryLink");
421
+ let body;
422
+ body = JSON.stringify(smithyClient._json(input));
423
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
424
+ };
425
+ const se_CreateSyncConfigurationCommand = async (input, context) => {
426
+ const headers = sharedHeaders("CreateSyncConfiguration");
427
+ let body;
428
+ body = JSON.stringify(smithyClient._json(input));
429
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
430
+ };
431
+ const se_DeleteConnectionCommand = async (input, context) => {
432
+ const headers = sharedHeaders("DeleteConnection");
433
+ let body;
434
+ body = JSON.stringify(smithyClient._json(input));
435
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
436
+ };
437
+ const se_DeleteHostCommand = async (input, context) => {
438
+ const headers = sharedHeaders("DeleteHost");
439
+ let body;
440
+ body = JSON.stringify(smithyClient._json(input));
441
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
+ };
443
+ const se_DeleteRepositoryLinkCommand = async (input, context) => {
444
+ const headers = sharedHeaders("DeleteRepositoryLink");
445
+ let body;
446
+ body = JSON.stringify(smithyClient._json(input));
447
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
+ };
449
+ const se_DeleteSyncConfigurationCommand = async (input, context) => {
450
+ const headers = sharedHeaders("DeleteSyncConfiguration");
451
+ let body;
452
+ body = JSON.stringify(smithyClient._json(input));
453
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
454
+ };
455
+ const se_GetConnectionCommand = async (input, context) => {
456
+ const headers = sharedHeaders("GetConnection");
457
+ let body;
458
+ body = JSON.stringify(smithyClient._json(input));
459
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
460
+ };
461
+ const se_GetHostCommand = async (input, context) => {
462
+ const headers = sharedHeaders("GetHost");
463
+ let body;
464
+ body = JSON.stringify(smithyClient._json(input));
465
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
466
+ };
467
+ const se_GetRepositoryLinkCommand = async (input, context) => {
468
+ const headers = sharedHeaders("GetRepositoryLink");
469
+ let body;
470
+ body = JSON.stringify(smithyClient._json(input));
471
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
472
+ };
473
+ const se_GetRepositorySyncStatusCommand = async (input, context) => {
474
+ const headers = sharedHeaders("GetRepositorySyncStatus");
475
+ let body;
476
+ body = JSON.stringify(smithyClient._json(input));
477
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
478
+ };
479
+ const se_GetResourceSyncStatusCommand = async (input, context) => {
480
+ const headers = sharedHeaders("GetResourceSyncStatus");
481
+ let body;
482
+ body = JSON.stringify(smithyClient._json(input));
483
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
484
+ };
485
+ const se_GetSyncBlockerSummaryCommand = async (input, context) => {
486
+ const headers = sharedHeaders("GetSyncBlockerSummary");
487
+ let body;
488
+ body = JSON.stringify(smithyClient._json(input));
489
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
490
+ };
491
+ const se_GetSyncConfigurationCommand = async (input, context) => {
492
+ const headers = sharedHeaders("GetSyncConfiguration");
493
+ let body;
494
+ body = JSON.stringify(smithyClient._json(input));
495
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
496
+ };
497
+ const se_ListConnectionsCommand = async (input, context) => {
498
+ const headers = sharedHeaders("ListConnections");
499
+ let body;
500
+ body = JSON.stringify(smithyClient._json(input));
501
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
502
+ };
503
+ const se_ListHostsCommand = async (input, context) => {
504
+ const headers = sharedHeaders("ListHosts");
505
+ let body;
506
+ body = JSON.stringify(smithyClient._json(input));
507
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
508
+ };
509
+ const se_ListRepositoryLinksCommand = async (input, context) => {
510
+ const headers = sharedHeaders("ListRepositoryLinks");
511
+ let body;
512
+ body = JSON.stringify(smithyClient._json(input));
513
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
514
+ };
515
+ const se_ListRepositorySyncDefinitionsCommand = async (input, context) => {
516
+ const headers = sharedHeaders("ListRepositorySyncDefinitions");
517
+ let body;
518
+ body = JSON.stringify(smithyClient._json(input));
519
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
520
+ };
521
+ const se_ListSyncConfigurationsCommand = async (input, context) => {
522
+ const headers = sharedHeaders("ListSyncConfigurations");
523
+ let body;
524
+ body = JSON.stringify(smithyClient._json(input));
525
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
526
+ };
527
+ const se_ListTagsForResourceCommand = async (input, context) => {
528
+ const headers = sharedHeaders("ListTagsForResource");
529
+ let body;
530
+ body = JSON.stringify(smithyClient._json(input));
531
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
532
+ };
533
+ const se_TagResourceCommand = async (input, context) => {
534
+ const headers = sharedHeaders("TagResource");
535
+ let body;
536
+ body = JSON.stringify(smithyClient._json(input));
537
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
538
+ };
539
+ const se_UntagResourceCommand = async (input, context) => {
540
+ const headers = sharedHeaders("UntagResource");
541
+ let body;
542
+ body = JSON.stringify(smithyClient._json(input));
543
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
544
+ };
545
+ const se_UpdateHostCommand = async (input, context) => {
546
+ const headers = sharedHeaders("UpdateHost");
547
+ let body;
548
+ body = JSON.stringify(smithyClient._json(input));
549
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
550
+ };
551
+ const se_UpdateRepositoryLinkCommand = async (input, context) => {
552
+ const headers = sharedHeaders("UpdateRepositoryLink");
553
+ let body;
554
+ body = JSON.stringify(smithyClient._json(input));
555
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
556
+ };
557
+ const se_UpdateSyncBlockerCommand = async (input, context) => {
558
+ const headers = sharedHeaders("UpdateSyncBlocker");
559
+ let body;
560
+ body = JSON.stringify(smithyClient._json(input));
561
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
562
+ };
563
+ const se_UpdateSyncConfigurationCommand = async (input, context) => {
564
+ const headers = sharedHeaders("UpdateSyncConfiguration");
565
+ let body;
566
+ body = JSON.stringify(smithyClient._json(input));
567
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
568
+ };
569
+ const de_CreateConnectionCommand = async (output, context) => {
570
+ if (output.statusCode >= 300) {
571
+ return de_CommandError(output, context);
572
+ }
573
+ const data = await core$1.parseJsonBody(output.body, context);
574
+ let contents = {};
575
+ contents = smithyClient._json(data);
576
+ const response = {
577
+ $metadata: deserializeMetadata(output),
578
+ ...contents,
579
+ };
580
+ return response;
581
+ };
582
+ const de_CreateHostCommand = async (output, context) => {
583
+ if (output.statusCode >= 300) {
584
+ return de_CommandError(output, context);
585
+ }
586
+ const data = await core$1.parseJsonBody(output.body, context);
587
+ let contents = {};
588
+ contents = smithyClient._json(data);
589
+ const response = {
590
+ $metadata: deserializeMetadata(output),
591
+ ...contents,
592
+ };
593
+ return response;
594
+ };
595
+ const de_CreateRepositoryLinkCommand = async (output, context) => {
596
+ if (output.statusCode >= 300) {
597
+ return de_CommandError(output, context);
598
+ }
599
+ const data = await core$1.parseJsonBody(output.body, context);
600
+ let contents = {};
601
+ contents = smithyClient._json(data);
602
+ const response = {
603
+ $metadata: deserializeMetadata(output),
604
+ ...contents,
605
+ };
606
+ return response;
607
+ };
608
+ const de_CreateSyncConfigurationCommand = async (output, context) => {
609
+ if (output.statusCode >= 300) {
610
+ return de_CommandError(output, context);
611
+ }
612
+ const data = await core$1.parseJsonBody(output.body, context);
613
+ let contents = {};
614
+ contents = smithyClient._json(data);
615
+ const response = {
616
+ $metadata: deserializeMetadata(output),
617
+ ...contents,
618
+ };
619
+ return response;
620
+ };
621
+ const de_DeleteConnectionCommand = async (output, context) => {
622
+ if (output.statusCode >= 300) {
623
+ return de_CommandError(output, context);
624
+ }
625
+ const data = await core$1.parseJsonBody(output.body, context);
626
+ let contents = {};
627
+ contents = smithyClient._json(data);
628
+ const response = {
629
+ $metadata: deserializeMetadata(output),
630
+ ...contents,
631
+ };
632
+ return response;
633
+ };
634
+ const de_DeleteHostCommand = async (output, context) => {
635
+ if (output.statusCode >= 300) {
636
+ return de_CommandError(output, context);
637
+ }
638
+ const data = await core$1.parseJsonBody(output.body, context);
639
+ let contents = {};
640
+ contents = smithyClient._json(data);
641
+ const response = {
642
+ $metadata: deserializeMetadata(output),
643
+ ...contents,
644
+ };
645
+ return response;
646
+ };
647
+ const de_DeleteRepositoryLinkCommand = async (output, context) => {
648
+ if (output.statusCode >= 300) {
649
+ return de_CommandError(output, context);
650
+ }
651
+ const data = await core$1.parseJsonBody(output.body, context);
652
+ let contents = {};
653
+ contents = smithyClient._json(data);
654
+ const response = {
655
+ $metadata: deserializeMetadata(output),
656
+ ...contents,
657
+ };
658
+ return response;
659
+ };
660
+ const de_DeleteSyncConfigurationCommand = async (output, context) => {
661
+ if (output.statusCode >= 300) {
662
+ return de_CommandError(output, context);
663
+ }
664
+ const data = await core$1.parseJsonBody(output.body, context);
665
+ let contents = {};
666
+ contents = smithyClient._json(data);
667
+ const response = {
668
+ $metadata: deserializeMetadata(output),
669
+ ...contents,
670
+ };
671
+ return response;
672
+ };
673
+ const de_GetConnectionCommand = async (output, context) => {
674
+ if (output.statusCode >= 300) {
675
+ return de_CommandError(output, context);
676
+ }
677
+ const data = await core$1.parseJsonBody(output.body, context);
678
+ let contents = {};
679
+ contents = smithyClient._json(data);
680
+ const response = {
681
+ $metadata: deserializeMetadata(output),
682
+ ...contents,
683
+ };
684
+ return response;
685
+ };
686
+ const de_GetHostCommand = async (output, context) => {
687
+ if (output.statusCode >= 300) {
688
+ return de_CommandError(output, context);
689
+ }
690
+ const data = await core$1.parseJsonBody(output.body, context);
691
+ let contents = {};
692
+ contents = smithyClient._json(data);
693
+ const response = {
694
+ $metadata: deserializeMetadata(output),
695
+ ...contents,
696
+ };
697
+ return response;
698
+ };
699
+ const de_GetRepositoryLinkCommand = async (output, context) => {
700
+ if (output.statusCode >= 300) {
701
+ return de_CommandError(output, context);
702
+ }
703
+ const data = await core$1.parseJsonBody(output.body, context);
704
+ let contents = {};
705
+ contents = smithyClient._json(data);
706
+ const response = {
707
+ $metadata: deserializeMetadata(output),
708
+ ...contents,
709
+ };
710
+ return response;
711
+ };
712
+ const de_GetRepositorySyncStatusCommand = async (output, context) => {
713
+ if (output.statusCode >= 300) {
714
+ return de_CommandError(output, context);
715
+ }
716
+ const data = await core$1.parseJsonBody(output.body, context);
717
+ let contents = {};
718
+ contents = de_GetRepositorySyncStatusOutput(data);
719
+ const response = {
720
+ $metadata: deserializeMetadata(output),
721
+ ...contents,
722
+ };
723
+ return response;
724
+ };
725
+ const de_GetResourceSyncStatusCommand = async (output, context) => {
726
+ if (output.statusCode >= 300) {
727
+ return de_CommandError(output, context);
728
+ }
729
+ const data = await core$1.parseJsonBody(output.body, context);
730
+ let contents = {};
731
+ contents = de_GetResourceSyncStatusOutput(data);
732
+ const response = {
733
+ $metadata: deserializeMetadata(output),
734
+ ...contents,
735
+ };
736
+ return response;
737
+ };
738
+ const de_GetSyncBlockerSummaryCommand = async (output, context) => {
739
+ if (output.statusCode >= 300) {
740
+ return de_CommandError(output, context);
741
+ }
742
+ const data = await core$1.parseJsonBody(output.body, context);
743
+ let contents = {};
744
+ contents = de_GetSyncBlockerSummaryOutput(data);
745
+ const response = {
746
+ $metadata: deserializeMetadata(output),
747
+ ...contents,
748
+ };
749
+ return response;
750
+ };
751
+ const de_GetSyncConfigurationCommand = async (output, context) => {
752
+ if (output.statusCode >= 300) {
753
+ return de_CommandError(output, context);
754
+ }
755
+ const data = await core$1.parseJsonBody(output.body, context);
756
+ let contents = {};
757
+ contents = smithyClient._json(data);
758
+ const response = {
759
+ $metadata: deserializeMetadata(output),
760
+ ...contents,
761
+ };
762
+ return response;
763
+ };
764
+ const de_ListConnectionsCommand = async (output, context) => {
765
+ if (output.statusCode >= 300) {
766
+ return de_CommandError(output, context);
767
+ }
768
+ const data = await core$1.parseJsonBody(output.body, context);
769
+ let contents = {};
770
+ contents = smithyClient._json(data);
771
+ const response = {
772
+ $metadata: deserializeMetadata(output),
773
+ ...contents,
774
+ };
775
+ return response;
776
+ };
777
+ const de_ListHostsCommand = async (output, context) => {
778
+ if (output.statusCode >= 300) {
779
+ return de_CommandError(output, context);
780
+ }
781
+ const data = await core$1.parseJsonBody(output.body, context);
782
+ let contents = {};
783
+ contents = smithyClient._json(data);
784
+ const response = {
785
+ $metadata: deserializeMetadata(output),
786
+ ...contents,
787
+ };
788
+ return response;
789
+ };
790
+ const de_ListRepositoryLinksCommand = async (output, context) => {
791
+ if (output.statusCode >= 300) {
792
+ return de_CommandError(output, context);
793
+ }
794
+ const data = await core$1.parseJsonBody(output.body, context);
795
+ let contents = {};
796
+ contents = smithyClient._json(data);
797
+ const response = {
798
+ $metadata: deserializeMetadata(output),
799
+ ...contents,
800
+ };
801
+ return response;
802
+ };
803
+ const de_ListRepositorySyncDefinitionsCommand = async (output, context) => {
804
+ if (output.statusCode >= 300) {
805
+ return de_CommandError(output, context);
806
+ }
807
+ const data = await core$1.parseJsonBody(output.body, context);
808
+ let contents = {};
809
+ contents = smithyClient._json(data);
810
+ const response = {
811
+ $metadata: deserializeMetadata(output),
812
+ ...contents,
813
+ };
814
+ return response;
815
+ };
816
+ const de_ListSyncConfigurationsCommand = async (output, context) => {
817
+ if (output.statusCode >= 300) {
818
+ return de_CommandError(output, context);
819
+ }
820
+ const data = await core$1.parseJsonBody(output.body, context);
821
+ let contents = {};
822
+ contents = smithyClient._json(data);
823
+ const response = {
824
+ $metadata: deserializeMetadata(output),
825
+ ...contents,
826
+ };
827
+ return response;
828
+ };
829
+ const de_ListTagsForResourceCommand = async (output, context) => {
830
+ if (output.statusCode >= 300) {
831
+ return de_CommandError(output, context);
832
+ }
833
+ const data = await core$1.parseJsonBody(output.body, context);
834
+ let contents = {};
835
+ contents = smithyClient._json(data);
836
+ const response = {
837
+ $metadata: deserializeMetadata(output),
838
+ ...contents,
839
+ };
840
+ return response;
841
+ };
842
+ const de_TagResourceCommand = async (output, context) => {
843
+ if (output.statusCode >= 300) {
844
+ return de_CommandError(output, context);
845
+ }
846
+ const data = await core$1.parseJsonBody(output.body, context);
847
+ let contents = {};
848
+ contents = smithyClient._json(data);
849
+ const response = {
850
+ $metadata: deserializeMetadata(output),
851
+ ...contents,
852
+ };
853
+ return response;
854
+ };
855
+ const de_UntagResourceCommand = async (output, context) => {
856
+ if (output.statusCode >= 300) {
857
+ return de_CommandError(output, context);
858
+ }
859
+ const data = await core$1.parseJsonBody(output.body, context);
860
+ let contents = {};
861
+ contents = smithyClient._json(data);
862
+ const response = {
863
+ $metadata: deserializeMetadata(output),
864
+ ...contents,
865
+ };
866
+ return response;
867
+ };
868
+ const de_UpdateHostCommand = async (output, context) => {
869
+ if (output.statusCode >= 300) {
870
+ return de_CommandError(output, context);
871
+ }
872
+ const data = await core$1.parseJsonBody(output.body, context);
873
+ let contents = {};
874
+ contents = smithyClient._json(data);
875
+ const response = {
876
+ $metadata: deserializeMetadata(output),
877
+ ...contents,
878
+ };
879
+ return response;
880
+ };
881
+ const de_UpdateRepositoryLinkCommand = async (output, context) => {
882
+ if (output.statusCode >= 300) {
883
+ return de_CommandError(output, context);
884
+ }
885
+ const data = await core$1.parseJsonBody(output.body, context);
886
+ let contents = {};
887
+ contents = smithyClient._json(data);
888
+ const response = {
889
+ $metadata: deserializeMetadata(output),
890
+ ...contents,
891
+ };
892
+ return response;
893
+ };
894
+ const de_UpdateSyncBlockerCommand = async (output, context) => {
895
+ if (output.statusCode >= 300) {
896
+ return de_CommandError(output, context);
897
+ }
898
+ const data = await core$1.parseJsonBody(output.body, context);
899
+ let contents = {};
900
+ contents = de_UpdateSyncBlockerOutput(data);
901
+ const response = {
902
+ $metadata: deserializeMetadata(output),
903
+ ...contents,
904
+ };
905
+ return response;
906
+ };
907
+ const de_UpdateSyncConfigurationCommand = async (output, context) => {
908
+ if (output.statusCode >= 300) {
909
+ return de_CommandError(output, context);
910
+ }
911
+ const data = await core$1.parseJsonBody(output.body, context);
912
+ let contents = {};
913
+ contents = smithyClient._json(data);
914
+ const response = {
915
+ $metadata: deserializeMetadata(output),
916
+ ...contents,
917
+ };
918
+ return response;
919
+ };
920
+ const de_CommandError = async (output, context) => {
921
+ const parsedOutput = {
922
+ ...output,
923
+ body: await core$1.parseJsonErrorBody(output.body, context),
924
+ };
925
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
926
+ switch (errorCode) {
927
+ case "LimitExceededException":
928
+ case "com.amazonaws.codeconnections#LimitExceededException":
929
+ throw await de_LimitExceededExceptionRes(parsedOutput);
930
+ case "ResourceNotFoundException":
931
+ case "com.amazonaws.codeconnections#ResourceNotFoundException":
932
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
933
+ case "ResourceUnavailableException":
934
+ case "com.amazonaws.codeconnections#ResourceUnavailableException":
935
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput);
936
+ case "AccessDeniedException":
937
+ case "com.amazonaws.codeconnections#AccessDeniedException":
938
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
939
+ case "ConcurrentModificationException":
940
+ case "com.amazonaws.codeconnections#ConcurrentModificationException":
941
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput);
942
+ case "InternalServerException":
943
+ case "com.amazonaws.codeconnections#InternalServerException":
944
+ throw await de_InternalServerExceptionRes(parsedOutput);
945
+ case "InvalidInputException":
946
+ case "com.amazonaws.codeconnections#InvalidInputException":
947
+ throw await de_InvalidInputExceptionRes(parsedOutput);
948
+ case "ResourceAlreadyExistsException":
949
+ case "com.amazonaws.codeconnections#ResourceAlreadyExistsException":
950
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput);
951
+ case "ThrottlingException":
952
+ case "com.amazonaws.codeconnections#ThrottlingException":
953
+ throw await de_ThrottlingExceptionRes(parsedOutput);
954
+ case "SyncConfigurationStillExistsException":
955
+ case "com.amazonaws.codeconnections#SyncConfigurationStillExistsException":
956
+ throw await de_SyncConfigurationStillExistsExceptionRes(parsedOutput);
957
+ case "UnsupportedProviderTypeException":
958
+ case "com.amazonaws.codeconnections#UnsupportedProviderTypeException":
959
+ throw await de_UnsupportedProviderTypeExceptionRes(parsedOutput);
960
+ case "ConflictException":
961
+ case "com.amazonaws.codeconnections#ConflictException":
962
+ throw await de_ConflictExceptionRes(parsedOutput);
963
+ case "UnsupportedOperationException":
964
+ case "com.amazonaws.codeconnections#UnsupportedOperationException":
965
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput);
966
+ case "ConditionalCheckFailedException":
967
+ case "com.amazonaws.codeconnections#ConditionalCheckFailedException":
968
+ throw await de_ConditionalCheckFailedExceptionRes(parsedOutput);
969
+ case "UpdateOutOfSyncException":
970
+ case "com.amazonaws.codeconnections#UpdateOutOfSyncException":
971
+ throw await de_UpdateOutOfSyncExceptionRes(parsedOutput);
972
+ case "RetryLatestCommitFailedException":
973
+ case "com.amazonaws.codeconnections#RetryLatestCommitFailedException":
974
+ throw await de_RetryLatestCommitFailedExceptionRes(parsedOutput);
975
+ case "SyncBlockerDoesNotExistException":
976
+ case "com.amazonaws.codeconnections#SyncBlockerDoesNotExistException":
977
+ throw await de_SyncBlockerDoesNotExistExceptionRes(parsedOutput);
978
+ default:
979
+ const parsedBody = parsedOutput.body;
980
+ return throwDefaultError({
981
+ output,
982
+ parsedBody,
983
+ errorCode,
984
+ });
985
+ }
986
+ };
987
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
988
+ const body = parsedOutput.body;
989
+ const deserialized = smithyClient._json(body);
990
+ const exception = new AccessDeniedException({
991
+ $metadata: deserializeMetadata(parsedOutput),
992
+ ...deserialized,
409
993
  });
410
- Object.setPrototypeOf(this, _InvalidInputException.prototype);
411
- this.Message = opts.Message;
412
- }
413
- };
414
- var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends CodeConnectionsServiceException {
415
- static {
416
- __name(this, "ResourceAlreadyExistsException");
417
- }
418
- name = "ResourceAlreadyExistsException";
419
- $fault = "client";
420
- Message;
421
- /**
422
- * @internal
423
- */
424
- constructor(opts) {
425
- super({
426
- name: "ResourceAlreadyExistsException",
427
- $fault: "client",
428
- ...opts
994
+ return smithyClient.decorateServiceException(exception, body);
995
+ };
996
+ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
997
+ const body = parsedOutput.body;
998
+ const deserialized = smithyClient._json(body);
999
+ const exception = new ConcurrentModificationException({
1000
+ $metadata: deserializeMetadata(parsedOutput),
1001
+ ...deserialized,
429
1002
  });
430
- Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
431
- this.Message = opts.Message;
432
- }
433
- };
434
- var ThrottlingException = class _ThrottlingException extends CodeConnectionsServiceException {
435
- static {
436
- __name(this, "ThrottlingException");
437
- }
438
- name = "ThrottlingException";
439
- $fault = "client";
440
- Message;
441
- /**
442
- * @internal
443
- */
444
- constructor(opts) {
445
- super({
446
- name: "ThrottlingException",
447
- $fault: "client",
448
- ...opts
1003
+ return smithyClient.decorateServiceException(exception, body);
1004
+ };
1005
+ const de_ConditionalCheckFailedExceptionRes = async (parsedOutput, context) => {
1006
+ const body = parsedOutput.body;
1007
+ const deserialized = smithyClient._json(body);
1008
+ const exception = new ConditionalCheckFailedException({
1009
+ $metadata: deserializeMetadata(parsedOutput),
1010
+ ...deserialized,
449
1011
  });
450
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
451
- this.Message = opts.Message;
452
- }
453
- };
454
- var PublishDeploymentStatus = {
455
- DISABLED: "DISABLED",
456
- ENABLED: "ENABLED"
457
- };
458
- var PullRequestComment = {
459
- DISABLED: "DISABLED",
460
- ENABLED: "ENABLED"
461
- };
462
- var SyncConfigurationType = {
463
- CFN_STACK_SYNC: "CFN_STACK_SYNC"
464
- };
465
- var TriggerResourceUpdateOn = {
466
- ANY_CHANGE: "ANY_CHANGE",
467
- FILE_CHANGE: "FILE_CHANGE"
468
- };
469
- var SyncConfigurationStillExistsException = class _SyncConfigurationStillExistsException extends CodeConnectionsServiceException {
470
- static {
471
- __name(this, "SyncConfigurationStillExistsException");
472
- }
473
- name = "SyncConfigurationStillExistsException";
474
- $fault = "client";
475
- Message;
476
- /**
477
- * @internal
478
- */
479
- constructor(opts) {
480
- super({
481
- name: "SyncConfigurationStillExistsException",
482
- $fault: "client",
483
- ...opts
1012
+ return smithyClient.decorateServiceException(exception, body);
1013
+ };
1014
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1015
+ const body = parsedOutput.body;
1016
+ const deserialized = smithyClient._json(body);
1017
+ const exception = new ConflictException({
1018
+ $metadata: deserializeMetadata(parsedOutput),
1019
+ ...deserialized,
484
1020
  });
485
- Object.setPrototypeOf(this, _SyncConfigurationStillExistsException.prototype);
486
- this.Message = opts.Message;
487
- }
488
- };
489
- var UnsupportedProviderTypeException = class _UnsupportedProviderTypeException extends CodeConnectionsServiceException {
490
- static {
491
- __name(this, "UnsupportedProviderTypeException");
492
- }
493
- name = "UnsupportedProviderTypeException";
494
- $fault = "client";
495
- Message;
496
- /**
497
- * @internal
498
- */
499
- constructor(opts) {
500
- super({
501
- name: "UnsupportedProviderTypeException",
502
- $fault: "client",
503
- ...opts
1021
+ return smithyClient.decorateServiceException(exception, body);
1022
+ };
1023
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1024
+ const body = parsedOutput.body;
1025
+ const deserialized = smithyClient._json(body);
1026
+ const exception = new InternalServerException({
1027
+ $metadata: deserializeMetadata(parsedOutput),
1028
+ ...deserialized,
504
1029
  });
505
- Object.setPrototypeOf(this, _UnsupportedProviderTypeException.prototype);
506
- this.Message = opts.Message;
507
- }
508
- };
509
- var ConnectionStatus = {
510
- AVAILABLE: "AVAILABLE",
511
- ERROR: "ERROR",
512
- PENDING: "PENDING"
513
- };
514
- var RepositorySyncStatus = {
515
- FAILED: "FAILED",
516
- INITIATED: "INITIATED",
517
- IN_PROGRESS: "IN_PROGRESS",
518
- QUEUED: "QUEUED",
519
- SUCCEEDED: "SUCCEEDED"
520
- };
521
- var ResourceSyncStatus = {
522
- FAILED: "FAILED",
523
- INITIATED: "INITIATED",
524
- IN_PROGRESS: "IN_PROGRESS",
525
- SUCCEEDED: "SUCCEEDED"
526
- };
527
- var ConflictException = class _ConflictException extends CodeConnectionsServiceException {
528
- static {
529
- __name(this, "ConflictException");
530
- }
531
- name = "ConflictException";
532
- $fault = "client";
533
- Message;
534
- /**
535
- * @internal
536
- */
537
- constructor(opts) {
538
- super({
539
- name: "ConflictException",
540
- $fault: "client",
541
- ...opts
1030
+ return smithyClient.decorateServiceException(exception, body);
1031
+ };
1032
+ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
1033
+ const body = parsedOutput.body;
1034
+ const deserialized = smithyClient._json(body);
1035
+ const exception = new InvalidInputException({
1036
+ $metadata: deserializeMetadata(parsedOutput),
1037
+ ...deserialized,
542
1038
  });
543
- Object.setPrototypeOf(this, _ConflictException.prototype);
544
- this.Message = opts.Message;
545
- }
546
- };
547
- var UnsupportedOperationException = class _UnsupportedOperationException extends CodeConnectionsServiceException {
548
- static {
549
- __name(this, "UnsupportedOperationException");
550
- }
551
- name = "UnsupportedOperationException";
552
- $fault = "client";
553
- Message;
554
- /**
555
- * @internal
556
- */
557
- constructor(opts) {
558
- super({
559
- name: "UnsupportedOperationException",
560
- $fault: "client",
561
- ...opts
1039
+ return smithyClient.decorateServiceException(exception, body);
1040
+ };
1041
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1042
+ const body = parsedOutput.body;
1043
+ const deserialized = smithyClient._json(body);
1044
+ const exception = new LimitExceededException({
1045
+ $metadata: deserializeMetadata(parsedOutput),
1046
+ ...deserialized,
562
1047
  });
563
- Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
564
- this.Message = opts.Message;
565
- }
566
- };
567
- var ConditionalCheckFailedException = class _ConditionalCheckFailedException extends CodeConnectionsServiceException {
568
- static {
569
- __name(this, "ConditionalCheckFailedException");
570
- }
571
- name = "ConditionalCheckFailedException";
572
- $fault = "client";
573
- Message;
574
- /**
575
- * @internal
576
- */
577
- constructor(opts) {
578
- super({
579
- name: "ConditionalCheckFailedException",
580
- $fault: "client",
581
- ...opts
1048
+ return smithyClient.decorateServiceException(exception, body);
1049
+ };
1050
+ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1051
+ const body = parsedOutput.body;
1052
+ const deserialized = smithyClient._json(body);
1053
+ const exception = new ResourceAlreadyExistsException({
1054
+ $metadata: deserializeMetadata(parsedOutput),
1055
+ ...deserialized,
582
1056
  });
583
- Object.setPrototypeOf(this, _ConditionalCheckFailedException.prototype);
584
- this.Message = opts.Message;
585
- }
586
- };
587
- var UpdateOutOfSyncException = class _UpdateOutOfSyncException extends CodeConnectionsServiceException {
588
- static {
589
- __name(this, "UpdateOutOfSyncException");
590
- }
591
- name = "UpdateOutOfSyncException";
592
- $fault = "client";
593
- Message;
594
- /**
595
- * @internal
596
- */
597
- constructor(opts) {
598
- super({
599
- name: "UpdateOutOfSyncException",
600
- $fault: "client",
601
- ...opts
1057
+ return smithyClient.decorateServiceException(exception, body);
1058
+ };
1059
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1060
+ const body = parsedOutput.body;
1061
+ const deserialized = smithyClient._json(body);
1062
+ const exception = new ResourceNotFoundException({
1063
+ $metadata: deserializeMetadata(parsedOutput),
1064
+ ...deserialized,
602
1065
  });
603
- Object.setPrototypeOf(this, _UpdateOutOfSyncException.prototype);
604
- this.Message = opts.Message;
605
- }
606
- };
607
- var RetryLatestCommitFailedException = class _RetryLatestCommitFailedException extends CodeConnectionsServiceException {
608
- static {
609
- __name(this, "RetryLatestCommitFailedException");
610
- }
611
- name = "RetryLatestCommitFailedException";
612
- $fault = "server";
613
- Message;
614
- /**
615
- * @internal
616
- */
617
- constructor(opts) {
618
- super({
619
- name: "RetryLatestCommitFailedException",
620
- $fault: "server",
621
- ...opts
1066
+ return smithyClient.decorateServiceException(exception, body);
1067
+ };
1068
+ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
1069
+ const body = parsedOutput.body;
1070
+ const deserialized = smithyClient._json(body);
1071
+ const exception = new ResourceUnavailableException({
1072
+ $metadata: deserializeMetadata(parsedOutput),
1073
+ ...deserialized,
622
1074
  });
623
- Object.setPrototypeOf(this, _RetryLatestCommitFailedException.prototype);
624
- this.Message = opts.Message;
625
- }
626
- };
627
- var SyncBlockerDoesNotExistException = class _SyncBlockerDoesNotExistException extends CodeConnectionsServiceException {
628
- static {
629
- __name(this, "SyncBlockerDoesNotExistException");
630
- }
631
- name = "SyncBlockerDoesNotExistException";
632
- $fault = "client";
633
- Message;
634
- /**
635
- * @internal
636
- */
637
- constructor(opts) {
638
- super({
639
- name: "SyncBlockerDoesNotExistException",
640
- $fault: "client",
641
- ...opts
1075
+ return smithyClient.decorateServiceException(exception, body);
1076
+ };
1077
+ const de_RetryLatestCommitFailedExceptionRes = async (parsedOutput, context) => {
1078
+ const body = parsedOutput.body;
1079
+ const deserialized = smithyClient._json(body);
1080
+ const exception = new RetryLatestCommitFailedException({
1081
+ $metadata: deserializeMetadata(parsedOutput),
1082
+ ...deserialized,
642
1083
  });
643
- Object.setPrototypeOf(this, _SyncBlockerDoesNotExistException.prototype);
644
- this.Message = opts.Message;
645
- }
1084
+ return smithyClient.decorateServiceException(exception, body);
646
1085
  };
647
-
648
- // src/protocols/Aws_json1_0.ts
649
- var se_CreateConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
650
- const headers = sharedHeaders("CreateConnection");
651
- let body;
652
- body = JSON.stringify((0, import_smithy_client._json)(input));
653
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
654
- }, "se_CreateConnectionCommand");
655
- var se_CreateHostCommand = /* @__PURE__ */ __name(async (input, context) => {
656
- const headers = sharedHeaders("CreateHost");
657
- let body;
658
- body = JSON.stringify((0, import_smithy_client._json)(input));
659
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
660
- }, "se_CreateHostCommand");
661
- var se_CreateRepositoryLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
662
- const headers = sharedHeaders("CreateRepositoryLink");
663
- let body;
664
- body = JSON.stringify((0, import_smithy_client._json)(input));
665
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
666
- }, "se_CreateRepositoryLinkCommand");
667
- var se_CreateSyncConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
668
- const headers = sharedHeaders("CreateSyncConfiguration");
669
- let body;
670
- body = JSON.stringify((0, import_smithy_client._json)(input));
671
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
672
- }, "se_CreateSyncConfigurationCommand");
673
- var se_DeleteConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
674
- const headers = sharedHeaders("DeleteConnection");
675
- let body;
676
- body = JSON.stringify((0, import_smithy_client._json)(input));
677
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
678
- }, "se_DeleteConnectionCommand");
679
- var se_DeleteHostCommand = /* @__PURE__ */ __name(async (input, context) => {
680
- const headers = sharedHeaders("DeleteHost");
681
- let body;
682
- body = JSON.stringify((0, import_smithy_client._json)(input));
683
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
684
- }, "se_DeleteHostCommand");
685
- var se_DeleteRepositoryLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
686
- const headers = sharedHeaders("DeleteRepositoryLink");
687
- let body;
688
- body = JSON.stringify((0, import_smithy_client._json)(input));
689
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
690
- }, "se_DeleteRepositoryLinkCommand");
691
- var se_DeleteSyncConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
692
- const headers = sharedHeaders("DeleteSyncConfiguration");
693
- let body;
694
- body = JSON.stringify((0, import_smithy_client._json)(input));
695
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
696
- }, "se_DeleteSyncConfigurationCommand");
697
- var se_GetConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
698
- const headers = sharedHeaders("GetConnection");
699
- let body;
700
- body = JSON.stringify((0, import_smithy_client._json)(input));
701
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
702
- }, "se_GetConnectionCommand");
703
- var se_GetHostCommand = /* @__PURE__ */ __name(async (input, context) => {
704
- const headers = sharedHeaders("GetHost");
705
- let body;
706
- body = JSON.stringify((0, import_smithy_client._json)(input));
707
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
708
- }, "se_GetHostCommand");
709
- var se_GetRepositoryLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
710
- const headers = sharedHeaders("GetRepositoryLink");
711
- let body;
712
- body = JSON.stringify((0, import_smithy_client._json)(input));
713
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
714
- }, "se_GetRepositoryLinkCommand");
715
- var se_GetRepositorySyncStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
716
- const headers = sharedHeaders("GetRepositorySyncStatus");
717
- let body;
718
- body = JSON.stringify((0, import_smithy_client._json)(input));
719
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
720
- }, "se_GetRepositorySyncStatusCommand");
721
- var se_GetResourceSyncStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
722
- const headers = sharedHeaders("GetResourceSyncStatus");
723
- let body;
724
- body = JSON.stringify((0, import_smithy_client._json)(input));
725
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
726
- }, "se_GetResourceSyncStatusCommand");
727
- var se_GetSyncBlockerSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
728
- const headers = sharedHeaders("GetSyncBlockerSummary");
729
- let body;
730
- body = JSON.stringify((0, import_smithy_client._json)(input));
731
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
732
- }, "se_GetSyncBlockerSummaryCommand");
733
- var se_GetSyncConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
734
- const headers = sharedHeaders("GetSyncConfiguration");
735
- let body;
736
- body = JSON.stringify((0, import_smithy_client._json)(input));
737
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
738
- }, "se_GetSyncConfigurationCommand");
739
- var se_ListConnectionsCommand = /* @__PURE__ */ __name(async (input, context) => {
740
- const headers = sharedHeaders("ListConnections");
741
- let body;
742
- body = JSON.stringify((0, import_smithy_client._json)(input));
743
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
744
- }, "se_ListConnectionsCommand");
745
- var se_ListHostsCommand = /* @__PURE__ */ __name(async (input, context) => {
746
- const headers = sharedHeaders("ListHosts");
747
- let body;
748
- body = JSON.stringify((0, import_smithy_client._json)(input));
749
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
750
- }, "se_ListHostsCommand");
751
- var se_ListRepositoryLinksCommand = /* @__PURE__ */ __name(async (input, context) => {
752
- const headers = sharedHeaders("ListRepositoryLinks");
753
- let body;
754
- body = JSON.stringify((0, import_smithy_client._json)(input));
755
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
756
- }, "se_ListRepositoryLinksCommand");
757
- var se_ListRepositorySyncDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
758
- const headers = sharedHeaders("ListRepositorySyncDefinitions");
759
- let body;
760
- body = JSON.stringify((0, import_smithy_client._json)(input));
761
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
762
- }, "se_ListRepositorySyncDefinitionsCommand");
763
- var se_ListSyncConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
764
- const headers = sharedHeaders("ListSyncConfigurations");
765
- let body;
766
- body = JSON.stringify((0, import_smithy_client._json)(input));
767
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
768
- }, "se_ListSyncConfigurationsCommand");
769
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
770
- const headers = sharedHeaders("ListTagsForResource");
771
- let body;
772
- body = JSON.stringify((0, import_smithy_client._json)(input));
773
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
774
- }, "se_ListTagsForResourceCommand");
775
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
776
- const headers = sharedHeaders("TagResource");
777
- let body;
778
- body = JSON.stringify((0, import_smithy_client._json)(input));
779
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
780
- }, "se_TagResourceCommand");
781
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
782
- const headers = sharedHeaders("UntagResource");
783
- let body;
784
- body = JSON.stringify((0, import_smithy_client._json)(input));
785
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
786
- }, "se_UntagResourceCommand");
787
- var se_UpdateHostCommand = /* @__PURE__ */ __name(async (input, context) => {
788
- const headers = sharedHeaders("UpdateHost");
789
- let body;
790
- body = JSON.stringify((0, import_smithy_client._json)(input));
791
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
792
- }, "se_UpdateHostCommand");
793
- var se_UpdateRepositoryLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
794
- const headers = sharedHeaders("UpdateRepositoryLink");
795
- let body;
796
- body = JSON.stringify((0, import_smithy_client._json)(input));
797
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
798
- }, "se_UpdateRepositoryLinkCommand");
799
- var se_UpdateSyncBlockerCommand = /* @__PURE__ */ __name(async (input, context) => {
800
- const headers = sharedHeaders("UpdateSyncBlocker");
801
- let body;
802
- body = JSON.stringify((0, import_smithy_client._json)(input));
803
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
804
- }, "se_UpdateSyncBlockerCommand");
805
- var se_UpdateSyncConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
806
- const headers = sharedHeaders("UpdateSyncConfiguration");
807
- let body;
808
- body = JSON.stringify((0, import_smithy_client._json)(input));
809
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
810
- }, "se_UpdateSyncConfigurationCommand");
811
- var de_CreateConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
812
- if (output.statusCode >= 300) {
813
- return de_CommandError(output, context);
814
- }
815
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
816
- let contents = {};
817
- contents = (0, import_smithy_client._json)(data);
818
- const response = {
819
- $metadata: deserializeMetadata(output),
820
- ...contents
821
- };
822
- return response;
823
- }, "de_CreateConnectionCommand");
824
- var de_CreateHostCommand = /* @__PURE__ */ __name(async (output, context) => {
825
- if (output.statusCode >= 300) {
826
- return de_CommandError(output, context);
827
- }
828
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
829
- let contents = {};
830
- contents = (0, import_smithy_client._json)(data);
831
- const response = {
832
- $metadata: deserializeMetadata(output),
833
- ...contents
834
- };
835
- return response;
836
- }, "de_CreateHostCommand");
837
- var de_CreateRepositoryLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
838
- if (output.statusCode >= 300) {
839
- return de_CommandError(output, context);
840
- }
841
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
842
- let contents = {};
843
- contents = (0, import_smithy_client._json)(data);
844
- const response = {
845
- $metadata: deserializeMetadata(output),
846
- ...contents
847
- };
848
- return response;
849
- }, "de_CreateRepositoryLinkCommand");
850
- var de_CreateSyncConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
851
- if (output.statusCode >= 300) {
852
- return de_CommandError(output, context);
853
- }
854
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
855
- let contents = {};
856
- contents = (0, import_smithy_client._json)(data);
857
- const response = {
858
- $metadata: deserializeMetadata(output),
859
- ...contents
860
- };
861
- return response;
862
- }, "de_CreateSyncConfigurationCommand");
863
- var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
864
- if (output.statusCode >= 300) {
865
- return de_CommandError(output, context);
866
- }
867
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
868
- let contents = {};
869
- contents = (0, import_smithy_client._json)(data);
870
- const response = {
871
- $metadata: deserializeMetadata(output),
872
- ...contents
873
- };
874
- return response;
875
- }, "de_DeleteConnectionCommand");
876
- var de_DeleteHostCommand = /* @__PURE__ */ __name(async (output, context) => {
877
- if (output.statusCode >= 300) {
878
- return de_CommandError(output, context);
879
- }
880
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
881
- let contents = {};
882
- contents = (0, import_smithy_client._json)(data);
883
- const response = {
884
- $metadata: deserializeMetadata(output),
885
- ...contents
886
- };
887
- return response;
888
- }, "de_DeleteHostCommand");
889
- var de_DeleteRepositoryLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
890
- if (output.statusCode >= 300) {
891
- return de_CommandError(output, context);
892
- }
893
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
894
- let contents = {};
895
- contents = (0, import_smithy_client._json)(data);
896
- const response = {
897
- $metadata: deserializeMetadata(output),
898
- ...contents
899
- };
900
- return response;
901
- }, "de_DeleteRepositoryLinkCommand");
902
- var de_DeleteSyncConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
903
- if (output.statusCode >= 300) {
904
- return de_CommandError(output, context);
905
- }
906
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
907
- let contents = {};
908
- contents = (0, import_smithy_client._json)(data);
909
- const response = {
910
- $metadata: deserializeMetadata(output),
911
- ...contents
912
- };
913
- return response;
914
- }, "de_DeleteSyncConfigurationCommand");
915
- var de_GetConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
916
- if (output.statusCode >= 300) {
917
- return de_CommandError(output, context);
918
- }
919
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
920
- let contents = {};
921
- contents = (0, import_smithy_client._json)(data);
922
- const response = {
923
- $metadata: deserializeMetadata(output),
924
- ...contents
925
- };
926
- return response;
927
- }, "de_GetConnectionCommand");
928
- var de_GetHostCommand = /* @__PURE__ */ __name(async (output, context) => {
929
- if (output.statusCode >= 300) {
930
- return de_CommandError(output, context);
931
- }
932
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
933
- let contents = {};
934
- contents = (0, import_smithy_client._json)(data);
935
- const response = {
936
- $metadata: deserializeMetadata(output),
937
- ...contents
938
- };
939
- return response;
940
- }, "de_GetHostCommand");
941
- var de_GetRepositoryLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
942
- if (output.statusCode >= 300) {
943
- return de_CommandError(output, context);
944
- }
945
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
946
- let contents = {};
947
- contents = (0, import_smithy_client._json)(data);
948
- const response = {
949
- $metadata: deserializeMetadata(output),
950
- ...contents
951
- };
952
- return response;
953
- }, "de_GetRepositoryLinkCommand");
954
- var de_GetRepositorySyncStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
955
- if (output.statusCode >= 300) {
956
- return de_CommandError(output, context);
957
- }
958
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
959
- let contents = {};
960
- contents = de_GetRepositorySyncStatusOutput(data, context);
961
- const response = {
962
- $metadata: deserializeMetadata(output),
963
- ...contents
964
- };
965
- return response;
966
- }, "de_GetRepositorySyncStatusCommand");
967
- var de_GetResourceSyncStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
968
- if (output.statusCode >= 300) {
969
- return de_CommandError(output, context);
970
- }
971
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
972
- let contents = {};
973
- contents = de_GetResourceSyncStatusOutput(data, context);
974
- const response = {
975
- $metadata: deserializeMetadata(output),
976
- ...contents
977
- };
978
- return response;
979
- }, "de_GetResourceSyncStatusCommand");
980
- var de_GetSyncBlockerSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
981
- if (output.statusCode >= 300) {
982
- return de_CommandError(output, context);
983
- }
984
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
985
- let contents = {};
986
- contents = de_GetSyncBlockerSummaryOutput(data, context);
987
- const response = {
988
- $metadata: deserializeMetadata(output),
989
- ...contents
990
- };
991
- return response;
992
- }, "de_GetSyncBlockerSummaryCommand");
993
- var de_GetSyncConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
994
- if (output.statusCode >= 300) {
995
- return de_CommandError(output, context);
996
- }
997
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
998
- let contents = {};
999
- contents = (0, import_smithy_client._json)(data);
1000
- const response = {
1001
- $metadata: deserializeMetadata(output),
1002
- ...contents
1003
- };
1004
- return response;
1005
- }, "de_GetSyncConfigurationCommand");
1006
- var de_ListConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1007
- if (output.statusCode >= 300) {
1008
- return de_CommandError(output, context);
1009
- }
1010
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1011
- let contents = {};
1012
- contents = (0, import_smithy_client._json)(data);
1013
- const response = {
1014
- $metadata: deserializeMetadata(output),
1015
- ...contents
1016
- };
1017
- return response;
1018
- }, "de_ListConnectionsCommand");
1019
- var de_ListHostsCommand = /* @__PURE__ */ __name(async (output, context) => {
1020
- if (output.statusCode >= 300) {
1021
- return de_CommandError(output, context);
1022
- }
1023
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1024
- let contents = {};
1025
- contents = (0, import_smithy_client._json)(data);
1026
- const response = {
1027
- $metadata: deserializeMetadata(output),
1028
- ...contents
1029
- };
1030
- return response;
1031
- }, "de_ListHostsCommand");
1032
- var de_ListRepositoryLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
1033
- if (output.statusCode >= 300) {
1034
- return de_CommandError(output, context);
1035
- }
1036
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1037
- let contents = {};
1038
- contents = (0, import_smithy_client._json)(data);
1039
- const response = {
1040
- $metadata: deserializeMetadata(output),
1041
- ...contents
1042
- };
1043
- return response;
1044
- }, "de_ListRepositoryLinksCommand");
1045
- var de_ListRepositorySyncDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1046
- if (output.statusCode >= 300) {
1047
- return de_CommandError(output, context);
1048
- }
1049
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1050
- let contents = {};
1051
- contents = (0, import_smithy_client._json)(data);
1052
- const response = {
1053
- $metadata: deserializeMetadata(output),
1054
- ...contents
1055
- };
1056
- return response;
1057
- }, "de_ListRepositorySyncDefinitionsCommand");
1058
- var de_ListSyncConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1059
- if (output.statusCode >= 300) {
1060
- return de_CommandError(output, context);
1061
- }
1062
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1063
- let contents = {};
1064
- contents = (0, import_smithy_client._json)(data);
1065
- const response = {
1066
- $metadata: deserializeMetadata(output),
1067
- ...contents
1068
- };
1069
- return response;
1070
- }, "de_ListSyncConfigurationsCommand");
1071
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1072
- if (output.statusCode >= 300) {
1073
- return de_CommandError(output, context);
1074
- }
1075
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1076
- let contents = {};
1077
- contents = (0, import_smithy_client._json)(data);
1078
- const response = {
1079
- $metadata: deserializeMetadata(output),
1080
- ...contents
1081
- };
1082
- return response;
1083
- }, "de_ListTagsForResourceCommand");
1084
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1085
- if (output.statusCode >= 300) {
1086
- return de_CommandError(output, context);
1087
- }
1088
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1089
- let contents = {};
1090
- contents = (0, import_smithy_client._json)(data);
1091
- const response = {
1092
- $metadata: deserializeMetadata(output),
1093
- ...contents
1094
- };
1095
- return response;
1096
- }, "de_TagResourceCommand");
1097
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1098
- if (output.statusCode >= 300) {
1099
- return de_CommandError(output, context);
1100
- }
1101
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1102
- let contents = {};
1103
- contents = (0, import_smithy_client._json)(data);
1104
- const response = {
1105
- $metadata: deserializeMetadata(output),
1106
- ...contents
1107
- };
1108
- return response;
1109
- }, "de_UntagResourceCommand");
1110
- var de_UpdateHostCommand = /* @__PURE__ */ __name(async (output, context) => {
1111
- if (output.statusCode >= 300) {
1112
- return de_CommandError(output, context);
1113
- }
1114
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1115
- let contents = {};
1116
- contents = (0, import_smithy_client._json)(data);
1117
- const response = {
1118
- $metadata: deserializeMetadata(output),
1119
- ...contents
1120
- };
1121
- return response;
1122
- }, "de_UpdateHostCommand");
1123
- var de_UpdateRepositoryLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
1124
- if (output.statusCode >= 300) {
1125
- return de_CommandError(output, context);
1126
- }
1127
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1128
- let contents = {};
1129
- contents = (0, import_smithy_client._json)(data);
1130
- const response = {
1131
- $metadata: deserializeMetadata(output),
1132
- ...contents
1133
- };
1134
- return response;
1135
- }, "de_UpdateRepositoryLinkCommand");
1136
- var de_UpdateSyncBlockerCommand = /* @__PURE__ */ __name(async (output, context) => {
1137
- if (output.statusCode >= 300) {
1138
- return de_CommandError(output, context);
1139
- }
1140
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1141
- let contents = {};
1142
- contents = de_UpdateSyncBlockerOutput(data, context);
1143
- const response = {
1144
- $metadata: deserializeMetadata(output),
1145
- ...contents
1146
- };
1147
- return response;
1148
- }, "de_UpdateSyncBlockerCommand");
1149
- var de_UpdateSyncConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1150
- if (output.statusCode >= 300) {
1151
- return de_CommandError(output, context);
1152
- }
1153
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1154
- let contents = {};
1155
- contents = (0, import_smithy_client._json)(data);
1156
- const response = {
1157
- $metadata: deserializeMetadata(output),
1158
- ...contents
1159
- };
1160
- return response;
1161
- }, "de_UpdateSyncConfigurationCommand");
1162
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1163
- const parsedOutput = {
1164
- ...output,
1165
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1166
- };
1167
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1168
- switch (errorCode) {
1169
- case "LimitExceededException":
1170
- case "com.amazonaws.codeconnections#LimitExceededException":
1171
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1172
- case "ResourceNotFoundException":
1173
- case "com.amazonaws.codeconnections#ResourceNotFoundException":
1174
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1175
- case "ResourceUnavailableException":
1176
- case "com.amazonaws.codeconnections#ResourceUnavailableException":
1177
- throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
1178
- case "AccessDeniedException":
1179
- case "com.amazonaws.codeconnections#AccessDeniedException":
1180
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1181
- case "ConcurrentModificationException":
1182
- case "com.amazonaws.codeconnections#ConcurrentModificationException":
1183
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1184
- case "InternalServerException":
1185
- case "com.amazonaws.codeconnections#InternalServerException":
1186
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1187
- case "InvalidInputException":
1188
- case "com.amazonaws.codeconnections#InvalidInputException":
1189
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1190
- case "ResourceAlreadyExistsException":
1191
- case "com.amazonaws.codeconnections#ResourceAlreadyExistsException":
1192
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1193
- case "ThrottlingException":
1194
- case "com.amazonaws.codeconnections#ThrottlingException":
1195
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1196
- case "SyncConfigurationStillExistsException":
1197
- case "com.amazonaws.codeconnections#SyncConfigurationStillExistsException":
1198
- throw await de_SyncConfigurationStillExistsExceptionRes(parsedOutput, context);
1199
- case "UnsupportedProviderTypeException":
1200
- case "com.amazonaws.codeconnections#UnsupportedProviderTypeException":
1201
- throw await de_UnsupportedProviderTypeExceptionRes(parsedOutput, context);
1202
- case "ConflictException":
1203
- case "com.amazonaws.codeconnections#ConflictException":
1204
- throw await de_ConflictExceptionRes(parsedOutput, context);
1205
- case "UnsupportedOperationException":
1206
- case "com.amazonaws.codeconnections#UnsupportedOperationException":
1207
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1208
- case "ConditionalCheckFailedException":
1209
- case "com.amazonaws.codeconnections#ConditionalCheckFailedException":
1210
- throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
1211
- case "UpdateOutOfSyncException":
1212
- case "com.amazonaws.codeconnections#UpdateOutOfSyncException":
1213
- throw await de_UpdateOutOfSyncExceptionRes(parsedOutput, context);
1214
- case "RetryLatestCommitFailedException":
1215
- case "com.amazonaws.codeconnections#RetryLatestCommitFailedException":
1216
- throw await de_RetryLatestCommitFailedExceptionRes(parsedOutput, context);
1217
- case "SyncBlockerDoesNotExistException":
1218
- case "com.amazonaws.codeconnections#SyncBlockerDoesNotExistException":
1219
- throw await de_SyncBlockerDoesNotExistExceptionRes(parsedOutput, context);
1220
- default:
1221
- const parsedBody = parsedOutput.body;
1222
- return throwDefaultError({
1223
- output,
1224
- parsedBody,
1225
- errorCode
1226
- });
1227
- }
1228
- }, "de_CommandError");
1229
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1230
- const body = parsedOutput.body;
1231
- const deserialized = (0, import_smithy_client._json)(body);
1232
- const exception = new AccessDeniedException({
1233
- $metadata: deserializeMetadata(parsedOutput),
1234
- ...deserialized
1235
- });
1236
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1237
- }, "de_AccessDeniedExceptionRes");
1238
- var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1239
- const body = parsedOutput.body;
1240
- const deserialized = (0, import_smithy_client._json)(body);
1241
- const exception = new ConcurrentModificationException({
1242
- $metadata: deserializeMetadata(parsedOutput),
1243
- ...deserialized
1244
- });
1245
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1246
- }, "de_ConcurrentModificationExceptionRes");
1247
- var de_ConditionalCheckFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1248
- const body = parsedOutput.body;
1249
- const deserialized = (0, import_smithy_client._json)(body);
1250
- const exception = new ConditionalCheckFailedException({
1251
- $metadata: deserializeMetadata(parsedOutput),
1252
- ...deserialized
1253
- });
1254
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1255
- }, "de_ConditionalCheckFailedExceptionRes");
1256
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1257
- const body = parsedOutput.body;
1258
- const deserialized = (0, import_smithy_client._json)(body);
1259
- const exception = new ConflictException({
1260
- $metadata: deserializeMetadata(parsedOutput),
1261
- ...deserialized
1262
- });
1263
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1264
- }, "de_ConflictExceptionRes");
1265
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1266
- const body = parsedOutput.body;
1267
- const deserialized = (0, import_smithy_client._json)(body);
1268
- const exception = new InternalServerException({
1269
- $metadata: deserializeMetadata(parsedOutput),
1270
- ...deserialized
1271
- });
1272
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1273
- }, "de_InternalServerExceptionRes");
1274
- var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1275
- const body = parsedOutput.body;
1276
- const deserialized = (0, import_smithy_client._json)(body);
1277
- const exception = new InvalidInputException({
1278
- $metadata: deserializeMetadata(parsedOutput),
1279
- ...deserialized
1280
- });
1281
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1282
- }, "de_InvalidInputExceptionRes");
1283
- var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1284
- const body = parsedOutput.body;
1285
- const deserialized = (0, import_smithy_client._json)(body);
1286
- const exception = new LimitExceededException({
1287
- $metadata: deserializeMetadata(parsedOutput),
1288
- ...deserialized
1289
- });
1290
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1291
- }, "de_LimitExceededExceptionRes");
1292
- var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1293
- const body = parsedOutput.body;
1294
- const deserialized = (0, import_smithy_client._json)(body);
1295
- const exception = new ResourceAlreadyExistsException({
1296
- $metadata: deserializeMetadata(parsedOutput),
1297
- ...deserialized
1298
- });
1299
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1300
- }, "de_ResourceAlreadyExistsExceptionRes");
1301
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1302
- const body = parsedOutput.body;
1303
- const deserialized = (0, import_smithy_client._json)(body);
1304
- const exception = new ResourceNotFoundException({
1305
- $metadata: deserializeMetadata(parsedOutput),
1306
- ...deserialized
1307
- });
1308
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1309
- }, "de_ResourceNotFoundExceptionRes");
1310
- var de_ResourceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1311
- const body = parsedOutput.body;
1312
- const deserialized = (0, import_smithy_client._json)(body);
1313
- const exception = new ResourceUnavailableException({
1314
- $metadata: deserializeMetadata(parsedOutput),
1315
- ...deserialized
1316
- });
1317
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1318
- }, "de_ResourceUnavailableExceptionRes");
1319
- var de_RetryLatestCommitFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1320
- const body = parsedOutput.body;
1321
- const deserialized = (0, import_smithy_client._json)(body);
1322
- const exception = new RetryLatestCommitFailedException({
1323
- $metadata: deserializeMetadata(parsedOutput),
1324
- ...deserialized
1325
- });
1326
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1327
- }, "de_RetryLatestCommitFailedExceptionRes");
1328
- var de_SyncBlockerDoesNotExistExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1329
- const body = parsedOutput.body;
1330
- const deserialized = (0, import_smithy_client._json)(body);
1331
- const exception = new SyncBlockerDoesNotExistException({
1332
- $metadata: deserializeMetadata(parsedOutput),
1333
- ...deserialized
1334
- });
1335
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1336
- }, "de_SyncBlockerDoesNotExistExceptionRes");
1337
- var de_SyncConfigurationStillExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1338
- const body = parsedOutput.body;
1339
- const deserialized = (0, import_smithy_client._json)(body);
1340
- const exception = new SyncConfigurationStillExistsException({
1341
- $metadata: deserializeMetadata(parsedOutput),
1342
- ...deserialized
1343
- });
1344
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1345
- }, "de_SyncConfigurationStillExistsExceptionRes");
1346
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1347
- const body = parsedOutput.body;
1348
- const deserialized = (0, import_smithy_client._json)(body);
1349
- const exception = new ThrottlingException({
1350
- $metadata: deserializeMetadata(parsedOutput),
1351
- ...deserialized
1352
- });
1353
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1354
- }, "de_ThrottlingExceptionRes");
1355
- var de_UnsupportedOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1356
- const body = parsedOutput.body;
1357
- const deserialized = (0, import_smithy_client._json)(body);
1358
- const exception = new UnsupportedOperationException({
1359
- $metadata: deserializeMetadata(parsedOutput),
1360
- ...deserialized
1361
- });
1362
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1363
- }, "de_UnsupportedOperationExceptionRes");
1364
- var de_UnsupportedProviderTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1365
- const body = parsedOutput.body;
1366
- const deserialized = (0, import_smithy_client._json)(body);
1367
- const exception = new UnsupportedProviderTypeException({
1368
- $metadata: deserializeMetadata(parsedOutput),
1369
- ...deserialized
1370
- });
1371
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1372
- }, "de_UnsupportedProviderTypeExceptionRes");
1373
- var de_UpdateOutOfSyncExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1374
- const body = parsedOutput.body;
1375
- const deserialized = (0, import_smithy_client._json)(body);
1376
- const exception = new UpdateOutOfSyncException({
1377
- $metadata: deserializeMetadata(parsedOutput),
1378
- ...deserialized
1379
- });
1380
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1381
- }, "de_UpdateOutOfSyncExceptionRes");
1382
- var de_GetRepositorySyncStatusOutput = /* @__PURE__ */ __name((output, context) => {
1383
- return (0, import_smithy_client.take)(output, {
1384
- LatestSync: /* @__PURE__ */ __name((_) => de_RepositorySyncAttempt(_, context), "LatestSync")
1385
- });
1386
- }, "de_GetRepositorySyncStatusOutput");
1387
- var de_GetResourceSyncStatusOutput = /* @__PURE__ */ __name((output, context) => {
1388
- return (0, import_smithy_client.take)(output, {
1389
- DesiredState: import_smithy_client._json,
1390
- LatestSuccessfulSync: /* @__PURE__ */ __name((_) => de_ResourceSyncAttempt(_, context), "LatestSuccessfulSync"),
1391
- LatestSync: /* @__PURE__ */ __name((_) => de_ResourceSyncAttempt(_, context), "LatestSync")
1392
- });
1393
- }, "de_GetResourceSyncStatusOutput");
1394
- var de_GetSyncBlockerSummaryOutput = /* @__PURE__ */ __name((output, context) => {
1395
- return (0, import_smithy_client.take)(output, {
1396
- SyncBlockerSummary: /* @__PURE__ */ __name((_) => de_SyncBlockerSummary(_, context), "SyncBlockerSummary")
1397
- });
1398
- }, "de_GetSyncBlockerSummaryOutput");
1399
- var de_LatestSyncBlockerList = /* @__PURE__ */ __name((output, context) => {
1400
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1401
- return de_SyncBlocker(entry, context);
1402
- });
1403
- return retVal;
1404
- }, "de_LatestSyncBlockerList");
1405
- var de_RepositorySyncAttempt = /* @__PURE__ */ __name((output, context) => {
1406
- return (0, import_smithy_client.take)(output, {
1407
- Events: /* @__PURE__ */ __name((_) => de_RepositorySyncEventList(_, context), "Events"),
1408
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1409
- Status: import_smithy_client.expectString
1410
- });
1411
- }, "de_RepositorySyncAttempt");
1412
- var de_RepositorySyncEvent = /* @__PURE__ */ __name((output, context) => {
1413
- return (0, import_smithy_client.take)(output, {
1414
- Event: import_smithy_client.expectString,
1415
- ExternalId: import_smithy_client.expectString,
1416
- Time: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Time"),
1417
- Type: import_smithy_client.expectString
1418
- });
1419
- }, "de_RepositorySyncEvent");
1420
- var de_RepositorySyncEventList = /* @__PURE__ */ __name((output, context) => {
1421
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1422
- return de_RepositorySyncEvent(entry, context);
1423
- });
1424
- return retVal;
1425
- }, "de_RepositorySyncEventList");
1426
- var de_ResourceSyncAttempt = /* @__PURE__ */ __name((output, context) => {
1427
- return (0, import_smithy_client.take)(output, {
1428
- Events: /* @__PURE__ */ __name((_) => de_ResourceSyncEventList(_, context), "Events"),
1429
- InitialRevision: import_smithy_client._json,
1430
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1431
- Status: import_smithy_client.expectString,
1432
- Target: import_smithy_client.expectString,
1433
- TargetRevision: import_smithy_client._json
1434
- });
1435
- }, "de_ResourceSyncAttempt");
1436
- var de_ResourceSyncEvent = /* @__PURE__ */ __name((output, context) => {
1437
- return (0, import_smithy_client.take)(output, {
1438
- Event: import_smithy_client.expectString,
1439
- ExternalId: import_smithy_client.expectString,
1440
- Time: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Time"),
1441
- Type: import_smithy_client.expectString
1442
- });
1443
- }, "de_ResourceSyncEvent");
1444
- var de_ResourceSyncEventList = /* @__PURE__ */ __name((output, context) => {
1445
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1446
- return de_ResourceSyncEvent(entry, context);
1447
- });
1448
- return retVal;
1449
- }, "de_ResourceSyncEventList");
1450
- var de_SyncBlocker = /* @__PURE__ */ __name((output, context) => {
1451
- return (0, import_smithy_client.take)(output, {
1452
- Contexts: import_smithy_client._json,
1453
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1454
- CreatedReason: import_smithy_client.expectString,
1455
- Id: import_smithy_client.expectString,
1456
- ResolvedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ResolvedAt"),
1457
- ResolvedReason: import_smithy_client.expectString,
1458
- Status: import_smithy_client.expectString,
1459
- Type: import_smithy_client.expectString
1460
- });
1461
- }, "de_SyncBlocker");
1462
- var de_SyncBlockerSummary = /* @__PURE__ */ __name((output, context) => {
1463
- return (0, import_smithy_client.take)(output, {
1464
- LatestBlockers: /* @__PURE__ */ __name((_) => de_LatestSyncBlockerList(_, context), "LatestBlockers"),
1465
- ParentResourceName: import_smithy_client.expectString,
1466
- ResourceName: import_smithy_client.expectString
1467
- });
1468
- }, "de_SyncBlockerSummary");
1469
- var de_UpdateSyncBlockerOutput = /* @__PURE__ */ __name((output, context) => {
1470
- return (0, import_smithy_client.take)(output, {
1471
- ParentResourceName: import_smithy_client.expectString,
1472
- ResourceName: import_smithy_client.expectString,
1473
- SyncBlocker: /* @__PURE__ */ __name((_) => de_SyncBlocker(_, context), "SyncBlocker")
1474
- });
1475
- }, "de_UpdateSyncBlockerOutput");
1476
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1477
- httpStatusCode: output.statusCode,
1478
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1479
- extendedRequestId: output.headers["x-amz-id-2"],
1480
- cfId: output.headers["x-amz-cf-id"]
1481
- }), "deserializeMetadata");
1482
- var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeConnectionsServiceException);
1483
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1484
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1485
- const contents = {
1486
- protocol,
1487
- hostname,
1488
- port,
1489
- method: "POST",
1490
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1491
- headers
1492
- };
1493
- if (resolvedHostname !== void 0) {
1494
- contents.hostname = resolvedHostname;
1495
- }
1496
- if (body !== void 0) {
1497
- contents.body = body;
1498
- }
1499
- return new import_protocol_http.HttpRequest(contents);
1500
- }, "buildHttpRpcRequest");
1501
- function sharedHeaders(operation) {
1502
- return {
1503
- "content-type": "application/x-amz-json-1.0",
1504
- "x-amz-target": `CodeConnections_20231201.${operation}`
1505
- };
1506
- }
1507
- __name(sharedHeaders, "sharedHeaders");
1508
-
1509
- // src/commands/CreateConnectionCommand.ts
1510
- var CreateConnectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1511
- return [
1512
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1513
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1514
- ];
1515
- }).s("CodeConnections_20231201", "CreateConnection", {}).n("CodeConnectionsClient", "CreateConnectionCommand").f(void 0, void 0).ser(se_CreateConnectionCommand).de(de_CreateConnectionCommand).build() {
1516
- static {
1517
- __name(this, "CreateConnectionCommand");
1518
- }
1086
+ const de_SyncBlockerDoesNotExistExceptionRes = async (parsedOutput, context) => {
1087
+ const body = parsedOutput.body;
1088
+ const deserialized = smithyClient._json(body);
1089
+ const exception = new SyncBlockerDoesNotExistException({
1090
+ $metadata: deserializeMetadata(parsedOutput),
1091
+ ...deserialized,
1092
+ });
1093
+ return smithyClient.decorateServiceException(exception, body);
1519
1094
  };
1520
-
1521
- // src/commands/CreateHostCommand.ts
1522
-
1523
-
1524
-
1525
- var CreateHostCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1526
- return [
1527
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1528
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1529
- ];
1530
- }).s("CodeConnections_20231201", "CreateHost", {}).n("CodeConnectionsClient", "CreateHostCommand").f(void 0, void 0).ser(se_CreateHostCommand).de(de_CreateHostCommand).build() {
1531
- static {
1532
- __name(this, "CreateHostCommand");
1533
- }
1095
+ const de_SyncConfigurationStillExistsExceptionRes = async (parsedOutput, context) => {
1096
+ const body = parsedOutput.body;
1097
+ const deserialized = smithyClient._json(body);
1098
+ const exception = new SyncConfigurationStillExistsException({
1099
+ $metadata: deserializeMetadata(parsedOutput),
1100
+ ...deserialized,
1101
+ });
1102
+ return smithyClient.decorateServiceException(exception, body);
1534
1103
  };
1535
-
1536
- // src/commands/CreateRepositoryLinkCommand.ts
1537
-
1538
-
1539
-
1540
- var CreateRepositoryLinkCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1541
- return [
1542
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1543
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1544
- ];
1545
- }).s("CodeConnections_20231201", "CreateRepositoryLink", {}).n("CodeConnectionsClient", "CreateRepositoryLinkCommand").f(void 0, void 0).ser(se_CreateRepositoryLinkCommand).de(de_CreateRepositoryLinkCommand).build() {
1546
- static {
1547
- __name(this, "CreateRepositoryLinkCommand");
1548
- }
1104
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1105
+ const body = parsedOutput.body;
1106
+ const deserialized = smithyClient._json(body);
1107
+ const exception = new ThrottlingException({
1108
+ $metadata: deserializeMetadata(parsedOutput),
1109
+ ...deserialized,
1110
+ });
1111
+ return smithyClient.decorateServiceException(exception, body);
1549
1112
  };
1550
-
1551
- // src/commands/CreateSyncConfigurationCommand.ts
1552
-
1553
-
1554
-
1555
- var CreateSyncConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1556
- return [
1557
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1558
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1559
- ];
1560
- }).s("CodeConnections_20231201", "CreateSyncConfiguration", {}).n("CodeConnectionsClient", "CreateSyncConfigurationCommand").f(void 0, void 0).ser(se_CreateSyncConfigurationCommand).de(de_CreateSyncConfigurationCommand).build() {
1561
- static {
1562
- __name(this, "CreateSyncConfigurationCommand");
1563
- }
1113
+ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
1114
+ const body = parsedOutput.body;
1115
+ const deserialized = smithyClient._json(body);
1116
+ const exception = new UnsupportedOperationException({
1117
+ $metadata: deserializeMetadata(parsedOutput),
1118
+ ...deserialized,
1119
+ });
1120
+ return smithyClient.decorateServiceException(exception, body);
1564
1121
  };
1565
-
1566
- // src/commands/DeleteConnectionCommand.ts
1567
-
1568
-
1569
-
1570
- var DeleteConnectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1571
- return [
1572
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1573
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1574
- ];
1575
- }).s("CodeConnections_20231201", "DeleteConnection", {}).n("CodeConnectionsClient", "DeleteConnectionCommand").f(void 0, void 0).ser(se_DeleteConnectionCommand).de(de_DeleteConnectionCommand).build() {
1576
- static {
1577
- __name(this, "DeleteConnectionCommand");
1578
- }
1122
+ const de_UnsupportedProviderTypeExceptionRes = async (parsedOutput, context) => {
1123
+ const body = parsedOutput.body;
1124
+ const deserialized = smithyClient._json(body);
1125
+ const exception = new UnsupportedProviderTypeException({
1126
+ $metadata: deserializeMetadata(parsedOutput),
1127
+ ...deserialized,
1128
+ });
1129
+ return smithyClient.decorateServiceException(exception, body);
1579
1130
  };
1580
-
1581
- // src/commands/DeleteHostCommand.ts
1582
-
1583
-
1584
-
1585
- var DeleteHostCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1586
- return [
1587
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1588
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1589
- ];
1590
- }).s("CodeConnections_20231201", "DeleteHost", {}).n("CodeConnectionsClient", "DeleteHostCommand").f(void 0, void 0).ser(se_DeleteHostCommand).de(de_DeleteHostCommand).build() {
1591
- static {
1592
- __name(this, "DeleteHostCommand");
1593
- }
1131
+ const de_UpdateOutOfSyncExceptionRes = async (parsedOutput, context) => {
1132
+ const body = parsedOutput.body;
1133
+ const deserialized = smithyClient._json(body);
1134
+ const exception = new UpdateOutOfSyncException({
1135
+ $metadata: deserializeMetadata(parsedOutput),
1136
+ ...deserialized,
1137
+ });
1138
+ return smithyClient.decorateServiceException(exception, body);
1594
1139
  };
1595
-
1596
- // src/commands/DeleteRepositoryLinkCommand.ts
1597
-
1598
-
1599
-
1600
- var DeleteRepositoryLinkCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1601
- return [
1602
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1603
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1604
- ];
1605
- }).s("CodeConnections_20231201", "DeleteRepositoryLink", {}).n("CodeConnectionsClient", "DeleteRepositoryLinkCommand").f(void 0, void 0).ser(se_DeleteRepositoryLinkCommand).de(de_DeleteRepositoryLinkCommand).build() {
1606
- static {
1607
- __name(this, "DeleteRepositoryLinkCommand");
1608
- }
1140
+ const de_GetRepositorySyncStatusOutput = (output, context) => {
1141
+ return smithyClient.take(output, {
1142
+ LatestSync: (_) => de_RepositorySyncAttempt(_),
1143
+ });
1609
1144
  };
1610
-
1611
- // src/commands/DeleteSyncConfigurationCommand.ts
1612
-
1613
-
1614
-
1615
- var DeleteSyncConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1616
- return [
1617
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1618
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1619
- ];
1620
- }).s("CodeConnections_20231201", "DeleteSyncConfiguration", {}).n("CodeConnectionsClient", "DeleteSyncConfigurationCommand").f(void 0, void 0).ser(se_DeleteSyncConfigurationCommand).de(de_DeleteSyncConfigurationCommand).build() {
1621
- static {
1622
- __name(this, "DeleteSyncConfigurationCommand");
1623
- }
1145
+ const de_GetResourceSyncStatusOutput = (output, context) => {
1146
+ return smithyClient.take(output, {
1147
+ DesiredState: smithyClient._json,
1148
+ LatestSuccessfulSync: (_) => de_ResourceSyncAttempt(_),
1149
+ LatestSync: (_) => de_ResourceSyncAttempt(_),
1150
+ });
1624
1151
  };
1625
-
1626
- // src/commands/GetConnectionCommand.ts
1627
-
1628
-
1629
-
1630
- var GetConnectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1631
- return [
1632
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1633
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1634
- ];
1635
- }).s("CodeConnections_20231201", "GetConnection", {}).n("CodeConnectionsClient", "GetConnectionCommand").f(void 0, void 0).ser(se_GetConnectionCommand).de(de_GetConnectionCommand).build() {
1636
- static {
1637
- __name(this, "GetConnectionCommand");
1638
- }
1152
+ const de_GetSyncBlockerSummaryOutput = (output, context) => {
1153
+ return smithyClient.take(output, {
1154
+ SyncBlockerSummary: (_) => de_SyncBlockerSummary(_),
1155
+ });
1639
1156
  };
1640
-
1641
- // src/commands/GetHostCommand.ts
1642
-
1643
-
1644
-
1645
- var GetHostCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1646
- return [
1647
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1648
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1649
- ];
1650
- }).s("CodeConnections_20231201", "GetHost", {}).n("CodeConnectionsClient", "GetHostCommand").f(void 0, void 0).ser(se_GetHostCommand).de(de_GetHostCommand).build() {
1651
- static {
1652
- __name(this, "GetHostCommand");
1653
- }
1157
+ const de_LatestSyncBlockerList = (output, context) => {
1158
+ const retVal = (output || [])
1159
+ .filter((e) => e != null)
1160
+ .map((entry) => {
1161
+ return de_SyncBlocker(entry);
1162
+ });
1163
+ return retVal;
1654
1164
  };
1655
-
1656
- // src/commands/GetRepositoryLinkCommand.ts
1657
-
1658
-
1659
-
1660
- var GetRepositoryLinkCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1661
- return [
1662
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1663
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1664
- ];
1665
- }).s("CodeConnections_20231201", "GetRepositoryLink", {}).n("CodeConnectionsClient", "GetRepositoryLinkCommand").f(void 0, void 0).ser(se_GetRepositoryLinkCommand).de(de_GetRepositoryLinkCommand).build() {
1666
- static {
1667
- __name(this, "GetRepositoryLinkCommand");
1668
- }
1165
+ const de_RepositorySyncAttempt = (output, context) => {
1166
+ return smithyClient.take(output, {
1167
+ Events: (_) => de_RepositorySyncEventList(_),
1168
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1169
+ Status: smithyClient.expectString,
1170
+ });
1669
1171
  };
1670
-
1671
- // src/commands/GetRepositorySyncStatusCommand.ts
1672
-
1673
-
1674
-
1675
- var GetRepositorySyncStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1676
- return [
1677
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1678
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1679
- ];
1680
- }).s("CodeConnections_20231201", "GetRepositorySyncStatus", {}).n("CodeConnectionsClient", "GetRepositorySyncStatusCommand").f(void 0, void 0).ser(se_GetRepositorySyncStatusCommand).de(de_GetRepositorySyncStatusCommand).build() {
1681
- static {
1682
- __name(this, "GetRepositorySyncStatusCommand");
1683
- }
1172
+ const de_RepositorySyncEvent = (output, context) => {
1173
+ return smithyClient.take(output, {
1174
+ Event: smithyClient.expectString,
1175
+ ExternalId: smithyClient.expectString,
1176
+ Time: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1177
+ Type: smithyClient.expectString,
1178
+ });
1684
1179
  };
1685
-
1686
- // src/commands/GetResourceSyncStatusCommand.ts
1687
-
1688
-
1689
-
1690
- var GetResourceSyncStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1691
- return [
1692
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1693
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1694
- ];
1695
- }).s("CodeConnections_20231201", "GetResourceSyncStatus", {}).n("CodeConnectionsClient", "GetResourceSyncStatusCommand").f(void 0, void 0).ser(se_GetResourceSyncStatusCommand).de(de_GetResourceSyncStatusCommand).build() {
1696
- static {
1697
- __name(this, "GetResourceSyncStatusCommand");
1698
- }
1180
+ const de_RepositorySyncEventList = (output, context) => {
1181
+ const retVal = (output || [])
1182
+ .filter((e) => e != null)
1183
+ .map((entry) => {
1184
+ return de_RepositorySyncEvent(entry);
1185
+ });
1186
+ return retVal;
1699
1187
  };
1700
-
1701
- // src/commands/GetSyncBlockerSummaryCommand.ts
1702
-
1703
-
1704
-
1705
- var GetSyncBlockerSummaryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1706
- return [
1707
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1708
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1709
- ];
1710
- }).s("CodeConnections_20231201", "GetSyncBlockerSummary", {}).n("CodeConnectionsClient", "GetSyncBlockerSummaryCommand").f(void 0, void 0).ser(se_GetSyncBlockerSummaryCommand).de(de_GetSyncBlockerSummaryCommand).build() {
1711
- static {
1712
- __name(this, "GetSyncBlockerSummaryCommand");
1713
- }
1188
+ const de_ResourceSyncAttempt = (output, context) => {
1189
+ return smithyClient.take(output, {
1190
+ Events: (_) => de_ResourceSyncEventList(_),
1191
+ InitialRevision: smithyClient._json,
1192
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1193
+ Status: smithyClient.expectString,
1194
+ Target: smithyClient.expectString,
1195
+ TargetRevision: smithyClient._json,
1196
+ });
1714
1197
  };
1715
-
1716
- // src/commands/GetSyncConfigurationCommand.ts
1717
-
1718
-
1719
-
1720
- var GetSyncConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1721
- return [
1722
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1723
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1724
- ];
1725
- }).s("CodeConnections_20231201", "GetSyncConfiguration", {}).n("CodeConnectionsClient", "GetSyncConfigurationCommand").f(void 0, void 0).ser(se_GetSyncConfigurationCommand).de(de_GetSyncConfigurationCommand).build() {
1726
- static {
1727
- __name(this, "GetSyncConfigurationCommand");
1728
- }
1198
+ const de_ResourceSyncEvent = (output, context) => {
1199
+ return smithyClient.take(output, {
1200
+ Event: smithyClient.expectString,
1201
+ ExternalId: smithyClient.expectString,
1202
+ Time: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1203
+ Type: smithyClient.expectString,
1204
+ });
1729
1205
  };
1730
-
1731
- // src/commands/ListConnectionsCommand.ts
1732
-
1733
-
1734
-
1735
- var ListConnectionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1736
- return [
1737
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1738
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1739
- ];
1740
- }).s("CodeConnections_20231201", "ListConnections", {}).n("CodeConnectionsClient", "ListConnectionsCommand").f(void 0, void 0).ser(se_ListConnectionsCommand).de(de_ListConnectionsCommand).build() {
1741
- static {
1742
- __name(this, "ListConnectionsCommand");
1743
- }
1206
+ const de_ResourceSyncEventList = (output, context) => {
1207
+ const retVal = (output || [])
1208
+ .filter((e) => e != null)
1209
+ .map((entry) => {
1210
+ return de_ResourceSyncEvent(entry);
1211
+ });
1212
+ return retVal;
1744
1213
  };
1745
-
1746
- // src/commands/ListHostsCommand.ts
1747
-
1748
-
1749
-
1750
- var ListHostsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1751
- return [
1752
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1753
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1754
- ];
1755
- }).s("CodeConnections_20231201", "ListHosts", {}).n("CodeConnectionsClient", "ListHostsCommand").f(void 0, void 0).ser(se_ListHostsCommand).de(de_ListHostsCommand).build() {
1756
- static {
1757
- __name(this, "ListHostsCommand");
1758
- }
1214
+ const de_SyncBlocker = (output, context) => {
1215
+ return smithyClient.take(output, {
1216
+ Contexts: smithyClient._json,
1217
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1218
+ CreatedReason: smithyClient.expectString,
1219
+ Id: smithyClient.expectString,
1220
+ ResolvedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1221
+ ResolvedReason: smithyClient.expectString,
1222
+ Status: smithyClient.expectString,
1223
+ Type: smithyClient.expectString,
1224
+ });
1759
1225
  };
1760
-
1761
- // src/commands/ListRepositoryLinksCommand.ts
1762
-
1763
-
1764
-
1765
- var ListRepositoryLinksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1766
- return [
1767
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1768
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1769
- ];
1770
- }).s("CodeConnections_20231201", "ListRepositoryLinks", {}).n("CodeConnectionsClient", "ListRepositoryLinksCommand").f(void 0, void 0).ser(se_ListRepositoryLinksCommand).de(de_ListRepositoryLinksCommand).build() {
1771
- static {
1772
- __name(this, "ListRepositoryLinksCommand");
1773
- }
1226
+ const de_SyncBlockerSummary = (output, context) => {
1227
+ return smithyClient.take(output, {
1228
+ LatestBlockers: (_) => de_LatestSyncBlockerList(_),
1229
+ ParentResourceName: smithyClient.expectString,
1230
+ ResourceName: smithyClient.expectString,
1231
+ });
1774
1232
  };
1775
-
1776
- // src/commands/ListRepositorySyncDefinitionsCommand.ts
1777
-
1778
-
1779
-
1780
- var ListRepositorySyncDefinitionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1781
- return [
1782
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1783
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1784
- ];
1785
- }).s("CodeConnections_20231201", "ListRepositorySyncDefinitions", {}).n("CodeConnectionsClient", "ListRepositorySyncDefinitionsCommand").f(void 0, void 0).ser(se_ListRepositorySyncDefinitionsCommand).de(de_ListRepositorySyncDefinitionsCommand).build() {
1786
- static {
1787
- __name(this, "ListRepositorySyncDefinitionsCommand");
1788
- }
1233
+ const de_UpdateSyncBlockerOutput = (output, context) => {
1234
+ return smithyClient.take(output, {
1235
+ ParentResourceName: smithyClient.expectString,
1236
+ ResourceName: smithyClient.expectString,
1237
+ SyncBlocker: (_) => de_SyncBlocker(_),
1238
+ });
1789
1239
  };
1790
-
1791
- // src/commands/ListSyncConfigurationsCommand.ts
1792
-
1793
-
1794
-
1795
- var ListSyncConfigurationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1796
- return [
1797
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1798
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1799
- ];
1800
- }).s("CodeConnections_20231201", "ListSyncConfigurations", {}).n("CodeConnectionsClient", "ListSyncConfigurationsCommand").f(void 0, void 0).ser(se_ListSyncConfigurationsCommand).de(de_ListSyncConfigurationsCommand).build() {
1801
- static {
1802
- __name(this, "ListSyncConfigurationsCommand");
1803
- }
1240
+ const deserializeMetadata = (output) => ({
1241
+ httpStatusCode: output.statusCode,
1242
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1243
+ extendedRequestId: output.headers["x-amz-id-2"],
1244
+ cfId: output.headers["x-amz-cf-id"],
1245
+ });
1246
+ const throwDefaultError = smithyClient.withBaseException(CodeConnectionsServiceException);
1247
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1248
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1249
+ const contents = {
1250
+ protocol,
1251
+ hostname,
1252
+ port,
1253
+ method: "POST",
1254
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1255
+ headers,
1256
+ };
1257
+ if (body !== undefined) {
1258
+ contents.body = body;
1259
+ }
1260
+ return new protocolHttp.HttpRequest(contents);
1804
1261
  };
1262
+ function sharedHeaders(operation) {
1263
+ return {
1264
+ "content-type": "application/x-amz-json-1.0",
1265
+ "x-amz-target": `CodeConnections_20231201.${operation}`,
1266
+ };
1267
+ }
1805
1268
 
1806
- // src/commands/ListTagsForResourceCommand.ts
1269
+ class CreateConnectionCommand extends smithyClient.Command
1270
+ .classBuilder()
1271
+ .ep(commonParams)
1272
+ .m(function (Command, cs, config, o) {
1273
+ return [
1274
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1275
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1276
+ ];
1277
+ })
1278
+ .s("CodeConnections_20231201", "CreateConnection", {})
1279
+ .n("CodeConnectionsClient", "CreateConnectionCommand")
1280
+ .f(void 0, void 0)
1281
+ .ser(se_CreateConnectionCommand)
1282
+ .de(de_CreateConnectionCommand)
1283
+ .build() {
1284
+ }
1807
1285
 
1286
+ class CreateHostCommand extends smithyClient.Command
1287
+ .classBuilder()
1288
+ .ep(commonParams)
1289
+ .m(function (Command, cs, config, o) {
1290
+ return [
1291
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1292
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1293
+ ];
1294
+ })
1295
+ .s("CodeConnections_20231201", "CreateHost", {})
1296
+ .n("CodeConnectionsClient", "CreateHostCommand")
1297
+ .f(void 0, void 0)
1298
+ .ser(se_CreateHostCommand)
1299
+ .de(de_CreateHostCommand)
1300
+ .build() {
1301
+ }
1808
1302
 
1303
+ class CreateRepositoryLinkCommand extends smithyClient.Command
1304
+ .classBuilder()
1305
+ .ep(commonParams)
1306
+ .m(function (Command, cs, config, o) {
1307
+ return [
1308
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1309
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1310
+ ];
1311
+ })
1312
+ .s("CodeConnections_20231201", "CreateRepositoryLink", {})
1313
+ .n("CodeConnectionsClient", "CreateRepositoryLinkCommand")
1314
+ .f(void 0, void 0)
1315
+ .ser(se_CreateRepositoryLinkCommand)
1316
+ .de(de_CreateRepositoryLinkCommand)
1317
+ .build() {
1318
+ }
1809
1319
 
1810
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1811
- return [
1812
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1813
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1814
- ];
1815
- }).s("CodeConnections_20231201", "ListTagsForResource", {}).n("CodeConnectionsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1816
- static {
1817
- __name(this, "ListTagsForResourceCommand");
1818
- }
1819
- };
1320
+ class CreateSyncConfigurationCommand extends smithyClient.Command
1321
+ .classBuilder()
1322
+ .ep(commonParams)
1323
+ .m(function (Command, cs, config, o) {
1324
+ return [
1325
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1326
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1327
+ ];
1328
+ })
1329
+ .s("CodeConnections_20231201", "CreateSyncConfiguration", {})
1330
+ .n("CodeConnectionsClient", "CreateSyncConfigurationCommand")
1331
+ .f(void 0, void 0)
1332
+ .ser(se_CreateSyncConfigurationCommand)
1333
+ .de(de_CreateSyncConfigurationCommand)
1334
+ .build() {
1335
+ }
1820
1336
 
1821
- // src/commands/TagResourceCommand.ts
1337
+ class DeleteConnectionCommand extends smithyClient.Command
1338
+ .classBuilder()
1339
+ .ep(commonParams)
1340
+ .m(function (Command, cs, config, o) {
1341
+ return [
1342
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1343
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1344
+ ];
1345
+ })
1346
+ .s("CodeConnections_20231201", "DeleteConnection", {})
1347
+ .n("CodeConnectionsClient", "DeleteConnectionCommand")
1348
+ .f(void 0, void 0)
1349
+ .ser(se_DeleteConnectionCommand)
1350
+ .de(de_DeleteConnectionCommand)
1351
+ .build() {
1352
+ }
1822
1353
 
1354
+ class DeleteHostCommand extends smithyClient.Command
1355
+ .classBuilder()
1356
+ .ep(commonParams)
1357
+ .m(function (Command, cs, config, o) {
1358
+ return [
1359
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1360
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1361
+ ];
1362
+ })
1363
+ .s("CodeConnections_20231201", "DeleteHost", {})
1364
+ .n("CodeConnectionsClient", "DeleteHostCommand")
1365
+ .f(void 0, void 0)
1366
+ .ser(se_DeleteHostCommand)
1367
+ .de(de_DeleteHostCommand)
1368
+ .build() {
1369
+ }
1823
1370
 
1371
+ class DeleteRepositoryLinkCommand extends smithyClient.Command
1372
+ .classBuilder()
1373
+ .ep(commonParams)
1374
+ .m(function (Command, cs, config, o) {
1375
+ return [
1376
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1377
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1378
+ ];
1379
+ })
1380
+ .s("CodeConnections_20231201", "DeleteRepositoryLink", {})
1381
+ .n("CodeConnectionsClient", "DeleteRepositoryLinkCommand")
1382
+ .f(void 0, void 0)
1383
+ .ser(se_DeleteRepositoryLinkCommand)
1384
+ .de(de_DeleteRepositoryLinkCommand)
1385
+ .build() {
1386
+ }
1824
1387
 
1825
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1826
- return [
1827
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1828
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1829
- ];
1830
- }).s("CodeConnections_20231201", "TagResource", {}).n("CodeConnectionsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1831
- static {
1832
- __name(this, "TagResourceCommand");
1833
- }
1834
- };
1388
+ class DeleteSyncConfigurationCommand extends smithyClient.Command
1389
+ .classBuilder()
1390
+ .ep(commonParams)
1391
+ .m(function (Command, cs, config, o) {
1392
+ return [
1393
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1394
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1395
+ ];
1396
+ })
1397
+ .s("CodeConnections_20231201", "DeleteSyncConfiguration", {})
1398
+ .n("CodeConnectionsClient", "DeleteSyncConfigurationCommand")
1399
+ .f(void 0, void 0)
1400
+ .ser(se_DeleteSyncConfigurationCommand)
1401
+ .de(de_DeleteSyncConfigurationCommand)
1402
+ .build() {
1403
+ }
1835
1404
 
1836
- // src/commands/UntagResourceCommand.ts
1405
+ class GetConnectionCommand extends smithyClient.Command
1406
+ .classBuilder()
1407
+ .ep(commonParams)
1408
+ .m(function (Command, cs, config, o) {
1409
+ return [
1410
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1411
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1412
+ ];
1413
+ })
1414
+ .s("CodeConnections_20231201", "GetConnection", {})
1415
+ .n("CodeConnectionsClient", "GetConnectionCommand")
1416
+ .f(void 0, void 0)
1417
+ .ser(se_GetConnectionCommand)
1418
+ .de(de_GetConnectionCommand)
1419
+ .build() {
1420
+ }
1837
1421
 
1422
+ class GetHostCommand extends smithyClient.Command
1423
+ .classBuilder()
1424
+ .ep(commonParams)
1425
+ .m(function (Command, cs, config, o) {
1426
+ return [
1427
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1428
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1429
+ ];
1430
+ })
1431
+ .s("CodeConnections_20231201", "GetHost", {})
1432
+ .n("CodeConnectionsClient", "GetHostCommand")
1433
+ .f(void 0, void 0)
1434
+ .ser(se_GetHostCommand)
1435
+ .de(de_GetHostCommand)
1436
+ .build() {
1437
+ }
1838
1438
 
1439
+ class GetRepositoryLinkCommand extends smithyClient.Command
1440
+ .classBuilder()
1441
+ .ep(commonParams)
1442
+ .m(function (Command, cs, config, o) {
1443
+ return [
1444
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1445
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1446
+ ];
1447
+ })
1448
+ .s("CodeConnections_20231201", "GetRepositoryLink", {})
1449
+ .n("CodeConnectionsClient", "GetRepositoryLinkCommand")
1450
+ .f(void 0, void 0)
1451
+ .ser(se_GetRepositoryLinkCommand)
1452
+ .de(de_GetRepositoryLinkCommand)
1453
+ .build() {
1454
+ }
1839
1455
 
1840
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1841
- return [
1842
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1843
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1844
- ];
1845
- }).s("CodeConnections_20231201", "UntagResource", {}).n("CodeConnectionsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1846
- static {
1847
- __name(this, "UntagResourceCommand");
1848
- }
1849
- };
1456
+ class GetRepositorySyncStatusCommand extends smithyClient.Command
1457
+ .classBuilder()
1458
+ .ep(commonParams)
1459
+ .m(function (Command, cs, config, o) {
1460
+ return [
1461
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1462
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1463
+ ];
1464
+ })
1465
+ .s("CodeConnections_20231201", "GetRepositorySyncStatus", {})
1466
+ .n("CodeConnectionsClient", "GetRepositorySyncStatusCommand")
1467
+ .f(void 0, void 0)
1468
+ .ser(se_GetRepositorySyncStatusCommand)
1469
+ .de(de_GetRepositorySyncStatusCommand)
1470
+ .build() {
1471
+ }
1850
1472
 
1851
- // src/commands/UpdateHostCommand.ts
1473
+ class GetResourceSyncStatusCommand extends smithyClient.Command
1474
+ .classBuilder()
1475
+ .ep(commonParams)
1476
+ .m(function (Command, cs, config, o) {
1477
+ return [
1478
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1479
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1480
+ ];
1481
+ })
1482
+ .s("CodeConnections_20231201", "GetResourceSyncStatus", {})
1483
+ .n("CodeConnectionsClient", "GetResourceSyncStatusCommand")
1484
+ .f(void 0, void 0)
1485
+ .ser(se_GetResourceSyncStatusCommand)
1486
+ .de(de_GetResourceSyncStatusCommand)
1487
+ .build() {
1488
+ }
1852
1489
 
1490
+ class GetSyncBlockerSummaryCommand extends smithyClient.Command
1491
+ .classBuilder()
1492
+ .ep(commonParams)
1493
+ .m(function (Command, cs, config, o) {
1494
+ return [
1495
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1496
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1497
+ ];
1498
+ })
1499
+ .s("CodeConnections_20231201", "GetSyncBlockerSummary", {})
1500
+ .n("CodeConnectionsClient", "GetSyncBlockerSummaryCommand")
1501
+ .f(void 0, void 0)
1502
+ .ser(se_GetSyncBlockerSummaryCommand)
1503
+ .de(de_GetSyncBlockerSummaryCommand)
1504
+ .build() {
1505
+ }
1853
1506
 
1507
+ class GetSyncConfigurationCommand extends smithyClient.Command
1508
+ .classBuilder()
1509
+ .ep(commonParams)
1510
+ .m(function (Command, cs, config, o) {
1511
+ return [
1512
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1513
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1514
+ ];
1515
+ })
1516
+ .s("CodeConnections_20231201", "GetSyncConfiguration", {})
1517
+ .n("CodeConnectionsClient", "GetSyncConfigurationCommand")
1518
+ .f(void 0, void 0)
1519
+ .ser(se_GetSyncConfigurationCommand)
1520
+ .de(de_GetSyncConfigurationCommand)
1521
+ .build() {
1522
+ }
1854
1523
 
1855
- var UpdateHostCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1856
- return [
1857
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1858
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1859
- ];
1860
- }).s("CodeConnections_20231201", "UpdateHost", {}).n("CodeConnectionsClient", "UpdateHostCommand").f(void 0, void 0).ser(se_UpdateHostCommand).de(de_UpdateHostCommand).build() {
1861
- static {
1862
- __name(this, "UpdateHostCommand");
1863
- }
1864
- };
1524
+ class ListConnectionsCommand extends smithyClient.Command
1525
+ .classBuilder()
1526
+ .ep(commonParams)
1527
+ .m(function (Command, cs, config, o) {
1528
+ return [
1529
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1530
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1531
+ ];
1532
+ })
1533
+ .s("CodeConnections_20231201", "ListConnections", {})
1534
+ .n("CodeConnectionsClient", "ListConnectionsCommand")
1535
+ .f(void 0, void 0)
1536
+ .ser(se_ListConnectionsCommand)
1537
+ .de(de_ListConnectionsCommand)
1538
+ .build() {
1539
+ }
1865
1540
 
1866
- // src/commands/UpdateRepositoryLinkCommand.ts
1541
+ class ListHostsCommand extends smithyClient.Command
1542
+ .classBuilder()
1543
+ .ep(commonParams)
1544
+ .m(function (Command, cs, config, o) {
1545
+ return [
1546
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1547
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1548
+ ];
1549
+ })
1550
+ .s("CodeConnections_20231201", "ListHosts", {})
1551
+ .n("CodeConnectionsClient", "ListHostsCommand")
1552
+ .f(void 0, void 0)
1553
+ .ser(se_ListHostsCommand)
1554
+ .de(de_ListHostsCommand)
1555
+ .build() {
1556
+ }
1867
1557
 
1558
+ class ListRepositoryLinksCommand extends smithyClient.Command
1559
+ .classBuilder()
1560
+ .ep(commonParams)
1561
+ .m(function (Command, cs, config, o) {
1562
+ return [
1563
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1564
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1565
+ ];
1566
+ })
1567
+ .s("CodeConnections_20231201", "ListRepositoryLinks", {})
1568
+ .n("CodeConnectionsClient", "ListRepositoryLinksCommand")
1569
+ .f(void 0, void 0)
1570
+ .ser(se_ListRepositoryLinksCommand)
1571
+ .de(de_ListRepositoryLinksCommand)
1572
+ .build() {
1573
+ }
1868
1574
 
1575
+ class ListRepositorySyncDefinitionsCommand extends smithyClient.Command
1576
+ .classBuilder()
1577
+ .ep(commonParams)
1578
+ .m(function (Command, cs, config, o) {
1579
+ return [
1580
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1581
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1582
+ ];
1583
+ })
1584
+ .s("CodeConnections_20231201", "ListRepositorySyncDefinitions", {})
1585
+ .n("CodeConnectionsClient", "ListRepositorySyncDefinitionsCommand")
1586
+ .f(void 0, void 0)
1587
+ .ser(se_ListRepositorySyncDefinitionsCommand)
1588
+ .de(de_ListRepositorySyncDefinitionsCommand)
1589
+ .build() {
1590
+ }
1869
1591
 
1870
- var UpdateRepositoryLinkCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1871
- return [
1872
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1873
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1874
- ];
1875
- }).s("CodeConnections_20231201", "UpdateRepositoryLink", {}).n("CodeConnectionsClient", "UpdateRepositoryLinkCommand").f(void 0, void 0).ser(se_UpdateRepositoryLinkCommand).de(de_UpdateRepositoryLinkCommand).build() {
1876
- static {
1877
- __name(this, "UpdateRepositoryLinkCommand");
1878
- }
1879
- };
1592
+ class ListSyncConfigurationsCommand extends smithyClient.Command
1593
+ .classBuilder()
1594
+ .ep(commonParams)
1595
+ .m(function (Command, cs, config, o) {
1596
+ return [
1597
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1598
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1599
+ ];
1600
+ })
1601
+ .s("CodeConnections_20231201", "ListSyncConfigurations", {})
1602
+ .n("CodeConnectionsClient", "ListSyncConfigurationsCommand")
1603
+ .f(void 0, void 0)
1604
+ .ser(se_ListSyncConfigurationsCommand)
1605
+ .de(de_ListSyncConfigurationsCommand)
1606
+ .build() {
1607
+ }
1880
1608
 
1881
- // src/commands/UpdateSyncBlockerCommand.ts
1609
+ class ListTagsForResourceCommand extends smithyClient.Command
1610
+ .classBuilder()
1611
+ .ep(commonParams)
1612
+ .m(function (Command, cs, config, o) {
1613
+ return [
1614
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1615
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1616
+ ];
1617
+ })
1618
+ .s("CodeConnections_20231201", "ListTagsForResource", {})
1619
+ .n("CodeConnectionsClient", "ListTagsForResourceCommand")
1620
+ .f(void 0, void 0)
1621
+ .ser(se_ListTagsForResourceCommand)
1622
+ .de(de_ListTagsForResourceCommand)
1623
+ .build() {
1624
+ }
1882
1625
 
1626
+ class TagResourceCommand extends smithyClient.Command
1627
+ .classBuilder()
1628
+ .ep(commonParams)
1629
+ .m(function (Command, cs, config, o) {
1630
+ return [
1631
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1632
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1633
+ ];
1634
+ })
1635
+ .s("CodeConnections_20231201", "TagResource", {})
1636
+ .n("CodeConnectionsClient", "TagResourceCommand")
1637
+ .f(void 0, void 0)
1638
+ .ser(se_TagResourceCommand)
1639
+ .de(de_TagResourceCommand)
1640
+ .build() {
1641
+ }
1883
1642
 
1643
+ class UntagResourceCommand extends smithyClient.Command
1644
+ .classBuilder()
1645
+ .ep(commonParams)
1646
+ .m(function (Command, cs, config, o) {
1647
+ return [
1648
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1649
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1650
+ ];
1651
+ })
1652
+ .s("CodeConnections_20231201", "UntagResource", {})
1653
+ .n("CodeConnectionsClient", "UntagResourceCommand")
1654
+ .f(void 0, void 0)
1655
+ .ser(se_UntagResourceCommand)
1656
+ .de(de_UntagResourceCommand)
1657
+ .build() {
1658
+ }
1884
1659
 
1885
- var UpdateSyncBlockerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1886
- return [
1887
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1888
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1889
- ];
1890
- }).s("CodeConnections_20231201", "UpdateSyncBlocker", {}).n("CodeConnectionsClient", "UpdateSyncBlockerCommand").f(void 0, void 0).ser(se_UpdateSyncBlockerCommand).de(de_UpdateSyncBlockerCommand).build() {
1891
- static {
1892
- __name(this, "UpdateSyncBlockerCommand");
1893
- }
1894
- };
1660
+ class UpdateHostCommand extends smithyClient.Command
1661
+ .classBuilder()
1662
+ .ep(commonParams)
1663
+ .m(function (Command, cs, config, o) {
1664
+ return [
1665
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1666
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1667
+ ];
1668
+ })
1669
+ .s("CodeConnections_20231201", "UpdateHost", {})
1670
+ .n("CodeConnectionsClient", "UpdateHostCommand")
1671
+ .f(void 0, void 0)
1672
+ .ser(se_UpdateHostCommand)
1673
+ .de(de_UpdateHostCommand)
1674
+ .build() {
1675
+ }
1895
1676
 
1896
- // src/commands/UpdateSyncConfigurationCommand.ts
1677
+ class UpdateRepositoryLinkCommand extends smithyClient.Command
1678
+ .classBuilder()
1679
+ .ep(commonParams)
1680
+ .m(function (Command, cs, config, o) {
1681
+ return [
1682
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1683
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1684
+ ];
1685
+ })
1686
+ .s("CodeConnections_20231201", "UpdateRepositoryLink", {})
1687
+ .n("CodeConnectionsClient", "UpdateRepositoryLinkCommand")
1688
+ .f(void 0, void 0)
1689
+ .ser(se_UpdateRepositoryLinkCommand)
1690
+ .de(de_UpdateRepositoryLinkCommand)
1691
+ .build() {
1692
+ }
1897
1693
 
1694
+ class UpdateSyncBlockerCommand extends smithyClient.Command
1695
+ .classBuilder()
1696
+ .ep(commonParams)
1697
+ .m(function (Command, cs, config, o) {
1698
+ return [
1699
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1700
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1701
+ ];
1702
+ })
1703
+ .s("CodeConnections_20231201", "UpdateSyncBlocker", {})
1704
+ .n("CodeConnectionsClient", "UpdateSyncBlockerCommand")
1705
+ .f(void 0, void 0)
1706
+ .ser(se_UpdateSyncBlockerCommand)
1707
+ .de(de_UpdateSyncBlockerCommand)
1708
+ .build() {
1709
+ }
1898
1710
 
1711
+ class UpdateSyncConfigurationCommand extends smithyClient.Command
1712
+ .classBuilder()
1713
+ .ep(commonParams)
1714
+ .m(function (Command, cs, config, o) {
1715
+ return [
1716
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1717
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1718
+ ];
1719
+ })
1720
+ .s("CodeConnections_20231201", "UpdateSyncConfiguration", {})
1721
+ .n("CodeConnectionsClient", "UpdateSyncConfigurationCommand")
1722
+ .f(void 0, void 0)
1723
+ .ser(se_UpdateSyncConfigurationCommand)
1724
+ .de(de_UpdateSyncConfigurationCommand)
1725
+ .build() {
1726
+ }
1899
1727
 
1900
- var UpdateSyncConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1901
- return [
1902
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1903
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1904
- ];
1905
- }).s("CodeConnections_20231201", "UpdateSyncConfiguration", {}).n("CodeConnectionsClient", "UpdateSyncConfigurationCommand").f(void 0, void 0).ser(se_UpdateSyncConfigurationCommand).de(de_UpdateSyncConfigurationCommand).build() {
1906
- static {
1907
- __name(this, "UpdateSyncConfigurationCommand");
1908
- }
1728
+ const commands = {
1729
+ CreateConnectionCommand,
1730
+ CreateHostCommand,
1731
+ CreateRepositoryLinkCommand,
1732
+ CreateSyncConfigurationCommand,
1733
+ DeleteConnectionCommand,
1734
+ DeleteHostCommand,
1735
+ DeleteRepositoryLinkCommand,
1736
+ DeleteSyncConfigurationCommand,
1737
+ GetConnectionCommand,
1738
+ GetHostCommand,
1739
+ GetRepositoryLinkCommand,
1740
+ GetRepositorySyncStatusCommand,
1741
+ GetResourceSyncStatusCommand,
1742
+ GetSyncBlockerSummaryCommand,
1743
+ GetSyncConfigurationCommand,
1744
+ ListConnectionsCommand,
1745
+ ListHostsCommand,
1746
+ ListRepositoryLinksCommand,
1747
+ ListRepositorySyncDefinitionsCommand,
1748
+ ListSyncConfigurationsCommand,
1749
+ ListTagsForResourceCommand,
1750
+ TagResourceCommand,
1751
+ UntagResourceCommand,
1752
+ UpdateHostCommand,
1753
+ UpdateRepositoryLinkCommand,
1754
+ UpdateSyncBlockerCommand,
1755
+ UpdateSyncConfigurationCommand,
1909
1756
  };
1757
+ class CodeConnections extends CodeConnectionsClient {
1758
+ }
1759
+ smithyClient.createAggregatedClient(commands, CodeConnections);
1910
1760
 
1911
- // src/CodeConnections.ts
1912
- var commands = {
1913
- CreateConnectionCommand,
1914
- CreateHostCommand,
1915
- CreateRepositoryLinkCommand,
1916
- CreateSyncConfigurationCommand,
1917
- DeleteConnectionCommand,
1918
- DeleteHostCommand,
1919
- DeleteRepositoryLinkCommand,
1920
- DeleteSyncConfigurationCommand,
1921
- GetConnectionCommand,
1922
- GetHostCommand,
1923
- GetRepositoryLinkCommand,
1924
- GetRepositorySyncStatusCommand,
1925
- GetResourceSyncStatusCommand,
1926
- GetSyncBlockerSummaryCommand,
1927
- GetSyncConfigurationCommand,
1928
- ListConnectionsCommand,
1929
- ListHostsCommand,
1930
- ListRepositoryLinksCommand,
1931
- ListRepositorySyncDefinitionsCommand,
1932
- ListSyncConfigurationsCommand,
1933
- ListTagsForResourceCommand,
1934
- TagResourceCommand,
1935
- UntagResourceCommand,
1936
- UpdateHostCommand,
1937
- UpdateRepositoryLinkCommand,
1938
- UpdateSyncBlockerCommand,
1939
- UpdateSyncConfigurationCommand
1940
- };
1941
- var CodeConnections = class extends CodeConnectionsClient {
1942
- static {
1943
- __name(this, "CodeConnections");
1944
- }
1945
- };
1946
- (0, import_smithy_client.createAggregatedClient)(commands, CodeConnections);
1947
-
1948
- // src/pagination/ListConnectionsPaginator.ts
1949
-
1950
- var paginateListConnections = (0, import_core.createPaginator)(CodeConnectionsClient, ListConnectionsCommand, "NextToken", "NextToken", "MaxResults");
1951
-
1952
- // src/pagination/ListHostsPaginator.ts
1953
-
1954
- var paginateListHosts = (0, import_core.createPaginator)(CodeConnectionsClient, ListHostsCommand, "NextToken", "NextToken", "MaxResults");
1955
-
1956
- // src/pagination/ListRepositoryLinksPaginator.ts
1761
+ const paginateListConnections = core.createPaginator(CodeConnectionsClient, ListConnectionsCommand, "NextToken", "NextToken", "MaxResults");
1957
1762
 
1958
- var paginateListRepositoryLinks = (0, import_core.createPaginator)(CodeConnectionsClient, ListRepositoryLinksCommand, "NextToken", "NextToken", "MaxResults");
1763
+ const paginateListHosts = core.createPaginator(CodeConnectionsClient, ListHostsCommand, "NextToken", "NextToken", "MaxResults");
1959
1764
 
1960
- // src/pagination/ListSyncConfigurationsPaginator.ts
1765
+ const paginateListRepositoryLinks = core.createPaginator(CodeConnectionsClient, ListRepositoryLinksCommand, "NextToken", "NextToken", "MaxResults");
1961
1766
 
1962
- var paginateListSyncConfigurations = (0, import_core.createPaginator)(CodeConnectionsClient, ListSyncConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
1963
- // Annotate the CommonJS export names for ESM import in node:
1767
+ const paginateListSyncConfigurations = core.createPaginator(CodeConnectionsClient, ListSyncConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
1964
1768
 
1965
- 0 && (module.exports = {
1966
- CodeConnectionsServiceException,
1967
- __Client,
1968
- CodeConnectionsClient,
1969
- CodeConnections,
1970
- $Command,
1971
- CreateConnectionCommand,
1972
- CreateHostCommand,
1973
- CreateRepositoryLinkCommand,
1974
- CreateSyncConfigurationCommand,
1975
- DeleteConnectionCommand,
1976
- DeleteHostCommand,
1977
- DeleteRepositoryLinkCommand,
1978
- DeleteSyncConfigurationCommand,
1979
- GetConnectionCommand,
1980
- GetHostCommand,
1981
- GetRepositoryLinkCommand,
1982
- GetRepositorySyncStatusCommand,
1983
- GetResourceSyncStatusCommand,
1984
- GetSyncBlockerSummaryCommand,
1985
- GetSyncConfigurationCommand,
1986
- ListConnectionsCommand,
1987
- ListHostsCommand,
1988
- ListRepositoryLinksCommand,
1989
- ListRepositorySyncDefinitionsCommand,
1990
- ListSyncConfigurationsCommand,
1991
- ListTagsForResourceCommand,
1992
- TagResourceCommand,
1993
- UntagResourceCommand,
1994
- UpdateHostCommand,
1995
- UpdateRepositoryLinkCommand,
1996
- UpdateSyncBlockerCommand,
1997
- UpdateSyncConfigurationCommand,
1998
- paginateListConnections,
1999
- paginateListHosts,
2000
- paginateListRepositoryLinks,
2001
- paginateListSyncConfigurations,
2002
- AccessDeniedException,
2003
- BlockerStatus,
2004
- BlockerType,
2005
- ProviderType,
2006
- LimitExceededException,
2007
- ResourceNotFoundException,
2008
- ResourceUnavailableException,
2009
- ConcurrentModificationException,
2010
- InternalServerException,
2011
- InvalidInputException,
2012
- ResourceAlreadyExistsException,
2013
- ThrottlingException,
2014
- PublishDeploymentStatus,
2015
- PullRequestComment,
2016
- SyncConfigurationType,
2017
- TriggerResourceUpdateOn,
2018
- SyncConfigurationStillExistsException,
2019
- UnsupportedProviderTypeException,
2020
- ConnectionStatus,
2021
- RepositorySyncStatus,
2022
- ResourceSyncStatus,
2023
- ConflictException,
2024
- UnsupportedOperationException,
2025
- ConditionalCheckFailedException,
2026
- UpdateOutOfSyncException,
2027
- RetryLatestCommitFailedException,
2028
- SyncBlockerDoesNotExistException
1769
+ Object.defineProperty(exports, "$Command", {
1770
+ enumerable: true,
1771
+ get: function () { return smithyClient.Command; }
2029
1772
  });
2030
-
1773
+ Object.defineProperty(exports, "__Client", {
1774
+ enumerable: true,
1775
+ get: function () { return smithyClient.Client; }
1776
+ });
1777
+ exports.AccessDeniedException = AccessDeniedException;
1778
+ exports.BlockerStatus = BlockerStatus;
1779
+ exports.BlockerType = BlockerType;
1780
+ exports.CodeConnections = CodeConnections;
1781
+ exports.CodeConnectionsClient = CodeConnectionsClient;
1782
+ exports.CodeConnectionsServiceException = CodeConnectionsServiceException;
1783
+ exports.ConcurrentModificationException = ConcurrentModificationException;
1784
+ exports.ConditionalCheckFailedException = ConditionalCheckFailedException;
1785
+ exports.ConflictException = ConflictException;
1786
+ exports.ConnectionStatus = ConnectionStatus;
1787
+ exports.CreateConnectionCommand = CreateConnectionCommand;
1788
+ exports.CreateHostCommand = CreateHostCommand;
1789
+ exports.CreateRepositoryLinkCommand = CreateRepositoryLinkCommand;
1790
+ exports.CreateSyncConfigurationCommand = CreateSyncConfigurationCommand;
1791
+ exports.DeleteConnectionCommand = DeleteConnectionCommand;
1792
+ exports.DeleteHostCommand = DeleteHostCommand;
1793
+ exports.DeleteRepositoryLinkCommand = DeleteRepositoryLinkCommand;
1794
+ exports.DeleteSyncConfigurationCommand = DeleteSyncConfigurationCommand;
1795
+ exports.GetConnectionCommand = GetConnectionCommand;
1796
+ exports.GetHostCommand = GetHostCommand;
1797
+ exports.GetRepositoryLinkCommand = GetRepositoryLinkCommand;
1798
+ exports.GetRepositorySyncStatusCommand = GetRepositorySyncStatusCommand;
1799
+ exports.GetResourceSyncStatusCommand = GetResourceSyncStatusCommand;
1800
+ exports.GetSyncBlockerSummaryCommand = GetSyncBlockerSummaryCommand;
1801
+ exports.GetSyncConfigurationCommand = GetSyncConfigurationCommand;
1802
+ exports.InternalServerException = InternalServerException;
1803
+ exports.InvalidInputException = InvalidInputException;
1804
+ exports.LimitExceededException = LimitExceededException;
1805
+ exports.ListConnectionsCommand = ListConnectionsCommand;
1806
+ exports.ListHostsCommand = ListHostsCommand;
1807
+ exports.ListRepositoryLinksCommand = ListRepositoryLinksCommand;
1808
+ exports.ListRepositorySyncDefinitionsCommand = ListRepositorySyncDefinitionsCommand;
1809
+ exports.ListSyncConfigurationsCommand = ListSyncConfigurationsCommand;
1810
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1811
+ exports.ProviderType = ProviderType;
1812
+ exports.PublishDeploymentStatus = PublishDeploymentStatus;
1813
+ exports.PullRequestComment = PullRequestComment;
1814
+ exports.RepositorySyncStatus = RepositorySyncStatus;
1815
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
1816
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1817
+ exports.ResourceSyncStatus = ResourceSyncStatus;
1818
+ exports.ResourceUnavailableException = ResourceUnavailableException;
1819
+ exports.RetryLatestCommitFailedException = RetryLatestCommitFailedException;
1820
+ exports.SyncBlockerDoesNotExistException = SyncBlockerDoesNotExistException;
1821
+ exports.SyncConfigurationStillExistsException = SyncConfigurationStillExistsException;
1822
+ exports.SyncConfigurationType = SyncConfigurationType;
1823
+ exports.TagResourceCommand = TagResourceCommand;
1824
+ exports.ThrottlingException = ThrottlingException;
1825
+ exports.TriggerResourceUpdateOn = TriggerResourceUpdateOn;
1826
+ exports.UnsupportedOperationException = UnsupportedOperationException;
1827
+ exports.UnsupportedProviderTypeException = UnsupportedProviderTypeException;
1828
+ exports.UntagResourceCommand = UntagResourceCommand;
1829
+ exports.UpdateHostCommand = UpdateHostCommand;
1830
+ exports.UpdateOutOfSyncException = UpdateOutOfSyncException;
1831
+ exports.UpdateRepositoryLinkCommand = UpdateRepositoryLinkCommand;
1832
+ exports.UpdateSyncBlockerCommand = UpdateSyncBlockerCommand;
1833
+ exports.UpdateSyncConfigurationCommand = UpdateSyncConfigurationCommand;
1834
+ exports.paginateListConnections = paginateListConnections;
1835
+ exports.paginateListHosts = paginateListHosts;
1836
+ exports.paginateListRepositoryLinks = paginateListRepositoryLinks;
1837
+ exports.paginateListSyncConfigurations = paginateListSyncConfigurations;