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