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