@aws-sdk/client-pipes 3.901.0 → 3.907.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 +1370 -1608
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,1637 +1,1399 @@
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
- AssignPublicIp: () => AssignPublicIp,
25
- AwsVpcConfigurationFilterSensitiveLog: () => AwsVpcConfigurationFilterSensitiveLog,
26
- BatchJobDependencyType: () => BatchJobDependencyType,
27
- BatchResourceRequirementType: () => BatchResourceRequirementType,
28
- CapacityProviderStrategyItemFilterSensitiveLog: () => CapacityProviderStrategyItemFilterSensitiveLog,
29
- ConflictException: () => ConflictException,
30
- CreatePipeCommand: () => CreatePipeCommand,
31
- CreatePipeRequestFilterSensitiveLog: () => CreatePipeRequestFilterSensitiveLog,
32
- DeletePipeCommand: () => DeletePipeCommand,
33
- DescribePipeCommand: () => DescribePipeCommand,
34
- DescribePipeResponseFilterSensitiveLog: () => DescribePipeResponseFilterSensitiveLog,
35
- DimensionValueType: () => DimensionValueType,
36
- DynamoDBStreamStartPosition: () => DynamoDBStreamStartPosition,
37
- EcsEnvironmentFileType: () => EcsEnvironmentFileType,
38
- EcsResourceRequirementType: () => EcsResourceRequirementType,
39
- EpochTimeUnit: () => EpochTimeUnit,
40
- FilterCriteriaFilterSensitiveLog: () => FilterCriteriaFilterSensitiveLog,
41
- FilterFilterSensitiveLog: () => FilterFilterSensitiveLog,
42
- IncludeExecutionDataOption: () => IncludeExecutionDataOption,
43
- InternalException: () => InternalException,
44
- KinesisStreamStartPosition: () => KinesisStreamStartPosition,
45
- LaunchType: () => LaunchType,
46
- ListPipesCommand: () => ListPipesCommand,
47
- ListPipesRequestFilterSensitiveLog: () => ListPipesRequestFilterSensitiveLog,
48
- ListPipesResponseFilterSensitiveLog: () => ListPipesResponseFilterSensitiveLog,
49
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
50
- ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,
51
- LogLevel: () => LogLevel,
52
- MQBrokerAccessCredentials: () => MQBrokerAccessCredentials,
53
- MSKAccessCredentials: () => MSKAccessCredentials,
54
- MSKStartPosition: () => MSKStartPosition,
55
- MeasureValueType: () => MeasureValueType,
56
- NetworkConfigurationFilterSensitiveLog: () => NetworkConfigurationFilterSensitiveLog,
57
- NotFoundException: () => NotFoundException,
58
- OnPartialBatchItemFailureStreams: () => OnPartialBatchItemFailureStreams,
59
- PipeEnrichmentHttpParametersFilterSensitiveLog: () => PipeEnrichmentHttpParametersFilterSensitiveLog,
60
- PipeEnrichmentParametersFilterSensitiveLog: () => PipeEnrichmentParametersFilterSensitiveLog,
61
- PipeSourceActiveMQBrokerParametersFilterSensitiveLog: () => PipeSourceActiveMQBrokerParametersFilterSensitiveLog,
62
- PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog: () => PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog,
63
- PipeSourceParametersFilterSensitiveLog: () => PipeSourceParametersFilterSensitiveLog,
64
- PipeSourceRabbitMQBrokerParametersFilterSensitiveLog: () => PipeSourceRabbitMQBrokerParametersFilterSensitiveLog,
65
- PipeSourceSelfManagedKafkaParametersFilterSensitiveLog: () => PipeSourceSelfManagedKafkaParametersFilterSensitiveLog,
66
- PipeState: () => PipeState,
67
- PipeTargetEcsTaskParametersFilterSensitiveLog: () => PipeTargetEcsTaskParametersFilterSensitiveLog,
68
- PipeTargetEventBridgeEventBusParametersFilterSensitiveLog: () => PipeTargetEventBridgeEventBusParametersFilterSensitiveLog,
69
- PipeTargetHttpParametersFilterSensitiveLog: () => PipeTargetHttpParametersFilterSensitiveLog,
70
- PipeTargetInvocationType: () => PipeTargetInvocationType,
71
- PipeTargetKinesisStreamParametersFilterSensitiveLog: () => PipeTargetKinesisStreamParametersFilterSensitiveLog,
72
- PipeTargetParametersFilterSensitiveLog: () => PipeTargetParametersFilterSensitiveLog,
73
- PipeTargetRedshiftDataParametersFilterSensitiveLog: () => PipeTargetRedshiftDataParametersFilterSensitiveLog,
74
- PipeTargetSageMakerPipelineParametersFilterSensitiveLog: () => PipeTargetSageMakerPipelineParametersFilterSensitiveLog,
75
- PipeTargetSqsQueueParametersFilterSensitiveLog: () => PipeTargetSqsQueueParametersFilterSensitiveLog,
76
- Pipes: () => Pipes,
77
- PipesClient: () => PipesClient,
78
- PipesServiceException: () => PipesServiceException,
79
- PlacementConstraintFilterSensitiveLog: () => PlacementConstraintFilterSensitiveLog,
80
- PlacementConstraintType: () => PlacementConstraintType,
81
- PlacementStrategyFilterSensitiveLog: () => PlacementStrategyFilterSensitiveLog,
82
- PlacementStrategyType: () => PlacementStrategyType,
83
- PropagateTags: () => PropagateTags,
84
- RequestedPipeState: () => RequestedPipeState,
85
- RequestedPipeStateDescribeResponse: () => RequestedPipeStateDescribeResponse,
86
- S3OutputFormat: () => S3OutputFormat,
87
- SageMakerPipelineParameterFilterSensitiveLog: () => SageMakerPipelineParameterFilterSensitiveLog,
88
- SelfManagedKafkaAccessConfigurationCredentials: () => SelfManagedKafkaAccessConfigurationCredentials,
89
- SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog: () => SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog,
90
- SelfManagedKafkaStartPosition: () => SelfManagedKafkaStartPosition,
91
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
92
- StartPipeCommand: () => StartPipeCommand,
93
- StopPipeCommand: () => StopPipeCommand,
94
- TagFilterSensitiveLog: () => TagFilterSensitiveLog,
95
- TagResourceCommand: () => TagResourceCommand,
96
- TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,
97
- ThrottlingException: () => ThrottlingException,
98
- TimeFieldType: () => TimeFieldType,
99
- UntagResourceCommand: () => UntagResourceCommand,
100
- UpdatePipeCommand: () => UpdatePipeCommand,
101
- UpdatePipeRequestFilterSensitiveLog: () => UpdatePipeRequestFilterSensitiveLog,
102
- UpdatePipeSourceParametersFilterSensitiveLog: () => UpdatePipeSourceParametersFilterSensitiveLog,
103
- UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog: () => UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog,
104
- ValidationException: () => ValidationException,
105
- __Client: () => import_smithy_client.Client,
106
- paginateListPipes: () => paginateListPipes
107
- });
108
- module.exports = __toCommonJS(index_exports);
109
-
110
- // src/PipesClient.ts
111
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
112
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
113
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
114
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
115
- var import_config_resolver = require("@smithy/config-resolver");
116
- var import_core = require("@smithy/core");
117
- var import_middleware_content_length = require("@smithy/middleware-content-length");
118
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
119
- var import_middleware_retry = require("@smithy/middleware-retry");
120
-
121
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
122
-
123
- // src/endpoint/EndpointParameters.ts
124
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
125
- return Object.assign(options, {
126
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
127
- useFipsEndpoint: options.useFipsEndpoint ?? false,
128
- defaultSigningName: "pipes"
129
- });
130
- }, "resolveClientEndpointParameters");
131
- var commonParams = {
132
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
133
- Endpoint: { type: "builtInParams", name: "endpoint" },
134
- Region: { type: "builtInParams", name: "region" },
135
- 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: "pipes",
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" },
136
32
  };
137
33
 
138
- // src/PipesClient.ts
139
- 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
+ };
140
72
 
141
- // src/runtimeExtensions.ts
142
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
143
- var import_protocol_http = require("@smithy/protocol-http");
144
- 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
+ };
145
78
 
146
- // src/auth/httpAuthExtensionConfiguration.ts
147
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
148
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
149
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
150
- let _credentials = runtimeConfig.credentials;
151
- return {
152
- setHttpAuthScheme(httpAuthScheme) {
153
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
154
- if (index === -1) {
155
- _httpAuthSchemes.push(httpAuthScheme);
156
- } else {
157
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
158
- }
159
- },
160
- httpAuthSchemes() {
161
- return _httpAuthSchemes;
162
- },
163
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
164
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
165
- },
166
- httpAuthSchemeProvider() {
167
- return _httpAuthSchemeProvider;
168
- },
169
- setCredentials(credentials) {
170
- _credentials = credentials;
171
- },
172
- credentials() {
173
- return _credentials;
79
+ class PipesClient 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.defaultPipesHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
174
107
  }
175
- };
176
- }, "getHttpAuthExtensionConfiguration");
177
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
178
- return {
179
- httpAuthSchemes: config.httpAuthSchemes(),
180
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
181
- credentials: config.credentials()
182
- };
183
- }, "resolveHttpAuthRuntimeConfig");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
184
112
 
185
- // src/runtimeExtensions.ts
186
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
187
- const extensionConfiguration = Object.assign(
188
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
189
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
190
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
191
- getHttpAuthExtensionConfiguration(runtimeConfig)
192
- );
193
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
194
- return Object.assign(
195
- runtimeConfig,
196
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
197
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
198
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
199
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
200
- );
201
- }, "resolveRuntimeExtensions");
113
+ class PipesServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, PipesServiceException.prototype);
117
+ }
118
+ }
202
119
 
203
- // src/PipesClient.ts
204
- var PipesClient = class extends import_smithy_client.Client {
205
- static {
206
- __name(this, "PipesClient");
207
- }
208
- /**
209
- * The resolved configuration of PipesClient class. This is resolved and normalized from the {@link PipesClientConfig | constructor configuration interface}.
210
- */
211
- config;
212
- constructor(...[configuration]) {
213
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
214
- super(_config_0);
215
- this.initConfig = _config_0;
216
- const _config_1 = resolveClientEndpointParameters(_config_0);
217
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
218
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
219
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
220
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
221
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
222
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
223
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
224
- this.config = _config_8;
225
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
226
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
227
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
228
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
229
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
230
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
231
- this.middlewareStack.use(
232
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
233
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultPipesHttpAuthSchemeParametersProvider,
234
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
235
- "aws.auth#sigv4": config.credentials
236
- }), "identityProviderConfigProvider")
237
- })
238
- );
239
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
240
- }
241
- /**
242
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
243
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
244
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
245
- */
246
- destroy() {
247
- super.destroy();
248
- }
120
+ const AssignPublicIp = {
121
+ DISABLED: "DISABLED",
122
+ ENABLED: "ENABLED",
249
123
  };
250
-
251
- // src/Pipes.ts
252
-
253
-
254
- // src/commands/CreatePipeCommand.ts
255
-
256
- var import_middleware_serde = require("@smithy/middleware-serde");
257
-
258
-
259
- // src/models/models_0.ts
260
-
261
-
262
- // src/models/PipesServiceException.ts
263
-
264
- var PipesServiceException = class _PipesServiceException extends import_smithy_client.ServiceException {
265
- static {
266
- __name(this, "PipesServiceException");
267
- }
268
- /**
269
- * @internal
270
- */
271
- constructor(options) {
272
- super(options);
273
- Object.setPrototypeOf(this, _PipesServiceException.prototype);
274
- }
124
+ const BatchResourceRequirementType = {
125
+ GPU: "GPU",
126
+ MEMORY: "MEMORY",
127
+ VCPU: "VCPU",
128
+ };
129
+ const BatchJobDependencyType = {
130
+ N_TO_N: "N_TO_N",
131
+ SEQUENTIAL: "SEQUENTIAL",
132
+ };
133
+ class ConflictException extends PipesServiceException {
134
+ name = "ConflictException";
135
+ $fault = "client";
136
+ resourceId;
137
+ resourceType;
138
+ constructor(opts) {
139
+ super({
140
+ name: "ConflictException",
141
+ $fault: "client",
142
+ ...opts,
143
+ });
144
+ Object.setPrototypeOf(this, ConflictException.prototype);
145
+ this.resourceId = opts.resourceId;
146
+ this.resourceType = opts.resourceType;
147
+ }
148
+ }
149
+ const RequestedPipeState = {
150
+ RUNNING: "RUNNING",
151
+ STOPPED: "STOPPED",
152
+ };
153
+ const IncludeExecutionDataOption = {
154
+ ALL: "ALL",
155
+ };
156
+ const LogLevel = {
157
+ ERROR: "ERROR",
158
+ INFO: "INFO",
159
+ OFF: "OFF",
160
+ TRACE: "TRACE",
161
+ };
162
+ const S3OutputFormat = {
163
+ JSON: "json",
164
+ PLAIN: "plain",
165
+ W3C: "w3c",
166
+ };
167
+ exports.MQBrokerAccessCredentials = void 0;
168
+ (function (MQBrokerAccessCredentials) {
169
+ MQBrokerAccessCredentials.visit = (value, visitor) => {
170
+ if (value.BasicAuth !== undefined)
171
+ return visitor.BasicAuth(value.BasicAuth);
172
+ return visitor._(value.$unknown[0], value.$unknown[1]);
173
+ };
174
+ })(exports.MQBrokerAccessCredentials || (exports.MQBrokerAccessCredentials = {}));
175
+ const OnPartialBatchItemFailureStreams = {
176
+ AUTOMATIC_BISECT: "AUTOMATIC_BISECT",
177
+ };
178
+ const DynamoDBStreamStartPosition = {
179
+ LATEST: "LATEST",
180
+ TRIM_HORIZON: "TRIM_HORIZON",
181
+ };
182
+ const KinesisStreamStartPosition = {
183
+ AT_TIMESTAMP: "AT_TIMESTAMP",
184
+ LATEST: "LATEST",
185
+ TRIM_HORIZON: "TRIM_HORIZON",
186
+ };
187
+ exports.MSKAccessCredentials = void 0;
188
+ (function (MSKAccessCredentials) {
189
+ MSKAccessCredentials.visit = (value, visitor) => {
190
+ if (value.SaslScram512Auth !== undefined)
191
+ return visitor.SaslScram512Auth(value.SaslScram512Auth);
192
+ if (value.ClientCertificateTlsAuth !== undefined)
193
+ return visitor.ClientCertificateTlsAuth(value.ClientCertificateTlsAuth);
194
+ return visitor._(value.$unknown[0], value.$unknown[1]);
195
+ };
196
+ })(exports.MSKAccessCredentials || (exports.MSKAccessCredentials = {}));
197
+ const MSKStartPosition = {
198
+ LATEST: "LATEST",
199
+ TRIM_HORIZON: "TRIM_HORIZON",
200
+ };
201
+ exports.SelfManagedKafkaAccessConfigurationCredentials = void 0;
202
+ (function (SelfManagedKafkaAccessConfigurationCredentials) {
203
+ SelfManagedKafkaAccessConfigurationCredentials.visit = (value, visitor) => {
204
+ if (value.BasicAuth !== undefined)
205
+ return visitor.BasicAuth(value.BasicAuth);
206
+ if (value.SaslScram512Auth !== undefined)
207
+ return visitor.SaslScram512Auth(value.SaslScram512Auth);
208
+ if (value.SaslScram256Auth !== undefined)
209
+ return visitor.SaslScram256Auth(value.SaslScram256Auth);
210
+ if (value.ClientCertificateTlsAuth !== undefined)
211
+ return visitor.ClientCertificateTlsAuth(value.ClientCertificateTlsAuth);
212
+ return visitor._(value.$unknown[0], value.$unknown[1]);
213
+ };
214
+ })(exports.SelfManagedKafkaAccessConfigurationCredentials || (exports.SelfManagedKafkaAccessConfigurationCredentials = {}));
215
+ const SelfManagedKafkaStartPosition = {
216
+ LATEST: "LATEST",
217
+ TRIM_HORIZON: "TRIM_HORIZON",
218
+ };
219
+ const LaunchType = {
220
+ EC2: "EC2",
221
+ EXTERNAL: "EXTERNAL",
222
+ FARGATE: "FARGATE",
223
+ };
224
+ const EcsEnvironmentFileType = {
225
+ s3: "s3",
226
+ };
227
+ const EcsResourceRequirementType = {
228
+ GPU: "GPU",
229
+ InferenceAccelerator: "InferenceAccelerator",
230
+ };
231
+ const PlacementConstraintType = {
232
+ DISTINCT_INSTANCE: "distinctInstance",
233
+ MEMBER_OF: "memberOf",
234
+ };
235
+ const PlacementStrategyType = {
236
+ BINPACK: "binpack",
237
+ RANDOM: "random",
238
+ SPREAD: "spread",
239
+ };
240
+ const PropagateTags = {
241
+ TASK_DEFINITION: "TASK_DEFINITION",
242
+ };
243
+ const PipeTargetInvocationType = {
244
+ FIRE_AND_FORGET: "FIRE_AND_FORGET",
245
+ REQUEST_RESPONSE: "REQUEST_RESPONSE",
246
+ };
247
+ const DimensionValueType = {
248
+ VARCHAR: "VARCHAR",
249
+ };
250
+ const EpochTimeUnit = {
251
+ MICROSECONDS: "MICROSECONDS",
252
+ MILLISECONDS: "MILLISECONDS",
253
+ NANOSECONDS: "NANOSECONDS",
254
+ SECONDS: "SECONDS",
255
+ };
256
+ const MeasureValueType = {
257
+ BIGINT: "BIGINT",
258
+ BOOLEAN: "BOOLEAN",
259
+ DOUBLE: "DOUBLE",
260
+ TIMESTAMP: "TIMESTAMP",
261
+ VARCHAR: "VARCHAR",
262
+ };
263
+ const TimeFieldType = {
264
+ EPOCH: "EPOCH",
265
+ TIMESTAMP_FORMAT: "TIMESTAMP_FORMAT",
266
+ };
267
+ const PipeState = {
268
+ CREATE_FAILED: "CREATE_FAILED",
269
+ CREATE_ROLLBACK_FAILED: "CREATE_ROLLBACK_FAILED",
270
+ CREATING: "CREATING",
271
+ DELETE_FAILED: "DELETE_FAILED",
272
+ DELETE_ROLLBACK_FAILED: "DELETE_ROLLBACK_FAILED",
273
+ DELETING: "DELETING",
274
+ RUNNING: "RUNNING",
275
+ STARTING: "STARTING",
276
+ START_FAILED: "START_FAILED",
277
+ STOPPED: "STOPPED",
278
+ STOPPING: "STOPPING",
279
+ STOP_FAILED: "STOP_FAILED",
280
+ UPDATE_FAILED: "UPDATE_FAILED",
281
+ UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED",
282
+ UPDATING: "UPDATING",
283
+ };
284
+ class InternalException extends PipesServiceException {
285
+ name = "InternalException";
286
+ $fault = "server";
287
+ retryAfterSeconds;
288
+ constructor(opts) {
289
+ super({
290
+ name: "InternalException",
291
+ $fault: "server",
292
+ ...opts,
293
+ });
294
+ Object.setPrototypeOf(this, InternalException.prototype);
295
+ this.retryAfterSeconds = opts.retryAfterSeconds;
296
+ }
297
+ }
298
+ class NotFoundException extends PipesServiceException {
299
+ name = "NotFoundException";
300
+ $fault = "client";
301
+ constructor(opts) {
302
+ super({
303
+ name: "NotFoundException",
304
+ $fault: "client",
305
+ ...opts,
306
+ });
307
+ Object.setPrototypeOf(this, NotFoundException.prototype);
308
+ }
309
+ }
310
+ class ServiceQuotaExceededException extends PipesServiceException {
311
+ name = "ServiceQuotaExceededException";
312
+ $fault = "client";
313
+ resourceId;
314
+ resourceType;
315
+ serviceCode;
316
+ quotaCode;
317
+ constructor(opts) {
318
+ super({
319
+ name: "ServiceQuotaExceededException",
320
+ $fault: "client",
321
+ ...opts,
322
+ });
323
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
324
+ this.resourceId = opts.resourceId;
325
+ this.resourceType = opts.resourceType;
326
+ this.serviceCode = opts.serviceCode;
327
+ this.quotaCode = opts.quotaCode;
328
+ }
329
+ }
330
+ class ThrottlingException extends PipesServiceException {
331
+ name = "ThrottlingException";
332
+ $fault = "client";
333
+ serviceCode;
334
+ quotaCode;
335
+ retryAfterSeconds;
336
+ constructor(opts) {
337
+ super({
338
+ name: "ThrottlingException",
339
+ $fault: "client",
340
+ ...opts,
341
+ });
342
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
343
+ this.serviceCode = opts.serviceCode;
344
+ this.quotaCode = opts.quotaCode;
345
+ this.retryAfterSeconds = opts.retryAfterSeconds;
346
+ }
347
+ }
348
+ class ValidationException extends PipesServiceException {
349
+ name = "ValidationException";
350
+ $fault = "client";
351
+ fieldList;
352
+ constructor(opts) {
353
+ super({
354
+ name: "ValidationException",
355
+ $fault: "client",
356
+ ...opts,
357
+ });
358
+ Object.setPrototypeOf(this, ValidationException.prototype);
359
+ this.fieldList = opts.fieldList;
360
+ }
361
+ }
362
+ const RequestedPipeStateDescribeResponse = {
363
+ DELETED: "DELETED",
364
+ RUNNING: "RUNNING",
365
+ STOPPED: "STOPPED",
275
366
  };
367
+ const AwsVpcConfigurationFilterSensitiveLog = (obj) => ({
368
+ ...obj,
369
+ ...(obj.Subnets && { Subnets: smithyClient.SENSITIVE_STRING }),
370
+ ...(obj.SecurityGroups && { SecurityGroups: smithyClient.SENSITIVE_STRING }),
371
+ });
372
+ const CapacityProviderStrategyItemFilterSensitiveLog = (obj) => ({
373
+ ...obj,
374
+ ...(obj.capacityProvider && { capacityProvider: smithyClient.SENSITIVE_STRING }),
375
+ });
376
+ const PipeEnrichmentHttpParametersFilterSensitiveLog = (obj) => ({
377
+ ...obj,
378
+ ...(obj.PathParameterValues && { PathParameterValues: smithyClient.SENSITIVE_STRING }),
379
+ ...(obj.HeaderParameters && { HeaderParameters: smithyClient.SENSITIVE_STRING }),
380
+ ...(obj.QueryStringParameters && { QueryStringParameters: smithyClient.SENSITIVE_STRING }),
381
+ });
382
+ const PipeEnrichmentParametersFilterSensitiveLog = (obj) => ({
383
+ ...obj,
384
+ ...(obj.InputTemplate && { InputTemplate: smithyClient.SENSITIVE_STRING }),
385
+ ...(obj.HttpParameters && { HttpParameters: PipeEnrichmentHttpParametersFilterSensitiveLog(obj.HttpParameters) }),
386
+ });
387
+ const PipeSourceActiveMQBrokerParametersFilterSensitiveLog = (obj) => ({
388
+ ...obj,
389
+ ...(obj.Credentials && { Credentials: obj.Credentials }),
390
+ ...(obj.QueueName && { QueueName: smithyClient.SENSITIVE_STRING }),
391
+ });
392
+ const FilterFilterSensitiveLog = (obj) => ({
393
+ ...obj,
394
+ ...(obj.Pattern && { Pattern: smithyClient.SENSITIVE_STRING }),
395
+ });
396
+ const FilterCriteriaFilterSensitiveLog = (obj) => ({
397
+ ...obj,
398
+ ...(obj.Filters && { Filters: obj.Filters.map((item) => FilterFilterSensitiveLog(item)) }),
399
+ });
400
+ const PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog = (obj) => ({
401
+ ...obj,
402
+ ...(obj.TopicName && { TopicName: smithyClient.SENSITIVE_STRING }),
403
+ ...(obj.ConsumerGroupID && { ConsumerGroupID: smithyClient.SENSITIVE_STRING }),
404
+ ...(obj.Credentials && { Credentials: obj.Credentials }),
405
+ });
406
+ const PipeSourceRabbitMQBrokerParametersFilterSensitiveLog = (obj) => ({
407
+ ...obj,
408
+ ...(obj.Credentials && { Credentials: obj.Credentials }),
409
+ ...(obj.QueueName && { QueueName: smithyClient.SENSITIVE_STRING }),
410
+ ...(obj.VirtualHost && { VirtualHost: smithyClient.SENSITIVE_STRING }),
411
+ });
412
+ const SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog = (obj) => ({
413
+ ...obj,
414
+ ...(obj.Subnets && { Subnets: smithyClient.SENSITIVE_STRING }),
415
+ ...(obj.SecurityGroup && { SecurityGroup: smithyClient.SENSITIVE_STRING }),
416
+ });
417
+ const PipeSourceSelfManagedKafkaParametersFilterSensitiveLog = (obj) => ({
418
+ ...obj,
419
+ ...(obj.TopicName && { TopicName: smithyClient.SENSITIVE_STRING }),
420
+ ...(obj.AdditionalBootstrapServers && { AdditionalBootstrapServers: smithyClient.SENSITIVE_STRING }),
421
+ ...(obj.ConsumerGroupID && { ConsumerGroupID: smithyClient.SENSITIVE_STRING }),
422
+ ...(obj.Credentials && { Credentials: obj.Credentials }),
423
+ ...(obj.Vpc && { Vpc: SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog(obj.Vpc) }),
424
+ });
425
+ const PipeSourceParametersFilterSensitiveLog = (obj) => ({
426
+ ...obj,
427
+ ...(obj.FilterCriteria && { FilterCriteria: FilterCriteriaFilterSensitiveLog(obj.FilterCriteria) }),
428
+ ...(obj.ActiveMQBrokerParameters && {
429
+ ActiveMQBrokerParameters: PipeSourceActiveMQBrokerParametersFilterSensitiveLog(obj.ActiveMQBrokerParameters),
430
+ }),
431
+ ...(obj.RabbitMQBrokerParameters && {
432
+ RabbitMQBrokerParameters: PipeSourceRabbitMQBrokerParametersFilterSensitiveLog(obj.RabbitMQBrokerParameters),
433
+ }),
434
+ ...(obj.ManagedStreamingKafkaParameters && {
435
+ ManagedStreamingKafkaParameters: PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog(obj.ManagedStreamingKafkaParameters),
436
+ }),
437
+ ...(obj.SelfManagedKafkaParameters && {
438
+ SelfManagedKafkaParameters: PipeSourceSelfManagedKafkaParametersFilterSensitiveLog(obj.SelfManagedKafkaParameters),
439
+ }),
440
+ });
441
+ const NetworkConfigurationFilterSensitiveLog = (obj) => ({
442
+ ...obj,
443
+ ...(obj.awsvpcConfiguration && {
444
+ awsvpcConfiguration: AwsVpcConfigurationFilterSensitiveLog(obj.awsvpcConfiguration),
445
+ }),
446
+ });
447
+ const PlacementConstraintFilterSensitiveLog = (obj) => ({
448
+ ...obj,
449
+ ...(obj.expression && { expression: smithyClient.SENSITIVE_STRING }),
450
+ });
451
+ const PlacementStrategyFilterSensitiveLog = (obj) => ({
452
+ ...obj,
453
+ ...(obj.field && { field: smithyClient.SENSITIVE_STRING }),
454
+ });
455
+ const TagFilterSensitiveLog = (obj) => ({
456
+ ...obj,
457
+ ...(obj.Value && { Value: smithyClient.SENSITIVE_STRING }),
458
+ });
459
+ const PipeTargetEcsTaskParametersFilterSensitiveLog = (obj) => ({
460
+ ...obj,
461
+ ...(obj.NetworkConfiguration && {
462
+ NetworkConfiguration: NetworkConfigurationFilterSensitiveLog(obj.NetworkConfiguration),
463
+ }),
464
+ ...(obj.CapacityProviderStrategy && {
465
+ CapacityProviderStrategy: obj.CapacityProviderStrategy.map((item) => CapacityProviderStrategyItemFilterSensitiveLog(item)),
466
+ }),
467
+ ...(obj.PlacementConstraints && {
468
+ PlacementConstraints: obj.PlacementConstraints.map((item) => PlacementConstraintFilterSensitiveLog(item)),
469
+ }),
470
+ ...(obj.PlacementStrategy && {
471
+ PlacementStrategy: obj.PlacementStrategy.map((item) => PlacementStrategyFilterSensitiveLog(item)),
472
+ }),
473
+ ...(obj.ReferenceId && { ReferenceId: smithyClient.SENSITIVE_STRING }),
474
+ ...(obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }),
475
+ });
476
+ const PipeTargetEventBridgeEventBusParametersFilterSensitiveLog = (obj) => ({
477
+ ...obj,
478
+ ...(obj.EndpointId && { EndpointId: smithyClient.SENSITIVE_STRING }),
479
+ ...(obj.DetailType && { DetailType: smithyClient.SENSITIVE_STRING }),
480
+ ...(obj.Source && { Source: smithyClient.SENSITIVE_STRING }),
481
+ });
482
+ const PipeTargetHttpParametersFilterSensitiveLog = (obj) => ({
483
+ ...obj,
484
+ ...(obj.PathParameterValues && { PathParameterValues: smithyClient.SENSITIVE_STRING }),
485
+ ...(obj.HeaderParameters && { HeaderParameters: smithyClient.SENSITIVE_STRING }),
486
+ ...(obj.QueryStringParameters && { QueryStringParameters: smithyClient.SENSITIVE_STRING }),
487
+ });
488
+ const PipeTargetKinesisStreamParametersFilterSensitiveLog = (obj) => ({
489
+ ...obj,
490
+ ...(obj.PartitionKey && { PartitionKey: smithyClient.SENSITIVE_STRING }),
491
+ });
492
+ const PipeTargetRedshiftDataParametersFilterSensitiveLog = (obj) => ({
493
+ ...obj,
494
+ ...(obj.Database && { Database: smithyClient.SENSITIVE_STRING }),
495
+ ...(obj.DbUser && { DbUser: smithyClient.SENSITIVE_STRING }),
496
+ ...(obj.StatementName && { StatementName: smithyClient.SENSITIVE_STRING }),
497
+ ...(obj.Sqls && { Sqls: smithyClient.SENSITIVE_STRING }),
498
+ });
499
+ const SageMakerPipelineParameterFilterSensitiveLog = (obj) => ({
500
+ ...obj,
501
+ ...(obj.Name && { Name: smithyClient.SENSITIVE_STRING }),
502
+ ...(obj.Value && { Value: smithyClient.SENSITIVE_STRING }),
503
+ });
504
+ const PipeTargetSageMakerPipelineParametersFilterSensitiveLog = (obj) => ({
505
+ ...obj,
506
+ ...(obj.PipelineParameterList && {
507
+ PipelineParameterList: obj.PipelineParameterList.map((item) => SageMakerPipelineParameterFilterSensitiveLog(item)),
508
+ }),
509
+ });
510
+ const PipeTargetSqsQueueParametersFilterSensitiveLog = (obj) => ({
511
+ ...obj,
512
+ ...(obj.MessageGroupId && { MessageGroupId: smithyClient.SENSITIVE_STRING }),
513
+ ...(obj.MessageDeduplicationId && { MessageDeduplicationId: smithyClient.SENSITIVE_STRING }),
514
+ });
515
+ const PipeTargetParametersFilterSensitiveLog = (obj) => ({
516
+ ...obj,
517
+ ...(obj.InputTemplate && { InputTemplate: smithyClient.SENSITIVE_STRING }),
518
+ ...(obj.KinesisStreamParameters && {
519
+ KinesisStreamParameters: PipeTargetKinesisStreamParametersFilterSensitiveLog(obj.KinesisStreamParameters),
520
+ }),
521
+ ...(obj.EcsTaskParameters && {
522
+ EcsTaskParameters: PipeTargetEcsTaskParametersFilterSensitiveLog(obj.EcsTaskParameters),
523
+ }),
524
+ ...(obj.SqsQueueParameters && {
525
+ SqsQueueParameters: PipeTargetSqsQueueParametersFilterSensitiveLog(obj.SqsQueueParameters),
526
+ }),
527
+ ...(obj.HttpParameters && { HttpParameters: PipeTargetHttpParametersFilterSensitiveLog(obj.HttpParameters) }),
528
+ ...(obj.RedshiftDataParameters && {
529
+ RedshiftDataParameters: PipeTargetRedshiftDataParametersFilterSensitiveLog(obj.RedshiftDataParameters),
530
+ }),
531
+ ...(obj.SageMakerPipelineParameters && {
532
+ SageMakerPipelineParameters: PipeTargetSageMakerPipelineParametersFilterSensitiveLog(obj.SageMakerPipelineParameters),
533
+ }),
534
+ ...(obj.EventBridgeEventBusParameters && {
535
+ EventBridgeEventBusParameters: PipeTargetEventBridgeEventBusParametersFilterSensitiveLog(obj.EventBridgeEventBusParameters),
536
+ }),
537
+ });
538
+ const CreatePipeRequestFilterSensitiveLog = (obj) => ({
539
+ ...obj,
540
+ ...(obj.Description && { Description: smithyClient.SENSITIVE_STRING }),
541
+ ...(obj.SourceParameters && { SourceParameters: PipeSourceParametersFilterSensitiveLog(obj.SourceParameters) }),
542
+ ...(obj.EnrichmentParameters && {
543
+ EnrichmentParameters: PipeEnrichmentParametersFilterSensitiveLog(obj.EnrichmentParameters),
544
+ }),
545
+ ...(obj.TargetParameters && { TargetParameters: PipeTargetParametersFilterSensitiveLog(obj.TargetParameters) }),
546
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
547
+ });
548
+ const DescribePipeResponseFilterSensitiveLog = (obj) => ({
549
+ ...obj,
550
+ ...(obj.Description && { Description: smithyClient.SENSITIVE_STRING }),
551
+ ...(obj.SourceParameters && { SourceParameters: PipeSourceParametersFilterSensitiveLog(obj.SourceParameters) }),
552
+ ...(obj.EnrichmentParameters && {
553
+ EnrichmentParameters: PipeEnrichmentParametersFilterSensitiveLog(obj.EnrichmentParameters),
554
+ }),
555
+ ...(obj.TargetParameters && { TargetParameters: PipeTargetParametersFilterSensitiveLog(obj.TargetParameters) }),
556
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
557
+ });
558
+ const ListPipesRequestFilterSensitiveLog = (obj) => ({
559
+ ...obj,
560
+ ...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
561
+ });
562
+ const ListPipesResponseFilterSensitiveLog = (obj) => ({
563
+ ...obj,
564
+ ...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
565
+ });
566
+ const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
567
+ ...obj,
568
+ ...(obj.tags && { tags: smithyClient.SENSITIVE_STRING }),
569
+ });
570
+ const UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog = (obj) => ({
571
+ ...obj,
572
+ ...(obj.Credentials && { Credentials: obj.Credentials }),
573
+ ...(obj.Vpc && { Vpc: SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog(obj.Vpc) }),
574
+ });
575
+ const UpdatePipeSourceParametersFilterSensitiveLog = (obj) => ({
576
+ ...obj,
577
+ ...(obj.FilterCriteria && { FilterCriteria: FilterCriteriaFilterSensitiveLog(obj.FilterCriteria) }),
578
+ ...(obj.ActiveMQBrokerParameters && { ActiveMQBrokerParameters: obj.ActiveMQBrokerParameters }),
579
+ ...(obj.RabbitMQBrokerParameters && { RabbitMQBrokerParameters: obj.RabbitMQBrokerParameters }),
580
+ ...(obj.ManagedStreamingKafkaParameters && { ManagedStreamingKafkaParameters: obj.ManagedStreamingKafkaParameters }),
581
+ ...(obj.SelfManagedKafkaParameters && {
582
+ SelfManagedKafkaParameters: UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog(obj.SelfManagedKafkaParameters),
583
+ }),
584
+ });
585
+ const UpdatePipeRequestFilterSensitiveLog = (obj) => ({
586
+ ...obj,
587
+ ...(obj.Description && { Description: smithyClient.SENSITIVE_STRING }),
588
+ ...(obj.SourceParameters && { SourceParameters: UpdatePipeSourceParametersFilterSensitiveLog(obj.SourceParameters) }),
589
+ ...(obj.EnrichmentParameters && {
590
+ EnrichmentParameters: PipeEnrichmentParametersFilterSensitiveLog(obj.EnrichmentParameters),
591
+ }),
592
+ ...(obj.TargetParameters && { TargetParameters: PipeTargetParametersFilterSensitiveLog(obj.TargetParameters) }),
593
+ });
594
+ const TagResourceRequestFilterSensitiveLog = (obj) => ({
595
+ ...obj,
596
+ ...(obj.tags && { tags: smithyClient.SENSITIVE_STRING }),
597
+ });
276
598
 
277
- // src/models/models_0.ts
278
- var AssignPublicIp = {
279
- DISABLED: "DISABLED",
280
- ENABLED: "ENABLED"
281
- };
282
- var BatchResourceRequirementType = {
283
- GPU: "GPU",
284
- MEMORY: "MEMORY",
285
- VCPU: "VCPU"
286
- };
287
- var BatchJobDependencyType = {
288
- N_TO_N: "N_TO_N",
289
- SEQUENTIAL: "SEQUENTIAL"
290
- };
291
- var ConflictException = class _ConflictException extends PipesServiceException {
292
- static {
293
- __name(this, "ConflictException");
294
- }
295
- name = "ConflictException";
296
- $fault = "client";
297
- /**
298
- * <p>The ID of the resource that caused the exception.</p>
299
- * @public
300
- */
301
- resourceId;
302
- /**
303
- * <p>The type of resource that caused the exception.</p>
304
- * @public
305
- */
306
- resourceType;
307
- /**
308
- * @internal
309
- */
310
- constructor(opts) {
311
- super({
312
- name: "ConflictException",
313
- $fault: "client",
314
- ...opts
599
+ const se_CreatePipeCommand = async (input, context) => {
600
+ const b = core.requestBuilder(input, context);
601
+ const headers = {
602
+ "content-type": "application/json",
603
+ };
604
+ b.bp("/v1/pipes/{Name}");
605
+ b.p("Name", () => input.Name, "{Name}", false);
606
+ let body;
607
+ body = JSON.stringify(smithyClient.take(input, {
608
+ Description: [],
609
+ DesiredState: [],
610
+ Enrichment: [],
611
+ EnrichmentParameters: (_) => smithyClient._json(_),
612
+ KmsKeyIdentifier: [],
613
+ LogConfiguration: (_) => smithyClient._json(_),
614
+ RoleArn: [],
615
+ Source: [],
616
+ SourceParameters: (_) => se_PipeSourceParameters(_),
617
+ Tags: (_) => smithyClient._json(_),
618
+ Target: [],
619
+ TargetParameters: (_) => smithyClient._json(_),
620
+ }));
621
+ b.m("POST").h(headers).b(body);
622
+ return b.build();
623
+ };
624
+ const se_DeletePipeCommand = async (input, context) => {
625
+ const b = core.requestBuilder(input, context);
626
+ const headers = {};
627
+ b.bp("/v1/pipes/{Name}");
628
+ b.p("Name", () => input.Name, "{Name}", false);
629
+ let body;
630
+ b.m("DELETE").h(headers).b(body);
631
+ return b.build();
632
+ };
633
+ const se_DescribePipeCommand = async (input, context) => {
634
+ const b = core.requestBuilder(input, context);
635
+ const headers = {};
636
+ b.bp("/v1/pipes/{Name}");
637
+ b.p("Name", () => input.Name, "{Name}", false);
638
+ let body;
639
+ b.m("GET").h(headers).b(body);
640
+ return b.build();
641
+ };
642
+ const se_ListPipesCommand = async (input, context) => {
643
+ const b = core.requestBuilder(input, context);
644
+ const headers = {};
645
+ b.bp("/v1/pipes");
646
+ const query = smithyClient.map({
647
+ [_NP]: [, input[_NP]],
648
+ [_DS]: [, input[_DS]],
649
+ [_CS]: [, input[_CS]],
650
+ [_SP]: [, input[_SP]],
651
+ [_TP]: [, input[_TP]],
652
+ [_NT]: [, input[_NT]],
653
+ [_L]: [() => input.Limit !== void 0, () => input[_L].toString()],
315
654
  });
316
- Object.setPrototypeOf(this, _ConflictException.prototype);
317
- this.resourceId = opts.resourceId;
318
- this.resourceType = opts.resourceType;
319
- }
320
- };
321
- var RequestedPipeState = {
322
- RUNNING: "RUNNING",
323
- STOPPED: "STOPPED"
324
- };
325
- var IncludeExecutionDataOption = {
326
- ALL: "ALL"
327
- };
328
- var LogLevel = {
329
- ERROR: "ERROR",
330
- INFO: "INFO",
331
- OFF: "OFF",
332
- TRACE: "TRACE"
333
- };
334
- var S3OutputFormat = {
335
- JSON: "json",
336
- PLAIN: "plain",
337
- W3C: "w3c"
338
- };
339
- var MQBrokerAccessCredentials;
340
- ((MQBrokerAccessCredentials3) => {
341
- MQBrokerAccessCredentials3.visit = /* @__PURE__ */ __name((value, visitor) => {
342
- if (value.BasicAuth !== void 0) return visitor.BasicAuth(value.BasicAuth);
343
- return visitor._(value.$unknown[0], value.$unknown[1]);
344
- }, "visit");
345
- })(MQBrokerAccessCredentials || (MQBrokerAccessCredentials = {}));
346
- var OnPartialBatchItemFailureStreams = {
347
- AUTOMATIC_BISECT: "AUTOMATIC_BISECT"
348
- };
349
- var DynamoDBStreamStartPosition = {
350
- LATEST: "LATEST",
351
- TRIM_HORIZON: "TRIM_HORIZON"
352
- };
353
- var KinesisStreamStartPosition = {
354
- AT_TIMESTAMP: "AT_TIMESTAMP",
355
- LATEST: "LATEST",
356
- TRIM_HORIZON: "TRIM_HORIZON"
357
- };
358
- var MSKAccessCredentials;
359
- ((MSKAccessCredentials3) => {
360
- MSKAccessCredentials3.visit = /* @__PURE__ */ __name((value, visitor) => {
361
- if (value.SaslScram512Auth !== void 0) return visitor.SaslScram512Auth(value.SaslScram512Auth);
362
- if (value.ClientCertificateTlsAuth !== void 0)
363
- return visitor.ClientCertificateTlsAuth(value.ClientCertificateTlsAuth);
364
- return visitor._(value.$unknown[0], value.$unknown[1]);
365
- }, "visit");
366
- })(MSKAccessCredentials || (MSKAccessCredentials = {}));
367
- var MSKStartPosition = {
368
- LATEST: "LATEST",
369
- TRIM_HORIZON: "TRIM_HORIZON"
370
- };
371
- var SelfManagedKafkaAccessConfigurationCredentials;
372
- ((SelfManagedKafkaAccessConfigurationCredentials3) => {
373
- SelfManagedKafkaAccessConfigurationCredentials3.visit = /* @__PURE__ */ __name((value, visitor) => {
374
- if (value.BasicAuth !== void 0) return visitor.BasicAuth(value.BasicAuth);
375
- if (value.SaslScram512Auth !== void 0) return visitor.SaslScram512Auth(value.SaslScram512Auth);
376
- if (value.SaslScram256Auth !== void 0) return visitor.SaslScram256Auth(value.SaslScram256Auth);
377
- if (value.ClientCertificateTlsAuth !== void 0)
378
- return visitor.ClientCertificateTlsAuth(value.ClientCertificateTlsAuth);
379
- return visitor._(value.$unknown[0], value.$unknown[1]);
380
- }, "visit");
381
- })(SelfManagedKafkaAccessConfigurationCredentials || (SelfManagedKafkaAccessConfigurationCredentials = {}));
382
- var SelfManagedKafkaStartPosition = {
383
- LATEST: "LATEST",
384
- TRIM_HORIZON: "TRIM_HORIZON"
385
- };
386
- var LaunchType = {
387
- EC2: "EC2",
388
- EXTERNAL: "EXTERNAL",
389
- FARGATE: "FARGATE"
390
- };
391
- var EcsEnvironmentFileType = {
392
- s3: "s3"
393
- };
394
- var EcsResourceRequirementType = {
395
- GPU: "GPU",
396
- InferenceAccelerator: "InferenceAccelerator"
397
- };
398
- var PlacementConstraintType = {
399
- DISTINCT_INSTANCE: "distinctInstance",
400
- MEMBER_OF: "memberOf"
401
- };
402
- var PlacementStrategyType = {
403
- BINPACK: "binpack",
404
- RANDOM: "random",
405
- SPREAD: "spread"
406
- };
407
- var PropagateTags = {
408
- TASK_DEFINITION: "TASK_DEFINITION"
409
- };
410
- var PipeTargetInvocationType = {
411
- FIRE_AND_FORGET: "FIRE_AND_FORGET",
412
- REQUEST_RESPONSE: "REQUEST_RESPONSE"
413
- };
414
- var DimensionValueType = {
415
- VARCHAR: "VARCHAR"
416
- };
417
- var EpochTimeUnit = {
418
- MICROSECONDS: "MICROSECONDS",
419
- MILLISECONDS: "MILLISECONDS",
420
- NANOSECONDS: "NANOSECONDS",
421
- SECONDS: "SECONDS"
422
- };
423
- var MeasureValueType = {
424
- BIGINT: "BIGINT",
425
- BOOLEAN: "BOOLEAN",
426
- DOUBLE: "DOUBLE",
427
- TIMESTAMP: "TIMESTAMP",
428
- VARCHAR: "VARCHAR"
429
- };
430
- var TimeFieldType = {
431
- EPOCH: "EPOCH",
432
- TIMESTAMP_FORMAT: "TIMESTAMP_FORMAT"
433
- };
434
- var PipeState = {
435
- CREATE_FAILED: "CREATE_FAILED",
436
- CREATE_ROLLBACK_FAILED: "CREATE_ROLLBACK_FAILED",
437
- CREATING: "CREATING",
438
- DELETE_FAILED: "DELETE_FAILED",
439
- DELETE_ROLLBACK_FAILED: "DELETE_ROLLBACK_FAILED",
440
- DELETING: "DELETING",
441
- RUNNING: "RUNNING",
442
- STARTING: "STARTING",
443
- START_FAILED: "START_FAILED",
444
- STOPPED: "STOPPED",
445
- STOPPING: "STOPPING",
446
- STOP_FAILED: "STOP_FAILED",
447
- UPDATE_FAILED: "UPDATE_FAILED",
448
- UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED",
449
- UPDATING: "UPDATING"
450
- };
451
- var InternalException = class _InternalException extends PipesServiceException {
452
- static {
453
- __name(this, "InternalException");
454
- }
455
- name = "InternalException";
456
- $fault = "server";
457
- /**
458
- * <p>The number of seconds to wait before retrying the action that caused the
459
- * exception.</p>
460
- * @public
461
- */
462
- retryAfterSeconds;
463
- /**
464
- * @internal
465
- */
466
- constructor(opts) {
467
- super({
468
- name: "InternalException",
469
- $fault: "server",
470
- ...opts
655
+ let body;
656
+ b.m("GET").h(headers).q(query).b(body);
657
+ return b.build();
658
+ };
659
+ const se_ListTagsForResourceCommand = async (input, context) => {
660
+ const b = core.requestBuilder(input, context);
661
+ const headers = {};
662
+ b.bp("/tags/{resourceArn}");
663
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
664
+ let body;
665
+ b.m("GET").h(headers).b(body);
666
+ return b.build();
667
+ };
668
+ const se_StartPipeCommand = async (input, context) => {
669
+ const b = core.requestBuilder(input, context);
670
+ const headers = {};
671
+ b.bp("/v1/pipes/{Name}/start");
672
+ b.p("Name", () => input.Name, "{Name}", false);
673
+ let body;
674
+ b.m("POST").h(headers).b(body);
675
+ return b.build();
676
+ };
677
+ const se_StopPipeCommand = async (input, context) => {
678
+ const b = core.requestBuilder(input, context);
679
+ const headers = {};
680
+ b.bp("/v1/pipes/{Name}/stop");
681
+ b.p("Name", () => input.Name, "{Name}", false);
682
+ let body;
683
+ b.m("POST").h(headers).b(body);
684
+ return b.build();
685
+ };
686
+ const se_TagResourceCommand = async (input, context) => {
687
+ const b = core.requestBuilder(input, context);
688
+ const headers = {
689
+ "content-type": "application/json",
690
+ };
691
+ b.bp("/tags/{resourceArn}");
692
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
693
+ let body;
694
+ body = JSON.stringify(smithyClient.take(input, {
695
+ tags: (_) => smithyClient._json(_),
696
+ }));
697
+ b.m("POST").h(headers).b(body);
698
+ return b.build();
699
+ };
700
+ const se_UntagResourceCommand = async (input, context) => {
701
+ const b = core.requestBuilder(input, context);
702
+ const headers = {};
703
+ b.bp("/tags/{resourceArn}");
704
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
705
+ const query = smithyClient.map({
706
+ [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
471
707
  });
472
- Object.setPrototypeOf(this, _InternalException.prototype);
473
- this.retryAfterSeconds = opts.retryAfterSeconds;
474
- }
475
- };
476
- var NotFoundException = class _NotFoundException extends PipesServiceException {
477
- static {
478
- __name(this, "NotFoundException");
479
- }
480
- name = "NotFoundException";
481
- $fault = "client";
482
- /**
483
- * @internal
484
- */
485
- constructor(opts) {
486
- super({
487
- name: "NotFoundException",
488
- $fault: "client",
489
- ...opts
708
+ let body;
709
+ b.m("DELETE").h(headers).q(query).b(body);
710
+ return b.build();
711
+ };
712
+ const se_UpdatePipeCommand = async (input, context) => {
713
+ const b = core.requestBuilder(input, context);
714
+ const headers = {
715
+ "content-type": "application/json",
716
+ };
717
+ b.bp("/v1/pipes/{Name}");
718
+ b.p("Name", () => input.Name, "{Name}", false);
719
+ let body;
720
+ body = JSON.stringify(smithyClient.take(input, {
721
+ Description: [],
722
+ DesiredState: [],
723
+ Enrichment: [],
724
+ EnrichmentParameters: (_) => smithyClient._json(_),
725
+ KmsKeyIdentifier: [],
726
+ LogConfiguration: (_) => smithyClient._json(_),
727
+ RoleArn: [],
728
+ SourceParameters: (_) => smithyClient._json(_),
729
+ Target: [],
730
+ TargetParameters: (_) => smithyClient._json(_),
731
+ }));
732
+ b.m("PUT").h(headers).b(body);
733
+ return b.build();
734
+ };
735
+ const de_CreatePipeCommand = async (output, context) => {
736
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
737
+ return de_CommandError(output, context);
738
+ }
739
+ const contents = smithyClient.map({
740
+ $metadata: deserializeMetadata(output),
490
741
  });
491
- Object.setPrototypeOf(this, _NotFoundException.prototype);
492
- }
493
- };
494
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends PipesServiceException {
495
- static {
496
- __name(this, "ServiceQuotaExceededException");
497
- }
498
- name = "ServiceQuotaExceededException";
499
- $fault = "client";
500
- /**
501
- * <p>The ID of the resource that caused the exception.</p>
502
- * @public
503
- */
504
- resourceId;
505
- /**
506
- * <p>The type of resource that caused the exception.</p>
507
- * @public
508
- */
509
- resourceType;
510
- /**
511
- * <p>The identifier of the service that caused the exception.</p>
512
- * @public
513
- */
514
- serviceCode;
515
- /**
516
- * <p>The identifier of the quota that caused the exception.</p>
517
- * @public
518
- */
519
- quotaCode;
520
- /**
521
- * @internal
522
- */
523
- constructor(opts) {
524
- super({
525
- name: "ServiceQuotaExceededException",
526
- $fault: "client",
527
- ...opts
742
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
743
+ const doc = smithyClient.take(data, {
744
+ Arn: smithyClient.expectString,
745
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
746
+ CurrentState: smithyClient.expectString,
747
+ DesiredState: smithyClient.expectString,
748
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
749
+ Name: smithyClient.expectString,
528
750
  });
529
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
530
- this.resourceId = opts.resourceId;
531
- this.resourceType = opts.resourceType;
532
- this.serviceCode = opts.serviceCode;
533
- this.quotaCode = opts.quotaCode;
534
- }
535
- };
536
- var ThrottlingException = class _ThrottlingException extends PipesServiceException {
537
- static {
538
- __name(this, "ThrottlingException");
539
- }
540
- name = "ThrottlingException";
541
- $fault = "client";
542
- /**
543
- * <p>The identifier of the service that caused the exception.</p>
544
- * @public
545
- */
546
- serviceCode;
547
- /**
548
- * <p>The identifier of the quota that caused the exception.</p>
549
- * @public
550
- */
551
- quotaCode;
552
- /**
553
- * <p>The number of seconds to wait before retrying the action that caused the
554
- * exception.</p>
555
- * @public
556
- */
557
- retryAfterSeconds;
558
- /**
559
- * @internal
560
- */
561
- constructor(opts) {
562
- super({
563
- name: "ThrottlingException",
564
- $fault: "client",
565
- ...opts
751
+ Object.assign(contents, doc);
752
+ return contents;
753
+ };
754
+ const de_DeletePipeCommand = async (output, context) => {
755
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
756
+ return de_CommandError(output, context);
757
+ }
758
+ const contents = smithyClient.map({
759
+ $metadata: deserializeMetadata(output),
566
760
  });
567
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
568
- this.serviceCode = opts.serviceCode;
569
- this.quotaCode = opts.quotaCode;
570
- this.retryAfterSeconds = opts.retryAfterSeconds;
571
- }
572
- };
573
- var ValidationException = class _ValidationException extends PipesServiceException {
574
- static {
575
- __name(this, "ValidationException");
576
- }
577
- name = "ValidationException";
578
- $fault = "client";
579
- /**
580
- * <p>The list of fields for which validation failed and the corresponding failure
581
- * messages.</p>
582
- * @public
583
- */
584
- fieldList;
585
- /**
586
- * @internal
587
- */
588
- constructor(opts) {
589
- super({
590
- name: "ValidationException",
591
- $fault: "client",
592
- ...opts
761
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
762
+ const doc = smithyClient.take(data, {
763
+ Arn: smithyClient.expectString,
764
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
765
+ CurrentState: smithyClient.expectString,
766
+ DesiredState: smithyClient.expectString,
767
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
768
+ Name: smithyClient.expectString,
593
769
  });
594
- Object.setPrototypeOf(this, _ValidationException.prototype);
595
- this.fieldList = opts.fieldList;
596
- }
597
- };
598
- var RequestedPipeStateDescribeResponse = {
599
- DELETED: "DELETED",
600
- RUNNING: "RUNNING",
601
- STOPPED: "STOPPED"
602
- };
603
- var AwsVpcConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
604
- ...obj,
605
- ...obj.Subnets && { Subnets: import_smithy_client.SENSITIVE_STRING },
606
- ...obj.SecurityGroups && { SecurityGroups: import_smithy_client.SENSITIVE_STRING }
607
- }), "AwsVpcConfigurationFilterSensitiveLog");
608
- var CapacityProviderStrategyItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
609
- ...obj,
610
- ...obj.capacityProvider && { capacityProvider: import_smithy_client.SENSITIVE_STRING }
611
- }), "CapacityProviderStrategyItemFilterSensitiveLog");
612
- var PipeEnrichmentHttpParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
613
- ...obj,
614
- ...obj.PathParameterValues && { PathParameterValues: import_smithy_client.SENSITIVE_STRING },
615
- ...obj.HeaderParameters && { HeaderParameters: import_smithy_client.SENSITIVE_STRING },
616
- ...obj.QueryStringParameters && { QueryStringParameters: import_smithy_client.SENSITIVE_STRING }
617
- }), "PipeEnrichmentHttpParametersFilterSensitiveLog");
618
- var PipeEnrichmentParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
619
- ...obj,
620
- ...obj.InputTemplate && { InputTemplate: import_smithy_client.SENSITIVE_STRING },
621
- ...obj.HttpParameters && { HttpParameters: PipeEnrichmentHttpParametersFilterSensitiveLog(obj.HttpParameters) }
622
- }), "PipeEnrichmentParametersFilterSensitiveLog");
623
- var PipeSourceActiveMQBrokerParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
624
- ...obj,
625
- ...obj.Credentials && { Credentials: obj.Credentials },
626
- ...obj.QueueName && { QueueName: import_smithy_client.SENSITIVE_STRING }
627
- }), "PipeSourceActiveMQBrokerParametersFilterSensitiveLog");
628
- var FilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
629
- ...obj,
630
- ...obj.Pattern && { Pattern: import_smithy_client.SENSITIVE_STRING }
631
- }), "FilterFilterSensitiveLog");
632
- var FilterCriteriaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
633
- ...obj,
634
- ...obj.Filters && { Filters: obj.Filters.map((item) => FilterFilterSensitiveLog(item)) }
635
- }), "FilterCriteriaFilterSensitiveLog");
636
- var PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
637
- ...obj,
638
- ...obj.TopicName && { TopicName: import_smithy_client.SENSITIVE_STRING },
639
- ...obj.ConsumerGroupID && { ConsumerGroupID: import_smithy_client.SENSITIVE_STRING },
640
- ...obj.Credentials && { Credentials: obj.Credentials }
641
- }), "PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog");
642
- var PipeSourceRabbitMQBrokerParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
643
- ...obj,
644
- ...obj.Credentials && { Credentials: obj.Credentials },
645
- ...obj.QueueName && { QueueName: import_smithy_client.SENSITIVE_STRING },
646
- ...obj.VirtualHost && { VirtualHost: import_smithy_client.SENSITIVE_STRING }
647
- }), "PipeSourceRabbitMQBrokerParametersFilterSensitiveLog");
648
- var SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
649
- ...obj,
650
- ...obj.Subnets && { Subnets: import_smithy_client.SENSITIVE_STRING },
651
- ...obj.SecurityGroup && { SecurityGroup: import_smithy_client.SENSITIVE_STRING }
652
- }), "SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog");
653
- var PipeSourceSelfManagedKafkaParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
654
- ...obj,
655
- ...obj.TopicName && { TopicName: import_smithy_client.SENSITIVE_STRING },
656
- ...obj.AdditionalBootstrapServers && { AdditionalBootstrapServers: import_smithy_client.SENSITIVE_STRING },
657
- ...obj.ConsumerGroupID && { ConsumerGroupID: import_smithy_client.SENSITIVE_STRING },
658
- ...obj.Credentials && { Credentials: obj.Credentials },
659
- ...obj.Vpc && { Vpc: SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog(obj.Vpc) }
660
- }), "PipeSourceSelfManagedKafkaParametersFilterSensitiveLog");
661
- var PipeSourceParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
662
- ...obj,
663
- ...obj.FilterCriteria && { FilterCriteria: FilterCriteriaFilterSensitiveLog(obj.FilterCriteria) },
664
- ...obj.ActiveMQBrokerParameters && {
665
- ActiveMQBrokerParameters: PipeSourceActiveMQBrokerParametersFilterSensitiveLog(obj.ActiveMQBrokerParameters)
666
- },
667
- ...obj.RabbitMQBrokerParameters && {
668
- RabbitMQBrokerParameters: PipeSourceRabbitMQBrokerParametersFilterSensitiveLog(obj.RabbitMQBrokerParameters)
669
- },
670
- ...obj.ManagedStreamingKafkaParameters && {
671
- ManagedStreamingKafkaParameters: PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog(
672
- obj.ManagedStreamingKafkaParameters
673
- )
674
- },
675
- ...obj.SelfManagedKafkaParameters && {
676
- SelfManagedKafkaParameters: PipeSourceSelfManagedKafkaParametersFilterSensitiveLog(obj.SelfManagedKafkaParameters)
677
- }
678
- }), "PipeSourceParametersFilterSensitiveLog");
679
- var NetworkConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
680
- ...obj,
681
- ...obj.awsvpcConfiguration && {
682
- awsvpcConfiguration: AwsVpcConfigurationFilterSensitiveLog(obj.awsvpcConfiguration)
683
- }
684
- }), "NetworkConfigurationFilterSensitiveLog");
685
- var PlacementConstraintFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
686
- ...obj,
687
- ...obj.expression && { expression: import_smithy_client.SENSITIVE_STRING }
688
- }), "PlacementConstraintFilterSensitiveLog");
689
- var PlacementStrategyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
690
- ...obj,
691
- ...obj.field && { field: import_smithy_client.SENSITIVE_STRING }
692
- }), "PlacementStrategyFilterSensitiveLog");
693
- var TagFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
694
- ...obj,
695
- ...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
696
- }), "TagFilterSensitiveLog");
697
- var PipeTargetEcsTaskParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
698
- ...obj,
699
- ...obj.NetworkConfiguration && {
700
- NetworkConfiguration: NetworkConfigurationFilterSensitiveLog(obj.NetworkConfiguration)
701
- },
702
- ...obj.CapacityProviderStrategy && {
703
- CapacityProviderStrategy: obj.CapacityProviderStrategy.map(
704
- (item) => CapacityProviderStrategyItemFilterSensitiveLog(item)
705
- )
706
- },
707
- ...obj.PlacementConstraints && {
708
- PlacementConstraints: obj.PlacementConstraints.map((item) => PlacementConstraintFilterSensitiveLog(item))
709
- },
710
- ...obj.PlacementStrategy && {
711
- PlacementStrategy: obj.PlacementStrategy.map((item) => PlacementStrategyFilterSensitiveLog(item))
712
- },
713
- ...obj.ReferenceId && { ReferenceId: import_smithy_client.SENSITIVE_STRING },
714
- ...obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }
715
- }), "PipeTargetEcsTaskParametersFilterSensitiveLog");
716
- var PipeTargetEventBridgeEventBusParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
717
- ...obj,
718
- ...obj.EndpointId && { EndpointId: import_smithy_client.SENSITIVE_STRING },
719
- ...obj.DetailType && { DetailType: import_smithy_client.SENSITIVE_STRING },
720
- ...obj.Source && { Source: import_smithy_client.SENSITIVE_STRING }
721
- }), "PipeTargetEventBridgeEventBusParametersFilterSensitiveLog");
722
- var PipeTargetHttpParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
723
- ...obj,
724
- ...obj.PathParameterValues && { PathParameterValues: import_smithy_client.SENSITIVE_STRING },
725
- ...obj.HeaderParameters && { HeaderParameters: import_smithy_client.SENSITIVE_STRING },
726
- ...obj.QueryStringParameters && { QueryStringParameters: import_smithy_client.SENSITIVE_STRING }
727
- }), "PipeTargetHttpParametersFilterSensitiveLog");
728
- var PipeTargetKinesisStreamParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
729
- ...obj,
730
- ...obj.PartitionKey && { PartitionKey: import_smithy_client.SENSITIVE_STRING }
731
- }), "PipeTargetKinesisStreamParametersFilterSensitiveLog");
732
- var PipeTargetRedshiftDataParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
733
- ...obj,
734
- ...obj.Database && { Database: import_smithy_client.SENSITIVE_STRING },
735
- ...obj.DbUser && { DbUser: import_smithy_client.SENSITIVE_STRING },
736
- ...obj.StatementName && { StatementName: import_smithy_client.SENSITIVE_STRING },
737
- ...obj.Sqls && { Sqls: import_smithy_client.SENSITIVE_STRING }
738
- }), "PipeTargetRedshiftDataParametersFilterSensitiveLog");
739
- var SageMakerPipelineParameterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
740
- ...obj,
741
- ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
742
- ...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
743
- }), "SageMakerPipelineParameterFilterSensitiveLog");
744
- var PipeTargetSageMakerPipelineParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
745
- ...obj,
746
- ...obj.PipelineParameterList && {
747
- PipelineParameterList: obj.PipelineParameterList.map((item) => SageMakerPipelineParameterFilterSensitiveLog(item))
748
- }
749
- }), "PipeTargetSageMakerPipelineParametersFilterSensitiveLog");
750
- var PipeTargetSqsQueueParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
751
- ...obj,
752
- ...obj.MessageGroupId && { MessageGroupId: import_smithy_client.SENSITIVE_STRING },
753
- ...obj.MessageDeduplicationId && { MessageDeduplicationId: import_smithy_client.SENSITIVE_STRING }
754
- }), "PipeTargetSqsQueueParametersFilterSensitiveLog");
755
- var PipeTargetParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
756
- ...obj,
757
- ...obj.InputTemplate && { InputTemplate: import_smithy_client.SENSITIVE_STRING },
758
- ...obj.KinesisStreamParameters && {
759
- KinesisStreamParameters: PipeTargetKinesisStreamParametersFilterSensitiveLog(obj.KinesisStreamParameters)
760
- },
761
- ...obj.EcsTaskParameters && {
762
- EcsTaskParameters: PipeTargetEcsTaskParametersFilterSensitiveLog(obj.EcsTaskParameters)
763
- },
764
- ...obj.SqsQueueParameters && {
765
- SqsQueueParameters: PipeTargetSqsQueueParametersFilterSensitiveLog(obj.SqsQueueParameters)
766
- },
767
- ...obj.HttpParameters && { HttpParameters: PipeTargetHttpParametersFilterSensitiveLog(obj.HttpParameters) },
768
- ...obj.RedshiftDataParameters && {
769
- RedshiftDataParameters: PipeTargetRedshiftDataParametersFilterSensitiveLog(obj.RedshiftDataParameters)
770
- },
771
- ...obj.SageMakerPipelineParameters && {
772
- SageMakerPipelineParameters: PipeTargetSageMakerPipelineParametersFilterSensitiveLog(
773
- obj.SageMakerPipelineParameters
774
- )
775
- },
776
- ...obj.EventBridgeEventBusParameters && {
777
- EventBridgeEventBusParameters: PipeTargetEventBridgeEventBusParametersFilterSensitiveLog(
778
- obj.EventBridgeEventBusParameters
779
- )
780
- }
781
- }), "PipeTargetParametersFilterSensitiveLog");
782
- var CreatePipeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
783
- ...obj,
784
- ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING },
785
- ...obj.SourceParameters && { SourceParameters: PipeSourceParametersFilterSensitiveLog(obj.SourceParameters) },
786
- ...obj.EnrichmentParameters && {
787
- EnrichmentParameters: PipeEnrichmentParametersFilterSensitiveLog(obj.EnrichmentParameters)
788
- },
789
- ...obj.TargetParameters && { TargetParameters: PipeTargetParametersFilterSensitiveLog(obj.TargetParameters) },
790
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
791
- }), "CreatePipeRequestFilterSensitiveLog");
792
- var DescribePipeResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
793
- ...obj,
794
- ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING },
795
- ...obj.SourceParameters && { SourceParameters: PipeSourceParametersFilterSensitiveLog(obj.SourceParameters) },
796
- ...obj.EnrichmentParameters && {
797
- EnrichmentParameters: PipeEnrichmentParametersFilterSensitiveLog(obj.EnrichmentParameters)
798
- },
799
- ...obj.TargetParameters && { TargetParameters: PipeTargetParametersFilterSensitiveLog(obj.TargetParameters) },
800
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
801
- }), "DescribePipeResponseFilterSensitiveLog");
802
- var ListPipesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
803
- ...obj,
804
- ...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
805
- }), "ListPipesRequestFilterSensitiveLog");
806
- var ListPipesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
807
- ...obj,
808
- ...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
809
- }), "ListPipesResponseFilterSensitiveLog");
810
- var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
811
- ...obj,
812
- ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
813
- }), "ListTagsForResourceResponseFilterSensitiveLog");
814
- var UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
815
- ...obj,
816
- ...obj.Credentials && { Credentials: obj.Credentials },
817
- ...obj.Vpc && { Vpc: SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog(obj.Vpc) }
818
- }), "UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog");
819
- var UpdatePipeSourceParametersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
820
- ...obj,
821
- ...obj.FilterCriteria && { FilterCriteria: FilterCriteriaFilterSensitiveLog(obj.FilterCriteria) },
822
- ...obj.ActiveMQBrokerParameters && { ActiveMQBrokerParameters: obj.ActiveMQBrokerParameters },
823
- ...obj.RabbitMQBrokerParameters && { RabbitMQBrokerParameters: obj.RabbitMQBrokerParameters },
824
- ...obj.ManagedStreamingKafkaParameters && { ManagedStreamingKafkaParameters: obj.ManagedStreamingKafkaParameters },
825
- ...obj.SelfManagedKafkaParameters && {
826
- SelfManagedKafkaParameters: UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog(
827
- obj.SelfManagedKafkaParameters
828
- )
829
- }
830
- }), "UpdatePipeSourceParametersFilterSensitiveLog");
831
- var UpdatePipeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
832
- ...obj,
833
- ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING },
834
- ...obj.SourceParameters && { SourceParameters: UpdatePipeSourceParametersFilterSensitiveLog(obj.SourceParameters) },
835
- ...obj.EnrichmentParameters && {
836
- EnrichmentParameters: PipeEnrichmentParametersFilterSensitiveLog(obj.EnrichmentParameters)
837
- },
838
- ...obj.TargetParameters && { TargetParameters: PipeTargetParametersFilterSensitiveLog(obj.TargetParameters) }
839
- }), "UpdatePipeRequestFilterSensitiveLog");
840
- var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
841
- ...obj,
842
- ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
843
- }), "TagResourceRequestFilterSensitiveLog");
844
-
845
- // src/protocols/Aws_restJson1.ts
846
- var import_core2 = require("@aws-sdk/core");
847
-
848
-
849
- var se_CreatePipeCommand = /* @__PURE__ */ __name(async (input, context) => {
850
- const b = (0, import_core.requestBuilder)(input, context);
851
- const headers = {
852
- "content-type": "application/json"
853
- };
854
- b.bp("/v1/pipes/{Name}");
855
- b.p("Name", () => input.Name, "{Name}", false);
856
- let body;
857
- body = JSON.stringify(
858
- (0, import_smithy_client.take)(input, {
859
- Description: [],
860
- DesiredState: [],
861
- Enrichment: [],
862
- EnrichmentParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "EnrichmentParameters"),
863
- KmsKeyIdentifier: [],
864
- LogConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LogConfiguration"),
865
- RoleArn: [],
866
- Source: [],
867
- SourceParameters: /* @__PURE__ */ __name((_) => se_PipeSourceParameters(_, context), "SourceParameters"),
868
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
869
- Target: [],
870
- TargetParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "TargetParameters")
871
- })
872
- );
873
- b.m("POST").h(headers).b(body);
874
- return b.build();
875
- }, "se_CreatePipeCommand");
876
- var se_DeletePipeCommand = /* @__PURE__ */ __name(async (input, context) => {
877
- const b = (0, import_core.requestBuilder)(input, context);
878
- const headers = {};
879
- b.bp("/v1/pipes/{Name}");
880
- b.p("Name", () => input.Name, "{Name}", false);
881
- let body;
882
- b.m("DELETE").h(headers).b(body);
883
- return b.build();
884
- }, "se_DeletePipeCommand");
885
- var se_DescribePipeCommand = /* @__PURE__ */ __name(async (input, context) => {
886
- const b = (0, import_core.requestBuilder)(input, context);
887
- const headers = {};
888
- b.bp("/v1/pipes/{Name}");
889
- b.p("Name", () => input.Name, "{Name}", false);
890
- let body;
891
- b.m("GET").h(headers).b(body);
892
- return b.build();
893
- }, "se_DescribePipeCommand");
894
- var se_ListPipesCommand = /* @__PURE__ */ __name(async (input, context) => {
895
- const b = (0, import_core.requestBuilder)(input, context);
896
- const headers = {};
897
- b.bp("/v1/pipes");
898
- const query = (0, import_smithy_client.map)({
899
- [_NP]: [, input[_NP]],
900
- [_DS]: [, input[_DS]],
901
- [_CS]: [, input[_CS]],
902
- [_SP]: [, input[_SP]],
903
- [_TP]: [, input[_TP]],
904
- [_NT]: [, input[_NT]],
905
- [_L]: [() => input.Limit !== void 0, () => input[_L].toString()]
906
- });
907
- let body;
908
- b.m("GET").h(headers).q(query).b(body);
909
- return b.build();
910
- }, "se_ListPipesCommand");
911
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
912
- const b = (0, import_core.requestBuilder)(input, context);
913
- const headers = {};
914
- b.bp("/tags/{resourceArn}");
915
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
916
- let body;
917
- b.m("GET").h(headers).b(body);
918
- return b.build();
919
- }, "se_ListTagsForResourceCommand");
920
- var se_StartPipeCommand = /* @__PURE__ */ __name(async (input, context) => {
921
- const b = (0, import_core.requestBuilder)(input, context);
922
- const headers = {};
923
- b.bp("/v1/pipes/{Name}/start");
924
- b.p("Name", () => input.Name, "{Name}", false);
925
- let body;
926
- b.m("POST").h(headers).b(body);
927
- return b.build();
928
- }, "se_StartPipeCommand");
929
- var se_StopPipeCommand = /* @__PURE__ */ __name(async (input, context) => {
930
- const b = (0, import_core.requestBuilder)(input, context);
931
- const headers = {};
932
- b.bp("/v1/pipes/{Name}/stop");
933
- b.p("Name", () => input.Name, "{Name}", false);
934
- let body;
935
- b.m("POST").h(headers).b(body);
936
- return b.build();
937
- }, "se_StopPipeCommand");
938
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
939
- const b = (0, import_core.requestBuilder)(input, context);
940
- const headers = {
941
- "content-type": "application/json"
942
- };
943
- b.bp("/tags/{resourceArn}");
944
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
945
- let body;
946
- body = JSON.stringify(
947
- (0, import_smithy_client.take)(input, {
948
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
949
- })
950
- );
951
- b.m("POST").h(headers).b(body);
952
- return b.build();
953
- }, "se_TagResourceCommand");
954
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
955
- const b = (0, import_core.requestBuilder)(input, context);
956
- const headers = {};
957
- b.bp("/tags/{resourceArn}");
958
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
959
- const query = (0, import_smithy_client.map)({
960
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
961
- });
962
- let body;
963
- b.m("DELETE").h(headers).q(query).b(body);
964
- return b.build();
965
- }, "se_UntagResourceCommand");
966
- var se_UpdatePipeCommand = /* @__PURE__ */ __name(async (input, context) => {
967
- const b = (0, import_core.requestBuilder)(input, context);
968
- const headers = {
969
- "content-type": "application/json"
970
- };
971
- b.bp("/v1/pipes/{Name}");
972
- b.p("Name", () => input.Name, "{Name}", false);
973
- let body;
974
- body = JSON.stringify(
975
- (0, import_smithy_client.take)(input, {
976
- Description: [],
977
- DesiredState: [],
978
- Enrichment: [],
979
- EnrichmentParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "EnrichmentParameters"),
980
- KmsKeyIdentifier: [],
981
- LogConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LogConfiguration"),
982
- RoleArn: [],
983
- SourceParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "SourceParameters"),
984
- Target: [],
985
- TargetParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "TargetParameters")
986
- })
987
- );
988
- b.m("PUT").h(headers).b(body);
989
- return b.build();
990
- }, "se_UpdatePipeCommand");
991
- var de_CreatePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
992
- if (output.statusCode !== 200 && output.statusCode >= 300) {
993
- return de_CommandError(output, context);
994
- }
995
- const contents = (0, import_smithy_client.map)({
996
- $metadata: deserializeMetadata(output)
997
- });
998
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
999
- const doc = (0, import_smithy_client.take)(data, {
1000
- Arn: import_smithy_client.expectString,
1001
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1002
- CurrentState: import_smithy_client.expectString,
1003
- DesiredState: import_smithy_client.expectString,
1004
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1005
- Name: import_smithy_client.expectString
1006
- });
1007
- Object.assign(contents, doc);
1008
- return contents;
1009
- }, "de_CreatePipeCommand");
1010
- var de_DeletePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1011
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1012
- return de_CommandError(output, context);
1013
- }
1014
- const contents = (0, import_smithy_client.map)({
1015
- $metadata: deserializeMetadata(output)
1016
- });
1017
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1018
- const doc = (0, import_smithy_client.take)(data, {
1019
- Arn: import_smithy_client.expectString,
1020
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1021
- CurrentState: import_smithy_client.expectString,
1022
- DesiredState: import_smithy_client.expectString,
1023
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1024
- Name: import_smithy_client.expectString
1025
- });
1026
- Object.assign(contents, doc);
1027
- return contents;
1028
- }, "de_DeletePipeCommand");
1029
- var de_DescribePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1030
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1031
- return de_CommandError(output, context);
1032
- }
1033
- const contents = (0, import_smithy_client.map)({
1034
- $metadata: deserializeMetadata(output)
1035
- });
1036
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1037
- const doc = (0, import_smithy_client.take)(data, {
1038
- Arn: import_smithy_client.expectString,
1039
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1040
- CurrentState: import_smithy_client.expectString,
1041
- Description: import_smithy_client.expectString,
1042
- DesiredState: import_smithy_client.expectString,
1043
- Enrichment: import_smithy_client.expectString,
1044
- EnrichmentParameters: import_smithy_client._json,
1045
- KmsKeyIdentifier: import_smithy_client.expectString,
1046
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1047
- LogConfiguration: import_smithy_client._json,
1048
- Name: import_smithy_client.expectString,
1049
- RoleArn: import_smithy_client.expectString,
1050
- Source: import_smithy_client.expectString,
1051
- SourceParameters: /* @__PURE__ */ __name((_) => de_PipeSourceParameters(_, context), "SourceParameters"),
1052
- StateReason: import_smithy_client.expectString,
1053
- Tags: import_smithy_client._json,
1054
- Target: import_smithy_client.expectString,
1055
- TargetParameters: import_smithy_client._json
1056
- });
1057
- Object.assign(contents, doc);
1058
- return contents;
1059
- }, "de_DescribePipeCommand");
1060
- var de_ListPipesCommand = /* @__PURE__ */ __name(async (output, context) => {
1061
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1062
- return de_CommandError(output, context);
1063
- }
1064
- const contents = (0, import_smithy_client.map)({
1065
- $metadata: deserializeMetadata(output)
1066
- });
1067
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1068
- const doc = (0, import_smithy_client.take)(data, {
1069
- NextToken: import_smithy_client.expectString,
1070
- Pipes: /* @__PURE__ */ __name((_) => de_PipeList(_, context), "Pipes")
1071
- });
1072
- Object.assign(contents, doc);
1073
- return contents;
1074
- }, "de_ListPipesCommand");
1075
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1076
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1077
- return de_CommandError(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 (0, import_core2.parseJsonBody)(output.body, context)), "body");
1083
- const doc = (0, import_smithy_client.take)(data, {
1084
- tags: import_smithy_client._json
1085
- });
1086
- Object.assign(contents, doc);
1087
- return contents;
1088
- }, "de_ListTagsForResourceCommand");
1089
- var de_StartPipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1090
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1091
- return de_CommandError(output, context);
1092
- }
1093
- const contents = (0, import_smithy_client.map)({
1094
- $metadata: deserializeMetadata(output)
1095
- });
1096
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1097
- const doc = (0, import_smithy_client.take)(data, {
1098
- Arn: import_smithy_client.expectString,
1099
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1100
- CurrentState: import_smithy_client.expectString,
1101
- DesiredState: import_smithy_client.expectString,
1102
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1103
- Name: import_smithy_client.expectString
1104
- });
1105
- Object.assign(contents, doc);
1106
- return contents;
1107
- }, "de_StartPipeCommand");
1108
- var de_StopPipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1109
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1110
- return de_CommandError(output, context);
1111
- }
1112
- const contents = (0, import_smithy_client.map)({
1113
- $metadata: deserializeMetadata(output)
1114
- });
1115
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1116
- const doc = (0, import_smithy_client.take)(data, {
1117
- Arn: import_smithy_client.expectString,
1118
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1119
- CurrentState: import_smithy_client.expectString,
1120
- DesiredState: import_smithy_client.expectString,
1121
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1122
- Name: import_smithy_client.expectString
1123
- });
1124
- Object.assign(contents, doc);
1125
- return contents;
1126
- }, "de_StopPipeCommand");
1127
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1128
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1129
- return de_CommandError(output, context);
1130
- }
1131
- const contents = (0, import_smithy_client.map)({
1132
- $metadata: deserializeMetadata(output)
1133
- });
1134
- await (0, import_smithy_client.collectBody)(output.body, context);
1135
- return contents;
1136
- }, "de_TagResourceCommand");
1137
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1138
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1139
- return de_CommandError(output, context);
1140
- }
1141
- const contents = (0, import_smithy_client.map)({
1142
- $metadata: deserializeMetadata(output)
1143
- });
1144
- await (0, import_smithy_client.collectBody)(output.body, context);
1145
- return contents;
1146
- }, "de_UntagResourceCommand");
1147
- var de_UpdatePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1148
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1149
- return de_CommandError(output, context);
1150
- }
1151
- const contents = (0, import_smithy_client.map)({
1152
- $metadata: deserializeMetadata(output)
1153
- });
1154
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1155
- const doc = (0, import_smithy_client.take)(data, {
1156
- Arn: import_smithy_client.expectString,
1157
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1158
- CurrentState: import_smithy_client.expectString,
1159
- DesiredState: import_smithy_client.expectString,
1160
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1161
- Name: import_smithy_client.expectString
1162
- });
1163
- Object.assign(contents, doc);
1164
- return contents;
1165
- }, "de_UpdatePipeCommand");
1166
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1167
- const parsedOutput = {
1168
- ...output,
1169
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1170
- };
1171
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1172
- switch (errorCode) {
1173
- case "ConflictException":
1174
- case "com.amazonaws.pipes#ConflictException":
1175
- throw await de_ConflictExceptionRes(parsedOutput, context);
1176
- case "InternalException":
1177
- case "com.amazonaws.pipes#InternalException":
1178
- throw await de_InternalExceptionRes(parsedOutput, context);
1179
- case "NotFoundException":
1180
- case "com.amazonaws.pipes#NotFoundException":
1181
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1182
- case "ServiceQuotaExceededException":
1183
- case "com.amazonaws.pipes#ServiceQuotaExceededException":
1184
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1185
- case "ThrottlingException":
1186
- case "com.amazonaws.pipes#ThrottlingException":
1187
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1188
- case "ValidationException":
1189
- case "com.amazonaws.pipes#ValidationException":
1190
- throw await de_ValidationExceptionRes(parsedOutput, context);
1191
- default:
1192
- const parsedBody = parsedOutput.body;
1193
- return throwDefaultError({
1194
- output,
1195
- parsedBody,
1196
- errorCode
1197
- });
1198
- }
1199
- }, "de_CommandError");
1200
- var throwDefaultError = (0, import_smithy_client.withBaseException)(PipesServiceException);
1201
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1202
- const contents = (0, import_smithy_client.map)({});
1203
- const data = parsedOutput.body;
1204
- const doc = (0, import_smithy_client.take)(data, {
1205
- message: import_smithy_client.expectString,
1206
- resourceId: import_smithy_client.expectString,
1207
- resourceType: import_smithy_client.expectString
1208
- });
1209
- Object.assign(contents, doc);
1210
- const exception = new ConflictException({
1211
- $metadata: deserializeMetadata(parsedOutput),
1212
- ...contents
1213
- });
1214
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1215
- }, "de_ConflictExceptionRes");
1216
- var de_InternalExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1217
- const contents = (0, import_smithy_client.map)({
1218
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1219
- });
1220
- const data = parsedOutput.body;
1221
- const doc = (0, import_smithy_client.take)(data, {
1222
- message: import_smithy_client.expectString
1223
- });
1224
- Object.assign(contents, doc);
1225
- const exception = new InternalException({
1226
- $metadata: deserializeMetadata(parsedOutput),
1227
- ...contents
1228
- });
1229
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1230
- }, "de_InternalExceptionRes");
1231
- var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1232
- const contents = (0, import_smithy_client.map)({});
1233
- const data = parsedOutput.body;
1234
- const doc = (0, import_smithy_client.take)(data, {
1235
- message: import_smithy_client.expectString
1236
- });
1237
- Object.assign(contents, doc);
1238
- const exception = new NotFoundException({
1239
- $metadata: deserializeMetadata(parsedOutput),
1240
- ...contents
1241
- });
1242
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1243
- }, "de_NotFoundExceptionRes");
1244
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1245
- const contents = (0, import_smithy_client.map)({});
1246
- const data = parsedOutput.body;
1247
- const doc = (0, import_smithy_client.take)(data, {
1248
- message: import_smithy_client.expectString,
1249
- quotaCode: import_smithy_client.expectString,
1250
- resourceId: import_smithy_client.expectString,
1251
- resourceType: import_smithy_client.expectString,
1252
- serviceCode: import_smithy_client.expectString
1253
- });
1254
- Object.assign(contents, doc);
1255
- const exception = new ServiceQuotaExceededException({
1256
- $metadata: deserializeMetadata(parsedOutput),
1257
- ...contents
1258
- });
1259
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1260
- }, "de_ServiceQuotaExceededExceptionRes");
1261
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1262
- const contents = (0, import_smithy_client.map)({
1263
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1264
- });
1265
- const data = parsedOutput.body;
1266
- const doc = (0, import_smithy_client.take)(data, {
1267
- message: import_smithy_client.expectString,
1268
- quotaCode: import_smithy_client.expectString,
1269
- serviceCode: import_smithy_client.expectString
1270
- });
1271
- Object.assign(contents, doc);
1272
- const exception = new ThrottlingException({
1273
- $metadata: deserializeMetadata(parsedOutput),
1274
- ...contents
1275
- });
1276
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1277
- }, "de_ThrottlingExceptionRes");
1278
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1279
- const contents = (0, import_smithy_client.map)({});
1280
- const data = parsedOutput.body;
1281
- const doc = (0, import_smithy_client.take)(data, {
1282
- fieldList: import_smithy_client._json,
1283
- message: import_smithy_client.expectString
1284
- });
1285
- Object.assign(contents, doc);
1286
- const exception = new ValidationException({
1287
- $metadata: deserializeMetadata(parsedOutput),
1288
- ...contents
1289
- });
1290
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1291
- }, "de_ValidationExceptionRes");
1292
- var se_PipeSourceKinesisStreamParameters = /* @__PURE__ */ __name((input, context) => {
1293
- return (0, import_smithy_client.take)(input, {
1294
- BatchSize: [],
1295
- DeadLetterConfig: import_smithy_client._json,
1296
- MaximumBatchingWindowInSeconds: [],
1297
- MaximumRecordAgeInSeconds: [],
1298
- MaximumRetryAttempts: [],
1299
- OnPartialBatchItemFailure: [],
1300
- ParallelizationFactor: [],
1301
- StartingPosition: [],
1302
- StartingPositionTimestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartingPositionTimestamp")
1303
- });
1304
- }, "se_PipeSourceKinesisStreamParameters");
1305
- var se_PipeSourceParameters = /* @__PURE__ */ __name((input, context) => {
1306
- return (0, import_smithy_client.take)(input, {
1307
- ActiveMQBrokerParameters: import_smithy_client._json,
1308
- DynamoDBStreamParameters: import_smithy_client._json,
1309
- FilterCriteria: import_smithy_client._json,
1310
- KinesisStreamParameters: /* @__PURE__ */ __name((_) => se_PipeSourceKinesisStreamParameters(_, context), "KinesisStreamParameters"),
1311
- ManagedStreamingKafkaParameters: import_smithy_client._json,
1312
- RabbitMQBrokerParameters: import_smithy_client._json,
1313
- SelfManagedKafkaParameters: import_smithy_client._json,
1314
- SqsQueueParameters: import_smithy_client._json
1315
- });
1316
- }, "se_PipeSourceParameters");
1317
- var de_Pipe = /* @__PURE__ */ __name((output, context) => {
1318
- return (0, import_smithy_client.take)(output, {
1319
- Arn: import_smithy_client.expectString,
1320
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1321
- CurrentState: import_smithy_client.expectString,
1322
- DesiredState: import_smithy_client.expectString,
1323
- Enrichment: import_smithy_client.expectString,
1324
- LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1325
- Name: import_smithy_client.expectString,
1326
- Source: import_smithy_client.expectString,
1327
- StateReason: import_smithy_client.expectString,
1328
- Target: import_smithy_client.expectString
1329
- });
1330
- }, "de_Pipe");
1331
- var de_PipeList = /* @__PURE__ */ __name((output, context) => {
1332
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1333
- return de_Pipe(entry, context);
1334
- });
1335
- return retVal;
1336
- }, "de_PipeList");
1337
- var de_PipeSourceKinesisStreamParameters = /* @__PURE__ */ __name((output, context) => {
1338
- return (0, import_smithy_client.take)(output, {
1339
- BatchSize: import_smithy_client.expectInt32,
1340
- DeadLetterConfig: import_smithy_client._json,
1341
- MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
1342
- MaximumRecordAgeInSeconds: import_smithy_client.expectInt32,
1343
- MaximumRetryAttempts: import_smithy_client.expectInt32,
1344
- OnPartialBatchItemFailure: import_smithy_client.expectString,
1345
- ParallelizationFactor: import_smithy_client.expectInt32,
1346
- StartingPosition: import_smithy_client.expectString,
1347
- StartingPositionTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartingPositionTimestamp")
1348
- });
1349
- }, "de_PipeSourceKinesisStreamParameters");
1350
- var de_PipeSourceParameters = /* @__PURE__ */ __name((output, context) => {
1351
- return (0, import_smithy_client.take)(output, {
1352
- ActiveMQBrokerParameters: import_smithy_client._json,
1353
- DynamoDBStreamParameters: import_smithy_client._json,
1354
- FilterCriteria: import_smithy_client._json,
1355
- KinesisStreamParameters: /* @__PURE__ */ __name((_) => de_PipeSourceKinesisStreamParameters(_, context), "KinesisStreamParameters"),
1356
- ManagedStreamingKafkaParameters: import_smithy_client._json,
1357
- RabbitMQBrokerParameters: import_smithy_client._json,
1358
- SelfManagedKafkaParameters: import_smithy_client._json,
1359
- SqsQueueParameters: import_smithy_client._json
1360
- });
1361
- }, "de_PipeSourceParameters");
1362
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1363
- httpStatusCode: output.statusCode,
1364
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1365
- extendedRequestId: output.headers["x-amz-id-2"],
1366
- cfId: output.headers["x-amz-cf-id"]
1367
- }), "deserializeMetadata");
1368
- var _CS = "CurrentState";
1369
- var _DS = "DesiredState";
1370
- var _L = "Limit";
1371
- var _NP = "NamePrefix";
1372
- var _NT = "NextToken";
1373
- var _SP = "SourcePrefix";
1374
- var _TP = "TargetPrefix";
1375
- var _rAS = "retryAfterSeconds";
1376
- var _ra = "retry-after";
1377
- var _tK = "tagKeys";
1378
-
1379
- // src/commands/CreatePipeCommand.ts
1380
- var CreatePipeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1381
- return [
1382
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1383
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1384
- ];
1385
- }).s("Pipes", "CreatePipe", {}).n("PipesClient", "CreatePipeCommand").f(CreatePipeRequestFilterSensitiveLog, void 0).ser(se_CreatePipeCommand).de(de_CreatePipeCommand).build() {
1386
- static {
1387
- __name(this, "CreatePipeCommand");
1388
- }
770
+ Object.assign(contents, doc);
771
+ return contents;
1389
772
  };
1390
-
1391
- // src/commands/DeletePipeCommand.ts
1392
-
1393
-
1394
-
1395
- var DeletePipeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).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("Pipes", "DeletePipe", {}).n("PipesClient", "DeletePipeCommand").f(void 0, void 0).ser(se_DeletePipeCommand).de(de_DeletePipeCommand).build() {
1401
- static {
1402
- __name(this, "DeletePipeCommand");
1403
- }
773
+ const de_DescribePipeCommand = async (output, context) => {
774
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
775
+ return de_CommandError(output, context);
776
+ }
777
+ const contents = smithyClient.map({
778
+ $metadata: deserializeMetadata(output),
779
+ });
780
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
781
+ const doc = smithyClient.take(data, {
782
+ Arn: smithyClient.expectString,
783
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
784
+ CurrentState: smithyClient.expectString,
785
+ Description: smithyClient.expectString,
786
+ DesiredState: smithyClient.expectString,
787
+ Enrichment: smithyClient.expectString,
788
+ EnrichmentParameters: smithyClient._json,
789
+ KmsKeyIdentifier: smithyClient.expectString,
790
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
791
+ LogConfiguration: smithyClient._json,
792
+ Name: smithyClient.expectString,
793
+ RoleArn: smithyClient.expectString,
794
+ Source: smithyClient.expectString,
795
+ SourceParameters: (_) => de_PipeSourceParameters(_),
796
+ StateReason: smithyClient.expectString,
797
+ Tags: smithyClient._json,
798
+ Target: smithyClient.expectString,
799
+ TargetParameters: smithyClient._json,
800
+ });
801
+ Object.assign(contents, doc);
802
+ return contents;
1404
803
  };
1405
-
1406
- // src/commands/DescribePipeCommand.ts
1407
-
1408
-
1409
-
1410
- var DescribePipeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1411
- return [
1412
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1413
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1414
- ];
1415
- }).s("Pipes", "DescribePipe", {}).n("PipesClient", "DescribePipeCommand").f(void 0, DescribePipeResponseFilterSensitiveLog).ser(se_DescribePipeCommand).de(de_DescribePipeCommand).build() {
1416
- static {
1417
- __name(this, "DescribePipeCommand");
1418
- }
804
+ const de_ListPipesCommand = async (output, context) => {
805
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
806
+ return de_CommandError(output, context);
807
+ }
808
+ const contents = smithyClient.map({
809
+ $metadata: deserializeMetadata(output),
810
+ });
811
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
812
+ const doc = smithyClient.take(data, {
813
+ NextToken: smithyClient.expectString,
814
+ Pipes: (_) => de_PipeList(_),
815
+ });
816
+ Object.assign(contents, doc);
817
+ return contents;
1419
818
  };
1420
-
1421
- // src/commands/ListPipesCommand.ts
1422
-
1423
-
1424
-
1425
- var ListPipesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1426
- return [
1427
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1428
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1429
- ];
1430
- }).s("Pipes", "ListPipes", {}).n("PipesClient", "ListPipesCommand").f(ListPipesRequestFilterSensitiveLog, ListPipesResponseFilterSensitiveLog).ser(se_ListPipesCommand).de(de_ListPipesCommand).build() {
1431
- static {
1432
- __name(this, "ListPipesCommand");
1433
- }
819
+ const de_ListTagsForResourceCommand = 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
+ tags: smithyClient._json,
829
+ });
830
+ Object.assign(contents, doc);
831
+ return contents;
1434
832
  };
1435
-
1436
- // src/commands/ListTagsForResourceCommand.ts
1437
-
1438
-
1439
-
1440
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1441
- return [
1442
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1443
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1444
- ];
1445
- }).s("Pipes", "ListTagsForResource", {}).n("PipesClient", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceResponseFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1446
- static {
1447
- __name(this, "ListTagsForResourceCommand");
1448
- }
833
+ const de_StartPipeCommand = async (output, context) => {
834
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
835
+ return de_CommandError(output, context);
836
+ }
837
+ const contents = smithyClient.map({
838
+ $metadata: deserializeMetadata(output),
839
+ });
840
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
841
+ const doc = smithyClient.take(data, {
842
+ Arn: smithyClient.expectString,
843
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
844
+ CurrentState: smithyClient.expectString,
845
+ DesiredState: smithyClient.expectString,
846
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
847
+ Name: smithyClient.expectString,
848
+ });
849
+ Object.assign(contents, doc);
850
+ return contents;
1449
851
  };
1450
-
1451
- // src/commands/StartPipeCommand.ts
1452
-
1453
-
1454
-
1455
- var StartPipeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1456
- return [
1457
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1458
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1459
- ];
1460
- }).s("Pipes", "StartPipe", {}).n("PipesClient", "StartPipeCommand").f(void 0, void 0).ser(se_StartPipeCommand).de(de_StartPipeCommand).build() {
1461
- static {
1462
- __name(this, "StartPipeCommand");
1463
- }
852
+ const de_StopPipeCommand = async (output, context) => {
853
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
854
+ return de_CommandError(output, context);
855
+ }
856
+ const contents = smithyClient.map({
857
+ $metadata: deserializeMetadata(output),
858
+ });
859
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
860
+ const doc = smithyClient.take(data, {
861
+ Arn: smithyClient.expectString,
862
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
863
+ CurrentState: smithyClient.expectString,
864
+ DesiredState: smithyClient.expectString,
865
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
866
+ Name: smithyClient.expectString,
867
+ });
868
+ Object.assign(contents, doc);
869
+ return contents;
1464
870
  };
1465
-
1466
- // src/commands/StopPipeCommand.ts
1467
-
1468
-
1469
-
1470
- var StopPipeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1471
- return [
1472
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1473
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1474
- ];
1475
- }).s("Pipes", "StopPipe", {}).n("PipesClient", "StopPipeCommand").f(void 0, void 0).ser(se_StopPipeCommand).de(de_StopPipeCommand).build() {
1476
- static {
1477
- __name(this, "StopPipeCommand");
1478
- }
871
+ const de_TagResourceCommand = async (output, context) => {
872
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
873
+ return de_CommandError(output, context);
874
+ }
875
+ const contents = smithyClient.map({
876
+ $metadata: deserializeMetadata(output),
877
+ });
878
+ await smithyClient.collectBody(output.body, context);
879
+ return contents;
1479
880
  };
1480
-
1481
- // src/commands/TagResourceCommand.ts
1482
-
1483
-
1484
-
1485
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1486
- return [
1487
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1488
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1489
- ];
1490
- }).s("Pipes", "TagResource", {}).n("PipesClient", "TagResourceCommand").f(TagResourceRequestFilterSensitiveLog, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1491
- static {
1492
- __name(this, "TagResourceCommand");
1493
- }
881
+ const de_UntagResourceCommand = async (output, context) => {
882
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
883
+ return de_CommandError(output, context);
884
+ }
885
+ const contents = smithyClient.map({
886
+ $metadata: deserializeMetadata(output),
887
+ });
888
+ await smithyClient.collectBody(output.body, context);
889
+ return contents;
1494
890
  };
1495
-
1496
- // src/commands/UntagResourceCommand.ts
1497
-
1498
-
1499
-
1500
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1501
- return [
1502
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1503
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1504
- ];
1505
- }).s("Pipes", "UntagResource", {}).n("PipesClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1506
- static {
1507
- __name(this, "UntagResourceCommand");
1508
- }
891
+ const de_UpdatePipeCommand = async (output, context) => {
892
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
893
+ return de_CommandError(output, context);
894
+ }
895
+ const contents = smithyClient.map({
896
+ $metadata: deserializeMetadata(output),
897
+ });
898
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
899
+ const doc = smithyClient.take(data, {
900
+ Arn: smithyClient.expectString,
901
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
902
+ CurrentState: smithyClient.expectString,
903
+ DesiredState: smithyClient.expectString,
904
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
905
+ Name: smithyClient.expectString,
906
+ });
907
+ Object.assign(contents, doc);
908
+ return contents;
1509
909
  };
1510
-
1511
- // src/commands/UpdatePipeCommand.ts
1512
-
1513
-
1514
-
1515
- var UpdatePipeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1516
- return [
1517
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1518
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1519
- ];
1520
- }).s("Pipes", "UpdatePipe", {}).n("PipesClient", "UpdatePipeCommand").f(UpdatePipeRequestFilterSensitiveLog, void 0).ser(se_UpdatePipeCommand).de(de_UpdatePipeCommand).build() {
1521
- static {
1522
- __name(this, "UpdatePipeCommand");
1523
- }
910
+ const de_CommandError = async (output, context) => {
911
+ const parsedOutput = {
912
+ ...output,
913
+ body: await core$1.parseJsonErrorBody(output.body, context),
914
+ };
915
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
916
+ switch (errorCode) {
917
+ case "ConflictException":
918
+ case "com.amazonaws.pipes#ConflictException":
919
+ throw await de_ConflictExceptionRes(parsedOutput);
920
+ case "InternalException":
921
+ case "com.amazonaws.pipes#InternalException":
922
+ throw await de_InternalExceptionRes(parsedOutput);
923
+ case "NotFoundException":
924
+ case "com.amazonaws.pipes#NotFoundException":
925
+ throw await de_NotFoundExceptionRes(parsedOutput);
926
+ case "ServiceQuotaExceededException":
927
+ case "com.amazonaws.pipes#ServiceQuotaExceededException":
928
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
929
+ case "ThrottlingException":
930
+ case "com.amazonaws.pipes#ThrottlingException":
931
+ throw await de_ThrottlingExceptionRes(parsedOutput);
932
+ case "ValidationException":
933
+ case "com.amazonaws.pipes#ValidationException":
934
+ throw await de_ValidationExceptionRes(parsedOutput);
935
+ default:
936
+ const parsedBody = parsedOutput.body;
937
+ return throwDefaultError({
938
+ output,
939
+ parsedBody,
940
+ errorCode,
941
+ });
942
+ }
1524
943
  };
944
+ const throwDefaultError = smithyClient.withBaseException(PipesServiceException);
945
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
946
+ const contents = smithyClient.map({});
947
+ const data = parsedOutput.body;
948
+ const doc = smithyClient.take(data, {
949
+ message: smithyClient.expectString,
950
+ resourceId: smithyClient.expectString,
951
+ resourceType: smithyClient.expectString,
952
+ });
953
+ Object.assign(contents, doc);
954
+ const exception = new ConflictException({
955
+ $metadata: deserializeMetadata(parsedOutput),
956
+ ...contents,
957
+ });
958
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
959
+ };
960
+ const de_InternalExceptionRes = async (parsedOutput, context) => {
961
+ const contents = smithyClient.map({
962
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
963
+ });
964
+ const data = parsedOutput.body;
965
+ const doc = smithyClient.take(data, {
966
+ message: smithyClient.expectString,
967
+ });
968
+ Object.assign(contents, doc);
969
+ const exception = new InternalException({
970
+ $metadata: deserializeMetadata(parsedOutput),
971
+ ...contents,
972
+ });
973
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
974
+ };
975
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
976
+ const contents = smithyClient.map({});
977
+ const data = parsedOutput.body;
978
+ const doc = smithyClient.take(data, {
979
+ message: smithyClient.expectString,
980
+ });
981
+ Object.assign(contents, doc);
982
+ const exception = new NotFoundException({
983
+ $metadata: deserializeMetadata(parsedOutput),
984
+ ...contents,
985
+ });
986
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
987
+ };
988
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
989
+ const contents = smithyClient.map({});
990
+ const data = parsedOutput.body;
991
+ const doc = smithyClient.take(data, {
992
+ message: smithyClient.expectString,
993
+ quotaCode: smithyClient.expectString,
994
+ resourceId: smithyClient.expectString,
995
+ resourceType: smithyClient.expectString,
996
+ serviceCode: smithyClient.expectString,
997
+ });
998
+ Object.assign(contents, doc);
999
+ const exception = new ServiceQuotaExceededException({
1000
+ $metadata: deserializeMetadata(parsedOutput),
1001
+ ...contents,
1002
+ });
1003
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1004
+ };
1005
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1006
+ const contents = smithyClient.map({
1007
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
1008
+ });
1009
+ const data = parsedOutput.body;
1010
+ const doc = smithyClient.take(data, {
1011
+ message: smithyClient.expectString,
1012
+ quotaCode: smithyClient.expectString,
1013
+ serviceCode: smithyClient.expectString,
1014
+ });
1015
+ Object.assign(contents, doc);
1016
+ const exception = new ThrottlingException({
1017
+ $metadata: deserializeMetadata(parsedOutput),
1018
+ ...contents,
1019
+ });
1020
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1021
+ };
1022
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1023
+ const contents = smithyClient.map({});
1024
+ const data = parsedOutput.body;
1025
+ const doc = smithyClient.take(data, {
1026
+ fieldList: smithyClient._json,
1027
+ message: smithyClient.expectString,
1028
+ });
1029
+ Object.assign(contents, doc);
1030
+ const exception = new ValidationException({
1031
+ $metadata: deserializeMetadata(parsedOutput),
1032
+ ...contents,
1033
+ });
1034
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1035
+ };
1036
+ const se_PipeSourceKinesisStreamParameters = (input, context) => {
1037
+ return smithyClient.take(input, {
1038
+ BatchSize: [],
1039
+ DeadLetterConfig: smithyClient._json,
1040
+ MaximumBatchingWindowInSeconds: [],
1041
+ MaximumRecordAgeInSeconds: [],
1042
+ MaximumRetryAttempts: [],
1043
+ OnPartialBatchItemFailure: [],
1044
+ ParallelizationFactor: [],
1045
+ StartingPosition: [],
1046
+ StartingPositionTimestamp: (_) => _.getTime() / 1_000,
1047
+ });
1048
+ };
1049
+ const se_PipeSourceParameters = (input, context) => {
1050
+ return smithyClient.take(input, {
1051
+ ActiveMQBrokerParameters: smithyClient._json,
1052
+ DynamoDBStreamParameters: smithyClient._json,
1053
+ FilterCriteria: smithyClient._json,
1054
+ KinesisStreamParameters: (_) => se_PipeSourceKinesisStreamParameters(_),
1055
+ ManagedStreamingKafkaParameters: smithyClient._json,
1056
+ RabbitMQBrokerParameters: smithyClient._json,
1057
+ SelfManagedKafkaParameters: smithyClient._json,
1058
+ SqsQueueParameters: smithyClient._json,
1059
+ });
1060
+ };
1061
+ const de_Pipe = (output, context) => {
1062
+ return smithyClient.take(output, {
1063
+ Arn: smithyClient.expectString,
1064
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1065
+ CurrentState: smithyClient.expectString,
1066
+ DesiredState: smithyClient.expectString,
1067
+ Enrichment: smithyClient.expectString,
1068
+ LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1069
+ Name: smithyClient.expectString,
1070
+ Source: smithyClient.expectString,
1071
+ StateReason: smithyClient.expectString,
1072
+ Target: smithyClient.expectString,
1073
+ });
1074
+ };
1075
+ const de_PipeList = (output, context) => {
1076
+ const retVal = (output || [])
1077
+ .filter((e) => e != null)
1078
+ .map((entry) => {
1079
+ return de_Pipe(entry);
1080
+ });
1081
+ return retVal;
1082
+ };
1083
+ const de_PipeSourceKinesisStreamParameters = (output, context) => {
1084
+ return smithyClient.take(output, {
1085
+ BatchSize: smithyClient.expectInt32,
1086
+ DeadLetterConfig: smithyClient._json,
1087
+ MaximumBatchingWindowInSeconds: smithyClient.expectInt32,
1088
+ MaximumRecordAgeInSeconds: smithyClient.expectInt32,
1089
+ MaximumRetryAttempts: smithyClient.expectInt32,
1090
+ OnPartialBatchItemFailure: smithyClient.expectString,
1091
+ ParallelizationFactor: smithyClient.expectInt32,
1092
+ StartingPosition: smithyClient.expectString,
1093
+ StartingPositionTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1094
+ });
1095
+ };
1096
+ const de_PipeSourceParameters = (output, context) => {
1097
+ return smithyClient.take(output, {
1098
+ ActiveMQBrokerParameters: smithyClient._json,
1099
+ DynamoDBStreamParameters: smithyClient._json,
1100
+ FilterCriteria: smithyClient._json,
1101
+ KinesisStreamParameters: (_) => de_PipeSourceKinesisStreamParameters(_),
1102
+ ManagedStreamingKafkaParameters: smithyClient._json,
1103
+ RabbitMQBrokerParameters: smithyClient._json,
1104
+ SelfManagedKafkaParameters: smithyClient._json,
1105
+ SqsQueueParameters: smithyClient._json,
1106
+ });
1107
+ };
1108
+ const deserializeMetadata = (output) => ({
1109
+ httpStatusCode: output.statusCode,
1110
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1111
+ extendedRequestId: output.headers["x-amz-id-2"],
1112
+ cfId: output.headers["x-amz-cf-id"],
1113
+ });
1114
+ const _CS = "CurrentState";
1115
+ const _DS = "DesiredState";
1116
+ const _L = "Limit";
1117
+ const _NP = "NamePrefix";
1118
+ const _NT = "NextToken";
1119
+ const _SP = "SourcePrefix";
1120
+ const _TP = "TargetPrefix";
1121
+ const _rAS = "retryAfterSeconds";
1122
+ const _ra = "retry-after";
1123
+ const _tK = "tagKeys";
1124
+
1125
+ class CreatePipeCommand extends smithyClient.Command
1126
+ .classBuilder()
1127
+ .ep(commonParams)
1128
+ .m(function (Command, cs, config, o) {
1129
+ return [
1130
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1131
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1132
+ ];
1133
+ })
1134
+ .s("Pipes", "CreatePipe", {})
1135
+ .n("PipesClient", "CreatePipeCommand")
1136
+ .f(CreatePipeRequestFilterSensitiveLog, void 0)
1137
+ .ser(se_CreatePipeCommand)
1138
+ .de(de_CreatePipeCommand)
1139
+ .build() {
1140
+ }
1141
+
1142
+ class DeletePipeCommand extends smithyClient.Command
1143
+ .classBuilder()
1144
+ .ep(commonParams)
1145
+ .m(function (Command, cs, config, o) {
1146
+ return [
1147
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1148
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1149
+ ];
1150
+ })
1151
+ .s("Pipes", "DeletePipe", {})
1152
+ .n("PipesClient", "DeletePipeCommand")
1153
+ .f(void 0, void 0)
1154
+ .ser(se_DeletePipeCommand)
1155
+ .de(de_DeletePipeCommand)
1156
+ .build() {
1157
+ }
1158
+
1159
+ class DescribePipeCommand extends smithyClient.Command
1160
+ .classBuilder()
1161
+ .ep(commonParams)
1162
+ .m(function (Command, cs, config, o) {
1163
+ return [
1164
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1165
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1166
+ ];
1167
+ })
1168
+ .s("Pipes", "DescribePipe", {})
1169
+ .n("PipesClient", "DescribePipeCommand")
1170
+ .f(void 0, DescribePipeResponseFilterSensitiveLog)
1171
+ .ser(se_DescribePipeCommand)
1172
+ .de(de_DescribePipeCommand)
1173
+ .build() {
1174
+ }
1175
+
1176
+ class ListPipesCommand extends smithyClient.Command
1177
+ .classBuilder()
1178
+ .ep(commonParams)
1179
+ .m(function (Command, cs, config, o) {
1180
+ return [
1181
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1182
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1183
+ ];
1184
+ })
1185
+ .s("Pipes", "ListPipes", {})
1186
+ .n("PipesClient", "ListPipesCommand")
1187
+ .f(ListPipesRequestFilterSensitiveLog, ListPipesResponseFilterSensitiveLog)
1188
+ .ser(se_ListPipesCommand)
1189
+ .de(de_ListPipesCommand)
1190
+ .build() {
1191
+ }
1192
+
1193
+ class ListTagsForResourceCommand extends smithyClient.Command
1194
+ .classBuilder()
1195
+ .ep(commonParams)
1196
+ .m(function (Command, cs, config, o) {
1197
+ return [
1198
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1199
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1200
+ ];
1201
+ })
1202
+ .s("Pipes", "ListTagsForResource", {})
1203
+ .n("PipesClient", "ListTagsForResourceCommand")
1204
+ .f(void 0, ListTagsForResourceResponseFilterSensitiveLog)
1205
+ .ser(se_ListTagsForResourceCommand)
1206
+ .de(de_ListTagsForResourceCommand)
1207
+ .build() {
1208
+ }
1209
+
1210
+ class StartPipeCommand extends smithyClient.Command
1211
+ .classBuilder()
1212
+ .ep(commonParams)
1213
+ .m(function (Command, cs, config, o) {
1214
+ return [
1215
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1216
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1217
+ ];
1218
+ })
1219
+ .s("Pipes", "StartPipe", {})
1220
+ .n("PipesClient", "StartPipeCommand")
1221
+ .f(void 0, void 0)
1222
+ .ser(se_StartPipeCommand)
1223
+ .de(de_StartPipeCommand)
1224
+ .build() {
1225
+ }
1226
+
1227
+ class StopPipeCommand extends smithyClient.Command
1228
+ .classBuilder()
1229
+ .ep(commonParams)
1230
+ .m(function (Command, cs, config, o) {
1231
+ return [
1232
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1233
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1234
+ ];
1235
+ })
1236
+ .s("Pipes", "StopPipe", {})
1237
+ .n("PipesClient", "StopPipeCommand")
1238
+ .f(void 0, void 0)
1239
+ .ser(se_StopPipeCommand)
1240
+ .de(de_StopPipeCommand)
1241
+ .build() {
1242
+ }
1243
+
1244
+ class TagResourceCommand extends smithyClient.Command
1245
+ .classBuilder()
1246
+ .ep(commonParams)
1247
+ .m(function (Command, cs, config, o) {
1248
+ return [
1249
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1250
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1251
+ ];
1252
+ })
1253
+ .s("Pipes", "TagResource", {})
1254
+ .n("PipesClient", "TagResourceCommand")
1255
+ .f(TagResourceRequestFilterSensitiveLog, void 0)
1256
+ .ser(se_TagResourceCommand)
1257
+ .de(de_TagResourceCommand)
1258
+ .build() {
1259
+ }
1260
+
1261
+ class UntagResourceCommand extends smithyClient.Command
1262
+ .classBuilder()
1263
+ .ep(commonParams)
1264
+ .m(function (Command, cs, config, o) {
1265
+ return [
1266
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1267
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1268
+ ];
1269
+ })
1270
+ .s("Pipes", "UntagResource", {})
1271
+ .n("PipesClient", "UntagResourceCommand")
1272
+ .f(void 0, void 0)
1273
+ .ser(se_UntagResourceCommand)
1274
+ .de(de_UntagResourceCommand)
1275
+ .build() {
1276
+ }
1277
+
1278
+ class UpdatePipeCommand extends smithyClient.Command
1279
+ .classBuilder()
1280
+ .ep(commonParams)
1281
+ .m(function (Command, cs, config, o) {
1282
+ return [
1283
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1284
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1285
+ ];
1286
+ })
1287
+ .s("Pipes", "UpdatePipe", {})
1288
+ .n("PipesClient", "UpdatePipeCommand")
1289
+ .f(UpdatePipeRequestFilterSensitiveLog, void 0)
1290
+ .ser(se_UpdatePipeCommand)
1291
+ .de(de_UpdatePipeCommand)
1292
+ .build() {
1293
+ }
1294
+
1295
+ const commands = {
1296
+ CreatePipeCommand,
1297
+ DeletePipeCommand,
1298
+ DescribePipeCommand,
1299
+ ListPipesCommand,
1300
+ ListTagsForResourceCommand,
1301
+ StartPipeCommand,
1302
+ StopPipeCommand,
1303
+ TagResourceCommand,
1304
+ UntagResourceCommand,
1305
+ UpdatePipeCommand,
1306
+ };
1307
+ class Pipes extends PipesClient {
1308
+ }
1309
+ smithyClient.createAggregatedClient(commands, Pipes);
1525
1310
 
1526
- // src/Pipes.ts
1527
- var commands = {
1528
- CreatePipeCommand,
1529
- DeletePipeCommand,
1530
- DescribePipeCommand,
1531
- ListPipesCommand,
1532
- ListTagsForResourceCommand,
1533
- StartPipeCommand,
1534
- StopPipeCommand,
1535
- TagResourceCommand,
1536
- UntagResourceCommand,
1537
- UpdatePipeCommand
1538
- };
1539
- var Pipes = class extends PipesClient {
1540
- static {
1541
- __name(this, "Pipes");
1542
- }
1543
- };
1544
- (0, import_smithy_client.createAggregatedClient)(commands, Pipes);
1545
-
1546
- // src/pagination/ListPipesPaginator.ts
1547
-
1548
- var paginateListPipes = (0, import_core.createPaginator)(PipesClient, ListPipesCommand, "NextToken", "NextToken", "Limit");
1549
- // Annotate the CommonJS export names for ESM import in node:
1311
+ const paginateListPipes = core.createPaginator(PipesClient, ListPipesCommand, "NextToken", "NextToken", "Limit");
1550
1312
 
1551
- 0 && (module.exports = {
1552
- PipesServiceException,
1553
- __Client,
1554
- PipesClient,
1555
- Pipes,
1556
- $Command,
1557
- CreatePipeCommand,
1558
- DeletePipeCommand,
1559
- DescribePipeCommand,
1560
- ListPipesCommand,
1561
- ListTagsForResourceCommand,
1562
- StartPipeCommand,
1563
- StopPipeCommand,
1564
- TagResourceCommand,
1565
- UntagResourceCommand,
1566
- UpdatePipeCommand,
1567
- paginateListPipes,
1568
- AssignPublicIp,
1569
- BatchResourceRequirementType,
1570
- BatchJobDependencyType,
1571
- ConflictException,
1572
- RequestedPipeState,
1573
- IncludeExecutionDataOption,
1574
- LogLevel,
1575
- S3OutputFormat,
1576
- MQBrokerAccessCredentials,
1577
- OnPartialBatchItemFailureStreams,
1578
- DynamoDBStreamStartPosition,
1579
- KinesisStreamStartPosition,
1580
- MSKAccessCredentials,
1581
- MSKStartPosition,
1582
- SelfManagedKafkaAccessConfigurationCredentials,
1583
- SelfManagedKafkaStartPosition,
1584
- LaunchType,
1585
- EcsEnvironmentFileType,
1586
- EcsResourceRequirementType,
1587
- PlacementConstraintType,
1588
- PlacementStrategyType,
1589
- PropagateTags,
1590
- PipeTargetInvocationType,
1591
- DimensionValueType,
1592
- EpochTimeUnit,
1593
- MeasureValueType,
1594
- TimeFieldType,
1595
- PipeState,
1596
- InternalException,
1597
- NotFoundException,
1598
- ServiceQuotaExceededException,
1599
- ThrottlingException,
1600
- ValidationException,
1601
- RequestedPipeStateDescribeResponse,
1602
- AwsVpcConfigurationFilterSensitiveLog,
1603
- CapacityProviderStrategyItemFilterSensitiveLog,
1604
- PipeEnrichmentHttpParametersFilterSensitiveLog,
1605
- PipeEnrichmentParametersFilterSensitiveLog,
1606
- PipeSourceActiveMQBrokerParametersFilterSensitiveLog,
1607
- FilterFilterSensitiveLog,
1608
- FilterCriteriaFilterSensitiveLog,
1609
- PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog,
1610
- PipeSourceRabbitMQBrokerParametersFilterSensitiveLog,
1611
- SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog,
1612
- PipeSourceSelfManagedKafkaParametersFilterSensitiveLog,
1613
- PipeSourceParametersFilterSensitiveLog,
1614
- NetworkConfigurationFilterSensitiveLog,
1615
- PlacementConstraintFilterSensitiveLog,
1616
- PlacementStrategyFilterSensitiveLog,
1617
- TagFilterSensitiveLog,
1618
- PipeTargetEcsTaskParametersFilterSensitiveLog,
1619
- PipeTargetEventBridgeEventBusParametersFilterSensitiveLog,
1620
- PipeTargetHttpParametersFilterSensitiveLog,
1621
- PipeTargetKinesisStreamParametersFilterSensitiveLog,
1622
- PipeTargetRedshiftDataParametersFilterSensitiveLog,
1623
- SageMakerPipelineParameterFilterSensitiveLog,
1624
- PipeTargetSageMakerPipelineParametersFilterSensitiveLog,
1625
- PipeTargetSqsQueueParametersFilterSensitiveLog,
1626
- PipeTargetParametersFilterSensitiveLog,
1627
- CreatePipeRequestFilterSensitiveLog,
1628
- DescribePipeResponseFilterSensitiveLog,
1629
- ListPipesRequestFilterSensitiveLog,
1630
- ListPipesResponseFilterSensitiveLog,
1631
- ListTagsForResourceResponseFilterSensitiveLog,
1632
- UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog,
1633
- UpdatePipeSourceParametersFilterSensitiveLog,
1634
- UpdatePipeRequestFilterSensitiveLog,
1635
- TagResourceRequestFilterSensitiveLog
1313
+ Object.defineProperty(exports, "$Command", {
1314
+ enumerable: true,
1315
+ get: function () { return smithyClient.Command; }
1636
1316
  });
1637
-
1317
+ Object.defineProperty(exports, "__Client", {
1318
+ enumerable: true,
1319
+ get: function () { return smithyClient.Client; }
1320
+ });
1321
+ exports.AssignPublicIp = AssignPublicIp;
1322
+ exports.AwsVpcConfigurationFilterSensitiveLog = AwsVpcConfigurationFilterSensitiveLog;
1323
+ exports.BatchJobDependencyType = BatchJobDependencyType;
1324
+ exports.BatchResourceRequirementType = BatchResourceRequirementType;
1325
+ exports.CapacityProviderStrategyItemFilterSensitiveLog = CapacityProviderStrategyItemFilterSensitiveLog;
1326
+ exports.ConflictException = ConflictException;
1327
+ exports.CreatePipeCommand = CreatePipeCommand;
1328
+ exports.CreatePipeRequestFilterSensitiveLog = CreatePipeRequestFilterSensitiveLog;
1329
+ exports.DeletePipeCommand = DeletePipeCommand;
1330
+ exports.DescribePipeCommand = DescribePipeCommand;
1331
+ exports.DescribePipeResponseFilterSensitiveLog = DescribePipeResponseFilterSensitiveLog;
1332
+ exports.DimensionValueType = DimensionValueType;
1333
+ exports.DynamoDBStreamStartPosition = DynamoDBStreamStartPosition;
1334
+ exports.EcsEnvironmentFileType = EcsEnvironmentFileType;
1335
+ exports.EcsResourceRequirementType = EcsResourceRequirementType;
1336
+ exports.EpochTimeUnit = EpochTimeUnit;
1337
+ exports.FilterCriteriaFilterSensitiveLog = FilterCriteriaFilterSensitiveLog;
1338
+ exports.FilterFilterSensitiveLog = FilterFilterSensitiveLog;
1339
+ exports.IncludeExecutionDataOption = IncludeExecutionDataOption;
1340
+ exports.InternalException = InternalException;
1341
+ exports.KinesisStreamStartPosition = KinesisStreamStartPosition;
1342
+ exports.LaunchType = LaunchType;
1343
+ exports.ListPipesCommand = ListPipesCommand;
1344
+ exports.ListPipesRequestFilterSensitiveLog = ListPipesRequestFilterSensitiveLog;
1345
+ exports.ListPipesResponseFilterSensitiveLog = ListPipesResponseFilterSensitiveLog;
1346
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1347
+ exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
1348
+ exports.LogLevel = LogLevel;
1349
+ exports.MSKStartPosition = MSKStartPosition;
1350
+ exports.MeasureValueType = MeasureValueType;
1351
+ exports.NetworkConfigurationFilterSensitiveLog = NetworkConfigurationFilterSensitiveLog;
1352
+ exports.NotFoundException = NotFoundException;
1353
+ exports.OnPartialBatchItemFailureStreams = OnPartialBatchItemFailureStreams;
1354
+ exports.PipeEnrichmentHttpParametersFilterSensitiveLog = PipeEnrichmentHttpParametersFilterSensitiveLog;
1355
+ exports.PipeEnrichmentParametersFilterSensitiveLog = PipeEnrichmentParametersFilterSensitiveLog;
1356
+ exports.PipeSourceActiveMQBrokerParametersFilterSensitiveLog = PipeSourceActiveMQBrokerParametersFilterSensitiveLog;
1357
+ exports.PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog = PipeSourceManagedStreamingKafkaParametersFilterSensitiveLog;
1358
+ exports.PipeSourceParametersFilterSensitiveLog = PipeSourceParametersFilterSensitiveLog;
1359
+ exports.PipeSourceRabbitMQBrokerParametersFilterSensitiveLog = PipeSourceRabbitMQBrokerParametersFilterSensitiveLog;
1360
+ exports.PipeSourceSelfManagedKafkaParametersFilterSensitiveLog = PipeSourceSelfManagedKafkaParametersFilterSensitiveLog;
1361
+ exports.PipeState = PipeState;
1362
+ exports.PipeTargetEcsTaskParametersFilterSensitiveLog = PipeTargetEcsTaskParametersFilterSensitiveLog;
1363
+ exports.PipeTargetEventBridgeEventBusParametersFilterSensitiveLog = PipeTargetEventBridgeEventBusParametersFilterSensitiveLog;
1364
+ exports.PipeTargetHttpParametersFilterSensitiveLog = PipeTargetHttpParametersFilterSensitiveLog;
1365
+ exports.PipeTargetInvocationType = PipeTargetInvocationType;
1366
+ exports.PipeTargetKinesisStreamParametersFilterSensitiveLog = PipeTargetKinesisStreamParametersFilterSensitiveLog;
1367
+ exports.PipeTargetParametersFilterSensitiveLog = PipeTargetParametersFilterSensitiveLog;
1368
+ exports.PipeTargetRedshiftDataParametersFilterSensitiveLog = PipeTargetRedshiftDataParametersFilterSensitiveLog;
1369
+ exports.PipeTargetSageMakerPipelineParametersFilterSensitiveLog = PipeTargetSageMakerPipelineParametersFilterSensitiveLog;
1370
+ exports.PipeTargetSqsQueueParametersFilterSensitiveLog = PipeTargetSqsQueueParametersFilterSensitiveLog;
1371
+ exports.Pipes = Pipes;
1372
+ exports.PipesClient = PipesClient;
1373
+ exports.PipesServiceException = PipesServiceException;
1374
+ exports.PlacementConstraintFilterSensitiveLog = PlacementConstraintFilterSensitiveLog;
1375
+ exports.PlacementConstraintType = PlacementConstraintType;
1376
+ exports.PlacementStrategyFilterSensitiveLog = PlacementStrategyFilterSensitiveLog;
1377
+ exports.PlacementStrategyType = PlacementStrategyType;
1378
+ exports.PropagateTags = PropagateTags;
1379
+ exports.RequestedPipeState = RequestedPipeState;
1380
+ exports.RequestedPipeStateDescribeResponse = RequestedPipeStateDescribeResponse;
1381
+ exports.S3OutputFormat = S3OutputFormat;
1382
+ exports.SageMakerPipelineParameterFilterSensitiveLog = SageMakerPipelineParameterFilterSensitiveLog;
1383
+ exports.SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog = SelfManagedKafkaAccessConfigurationVpcFilterSensitiveLog;
1384
+ exports.SelfManagedKafkaStartPosition = SelfManagedKafkaStartPosition;
1385
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1386
+ exports.StartPipeCommand = StartPipeCommand;
1387
+ exports.StopPipeCommand = StopPipeCommand;
1388
+ exports.TagFilterSensitiveLog = TagFilterSensitiveLog;
1389
+ exports.TagResourceCommand = TagResourceCommand;
1390
+ exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
1391
+ exports.ThrottlingException = ThrottlingException;
1392
+ exports.TimeFieldType = TimeFieldType;
1393
+ exports.UntagResourceCommand = UntagResourceCommand;
1394
+ exports.UpdatePipeCommand = UpdatePipeCommand;
1395
+ exports.UpdatePipeRequestFilterSensitiveLog = UpdatePipeRequestFilterSensitiveLog;
1396
+ exports.UpdatePipeSourceParametersFilterSensitiveLog = UpdatePipeSourceParametersFilterSensitiveLog;
1397
+ exports.UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog = UpdatePipeSourceSelfManagedKafkaParametersFilterSensitiveLog;
1398
+ exports.ValidationException = ValidationException;
1399
+ exports.paginateListPipes = paginateListPipes;