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