@aws-sdk/client-appintegrations 3.901.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1502 -1658
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,1708 +1,1552 @@
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
- AppIntegrations: () => AppIntegrations,
26
- AppIntegrationsClient: () => AppIntegrationsClient,
27
- AppIntegrationsServiceException: () => AppIntegrationsServiceException,
28
- ContactHandlingScope: () => ContactHandlingScope,
29
- CreateApplicationCommand: () => CreateApplicationCommand,
30
- CreateDataIntegrationAssociationCommand: () => CreateDataIntegrationAssociationCommand,
31
- CreateDataIntegrationCommand: () => CreateDataIntegrationCommand,
32
- CreateEventIntegrationCommand: () => CreateEventIntegrationCommand,
33
- DeleteApplicationCommand: () => DeleteApplicationCommand,
34
- DeleteDataIntegrationCommand: () => DeleteDataIntegrationCommand,
35
- DeleteEventIntegrationCommand: () => DeleteEventIntegrationCommand,
36
- DuplicateResourceException: () => DuplicateResourceException,
37
- ExecutionMode: () => ExecutionMode,
38
- ExecutionStatus: () => ExecutionStatus,
39
- GetApplicationCommand: () => GetApplicationCommand,
40
- GetDataIntegrationCommand: () => GetDataIntegrationCommand,
41
- GetEventIntegrationCommand: () => GetEventIntegrationCommand,
42
- InternalServiceError: () => InternalServiceError,
43
- InvalidRequestException: () => InvalidRequestException,
44
- ListApplicationAssociationsCommand: () => ListApplicationAssociationsCommand,
45
- ListApplicationsCommand: () => ListApplicationsCommand,
46
- ListDataIntegrationAssociationsCommand: () => ListDataIntegrationAssociationsCommand,
47
- ListDataIntegrationsCommand: () => ListDataIntegrationsCommand,
48
- ListEventIntegrationAssociationsCommand: () => ListEventIntegrationAssociationsCommand,
49
- ListEventIntegrationsCommand: () => ListEventIntegrationsCommand,
50
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
51
- ResourceNotFoundException: () => ResourceNotFoundException,
52
- ResourceQuotaExceededException: () => ResourceQuotaExceededException,
53
- TagResourceCommand: () => TagResourceCommand,
54
- ThrottlingException: () => ThrottlingException,
55
- UnsupportedOperationException: () => UnsupportedOperationException,
56
- UntagResourceCommand: () => UntagResourceCommand,
57
- UpdateApplicationCommand: () => UpdateApplicationCommand,
58
- UpdateDataIntegrationAssociationCommand: () => UpdateDataIntegrationAssociationCommand,
59
- UpdateDataIntegrationCommand: () => UpdateDataIntegrationCommand,
60
- UpdateEventIntegrationCommand: () => UpdateEventIntegrationCommand,
61
- __Client: () => import_smithy_client.Client,
62
- paginateListApplicationAssociations: () => paginateListApplicationAssociations,
63
- paginateListApplications: () => paginateListApplications,
64
- paginateListDataIntegrationAssociations: () => paginateListDataIntegrationAssociations,
65
- paginateListDataIntegrations: () => paginateListDataIntegrations,
66
- paginateListEventIntegrationAssociations: () => paginateListEventIntegrationAssociations,
67
- paginateListEventIntegrations: () => paginateListEventIntegrations
68
- });
69
- module.exports = __toCommonJS(index_exports);
70
-
71
- // src/AppIntegrationsClient.ts
72
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
73
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
74
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
75
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
76
- var import_config_resolver = require("@smithy/config-resolver");
77
- var import_core = require("@smithy/core");
78
- var import_middleware_content_length = require("@smithy/middleware-content-length");
79
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
80
- var import_middleware_retry = require("@smithy/middleware-retry");
81
-
82
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
83
-
84
- // src/endpoint/EndpointParameters.ts
85
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
86
- return Object.assign(options, {
87
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
88
- useFipsEndpoint: options.useFipsEndpoint ?? false,
89
- defaultSigningName: "app-integrations"
90
- });
91
- }, "resolveClientEndpointParameters");
92
- var commonParams = {
93
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
94
- Endpoint: { type: "builtInParams", name: "endpoint" },
95
- Region: { type: "builtInParams", name: "region" },
96
- 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
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "app-integrations",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
97
33
  };
98
34
 
99
- // src/AppIntegrationsClient.ts
100
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
101
73
 
102
- // src/runtimeExtensions.ts
103
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
104
- var import_protocol_http = require("@smithy/protocol-http");
105
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
106
79
 
107
- // src/auth/httpAuthExtensionConfiguration.ts
108
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
109
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
110
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
111
- let _credentials = runtimeConfig.credentials;
112
- return {
113
- setHttpAuthScheme(httpAuthScheme) {
114
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
115
- if (index === -1) {
116
- _httpAuthSchemes.push(httpAuthScheme);
117
- } else {
118
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
119
- }
120
- },
121
- httpAuthSchemes() {
122
- return _httpAuthSchemes;
123
- },
124
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
125
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
126
- },
127
- httpAuthSchemeProvider() {
128
- return _httpAuthSchemeProvider;
129
- },
130
- setCredentials(credentials) {
131
- _credentials = credentials;
132
- },
133
- credentials() {
134
- return _credentials;
80
+ class AppIntegrationsClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultAppIntegrationsHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
135
108
  }
136
- };
137
- }, "getHttpAuthExtensionConfiguration");
138
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
139
- return {
140
- httpAuthSchemes: config.httpAuthSchemes(),
141
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
142
- credentials: config.credentials()
143
- };
144
- }, "resolveHttpAuthRuntimeConfig");
145
-
146
- // src/runtimeExtensions.ts
147
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
148
- const extensionConfiguration = Object.assign(
149
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
150
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
151
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
152
- getHttpAuthExtensionConfiguration(runtimeConfig)
153
- );
154
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
155
- return Object.assign(
156
- runtimeConfig,
157
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
158
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
159
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
160
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
161
- );
162
- }, "resolveRuntimeExtensions");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
163
113
 
164
- // src/AppIntegrationsClient.ts
165
- var AppIntegrationsClient = class extends import_smithy_client.Client {
166
- static {
167
- __name(this, "AppIntegrationsClient");
168
- }
169
- /**
170
- * The resolved configuration of AppIntegrationsClient class. This is resolved and normalized from the {@link AppIntegrationsClientConfig | constructor configuration interface}.
171
- */
172
- config;
173
- constructor(...[configuration]) {
174
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
175
- super(_config_0);
176
- this.initConfig = _config_0;
177
- const _config_1 = resolveClientEndpointParameters(_config_0);
178
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
179
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
180
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
181
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
182
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
183
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
184
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
185
- this.config = _config_8;
186
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
187
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
188
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
189
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
190
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
191
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
192
- this.middlewareStack.use(
193
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
194
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultAppIntegrationsHttpAuthSchemeParametersProvider,
195
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
196
- "aws.auth#sigv4": config.credentials
197
- }), "identityProviderConfigProvider")
198
- })
199
- );
200
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
201
- }
202
- /**
203
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
204
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
205
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
206
- */
207
- destroy() {
208
- super.destroy();
209
- }
114
+ class AppIntegrationsServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, AppIntegrationsServiceException.prototype);
118
+ }
119
+ }
120
+
121
+ class AccessDeniedException extends AppIntegrationsServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ Message;
125
+ constructor(opts) {
126
+ super({
127
+ name: "AccessDeniedException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
132
+ this.Message = opts.Message;
133
+ }
134
+ }
135
+ const ContactHandlingScope = {
136
+ CROSS_CONTACTS: "CROSS_CONTACTS",
137
+ PER_CONTACT: "PER_CONTACT",
210
138
  };
211
-
212
- // src/AppIntegrations.ts
213
-
214
-
215
- // src/commands/CreateApplicationCommand.ts
216
-
217
- var import_middleware_serde = require("@smithy/middleware-serde");
218
-
219
-
220
- // src/protocols/Aws_restJson1.ts
221
- var import_core2 = require("@aws-sdk/core");
222
-
223
-
224
- var import_uuid = require("@smithy/uuid");
225
-
226
- // src/models/AppIntegrationsServiceException.ts
227
-
228
- var AppIntegrationsServiceException = class _AppIntegrationsServiceException extends import_smithy_client.ServiceException {
229
- static {
230
- __name(this, "AppIntegrationsServiceException");
231
- }
232
- /**
233
- * @internal
234
- */
235
- constructor(options) {
236
- super(options);
237
- Object.setPrototypeOf(this, _AppIntegrationsServiceException.prototype);
238
- }
139
+ class DuplicateResourceException extends AppIntegrationsServiceException {
140
+ name = "DuplicateResourceException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "DuplicateResourceException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, DuplicateResourceException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class InternalServiceError extends AppIntegrationsServiceException {
154
+ name = "InternalServiceError";
155
+ $fault = "server";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "InternalServiceError",
160
+ $fault: "server",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, InternalServiceError.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class InvalidRequestException extends AppIntegrationsServiceException {
168
+ name = "InvalidRequestException";
169
+ $fault = "client";
170
+ Message;
171
+ constructor(opts) {
172
+ super({
173
+ name: "InvalidRequestException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
178
+ this.Message = opts.Message;
179
+ }
180
+ }
181
+ class ResourceQuotaExceededException extends AppIntegrationsServiceException {
182
+ name = "ResourceQuotaExceededException";
183
+ $fault = "client";
184
+ Message;
185
+ constructor(opts) {
186
+ super({
187
+ name: "ResourceQuotaExceededException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, ResourceQuotaExceededException.prototype);
192
+ this.Message = opts.Message;
193
+ }
194
+ }
195
+ class ThrottlingException extends AppIntegrationsServiceException {
196
+ name = "ThrottlingException";
197
+ $fault = "client";
198
+ Message;
199
+ constructor(opts) {
200
+ super({
201
+ name: "ThrottlingException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
206
+ this.Message = opts.Message;
207
+ }
208
+ }
209
+ class UnsupportedOperationException extends AppIntegrationsServiceException {
210
+ name = "UnsupportedOperationException";
211
+ $fault = "client";
212
+ Message;
213
+ constructor(opts) {
214
+ super({
215
+ name: "UnsupportedOperationException",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
220
+ this.Message = opts.Message;
221
+ }
222
+ }
223
+ const ExecutionMode = {
224
+ ON_DEMAND: "ON_DEMAND",
225
+ SCHEDULED: "SCHEDULED",
226
+ };
227
+ class ResourceNotFoundException extends AppIntegrationsServiceException {
228
+ name = "ResourceNotFoundException";
229
+ $fault = "client";
230
+ Message;
231
+ constructor(opts) {
232
+ super({
233
+ name: "ResourceNotFoundException",
234
+ $fault: "client",
235
+ ...opts,
236
+ });
237
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
238
+ this.Message = opts.Message;
239
+ }
240
+ }
241
+ const ExecutionStatus = {
242
+ COMPLETED: "COMPLETED",
243
+ FAILED: "FAILED",
244
+ IN_PROGRESS: "IN_PROGRESS",
239
245
  };
240
246
 
241
- // src/models/models_0.ts
242
- var AccessDeniedException = class _AccessDeniedException extends AppIntegrationsServiceException {
243
- static {
244
- __name(this, "AccessDeniedException");
245
- }
246
- name = "AccessDeniedException";
247
- $fault = "client";
248
- Message;
249
- /**
250
- * @internal
251
- */
252
- constructor(opts) {
253
- super({
254
- name: "AccessDeniedException",
255
- $fault: "client",
256
- ...opts
247
+ const se_CreateApplicationCommand = async (input, context) => {
248
+ const b = core.requestBuilder(input, context);
249
+ const headers = {
250
+ "content-type": "application/json",
251
+ };
252
+ b.bp("/applications");
253
+ let body;
254
+ body = JSON.stringify(smithyClient.take(input, {
255
+ ApplicationConfig: (_) => smithyClient._json(_),
256
+ ApplicationSourceConfig: (_) => smithyClient._json(_),
257
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
258
+ Description: [],
259
+ IframeConfig: (_) => smithyClient._json(_),
260
+ InitializationTimeout: [],
261
+ IsService: [],
262
+ Name: [],
263
+ Namespace: [],
264
+ Permissions: (_) => smithyClient._json(_),
265
+ Publications: (_) => smithyClient._json(_),
266
+ Subscriptions: (_) => smithyClient._json(_),
267
+ Tags: (_) => smithyClient._json(_),
268
+ }));
269
+ b.m("POST").h(headers).b(body);
270
+ return b.build();
271
+ };
272
+ const se_CreateDataIntegrationCommand = async (input, context) => {
273
+ const b = core.requestBuilder(input, context);
274
+ const headers = {
275
+ "content-type": "application/json",
276
+ };
277
+ b.bp("/dataIntegrations");
278
+ let body;
279
+ body = JSON.stringify(smithyClient.take(input, {
280
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
281
+ Description: [],
282
+ FileConfiguration: (_) => smithyClient._json(_),
283
+ KmsKey: [],
284
+ Name: [],
285
+ ObjectConfiguration: (_) => smithyClient._json(_),
286
+ ScheduleConfig: (_) => smithyClient._json(_),
287
+ SourceURI: [],
288
+ Tags: (_) => smithyClient._json(_),
289
+ }));
290
+ b.m("POST").h(headers).b(body);
291
+ return b.build();
292
+ };
293
+ const se_CreateDataIntegrationAssociationCommand = async (input, context) => {
294
+ const b = core.requestBuilder(input, context);
295
+ const headers = {
296
+ "content-type": "application/json",
297
+ };
298
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
299
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
300
+ let body;
301
+ body = JSON.stringify(smithyClient.take(input, {
302
+ ClientAssociationMetadata: (_) => smithyClient._json(_),
303
+ ClientId: [],
304
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
305
+ DestinationURI: [],
306
+ ExecutionConfiguration: (_) => smithyClient._json(_),
307
+ ObjectConfiguration: (_) => smithyClient._json(_),
308
+ }));
309
+ b.m("POST").h(headers).b(body);
310
+ return b.build();
311
+ };
312
+ const se_CreateEventIntegrationCommand = async (input, context) => {
313
+ const b = core.requestBuilder(input, context);
314
+ const headers = {
315
+ "content-type": "application/json",
316
+ };
317
+ b.bp("/eventIntegrations");
318
+ let body;
319
+ body = JSON.stringify(smithyClient.take(input, {
320
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
321
+ Description: [],
322
+ EventBridgeBus: [],
323
+ EventFilter: (_) => smithyClient._json(_),
324
+ Name: [],
325
+ Tags: (_) => smithyClient._json(_),
326
+ }));
327
+ b.m("POST").h(headers).b(body);
328
+ return b.build();
329
+ };
330
+ const se_DeleteApplicationCommand = async (input, context) => {
331
+ const b = core.requestBuilder(input, context);
332
+ const headers = {};
333
+ b.bp("/applications/{Arn}");
334
+ b.p("Arn", () => input.Arn, "{Arn}", false);
335
+ let body;
336
+ b.m("DELETE").h(headers).b(body);
337
+ return b.build();
338
+ };
339
+ const se_DeleteDataIntegrationCommand = async (input, context) => {
340
+ const b = core.requestBuilder(input, context);
341
+ const headers = {};
342
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}");
343
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
344
+ let body;
345
+ b.m("DELETE").h(headers).b(body);
346
+ return b.build();
347
+ };
348
+ const se_DeleteEventIntegrationCommand = async (input, context) => {
349
+ const b = core.requestBuilder(input, context);
350
+ const headers = {};
351
+ b.bp("/eventIntegrations/{Name}");
352
+ b.p("Name", () => input.Name, "{Name}", false);
353
+ let body;
354
+ b.m("DELETE").h(headers).b(body);
355
+ return b.build();
356
+ };
357
+ const se_GetApplicationCommand = async (input, context) => {
358
+ const b = core.requestBuilder(input, context);
359
+ const headers = {};
360
+ b.bp("/applications/{Arn}");
361
+ b.p("Arn", () => input.Arn, "{Arn}", false);
362
+ let body;
363
+ b.m("GET").h(headers).b(body);
364
+ return b.build();
365
+ };
366
+ const se_GetDataIntegrationCommand = async (input, context) => {
367
+ const b = core.requestBuilder(input, context);
368
+ const headers = {};
369
+ b.bp("/dataIntegrations/{Identifier}");
370
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
371
+ let body;
372
+ b.m("GET").h(headers).b(body);
373
+ return b.build();
374
+ };
375
+ const se_GetEventIntegrationCommand = async (input, context) => {
376
+ const b = core.requestBuilder(input, context);
377
+ const headers = {};
378
+ b.bp("/eventIntegrations/{Name}");
379
+ b.p("Name", () => input.Name, "{Name}", false);
380
+ let body;
381
+ b.m("GET").h(headers).b(body);
382
+ return b.build();
383
+ };
384
+ const se_ListApplicationAssociationsCommand = async (input, context) => {
385
+ const b = core.requestBuilder(input, context);
386
+ const headers = {};
387
+ b.bp("/applications/{ApplicationId}/associations");
388
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
389
+ const query = smithyClient.map({
390
+ [_nT]: [, input[_NT]],
391
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
257
392
  });
258
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
259
- this.Message = opts.Message;
260
- }
261
- };
262
- var ContactHandlingScope = {
263
- CROSS_CONTACTS: "CROSS_CONTACTS",
264
- PER_CONTACT: "PER_CONTACT"
265
- };
266
- var DuplicateResourceException = class _DuplicateResourceException extends AppIntegrationsServiceException {
267
- static {
268
- __name(this, "DuplicateResourceException");
269
- }
270
- name = "DuplicateResourceException";
271
- $fault = "client";
272
- Message;
273
- /**
274
- * @internal
275
- */
276
- constructor(opts) {
277
- super({
278
- name: "DuplicateResourceException",
279
- $fault: "client",
280
- ...opts
393
+ let body;
394
+ b.m("GET").h(headers).q(query).b(body);
395
+ return b.build();
396
+ };
397
+ const se_ListApplicationsCommand = async (input, context) => {
398
+ const b = core.requestBuilder(input, context);
399
+ const headers = {};
400
+ b.bp("/applications");
401
+ const query = smithyClient.map({
402
+ [_nT]: [, input[_NT]],
403
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
281
404
  });
282
- Object.setPrototypeOf(this, _DuplicateResourceException.prototype);
283
- this.Message = opts.Message;
284
- }
285
- };
286
- var InternalServiceError = class _InternalServiceError extends AppIntegrationsServiceException {
287
- static {
288
- __name(this, "InternalServiceError");
289
- }
290
- name = "InternalServiceError";
291
- $fault = "server";
292
- Message;
293
- /**
294
- * @internal
295
- */
296
- constructor(opts) {
297
- super({
298
- name: "InternalServiceError",
299
- $fault: "server",
300
- ...opts
405
+ let body;
406
+ b.m("GET").h(headers).q(query).b(body);
407
+ return b.build();
408
+ };
409
+ const se_ListDataIntegrationAssociationsCommand = async (input, context) => {
410
+ const b = core.requestBuilder(input, context);
411
+ const headers = {};
412
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
413
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
414
+ const query = smithyClient.map({
415
+ [_nT]: [, input[_NT]],
416
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
417
+ });
418
+ let body;
419
+ b.m("GET").h(headers).q(query).b(body);
420
+ return b.build();
421
+ };
422
+ const se_ListDataIntegrationsCommand = async (input, context) => {
423
+ const b = core.requestBuilder(input, context);
424
+ const headers = {};
425
+ b.bp("/dataIntegrations");
426
+ const query = smithyClient.map({
427
+ [_nT]: [, input[_NT]],
428
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
301
429
  });
302
- Object.setPrototypeOf(this, _InternalServiceError.prototype);
303
- this.Message = opts.Message;
304
- }
305
- };
306
- var InvalidRequestException = class _InvalidRequestException extends AppIntegrationsServiceException {
307
- static {
308
- __name(this, "InvalidRequestException");
309
- }
310
- name = "InvalidRequestException";
311
- $fault = "client";
312
- Message;
313
- /**
314
- * @internal
315
- */
316
- constructor(opts) {
317
- super({
318
- name: "InvalidRequestException",
319
- $fault: "client",
320
- ...opts
430
+ let body;
431
+ b.m("GET").h(headers).q(query).b(body);
432
+ return b.build();
433
+ };
434
+ const se_ListEventIntegrationAssociationsCommand = async (input, context) => {
435
+ const b = core.requestBuilder(input, context);
436
+ const headers = {};
437
+ b.bp("/eventIntegrations/{EventIntegrationName}/associations");
438
+ b.p("EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
439
+ const query = smithyClient.map({
440
+ [_nT]: [, input[_NT]],
441
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
321
442
  });
322
- Object.setPrototypeOf(this, _InvalidRequestException.prototype);
323
- this.Message = opts.Message;
324
- }
325
- };
326
- var ResourceQuotaExceededException = class _ResourceQuotaExceededException extends AppIntegrationsServiceException {
327
- static {
328
- __name(this, "ResourceQuotaExceededException");
329
- }
330
- name = "ResourceQuotaExceededException";
331
- $fault = "client";
332
- Message;
333
- /**
334
- * @internal
335
- */
336
- constructor(opts) {
337
- super({
338
- name: "ResourceQuotaExceededException",
339
- $fault: "client",
340
- ...opts
443
+ let body;
444
+ b.m("GET").h(headers).q(query).b(body);
445
+ return b.build();
446
+ };
447
+ const se_ListEventIntegrationsCommand = async (input, context) => {
448
+ const b = core.requestBuilder(input, context);
449
+ const headers = {};
450
+ b.bp("/eventIntegrations");
451
+ const query = smithyClient.map({
452
+ [_nT]: [, input[_NT]],
453
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
341
454
  });
342
- Object.setPrototypeOf(this, _ResourceQuotaExceededException.prototype);
343
- this.Message = opts.Message;
344
- }
345
- };
346
- var ThrottlingException = class _ThrottlingException extends AppIntegrationsServiceException {
347
- static {
348
- __name(this, "ThrottlingException");
349
- }
350
- name = "ThrottlingException";
351
- $fault = "client";
352
- Message;
353
- /**
354
- * @internal
355
- */
356
- constructor(opts) {
357
- super({
358
- name: "ThrottlingException",
359
- $fault: "client",
360
- ...opts
455
+ let body;
456
+ b.m("GET").h(headers).q(query).b(body);
457
+ return b.build();
458
+ };
459
+ const se_ListTagsForResourceCommand = async (input, context) => {
460
+ const b = core.requestBuilder(input, context);
461
+ const headers = {};
462
+ b.bp("/tags/{resourceArn}");
463
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
464
+ let body;
465
+ b.m("GET").h(headers).b(body);
466
+ return b.build();
467
+ };
468
+ const se_TagResourceCommand = async (input, context) => {
469
+ const b = core.requestBuilder(input, context);
470
+ const headers = {
471
+ "content-type": "application/json",
472
+ };
473
+ b.bp("/tags/{resourceArn}");
474
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
475
+ let body;
476
+ body = JSON.stringify(smithyClient.take(input, {
477
+ tags: (_) => smithyClient._json(_),
478
+ }));
479
+ b.m("POST").h(headers).b(body);
480
+ return b.build();
481
+ };
482
+ const se_UntagResourceCommand = async (input, context) => {
483
+ const b = core.requestBuilder(input, context);
484
+ const headers = {};
485
+ b.bp("/tags/{resourceArn}");
486
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
487
+ const query = smithyClient.map({
488
+ [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
361
489
  });
362
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
363
- this.Message = opts.Message;
364
- }
365
- };
366
- var UnsupportedOperationException = class _UnsupportedOperationException extends AppIntegrationsServiceException {
367
- static {
368
- __name(this, "UnsupportedOperationException");
369
- }
370
- name = "UnsupportedOperationException";
371
- $fault = "client";
372
- Message;
373
- /**
374
- * @internal
375
- */
376
- constructor(opts) {
377
- super({
378
- name: "UnsupportedOperationException",
379
- $fault: "client",
380
- ...opts
490
+ let body;
491
+ b.m("DELETE").h(headers).q(query).b(body);
492
+ return b.build();
493
+ };
494
+ const se_UpdateApplicationCommand = async (input, context) => {
495
+ const b = core.requestBuilder(input, context);
496
+ const headers = {
497
+ "content-type": "application/json",
498
+ };
499
+ b.bp("/applications/{Arn}");
500
+ b.p("Arn", () => input.Arn, "{Arn}", false);
501
+ let body;
502
+ body = JSON.stringify(smithyClient.take(input, {
503
+ ApplicationConfig: (_) => smithyClient._json(_),
504
+ ApplicationSourceConfig: (_) => smithyClient._json(_),
505
+ Description: [],
506
+ IframeConfig: (_) => smithyClient._json(_),
507
+ InitializationTimeout: [],
508
+ IsService: [],
509
+ Name: [],
510
+ Permissions: (_) => smithyClient._json(_),
511
+ Publications: (_) => smithyClient._json(_),
512
+ Subscriptions: (_) => smithyClient._json(_),
513
+ }));
514
+ b.m("PATCH").h(headers).b(body);
515
+ return b.build();
516
+ };
517
+ const se_UpdateDataIntegrationCommand = async (input, context) => {
518
+ const b = core.requestBuilder(input, context);
519
+ const headers = {
520
+ "content-type": "application/json",
521
+ };
522
+ b.bp("/dataIntegrations/{Identifier}");
523
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
524
+ let body;
525
+ body = JSON.stringify(smithyClient.take(input, {
526
+ Description: [],
527
+ Name: [],
528
+ }));
529
+ b.m("PATCH").h(headers).b(body);
530
+ return b.build();
531
+ };
532
+ const se_UpdateDataIntegrationAssociationCommand = async (input, context) => {
533
+ const b = core.requestBuilder(input, context);
534
+ const headers = {
535
+ "content-type": "application/json",
536
+ };
537
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations/{DataIntegrationAssociationIdentifier}");
538
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
539
+ b.p("DataIntegrationAssociationIdentifier", () => input.DataIntegrationAssociationIdentifier, "{DataIntegrationAssociationIdentifier}", false);
540
+ let body;
541
+ body = JSON.stringify(smithyClient.take(input, {
542
+ ExecutionConfiguration: (_) => smithyClient._json(_),
543
+ }));
544
+ b.m("PATCH").h(headers).b(body);
545
+ return b.build();
546
+ };
547
+ const se_UpdateEventIntegrationCommand = async (input, context) => {
548
+ const b = core.requestBuilder(input, context);
549
+ const headers = {
550
+ "content-type": "application/json",
551
+ };
552
+ b.bp("/eventIntegrations/{Name}");
553
+ b.p("Name", () => input.Name, "{Name}", false);
554
+ let body;
555
+ body = JSON.stringify(smithyClient.take(input, {
556
+ Description: [],
557
+ }));
558
+ b.m("PATCH").h(headers).b(body);
559
+ return b.build();
560
+ };
561
+ const de_CreateApplicationCommand = async (output, context) => {
562
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
563
+ return de_CommandError(output, context);
564
+ }
565
+ const contents = smithyClient.map({
566
+ $metadata: deserializeMetadata(output),
381
567
  });
382
- Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
383
- this.Message = opts.Message;
384
- }
385
- };
386
- var ExecutionMode = {
387
- ON_DEMAND: "ON_DEMAND",
388
- SCHEDULED: "SCHEDULED"
389
- };
390
- var ResourceNotFoundException = class _ResourceNotFoundException extends AppIntegrationsServiceException {
391
- static {
392
- __name(this, "ResourceNotFoundException");
393
- }
394
- name = "ResourceNotFoundException";
395
- $fault = "client";
396
- Message;
397
- /**
398
- * @internal
399
- */
400
- constructor(opts) {
401
- super({
402
- name: "ResourceNotFoundException",
403
- $fault: "client",
404
- ...opts
568
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
569
+ const doc = smithyClient.take(data, {
570
+ Arn: smithyClient.expectString,
571
+ Id: smithyClient.expectString,
405
572
  });
406
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
407
- this.Message = opts.Message;
408
- }
573
+ Object.assign(contents, doc);
574
+ return contents;
409
575
  };
410
- var ExecutionStatus = {
411
- COMPLETED: "COMPLETED",
412
- FAILED: "FAILED",
413
- IN_PROGRESS: "IN_PROGRESS"
576
+ const de_CreateDataIntegrationCommand = async (output, context) => {
577
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
578
+ return de_CommandError(output, context);
579
+ }
580
+ const contents = smithyClient.map({
581
+ $metadata: deserializeMetadata(output),
582
+ });
583
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
584
+ const doc = smithyClient.take(data, {
585
+ Arn: smithyClient.expectString,
586
+ ClientToken: smithyClient.expectString,
587
+ Description: smithyClient.expectString,
588
+ FileConfiguration: smithyClient._json,
589
+ Id: smithyClient.expectString,
590
+ KmsKey: smithyClient.expectString,
591
+ Name: smithyClient.expectString,
592
+ ObjectConfiguration: smithyClient._json,
593
+ ScheduleConfiguration: smithyClient._json,
594
+ SourceURI: smithyClient.expectString,
595
+ Tags: smithyClient._json,
596
+ });
597
+ Object.assign(contents, doc);
598
+ return contents;
414
599
  };
415
-
416
- // src/protocols/Aws_restJson1.ts
417
- var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
418
- const b = (0, import_core.requestBuilder)(input, context);
419
- const headers = {
420
- "content-type": "application/json"
421
- };
422
- b.bp("/applications");
423
- let body;
424
- body = JSON.stringify(
425
- (0, import_smithy_client.take)(input, {
426
- ApplicationConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationConfig"),
427
- ApplicationSourceConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationSourceConfig"),
428
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
429
- Description: [],
430
- IframeConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "IframeConfig"),
431
- InitializationTimeout: [],
432
- IsService: [],
433
- Name: [],
434
- Namespace: [],
435
- Permissions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Permissions"),
436
- Publications: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Publications"),
437
- Subscriptions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Subscriptions"),
438
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
439
- })
440
- );
441
- b.m("POST").h(headers).b(body);
442
- return b.build();
443
- }, "se_CreateApplicationCommand");
444
- var se_CreateDataIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
445
- const b = (0, import_core.requestBuilder)(input, context);
446
- const headers = {
447
- "content-type": "application/json"
448
- };
449
- b.bp("/dataIntegrations");
450
- let body;
451
- body = JSON.stringify(
452
- (0, import_smithy_client.take)(input, {
453
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
454
- Description: [],
455
- FileConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FileConfiguration"),
456
- KmsKey: [],
457
- Name: [],
458
- ObjectConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ObjectConfiguration"),
459
- ScheduleConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ScheduleConfig"),
460
- SourceURI: [],
461
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
462
- })
463
- );
464
- b.m("POST").h(headers).b(body);
465
- return b.build();
466
- }, "se_CreateDataIntegrationCommand");
467
- var se_CreateDataIntegrationAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
468
- const b = (0, import_core.requestBuilder)(input, context);
469
- const headers = {
470
- "content-type": "application/json"
471
- };
472
- b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
473
- b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
474
- let body;
475
- body = JSON.stringify(
476
- (0, import_smithy_client.take)(input, {
477
- ClientAssociationMetadata: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ClientAssociationMetadata"),
478
- ClientId: [],
479
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
480
- DestinationURI: [],
481
- ExecutionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ExecutionConfiguration"),
482
- ObjectConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ObjectConfiguration")
483
- })
484
- );
485
- b.m("POST").h(headers).b(body);
486
- return b.build();
487
- }, "se_CreateDataIntegrationAssociationCommand");
488
- var se_CreateEventIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
489
- const b = (0, import_core.requestBuilder)(input, context);
490
- const headers = {
491
- "content-type": "application/json"
492
- };
493
- b.bp("/eventIntegrations");
494
- let body;
495
- body = JSON.stringify(
496
- (0, import_smithy_client.take)(input, {
497
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
498
- Description: [],
499
- EventBridgeBus: [],
500
- EventFilter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "EventFilter"),
501
- Name: [],
502
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
503
- })
504
- );
505
- b.m("POST").h(headers).b(body);
506
- return b.build();
507
- }, "se_CreateEventIntegrationCommand");
508
- var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
509
- const b = (0, import_core.requestBuilder)(input, context);
510
- const headers = {};
511
- b.bp("/applications/{Arn}");
512
- b.p("Arn", () => input.Arn, "{Arn}", false);
513
- let body;
514
- b.m("DELETE").h(headers).b(body);
515
- return b.build();
516
- }, "se_DeleteApplicationCommand");
517
- var se_DeleteDataIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
518
- const b = (0, import_core.requestBuilder)(input, context);
519
- const headers = {};
520
- b.bp("/dataIntegrations/{DataIntegrationIdentifier}");
521
- b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
522
- let body;
523
- b.m("DELETE").h(headers).b(body);
524
- return b.build();
525
- }, "se_DeleteDataIntegrationCommand");
526
- var se_DeleteEventIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
527
- const b = (0, import_core.requestBuilder)(input, context);
528
- const headers = {};
529
- b.bp("/eventIntegrations/{Name}");
530
- b.p("Name", () => input.Name, "{Name}", false);
531
- let body;
532
- b.m("DELETE").h(headers).b(body);
533
- return b.build();
534
- }, "se_DeleteEventIntegrationCommand");
535
- var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
536
- const b = (0, import_core.requestBuilder)(input, context);
537
- const headers = {};
538
- b.bp("/applications/{Arn}");
539
- b.p("Arn", () => input.Arn, "{Arn}", false);
540
- let body;
541
- b.m("GET").h(headers).b(body);
542
- return b.build();
543
- }, "se_GetApplicationCommand");
544
- var se_GetDataIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
545
- const b = (0, import_core.requestBuilder)(input, context);
546
- const headers = {};
547
- b.bp("/dataIntegrations/{Identifier}");
548
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
549
- let body;
550
- b.m("GET").h(headers).b(body);
551
- return b.build();
552
- }, "se_GetDataIntegrationCommand");
553
- var se_GetEventIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
554
- const b = (0, import_core.requestBuilder)(input, context);
555
- const headers = {};
556
- b.bp("/eventIntegrations/{Name}");
557
- b.p("Name", () => input.Name, "{Name}", false);
558
- let body;
559
- b.m("GET").h(headers).b(body);
560
- return b.build();
561
- }, "se_GetEventIntegrationCommand");
562
- var se_ListApplicationAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
563
- const b = (0, import_core.requestBuilder)(input, context);
564
- const headers = {};
565
- b.bp("/applications/{ApplicationId}/associations");
566
- b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
567
- const query = (0, import_smithy_client.map)({
568
- [_nT]: [, input[_NT]],
569
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
570
- });
571
- let body;
572
- b.m("GET").h(headers).q(query).b(body);
573
- return b.build();
574
- }, "se_ListApplicationAssociationsCommand");
575
- var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
576
- const b = (0, import_core.requestBuilder)(input, context);
577
- const headers = {};
578
- b.bp("/applications");
579
- const query = (0, import_smithy_client.map)({
580
- [_nT]: [, input[_NT]],
581
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
582
- });
583
- let body;
584
- b.m("GET").h(headers).q(query).b(body);
585
- return b.build();
586
- }, "se_ListApplicationsCommand");
587
- var se_ListDataIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
588
- const b = (0, import_core.requestBuilder)(input, context);
589
- const headers = {};
590
- b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
591
- b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
592
- const query = (0, import_smithy_client.map)({
593
- [_nT]: [, input[_NT]],
594
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
595
- });
596
- let body;
597
- b.m("GET").h(headers).q(query).b(body);
598
- return b.build();
599
- }, "se_ListDataIntegrationAssociationsCommand");
600
- var se_ListDataIntegrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
601
- const b = (0, import_core.requestBuilder)(input, context);
602
- const headers = {};
603
- b.bp("/dataIntegrations");
604
- const query = (0, import_smithy_client.map)({
605
- [_nT]: [, input[_NT]],
606
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
607
- });
608
- let body;
609
- b.m("GET").h(headers).q(query).b(body);
610
- return b.build();
611
- }, "se_ListDataIntegrationsCommand");
612
- var se_ListEventIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
613
- const b = (0, import_core.requestBuilder)(input, context);
614
- const headers = {};
615
- b.bp("/eventIntegrations/{EventIntegrationName}/associations");
616
- b.p("EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
617
- const query = (0, import_smithy_client.map)({
618
- [_nT]: [, input[_NT]],
619
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
620
- });
621
- let body;
622
- b.m("GET").h(headers).q(query).b(body);
623
- return b.build();
624
- }, "se_ListEventIntegrationAssociationsCommand");
625
- var se_ListEventIntegrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
626
- const b = (0, import_core.requestBuilder)(input, context);
627
- const headers = {};
628
- b.bp("/eventIntegrations");
629
- const query = (0, import_smithy_client.map)({
630
- [_nT]: [, input[_NT]],
631
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
632
- });
633
- let body;
634
- b.m("GET").h(headers).q(query).b(body);
635
- return b.build();
636
- }, "se_ListEventIntegrationsCommand");
637
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
638
- const b = (0, import_core.requestBuilder)(input, context);
639
- const headers = {};
640
- b.bp("/tags/{resourceArn}");
641
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
642
- let body;
643
- b.m("GET").h(headers).b(body);
644
- return b.build();
645
- }, "se_ListTagsForResourceCommand");
646
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
647
- const b = (0, import_core.requestBuilder)(input, context);
648
- const headers = {
649
- "content-type": "application/json"
650
- };
651
- b.bp("/tags/{resourceArn}");
652
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
653
- let body;
654
- body = JSON.stringify(
655
- (0, import_smithy_client.take)(input, {
656
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
657
- })
658
- );
659
- b.m("POST").h(headers).b(body);
660
- return b.build();
661
- }, "se_TagResourceCommand");
662
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
663
- const b = (0, import_core.requestBuilder)(input, context);
664
- const headers = {};
665
- b.bp("/tags/{resourceArn}");
666
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
667
- const query = (0, import_smithy_client.map)({
668
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
669
- });
670
- let body;
671
- b.m("DELETE").h(headers).q(query).b(body);
672
- return b.build();
673
- }, "se_UntagResourceCommand");
674
- var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
675
- const b = (0, import_core.requestBuilder)(input, context);
676
- const headers = {
677
- "content-type": "application/json"
678
- };
679
- b.bp("/applications/{Arn}");
680
- b.p("Arn", () => input.Arn, "{Arn}", false);
681
- let body;
682
- body = JSON.stringify(
683
- (0, import_smithy_client.take)(input, {
684
- ApplicationConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationConfig"),
685
- ApplicationSourceConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApplicationSourceConfig"),
686
- Description: [],
687
- IframeConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "IframeConfig"),
688
- InitializationTimeout: [],
689
- IsService: [],
690
- Name: [],
691
- Permissions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Permissions"),
692
- Publications: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Publications"),
693
- Subscriptions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Subscriptions")
694
- })
695
- );
696
- b.m("PATCH").h(headers).b(body);
697
- return b.build();
698
- }, "se_UpdateApplicationCommand");
699
- var se_UpdateDataIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
700
- const b = (0, import_core.requestBuilder)(input, context);
701
- const headers = {
702
- "content-type": "application/json"
703
- };
704
- b.bp("/dataIntegrations/{Identifier}");
705
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
706
- let body;
707
- body = JSON.stringify(
708
- (0, import_smithy_client.take)(input, {
709
- Description: [],
710
- Name: []
711
- })
712
- );
713
- b.m("PATCH").h(headers).b(body);
714
- return b.build();
715
- }, "se_UpdateDataIntegrationCommand");
716
- var se_UpdateDataIntegrationAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
717
- const b = (0, import_core.requestBuilder)(input, context);
718
- const headers = {
719
- "content-type": "application/json"
720
- };
721
- b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations/{DataIntegrationAssociationIdentifier}");
722
- b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
723
- b.p(
724
- "DataIntegrationAssociationIdentifier",
725
- () => input.DataIntegrationAssociationIdentifier,
726
- "{DataIntegrationAssociationIdentifier}",
727
- false
728
- );
729
- let body;
730
- body = JSON.stringify(
731
- (0, import_smithy_client.take)(input, {
732
- ExecutionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ExecutionConfiguration")
733
- })
734
- );
735
- b.m("PATCH").h(headers).b(body);
736
- return b.build();
737
- }, "se_UpdateDataIntegrationAssociationCommand");
738
- var se_UpdateEventIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
739
- const b = (0, import_core.requestBuilder)(input, context);
740
- const headers = {
741
- "content-type": "application/json"
742
- };
743
- b.bp("/eventIntegrations/{Name}");
744
- b.p("Name", () => input.Name, "{Name}", false);
745
- let body;
746
- body = JSON.stringify(
747
- (0, import_smithy_client.take)(input, {
748
- Description: []
749
- })
750
- );
751
- b.m("PATCH").h(headers).b(body);
752
- return b.build();
753
- }, "se_UpdateEventIntegrationCommand");
754
- var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
755
- if (output.statusCode !== 200 && output.statusCode >= 300) {
756
- return de_CommandError(output, context);
757
- }
758
- const contents = (0, import_smithy_client.map)({
759
- $metadata: deserializeMetadata(output)
760
- });
761
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
762
- const doc = (0, import_smithy_client.take)(data, {
763
- Arn: import_smithy_client.expectString,
764
- Id: import_smithy_client.expectString
765
- });
766
- Object.assign(contents, doc);
767
- return contents;
768
- }, "de_CreateApplicationCommand");
769
- var de_CreateDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
770
- if (output.statusCode !== 200 && output.statusCode >= 300) {
771
- return de_CommandError(output, context);
772
- }
773
- const contents = (0, import_smithy_client.map)({
774
- $metadata: deserializeMetadata(output)
775
- });
776
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
777
- const doc = (0, import_smithy_client.take)(data, {
778
- Arn: import_smithy_client.expectString,
779
- ClientToken: import_smithy_client.expectString,
780
- Description: import_smithy_client.expectString,
781
- FileConfiguration: import_smithy_client._json,
782
- Id: import_smithy_client.expectString,
783
- KmsKey: import_smithy_client.expectString,
784
- Name: import_smithy_client.expectString,
785
- ObjectConfiguration: import_smithy_client._json,
786
- ScheduleConfiguration: import_smithy_client._json,
787
- SourceURI: import_smithy_client.expectString,
788
- Tags: import_smithy_client._json
789
- });
790
- Object.assign(contents, doc);
791
- return contents;
792
- }, "de_CreateDataIntegrationCommand");
793
- var de_CreateDataIntegrationAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
794
- if (output.statusCode !== 200 && output.statusCode >= 300) {
795
- return de_CommandError(output, context);
796
- }
797
- const contents = (0, import_smithy_client.map)({
798
- $metadata: deserializeMetadata(output)
799
- });
800
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
801
- const doc = (0, import_smithy_client.take)(data, {
802
- DataIntegrationArn: import_smithy_client.expectString,
803
- DataIntegrationAssociationId: import_smithy_client.expectString
804
- });
805
- Object.assign(contents, doc);
806
- return contents;
807
- }, "de_CreateDataIntegrationAssociationCommand");
808
- var de_CreateEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
809
- if (output.statusCode !== 200 && output.statusCode >= 300) {
810
- return de_CommandError(output, context);
811
- }
812
- const contents = (0, import_smithy_client.map)({
813
- $metadata: deserializeMetadata(output)
814
- });
815
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
816
- const doc = (0, import_smithy_client.take)(data, {
817
- EventIntegrationArn: import_smithy_client.expectString
818
- });
819
- Object.assign(contents, doc);
820
- return contents;
821
- }, "de_CreateEventIntegrationCommand");
822
- var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
823
- if (output.statusCode !== 200 && output.statusCode >= 300) {
824
- return de_CommandError(output, context);
825
- }
826
- const contents = (0, import_smithy_client.map)({
827
- $metadata: deserializeMetadata(output)
828
- });
829
- await (0, import_smithy_client.collectBody)(output.body, context);
830
- return contents;
831
- }, "de_DeleteApplicationCommand");
832
- var de_DeleteDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
833
- if (output.statusCode !== 200 && output.statusCode >= 300) {
834
- return de_CommandError(output, context);
835
- }
836
- const contents = (0, import_smithy_client.map)({
837
- $metadata: deserializeMetadata(output)
838
- });
839
- await (0, import_smithy_client.collectBody)(output.body, context);
840
- return contents;
841
- }, "de_DeleteDataIntegrationCommand");
842
- var de_DeleteEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
843
- if (output.statusCode !== 200 && output.statusCode >= 300) {
844
- return de_CommandError(output, context);
845
- }
846
- const contents = (0, import_smithy_client.map)({
847
- $metadata: deserializeMetadata(output)
848
- });
849
- await (0, import_smithy_client.collectBody)(output.body, context);
850
- return contents;
851
- }, "de_DeleteEventIntegrationCommand");
852
- var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
853
- if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return de_CommandError(output, context);
855
- }
856
- const contents = (0, import_smithy_client.map)({
857
- $metadata: deserializeMetadata(output)
858
- });
859
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
860
- const doc = (0, import_smithy_client.take)(data, {
861
- ApplicationConfig: import_smithy_client._json,
862
- ApplicationSourceConfig: import_smithy_client._json,
863
- Arn: import_smithy_client.expectString,
864
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
865
- Description: import_smithy_client.expectString,
866
- Id: import_smithy_client.expectString,
867
- IframeConfig: import_smithy_client._json,
868
- InitializationTimeout: import_smithy_client.expectInt32,
869
- IsService: import_smithy_client.expectBoolean,
870
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
871
- Name: import_smithy_client.expectString,
872
- Namespace: import_smithy_client.expectString,
873
- Permissions: import_smithy_client._json,
874
- Publications: import_smithy_client._json,
875
- Subscriptions: import_smithy_client._json,
876
- Tags: import_smithy_client._json
877
- });
878
- Object.assign(contents, doc);
879
- return contents;
880
- }, "de_GetApplicationCommand");
881
- var de_GetDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
882
- if (output.statusCode !== 200 && output.statusCode >= 300) {
883
- return de_CommandError(output, context);
884
- }
885
- const contents = (0, import_smithy_client.map)({
886
- $metadata: deserializeMetadata(output)
887
- });
888
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
889
- const doc = (0, import_smithy_client.take)(data, {
890
- Arn: import_smithy_client.expectString,
891
- Description: import_smithy_client.expectString,
892
- FileConfiguration: import_smithy_client._json,
893
- Id: import_smithy_client.expectString,
894
- KmsKey: import_smithy_client.expectString,
895
- Name: import_smithy_client.expectString,
896
- ObjectConfiguration: import_smithy_client._json,
897
- ScheduleConfiguration: import_smithy_client._json,
898
- SourceURI: import_smithy_client.expectString,
899
- Tags: import_smithy_client._json
900
- });
901
- Object.assign(contents, doc);
902
- return contents;
903
- }, "de_GetDataIntegrationCommand");
904
- var de_GetEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
905
- if (output.statusCode !== 200 && output.statusCode >= 300) {
906
- return de_CommandError(output, context);
907
- }
908
- const contents = (0, import_smithy_client.map)({
909
- $metadata: deserializeMetadata(output)
910
- });
911
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
912
- const doc = (0, import_smithy_client.take)(data, {
913
- Description: import_smithy_client.expectString,
914
- EventBridgeBus: import_smithy_client.expectString,
915
- EventFilter: import_smithy_client._json,
916
- EventIntegrationArn: import_smithy_client.expectString,
917
- Name: import_smithy_client.expectString,
918
- Tags: import_smithy_client._json
919
- });
920
- Object.assign(contents, doc);
921
- return contents;
922
- }, "de_GetEventIntegrationCommand");
923
- var de_ListApplicationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
924
- if (output.statusCode !== 200 && output.statusCode >= 300) {
925
- return de_CommandError(output, context);
926
- }
927
- const contents = (0, import_smithy_client.map)({
928
- $metadata: deserializeMetadata(output)
929
- });
930
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
931
- const doc = (0, import_smithy_client.take)(data, {
932
- ApplicationAssociations: import_smithy_client._json,
933
- NextToken: import_smithy_client.expectString
934
- });
935
- Object.assign(contents, doc);
936
- return contents;
937
- }, "de_ListApplicationAssociationsCommand");
938
- var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
939
- if (output.statusCode !== 200 && output.statusCode >= 300) {
940
- return de_CommandError(output, context);
941
- }
942
- const contents = (0, import_smithy_client.map)({
943
- $metadata: deserializeMetadata(output)
944
- });
945
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
946
- const doc = (0, import_smithy_client.take)(data, {
947
- Applications: /* @__PURE__ */ __name((_) => de_ApplicationsList(_, context), "Applications"),
948
- NextToken: import_smithy_client.expectString
949
- });
950
- Object.assign(contents, doc);
951
- return contents;
952
- }, "de_ListApplicationsCommand");
953
- var de_ListDataIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
954
- if (output.statusCode !== 200 && output.statusCode >= 300) {
955
- return de_CommandError(output, context);
956
- }
957
- const contents = (0, import_smithy_client.map)({
958
- $metadata: deserializeMetadata(output)
959
- });
960
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
961
- const doc = (0, import_smithy_client.take)(data, {
962
- DataIntegrationAssociations: import_smithy_client._json,
963
- NextToken: import_smithy_client.expectString
964
- });
965
- Object.assign(contents, doc);
966
- return contents;
967
- }, "de_ListDataIntegrationAssociationsCommand");
968
- var de_ListDataIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
969
- if (output.statusCode !== 200 && output.statusCode >= 300) {
970
- return de_CommandError(output, context);
971
- }
972
- const contents = (0, import_smithy_client.map)({
973
- $metadata: deserializeMetadata(output)
974
- });
975
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
976
- const doc = (0, import_smithy_client.take)(data, {
977
- DataIntegrations: import_smithy_client._json,
978
- NextToken: import_smithy_client.expectString
979
- });
980
- Object.assign(contents, doc);
981
- return contents;
982
- }, "de_ListDataIntegrationsCommand");
983
- var de_ListEventIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
984
- if (output.statusCode !== 200 && output.statusCode >= 300) {
985
- return de_CommandError(output, context);
986
- }
987
- const contents = (0, import_smithy_client.map)({
988
- $metadata: deserializeMetadata(output)
989
- });
990
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
991
- const doc = (0, import_smithy_client.take)(data, {
992
- EventIntegrationAssociations: import_smithy_client._json,
993
- NextToken: import_smithy_client.expectString
994
- });
995
- Object.assign(contents, doc);
996
- return contents;
997
- }, "de_ListEventIntegrationAssociationsCommand");
998
- var de_ListEventIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
999
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1000
- return de_CommandError(output, context);
1001
- }
1002
- const contents = (0, import_smithy_client.map)({
1003
- $metadata: deserializeMetadata(output)
1004
- });
1005
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1006
- const doc = (0, import_smithy_client.take)(data, {
1007
- EventIntegrations: import_smithy_client._json,
1008
- NextToken: import_smithy_client.expectString
1009
- });
1010
- Object.assign(contents, doc);
1011
- return contents;
1012
- }, "de_ListEventIntegrationsCommand");
1013
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1015
- return de_CommandError(output, context);
1016
- }
1017
- const contents = (0, import_smithy_client.map)({
1018
- $metadata: deserializeMetadata(output)
1019
- });
1020
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1021
- const doc = (0, import_smithy_client.take)(data, {
1022
- tags: import_smithy_client._json
1023
- });
1024
- Object.assign(contents, doc);
1025
- return contents;
1026
- }, "de_ListTagsForResourceCommand");
1027
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1028
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1029
- return de_CommandError(output, context);
1030
- }
1031
- const contents = (0, import_smithy_client.map)({
1032
- $metadata: deserializeMetadata(output)
1033
- });
1034
- await (0, import_smithy_client.collectBody)(output.body, context);
1035
- return contents;
1036
- }, "de_TagResourceCommand");
1037
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1038
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1039
- return de_CommandError(output, context);
1040
- }
1041
- const contents = (0, import_smithy_client.map)({
1042
- $metadata: deserializeMetadata(output)
1043
- });
1044
- await (0, import_smithy_client.collectBody)(output.body, context);
1045
- return contents;
1046
- }, "de_UntagResourceCommand");
1047
- var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1048
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1049
- return de_CommandError(output, context);
1050
- }
1051
- const contents = (0, import_smithy_client.map)({
1052
- $metadata: deserializeMetadata(output)
1053
- });
1054
- await (0, import_smithy_client.collectBody)(output.body, context);
1055
- return contents;
1056
- }, "de_UpdateApplicationCommand");
1057
- var de_UpdateDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1058
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1059
- return de_CommandError(output, context);
1060
- }
1061
- const contents = (0, import_smithy_client.map)({
1062
- $metadata: deserializeMetadata(output)
1063
- });
1064
- await (0, import_smithy_client.collectBody)(output.body, context);
1065
- return contents;
1066
- }, "de_UpdateDataIntegrationCommand");
1067
- var de_UpdateDataIntegrationAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
1068
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1069
- return de_CommandError(output, context);
1070
- }
1071
- const contents = (0, import_smithy_client.map)({
1072
- $metadata: deserializeMetadata(output)
1073
- });
1074
- await (0, import_smithy_client.collectBody)(output.body, context);
1075
- return contents;
1076
- }, "de_UpdateDataIntegrationAssociationCommand");
1077
- var de_UpdateEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1078
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1079
- return de_CommandError(output, context);
1080
- }
1081
- const contents = (0, import_smithy_client.map)({
1082
- $metadata: deserializeMetadata(output)
1083
- });
1084
- await (0, import_smithy_client.collectBody)(output.body, context);
1085
- return contents;
1086
- }, "de_UpdateEventIntegrationCommand");
1087
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1088
- const parsedOutput = {
1089
- ...output,
1090
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1091
- };
1092
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1093
- switch (errorCode) {
1094
- case "AccessDeniedException":
1095
- case "com.amazonaws.appintegrations#AccessDeniedException":
1096
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1097
- case "DuplicateResourceException":
1098
- case "com.amazonaws.appintegrations#DuplicateResourceException":
1099
- throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
1100
- case "InternalServiceError":
1101
- case "com.amazonaws.appintegrations#InternalServiceError":
1102
- throw await de_InternalServiceErrorRes(parsedOutput, context);
1103
- case "InvalidRequestException":
1104
- case "com.amazonaws.appintegrations#InvalidRequestException":
1105
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1106
- case "ResourceQuotaExceededException":
1107
- case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
1108
- throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
1109
- case "ThrottlingException":
1110
- case "com.amazonaws.appintegrations#ThrottlingException":
1111
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1112
- case "UnsupportedOperationException":
1113
- case "com.amazonaws.appintegrations#UnsupportedOperationException":
1114
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1115
- case "ResourceNotFoundException":
1116
- case "com.amazonaws.appintegrations#ResourceNotFoundException":
1117
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1118
- default:
1119
- const parsedBody = parsedOutput.body;
1120
- return throwDefaultError({
1121
- output,
1122
- parsedBody,
1123
- errorCode
1124
- });
1125
- }
1126
- }, "de_CommandError");
1127
- var throwDefaultError = (0, import_smithy_client.withBaseException)(AppIntegrationsServiceException);
1128
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1129
- const contents = (0, import_smithy_client.map)({});
1130
- const data = parsedOutput.body;
1131
- const doc = (0, import_smithy_client.take)(data, {
1132
- Message: import_smithy_client.expectString
1133
- });
1134
- Object.assign(contents, doc);
1135
- const exception = new AccessDeniedException({
1136
- $metadata: deserializeMetadata(parsedOutput),
1137
- ...contents
1138
- });
1139
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1140
- }, "de_AccessDeniedExceptionRes");
1141
- var de_DuplicateResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1142
- const contents = (0, import_smithy_client.map)({});
1143
- const data = parsedOutput.body;
1144
- const doc = (0, import_smithy_client.take)(data, {
1145
- Message: import_smithy_client.expectString
1146
- });
1147
- Object.assign(contents, doc);
1148
- const exception = new DuplicateResourceException({
1149
- $metadata: deserializeMetadata(parsedOutput),
1150
- ...contents
1151
- });
1152
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1153
- }, "de_DuplicateResourceExceptionRes");
1154
- var de_InternalServiceErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1155
- const contents = (0, import_smithy_client.map)({});
1156
- const data = parsedOutput.body;
1157
- const doc = (0, import_smithy_client.take)(data, {
1158
- Message: import_smithy_client.expectString
1159
- });
1160
- Object.assign(contents, doc);
1161
- const exception = new InternalServiceError({
1162
- $metadata: deserializeMetadata(parsedOutput),
1163
- ...contents
1164
- });
1165
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1166
- }, "de_InternalServiceErrorRes");
1167
- var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1168
- const contents = (0, import_smithy_client.map)({});
1169
- const data = parsedOutput.body;
1170
- const doc = (0, import_smithy_client.take)(data, {
1171
- Message: import_smithy_client.expectString
1172
- });
1173
- Object.assign(contents, doc);
1174
- const exception = new InvalidRequestException({
1175
- $metadata: deserializeMetadata(parsedOutput),
1176
- ...contents
1177
- });
1178
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1179
- }, "de_InvalidRequestExceptionRes");
1180
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1181
- const contents = (0, import_smithy_client.map)({});
1182
- const data = parsedOutput.body;
1183
- const doc = (0, import_smithy_client.take)(data, {
1184
- Message: import_smithy_client.expectString
1185
- });
1186
- Object.assign(contents, doc);
1187
- const exception = new ResourceNotFoundException({
1188
- $metadata: deserializeMetadata(parsedOutput),
1189
- ...contents
1190
- });
1191
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1192
- }, "de_ResourceNotFoundExceptionRes");
1193
- var de_ResourceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1194
- const contents = (0, import_smithy_client.map)({});
1195
- const data = parsedOutput.body;
1196
- const doc = (0, import_smithy_client.take)(data, {
1197
- Message: import_smithy_client.expectString
1198
- });
1199
- Object.assign(contents, doc);
1200
- const exception = new ResourceQuotaExceededException({
1201
- $metadata: deserializeMetadata(parsedOutput),
1202
- ...contents
1203
- });
1204
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1205
- }, "de_ResourceQuotaExceededExceptionRes");
1206
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1207
- const contents = (0, import_smithy_client.map)({});
1208
- const data = parsedOutput.body;
1209
- const doc = (0, import_smithy_client.take)(data, {
1210
- Message: import_smithy_client.expectString
1211
- });
1212
- Object.assign(contents, doc);
1213
- const exception = new ThrottlingException({
1214
- $metadata: deserializeMetadata(parsedOutput),
1215
- ...contents
1216
- });
1217
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1218
- }, "de_ThrottlingExceptionRes");
1219
- var de_UnsupportedOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1220
- const contents = (0, import_smithy_client.map)({});
1221
- const data = parsedOutput.body;
1222
- const doc = (0, import_smithy_client.take)(data, {
1223
- Message: import_smithy_client.expectString
1224
- });
1225
- Object.assign(contents, doc);
1226
- const exception = new UnsupportedOperationException({
1227
- $metadata: deserializeMetadata(parsedOutput),
1228
- ...contents
1229
- });
1230
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1231
- }, "de_UnsupportedOperationExceptionRes");
1232
- var de_ApplicationsList = /* @__PURE__ */ __name((output, context) => {
1233
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1234
- return de_ApplicationSummary(entry, context);
1235
- });
1236
- return retVal;
1237
- }, "de_ApplicationsList");
1238
- var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
1239
- return (0, import_smithy_client.take)(output, {
1240
- Arn: import_smithy_client.expectString,
1241
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1242
- Id: import_smithy_client.expectString,
1243
- IsService: import_smithy_client.expectBoolean,
1244
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1245
- Name: import_smithy_client.expectString,
1246
- Namespace: import_smithy_client.expectString
1247
- });
1248
- }, "de_ApplicationSummary");
1249
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1250
- httpStatusCode: output.statusCode,
1251
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1252
- extendedRequestId: output.headers["x-amz-id-2"],
1253
- cfId: output.headers["x-amz-cf-id"]
1254
- }), "deserializeMetadata");
1255
- var _MR = "MaxResults";
1256
- var _NT = "NextToken";
1257
- var _mR = "maxResults";
1258
- var _nT = "nextToken";
1259
- var _tK = "tagKeys";
1260
-
1261
- // src/commands/CreateApplicationCommand.ts
1262
- var CreateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1263
- return [
1264
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1265
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1266
- ];
1267
- }).s("AmazonAppIntegrationService", "CreateApplication", {}).n("AppIntegrationsClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
1268
- static {
1269
- __name(this, "CreateApplicationCommand");
1270
- }
600
+ const de_CreateDataIntegrationAssociationCommand = async (output, context) => {
601
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
602
+ return de_CommandError(output, context);
603
+ }
604
+ const contents = smithyClient.map({
605
+ $metadata: deserializeMetadata(output),
606
+ });
607
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
608
+ const doc = smithyClient.take(data, {
609
+ DataIntegrationArn: smithyClient.expectString,
610
+ DataIntegrationAssociationId: smithyClient.expectString,
611
+ });
612
+ Object.assign(contents, doc);
613
+ return contents;
1271
614
  };
1272
-
1273
- // src/commands/CreateDataIntegrationAssociationCommand.ts
1274
-
1275
-
1276
-
1277
- var CreateDataIntegrationAssociationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1278
- return [
1279
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1280
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1281
- ];
1282
- }).s("AmazonAppIntegrationService", "CreateDataIntegrationAssociation", {}).n("AppIntegrationsClient", "CreateDataIntegrationAssociationCommand").f(void 0, void 0).ser(se_CreateDataIntegrationAssociationCommand).de(de_CreateDataIntegrationAssociationCommand).build() {
1283
- static {
1284
- __name(this, "CreateDataIntegrationAssociationCommand");
1285
- }
615
+ const de_CreateEventIntegrationCommand = async (output, context) => {
616
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
617
+ return de_CommandError(output, context);
618
+ }
619
+ const contents = smithyClient.map({
620
+ $metadata: deserializeMetadata(output),
621
+ });
622
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
623
+ const doc = smithyClient.take(data, {
624
+ EventIntegrationArn: smithyClient.expectString,
625
+ });
626
+ Object.assign(contents, doc);
627
+ return contents;
1286
628
  };
1287
-
1288
- // src/commands/CreateDataIntegrationCommand.ts
1289
-
1290
-
1291
-
1292
- var CreateDataIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1293
- return [
1294
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1295
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1296
- ];
1297
- }).s("AmazonAppIntegrationService", "CreateDataIntegration", {}).n("AppIntegrationsClient", "CreateDataIntegrationCommand").f(void 0, void 0).ser(se_CreateDataIntegrationCommand).de(de_CreateDataIntegrationCommand).build() {
1298
- static {
1299
- __name(this, "CreateDataIntegrationCommand");
1300
- }
629
+ const de_DeleteApplicationCommand = async (output, context) => {
630
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
631
+ return de_CommandError(output, context);
632
+ }
633
+ const contents = smithyClient.map({
634
+ $metadata: deserializeMetadata(output),
635
+ });
636
+ await smithyClient.collectBody(output.body, context);
637
+ return contents;
1301
638
  };
1302
-
1303
- // src/commands/CreateEventIntegrationCommand.ts
1304
-
1305
-
1306
-
1307
- var CreateEventIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1308
- return [
1309
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1310
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1311
- ];
1312
- }).s("AmazonAppIntegrationService", "CreateEventIntegration", {}).n("AppIntegrationsClient", "CreateEventIntegrationCommand").f(void 0, void 0).ser(se_CreateEventIntegrationCommand).de(de_CreateEventIntegrationCommand).build() {
1313
- static {
1314
- __name(this, "CreateEventIntegrationCommand");
1315
- }
639
+ const de_DeleteDataIntegrationCommand = async (output, context) => {
640
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
641
+ return de_CommandError(output, context);
642
+ }
643
+ const contents = smithyClient.map({
644
+ $metadata: deserializeMetadata(output),
645
+ });
646
+ await smithyClient.collectBody(output.body, context);
647
+ return contents;
1316
648
  };
1317
-
1318
- // src/commands/DeleteApplicationCommand.ts
1319
-
1320
-
1321
-
1322
- var DeleteApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1323
- return [
1324
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1325
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1326
- ];
1327
- }).s("AmazonAppIntegrationService", "DeleteApplication", {}).n("AppIntegrationsClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
1328
- static {
1329
- __name(this, "DeleteApplicationCommand");
1330
- }
649
+ const de_DeleteEventIntegrationCommand = async (output, context) => {
650
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
651
+ return de_CommandError(output, context);
652
+ }
653
+ const contents = smithyClient.map({
654
+ $metadata: deserializeMetadata(output),
655
+ });
656
+ await smithyClient.collectBody(output.body, context);
657
+ return contents;
1331
658
  };
1332
-
1333
- // src/commands/DeleteDataIntegrationCommand.ts
1334
-
1335
-
1336
-
1337
- var DeleteDataIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1338
- return [
1339
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1340
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1341
- ];
1342
- }).s("AmazonAppIntegrationService", "DeleteDataIntegration", {}).n("AppIntegrationsClient", "DeleteDataIntegrationCommand").f(void 0, void 0).ser(se_DeleteDataIntegrationCommand).de(de_DeleteDataIntegrationCommand).build() {
1343
- static {
1344
- __name(this, "DeleteDataIntegrationCommand");
1345
- }
659
+ const de_GetApplicationCommand = async (output, context) => {
660
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
661
+ return de_CommandError(output, context);
662
+ }
663
+ const contents = smithyClient.map({
664
+ $metadata: deserializeMetadata(output),
665
+ });
666
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
667
+ const doc = smithyClient.take(data, {
668
+ ApplicationConfig: smithyClient._json,
669
+ ApplicationSourceConfig: smithyClient._json,
670
+ Arn: smithyClient.expectString,
671
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
672
+ Description: smithyClient.expectString,
673
+ Id: smithyClient.expectString,
674
+ IframeConfig: smithyClient._json,
675
+ InitializationTimeout: smithyClient.expectInt32,
676
+ IsService: smithyClient.expectBoolean,
677
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
678
+ Name: smithyClient.expectString,
679
+ Namespace: smithyClient.expectString,
680
+ Permissions: smithyClient._json,
681
+ Publications: smithyClient._json,
682
+ Subscriptions: smithyClient._json,
683
+ Tags: smithyClient._json,
684
+ });
685
+ Object.assign(contents, doc);
686
+ return contents;
1346
687
  };
1347
-
1348
- // src/commands/DeleteEventIntegrationCommand.ts
1349
-
1350
-
1351
-
1352
- var DeleteEventIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1353
- return [
1354
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1355
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1356
- ];
1357
- }).s("AmazonAppIntegrationService", "DeleteEventIntegration", {}).n("AppIntegrationsClient", "DeleteEventIntegrationCommand").f(void 0, void 0).ser(se_DeleteEventIntegrationCommand).de(de_DeleteEventIntegrationCommand).build() {
1358
- static {
1359
- __name(this, "DeleteEventIntegrationCommand");
1360
- }
688
+ const de_GetDataIntegrationCommand = async (output, context) => {
689
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
690
+ return de_CommandError(output, context);
691
+ }
692
+ const contents = smithyClient.map({
693
+ $metadata: deserializeMetadata(output),
694
+ });
695
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
696
+ const doc = smithyClient.take(data, {
697
+ Arn: smithyClient.expectString,
698
+ Description: smithyClient.expectString,
699
+ FileConfiguration: smithyClient._json,
700
+ Id: smithyClient.expectString,
701
+ KmsKey: smithyClient.expectString,
702
+ Name: smithyClient.expectString,
703
+ ObjectConfiguration: smithyClient._json,
704
+ ScheduleConfiguration: smithyClient._json,
705
+ SourceURI: smithyClient.expectString,
706
+ Tags: smithyClient._json,
707
+ });
708
+ Object.assign(contents, doc);
709
+ return contents;
1361
710
  };
1362
-
1363
- // src/commands/GetApplicationCommand.ts
1364
-
1365
-
1366
-
1367
- var GetApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1368
- return [
1369
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1370
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1371
- ];
1372
- }).s("AmazonAppIntegrationService", "GetApplication", {}).n("AppIntegrationsClient", "GetApplicationCommand").f(void 0, void 0).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
1373
- static {
1374
- __name(this, "GetApplicationCommand");
1375
- }
711
+ const de_GetEventIntegrationCommand = async (output, context) => {
712
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
713
+ return de_CommandError(output, context);
714
+ }
715
+ const contents = smithyClient.map({
716
+ $metadata: deserializeMetadata(output),
717
+ });
718
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
719
+ const doc = smithyClient.take(data, {
720
+ Description: smithyClient.expectString,
721
+ EventBridgeBus: smithyClient.expectString,
722
+ EventFilter: smithyClient._json,
723
+ EventIntegrationArn: smithyClient.expectString,
724
+ Name: smithyClient.expectString,
725
+ Tags: smithyClient._json,
726
+ });
727
+ Object.assign(contents, doc);
728
+ return contents;
1376
729
  };
1377
-
1378
- // src/commands/GetDataIntegrationCommand.ts
1379
-
1380
-
1381
-
1382
- var GetDataIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1383
- return [
1384
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1385
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1386
- ];
1387
- }).s("AmazonAppIntegrationService", "GetDataIntegration", {}).n("AppIntegrationsClient", "GetDataIntegrationCommand").f(void 0, void 0).ser(se_GetDataIntegrationCommand).de(de_GetDataIntegrationCommand).build() {
1388
- static {
1389
- __name(this, "GetDataIntegrationCommand");
1390
- }
730
+ const de_ListApplicationAssociationsCommand = async (output, context) => {
731
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
732
+ return de_CommandError(output, context);
733
+ }
734
+ const contents = smithyClient.map({
735
+ $metadata: deserializeMetadata(output),
736
+ });
737
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
738
+ const doc = smithyClient.take(data, {
739
+ ApplicationAssociations: smithyClient._json,
740
+ NextToken: smithyClient.expectString,
741
+ });
742
+ Object.assign(contents, doc);
743
+ return contents;
1391
744
  };
1392
-
1393
- // src/commands/GetEventIntegrationCommand.ts
1394
-
1395
-
1396
-
1397
- var GetEventIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1398
- return [
1399
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1400
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1401
- ];
1402
- }).s("AmazonAppIntegrationService", "GetEventIntegration", {}).n("AppIntegrationsClient", "GetEventIntegrationCommand").f(void 0, void 0).ser(se_GetEventIntegrationCommand).de(de_GetEventIntegrationCommand).build() {
1403
- static {
1404
- __name(this, "GetEventIntegrationCommand");
1405
- }
745
+ const de_ListApplicationsCommand = async (output, context) => {
746
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
747
+ return de_CommandError(output, context);
748
+ }
749
+ const contents = smithyClient.map({
750
+ $metadata: deserializeMetadata(output),
751
+ });
752
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
753
+ const doc = smithyClient.take(data, {
754
+ Applications: (_) => de_ApplicationsList(_),
755
+ NextToken: smithyClient.expectString,
756
+ });
757
+ Object.assign(contents, doc);
758
+ return contents;
1406
759
  };
1407
-
1408
- // src/commands/ListApplicationAssociationsCommand.ts
1409
-
1410
-
1411
-
1412
- var ListApplicationAssociationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1413
- return [
1414
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1415
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1416
- ];
1417
- }).s("AmazonAppIntegrationService", "ListApplicationAssociations", {}).n("AppIntegrationsClient", "ListApplicationAssociationsCommand").f(void 0, void 0).ser(se_ListApplicationAssociationsCommand).de(de_ListApplicationAssociationsCommand).build() {
1418
- static {
1419
- __name(this, "ListApplicationAssociationsCommand");
1420
- }
760
+ const de_ListDataIntegrationAssociationsCommand = async (output, context) => {
761
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
762
+ return de_CommandError(output, context);
763
+ }
764
+ const contents = smithyClient.map({
765
+ $metadata: deserializeMetadata(output),
766
+ });
767
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
768
+ const doc = smithyClient.take(data, {
769
+ DataIntegrationAssociations: smithyClient._json,
770
+ NextToken: smithyClient.expectString,
771
+ });
772
+ Object.assign(contents, doc);
773
+ return contents;
1421
774
  };
1422
-
1423
- // src/commands/ListApplicationsCommand.ts
1424
-
1425
-
1426
-
1427
- var ListApplicationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1428
- return [
1429
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1430
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1431
- ];
1432
- }).s("AmazonAppIntegrationService", "ListApplications", {}).n("AppIntegrationsClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
1433
- static {
1434
- __name(this, "ListApplicationsCommand");
1435
- }
775
+ const de_ListDataIntegrationsCommand = async (output, context) => {
776
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
777
+ return de_CommandError(output, context);
778
+ }
779
+ const contents = smithyClient.map({
780
+ $metadata: deserializeMetadata(output),
781
+ });
782
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
783
+ const doc = smithyClient.take(data, {
784
+ DataIntegrations: smithyClient._json,
785
+ NextToken: smithyClient.expectString,
786
+ });
787
+ Object.assign(contents, doc);
788
+ return contents;
1436
789
  };
1437
-
1438
- // src/commands/ListDataIntegrationAssociationsCommand.ts
1439
-
1440
-
1441
-
1442
- var ListDataIntegrationAssociationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1443
- return [
1444
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1445
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1446
- ];
1447
- }).s("AmazonAppIntegrationService", "ListDataIntegrationAssociations", {}).n("AppIntegrationsClient", "ListDataIntegrationAssociationsCommand").f(void 0, void 0).ser(se_ListDataIntegrationAssociationsCommand).de(de_ListDataIntegrationAssociationsCommand).build() {
1448
- static {
1449
- __name(this, "ListDataIntegrationAssociationsCommand");
1450
- }
790
+ const de_ListEventIntegrationAssociationsCommand = async (output, context) => {
791
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
792
+ return de_CommandError(output, context);
793
+ }
794
+ const contents = smithyClient.map({
795
+ $metadata: deserializeMetadata(output),
796
+ });
797
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
798
+ const doc = smithyClient.take(data, {
799
+ EventIntegrationAssociations: smithyClient._json,
800
+ NextToken: smithyClient.expectString,
801
+ });
802
+ Object.assign(contents, doc);
803
+ return contents;
1451
804
  };
1452
-
1453
- // src/commands/ListDataIntegrationsCommand.ts
1454
-
1455
-
1456
-
1457
- var ListDataIntegrationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1458
- return [
1459
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1460
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1461
- ];
1462
- }).s("AmazonAppIntegrationService", "ListDataIntegrations", {}).n("AppIntegrationsClient", "ListDataIntegrationsCommand").f(void 0, void 0).ser(se_ListDataIntegrationsCommand).de(de_ListDataIntegrationsCommand).build() {
1463
- static {
1464
- __name(this, "ListDataIntegrationsCommand");
1465
- }
805
+ const de_ListEventIntegrationsCommand = async (output, context) => {
806
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
807
+ return de_CommandError(output, context);
808
+ }
809
+ const contents = smithyClient.map({
810
+ $metadata: deserializeMetadata(output),
811
+ });
812
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
813
+ const doc = smithyClient.take(data, {
814
+ EventIntegrations: smithyClient._json,
815
+ NextToken: smithyClient.expectString,
816
+ });
817
+ Object.assign(contents, doc);
818
+ return contents;
1466
819
  };
1467
-
1468
- // src/commands/ListEventIntegrationAssociationsCommand.ts
1469
-
1470
-
1471
-
1472
- var ListEventIntegrationAssociationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1473
- return [
1474
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1475
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1476
- ];
1477
- }).s("AmazonAppIntegrationService", "ListEventIntegrationAssociations", {}).n("AppIntegrationsClient", "ListEventIntegrationAssociationsCommand").f(void 0, void 0).ser(se_ListEventIntegrationAssociationsCommand).de(de_ListEventIntegrationAssociationsCommand).build() {
1478
- static {
1479
- __name(this, "ListEventIntegrationAssociationsCommand");
1480
- }
820
+ const de_ListTagsForResourceCommand = async (output, context) => {
821
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
822
+ return de_CommandError(output, context);
823
+ }
824
+ const contents = smithyClient.map({
825
+ $metadata: deserializeMetadata(output),
826
+ });
827
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
828
+ const doc = smithyClient.take(data, {
829
+ tags: smithyClient._json,
830
+ });
831
+ Object.assign(contents, doc);
832
+ return contents;
1481
833
  };
1482
-
1483
- // src/commands/ListEventIntegrationsCommand.ts
1484
-
1485
-
1486
-
1487
- var ListEventIntegrationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1488
- return [
1489
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1490
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1491
- ];
1492
- }).s("AmazonAppIntegrationService", "ListEventIntegrations", {}).n("AppIntegrationsClient", "ListEventIntegrationsCommand").f(void 0, void 0).ser(se_ListEventIntegrationsCommand).de(de_ListEventIntegrationsCommand).build() {
1493
- static {
1494
- __name(this, "ListEventIntegrationsCommand");
1495
- }
834
+ const de_TagResourceCommand = async (output, context) => {
835
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
836
+ return de_CommandError(output, context);
837
+ }
838
+ const contents = smithyClient.map({
839
+ $metadata: deserializeMetadata(output),
840
+ });
841
+ await smithyClient.collectBody(output.body, context);
842
+ return contents;
1496
843
  };
1497
-
1498
- // src/commands/ListTagsForResourceCommand.ts
1499
-
1500
-
1501
-
1502
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1503
- return [
1504
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1505
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1506
- ];
1507
- }).s("AmazonAppIntegrationService", "ListTagsForResource", {}).n("AppIntegrationsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1508
- static {
1509
- __name(this, "ListTagsForResourceCommand");
1510
- }
844
+ const de_UntagResourceCommand = async (output, context) => {
845
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
846
+ return de_CommandError(output, context);
847
+ }
848
+ const contents = smithyClient.map({
849
+ $metadata: deserializeMetadata(output),
850
+ });
851
+ await smithyClient.collectBody(output.body, context);
852
+ return contents;
1511
853
  };
1512
-
1513
- // src/commands/TagResourceCommand.ts
1514
-
1515
-
1516
-
1517
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1518
- return [
1519
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1520
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1521
- ];
1522
- }).s("AmazonAppIntegrationService", "TagResource", {}).n("AppIntegrationsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1523
- static {
1524
- __name(this, "TagResourceCommand");
1525
- }
854
+ const de_UpdateApplicationCommand = async (output, context) => {
855
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
856
+ return de_CommandError(output, context);
857
+ }
858
+ const contents = smithyClient.map({
859
+ $metadata: deserializeMetadata(output),
860
+ });
861
+ await smithyClient.collectBody(output.body, context);
862
+ return contents;
1526
863
  };
1527
-
1528
- // src/commands/UntagResourceCommand.ts
1529
-
1530
-
1531
-
1532
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1533
- return [
1534
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1535
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1536
- ];
1537
- }).s("AmazonAppIntegrationService", "UntagResource", {}).n("AppIntegrationsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1538
- static {
1539
- __name(this, "UntagResourceCommand");
1540
- }
864
+ const de_UpdateDataIntegrationCommand = async (output, context) => {
865
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
866
+ return de_CommandError(output, context);
867
+ }
868
+ const contents = smithyClient.map({
869
+ $metadata: deserializeMetadata(output),
870
+ });
871
+ await smithyClient.collectBody(output.body, context);
872
+ return contents;
1541
873
  };
1542
-
1543
- // src/commands/UpdateApplicationCommand.ts
1544
-
1545
-
1546
-
1547
- var UpdateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1548
- return [
1549
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1550
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1551
- ];
1552
- }).s("AmazonAppIntegrationService", "UpdateApplication", {}).n("AppIntegrationsClient", "UpdateApplicationCommand").f(void 0, void 0).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() {
1553
- static {
1554
- __name(this, "UpdateApplicationCommand");
1555
- }
874
+ const de_UpdateDataIntegrationAssociationCommand = async (output, context) => {
875
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
876
+ return de_CommandError(output, context);
877
+ }
878
+ const contents = smithyClient.map({
879
+ $metadata: deserializeMetadata(output),
880
+ });
881
+ await smithyClient.collectBody(output.body, context);
882
+ return contents;
1556
883
  };
1557
-
1558
- // src/commands/UpdateDataIntegrationAssociationCommand.ts
1559
-
1560
-
1561
-
1562
- var UpdateDataIntegrationAssociationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1563
- return [
1564
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1565
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1566
- ];
1567
- }).s("AmazonAppIntegrationService", "UpdateDataIntegrationAssociation", {}).n("AppIntegrationsClient", "UpdateDataIntegrationAssociationCommand").f(void 0, void 0).ser(se_UpdateDataIntegrationAssociationCommand).de(de_UpdateDataIntegrationAssociationCommand).build() {
1568
- static {
1569
- __name(this, "UpdateDataIntegrationAssociationCommand");
1570
- }
884
+ const de_UpdateEventIntegrationCommand = async (output, context) => {
885
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
886
+ return de_CommandError(output, context);
887
+ }
888
+ const contents = smithyClient.map({
889
+ $metadata: deserializeMetadata(output),
890
+ });
891
+ await smithyClient.collectBody(output.body, context);
892
+ return contents;
1571
893
  };
1572
-
1573
- // src/commands/UpdateDataIntegrationCommand.ts
1574
-
1575
-
1576
-
1577
- var UpdateDataIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1578
- return [
1579
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1580
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1581
- ];
1582
- }).s("AmazonAppIntegrationService", "UpdateDataIntegration", {}).n("AppIntegrationsClient", "UpdateDataIntegrationCommand").f(void 0, void 0).ser(se_UpdateDataIntegrationCommand).de(de_UpdateDataIntegrationCommand).build() {
1583
- static {
1584
- __name(this, "UpdateDataIntegrationCommand");
1585
- }
894
+ const de_CommandError = async (output, context) => {
895
+ const parsedOutput = {
896
+ ...output,
897
+ body: await core$1.parseJsonErrorBody(output.body, context),
898
+ };
899
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
900
+ switch (errorCode) {
901
+ case "AccessDeniedException":
902
+ case "com.amazonaws.appintegrations#AccessDeniedException":
903
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
904
+ case "DuplicateResourceException":
905
+ case "com.amazonaws.appintegrations#DuplicateResourceException":
906
+ throw await de_DuplicateResourceExceptionRes(parsedOutput);
907
+ case "InternalServiceError":
908
+ case "com.amazonaws.appintegrations#InternalServiceError":
909
+ throw await de_InternalServiceErrorRes(parsedOutput);
910
+ case "InvalidRequestException":
911
+ case "com.amazonaws.appintegrations#InvalidRequestException":
912
+ throw await de_InvalidRequestExceptionRes(parsedOutput);
913
+ case "ResourceQuotaExceededException":
914
+ case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
915
+ throw await de_ResourceQuotaExceededExceptionRes(parsedOutput);
916
+ case "ThrottlingException":
917
+ case "com.amazonaws.appintegrations#ThrottlingException":
918
+ throw await de_ThrottlingExceptionRes(parsedOutput);
919
+ case "UnsupportedOperationException":
920
+ case "com.amazonaws.appintegrations#UnsupportedOperationException":
921
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput);
922
+ case "ResourceNotFoundException":
923
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
924
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
925
+ default:
926
+ const parsedBody = parsedOutput.body;
927
+ return throwDefaultError({
928
+ output,
929
+ parsedBody,
930
+ errorCode,
931
+ });
932
+ }
1586
933
  };
1587
-
1588
- // src/commands/UpdateEventIntegrationCommand.ts
1589
-
1590
-
1591
-
1592
- var UpdateEventIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1593
- return [
1594
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1595
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1596
- ];
1597
- }).s("AmazonAppIntegrationService", "UpdateEventIntegration", {}).n("AppIntegrationsClient", "UpdateEventIntegrationCommand").f(void 0, void 0).ser(se_UpdateEventIntegrationCommand).de(de_UpdateEventIntegrationCommand).build() {
1598
- static {
1599
- __name(this, "UpdateEventIntegrationCommand");
1600
- }
934
+ const throwDefaultError = smithyClient.withBaseException(AppIntegrationsServiceException);
935
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
936
+ const contents = smithyClient.map({});
937
+ const data = parsedOutput.body;
938
+ const doc = smithyClient.take(data, {
939
+ Message: smithyClient.expectString,
940
+ });
941
+ Object.assign(contents, doc);
942
+ const exception = new AccessDeniedException({
943
+ $metadata: deserializeMetadata(parsedOutput),
944
+ ...contents,
945
+ });
946
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1601
947
  };
948
+ const de_DuplicateResourceExceptionRes = async (parsedOutput, context) => {
949
+ const contents = smithyClient.map({});
950
+ const data = parsedOutput.body;
951
+ const doc = smithyClient.take(data, {
952
+ Message: smithyClient.expectString,
953
+ });
954
+ Object.assign(contents, doc);
955
+ const exception = new DuplicateResourceException({
956
+ $metadata: deserializeMetadata(parsedOutput),
957
+ ...contents,
958
+ });
959
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
960
+ };
961
+ const de_InternalServiceErrorRes = async (parsedOutput, context) => {
962
+ const contents = smithyClient.map({});
963
+ const data = parsedOutput.body;
964
+ const doc = smithyClient.take(data, {
965
+ Message: smithyClient.expectString,
966
+ });
967
+ Object.assign(contents, doc);
968
+ const exception = new InternalServiceError({
969
+ $metadata: deserializeMetadata(parsedOutput),
970
+ ...contents,
971
+ });
972
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
973
+ };
974
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
975
+ const contents = smithyClient.map({});
976
+ const data = parsedOutput.body;
977
+ const doc = smithyClient.take(data, {
978
+ Message: smithyClient.expectString,
979
+ });
980
+ Object.assign(contents, doc);
981
+ const exception = new InvalidRequestException({
982
+ $metadata: deserializeMetadata(parsedOutput),
983
+ ...contents,
984
+ });
985
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
986
+ };
987
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
988
+ const contents = smithyClient.map({});
989
+ const data = parsedOutput.body;
990
+ const doc = smithyClient.take(data, {
991
+ Message: smithyClient.expectString,
992
+ });
993
+ Object.assign(contents, doc);
994
+ const exception = new ResourceNotFoundException({
995
+ $metadata: deserializeMetadata(parsedOutput),
996
+ ...contents,
997
+ });
998
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
999
+ };
1000
+ const de_ResourceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1001
+ const contents = smithyClient.map({});
1002
+ const data = parsedOutput.body;
1003
+ const doc = smithyClient.take(data, {
1004
+ Message: smithyClient.expectString,
1005
+ });
1006
+ Object.assign(contents, doc);
1007
+ const exception = new ResourceQuotaExceededException({
1008
+ $metadata: deserializeMetadata(parsedOutput),
1009
+ ...contents,
1010
+ });
1011
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1012
+ };
1013
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1014
+ const contents = smithyClient.map({});
1015
+ const data = parsedOutput.body;
1016
+ const doc = smithyClient.take(data, {
1017
+ Message: smithyClient.expectString,
1018
+ });
1019
+ Object.assign(contents, doc);
1020
+ const exception = new ThrottlingException({
1021
+ $metadata: deserializeMetadata(parsedOutput),
1022
+ ...contents,
1023
+ });
1024
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1025
+ };
1026
+ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
1027
+ const contents = smithyClient.map({});
1028
+ const data = parsedOutput.body;
1029
+ const doc = smithyClient.take(data, {
1030
+ Message: smithyClient.expectString,
1031
+ });
1032
+ Object.assign(contents, doc);
1033
+ const exception = new UnsupportedOperationException({
1034
+ $metadata: deserializeMetadata(parsedOutput),
1035
+ ...contents,
1036
+ });
1037
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1038
+ };
1039
+ const de_ApplicationsList = (output, context) => {
1040
+ const retVal = (output || [])
1041
+ .filter((e) => e != null)
1042
+ .map((entry) => {
1043
+ return de_ApplicationSummary(entry);
1044
+ });
1045
+ return retVal;
1046
+ };
1047
+ const de_ApplicationSummary = (output, context) => {
1048
+ return smithyClient.take(output, {
1049
+ Arn: smithyClient.expectString,
1050
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1051
+ Id: smithyClient.expectString,
1052
+ IsService: smithyClient.expectBoolean,
1053
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1054
+ Name: smithyClient.expectString,
1055
+ Namespace: smithyClient.expectString,
1056
+ });
1057
+ };
1058
+ const deserializeMetadata = (output) => ({
1059
+ httpStatusCode: output.statusCode,
1060
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1061
+ extendedRequestId: output.headers["x-amz-id-2"],
1062
+ cfId: output.headers["x-amz-cf-id"],
1063
+ });
1064
+ const _MR = "MaxResults";
1065
+ const _NT = "NextToken";
1066
+ const _mR = "maxResults";
1067
+ const _nT = "nextToken";
1068
+ const _tK = "tagKeys";
1069
+
1070
+ class CreateApplicationCommand extends smithyClient.Command
1071
+ .classBuilder()
1072
+ .ep(commonParams)
1073
+ .m(function (Command, cs, config, o) {
1074
+ return [
1075
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1076
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1077
+ ];
1078
+ })
1079
+ .s("AmazonAppIntegrationService", "CreateApplication", {})
1080
+ .n("AppIntegrationsClient", "CreateApplicationCommand")
1081
+ .f(void 0, void 0)
1082
+ .ser(se_CreateApplicationCommand)
1083
+ .de(de_CreateApplicationCommand)
1084
+ .build() {
1085
+ }
1086
+
1087
+ class CreateDataIntegrationAssociationCommand extends smithyClient.Command
1088
+ .classBuilder()
1089
+ .ep(commonParams)
1090
+ .m(function (Command, cs, config, o) {
1091
+ return [
1092
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1093
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1094
+ ];
1095
+ })
1096
+ .s("AmazonAppIntegrationService", "CreateDataIntegrationAssociation", {})
1097
+ .n("AppIntegrationsClient", "CreateDataIntegrationAssociationCommand")
1098
+ .f(void 0, void 0)
1099
+ .ser(se_CreateDataIntegrationAssociationCommand)
1100
+ .de(de_CreateDataIntegrationAssociationCommand)
1101
+ .build() {
1102
+ }
1103
+
1104
+ class CreateDataIntegrationCommand extends smithyClient.Command
1105
+ .classBuilder()
1106
+ .ep(commonParams)
1107
+ .m(function (Command, cs, config, o) {
1108
+ return [
1109
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1110
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1111
+ ];
1112
+ })
1113
+ .s("AmazonAppIntegrationService", "CreateDataIntegration", {})
1114
+ .n("AppIntegrationsClient", "CreateDataIntegrationCommand")
1115
+ .f(void 0, void 0)
1116
+ .ser(se_CreateDataIntegrationCommand)
1117
+ .de(de_CreateDataIntegrationCommand)
1118
+ .build() {
1119
+ }
1120
+
1121
+ class CreateEventIntegrationCommand extends smithyClient.Command
1122
+ .classBuilder()
1123
+ .ep(commonParams)
1124
+ .m(function (Command, cs, config, o) {
1125
+ return [
1126
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1127
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1128
+ ];
1129
+ })
1130
+ .s("AmazonAppIntegrationService", "CreateEventIntegration", {})
1131
+ .n("AppIntegrationsClient", "CreateEventIntegrationCommand")
1132
+ .f(void 0, void 0)
1133
+ .ser(se_CreateEventIntegrationCommand)
1134
+ .de(de_CreateEventIntegrationCommand)
1135
+ .build() {
1136
+ }
1137
+
1138
+ class DeleteApplicationCommand extends smithyClient.Command
1139
+ .classBuilder()
1140
+ .ep(commonParams)
1141
+ .m(function (Command, cs, config, o) {
1142
+ return [
1143
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1144
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1145
+ ];
1146
+ })
1147
+ .s("AmazonAppIntegrationService", "DeleteApplication", {})
1148
+ .n("AppIntegrationsClient", "DeleteApplicationCommand")
1149
+ .f(void 0, void 0)
1150
+ .ser(se_DeleteApplicationCommand)
1151
+ .de(de_DeleteApplicationCommand)
1152
+ .build() {
1153
+ }
1154
+
1155
+ class DeleteDataIntegrationCommand extends smithyClient.Command
1156
+ .classBuilder()
1157
+ .ep(commonParams)
1158
+ .m(function (Command, cs, config, o) {
1159
+ return [
1160
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1161
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1162
+ ];
1163
+ })
1164
+ .s("AmazonAppIntegrationService", "DeleteDataIntegration", {})
1165
+ .n("AppIntegrationsClient", "DeleteDataIntegrationCommand")
1166
+ .f(void 0, void 0)
1167
+ .ser(se_DeleteDataIntegrationCommand)
1168
+ .de(de_DeleteDataIntegrationCommand)
1169
+ .build() {
1170
+ }
1171
+
1172
+ class DeleteEventIntegrationCommand extends smithyClient.Command
1173
+ .classBuilder()
1174
+ .ep(commonParams)
1175
+ .m(function (Command, cs, config, o) {
1176
+ return [
1177
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1178
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1179
+ ];
1180
+ })
1181
+ .s("AmazonAppIntegrationService", "DeleteEventIntegration", {})
1182
+ .n("AppIntegrationsClient", "DeleteEventIntegrationCommand")
1183
+ .f(void 0, void 0)
1184
+ .ser(se_DeleteEventIntegrationCommand)
1185
+ .de(de_DeleteEventIntegrationCommand)
1186
+ .build() {
1187
+ }
1188
+
1189
+ class GetApplicationCommand extends smithyClient.Command
1190
+ .classBuilder()
1191
+ .ep(commonParams)
1192
+ .m(function (Command, cs, config, o) {
1193
+ return [
1194
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1195
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1196
+ ];
1197
+ })
1198
+ .s("AmazonAppIntegrationService", "GetApplication", {})
1199
+ .n("AppIntegrationsClient", "GetApplicationCommand")
1200
+ .f(void 0, void 0)
1201
+ .ser(se_GetApplicationCommand)
1202
+ .de(de_GetApplicationCommand)
1203
+ .build() {
1204
+ }
1205
+
1206
+ class GetDataIntegrationCommand extends smithyClient.Command
1207
+ .classBuilder()
1208
+ .ep(commonParams)
1209
+ .m(function (Command, cs, config, o) {
1210
+ return [
1211
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1212
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1213
+ ];
1214
+ })
1215
+ .s("AmazonAppIntegrationService", "GetDataIntegration", {})
1216
+ .n("AppIntegrationsClient", "GetDataIntegrationCommand")
1217
+ .f(void 0, void 0)
1218
+ .ser(se_GetDataIntegrationCommand)
1219
+ .de(de_GetDataIntegrationCommand)
1220
+ .build() {
1221
+ }
1222
+
1223
+ class GetEventIntegrationCommand extends smithyClient.Command
1224
+ .classBuilder()
1225
+ .ep(commonParams)
1226
+ .m(function (Command, cs, config, o) {
1227
+ return [
1228
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1229
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1230
+ ];
1231
+ })
1232
+ .s("AmazonAppIntegrationService", "GetEventIntegration", {})
1233
+ .n("AppIntegrationsClient", "GetEventIntegrationCommand")
1234
+ .f(void 0, void 0)
1235
+ .ser(se_GetEventIntegrationCommand)
1236
+ .de(de_GetEventIntegrationCommand)
1237
+ .build() {
1238
+ }
1239
+
1240
+ class ListApplicationAssociationsCommand extends smithyClient.Command
1241
+ .classBuilder()
1242
+ .ep(commonParams)
1243
+ .m(function (Command, cs, config, o) {
1244
+ return [
1245
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1246
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1247
+ ];
1248
+ })
1249
+ .s("AmazonAppIntegrationService", "ListApplicationAssociations", {})
1250
+ .n("AppIntegrationsClient", "ListApplicationAssociationsCommand")
1251
+ .f(void 0, void 0)
1252
+ .ser(se_ListApplicationAssociationsCommand)
1253
+ .de(de_ListApplicationAssociationsCommand)
1254
+ .build() {
1255
+ }
1256
+
1257
+ class ListApplicationsCommand extends smithyClient.Command
1258
+ .classBuilder()
1259
+ .ep(commonParams)
1260
+ .m(function (Command, cs, config, o) {
1261
+ return [
1262
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1263
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1264
+ ];
1265
+ })
1266
+ .s("AmazonAppIntegrationService", "ListApplications", {})
1267
+ .n("AppIntegrationsClient", "ListApplicationsCommand")
1268
+ .f(void 0, void 0)
1269
+ .ser(se_ListApplicationsCommand)
1270
+ .de(de_ListApplicationsCommand)
1271
+ .build() {
1272
+ }
1273
+
1274
+ class ListDataIntegrationAssociationsCommand extends smithyClient.Command
1275
+ .classBuilder()
1276
+ .ep(commonParams)
1277
+ .m(function (Command, cs, config, o) {
1278
+ return [
1279
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1280
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1281
+ ];
1282
+ })
1283
+ .s("AmazonAppIntegrationService", "ListDataIntegrationAssociations", {})
1284
+ .n("AppIntegrationsClient", "ListDataIntegrationAssociationsCommand")
1285
+ .f(void 0, void 0)
1286
+ .ser(se_ListDataIntegrationAssociationsCommand)
1287
+ .de(de_ListDataIntegrationAssociationsCommand)
1288
+ .build() {
1289
+ }
1290
+
1291
+ class ListDataIntegrationsCommand extends smithyClient.Command
1292
+ .classBuilder()
1293
+ .ep(commonParams)
1294
+ .m(function (Command, cs, config, o) {
1295
+ return [
1296
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1297
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1298
+ ];
1299
+ })
1300
+ .s("AmazonAppIntegrationService", "ListDataIntegrations", {})
1301
+ .n("AppIntegrationsClient", "ListDataIntegrationsCommand")
1302
+ .f(void 0, void 0)
1303
+ .ser(se_ListDataIntegrationsCommand)
1304
+ .de(de_ListDataIntegrationsCommand)
1305
+ .build() {
1306
+ }
1307
+
1308
+ class ListEventIntegrationAssociationsCommand extends smithyClient.Command
1309
+ .classBuilder()
1310
+ .ep(commonParams)
1311
+ .m(function (Command, cs, config, o) {
1312
+ return [
1313
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1314
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1315
+ ];
1316
+ })
1317
+ .s("AmazonAppIntegrationService", "ListEventIntegrationAssociations", {})
1318
+ .n("AppIntegrationsClient", "ListEventIntegrationAssociationsCommand")
1319
+ .f(void 0, void 0)
1320
+ .ser(se_ListEventIntegrationAssociationsCommand)
1321
+ .de(de_ListEventIntegrationAssociationsCommand)
1322
+ .build() {
1323
+ }
1324
+
1325
+ class ListEventIntegrationsCommand extends smithyClient.Command
1326
+ .classBuilder()
1327
+ .ep(commonParams)
1328
+ .m(function (Command, cs, config, o) {
1329
+ return [
1330
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1331
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1332
+ ];
1333
+ })
1334
+ .s("AmazonAppIntegrationService", "ListEventIntegrations", {})
1335
+ .n("AppIntegrationsClient", "ListEventIntegrationsCommand")
1336
+ .f(void 0, void 0)
1337
+ .ser(se_ListEventIntegrationsCommand)
1338
+ .de(de_ListEventIntegrationsCommand)
1339
+ .build() {
1340
+ }
1341
+
1342
+ class ListTagsForResourceCommand extends smithyClient.Command
1343
+ .classBuilder()
1344
+ .ep(commonParams)
1345
+ .m(function (Command, cs, config, o) {
1346
+ return [
1347
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1348
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1349
+ ];
1350
+ })
1351
+ .s("AmazonAppIntegrationService", "ListTagsForResource", {})
1352
+ .n("AppIntegrationsClient", "ListTagsForResourceCommand")
1353
+ .f(void 0, void 0)
1354
+ .ser(se_ListTagsForResourceCommand)
1355
+ .de(de_ListTagsForResourceCommand)
1356
+ .build() {
1357
+ }
1358
+
1359
+ class TagResourceCommand extends smithyClient.Command
1360
+ .classBuilder()
1361
+ .ep(commonParams)
1362
+ .m(function (Command, cs, config, o) {
1363
+ return [
1364
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1365
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1366
+ ];
1367
+ })
1368
+ .s("AmazonAppIntegrationService", "TagResource", {})
1369
+ .n("AppIntegrationsClient", "TagResourceCommand")
1370
+ .f(void 0, void 0)
1371
+ .ser(se_TagResourceCommand)
1372
+ .de(de_TagResourceCommand)
1373
+ .build() {
1374
+ }
1375
+
1376
+ class UntagResourceCommand extends smithyClient.Command
1377
+ .classBuilder()
1378
+ .ep(commonParams)
1379
+ .m(function (Command, cs, config, o) {
1380
+ return [
1381
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1382
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1383
+ ];
1384
+ })
1385
+ .s("AmazonAppIntegrationService", "UntagResource", {})
1386
+ .n("AppIntegrationsClient", "UntagResourceCommand")
1387
+ .f(void 0, void 0)
1388
+ .ser(se_UntagResourceCommand)
1389
+ .de(de_UntagResourceCommand)
1390
+ .build() {
1391
+ }
1392
+
1393
+ class UpdateApplicationCommand extends smithyClient.Command
1394
+ .classBuilder()
1395
+ .ep(commonParams)
1396
+ .m(function (Command, cs, config, o) {
1397
+ return [
1398
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1399
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1400
+ ];
1401
+ })
1402
+ .s("AmazonAppIntegrationService", "UpdateApplication", {})
1403
+ .n("AppIntegrationsClient", "UpdateApplicationCommand")
1404
+ .f(void 0, void 0)
1405
+ .ser(se_UpdateApplicationCommand)
1406
+ .de(de_UpdateApplicationCommand)
1407
+ .build() {
1408
+ }
1409
+
1410
+ class UpdateDataIntegrationAssociationCommand extends smithyClient.Command
1411
+ .classBuilder()
1412
+ .ep(commonParams)
1413
+ .m(function (Command, cs, config, o) {
1414
+ return [
1415
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1416
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1417
+ ];
1418
+ })
1419
+ .s("AmazonAppIntegrationService", "UpdateDataIntegrationAssociation", {})
1420
+ .n("AppIntegrationsClient", "UpdateDataIntegrationAssociationCommand")
1421
+ .f(void 0, void 0)
1422
+ .ser(se_UpdateDataIntegrationAssociationCommand)
1423
+ .de(de_UpdateDataIntegrationAssociationCommand)
1424
+ .build() {
1425
+ }
1426
+
1427
+ class UpdateDataIntegrationCommand extends smithyClient.Command
1428
+ .classBuilder()
1429
+ .ep(commonParams)
1430
+ .m(function (Command, cs, config, o) {
1431
+ return [
1432
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1433
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1434
+ ];
1435
+ })
1436
+ .s("AmazonAppIntegrationService", "UpdateDataIntegration", {})
1437
+ .n("AppIntegrationsClient", "UpdateDataIntegrationCommand")
1438
+ .f(void 0, void 0)
1439
+ .ser(se_UpdateDataIntegrationCommand)
1440
+ .de(de_UpdateDataIntegrationCommand)
1441
+ .build() {
1442
+ }
1443
+
1444
+ class UpdateEventIntegrationCommand extends smithyClient.Command
1445
+ .classBuilder()
1446
+ .ep(commonParams)
1447
+ .m(function (Command, cs, config, o) {
1448
+ return [
1449
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1450
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1451
+ ];
1452
+ })
1453
+ .s("AmazonAppIntegrationService", "UpdateEventIntegration", {})
1454
+ .n("AppIntegrationsClient", "UpdateEventIntegrationCommand")
1455
+ .f(void 0, void 0)
1456
+ .ser(se_UpdateEventIntegrationCommand)
1457
+ .de(de_UpdateEventIntegrationCommand)
1458
+ .build() {
1459
+ }
1460
+
1461
+ const commands = {
1462
+ CreateApplicationCommand,
1463
+ CreateDataIntegrationCommand,
1464
+ CreateDataIntegrationAssociationCommand,
1465
+ CreateEventIntegrationCommand,
1466
+ DeleteApplicationCommand,
1467
+ DeleteDataIntegrationCommand,
1468
+ DeleteEventIntegrationCommand,
1469
+ GetApplicationCommand,
1470
+ GetDataIntegrationCommand,
1471
+ GetEventIntegrationCommand,
1472
+ ListApplicationAssociationsCommand,
1473
+ ListApplicationsCommand,
1474
+ ListDataIntegrationAssociationsCommand,
1475
+ ListDataIntegrationsCommand,
1476
+ ListEventIntegrationAssociationsCommand,
1477
+ ListEventIntegrationsCommand,
1478
+ ListTagsForResourceCommand,
1479
+ TagResourceCommand,
1480
+ UntagResourceCommand,
1481
+ UpdateApplicationCommand,
1482
+ UpdateDataIntegrationCommand,
1483
+ UpdateDataIntegrationAssociationCommand,
1484
+ UpdateEventIntegrationCommand,
1485
+ };
1486
+ class AppIntegrations extends AppIntegrationsClient {
1487
+ }
1488
+ smithyClient.createAggregatedClient(commands, AppIntegrations);
1602
1489
 
1603
- // src/AppIntegrations.ts
1604
- var commands = {
1605
- CreateApplicationCommand,
1606
- CreateDataIntegrationCommand,
1607
- CreateDataIntegrationAssociationCommand,
1608
- CreateEventIntegrationCommand,
1609
- DeleteApplicationCommand,
1610
- DeleteDataIntegrationCommand,
1611
- DeleteEventIntegrationCommand,
1612
- GetApplicationCommand,
1613
- GetDataIntegrationCommand,
1614
- GetEventIntegrationCommand,
1615
- ListApplicationAssociationsCommand,
1616
- ListApplicationsCommand,
1617
- ListDataIntegrationAssociationsCommand,
1618
- ListDataIntegrationsCommand,
1619
- ListEventIntegrationAssociationsCommand,
1620
- ListEventIntegrationsCommand,
1621
- ListTagsForResourceCommand,
1622
- TagResourceCommand,
1623
- UntagResourceCommand,
1624
- UpdateApplicationCommand,
1625
- UpdateDataIntegrationCommand,
1626
- UpdateDataIntegrationAssociationCommand,
1627
- UpdateEventIntegrationCommand
1628
- };
1629
- var AppIntegrations = class extends AppIntegrationsClient {
1630
- static {
1631
- __name(this, "AppIntegrations");
1632
- }
1633
- };
1634
- (0, import_smithy_client.createAggregatedClient)(commands, AppIntegrations);
1635
-
1636
- // src/pagination/ListApplicationAssociationsPaginator.ts
1637
-
1638
- var paginateListApplicationAssociations = (0, import_core.createPaginator)(AppIntegrationsClient, ListApplicationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
1639
-
1640
- // src/pagination/ListApplicationsPaginator.ts
1641
-
1642
- var paginateListApplications = (0, import_core.createPaginator)(AppIntegrationsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
1643
-
1644
- // src/pagination/ListDataIntegrationAssociationsPaginator.ts
1645
-
1646
- var paginateListDataIntegrationAssociations = (0, import_core.createPaginator)(AppIntegrationsClient, ListDataIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
1647
-
1648
- // src/pagination/ListDataIntegrationsPaginator.ts
1490
+ const paginateListApplicationAssociations = core.createPaginator(AppIntegrationsClient, ListApplicationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
1649
1491
 
1650
- var paginateListDataIntegrations = (0, import_core.createPaginator)(AppIntegrationsClient, ListDataIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
1492
+ const paginateListApplications = core.createPaginator(AppIntegrationsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
1651
1493
 
1652
- // src/pagination/ListEventIntegrationAssociationsPaginator.ts
1494
+ const paginateListDataIntegrationAssociations = core.createPaginator(AppIntegrationsClient, ListDataIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
1653
1495
 
1654
- var paginateListEventIntegrationAssociations = (0, import_core.createPaginator)(AppIntegrationsClient, ListEventIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
1496
+ const paginateListDataIntegrations = core.createPaginator(AppIntegrationsClient, ListDataIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
1655
1497
 
1656
- // src/pagination/ListEventIntegrationsPaginator.ts
1498
+ const paginateListEventIntegrationAssociations = core.createPaginator(AppIntegrationsClient, ListEventIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
1657
1499
 
1658
- var paginateListEventIntegrations = (0, import_core.createPaginator)(AppIntegrationsClient, ListEventIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
1659
- // Annotate the CommonJS export names for ESM import in node:
1500
+ const paginateListEventIntegrations = core.createPaginator(AppIntegrationsClient, ListEventIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
1660
1501
 
1661
- 0 && (module.exports = {
1662
- AppIntegrationsServiceException,
1663
- __Client,
1664
- AppIntegrationsClient,
1665
- AppIntegrations,
1666
- $Command,
1667
- CreateApplicationCommand,
1668
- CreateDataIntegrationAssociationCommand,
1669
- CreateDataIntegrationCommand,
1670
- CreateEventIntegrationCommand,
1671
- DeleteApplicationCommand,
1672
- DeleteDataIntegrationCommand,
1673
- DeleteEventIntegrationCommand,
1674
- GetApplicationCommand,
1675
- GetDataIntegrationCommand,
1676
- GetEventIntegrationCommand,
1677
- ListApplicationAssociationsCommand,
1678
- ListApplicationsCommand,
1679
- ListDataIntegrationAssociationsCommand,
1680
- ListDataIntegrationsCommand,
1681
- ListEventIntegrationAssociationsCommand,
1682
- ListEventIntegrationsCommand,
1683
- ListTagsForResourceCommand,
1684
- TagResourceCommand,
1685
- UntagResourceCommand,
1686
- UpdateApplicationCommand,
1687
- UpdateDataIntegrationAssociationCommand,
1688
- UpdateDataIntegrationCommand,
1689
- UpdateEventIntegrationCommand,
1690
- paginateListApplicationAssociations,
1691
- paginateListApplications,
1692
- paginateListDataIntegrationAssociations,
1693
- paginateListDataIntegrations,
1694
- paginateListEventIntegrationAssociations,
1695
- paginateListEventIntegrations,
1696
- AccessDeniedException,
1697
- ContactHandlingScope,
1698
- DuplicateResourceException,
1699
- InternalServiceError,
1700
- InvalidRequestException,
1701
- ResourceQuotaExceededException,
1702
- ThrottlingException,
1703
- UnsupportedOperationException,
1704
- ExecutionMode,
1705
- ResourceNotFoundException,
1706
- ExecutionStatus
1502
+ Object.defineProperty(exports, "$Command", {
1503
+ enumerable: true,
1504
+ get: function () { return smithyClient.Command; }
1707
1505
  });
1708
-
1506
+ Object.defineProperty(exports, "__Client", {
1507
+ enumerable: true,
1508
+ get: function () { return smithyClient.Client; }
1509
+ });
1510
+ exports.AccessDeniedException = AccessDeniedException;
1511
+ exports.AppIntegrations = AppIntegrations;
1512
+ exports.AppIntegrationsClient = AppIntegrationsClient;
1513
+ exports.AppIntegrationsServiceException = AppIntegrationsServiceException;
1514
+ exports.ContactHandlingScope = ContactHandlingScope;
1515
+ exports.CreateApplicationCommand = CreateApplicationCommand;
1516
+ exports.CreateDataIntegrationAssociationCommand = CreateDataIntegrationAssociationCommand;
1517
+ exports.CreateDataIntegrationCommand = CreateDataIntegrationCommand;
1518
+ exports.CreateEventIntegrationCommand = CreateEventIntegrationCommand;
1519
+ exports.DeleteApplicationCommand = DeleteApplicationCommand;
1520
+ exports.DeleteDataIntegrationCommand = DeleteDataIntegrationCommand;
1521
+ exports.DeleteEventIntegrationCommand = DeleteEventIntegrationCommand;
1522
+ exports.DuplicateResourceException = DuplicateResourceException;
1523
+ exports.ExecutionMode = ExecutionMode;
1524
+ exports.ExecutionStatus = ExecutionStatus;
1525
+ exports.GetApplicationCommand = GetApplicationCommand;
1526
+ exports.GetDataIntegrationCommand = GetDataIntegrationCommand;
1527
+ exports.GetEventIntegrationCommand = GetEventIntegrationCommand;
1528
+ exports.InternalServiceError = InternalServiceError;
1529
+ exports.InvalidRequestException = InvalidRequestException;
1530
+ exports.ListApplicationAssociationsCommand = ListApplicationAssociationsCommand;
1531
+ exports.ListApplicationsCommand = ListApplicationsCommand;
1532
+ exports.ListDataIntegrationAssociationsCommand = ListDataIntegrationAssociationsCommand;
1533
+ exports.ListDataIntegrationsCommand = ListDataIntegrationsCommand;
1534
+ exports.ListEventIntegrationAssociationsCommand = ListEventIntegrationAssociationsCommand;
1535
+ exports.ListEventIntegrationsCommand = ListEventIntegrationsCommand;
1536
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1537
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1538
+ exports.ResourceQuotaExceededException = ResourceQuotaExceededException;
1539
+ exports.TagResourceCommand = TagResourceCommand;
1540
+ exports.ThrottlingException = ThrottlingException;
1541
+ exports.UnsupportedOperationException = UnsupportedOperationException;
1542
+ exports.UntagResourceCommand = UntagResourceCommand;
1543
+ exports.UpdateApplicationCommand = UpdateApplicationCommand;
1544
+ exports.UpdateDataIntegrationAssociationCommand = UpdateDataIntegrationAssociationCommand;
1545
+ exports.UpdateDataIntegrationCommand = UpdateDataIntegrationCommand;
1546
+ exports.UpdateEventIntegrationCommand = UpdateEventIntegrationCommand;
1547
+ exports.paginateListApplicationAssociations = paginateListApplicationAssociations;
1548
+ exports.paginateListApplications = paginateListApplications;
1549
+ exports.paginateListDataIntegrationAssociations = paginateListDataIntegrationAssociations;
1550
+ exports.paginateListDataIntegrations = paginateListDataIntegrations;
1551
+ exports.paginateListEventIntegrationAssociations = paginateListEventIntegrationAssociations;
1552
+ exports.paginateListEventIntegrations = paginateListEventIntegrations;