@aws-sdk/client-sqs 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 +2114 -2361
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,2424 +1,2177 @@
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
- AddPermissionCommand: () => AddPermissionCommand,
25
- BatchEntryIdsNotDistinct: () => BatchEntryIdsNotDistinct,
26
- BatchRequestTooLong: () => BatchRequestTooLong,
27
- CancelMessageMoveTaskCommand: () => CancelMessageMoveTaskCommand,
28
- ChangeMessageVisibilityBatchCommand: () => ChangeMessageVisibilityBatchCommand,
29
- ChangeMessageVisibilityCommand: () => ChangeMessageVisibilityCommand,
30
- CreateQueueCommand: () => CreateQueueCommand,
31
- DeleteMessageBatchCommand: () => DeleteMessageBatchCommand,
32
- DeleteMessageCommand: () => DeleteMessageCommand,
33
- DeleteQueueCommand: () => DeleteQueueCommand,
34
- EmptyBatchRequest: () => EmptyBatchRequest,
35
- GetQueueAttributesCommand: () => GetQueueAttributesCommand,
36
- GetQueueUrlCommand: () => GetQueueUrlCommand,
37
- InvalidAddress: () => InvalidAddress,
38
- InvalidAttributeName: () => InvalidAttributeName,
39
- InvalidAttributeValue: () => InvalidAttributeValue,
40
- InvalidBatchEntryId: () => InvalidBatchEntryId,
41
- InvalidIdFormat: () => InvalidIdFormat,
42
- InvalidMessageContents: () => InvalidMessageContents,
43
- InvalidSecurity: () => InvalidSecurity,
44
- KmsAccessDenied: () => KmsAccessDenied,
45
- KmsDisabled: () => KmsDisabled,
46
- KmsInvalidKeyUsage: () => KmsInvalidKeyUsage,
47
- KmsInvalidState: () => KmsInvalidState,
48
- KmsNotFound: () => KmsNotFound,
49
- KmsOptInRequired: () => KmsOptInRequired,
50
- KmsThrottled: () => KmsThrottled,
51
- ListDeadLetterSourceQueuesCommand: () => ListDeadLetterSourceQueuesCommand,
52
- ListMessageMoveTasksCommand: () => ListMessageMoveTasksCommand,
53
- ListQueueTagsCommand: () => ListQueueTagsCommand,
54
- ListQueuesCommand: () => ListQueuesCommand,
55
- MessageNotInflight: () => MessageNotInflight,
56
- MessageSystemAttributeName: () => MessageSystemAttributeName,
57
- MessageSystemAttributeNameForSends: () => MessageSystemAttributeNameForSends,
58
- OverLimit: () => OverLimit,
59
- PurgeQueueCommand: () => PurgeQueueCommand,
60
- PurgeQueueInProgress: () => PurgeQueueInProgress,
61
- QueueAttributeName: () => QueueAttributeName,
62
- QueueDeletedRecently: () => QueueDeletedRecently,
63
- QueueDoesNotExist: () => QueueDoesNotExist,
64
- QueueNameExists: () => QueueNameExists,
65
- ReceiptHandleIsInvalid: () => ReceiptHandleIsInvalid,
66
- ReceiveMessageCommand: () => ReceiveMessageCommand,
67
- RemovePermissionCommand: () => RemovePermissionCommand,
68
- RequestThrottled: () => RequestThrottled,
69
- ResourceNotFoundException: () => ResourceNotFoundException,
70
- SQS: () => SQS,
71
- SQSClient: () => SQSClient,
72
- SQSServiceException: () => SQSServiceException,
73
- SendMessageBatchCommand: () => SendMessageBatchCommand,
74
- SendMessageCommand: () => SendMessageCommand,
75
- SetQueueAttributesCommand: () => SetQueueAttributesCommand,
76
- StartMessageMoveTaskCommand: () => StartMessageMoveTaskCommand,
77
- TagQueueCommand: () => TagQueueCommand,
78
- TooManyEntriesInBatchRequest: () => TooManyEntriesInBatchRequest,
79
- UnsupportedOperation: () => UnsupportedOperation,
80
- UntagQueueCommand: () => UntagQueueCommand,
81
- __Client: () => import_smithy_client.Client,
82
- paginateListDeadLetterSourceQueues: () => paginateListDeadLetterSourceQueues,
83
- paginateListQueues: () => paginateListQueues
84
- });
85
- module.exports = __toCommonJS(index_exports);
86
-
87
- // src/SQSClient.ts
88
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
89
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
90
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
91
- var import_middleware_sdk_sqs = require("@aws-sdk/middleware-sdk-sqs");
92
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
93
- var import_config_resolver = require("@smithy/config-resolver");
94
- var import_core = require("@smithy/core");
95
- var import_middleware_content_length = require("@smithy/middleware-content-length");
96
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
97
- var import_middleware_retry = require("@smithy/middleware-retry");
98
-
99
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
100
-
101
- // src/endpoint/EndpointParameters.ts
102
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
103
- return Object.assign(options, {
104
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
105
- useFipsEndpoint: options.useFipsEndpoint ?? false,
106
- defaultSigningName: "sqs"
107
- });
108
- }, "resolveClientEndpointParameters");
109
- var commonParams = {
110
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
111
- Endpoint: { type: "builtInParams", name: "endpoint" },
112
- Region: { type: "builtInParams", name: "region" },
113
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareSdkSqs = require('@aws-sdk/middleware-sdk-sqs');
7
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
8
+ var configResolver = require('@smithy/config-resolver');
9
+ var core = require('@smithy/core');
10
+ var middlewareContentLength = require('@smithy/middleware-content-length');
11
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
12
+ var middlewareRetry = require('@smithy/middleware-retry');
13
+ var smithyClient = require('@smithy/smithy-client');
14
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
+ var runtimeConfig = require('./runtimeConfig');
16
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
+ var protocolHttp = require('@smithy/protocol-http');
18
+ var middlewareSerde = require('@smithy/middleware-serde');
19
+ var core$1 = require('@aws-sdk/core');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "sqs",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
114
33
  };
115
34
 
116
- // src/SQSClient.ts
117
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
118
73
 
119
- // src/runtimeExtensions.ts
120
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
121
- var import_protocol_http = require("@smithy/protocol-http");
122
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
123
79
 
124
- // src/auth/httpAuthExtensionConfiguration.ts
125
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
126
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
127
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
128
- let _credentials = runtimeConfig.credentials;
129
- return {
130
- setHttpAuthScheme(httpAuthScheme) {
131
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
132
- if (index === -1) {
133
- _httpAuthSchemes.push(httpAuthScheme);
134
- } else {
135
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
136
- }
137
- },
138
- httpAuthSchemes() {
139
- return _httpAuthSchemes;
140
- },
141
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
142
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
143
- },
144
- httpAuthSchemeProvider() {
145
- return _httpAuthSchemeProvider;
146
- },
147
- setCredentials(credentials) {
148
- _credentials = credentials;
149
- },
150
- credentials() {
151
- return _credentials;
80
+ class SQSClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = middlewareSdkSqs.resolveQueueUrlConfig(_config_6);
93
+ const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
94
+ const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
95
+ this.config = _config_9;
96
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
97
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
98
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
99
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
100
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
101
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
102
+ this.middlewareStack.use(middlewareSdkSqs.getQueueUrlPlugin(this.config));
103
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
104
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSQSHttpAuthSchemeParametersProvider,
105
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
106
+ "aws.auth#sigv4": config.credentials,
107
+ }),
108
+ }));
109
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
110
+ }
111
+ destroy() {
112
+ super.destroy();
152
113
  }
153
- };
154
- }, "getHttpAuthExtensionConfiguration");
155
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
156
- return {
157
- httpAuthSchemes: config.httpAuthSchemes(),
158
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
159
- credentials: config.credentials()
160
- };
161
- }, "resolveHttpAuthRuntimeConfig");
114
+ }
162
115
 
163
- // src/runtimeExtensions.ts
164
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
165
- const extensionConfiguration = Object.assign(
166
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
167
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
168
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
169
- getHttpAuthExtensionConfiguration(runtimeConfig)
170
- );
171
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
172
- return Object.assign(
173
- runtimeConfig,
174
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
175
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
176
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
177
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
178
- );
179
- }, "resolveRuntimeExtensions");
116
+ class SQSServiceException extends smithyClient.ServiceException {
117
+ constructor(options) {
118
+ super(options);
119
+ Object.setPrototypeOf(this, SQSServiceException.prototype);
120
+ }
121
+ }
180
122
 
181
- // src/SQSClient.ts
182
- var SQSClient = class extends import_smithy_client.Client {
183
- static {
184
- __name(this, "SQSClient");
185
- }
186
- /**
187
- * The resolved configuration of SQSClient class. This is resolved and normalized from the {@link SQSClientConfig | constructor configuration interface}.
188
- */
189
- config;
190
- constructor(...[configuration]) {
191
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
192
- super(_config_0);
193
- this.initConfig = _config_0;
194
- const _config_1 = resolveClientEndpointParameters(_config_0);
195
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
196
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
197
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
198
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
199
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
200
- const _config_7 = (0, import_middleware_sdk_sqs.resolveQueueUrlConfig)(_config_6);
201
- const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
202
- const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
203
- this.config = _config_9;
204
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
205
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
206
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
207
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
208
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
209
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
210
- this.middlewareStack.use((0, import_middleware_sdk_sqs.getQueueUrlPlugin)(this.config));
211
- this.middlewareStack.use(
212
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
213
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSQSHttpAuthSchemeParametersProvider,
214
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
215
- "aws.auth#sigv4": config.credentials
216
- }), "identityProviderConfigProvider")
217
- })
218
- );
219
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
220
- }
221
- /**
222
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
223
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
224
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
225
- */
226
- destroy() {
227
- super.destroy();
228
- }
123
+ class InvalidAddress extends SQSServiceException {
124
+ name = "InvalidAddress";
125
+ $fault = "client";
126
+ constructor(opts) {
127
+ super({
128
+ name: "InvalidAddress",
129
+ $fault: "client",
130
+ ...opts,
131
+ });
132
+ Object.setPrototypeOf(this, InvalidAddress.prototype);
133
+ }
134
+ }
135
+ class InvalidSecurity extends SQSServiceException {
136
+ name = "InvalidSecurity";
137
+ $fault = "client";
138
+ constructor(opts) {
139
+ super({
140
+ name: "InvalidSecurity",
141
+ $fault: "client",
142
+ ...opts,
143
+ });
144
+ Object.setPrototypeOf(this, InvalidSecurity.prototype);
145
+ }
146
+ }
147
+ class OverLimit extends SQSServiceException {
148
+ name = "OverLimit";
149
+ $fault = "client";
150
+ constructor(opts) {
151
+ super({
152
+ name: "OverLimit",
153
+ $fault: "client",
154
+ ...opts,
155
+ });
156
+ Object.setPrototypeOf(this, OverLimit.prototype);
157
+ }
158
+ }
159
+ class QueueDoesNotExist extends SQSServiceException {
160
+ name = "QueueDoesNotExist";
161
+ $fault = "client";
162
+ constructor(opts) {
163
+ super({
164
+ name: "QueueDoesNotExist",
165
+ $fault: "client",
166
+ ...opts,
167
+ });
168
+ Object.setPrototypeOf(this, QueueDoesNotExist.prototype);
169
+ }
170
+ }
171
+ class RequestThrottled extends SQSServiceException {
172
+ name = "RequestThrottled";
173
+ $fault = "client";
174
+ constructor(opts) {
175
+ super({
176
+ name: "RequestThrottled",
177
+ $fault: "client",
178
+ ...opts,
179
+ });
180
+ Object.setPrototypeOf(this, RequestThrottled.prototype);
181
+ }
182
+ }
183
+ class UnsupportedOperation extends SQSServiceException {
184
+ name = "UnsupportedOperation";
185
+ $fault = "client";
186
+ constructor(opts) {
187
+ super({
188
+ name: "UnsupportedOperation",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, UnsupportedOperation.prototype);
193
+ }
194
+ }
195
+ class ResourceNotFoundException extends SQSServiceException {
196
+ name = "ResourceNotFoundException";
197
+ $fault = "client";
198
+ constructor(opts) {
199
+ super({
200
+ name: "ResourceNotFoundException",
201
+ $fault: "client",
202
+ ...opts,
203
+ });
204
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
205
+ }
206
+ }
207
+ class MessageNotInflight extends SQSServiceException {
208
+ name = "MessageNotInflight";
209
+ $fault = "client";
210
+ constructor(opts) {
211
+ super({
212
+ name: "MessageNotInflight",
213
+ $fault: "client",
214
+ ...opts,
215
+ });
216
+ Object.setPrototypeOf(this, MessageNotInflight.prototype);
217
+ }
218
+ }
219
+ class ReceiptHandleIsInvalid extends SQSServiceException {
220
+ name = "ReceiptHandleIsInvalid";
221
+ $fault = "client";
222
+ constructor(opts) {
223
+ super({
224
+ name: "ReceiptHandleIsInvalid",
225
+ $fault: "client",
226
+ ...opts,
227
+ });
228
+ Object.setPrototypeOf(this, ReceiptHandleIsInvalid.prototype);
229
+ }
230
+ }
231
+ class BatchEntryIdsNotDistinct extends SQSServiceException {
232
+ name = "BatchEntryIdsNotDistinct";
233
+ $fault = "client";
234
+ constructor(opts) {
235
+ super({
236
+ name: "BatchEntryIdsNotDistinct",
237
+ $fault: "client",
238
+ ...opts,
239
+ });
240
+ Object.setPrototypeOf(this, BatchEntryIdsNotDistinct.prototype);
241
+ }
242
+ }
243
+ class EmptyBatchRequest extends SQSServiceException {
244
+ name = "EmptyBatchRequest";
245
+ $fault = "client";
246
+ constructor(opts) {
247
+ super({
248
+ name: "EmptyBatchRequest",
249
+ $fault: "client",
250
+ ...opts,
251
+ });
252
+ Object.setPrototypeOf(this, EmptyBatchRequest.prototype);
253
+ }
254
+ }
255
+ class InvalidBatchEntryId extends SQSServiceException {
256
+ name = "InvalidBatchEntryId";
257
+ $fault = "client";
258
+ constructor(opts) {
259
+ super({
260
+ name: "InvalidBatchEntryId",
261
+ $fault: "client",
262
+ ...opts,
263
+ });
264
+ Object.setPrototypeOf(this, InvalidBatchEntryId.prototype);
265
+ }
266
+ }
267
+ class TooManyEntriesInBatchRequest extends SQSServiceException {
268
+ name = "TooManyEntriesInBatchRequest";
269
+ $fault = "client";
270
+ constructor(opts) {
271
+ super({
272
+ name: "TooManyEntriesInBatchRequest",
273
+ $fault: "client",
274
+ ...opts,
275
+ });
276
+ Object.setPrototypeOf(this, TooManyEntriesInBatchRequest.prototype);
277
+ }
278
+ }
279
+ const QueueAttributeName = {
280
+ All: "All",
281
+ ApproximateNumberOfMessages: "ApproximateNumberOfMessages",
282
+ ApproximateNumberOfMessagesDelayed: "ApproximateNumberOfMessagesDelayed",
283
+ ApproximateNumberOfMessagesNotVisible: "ApproximateNumberOfMessagesNotVisible",
284
+ ContentBasedDeduplication: "ContentBasedDeduplication",
285
+ CreatedTimestamp: "CreatedTimestamp",
286
+ DeduplicationScope: "DeduplicationScope",
287
+ DelaySeconds: "DelaySeconds",
288
+ FifoQueue: "FifoQueue",
289
+ FifoThroughputLimit: "FifoThroughputLimit",
290
+ KmsDataKeyReusePeriodSeconds: "KmsDataKeyReusePeriodSeconds",
291
+ KmsMasterKeyId: "KmsMasterKeyId",
292
+ LastModifiedTimestamp: "LastModifiedTimestamp",
293
+ MaximumMessageSize: "MaximumMessageSize",
294
+ MessageRetentionPeriod: "MessageRetentionPeriod",
295
+ Policy: "Policy",
296
+ QueueArn: "QueueArn",
297
+ ReceiveMessageWaitTimeSeconds: "ReceiveMessageWaitTimeSeconds",
298
+ RedriveAllowPolicy: "RedriveAllowPolicy",
299
+ RedrivePolicy: "RedrivePolicy",
300
+ SqsManagedSseEnabled: "SqsManagedSseEnabled",
301
+ VisibilityTimeout: "VisibilityTimeout",
229
302
  };
230
-
231
- // src/SQS.ts
232
-
233
-
234
- // src/commands/AddPermissionCommand.ts
235
-
236
- var import_middleware_serde = require("@smithy/middleware-serde");
237
-
238
-
239
- // src/protocols/Aws_json1_0.ts
240
- var import_core2 = require("@aws-sdk/core");
241
-
242
-
243
-
244
- // src/models/SQSServiceException.ts
245
-
246
- var SQSServiceException = class _SQSServiceException extends import_smithy_client.ServiceException {
247
- static {
248
- __name(this, "SQSServiceException");
249
- }
250
- /**
251
- * @internal
252
- */
253
- constructor(options) {
254
- super(options);
255
- Object.setPrototypeOf(this, _SQSServiceException.prototype);
256
- }
303
+ class InvalidAttributeName extends SQSServiceException {
304
+ name = "InvalidAttributeName";
305
+ $fault = "client";
306
+ constructor(opts) {
307
+ super({
308
+ name: "InvalidAttributeName",
309
+ $fault: "client",
310
+ ...opts,
311
+ });
312
+ Object.setPrototypeOf(this, InvalidAttributeName.prototype);
313
+ }
314
+ }
315
+ class InvalidAttributeValue extends SQSServiceException {
316
+ name = "InvalidAttributeValue";
317
+ $fault = "client";
318
+ constructor(opts) {
319
+ super({
320
+ name: "InvalidAttributeValue",
321
+ $fault: "client",
322
+ ...opts,
323
+ });
324
+ Object.setPrototypeOf(this, InvalidAttributeValue.prototype);
325
+ }
326
+ }
327
+ class QueueDeletedRecently extends SQSServiceException {
328
+ name = "QueueDeletedRecently";
329
+ $fault = "client";
330
+ constructor(opts) {
331
+ super({
332
+ name: "QueueDeletedRecently",
333
+ $fault: "client",
334
+ ...opts,
335
+ });
336
+ Object.setPrototypeOf(this, QueueDeletedRecently.prototype);
337
+ }
338
+ }
339
+ class QueueNameExists extends SQSServiceException {
340
+ name = "QueueNameExists";
341
+ $fault = "client";
342
+ constructor(opts) {
343
+ super({
344
+ name: "QueueNameExists",
345
+ $fault: "client",
346
+ ...opts,
347
+ });
348
+ Object.setPrototypeOf(this, QueueNameExists.prototype);
349
+ }
350
+ }
351
+ class InvalidIdFormat extends SQSServiceException {
352
+ name = "InvalidIdFormat";
353
+ $fault = "client";
354
+ constructor(opts) {
355
+ super({
356
+ name: "InvalidIdFormat",
357
+ $fault: "client",
358
+ ...opts,
359
+ });
360
+ Object.setPrototypeOf(this, InvalidIdFormat.prototype);
361
+ }
362
+ }
363
+ class PurgeQueueInProgress extends SQSServiceException {
364
+ name = "PurgeQueueInProgress";
365
+ $fault = "client";
366
+ constructor(opts) {
367
+ super({
368
+ name: "PurgeQueueInProgress",
369
+ $fault: "client",
370
+ ...opts,
371
+ });
372
+ Object.setPrototypeOf(this, PurgeQueueInProgress.prototype);
373
+ }
374
+ }
375
+ class KmsAccessDenied extends SQSServiceException {
376
+ name = "KmsAccessDenied";
377
+ $fault = "client";
378
+ constructor(opts) {
379
+ super({
380
+ name: "KmsAccessDenied",
381
+ $fault: "client",
382
+ ...opts,
383
+ });
384
+ Object.setPrototypeOf(this, KmsAccessDenied.prototype);
385
+ }
386
+ }
387
+ class KmsDisabled extends SQSServiceException {
388
+ name = "KmsDisabled";
389
+ $fault = "client";
390
+ constructor(opts) {
391
+ super({
392
+ name: "KmsDisabled",
393
+ $fault: "client",
394
+ ...opts,
395
+ });
396
+ Object.setPrototypeOf(this, KmsDisabled.prototype);
397
+ }
398
+ }
399
+ class KmsInvalidKeyUsage extends SQSServiceException {
400
+ name = "KmsInvalidKeyUsage";
401
+ $fault = "client";
402
+ constructor(opts) {
403
+ super({
404
+ name: "KmsInvalidKeyUsage",
405
+ $fault: "client",
406
+ ...opts,
407
+ });
408
+ Object.setPrototypeOf(this, KmsInvalidKeyUsage.prototype);
409
+ }
410
+ }
411
+ class KmsInvalidState extends SQSServiceException {
412
+ name = "KmsInvalidState";
413
+ $fault = "client";
414
+ constructor(opts) {
415
+ super({
416
+ name: "KmsInvalidState",
417
+ $fault: "client",
418
+ ...opts,
419
+ });
420
+ Object.setPrototypeOf(this, KmsInvalidState.prototype);
421
+ }
422
+ }
423
+ class KmsNotFound extends SQSServiceException {
424
+ name = "KmsNotFound";
425
+ $fault = "client";
426
+ constructor(opts) {
427
+ super({
428
+ name: "KmsNotFound",
429
+ $fault: "client",
430
+ ...opts,
431
+ });
432
+ Object.setPrototypeOf(this, KmsNotFound.prototype);
433
+ }
434
+ }
435
+ class KmsOptInRequired extends SQSServiceException {
436
+ name = "KmsOptInRequired";
437
+ $fault = "client";
438
+ constructor(opts) {
439
+ super({
440
+ name: "KmsOptInRequired",
441
+ $fault: "client",
442
+ ...opts,
443
+ });
444
+ Object.setPrototypeOf(this, KmsOptInRequired.prototype);
445
+ }
446
+ }
447
+ class KmsThrottled extends SQSServiceException {
448
+ name = "KmsThrottled";
449
+ $fault = "client";
450
+ constructor(opts) {
451
+ super({
452
+ name: "KmsThrottled",
453
+ $fault: "client",
454
+ ...opts,
455
+ });
456
+ Object.setPrototypeOf(this, KmsThrottled.prototype);
457
+ }
458
+ }
459
+ const MessageSystemAttributeName = {
460
+ AWSTraceHeader: "AWSTraceHeader",
461
+ All: "All",
462
+ ApproximateFirstReceiveTimestamp: "ApproximateFirstReceiveTimestamp",
463
+ ApproximateReceiveCount: "ApproximateReceiveCount",
464
+ DeadLetterQueueSourceArn: "DeadLetterQueueSourceArn",
465
+ MessageDeduplicationId: "MessageDeduplicationId",
466
+ MessageGroupId: "MessageGroupId",
467
+ SenderId: "SenderId",
468
+ SentTimestamp: "SentTimestamp",
469
+ SequenceNumber: "SequenceNumber",
257
470
  };
258
-
259
- // src/models/models_0.ts
260
- var InvalidAddress = class _InvalidAddress extends SQSServiceException {
261
- static {
262
- __name(this, "InvalidAddress");
263
- }
264
- name = "InvalidAddress";
265
- $fault = "client";
266
- /**
267
- * @internal
268
- */
269
- constructor(opts) {
270
- super({
271
- name: "InvalidAddress",
272
- $fault: "client",
273
- ...opts
274
- });
275
- Object.setPrototypeOf(this, _InvalidAddress.prototype);
276
- }
277
- };
278
- var InvalidSecurity = class _InvalidSecurity extends SQSServiceException {
279
- static {
280
- __name(this, "InvalidSecurity");
281
- }
282
- name = "InvalidSecurity";
283
- $fault = "client";
284
- /**
285
- * @internal
286
- */
287
- constructor(opts) {
288
- super({
289
- name: "InvalidSecurity",
290
- $fault: "client",
291
- ...opts
292
- });
293
- Object.setPrototypeOf(this, _InvalidSecurity.prototype);
294
- }
295
- };
296
- var OverLimit = class _OverLimit extends SQSServiceException {
297
- static {
298
- __name(this, "OverLimit");
299
- }
300
- name = "OverLimit";
301
- $fault = "client";
302
- /**
303
- * @internal
304
- */
305
- constructor(opts) {
306
- super({
307
- name: "OverLimit",
308
- $fault: "client",
309
- ...opts
310
- });
311
- Object.setPrototypeOf(this, _OverLimit.prototype);
312
- }
313
- };
314
- var QueueDoesNotExist = class _QueueDoesNotExist extends SQSServiceException {
315
- static {
316
- __name(this, "QueueDoesNotExist");
317
- }
318
- name = "QueueDoesNotExist";
319
- $fault = "client";
320
- /**
321
- * @internal
322
- */
323
- constructor(opts) {
324
- super({
325
- name: "QueueDoesNotExist",
326
- $fault: "client",
327
- ...opts
328
- });
329
- Object.setPrototypeOf(this, _QueueDoesNotExist.prototype);
330
- }
331
- };
332
- var RequestThrottled = class _RequestThrottled extends SQSServiceException {
333
- static {
334
- __name(this, "RequestThrottled");
335
- }
336
- name = "RequestThrottled";
337
- $fault = "client";
338
- /**
339
- * @internal
340
- */
341
- constructor(opts) {
342
- super({
343
- name: "RequestThrottled",
344
- $fault: "client",
345
- ...opts
346
- });
347
- Object.setPrototypeOf(this, _RequestThrottled.prototype);
348
- }
349
- };
350
- var UnsupportedOperation = class _UnsupportedOperation extends SQSServiceException {
351
- static {
352
- __name(this, "UnsupportedOperation");
353
- }
354
- name = "UnsupportedOperation";
355
- $fault = "client";
356
- /**
357
- * @internal
358
- */
359
- constructor(opts) {
360
- super({
361
- name: "UnsupportedOperation",
362
- $fault: "client",
363
- ...opts
364
- });
365
- Object.setPrototypeOf(this, _UnsupportedOperation.prototype);
366
- }
367
- };
368
- var ResourceNotFoundException = class _ResourceNotFoundException extends SQSServiceException {
369
- static {
370
- __name(this, "ResourceNotFoundException");
371
- }
372
- name = "ResourceNotFoundException";
373
- $fault = "client";
374
- /**
375
- * @internal
376
- */
377
- constructor(opts) {
378
- super({
379
- name: "ResourceNotFoundException",
380
- $fault: "client",
381
- ...opts
382
- });
383
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
384
- }
385
- };
386
- var MessageNotInflight = class _MessageNotInflight extends SQSServiceException {
387
- static {
388
- __name(this, "MessageNotInflight");
389
- }
390
- name = "MessageNotInflight";
391
- $fault = "client";
392
- /**
393
- * @internal
394
- */
395
- constructor(opts) {
396
- super({
397
- name: "MessageNotInflight",
398
- $fault: "client",
399
- ...opts
400
- });
401
- Object.setPrototypeOf(this, _MessageNotInflight.prototype);
402
- }
403
- };
404
- var ReceiptHandleIsInvalid = class _ReceiptHandleIsInvalid extends SQSServiceException {
405
- static {
406
- __name(this, "ReceiptHandleIsInvalid");
407
- }
408
- name = "ReceiptHandleIsInvalid";
409
- $fault = "client";
410
- /**
411
- * @internal
412
- */
413
- constructor(opts) {
414
- super({
415
- name: "ReceiptHandleIsInvalid",
416
- $fault: "client",
417
- ...opts
418
- });
419
- Object.setPrototypeOf(this, _ReceiptHandleIsInvalid.prototype);
420
- }
421
- };
422
- var BatchEntryIdsNotDistinct = class _BatchEntryIdsNotDistinct extends SQSServiceException {
423
- static {
424
- __name(this, "BatchEntryIdsNotDistinct");
425
- }
426
- name = "BatchEntryIdsNotDistinct";
427
- $fault = "client";
428
- /**
429
- * @internal
430
- */
431
- constructor(opts) {
432
- super({
433
- name: "BatchEntryIdsNotDistinct",
434
- $fault: "client",
435
- ...opts
436
- });
437
- Object.setPrototypeOf(this, _BatchEntryIdsNotDistinct.prototype);
438
- }
439
- };
440
- var EmptyBatchRequest = class _EmptyBatchRequest extends SQSServiceException {
441
- static {
442
- __name(this, "EmptyBatchRequest");
443
- }
444
- name = "EmptyBatchRequest";
445
- $fault = "client";
446
- /**
447
- * @internal
448
- */
449
- constructor(opts) {
450
- super({
451
- name: "EmptyBatchRequest",
452
- $fault: "client",
453
- ...opts
454
- });
455
- Object.setPrototypeOf(this, _EmptyBatchRequest.prototype);
456
- }
457
- };
458
- var InvalidBatchEntryId = class _InvalidBatchEntryId extends SQSServiceException {
459
- static {
460
- __name(this, "InvalidBatchEntryId");
461
- }
462
- name = "InvalidBatchEntryId";
463
- $fault = "client";
464
- /**
465
- * @internal
466
- */
467
- constructor(opts) {
468
- super({
469
- name: "InvalidBatchEntryId",
470
- $fault: "client",
471
- ...opts
472
- });
473
- Object.setPrototypeOf(this, _InvalidBatchEntryId.prototype);
474
- }
475
- };
476
- var TooManyEntriesInBatchRequest = class _TooManyEntriesInBatchRequest extends SQSServiceException {
477
- static {
478
- __name(this, "TooManyEntriesInBatchRequest");
479
- }
480
- name = "TooManyEntriesInBatchRequest";
481
- $fault = "client";
482
- /**
483
- * @internal
484
- */
485
- constructor(opts) {
486
- super({
487
- name: "TooManyEntriesInBatchRequest",
488
- $fault: "client",
489
- ...opts
490
- });
491
- Object.setPrototypeOf(this, _TooManyEntriesInBatchRequest.prototype);
492
- }
493
- };
494
- var QueueAttributeName = {
495
- All: "All",
496
- ApproximateNumberOfMessages: "ApproximateNumberOfMessages",
497
- ApproximateNumberOfMessagesDelayed: "ApproximateNumberOfMessagesDelayed",
498
- ApproximateNumberOfMessagesNotVisible: "ApproximateNumberOfMessagesNotVisible",
499
- ContentBasedDeduplication: "ContentBasedDeduplication",
500
- CreatedTimestamp: "CreatedTimestamp",
501
- DeduplicationScope: "DeduplicationScope",
502
- DelaySeconds: "DelaySeconds",
503
- FifoQueue: "FifoQueue",
504
- FifoThroughputLimit: "FifoThroughputLimit",
505
- KmsDataKeyReusePeriodSeconds: "KmsDataKeyReusePeriodSeconds",
506
- KmsMasterKeyId: "KmsMasterKeyId",
507
- LastModifiedTimestamp: "LastModifiedTimestamp",
508
- MaximumMessageSize: "MaximumMessageSize",
509
- MessageRetentionPeriod: "MessageRetentionPeriod",
510
- Policy: "Policy",
511
- QueueArn: "QueueArn",
512
- ReceiveMessageWaitTimeSeconds: "ReceiveMessageWaitTimeSeconds",
513
- RedriveAllowPolicy: "RedriveAllowPolicy",
514
- RedrivePolicy: "RedrivePolicy",
515
- SqsManagedSseEnabled: "SqsManagedSseEnabled",
516
- VisibilityTimeout: "VisibilityTimeout"
517
- };
518
- var InvalidAttributeName = class _InvalidAttributeName extends SQSServiceException {
519
- static {
520
- __name(this, "InvalidAttributeName");
521
- }
522
- name = "InvalidAttributeName";
523
- $fault = "client";
524
- /**
525
- * @internal
526
- */
527
- constructor(opts) {
528
- super({
529
- name: "InvalidAttributeName",
530
- $fault: "client",
531
- ...opts
532
- });
533
- Object.setPrototypeOf(this, _InvalidAttributeName.prototype);
534
- }
535
- };
536
- var InvalidAttributeValue = class _InvalidAttributeValue extends SQSServiceException {
537
- static {
538
- __name(this, "InvalidAttributeValue");
539
- }
540
- name = "InvalidAttributeValue";
541
- $fault = "client";
542
- /**
543
- * @internal
544
- */
545
- constructor(opts) {
546
- super({
547
- name: "InvalidAttributeValue",
548
- $fault: "client",
549
- ...opts
550
- });
551
- Object.setPrototypeOf(this, _InvalidAttributeValue.prototype);
552
- }
553
- };
554
- var QueueDeletedRecently = class _QueueDeletedRecently extends SQSServiceException {
555
- static {
556
- __name(this, "QueueDeletedRecently");
557
- }
558
- name = "QueueDeletedRecently";
559
- $fault = "client";
560
- /**
561
- * @internal
562
- */
563
- constructor(opts) {
564
- super({
565
- name: "QueueDeletedRecently",
566
- $fault: "client",
567
- ...opts
568
- });
569
- Object.setPrototypeOf(this, _QueueDeletedRecently.prototype);
570
- }
571
- };
572
- var QueueNameExists = class _QueueNameExists extends SQSServiceException {
573
- static {
574
- __name(this, "QueueNameExists");
575
- }
576
- name = "QueueNameExists";
577
- $fault = "client";
578
- /**
579
- * @internal
580
- */
581
- constructor(opts) {
582
- super({
583
- name: "QueueNameExists",
584
- $fault: "client",
585
- ...opts
586
- });
587
- Object.setPrototypeOf(this, _QueueNameExists.prototype);
588
- }
589
- };
590
- var InvalidIdFormat = class _InvalidIdFormat extends SQSServiceException {
591
- static {
592
- __name(this, "InvalidIdFormat");
593
- }
594
- name = "InvalidIdFormat";
595
- $fault = "client";
596
- /**
597
- * @internal
598
- */
599
- constructor(opts) {
600
- super({
601
- name: "InvalidIdFormat",
602
- $fault: "client",
603
- ...opts
604
- });
605
- Object.setPrototypeOf(this, _InvalidIdFormat.prototype);
606
- }
607
- };
608
- var PurgeQueueInProgress = class _PurgeQueueInProgress extends SQSServiceException {
609
- static {
610
- __name(this, "PurgeQueueInProgress");
611
- }
612
- name = "PurgeQueueInProgress";
613
- $fault = "client";
614
- /**
615
- * @internal
616
- */
617
- constructor(opts) {
618
- super({
619
- name: "PurgeQueueInProgress",
620
- $fault: "client",
621
- ...opts
622
- });
623
- Object.setPrototypeOf(this, _PurgeQueueInProgress.prototype);
624
- }
625
- };
626
- var KmsAccessDenied = class _KmsAccessDenied extends SQSServiceException {
627
- static {
628
- __name(this, "KmsAccessDenied");
629
- }
630
- name = "KmsAccessDenied";
631
- $fault = "client";
632
- /**
633
- * @internal
634
- */
635
- constructor(opts) {
636
- super({
637
- name: "KmsAccessDenied",
638
- $fault: "client",
639
- ...opts
640
- });
641
- Object.setPrototypeOf(this, _KmsAccessDenied.prototype);
642
- }
643
- };
644
- var KmsDisabled = class _KmsDisabled extends SQSServiceException {
645
- static {
646
- __name(this, "KmsDisabled");
647
- }
648
- name = "KmsDisabled";
649
- $fault = "client";
650
- /**
651
- * @internal
652
- */
653
- constructor(opts) {
654
- super({
655
- name: "KmsDisabled",
656
- $fault: "client",
657
- ...opts
658
- });
659
- Object.setPrototypeOf(this, _KmsDisabled.prototype);
660
- }
661
- };
662
- var KmsInvalidKeyUsage = class _KmsInvalidKeyUsage extends SQSServiceException {
663
- static {
664
- __name(this, "KmsInvalidKeyUsage");
665
- }
666
- name = "KmsInvalidKeyUsage";
667
- $fault = "client";
668
- /**
669
- * @internal
670
- */
671
- constructor(opts) {
672
- super({
673
- name: "KmsInvalidKeyUsage",
674
- $fault: "client",
675
- ...opts
676
- });
677
- Object.setPrototypeOf(this, _KmsInvalidKeyUsage.prototype);
678
- }
679
- };
680
- var KmsInvalidState = class _KmsInvalidState extends SQSServiceException {
681
- static {
682
- __name(this, "KmsInvalidState");
683
- }
684
- name = "KmsInvalidState";
685
- $fault = "client";
686
- /**
687
- * @internal
688
- */
689
- constructor(opts) {
690
- super({
691
- name: "KmsInvalidState",
692
- $fault: "client",
693
- ...opts
694
- });
695
- Object.setPrototypeOf(this, _KmsInvalidState.prototype);
696
- }
697
- };
698
- var KmsNotFound = class _KmsNotFound extends SQSServiceException {
699
- static {
700
- __name(this, "KmsNotFound");
701
- }
702
- name = "KmsNotFound";
703
- $fault = "client";
704
- /**
705
- * @internal
706
- */
707
- constructor(opts) {
708
- super({
709
- name: "KmsNotFound",
710
- $fault: "client",
711
- ...opts
712
- });
713
- Object.setPrototypeOf(this, _KmsNotFound.prototype);
714
- }
715
- };
716
- var KmsOptInRequired = class _KmsOptInRequired extends SQSServiceException {
717
- static {
718
- __name(this, "KmsOptInRequired");
719
- }
720
- name = "KmsOptInRequired";
721
- $fault = "client";
722
- /**
723
- * @internal
724
- */
725
- constructor(opts) {
726
- super({
727
- name: "KmsOptInRequired",
728
- $fault: "client",
729
- ...opts
730
- });
731
- Object.setPrototypeOf(this, _KmsOptInRequired.prototype);
732
- }
733
- };
734
- var KmsThrottled = class _KmsThrottled extends SQSServiceException {
735
- static {
736
- __name(this, "KmsThrottled");
737
- }
738
- name = "KmsThrottled";
739
- $fault = "client";
740
- /**
741
- * @internal
742
- */
743
- constructor(opts) {
744
- super({
745
- name: "KmsThrottled",
746
- $fault: "client",
747
- ...opts
748
- });
749
- Object.setPrototypeOf(this, _KmsThrottled.prototype);
750
- }
751
- };
752
- var MessageSystemAttributeName = {
753
- AWSTraceHeader: "AWSTraceHeader",
754
- All: "All",
755
- ApproximateFirstReceiveTimestamp: "ApproximateFirstReceiveTimestamp",
756
- ApproximateReceiveCount: "ApproximateReceiveCount",
757
- DeadLetterQueueSourceArn: "DeadLetterQueueSourceArn",
758
- MessageDeduplicationId: "MessageDeduplicationId",
759
- MessageGroupId: "MessageGroupId",
760
- SenderId: "SenderId",
761
- SentTimestamp: "SentTimestamp",
762
- SequenceNumber: "SequenceNumber"
763
- };
764
- var InvalidMessageContents = class _InvalidMessageContents extends SQSServiceException {
765
- static {
766
- __name(this, "InvalidMessageContents");
767
- }
768
- name = "InvalidMessageContents";
769
- $fault = "client";
770
- /**
771
- * @internal
772
- */
773
- constructor(opts) {
774
- super({
775
- name: "InvalidMessageContents",
776
- $fault: "client",
777
- ...opts
778
- });
779
- Object.setPrototypeOf(this, _InvalidMessageContents.prototype);
780
- }
781
- };
782
- var MessageSystemAttributeNameForSends = {
783
- AWSTraceHeader: "AWSTraceHeader"
784
- };
785
- var BatchRequestTooLong = class _BatchRequestTooLong extends SQSServiceException {
786
- static {
787
- __name(this, "BatchRequestTooLong");
788
- }
789
- name = "BatchRequestTooLong";
790
- $fault = "client";
791
- /**
792
- * @internal
793
- */
794
- constructor(opts) {
795
- super({
796
- name: "BatchRequestTooLong",
797
- $fault: "client",
798
- ...opts
799
- });
800
- Object.setPrototypeOf(this, _BatchRequestTooLong.prototype);
801
- }
471
+ class InvalidMessageContents extends SQSServiceException {
472
+ name = "InvalidMessageContents";
473
+ $fault = "client";
474
+ constructor(opts) {
475
+ super({
476
+ name: "InvalidMessageContents",
477
+ $fault: "client",
478
+ ...opts,
479
+ });
480
+ Object.setPrototypeOf(this, InvalidMessageContents.prototype);
481
+ }
482
+ }
483
+ const MessageSystemAttributeNameForSends = {
484
+ AWSTraceHeader: "AWSTraceHeader",
802
485
  };
486
+ class BatchRequestTooLong extends SQSServiceException {
487
+ name = "BatchRequestTooLong";
488
+ $fault = "client";
489
+ constructor(opts) {
490
+ super({
491
+ name: "BatchRequestTooLong",
492
+ $fault: "client",
493
+ ...opts,
494
+ });
495
+ Object.setPrototypeOf(this, BatchRequestTooLong.prototype);
496
+ }
497
+ }
803
498
 
804
- // src/protocols/Aws_json1_0.ts
805
- var se_AddPermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
806
- const headers = sharedHeaders("AddPermission");
807
- let body;
808
- body = JSON.stringify(se_AddPermissionRequest(input, context));
809
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
810
- }, "se_AddPermissionCommand");
811
- var se_CancelMessageMoveTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
812
- const headers = sharedHeaders("CancelMessageMoveTask");
813
- let body;
814
- body = JSON.stringify(se_CancelMessageMoveTaskRequest(input, context));
815
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
816
- }, "se_CancelMessageMoveTaskCommand");
817
- var se_ChangeMessageVisibilityCommand = /* @__PURE__ */ __name(async (input, context) => {
818
- const headers = sharedHeaders("ChangeMessageVisibility");
819
- let body;
820
- body = JSON.stringify(se_ChangeMessageVisibilityRequest(input, context));
821
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
822
- }, "se_ChangeMessageVisibilityCommand");
823
- var se_ChangeMessageVisibilityBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
824
- const headers = sharedHeaders("ChangeMessageVisibilityBatch");
825
- let body;
826
- body = JSON.stringify(se_ChangeMessageVisibilityBatchRequest(input, context));
827
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
828
- }, "se_ChangeMessageVisibilityBatchCommand");
829
- var se_CreateQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
830
- const headers = sharedHeaders("CreateQueue");
831
- let body;
832
- body = JSON.stringify(se_CreateQueueRequest(input, context));
833
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
834
- }, "se_CreateQueueCommand");
835
- var se_DeleteMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
836
- const headers = sharedHeaders("DeleteMessage");
837
- let body;
838
- body = JSON.stringify(se_DeleteMessageRequest(input, context));
839
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
840
- }, "se_DeleteMessageCommand");
841
- var se_DeleteMessageBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
842
- const headers = sharedHeaders("DeleteMessageBatch");
843
- let body;
844
- body = JSON.stringify(se_DeleteMessageBatchRequest(input, context));
845
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
846
- }, "se_DeleteMessageBatchCommand");
847
- var se_DeleteQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
848
- const headers = sharedHeaders("DeleteQueue");
849
- let body;
850
- body = JSON.stringify(se_DeleteQueueRequest(input, context));
851
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
852
- }, "se_DeleteQueueCommand");
853
- var se_GetQueueAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
854
- const headers = sharedHeaders("GetQueueAttributes");
855
- let body;
856
- body = JSON.stringify(se_GetQueueAttributesRequest(input, context));
857
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
858
- }, "se_GetQueueAttributesCommand");
859
- var se_GetQueueUrlCommand = /* @__PURE__ */ __name(async (input, context) => {
860
- const headers = sharedHeaders("GetQueueUrl");
861
- let body;
862
- body = JSON.stringify(se_GetQueueUrlRequest(input, context));
863
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
864
- }, "se_GetQueueUrlCommand");
865
- var se_ListDeadLetterSourceQueuesCommand = /* @__PURE__ */ __name(async (input, context) => {
866
- const headers = sharedHeaders("ListDeadLetterSourceQueues");
867
- let body;
868
- body = JSON.stringify(se_ListDeadLetterSourceQueuesRequest(input, context));
869
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
870
- }, "se_ListDeadLetterSourceQueuesCommand");
871
- var se_ListMessageMoveTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
872
- const headers = sharedHeaders("ListMessageMoveTasks");
873
- let body;
874
- body = JSON.stringify(se_ListMessageMoveTasksRequest(input, context));
875
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
876
- }, "se_ListMessageMoveTasksCommand");
877
- var se_ListQueuesCommand = /* @__PURE__ */ __name(async (input, context) => {
878
- const headers = sharedHeaders("ListQueues");
879
- let body;
880
- body = JSON.stringify(se_ListQueuesRequest(input, context));
881
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
882
- }, "se_ListQueuesCommand");
883
- var se_ListQueueTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
884
- const headers = sharedHeaders("ListQueueTags");
885
- let body;
886
- body = JSON.stringify(se_ListQueueTagsRequest(input, context));
887
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
888
- }, "se_ListQueueTagsCommand");
889
- var se_PurgeQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
890
- const headers = sharedHeaders("PurgeQueue");
891
- let body;
892
- body = JSON.stringify(se_PurgeQueueRequest(input, context));
893
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
894
- }, "se_PurgeQueueCommand");
895
- var se_ReceiveMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
896
- const headers = sharedHeaders("ReceiveMessage");
897
- let body;
898
- body = JSON.stringify(se_ReceiveMessageRequest(input, context));
899
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
900
- }, "se_ReceiveMessageCommand");
901
- var se_RemovePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
902
- const headers = sharedHeaders("RemovePermission");
903
- let body;
904
- body = JSON.stringify(se_RemovePermissionRequest(input, context));
905
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
906
- }, "se_RemovePermissionCommand");
907
- var se_SendMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
908
- const headers = sharedHeaders("SendMessage");
909
- let body;
910
- body = JSON.stringify(se_SendMessageRequest(input, context));
911
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
912
- }, "se_SendMessageCommand");
913
- var se_SendMessageBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
914
- const headers = sharedHeaders("SendMessageBatch");
915
- let body;
916
- body = JSON.stringify(se_SendMessageBatchRequest(input, context));
917
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
918
- }, "se_SendMessageBatchCommand");
919
- var se_SetQueueAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
920
- const headers = sharedHeaders("SetQueueAttributes");
921
- let body;
922
- body = JSON.stringify(se_SetQueueAttributesRequest(input, context));
923
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
924
- }, "se_SetQueueAttributesCommand");
925
- var se_StartMessageMoveTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
926
- const headers = sharedHeaders("StartMessageMoveTask");
927
- let body;
928
- body = JSON.stringify(se_StartMessageMoveTaskRequest(input, context));
929
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
930
- }, "se_StartMessageMoveTaskCommand");
931
- var se_TagQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
932
- const headers = sharedHeaders("TagQueue");
933
- let body;
934
- body = JSON.stringify(se_TagQueueRequest(input, context));
935
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
936
- }, "se_TagQueueCommand");
937
- var se_UntagQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
938
- const headers = sharedHeaders("UntagQueue");
939
- let body;
940
- body = JSON.stringify(se_UntagQueueRequest(input, context));
941
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
942
- }, "se_UntagQueueCommand");
943
- var de_AddPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
944
- if (output.statusCode >= 300) {
945
- return de_CommandError(output, context);
946
- }
947
- await (0, import_smithy_client.collectBody)(output.body, context);
948
- const response = {
949
- $metadata: deserializeMetadata(output)
950
- };
951
- return response;
952
- }, "de_AddPermissionCommand");
953
- var de_CancelMessageMoveTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
954
- if (output.statusCode >= 300) {
955
- return de_CommandError(output, context);
956
- }
957
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
958
- let contents = {};
959
- contents = (0, import_smithy_client._json)(data);
960
- const response = {
961
- $metadata: deserializeMetadata(output),
962
- ...contents
963
- };
964
- return response;
965
- }, "de_CancelMessageMoveTaskCommand");
966
- var de_ChangeMessageVisibilityCommand = /* @__PURE__ */ __name(async (output, context) => {
967
- if (output.statusCode >= 300) {
968
- return de_CommandError(output, context);
969
- }
970
- await (0, import_smithy_client.collectBody)(output.body, context);
971
- const response = {
972
- $metadata: deserializeMetadata(output)
973
- };
974
- return response;
975
- }, "de_ChangeMessageVisibilityCommand");
976
- var de_ChangeMessageVisibilityBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
977
- if (output.statusCode >= 300) {
978
- return de_CommandError(output, context);
979
- }
980
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
981
- let contents = {};
982
- contents = (0, import_smithy_client._json)(data);
983
- const response = {
984
- $metadata: deserializeMetadata(output),
985
- ...contents
986
- };
987
- return response;
988
- }, "de_ChangeMessageVisibilityBatchCommand");
989
- var de_CreateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
990
- if (output.statusCode >= 300) {
991
- return de_CommandError(output, context);
992
- }
993
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
994
- let contents = {};
995
- contents = (0, import_smithy_client._json)(data);
996
- const response = {
997
- $metadata: deserializeMetadata(output),
998
- ...contents
999
- };
1000
- return response;
1001
- }, "de_CreateQueueCommand");
1002
- var de_DeleteMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
1003
- if (output.statusCode >= 300) {
1004
- return de_CommandError(output, context);
1005
- }
1006
- await (0, import_smithy_client.collectBody)(output.body, context);
1007
- const response = {
1008
- $metadata: deserializeMetadata(output)
1009
- };
1010
- return response;
1011
- }, "de_DeleteMessageCommand");
1012
- var de_DeleteMessageBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
1013
- if (output.statusCode >= 300) {
1014
- return de_CommandError(output, context);
1015
- }
1016
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1017
- let contents = {};
1018
- contents = (0, import_smithy_client._json)(data);
1019
- const response = {
1020
- $metadata: deserializeMetadata(output),
1021
- ...contents
1022
- };
1023
- return response;
1024
- }, "de_DeleteMessageBatchCommand");
1025
- var de_DeleteQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
1026
- if (output.statusCode >= 300) {
1027
- return de_CommandError(output, context);
1028
- }
1029
- await (0, import_smithy_client.collectBody)(output.body, context);
1030
- const response = {
1031
- $metadata: deserializeMetadata(output)
1032
- };
1033
- return response;
1034
- }, "de_DeleteQueueCommand");
1035
- var de_GetQueueAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1036
- if (output.statusCode >= 300) {
1037
- return de_CommandError(output, context);
1038
- }
1039
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1040
- let contents = {};
1041
- contents = (0, import_smithy_client._json)(data);
1042
- const response = {
1043
- $metadata: deserializeMetadata(output),
1044
- ...contents
1045
- };
1046
- return response;
1047
- }, "de_GetQueueAttributesCommand");
1048
- var de_GetQueueUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1049
- if (output.statusCode >= 300) {
1050
- return de_CommandError(output, context);
1051
- }
1052
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1053
- let contents = {};
1054
- contents = (0, import_smithy_client._json)(data);
1055
- const response = {
1056
- $metadata: deserializeMetadata(output),
1057
- ...contents
1058
- };
1059
- return response;
1060
- }, "de_GetQueueUrlCommand");
1061
- var de_ListDeadLetterSourceQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
1062
- if (output.statusCode >= 300) {
1063
- return de_CommandError(output, context);
1064
- }
1065
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1066
- let contents = {};
1067
- contents = (0, import_smithy_client._json)(data);
1068
- const response = {
1069
- $metadata: deserializeMetadata(output),
1070
- ...contents
1071
- };
1072
- return response;
1073
- }, "de_ListDeadLetterSourceQueuesCommand");
1074
- var de_ListMessageMoveTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1075
- if (output.statusCode >= 300) {
1076
- return de_CommandError(output, context);
1077
- }
1078
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1079
- let contents = {};
1080
- contents = (0, import_smithy_client._json)(data);
1081
- const response = {
1082
- $metadata: deserializeMetadata(output),
1083
- ...contents
1084
- };
1085
- return response;
1086
- }, "de_ListMessageMoveTasksCommand");
1087
- var de_ListQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
1088
- if (output.statusCode >= 300) {
1089
- return de_CommandError(output, context);
1090
- }
1091
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1092
- let contents = {};
1093
- contents = (0, import_smithy_client._json)(data);
1094
- const response = {
1095
- $metadata: deserializeMetadata(output),
1096
- ...contents
1097
- };
1098
- return response;
1099
- }, "de_ListQueuesCommand");
1100
- var de_ListQueueTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1101
- if (output.statusCode >= 300) {
1102
- return de_CommandError(output, context);
1103
- }
1104
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1105
- let contents = {};
1106
- contents = (0, import_smithy_client._json)(data);
1107
- const response = {
1108
- $metadata: deserializeMetadata(output),
1109
- ...contents
1110
- };
1111
- return response;
1112
- }, "de_ListQueueTagsCommand");
1113
- var de_PurgeQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
1114
- if (output.statusCode >= 300) {
1115
- return de_CommandError(output, context);
1116
- }
1117
- await (0, import_smithy_client.collectBody)(output.body, context);
1118
- const response = {
1119
- $metadata: deserializeMetadata(output)
1120
- };
1121
- return response;
1122
- }, "de_PurgeQueueCommand");
1123
- var de_ReceiveMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
1124
- if (output.statusCode >= 300) {
1125
- return de_CommandError(output, context);
1126
- }
1127
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1128
- let contents = {};
1129
- contents = de_ReceiveMessageResult(data, context);
1130
- const response = {
1131
- $metadata: deserializeMetadata(output),
1132
- ...contents
1133
- };
1134
- return response;
1135
- }, "de_ReceiveMessageCommand");
1136
- var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1137
- if (output.statusCode >= 300) {
1138
- return de_CommandError(output, context);
1139
- }
1140
- await (0, import_smithy_client.collectBody)(output.body, context);
1141
- const response = {
1142
- $metadata: deserializeMetadata(output)
1143
- };
1144
- return response;
1145
- }, "de_RemovePermissionCommand");
1146
- var de_SendMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
1147
- if (output.statusCode >= 300) {
1148
- return de_CommandError(output, context);
1149
- }
1150
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1151
- let contents = {};
1152
- contents = (0, import_smithy_client._json)(data);
1153
- const response = {
1154
- $metadata: deserializeMetadata(output),
1155
- ...contents
1156
- };
1157
- return response;
1158
- }, "de_SendMessageCommand");
1159
- var de_SendMessageBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
1160
- if (output.statusCode >= 300) {
1161
- return de_CommandError(output, context);
1162
- }
1163
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1164
- let contents = {};
1165
- contents = (0, import_smithy_client._json)(data);
1166
- const response = {
1167
- $metadata: deserializeMetadata(output),
1168
- ...contents
1169
- };
1170
- return response;
1171
- }, "de_SendMessageBatchCommand");
1172
- var de_SetQueueAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1173
- if (output.statusCode >= 300) {
1174
- return de_CommandError(output, context);
1175
- }
1176
- await (0, import_smithy_client.collectBody)(output.body, context);
1177
- const response = {
1178
- $metadata: deserializeMetadata(output)
1179
- };
1180
- return response;
1181
- }, "de_SetQueueAttributesCommand");
1182
- var de_StartMessageMoveTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1183
- if (output.statusCode >= 300) {
1184
- return de_CommandError(output, context);
1185
- }
1186
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1187
- let contents = {};
1188
- contents = (0, import_smithy_client._json)(data);
1189
- const response = {
1190
- $metadata: deserializeMetadata(output),
1191
- ...contents
1192
- };
1193
- return response;
1194
- }, "de_StartMessageMoveTaskCommand");
1195
- var de_TagQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
1196
- if (output.statusCode >= 300) {
1197
- return de_CommandError(output, context);
1198
- }
1199
- await (0, import_smithy_client.collectBody)(output.body, context);
1200
- const response = {
1201
- $metadata: deserializeMetadata(output)
1202
- };
1203
- return response;
1204
- }, "de_TagQueueCommand");
1205
- var de_UntagQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
1206
- if (output.statusCode >= 300) {
1207
- return de_CommandError(output, context);
1208
- }
1209
- await (0, import_smithy_client.collectBody)(output.body, context);
1210
- const response = {
1211
- $metadata: deserializeMetadata(output)
1212
- };
1213
- return response;
1214
- }, "de_UntagQueueCommand");
1215
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1216
- const parsedOutput = {
1217
- ...output,
1218
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1219
- };
1220
- populateBodyWithQueryCompatibility(parsedOutput, output.headers);
1221
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1222
- switch (errorCode) {
1223
- case "InvalidAddress":
1224
- case "com.amazonaws.sqs#InvalidAddress":
1225
- throw await de_InvalidAddressRes(parsedOutput, context);
1226
- case "InvalidSecurity":
1227
- case "com.amazonaws.sqs#InvalidSecurity":
1228
- throw await de_InvalidSecurityRes(parsedOutput, context);
1229
- case "OverLimit":
1230
- case "com.amazonaws.sqs#OverLimit":
1231
- throw await de_OverLimitRes(parsedOutput, context);
1232
- case "QueueDoesNotExist":
1233
- case "com.amazonaws.sqs#QueueDoesNotExist":
1234
- case "AWS.SimpleQueueService.NonExistentQueue":
1235
- throw await de_QueueDoesNotExistRes(parsedOutput, context);
1236
- case "RequestThrottled":
1237
- case "com.amazonaws.sqs#RequestThrottled":
1238
- throw await de_RequestThrottledRes(parsedOutput, context);
1239
- case "UnsupportedOperation":
1240
- case "com.amazonaws.sqs#UnsupportedOperation":
1241
- case "AWS.SimpleQueueService.UnsupportedOperation":
1242
- throw await de_UnsupportedOperationRes(parsedOutput, context);
1243
- case "ResourceNotFoundException":
1244
- case "com.amazonaws.sqs#ResourceNotFoundException":
1245
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1246
- case "MessageNotInflight":
1247
- case "com.amazonaws.sqs#MessageNotInflight":
1248
- case "AWS.SimpleQueueService.MessageNotInflight":
1249
- throw await de_MessageNotInflightRes(parsedOutput, context);
1250
- case "ReceiptHandleIsInvalid":
1251
- case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
1252
- throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
1253
- case "BatchEntryIdsNotDistinct":
1254
- case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
1255
- case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
1256
- throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
1257
- case "EmptyBatchRequest":
1258
- case "com.amazonaws.sqs#EmptyBatchRequest":
1259
- case "AWS.SimpleQueueService.EmptyBatchRequest":
1260
- throw await de_EmptyBatchRequestRes(parsedOutput, context);
1261
- case "InvalidBatchEntryId":
1262
- case "com.amazonaws.sqs#InvalidBatchEntryId":
1263
- case "AWS.SimpleQueueService.InvalidBatchEntryId":
1264
- throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
1265
- case "TooManyEntriesInBatchRequest":
1266
- case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
1267
- case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
1268
- throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
1269
- case "InvalidAttributeName":
1270
- case "com.amazonaws.sqs#InvalidAttributeName":
1271
- throw await de_InvalidAttributeNameRes(parsedOutput, context);
1272
- case "InvalidAttributeValue":
1273
- case "com.amazonaws.sqs#InvalidAttributeValue":
1274
- throw await de_InvalidAttributeValueRes(parsedOutput, context);
1275
- case "QueueDeletedRecently":
1276
- case "com.amazonaws.sqs#QueueDeletedRecently":
1277
- case "AWS.SimpleQueueService.QueueDeletedRecently":
1278
- throw await de_QueueDeletedRecentlyRes(parsedOutput, context);
1279
- case "QueueNameExists":
1280
- case "com.amazonaws.sqs#QueueNameExists":
1281
- case "QueueAlreadyExists":
1282
- throw await de_QueueNameExistsRes(parsedOutput, context);
1283
- case "InvalidIdFormat":
1284
- case "com.amazonaws.sqs#InvalidIdFormat":
1285
- throw await de_InvalidIdFormatRes(parsedOutput, context);
1286
- case "PurgeQueueInProgress":
1287
- case "com.amazonaws.sqs#PurgeQueueInProgress":
1288
- case "AWS.SimpleQueueService.PurgeQueueInProgress":
1289
- throw await de_PurgeQueueInProgressRes(parsedOutput, context);
1290
- case "KmsAccessDenied":
1291
- case "com.amazonaws.sqs#KmsAccessDenied":
1292
- case "KMS.AccessDeniedException":
1293
- throw await de_KmsAccessDeniedRes(parsedOutput, context);
1294
- case "KmsDisabled":
1295
- case "com.amazonaws.sqs#KmsDisabled":
1296
- case "KMS.DisabledException":
1297
- throw await de_KmsDisabledRes(parsedOutput, context);
1298
- case "KmsInvalidKeyUsage":
1299
- case "com.amazonaws.sqs#KmsInvalidKeyUsage":
1300
- case "KMS.InvalidKeyUsageException":
1301
- throw await de_KmsInvalidKeyUsageRes(parsedOutput, context);
1302
- case "KmsInvalidState":
1303
- case "com.amazonaws.sqs#KmsInvalidState":
1304
- case "KMS.InvalidStateException":
1305
- throw await de_KmsInvalidStateRes(parsedOutput, context);
1306
- case "KmsNotFound":
1307
- case "com.amazonaws.sqs#KmsNotFound":
1308
- case "KMS.NotFoundException":
1309
- throw await de_KmsNotFoundRes(parsedOutput, context);
1310
- case "KmsOptInRequired":
1311
- case "com.amazonaws.sqs#KmsOptInRequired":
1312
- case "KMS.OptInRequired":
1313
- throw await de_KmsOptInRequiredRes(parsedOutput, context);
1314
- case "KmsThrottled":
1315
- case "com.amazonaws.sqs#KmsThrottled":
1316
- case "KMS.ThrottlingException":
1317
- throw await de_KmsThrottledRes(parsedOutput, context);
1318
- case "InvalidMessageContents":
1319
- case "com.amazonaws.sqs#InvalidMessageContents":
1320
- throw await de_InvalidMessageContentsRes(parsedOutput, context);
1321
- case "BatchRequestTooLong":
1322
- case "com.amazonaws.sqs#BatchRequestTooLong":
1323
- case "AWS.SimpleQueueService.BatchRequestTooLong":
1324
- throw await de_BatchRequestTooLongRes(parsedOutput, context);
1325
- default:
1326
- const parsedBody = parsedOutput.body;
1327
- return throwDefaultError({
1328
- output,
1329
- parsedBody,
1330
- errorCode
1331
- });
1332
- }
1333
- }, "de_CommandError");
1334
- var de_BatchEntryIdsNotDistinctRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1335
- const body = parsedOutput.body;
1336
- const deserialized = (0, import_smithy_client._json)(body);
1337
- const exception = new BatchEntryIdsNotDistinct({
1338
- $metadata: deserializeMetadata(parsedOutput),
1339
- ...deserialized
1340
- });
1341
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1342
- }, "de_BatchEntryIdsNotDistinctRes");
1343
- var de_BatchRequestTooLongRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1344
- const body = parsedOutput.body;
1345
- const deserialized = (0, import_smithy_client._json)(body);
1346
- const exception = new BatchRequestTooLong({
1347
- $metadata: deserializeMetadata(parsedOutput),
1348
- ...deserialized
1349
- });
1350
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1351
- }, "de_BatchRequestTooLongRes");
1352
- var de_EmptyBatchRequestRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1353
- const body = parsedOutput.body;
1354
- const deserialized = (0, import_smithy_client._json)(body);
1355
- const exception = new EmptyBatchRequest({
1356
- $metadata: deserializeMetadata(parsedOutput),
1357
- ...deserialized
1358
- });
1359
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1360
- }, "de_EmptyBatchRequestRes");
1361
- var de_InvalidAddressRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1362
- const body = parsedOutput.body;
1363
- const deserialized = (0, import_smithy_client._json)(body);
1364
- const exception = new InvalidAddress({
1365
- $metadata: deserializeMetadata(parsedOutput),
1366
- ...deserialized
1367
- });
1368
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1369
- }, "de_InvalidAddressRes");
1370
- var de_InvalidAttributeNameRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1371
- const body = parsedOutput.body;
1372
- const deserialized = (0, import_smithy_client._json)(body);
1373
- const exception = new InvalidAttributeName({
1374
- $metadata: deserializeMetadata(parsedOutput),
1375
- ...deserialized
1376
- });
1377
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1378
- }, "de_InvalidAttributeNameRes");
1379
- var de_InvalidAttributeValueRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1380
- const body = parsedOutput.body;
1381
- const deserialized = (0, import_smithy_client._json)(body);
1382
- const exception = new InvalidAttributeValue({
1383
- $metadata: deserializeMetadata(parsedOutput),
1384
- ...deserialized
1385
- });
1386
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1387
- }, "de_InvalidAttributeValueRes");
1388
- var de_InvalidBatchEntryIdRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1389
- const body = parsedOutput.body;
1390
- const deserialized = (0, import_smithy_client._json)(body);
1391
- const exception = new InvalidBatchEntryId({
1392
- $metadata: deserializeMetadata(parsedOutput),
1393
- ...deserialized
1394
- });
1395
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1396
- }, "de_InvalidBatchEntryIdRes");
1397
- var de_InvalidIdFormatRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1398
- const body = parsedOutput.body;
1399
- const deserialized = (0, import_smithy_client._json)(body);
1400
- const exception = new InvalidIdFormat({
1401
- $metadata: deserializeMetadata(parsedOutput),
1402
- ...deserialized
1403
- });
1404
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1405
- }, "de_InvalidIdFormatRes");
1406
- var de_InvalidMessageContentsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1407
- const body = parsedOutput.body;
1408
- const deserialized = (0, import_smithy_client._json)(body);
1409
- const exception = new InvalidMessageContents({
1410
- $metadata: deserializeMetadata(parsedOutput),
1411
- ...deserialized
1412
- });
1413
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1414
- }, "de_InvalidMessageContentsRes");
1415
- var de_InvalidSecurityRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1416
- const body = parsedOutput.body;
1417
- const deserialized = (0, import_smithy_client._json)(body);
1418
- const exception = new InvalidSecurity({
1419
- $metadata: deserializeMetadata(parsedOutput),
1420
- ...deserialized
1421
- });
1422
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1423
- }, "de_InvalidSecurityRes");
1424
- var de_KmsAccessDeniedRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1425
- const body = parsedOutput.body;
1426
- const deserialized = (0, import_smithy_client._json)(body);
1427
- const exception = new KmsAccessDenied({
1428
- $metadata: deserializeMetadata(parsedOutput),
1429
- ...deserialized
1430
- });
1431
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1432
- }, "de_KmsAccessDeniedRes");
1433
- var de_KmsDisabledRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1434
- const body = parsedOutput.body;
1435
- const deserialized = (0, import_smithy_client._json)(body);
1436
- const exception = new KmsDisabled({
1437
- $metadata: deserializeMetadata(parsedOutput),
1438
- ...deserialized
1439
- });
1440
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1441
- }, "de_KmsDisabledRes");
1442
- var de_KmsInvalidKeyUsageRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1443
- const body = parsedOutput.body;
1444
- const deserialized = (0, import_smithy_client._json)(body);
1445
- const exception = new KmsInvalidKeyUsage({
1446
- $metadata: deserializeMetadata(parsedOutput),
1447
- ...deserialized
1448
- });
1449
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1450
- }, "de_KmsInvalidKeyUsageRes");
1451
- var de_KmsInvalidStateRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1452
- const body = parsedOutput.body;
1453
- const deserialized = (0, import_smithy_client._json)(body);
1454
- const exception = new KmsInvalidState({
1455
- $metadata: deserializeMetadata(parsedOutput),
1456
- ...deserialized
1457
- });
1458
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1459
- }, "de_KmsInvalidStateRes");
1460
- var de_KmsNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1461
- const body = parsedOutput.body;
1462
- const deserialized = (0, import_smithy_client._json)(body);
1463
- const exception = new KmsNotFound({
1464
- $metadata: deserializeMetadata(parsedOutput),
1465
- ...deserialized
1466
- });
1467
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1468
- }, "de_KmsNotFoundRes");
1469
- var de_KmsOptInRequiredRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1470
- const body = parsedOutput.body;
1471
- const deserialized = (0, import_smithy_client._json)(body);
1472
- const exception = new KmsOptInRequired({
1473
- $metadata: deserializeMetadata(parsedOutput),
1474
- ...deserialized
1475
- });
1476
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1477
- }, "de_KmsOptInRequiredRes");
1478
- var de_KmsThrottledRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1479
- const body = parsedOutput.body;
1480
- const deserialized = (0, import_smithy_client._json)(body);
1481
- const exception = new KmsThrottled({
1482
- $metadata: deserializeMetadata(parsedOutput),
1483
- ...deserialized
1484
- });
1485
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1486
- }, "de_KmsThrottledRes");
1487
- var de_MessageNotInflightRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1488
- const body = parsedOutput.body;
1489
- const deserialized = (0, import_smithy_client._json)(body);
1490
- const exception = new MessageNotInflight({
1491
- $metadata: deserializeMetadata(parsedOutput),
1492
- ...deserialized
1493
- });
1494
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1495
- }, "de_MessageNotInflightRes");
1496
- var de_OverLimitRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1497
- const body = parsedOutput.body;
1498
- const deserialized = (0, import_smithy_client._json)(body);
1499
- const exception = new OverLimit({
1500
- $metadata: deserializeMetadata(parsedOutput),
1501
- ...deserialized
1502
- });
1503
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1504
- }, "de_OverLimitRes");
1505
- var de_PurgeQueueInProgressRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1506
- const body = parsedOutput.body;
1507
- const deserialized = (0, import_smithy_client._json)(body);
1508
- const exception = new PurgeQueueInProgress({
1509
- $metadata: deserializeMetadata(parsedOutput),
1510
- ...deserialized
1511
- });
1512
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1513
- }, "de_PurgeQueueInProgressRes");
1514
- var de_QueueDeletedRecentlyRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1515
- const body = parsedOutput.body;
1516
- const deserialized = (0, import_smithy_client._json)(body);
1517
- const exception = new QueueDeletedRecently({
1518
- $metadata: deserializeMetadata(parsedOutput),
1519
- ...deserialized
1520
- });
1521
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1522
- }, "de_QueueDeletedRecentlyRes");
1523
- var de_QueueDoesNotExistRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1524
- const body = parsedOutput.body;
1525
- const deserialized = (0, import_smithy_client._json)(body);
1526
- const exception = new QueueDoesNotExist({
1527
- $metadata: deserializeMetadata(parsedOutput),
1528
- ...deserialized
1529
- });
1530
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1531
- }, "de_QueueDoesNotExistRes");
1532
- var de_QueueNameExistsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1533
- const body = parsedOutput.body;
1534
- const deserialized = (0, import_smithy_client._json)(body);
1535
- const exception = new QueueNameExists({
1536
- $metadata: deserializeMetadata(parsedOutput),
1537
- ...deserialized
1538
- });
1539
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1540
- }, "de_QueueNameExistsRes");
1541
- var de_ReceiptHandleIsInvalidRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1542
- const body = parsedOutput.body;
1543
- const deserialized = (0, import_smithy_client._json)(body);
1544
- const exception = new ReceiptHandleIsInvalid({
1545
- $metadata: deserializeMetadata(parsedOutput),
1546
- ...deserialized
1547
- });
1548
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1549
- }, "de_ReceiptHandleIsInvalidRes");
1550
- var de_RequestThrottledRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1551
- const body = parsedOutput.body;
1552
- const deserialized = (0, import_smithy_client._json)(body);
1553
- const exception = new RequestThrottled({
1554
- $metadata: deserializeMetadata(parsedOutput),
1555
- ...deserialized
1556
- });
1557
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1558
- }, "de_RequestThrottledRes");
1559
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1560
- const body = parsedOutput.body;
1561
- const deserialized = (0, import_smithy_client._json)(body);
1562
- const exception = new ResourceNotFoundException({
1563
- $metadata: deserializeMetadata(parsedOutput),
1564
- ...deserialized
1565
- });
1566
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1567
- }, "de_ResourceNotFoundExceptionRes");
1568
- var de_TooManyEntriesInBatchRequestRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1569
- const body = parsedOutput.body;
1570
- const deserialized = (0, import_smithy_client._json)(body);
1571
- const exception = new TooManyEntriesInBatchRequest({
1572
- $metadata: deserializeMetadata(parsedOutput),
1573
- ...deserialized
1574
- });
1575
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1576
- }, "de_TooManyEntriesInBatchRequestRes");
1577
- var de_UnsupportedOperationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1578
- const body = parsedOutput.body;
1579
- const deserialized = (0, import_smithy_client._json)(body);
1580
- const exception = new UnsupportedOperation({
1581
- $metadata: deserializeMetadata(parsedOutput),
1582
- ...deserialized
1583
- });
1584
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1585
- }, "de_UnsupportedOperationRes");
1586
- var se_ActionNameList = /* @__PURE__ */ __name((input, context) => {
1587
- return input.filter((e) => e != null).map((entry) => {
1588
- return (0, import_core2._toStr)(entry);
1589
- });
1590
- }, "se_ActionNameList");
1591
- var se_AddPermissionRequest = /* @__PURE__ */ __name((input, context) => {
1592
- return (0, import_smithy_client.take)(input, {
1593
- AWSAccountIds: /* @__PURE__ */ __name((_) => se_AWSAccountIdList(_, context), "AWSAccountIds"),
1594
- Actions: /* @__PURE__ */ __name((_) => se_ActionNameList(_, context), "Actions"),
1595
- Label: import_core2._toStr,
1596
- QueueUrl: import_core2._toStr
1597
- });
1598
- }, "se_AddPermissionRequest");
1599
- var se_AttributeNameList = /* @__PURE__ */ __name((input, context) => {
1600
- return input.filter((e) => e != null).map((entry) => {
1601
- return (0, import_core2._toStr)(entry);
1602
- });
1603
- }, "se_AttributeNameList");
1604
- var se_AWSAccountIdList = /* @__PURE__ */ __name((input, context) => {
1605
- return input.filter((e) => e != null).map((entry) => {
1606
- return (0, import_core2._toStr)(entry);
1607
- });
1608
- }, "se_AWSAccountIdList");
1609
- var se_BinaryList = /* @__PURE__ */ __name((input, context) => {
1610
- return input.filter((e) => e != null).map((entry) => {
1611
- return context.base64Encoder(entry);
1612
- });
1613
- }, "se_BinaryList");
1614
- var se_CancelMessageMoveTaskRequest = /* @__PURE__ */ __name((input, context) => {
1615
- return (0, import_smithy_client.take)(input, {
1616
- TaskHandle: import_core2._toStr
1617
- });
1618
- }, "se_CancelMessageMoveTaskRequest");
1619
- var se_ChangeMessageVisibilityBatchRequest = /* @__PURE__ */ __name((input, context) => {
1620
- return (0, import_smithy_client.take)(input, {
1621
- Entries: /* @__PURE__ */ __name((_) => se_ChangeMessageVisibilityBatchRequestEntryList(_, context), "Entries"),
1622
- QueueUrl: import_core2._toStr
1623
- });
1624
- }, "se_ChangeMessageVisibilityBatchRequest");
1625
- var se_ChangeMessageVisibilityBatchRequestEntry = /* @__PURE__ */ __name((input, context) => {
1626
- return (0, import_smithy_client.take)(input, {
1627
- Id: import_core2._toStr,
1628
- ReceiptHandle: import_core2._toStr,
1629
- VisibilityTimeout: import_core2._toNum
1630
- });
1631
- }, "se_ChangeMessageVisibilityBatchRequestEntry");
1632
- var se_ChangeMessageVisibilityBatchRequestEntryList = /* @__PURE__ */ __name((input, context) => {
1633
- return input.filter((e) => e != null).map((entry) => {
1634
- return se_ChangeMessageVisibilityBatchRequestEntry(entry, context);
1635
- });
1636
- }, "se_ChangeMessageVisibilityBatchRequestEntryList");
1637
- var se_ChangeMessageVisibilityRequest = /* @__PURE__ */ __name((input, context) => {
1638
- return (0, import_smithy_client.take)(input, {
1639
- QueueUrl: import_core2._toStr,
1640
- ReceiptHandle: import_core2._toStr,
1641
- VisibilityTimeout: import_core2._toNum
1642
- });
1643
- }, "se_ChangeMessageVisibilityRequest");
1644
- var se_CreateQueueRequest = /* @__PURE__ */ __name((input, context) => {
1645
- return (0, import_smithy_client.take)(input, {
1646
- Attributes: /* @__PURE__ */ __name((_) => se_QueueAttributeMap(_, context), "Attributes"),
1647
- QueueName: import_core2._toStr,
1648
- tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "tags")
1649
- });
1650
- }, "se_CreateQueueRequest");
1651
- var se_DeleteMessageBatchRequest = /* @__PURE__ */ __name((input, context) => {
1652
- return (0, import_smithy_client.take)(input, {
1653
- Entries: /* @__PURE__ */ __name((_) => se_DeleteMessageBatchRequestEntryList(_, context), "Entries"),
1654
- QueueUrl: import_core2._toStr
1655
- });
1656
- }, "se_DeleteMessageBatchRequest");
1657
- var se_DeleteMessageBatchRequestEntry = /* @__PURE__ */ __name((input, context) => {
1658
- return (0, import_smithy_client.take)(input, {
1659
- Id: import_core2._toStr,
1660
- ReceiptHandle: import_core2._toStr
1661
- });
1662
- }, "se_DeleteMessageBatchRequestEntry");
1663
- var se_DeleteMessageBatchRequestEntryList = /* @__PURE__ */ __name((input, context) => {
1664
- return input.filter((e) => e != null).map((entry) => {
1665
- return se_DeleteMessageBatchRequestEntry(entry, context);
1666
- });
1667
- }, "se_DeleteMessageBatchRequestEntryList");
1668
- var se_DeleteMessageRequest = /* @__PURE__ */ __name((input, context) => {
1669
- return (0, import_smithy_client.take)(input, {
1670
- QueueUrl: import_core2._toStr,
1671
- ReceiptHandle: import_core2._toStr
1672
- });
1673
- }, "se_DeleteMessageRequest");
1674
- var se_DeleteQueueRequest = /* @__PURE__ */ __name((input, context) => {
1675
- return (0, import_smithy_client.take)(input, {
1676
- QueueUrl: import_core2._toStr
1677
- });
1678
- }, "se_DeleteQueueRequest");
1679
- var se_GetQueueAttributesRequest = /* @__PURE__ */ __name((input, context) => {
1680
- return (0, import_smithy_client.take)(input, {
1681
- AttributeNames: /* @__PURE__ */ __name((_) => se_AttributeNameList(_, context), "AttributeNames"),
1682
- QueueUrl: import_core2._toStr
1683
- });
1684
- }, "se_GetQueueAttributesRequest");
1685
- var se_GetQueueUrlRequest = /* @__PURE__ */ __name((input, context) => {
1686
- return (0, import_smithy_client.take)(input, {
1687
- QueueName: import_core2._toStr,
1688
- QueueOwnerAWSAccountId: import_core2._toStr
1689
- });
1690
- }, "se_GetQueueUrlRequest");
1691
- var se_ListDeadLetterSourceQueuesRequest = /* @__PURE__ */ __name((input, context) => {
1692
- return (0, import_smithy_client.take)(input, {
1693
- MaxResults: import_core2._toNum,
1694
- NextToken: import_core2._toStr,
1695
- QueueUrl: import_core2._toStr
1696
- });
1697
- }, "se_ListDeadLetterSourceQueuesRequest");
1698
- var se_ListMessageMoveTasksRequest = /* @__PURE__ */ __name((input, context) => {
1699
- return (0, import_smithy_client.take)(input, {
1700
- MaxResults: import_core2._toNum,
1701
- SourceArn: import_core2._toStr
1702
- });
1703
- }, "se_ListMessageMoveTasksRequest");
1704
- var se_ListQueuesRequest = /* @__PURE__ */ __name((input, context) => {
1705
- return (0, import_smithy_client.take)(input, {
1706
- MaxResults: import_core2._toNum,
1707
- NextToken: import_core2._toStr,
1708
- QueueNamePrefix: import_core2._toStr
1709
- });
1710
- }, "se_ListQueuesRequest");
1711
- var se_ListQueueTagsRequest = /* @__PURE__ */ __name((input, context) => {
1712
- return (0, import_smithy_client.take)(input, {
1713
- QueueUrl: import_core2._toStr
1714
- });
1715
- }, "se_ListQueueTagsRequest");
1716
- var se_MessageAttributeNameList = /* @__PURE__ */ __name((input, context) => {
1717
- return input.filter((e) => e != null).map((entry) => {
1718
- return (0, import_core2._toStr)(entry);
1719
- });
1720
- }, "se_MessageAttributeNameList");
1721
- var se_MessageAttributeValue = /* @__PURE__ */ __name((input, context) => {
1722
- return (0, import_smithy_client.take)(input, {
1723
- BinaryListValues: /* @__PURE__ */ __name((_) => se_BinaryList(_, context), "BinaryListValues"),
1724
- BinaryValue: context.base64Encoder,
1725
- DataType: import_core2._toStr,
1726
- StringListValues: /* @__PURE__ */ __name((_) => se_StringList(_, context), "StringListValues"),
1727
- StringValue: import_core2._toStr
1728
- });
1729
- }, "se_MessageAttributeValue");
1730
- var se_MessageBodyAttributeMap = /* @__PURE__ */ __name((input, context) => {
1731
- return Object.entries(input).reduce((acc, [key, value]) => {
1732
- if (value === null) {
1733
- return acc;
499
+ const se_AddPermissionCommand = async (input, context) => {
500
+ const headers = sharedHeaders("AddPermission");
501
+ let body;
502
+ body = JSON.stringify(se_AddPermissionRequest(input));
503
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
504
+ };
505
+ const se_CancelMessageMoveTaskCommand = async (input, context) => {
506
+ const headers = sharedHeaders("CancelMessageMoveTask");
507
+ let body;
508
+ body = JSON.stringify(se_CancelMessageMoveTaskRequest(input));
509
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
+ };
511
+ const se_ChangeMessageVisibilityCommand = async (input, context) => {
512
+ const headers = sharedHeaders("ChangeMessageVisibility");
513
+ let body;
514
+ body = JSON.stringify(se_ChangeMessageVisibilityRequest(input));
515
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
516
+ };
517
+ const se_ChangeMessageVisibilityBatchCommand = async (input, context) => {
518
+ const headers = sharedHeaders("ChangeMessageVisibilityBatch");
519
+ let body;
520
+ body = JSON.stringify(se_ChangeMessageVisibilityBatchRequest(input));
521
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
+ };
523
+ const se_CreateQueueCommand = async (input, context) => {
524
+ const headers = sharedHeaders("CreateQueue");
525
+ let body;
526
+ body = JSON.stringify(se_CreateQueueRequest(input));
527
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
+ };
529
+ const se_DeleteMessageCommand = async (input, context) => {
530
+ const headers = sharedHeaders("DeleteMessage");
531
+ let body;
532
+ body = JSON.stringify(se_DeleteMessageRequest(input));
533
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
+ };
535
+ const se_DeleteMessageBatchCommand = async (input, context) => {
536
+ const headers = sharedHeaders("DeleteMessageBatch");
537
+ let body;
538
+ body = JSON.stringify(se_DeleteMessageBatchRequest(input));
539
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
540
+ };
541
+ const se_DeleteQueueCommand = async (input, context) => {
542
+ const headers = sharedHeaders("DeleteQueue");
543
+ let body;
544
+ body = JSON.stringify(se_DeleteQueueRequest(input));
545
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
+ };
547
+ const se_GetQueueAttributesCommand = async (input, context) => {
548
+ const headers = sharedHeaders("GetQueueAttributes");
549
+ let body;
550
+ body = JSON.stringify(se_GetQueueAttributesRequest(input));
551
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
552
+ };
553
+ const se_GetQueueUrlCommand = async (input, context) => {
554
+ const headers = sharedHeaders("GetQueueUrl");
555
+ let body;
556
+ body = JSON.stringify(se_GetQueueUrlRequest(input));
557
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
+ };
559
+ const se_ListDeadLetterSourceQueuesCommand = async (input, context) => {
560
+ const headers = sharedHeaders("ListDeadLetterSourceQueues");
561
+ let body;
562
+ body = JSON.stringify(se_ListDeadLetterSourceQueuesRequest(input));
563
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
564
+ };
565
+ const se_ListMessageMoveTasksCommand = async (input, context) => {
566
+ const headers = sharedHeaders("ListMessageMoveTasks");
567
+ let body;
568
+ body = JSON.stringify(se_ListMessageMoveTasksRequest(input));
569
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
570
+ };
571
+ const se_ListQueuesCommand = async (input, context) => {
572
+ const headers = sharedHeaders("ListQueues");
573
+ let body;
574
+ body = JSON.stringify(se_ListQueuesRequest(input));
575
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
576
+ };
577
+ const se_ListQueueTagsCommand = async (input, context) => {
578
+ const headers = sharedHeaders("ListQueueTags");
579
+ let body;
580
+ body = JSON.stringify(se_ListQueueTagsRequest(input));
581
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
582
+ };
583
+ const se_PurgeQueueCommand = async (input, context) => {
584
+ const headers = sharedHeaders("PurgeQueue");
585
+ let body;
586
+ body = JSON.stringify(se_PurgeQueueRequest(input));
587
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
588
+ };
589
+ const se_ReceiveMessageCommand = async (input, context) => {
590
+ const headers = sharedHeaders("ReceiveMessage");
591
+ let body;
592
+ body = JSON.stringify(se_ReceiveMessageRequest(input));
593
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
594
+ };
595
+ const se_RemovePermissionCommand = async (input, context) => {
596
+ const headers = sharedHeaders("RemovePermission");
597
+ let body;
598
+ body = JSON.stringify(se_RemovePermissionRequest(input));
599
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
600
+ };
601
+ const se_SendMessageCommand = async (input, context) => {
602
+ const headers = sharedHeaders("SendMessage");
603
+ let body;
604
+ body = JSON.stringify(se_SendMessageRequest(input, context));
605
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
606
+ };
607
+ const se_SendMessageBatchCommand = async (input, context) => {
608
+ const headers = sharedHeaders("SendMessageBatch");
609
+ let body;
610
+ body = JSON.stringify(se_SendMessageBatchRequest(input, context));
611
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
612
+ };
613
+ const se_SetQueueAttributesCommand = async (input, context) => {
614
+ const headers = sharedHeaders("SetQueueAttributes");
615
+ let body;
616
+ body = JSON.stringify(se_SetQueueAttributesRequest(input));
617
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
618
+ };
619
+ const se_StartMessageMoveTaskCommand = async (input, context) => {
620
+ const headers = sharedHeaders("StartMessageMoveTask");
621
+ let body;
622
+ body = JSON.stringify(se_StartMessageMoveTaskRequest(input));
623
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
624
+ };
625
+ const se_TagQueueCommand = async (input, context) => {
626
+ const headers = sharedHeaders("TagQueue");
627
+ let body;
628
+ body = JSON.stringify(se_TagQueueRequest(input));
629
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
630
+ };
631
+ const se_UntagQueueCommand = async (input, context) => {
632
+ const headers = sharedHeaders("UntagQueue");
633
+ let body;
634
+ body = JSON.stringify(se_UntagQueueRequest(input));
635
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
636
+ };
637
+ const de_AddPermissionCommand = async (output, context) => {
638
+ if (output.statusCode >= 300) {
639
+ return de_CommandError(output, context);
1734
640
  }
1735
- acc[key] = se_MessageAttributeValue(value, context);
1736
- return acc;
1737
- }, {});
1738
- }, "se_MessageBodyAttributeMap");
1739
- var se_MessageBodySystemAttributeMap = /* @__PURE__ */ __name((input, context) => {
1740
- return Object.entries(input).reduce(
1741
- (acc, [key, value]) => {
1742
- if (value === null) {
1743
- return acc;
1744
- }
1745
- acc[key] = se_MessageSystemAttributeValue(value, context);
1746
- return acc;
1747
- },
1748
- {}
1749
- );
1750
- }, "se_MessageBodySystemAttributeMap");
1751
- var se_MessageSystemAttributeList = /* @__PURE__ */ __name((input, context) => {
1752
- return input.filter((e) => e != null).map((entry) => {
1753
- return (0, import_core2._toStr)(entry);
1754
- });
1755
- }, "se_MessageSystemAttributeList");
1756
- var se_MessageSystemAttributeValue = /* @__PURE__ */ __name((input, context) => {
1757
- return (0, import_smithy_client.take)(input, {
1758
- BinaryListValues: /* @__PURE__ */ __name((_) => se_BinaryList(_, context), "BinaryListValues"),
1759
- BinaryValue: context.base64Encoder,
1760
- DataType: import_core2._toStr,
1761
- StringListValues: /* @__PURE__ */ __name((_) => se_StringList(_, context), "StringListValues"),
1762
- StringValue: import_core2._toStr
1763
- });
1764
- }, "se_MessageSystemAttributeValue");
1765
- var se_PurgeQueueRequest = /* @__PURE__ */ __name((input, context) => {
1766
- return (0, import_smithy_client.take)(input, {
1767
- QueueUrl: import_core2._toStr
1768
- });
1769
- }, "se_PurgeQueueRequest");
1770
- var se_QueueAttributeMap = /* @__PURE__ */ __name((input, context) => {
1771
- return Object.entries(input).reduce((acc, [key, value]) => {
1772
- if (value === null) {
1773
- return acc;
641
+ await smithyClient.collectBody(output.body, context);
642
+ const response = {
643
+ $metadata: deserializeMetadata(output),
644
+ };
645
+ return response;
646
+ };
647
+ const de_CancelMessageMoveTaskCommand = async (output, context) => {
648
+ if (output.statusCode >= 300) {
649
+ return de_CommandError(output, context);
1774
650
  }
1775
- acc[key] = (0, import_core2._toStr)(value);
1776
- return acc;
1777
- }, {});
1778
- }, "se_QueueAttributeMap");
1779
- var se_ReceiveMessageRequest = /* @__PURE__ */ __name((input, context) => {
1780
- return (0, import_smithy_client.take)(input, {
1781
- AttributeNames: /* @__PURE__ */ __name((_) => se_AttributeNameList(_, context), "AttributeNames"),
1782
- MaxNumberOfMessages: import_core2._toNum,
1783
- MessageAttributeNames: /* @__PURE__ */ __name((_) => se_MessageAttributeNameList(_, context), "MessageAttributeNames"),
1784
- MessageSystemAttributeNames: /* @__PURE__ */ __name((_) => se_MessageSystemAttributeList(_, context), "MessageSystemAttributeNames"),
1785
- QueueUrl: import_core2._toStr,
1786
- ReceiveRequestAttemptId: import_core2._toStr,
1787
- VisibilityTimeout: import_core2._toNum,
1788
- WaitTimeSeconds: import_core2._toNum
1789
- });
1790
- }, "se_ReceiveMessageRequest");
1791
- var se_RemovePermissionRequest = /* @__PURE__ */ __name((input, context) => {
1792
- return (0, import_smithy_client.take)(input, {
1793
- Label: import_core2._toStr,
1794
- QueueUrl: import_core2._toStr
1795
- });
1796
- }, "se_RemovePermissionRequest");
1797
- var se_SendMessageBatchRequest = /* @__PURE__ */ __name((input, context) => {
1798
- return (0, import_smithy_client.take)(input, {
1799
- Entries: /* @__PURE__ */ __name((_) => se_SendMessageBatchRequestEntryList(_, context), "Entries"),
1800
- QueueUrl: import_core2._toStr
1801
- });
1802
- }, "se_SendMessageBatchRequest");
1803
- var se_SendMessageBatchRequestEntry = /* @__PURE__ */ __name((input, context) => {
1804
- return (0, import_smithy_client.take)(input, {
1805
- DelaySeconds: import_core2._toNum,
1806
- Id: import_core2._toStr,
1807
- MessageAttributes: /* @__PURE__ */ __name((_) => se_MessageBodyAttributeMap(_, context), "MessageAttributes"),
1808
- MessageBody: import_core2._toStr,
1809
- MessageDeduplicationId: import_core2._toStr,
1810
- MessageGroupId: import_core2._toStr,
1811
- MessageSystemAttributes: /* @__PURE__ */ __name((_) => se_MessageBodySystemAttributeMap(_, context), "MessageSystemAttributes")
1812
- });
1813
- }, "se_SendMessageBatchRequestEntry");
1814
- var se_SendMessageBatchRequestEntryList = /* @__PURE__ */ __name((input, context) => {
1815
- return input.filter((e) => e != null).map((entry) => {
1816
- return se_SendMessageBatchRequestEntry(entry, context);
1817
- });
1818
- }, "se_SendMessageBatchRequestEntryList");
1819
- var se_SendMessageRequest = /* @__PURE__ */ __name((input, context) => {
1820
- return (0, import_smithy_client.take)(input, {
1821
- DelaySeconds: import_core2._toNum,
1822
- MessageAttributes: /* @__PURE__ */ __name((_) => se_MessageBodyAttributeMap(_, context), "MessageAttributes"),
1823
- MessageBody: import_core2._toStr,
1824
- MessageDeduplicationId: import_core2._toStr,
1825
- MessageGroupId: import_core2._toStr,
1826
- MessageSystemAttributes: /* @__PURE__ */ __name((_) => se_MessageBodySystemAttributeMap(_, context), "MessageSystemAttributes"),
1827
- QueueUrl: import_core2._toStr
1828
- });
1829
- }, "se_SendMessageRequest");
1830
- var se_SetQueueAttributesRequest = /* @__PURE__ */ __name((input, context) => {
1831
- return (0, import_smithy_client.take)(input, {
1832
- Attributes: /* @__PURE__ */ __name((_) => se_QueueAttributeMap(_, context), "Attributes"),
1833
- QueueUrl: import_core2._toStr
1834
- });
1835
- }, "se_SetQueueAttributesRequest");
1836
- var se_StartMessageMoveTaskRequest = /* @__PURE__ */ __name((input, context) => {
1837
- return (0, import_smithy_client.take)(input, {
1838
- DestinationArn: import_core2._toStr,
1839
- MaxNumberOfMessagesPerSecond: import_core2._toNum,
1840
- SourceArn: import_core2._toStr
1841
- });
1842
- }, "se_StartMessageMoveTaskRequest");
1843
- var se_StringList = /* @__PURE__ */ __name((input, context) => {
1844
- return input.filter((e) => e != null).map((entry) => {
1845
- return (0, import_core2._toStr)(entry);
1846
- });
1847
- }, "se_StringList");
1848
- var se_TagKeyList = /* @__PURE__ */ __name((input, context) => {
1849
- return input.filter((e) => e != null).map((entry) => {
1850
- return (0, import_core2._toStr)(entry);
1851
- });
1852
- }, "se_TagKeyList");
1853
- var se_TagMap = /* @__PURE__ */ __name((input, context) => {
1854
- return Object.entries(input).reduce((acc, [key, value]) => {
1855
- if (value === null) {
1856
- return acc;
651
+ const data = await core$1.parseJsonBody(output.body, context);
652
+ let contents = {};
653
+ contents = smithyClient._json(data);
654
+ const response = {
655
+ $metadata: deserializeMetadata(output),
656
+ ...contents,
657
+ };
658
+ return response;
659
+ };
660
+ const de_ChangeMessageVisibilityCommand = async (output, context) => {
661
+ if (output.statusCode >= 300) {
662
+ return de_CommandError(output, context);
1857
663
  }
1858
- acc[key] = (0, import_core2._toStr)(value);
1859
- return acc;
1860
- }, {});
1861
- }, "se_TagMap");
1862
- var se_TagQueueRequest = /* @__PURE__ */ __name((input, context) => {
1863
- return (0, import_smithy_client.take)(input, {
1864
- QueueUrl: import_core2._toStr,
1865
- Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags")
1866
- });
1867
- }, "se_TagQueueRequest");
1868
- var se_UntagQueueRequest = /* @__PURE__ */ __name((input, context) => {
1869
- return (0, import_smithy_client.take)(input, {
1870
- QueueUrl: import_core2._toStr,
1871
- TagKeys: /* @__PURE__ */ __name((_) => se_TagKeyList(_, context), "TagKeys")
1872
- });
1873
- }, "se_UntagQueueRequest");
1874
- var de_BinaryList = /* @__PURE__ */ __name((output, context) => {
1875
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1876
- return context.base64Decoder(entry);
1877
- });
1878
- return retVal;
1879
- }, "de_BinaryList");
1880
- var de_Message = /* @__PURE__ */ __name((output, context) => {
1881
- return (0, import_smithy_client.take)(output, {
1882
- Attributes: import_smithy_client._json,
1883
- Body: import_smithy_client.expectString,
1884
- MD5OfBody: import_smithy_client.expectString,
1885
- MD5OfMessageAttributes: import_smithy_client.expectString,
1886
- MessageAttributes: /* @__PURE__ */ __name((_) => de_MessageBodyAttributeMap(_, context), "MessageAttributes"),
1887
- MessageId: import_smithy_client.expectString,
1888
- ReceiptHandle: import_smithy_client.expectString
1889
- });
1890
- }, "de_Message");
1891
- var de_MessageAttributeValue = /* @__PURE__ */ __name((output, context) => {
1892
- return (0, import_smithy_client.take)(output, {
1893
- BinaryListValues: /* @__PURE__ */ __name((_) => de_BinaryList(_, context), "BinaryListValues"),
1894
- BinaryValue: context.base64Decoder,
1895
- DataType: import_smithy_client.expectString,
1896
- StringListValues: import_smithy_client._json,
1897
- StringValue: import_smithy_client.expectString
1898
- });
1899
- }, "de_MessageAttributeValue");
1900
- var de_MessageBodyAttributeMap = /* @__PURE__ */ __name((output, context) => {
1901
- return Object.entries(output).reduce((acc, [key, value]) => {
1902
- if (value === null) {
1903
- return acc;
664
+ await smithyClient.collectBody(output.body, context);
665
+ const response = {
666
+ $metadata: deserializeMetadata(output),
667
+ };
668
+ return response;
669
+ };
670
+ const de_ChangeMessageVisibilityBatchCommand = async (output, context) => {
671
+ if (output.statusCode >= 300) {
672
+ return de_CommandError(output, context);
1904
673
  }
1905
- acc[key] = de_MessageAttributeValue(value, context);
1906
- return acc;
1907
- }, {});
1908
- }, "de_MessageBodyAttributeMap");
1909
- var de_MessageList = /* @__PURE__ */ __name((output, context) => {
1910
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1911
- return de_Message(entry, context);
1912
- });
1913
- return retVal;
1914
- }, "de_MessageList");
1915
- var de_ReceiveMessageResult = /* @__PURE__ */ __name((output, context) => {
1916
- return (0, import_smithy_client.take)(output, {
1917
- Messages: /* @__PURE__ */ __name((_) => de_MessageList(_, context), "Messages")
1918
- });
1919
- }, "de_ReceiveMessageResult");
1920
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1921
- httpStatusCode: output.statusCode,
1922
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1923
- extendedRequestId: output.headers["x-amz-id-2"],
1924
- cfId: output.headers["x-amz-cf-id"]
1925
- }), "deserializeMetadata");
1926
- var throwDefaultError = (0, import_smithy_client.withBaseException)(SQSServiceException);
1927
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1928
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1929
- const contents = {
1930
- protocol,
1931
- hostname,
1932
- port,
1933
- method: "POST",
1934
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1935
- headers
1936
- };
1937
- if (resolvedHostname !== void 0) {
1938
- contents.hostname = resolvedHostname;
1939
- }
1940
- if (body !== void 0) {
1941
- contents.body = body;
1942
- }
1943
- return new import_protocol_http.HttpRequest(contents);
1944
- }, "buildHttpRpcRequest");
1945
- function sharedHeaders(operation) {
1946
- return {
1947
- "content-type": "application/x-amz-json-1.0",
1948
- "x-amz-target": `AmazonSQS.${operation}`,
1949
- "x-amzn-query-mode": "true"
1950
- };
1951
- }
1952
- __name(sharedHeaders, "sharedHeaders");
1953
- var populateBodyWithQueryCompatibility = /* @__PURE__ */ __name((parsedOutput, headers) => {
1954
- const queryErrorHeader = headers["x-amzn-query-error"];
1955
- if (parsedOutput.body !== void 0 && queryErrorHeader != null) {
1956
- const [Code, Type] = queryErrorHeader.split(";");
1957
- const entries = Object.entries(parsedOutput.body);
1958
- const Error2 = {
1959
- Type,
1960
- Code
674
+ const data = await core$1.parseJsonBody(output.body, context);
675
+ let contents = {};
676
+ contents = smithyClient._json(data);
677
+ const response = {
678
+ $metadata: deserializeMetadata(output),
679
+ ...contents,
1961
680
  };
1962
- Object.assign(parsedOutput.body, Error2);
1963
- for (const [k, v] of entries) {
1964
- Error2[k] = v;
681
+ return response;
682
+ };
683
+ const de_CreateQueueCommand = async (output, context) => {
684
+ if (output.statusCode >= 300) {
685
+ return de_CommandError(output, context);
1965
686
  }
1966
- delete Error2.__type;
1967
- parsedOutput.body.Error = Error2;
1968
- }
1969
- }, "populateBodyWithQueryCompatibility");
1970
-
1971
- // src/commands/AddPermissionCommand.ts
1972
- var AddPermissionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1973
- return [
1974
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1975
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1976
- ];
1977
- }).s("AmazonSQS", "AddPermission", {}).n("SQSClient", "AddPermissionCommand").f(void 0, void 0).ser(se_AddPermissionCommand).de(de_AddPermissionCommand).build() {
1978
- static {
1979
- __name(this, "AddPermissionCommand");
1980
- }
687
+ const data = await core$1.parseJsonBody(output.body, context);
688
+ let contents = {};
689
+ contents = smithyClient._json(data);
690
+ const response = {
691
+ $metadata: deserializeMetadata(output),
692
+ ...contents,
693
+ };
694
+ return response;
1981
695
  };
1982
-
1983
- // src/commands/CancelMessageMoveTaskCommand.ts
1984
-
1985
-
1986
-
1987
- var CancelMessageMoveTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1988
- return [
1989
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1990
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1991
- ];
1992
- }).s("AmazonSQS", "CancelMessageMoveTask", {}).n("SQSClient", "CancelMessageMoveTaskCommand").f(void 0, void 0).ser(se_CancelMessageMoveTaskCommand).de(de_CancelMessageMoveTaskCommand).build() {
1993
- static {
1994
- __name(this, "CancelMessageMoveTaskCommand");
1995
- }
696
+ const de_DeleteMessageCommand = async (output, context) => {
697
+ if (output.statusCode >= 300) {
698
+ return de_CommandError(output, context);
699
+ }
700
+ await smithyClient.collectBody(output.body, context);
701
+ const response = {
702
+ $metadata: deserializeMetadata(output),
703
+ };
704
+ return response;
1996
705
  };
1997
-
1998
- // src/commands/ChangeMessageVisibilityBatchCommand.ts
1999
-
2000
-
2001
-
2002
- var ChangeMessageVisibilityBatchCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2003
- return [
2004
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2005
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2006
- ];
2007
- }).s("AmazonSQS", "ChangeMessageVisibilityBatch", {}).n("SQSClient", "ChangeMessageVisibilityBatchCommand").f(void 0, void 0).ser(se_ChangeMessageVisibilityBatchCommand).de(de_ChangeMessageVisibilityBatchCommand).build() {
2008
- static {
2009
- __name(this, "ChangeMessageVisibilityBatchCommand");
2010
- }
706
+ const de_DeleteMessageBatchCommand = async (output, context) => {
707
+ if (output.statusCode >= 300) {
708
+ return de_CommandError(output, context);
709
+ }
710
+ const data = await core$1.parseJsonBody(output.body, context);
711
+ let contents = {};
712
+ contents = smithyClient._json(data);
713
+ const response = {
714
+ $metadata: deserializeMetadata(output),
715
+ ...contents,
716
+ };
717
+ return response;
2011
718
  };
2012
-
2013
- // src/commands/ChangeMessageVisibilityCommand.ts
2014
-
2015
-
2016
-
2017
- var ChangeMessageVisibilityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2018
- return [
2019
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2020
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2021
- ];
2022
- }).s("AmazonSQS", "ChangeMessageVisibility", {}).n("SQSClient", "ChangeMessageVisibilityCommand").f(void 0, void 0).ser(se_ChangeMessageVisibilityCommand).de(de_ChangeMessageVisibilityCommand).build() {
2023
- static {
2024
- __name(this, "ChangeMessageVisibilityCommand");
2025
- }
719
+ const de_DeleteQueueCommand = async (output, context) => {
720
+ if (output.statusCode >= 300) {
721
+ return de_CommandError(output, context);
722
+ }
723
+ await smithyClient.collectBody(output.body, context);
724
+ const response = {
725
+ $metadata: deserializeMetadata(output),
726
+ };
727
+ return response;
2026
728
  };
2027
-
2028
- // src/commands/CreateQueueCommand.ts
2029
-
2030
-
2031
-
2032
- var CreateQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2033
- return [
2034
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2035
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2036
- ];
2037
- }).s("AmazonSQS", "CreateQueue", {}).n("SQSClient", "CreateQueueCommand").f(void 0, void 0).ser(se_CreateQueueCommand).de(de_CreateQueueCommand).build() {
2038
- static {
2039
- __name(this, "CreateQueueCommand");
2040
- }
729
+ const de_GetQueueAttributesCommand = async (output, context) => {
730
+ if (output.statusCode >= 300) {
731
+ return de_CommandError(output, context);
732
+ }
733
+ const data = await core$1.parseJsonBody(output.body, context);
734
+ let contents = {};
735
+ contents = smithyClient._json(data);
736
+ const response = {
737
+ $metadata: deserializeMetadata(output),
738
+ ...contents,
739
+ };
740
+ return response;
2041
741
  };
2042
-
2043
- // src/commands/DeleteMessageBatchCommand.ts
2044
-
2045
-
2046
-
2047
- var DeleteMessageBatchCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2048
- return [
2049
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2050
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2051
- ];
2052
- }).s("AmazonSQS", "DeleteMessageBatch", {}).n("SQSClient", "DeleteMessageBatchCommand").f(void 0, void 0).ser(se_DeleteMessageBatchCommand).de(de_DeleteMessageBatchCommand).build() {
2053
- static {
2054
- __name(this, "DeleteMessageBatchCommand");
2055
- }
742
+ const de_GetQueueUrlCommand = async (output, context) => {
743
+ if (output.statusCode >= 300) {
744
+ return de_CommandError(output, context);
745
+ }
746
+ const data = await core$1.parseJsonBody(output.body, context);
747
+ let contents = {};
748
+ contents = smithyClient._json(data);
749
+ const response = {
750
+ $metadata: deserializeMetadata(output),
751
+ ...contents,
752
+ };
753
+ return response;
2056
754
  };
2057
-
2058
- // src/commands/DeleteMessageCommand.ts
2059
-
2060
-
2061
-
2062
- var DeleteMessageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2063
- return [
2064
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2065
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2066
- ];
2067
- }).s("AmazonSQS", "DeleteMessage", {}).n("SQSClient", "DeleteMessageCommand").f(void 0, void 0).ser(se_DeleteMessageCommand).de(de_DeleteMessageCommand).build() {
2068
- static {
2069
- __name(this, "DeleteMessageCommand");
2070
- }
755
+ const de_ListDeadLetterSourceQueuesCommand = async (output, context) => {
756
+ if (output.statusCode >= 300) {
757
+ return de_CommandError(output, context);
758
+ }
759
+ const data = await core$1.parseJsonBody(output.body, context);
760
+ let contents = {};
761
+ contents = smithyClient._json(data);
762
+ const response = {
763
+ $metadata: deserializeMetadata(output),
764
+ ...contents,
765
+ };
766
+ return response;
2071
767
  };
2072
-
2073
- // src/commands/DeleteQueueCommand.ts
2074
-
2075
-
2076
-
2077
- var DeleteQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2078
- return [
2079
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2080
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2081
- ];
2082
- }).s("AmazonSQS", "DeleteQueue", {}).n("SQSClient", "DeleteQueueCommand").f(void 0, void 0).ser(se_DeleteQueueCommand).de(de_DeleteQueueCommand).build() {
2083
- static {
2084
- __name(this, "DeleteQueueCommand");
2085
- }
768
+ const de_ListMessageMoveTasksCommand = async (output, context) => {
769
+ if (output.statusCode >= 300) {
770
+ return de_CommandError(output, context);
771
+ }
772
+ const data = await core$1.parseJsonBody(output.body, context);
773
+ let contents = {};
774
+ contents = smithyClient._json(data);
775
+ const response = {
776
+ $metadata: deserializeMetadata(output),
777
+ ...contents,
778
+ };
779
+ return response;
2086
780
  };
2087
-
2088
- // src/commands/GetQueueAttributesCommand.ts
2089
-
2090
-
2091
-
2092
- var GetQueueAttributesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2093
- return [
2094
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2095
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2096
- ];
2097
- }).s("AmazonSQS", "GetQueueAttributes", {}).n("SQSClient", "GetQueueAttributesCommand").f(void 0, void 0).ser(se_GetQueueAttributesCommand).de(de_GetQueueAttributesCommand).build() {
2098
- static {
2099
- __name(this, "GetQueueAttributesCommand");
2100
- }
781
+ const de_ListQueuesCommand = async (output, context) => {
782
+ if (output.statusCode >= 300) {
783
+ return de_CommandError(output, context);
784
+ }
785
+ const data = await core$1.parseJsonBody(output.body, context);
786
+ let contents = {};
787
+ contents = smithyClient._json(data);
788
+ const response = {
789
+ $metadata: deserializeMetadata(output),
790
+ ...contents,
791
+ };
792
+ return response;
2101
793
  };
2102
-
2103
- // src/commands/GetQueueUrlCommand.ts
2104
-
2105
-
2106
-
2107
- var GetQueueUrlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2108
- return [
2109
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2110
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2111
- ];
2112
- }).s("AmazonSQS", "GetQueueUrl", {}).n("SQSClient", "GetQueueUrlCommand").f(void 0, void 0).ser(se_GetQueueUrlCommand).de(de_GetQueueUrlCommand).build() {
2113
- static {
2114
- __name(this, "GetQueueUrlCommand");
2115
- }
794
+ const de_ListQueueTagsCommand = async (output, context) => {
795
+ if (output.statusCode >= 300) {
796
+ return de_CommandError(output, context);
797
+ }
798
+ const data = await core$1.parseJsonBody(output.body, context);
799
+ let contents = {};
800
+ contents = smithyClient._json(data);
801
+ const response = {
802
+ $metadata: deserializeMetadata(output),
803
+ ...contents,
804
+ };
805
+ return response;
2116
806
  };
2117
-
2118
- // src/commands/ListDeadLetterSourceQueuesCommand.ts
2119
-
2120
-
2121
-
2122
- var ListDeadLetterSourceQueuesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2123
- return [
2124
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2125
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2126
- ];
2127
- }).s("AmazonSQS", "ListDeadLetterSourceQueues", {}).n("SQSClient", "ListDeadLetterSourceQueuesCommand").f(void 0, void 0).ser(se_ListDeadLetterSourceQueuesCommand).de(de_ListDeadLetterSourceQueuesCommand).build() {
2128
- static {
2129
- __name(this, "ListDeadLetterSourceQueuesCommand");
2130
- }
807
+ const de_PurgeQueueCommand = async (output, context) => {
808
+ if (output.statusCode >= 300) {
809
+ return de_CommandError(output, context);
810
+ }
811
+ await smithyClient.collectBody(output.body, context);
812
+ const response = {
813
+ $metadata: deserializeMetadata(output),
814
+ };
815
+ return response;
2131
816
  };
2132
-
2133
- // src/commands/ListMessageMoveTasksCommand.ts
2134
-
2135
-
2136
-
2137
- var ListMessageMoveTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2138
- return [
2139
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2140
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2141
- ];
2142
- }).s("AmazonSQS", "ListMessageMoveTasks", {}).n("SQSClient", "ListMessageMoveTasksCommand").f(void 0, void 0).ser(se_ListMessageMoveTasksCommand).de(de_ListMessageMoveTasksCommand).build() {
2143
- static {
2144
- __name(this, "ListMessageMoveTasksCommand");
2145
- }
817
+ const de_ReceiveMessageCommand = async (output, context) => {
818
+ if (output.statusCode >= 300) {
819
+ return de_CommandError(output, context);
820
+ }
821
+ const data = await core$1.parseJsonBody(output.body, context);
822
+ let contents = {};
823
+ contents = de_ReceiveMessageResult(data, context);
824
+ const response = {
825
+ $metadata: deserializeMetadata(output),
826
+ ...contents,
827
+ };
828
+ return response;
2146
829
  };
2147
-
2148
- // src/commands/ListQueuesCommand.ts
2149
-
2150
-
2151
-
2152
- var ListQueuesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2153
- return [
2154
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2155
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2156
- ];
2157
- }).s("AmazonSQS", "ListQueues", {}).n("SQSClient", "ListQueuesCommand").f(void 0, void 0).ser(se_ListQueuesCommand).de(de_ListQueuesCommand).build() {
2158
- static {
2159
- __name(this, "ListQueuesCommand");
2160
- }
830
+ const de_RemovePermissionCommand = async (output, context) => {
831
+ if (output.statusCode >= 300) {
832
+ return de_CommandError(output, context);
833
+ }
834
+ await smithyClient.collectBody(output.body, context);
835
+ const response = {
836
+ $metadata: deserializeMetadata(output),
837
+ };
838
+ return response;
2161
839
  };
2162
-
2163
- // src/commands/ListQueueTagsCommand.ts
2164
-
2165
-
2166
-
2167
- var ListQueueTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2168
- return [
2169
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2170
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2171
- ];
2172
- }).s("AmazonSQS", "ListQueueTags", {}).n("SQSClient", "ListQueueTagsCommand").f(void 0, void 0).ser(se_ListQueueTagsCommand).de(de_ListQueueTagsCommand).build() {
2173
- static {
2174
- __name(this, "ListQueueTagsCommand");
2175
- }
840
+ const de_SendMessageCommand = async (output, context) => {
841
+ if (output.statusCode >= 300) {
842
+ return de_CommandError(output, context);
843
+ }
844
+ const data = await core$1.parseJsonBody(output.body, context);
845
+ let contents = {};
846
+ contents = smithyClient._json(data);
847
+ const response = {
848
+ $metadata: deserializeMetadata(output),
849
+ ...contents,
850
+ };
851
+ return response;
2176
852
  };
2177
-
2178
- // src/commands/PurgeQueueCommand.ts
2179
-
2180
-
2181
-
2182
- var PurgeQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2183
- return [
2184
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2185
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2186
- ];
2187
- }).s("AmazonSQS", "PurgeQueue", {}).n("SQSClient", "PurgeQueueCommand").f(void 0, void 0).ser(se_PurgeQueueCommand).de(de_PurgeQueueCommand).build() {
2188
- static {
2189
- __name(this, "PurgeQueueCommand");
2190
- }
853
+ const de_SendMessageBatchCommand = async (output, context) => {
854
+ if (output.statusCode >= 300) {
855
+ return de_CommandError(output, context);
856
+ }
857
+ const data = await core$1.parseJsonBody(output.body, context);
858
+ let contents = {};
859
+ contents = smithyClient._json(data);
860
+ const response = {
861
+ $metadata: deserializeMetadata(output),
862
+ ...contents,
863
+ };
864
+ return response;
2191
865
  };
2192
-
2193
- // src/commands/ReceiveMessageCommand.ts
2194
-
2195
-
2196
-
2197
-
2198
- var ReceiveMessageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2199
- return [
2200
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2201
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
2202
- (0, import_middleware_sdk_sqs.getReceiveMessagePlugin)(config)
2203
- ];
2204
- }).s("AmazonSQS", "ReceiveMessage", {}).n("SQSClient", "ReceiveMessageCommand").f(void 0, void 0).ser(se_ReceiveMessageCommand).de(de_ReceiveMessageCommand).build() {
2205
- static {
2206
- __name(this, "ReceiveMessageCommand");
2207
- }
866
+ const de_SetQueueAttributesCommand = async (output, context) => {
867
+ if (output.statusCode >= 300) {
868
+ return de_CommandError(output, context);
869
+ }
870
+ await smithyClient.collectBody(output.body, context);
871
+ const response = {
872
+ $metadata: deserializeMetadata(output),
873
+ };
874
+ return response;
2208
875
  };
2209
-
2210
- // src/commands/RemovePermissionCommand.ts
2211
-
2212
-
2213
-
2214
- var RemovePermissionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2215
- return [
2216
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2217
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2218
- ];
2219
- }).s("AmazonSQS", "RemovePermission", {}).n("SQSClient", "RemovePermissionCommand").f(void 0, void 0).ser(se_RemovePermissionCommand).de(de_RemovePermissionCommand).build() {
2220
- static {
2221
- __name(this, "RemovePermissionCommand");
2222
- }
876
+ const de_StartMessageMoveTaskCommand = async (output, context) => {
877
+ if (output.statusCode >= 300) {
878
+ return de_CommandError(output, context);
879
+ }
880
+ const data = await core$1.parseJsonBody(output.body, context);
881
+ let contents = {};
882
+ contents = smithyClient._json(data);
883
+ const response = {
884
+ $metadata: deserializeMetadata(output),
885
+ ...contents,
886
+ };
887
+ return response;
2223
888
  };
2224
-
2225
- // src/commands/SendMessageBatchCommand.ts
2226
-
2227
-
2228
-
2229
-
2230
- var SendMessageBatchCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2231
- return [
2232
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2233
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
2234
- (0, import_middleware_sdk_sqs.getSendMessageBatchPlugin)(config)
2235
- ];
2236
- }).s("AmazonSQS", "SendMessageBatch", {}).n("SQSClient", "SendMessageBatchCommand").f(void 0, void 0).ser(se_SendMessageBatchCommand).de(de_SendMessageBatchCommand).build() {
2237
- static {
2238
- __name(this, "SendMessageBatchCommand");
2239
- }
889
+ const de_TagQueueCommand = async (output, context) => {
890
+ if (output.statusCode >= 300) {
891
+ return de_CommandError(output, context);
892
+ }
893
+ await smithyClient.collectBody(output.body, context);
894
+ const response = {
895
+ $metadata: deserializeMetadata(output),
896
+ };
897
+ return response;
898
+ };
899
+ const de_UntagQueueCommand = async (output, context) => {
900
+ if (output.statusCode >= 300) {
901
+ return de_CommandError(output, context);
902
+ }
903
+ await smithyClient.collectBody(output.body, context);
904
+ const response = {
905
+ $metadata: deserializeMetadata(output),
906
+ };
907
+ return response;
908
+ };
909
+ const de_CommandError = async (output, context) => {
910
+ const parsedOutput = {
911
+ ...output,
912
+ body: await core$1.parseJsonErrorBody(output.body, context),
913
+ };
914
+ populateBodyWithQueryCompatibility(parsedOutput, output.headers);
915
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
916
+ switch (errorCode) {
917
+ case "InvalidAddress":
918
+ case "com.amazonaws.sqs#InvalidAddress":
919
+ throw await de_InvalidAddressRes(parsedOutput);
920
+ case "InvalidSecurity":
921
+ case "com.amazonaws.sqs#InvalidSecurity":
922
+ throw await de_InvalidSecurityRes(parsedOutput);
923
+ case "OverLimit":
924
+ case "com.amazonaws.sqs#OverLimit":
925
+ throw await de_OverLimitRes(parsedOutput);
926
+ case "QueueDoesNotExist":
927
+ case "com.amazonaws.sqs#QueueDoesNotExist":
928
+ case "AWS.SimpleQueueService.NonExistentQueue":
929
+ throw await de_QueueDoesNotExistRes(parsedOutput);
930
+ case "RequestThrottled":
931
+ case "com.amazonaws.sqs#RequestThrottled":
932
+ throw await de_RequestThrottledRes(parsedOutput);
933
+ case "UnsupportedOperation":
934
+ case "com.amazonaws.sqs#UnsupportedOperation":
935
+ case "AWS.SimpleQueueService.UnsupportedOperation":
936
+ throw await de_UnsupportedOperationRes(parsedOutput);
937
+ case "ResourceNotFoundException":
938
+ case "com.amazonaws.sqs#ResourceNotFoundException":
939
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
940
+ case "MessageNotInflight":
941
+ case "com.amazonaws.sqs#MessageNotInflight":
942
+ case "AWS.SimpleQueueService.MessageNotInflight":
943
+ throw await de_MessageNotInflightRes(parsedOutput);
944
+ case "ReceiptHandleIsInvalid":
945
+ case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
946
+ throw await de_ReceiptHandleIsInvalidRes(parsedOutput);
947
+ case "BatchEntryIdsNotDistinct":
948
+ case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
949
+ case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
950
+ throw await de_BatchEntryIdsNotDistinctRes(parsedOutput);
951
+ case "EmptyBatchRequest":
952
+ case "com.amazonaws.sqs#EmptyBatchRequest":
953
+ case "AWS.SimpleQueueService.EmptyBatchRequest":
954
+ throw await de_EmptyBatchRequestRes(parsedOutput);
955
+ case "InvalidBatchEntryId":
956
+ case "com.amazonaws.sqs#InvalidBatchEntryId":
957
+ case "AWS.SimpleQueueService.InvalidBatchEntryId":
958
+ throw await de_InvalidBatchEntryIdRes(parsedOutput);
959
+ case "TooManyEntriesInBatchRequest":
960
+ case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
961
+ case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
962
+ throw await de_TooManyEntriesInBatchRequestRes(parsedOutput);
963
+ case "InvalidAttributeName":
964
+ case "com.amazonaws.sqs#InvalidAttributeName":
965
+ throw await de_InvalidAttributeNameRes(parsedOutput);
966
+ case "InvalidAttributeValue":
967
+ case "com.amazonaws.sqs#InvalidAttributeValue":
968
+ throw await de_InvalidAttributeValueRes(parsedOutput);
969
+ case "QueueDeletedRecently":
970
+ case "com.amazonaws.sqs#QueueDeletedRecently":
971
+ case "AWS.SimpleQueueService.QueueDeletedRecently":
972
+ throw await de_QueueDeletedRecentlyRes(parsedOutput);
973
+ case "QueueNameExists":
974
+ case "com.amazonaws.sqs#QueueNameExists":
975
+ case "QueueAlreadyExists":
976
+ throw await de_QueueNameExistsRes(parsedOutput);
977
+ case "InvalidIdFormat":
978
+ case "com.amazonaws.sqs#InvalidIdFormat":
979
+ throw await de_InvalidIdFormatRes(parsedOutput);
980
+ case "PurgeQueueInProgress":
981
+ case "com.amazonaws.sqs#PurgeQueueInProgress":
982
+ case "AWS.SimpleQueueService.PurgeQueueInProgress":
983
+ throw await de_PurgeQueueInProgressRes(parsedOutput);
984
+ case "KmsAccessDenied":
985
+ case "com.amazonaws.sqs#KmsAccessDenied":
986
+ case "KMS.AccessDeniedException":
987
+ throw await de_KmsAccessDeniedRes(parsedOutput);
988
+ case "KmsDisabled":
989
+ case "com.amazonaws.sqs#KmsDisabled":
990
+ case "KMS.DisabledException":
991
+ throw await de_KmsDisabledRes(parsedOutput);
992
+ case "KmsInvalidKeyUsage":
993
+ case "com.amazonaws.sqs#KmsInvalidKeyUsage":
994
+ case "KMS.InvalidKeyUsageException":
995
+ throw await de_KmsInvalidKeyUsageRes(parsedOutput);
996
+ case "KmsInvalidState":
997
+ case "com.amazonaws.sqs#KmsInvalidState":
998
+ case "KMS.InvalidStateException":
999
+ throw await de_KmsInvalidStateRes(parsedOutput);
1000
+ case "KmsNotFound":
1001
+ case "com.amazonaws.sqs#KmsNotFound":
1002
+ case "KMS.NotFoundException":
1003
+ throw await de_KmsNotFoundRes(parsedOutput);
1004
+ case "KmsOptInRequired":
1005
+ case "com.amazonaws.sqs#KmsOptInRequired":
1006
+ case "KMS.OptInRequired":
1007
+ throw await de_KmsOptInRequiredRes(parsedOutput);
1008
+ case "KmsThrottled":
1009
+ case "com.amazonaws.sqs#KmsThrottled":
1010
+ case "KMS.ThrottlingException":
1011
+ throw await de_KmsThrottledRes(parsedOutput);
1012
+ case "InvalidMessageContents":
1013
+ case "com.amazonaws.sqs#InvalidMessageContents":
1014
+ throw await de_InvalidMessageContentsRes(parsedOutput);
1015
+ case "BatchRequestTooLong":
1016
+ case "com.amazonaws.sqs#BatchRequestTooLong":
1017
+ case "AWS.SimpleQueueService.BatchRequestTooLong":
1018
+ throw await de_BatchRequestTooLongRes(parsedOutput);
1019
+ default:
1020
+ const parsedBody = parsedOutput.body;
1021
+ return throwDefaultError({
1022
+ output,
1023
+ parsedBody,
1024
+ errorCode,
1025
+ });
1026
+ }
1027
+ };
1028
+ const de_BatchEntryIdsNotDistinctRes = async (parsedOutput, context) => {
1029
+ const body = parsedOutput.body;
1030
+ const deserialized = smithyClient._json(body);
1031
+ const exception = new BatchEntryIdsNotDistinct({
1032
+ $metadata: deserializeMetadata(parsedOutput),
1033
+ ...deserialized,
1034
+ });
1035
+ return smithyClient.decorateServiceException(exception, body);
1036
+ };
1037
+ const de_BatchRequestTooLongRes = async (parsedOutput, context) => {
1038
+ const body = parsedOutput.body;
1039
+ const deserialized = smithyClient._json(body);
1040
+ const exception = new BatchRequestTooLong({
1041
+ $metadata: deserializeMetadata(parsedOutput),
1042
+ ...deserialized,
1043
+ });
1044
+ return smithyClient.decorateServiceException(exception, body);
1045
+ };
1046
+ const de_EmptyBatchRequestRes = async (parsedOutput, context) => {
1047
+ const body = parsedOutput.body;
1048
+ const deserialized = smithyClient._json(body);
1049
+ const exception = new EmptyBatchRequest({
1050
+ $metadata: deserializeMetadata(parsedOutput),
1051
+ ...deserialized,
1052
+ });
1053
+ return smithyClient.decorateServiceException(exception, body);
1054
+ };
1055
+ const de_InvalidAddressRes = async (parsedOutput, context) => {
1056
+ const body = parsedOutput.body;
1057
+ const deserialized = smithyClient._json(body);
1058
+ const exception = new InvalidAddress({
1059
+ $metadata: deserializeMetadata(parsedOutput),
1060
+ ...deserialized,
1061
+ });
1062
+ return smithyClient.decorateServiceException(exception, body);
1063
+ };
1064
+ const de_InvalidAttributeNameRes = async (parsedOutput, context) => {
1065
+ const body = parsedOutput.body;
1066
+ const deserialized = smithyClient._json(body);
1067
+ const exception = new InvalidAttributeName({
1068
+ $metadata: deserializeMetadata(parsedOutput),
1069
+ ...deserialized,
1070
+ });
1071
+ return smithyClient.decorateServiceException(exception, body);
1072
+ };
1073
+ const de_InvalidAttributeValueRes = async (parsedOutput, context) => {
1074
+ const body = parsedOutput.body;
1075
+ const deserialized = smithyClient._json(body);
1076
+ const exception = new InvalidAttributeValue({
1077
+ $metadata: deserializeMetadata(parsedOutput),
1078
+ ...deserialized,
1079
+ });
1080
+ return smithyClient.decorateServiceException(exception, body);
1081
+ };
1082
+ const de_InvalidBatchEntryIdRes = async (parsedOutput, context) => {
1083
+ const body = parsedOutput.body;
1084
+ const deserialized = smithyClient._json(body);
1085
+ const exception = new InvalidBatchEntryId({
1086
+ $metadata: deserializeMetadata(parsedOutput),
1087
+ ...deserialized,
1088
+ });
1089
+ return smithyClient.decorateServiceException(exception, body);
1090
+ };
1091
+ const de_InvalidIdFormatRes = async (parsedOutput, context) => {
1092
+ const body = parsedOutput.body;
1093
+ const deserialized = smithyClient._json(body);
1094
+ const exception = new InvalidIdFormat({
1095
+ $metadata: deserializeMetadata(parsedOutput),
1096
+ ...deserialized,
1097
+ });
1098
+ return smithyClient.decorateServiceException(exception, body);
1099
+ };
1100
+ const de_InvalidMessageContentsRes = async (parsedOutput, context) => {
1101
+ const body = parsedOutput.body;
1102
+ const deserialized = smithyClient._json(body);
1103
+ const exception = new InvalidMessageContents({
1104
+ $metadata: deserializeMetadata(parsedOutput),
1105
+ ...deserialized,
1106
+ });
1107
+ return smithyClient.decorateServiceException(exception, body);
1108
+ };
1109
+ const de_InvalidSecurityRes = async (parsedOutput, context) => {
1110
+ const body = parsedOutput.body;
1111
+ const deserialized = smithyClient._json(body);
1112
+ const exception = new InvalidSecurity({
1113
+ $metadata: deserializeMetadata(parsedOutput),
1114
+ ...deserialized,
1115
+ });
1116
+ return smithyClient.decorateServiceException(exception, body);
1117
+ };
1118
+ const de_KmsAccessDeniedRes = async (parsedOutput, context) => {
1119
+ const body = parsedOutput.body;
1120
+ const deserialized = smithyClient._json(body);
1121
+ const exception = new KmsAccessDenied({
1122
+ $metadata: deserializeMetadata(parsedOutput),
1123
+ ...deserialized,
1124
+ });
1125
+ return smithyClient.decorateServiceException(exception, body);
1126
+ };
1127
+ const de_KmsDisabledRes = async (parsedOutput, context) => {
1128
+ const body = parsedOutput.body;
1129
+ const deserialized = smithyClient._json(body);
1130
+ const exception = new KmsDisabled({
1131
+ $metadata: deserializeMetadata(parsedOutput),
1132
+ ...deserialized,
1133
+ });
1134
+ return smithyClient.decorateServiceException(exception, body);
1135
+ };
1136
+ const de_KmsInvalidKeyUsageRes = async (parsedOutput, context) => {
1137
+ const body = parsedOutput.body;
1138
+ const deserialized = smithyClient._json(body);
1139
+ const exception = new KmsInvalidKeyUsage({
1140
+ $metadata: deserializeMetadata(parsedOutput),
1141
+ ...deserialized,
1142
+ });
1143
+ return smithyClient.decorateServiceException(exception, body);
1144
+ };
1145
+ const de_KmsInvalidStateRes = async (parsedOutput, context) => {
1146
+ const body = parsedOutput.body;
1147
+ const deserialized = smithyClient._json(body);
1148
+ const exception = new KmsInvalidState({
1149
+ $metadata: deserializeMetadata(parsedOutput),
1150
+ ...deserialized,
1151
+ });
1152
+ return smithyClient.decorateServiceException(exception, body);
1153
+ };
1154
+ const de_KmsNotFoundRes = async (parsedOutput, context) => {
1155
+ const body = parsedOutput.body;
1156
+ const deserialized = smithyClient._json(body);
1157
+ const exception = new KmsNotFound({
1158
+ $metadata: deserializeMetadata(parsedOutput),
1159
+ ...deserialized,
1160
+ });
1161
+ return smithyClient.decorateServiceException(exception, body);
1162
+ };
1163
+ const de_KmsOptInRequiredRes = async (parsedOutput, context) => {
1164
+ const body = parsedOutput.body;
1165
+ const deserialized = smithyClient._json(body);
1166
+ const exception = new KmsOptInRequired({
1167
+ $metadata: deserializeMetadata(parsedOutput),
1168
+ ...deserialized,
1169
+ });
1170
+ return smithyClient.decorateServiceException(exception, body);
1171
+ };
1172
+ const de_KmsThrottledRes = async (parsedOutput, context) => {
1173
+ const body = parsedOutput.body;
1174
+ const deserialized = smithyClient._json(body);
1175
+ const exception = new KmsThrottled({
1176
+ $metadata: deserializeMetadata(parsedOutput),
1177
+ ...deserialized,
1178
+ });
1179
+ return smithyClient.decorateServiceException(exception, body);
1180
+ };
1181
+ const de_MessageNotInflightRes = async (parsedOutput, context) => {
1182
+ const body = parsedOutput.body;
1183
+ const deserialized = smithyClient._json(body);
1184
+ const exception = new MessageNotInflight({
1185
+ $metadata: deserializeMetadata(parsedOutput),
1186
+ ...deserialized,
1187
+ });
1188
+ return smithyClient.decorateServiceException(exception, body);
1189
+ };
1190
+ const de_OverLimitRes = async (parsedOutput, context) => {
1191
+ const body = parsedOutput.body;
1192
+ const deserialized = smithyClient._json(body);
1193
+ const exception = new OverLimit({
1194
+ $metadata: deserializeMetadata(parsedOutput),
1195
+ ...deserialized,
1196
+ });
1197
+ return smithyClient.decorateServiceException(exception, body);
1198
+ };
1199
+ const de_PurgeQueueInProgressRes = async (parsedOutput, context) => {
1200
+ const body = parsedOutput.body;
1201
+ const deserialized = smithyClient._json(body);
1202
+ const exception = new PurgeQueueInProgress({
1203
+ $metadata: deserializeMetadata(parsedOutput),
1204
+ ...deserialized,
1205
+ });
1206
+ return smithyClient.decorateServiceException(exception, body);
1207
+ };
1208
+ const de_QueueDeletedRecentlyRes = async (parsedOutput, context) => {
1209
+ const body = parsedOutput.body;
1210
+ const deserialized = smithyClient._json(body);
1211
+ const exception = new QueueDeletedRecently({
1212
+ $metadata: deserializeMetadata(parsedOutput),
1213
+ ...deserialized,
1214
+ });
1215
+ return smithyClient.decorateServiceException(exception, body);
1216
+ };
1217
+ const de_QueueDoesNotExistRes = async (parsedOutput, context) => {
1218
+ const body = parsedOutput.body;
1219
+ const deserialized = smithyClient._json(body);
1220
+ const exception = new QueueDoesNotExist({
1221
+ $metadata: deserializeMetadata(parsedOutput),
1222
+ ...deserialized,
1223
+ });
1224
+ return smithyClient.decorateServiceException(exception, body);
1225
+ };
1226
+ const de_QueueNameExistsRes = async (parsedOutput, context) => {
1227
+ const body = parsedOutput.body;
1228
+ const deserialized = smithyClient._json(body);
1229
+ const exception = new QueueNameExists({
1230
+ $metadata: deserializeMetadata(parsedOutput),
1231
+ ...deserialized,
1232
+ });
1233
+ return smithyClient.decorateServiceException(exception, body);
1234
+ };
1235
+ const de_ReceiptHandleIsInvalidRes = async (parsedOutput, context) => {
1236
+ const body = parsedOutput.body;
1237
+ const deserialized = smithyClient._json(body);
1238
+ const exception = new ReceiptHandleIsInvalid({
1239
+ $metadata: deserializeMetadata(parsedOutput),
1240
+ ...deserialized,
1241
+ });
1242
+ return smithyClient.decorateServiceException(exception, body);
1243
+ };
1244
+ const de_RequestThrottledRes = async (parsedOutput, context) => {
1245
+ const body = parsedOutput.body;
1246
+ const deserialized = smithyClient._json(body);
1247
+ const exception = new RequestThrottled({
1248
+ $metadata: deserializeMetadata(parsedOutput),
1249
+ ...deserialized,
1250
+ });
1251
+ return smithyClient.decorateServiceException(exception, body);
1252
+ };
1253
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1254
+ const body = parsedOutput.body;
1255
+ const deserialized = smithyClient._json(body);
1256
+ const exception = new ResourceNotFoundException({
1257
+ $metadata: deserializeMetadata(parsedOutput),
1258
+ ...deserialized,
1259
+ });
1260
+ return smithyClient.decorateServiceException(exception, body);
1261
+ };
1262
+ const de_TooManyEntriesInBatchRequestRes = async (parsedOutput, context) => {
1263
+ const body = parsedOutput.body;
1264
+ const deserialized = smithyClient._json(body);
1265
+ const exception = new TooManyEntriesInBatchRequest({
1266
+ $metadata: deserializeMetadata(parsedOutput),
1267
+ ...deserialized,
1268
+ });
1269
+ return smithyClient.decorateServiceException(exception, body);
1270
+ };
1271
+ const de_UnsupportedOperationRes = async (parsedOutput, context) => {
1272
+ const body = parsedOutput.body;
1273
+ const deserialized = smithyClient._json(body);
1274
+ const exception = new UnsupportedOperation({
1275
+ $metadata: deserializeMetadata(parsedOutput),
1276
+ ...deserialized,
1277
+ });
1278
+ return smithyClient.decorateServiceException(exception, body);
1279
+ };
1280
+ const se_ActionNameList = (input, context) => {
1281
+ return input
1282
+ .filter((e) => e != null)
1283
+ .map((entry) => {
1284
+ return core$1._toStr(entry);
1285
+ });
1286
+ };
1287
+ const se_AddPermissionRequest = (input, context) => {
1288
+ return smithyClient.take(input, {
1289
+ AWSAccountIds: (_) => se_AWSAccountIdList(_),
1290
+ Actions: (_) => se_ActionNameList(_),
1291
+ Label: core$1._toStr,
1292
+ QueueUrl: core$1._toStr,
1293
+ });
1294
+ };
1295
+ const se_AttributeNameList = (input, context) => {
1296
+ return input
1297
+ .filter((e) => e != null)
1298
+ .map((entry) => {
1299
+ return core$1._toStr(entry);
1300
+ });
1301
+ };
1302
+ const se_AWSAccountIdList = (input, context) => {
1303
+ return input
1304
+ .filter((e) => e != null)
1305
+ .map((entry) => {
1306
+ return core$1._toStr(entry);
1307
+ });
1308
+ };
1309
+ const se_BinaryList = (input, context) => {
1310
+ return input
1311
+ .filter((e) => e != null)
1312
+ .map((entry) => {
1313
+ return context.base64Encoder(entry);
1314
+ });
1315
+ };
1316
+ const se_CancelMessageMoveTaskRequest = (input, context) => {
1317
+ return smithyClient.take(input, {
1318
+ TaskHandle: core$1._toStr,
1319
+ });
1320
+ };
1321
+ const se_ChangeMessageVisibilityBatchRequest = (input, context) => {
1322
+ return smithyClient.take(input, {
1323
+ Entries: (_) => se_ChangeMessageVisibilityBatchRequestEntryList(_),
1324
+ QueueUrl: core$1._toStr,
1325
+ });
1326
+ };
1327
+ const se_ChangeMessageVisibilityBatchRequestEntry = (input, context) => {
1328
+ return smithyClient.take(input, {
1329
+ Id: core$1._toStr,
1330
+ ReceiptHandle: core$1._toStr,
1331
+ VisibilityTimeout: core$1._toNum,
1332
+ });
1333
+ };
1334
+ const se_ChangeMessageVisibilityBatchRequestEntryList = (input, context) => {
1335
+ return input
1336
+ .filter((e) => e != null)
1337
+ .map((entry) => {
1338
+ return se_ChangeMessageVisibilityBatchRequestEntry(entry);
1339
+ });
1340
+ };
1341
+ const se_ChangeMessageVisibilityRequest = (input, context) => {
1342
+ return smithyClient.take(input, {
1343
+ QueueUrl: core$1._toStr,
1344
+ ReceiptHandle: core$1._toStr,
1345
+ VisibilityTimeout: core$1._toNum,
1346
+ });
1347
+ };
1348
+ const se_CreateQueueRequest = (input, context) => {
1349
+ return smithyClient.take(input, {
1350
+ Attributes: (_) => se_QueueAttributeMap(_),
1351
+ QueueName: core$1._toStr,
1352
+ tags: (_) => se_TagMap(_),
1353
+ });
1354
+ };
1355
+ const se_DeleteMessageBatchRequest = (input, context) => {
1356
+ return smithyClient.take(input, {
1357
+ Entries: (_) => se_DeleteMessageBatchRequestEntryList(_),
1358
+ QueueUrl: core$1._toStr,
1359
+ });
1360
+ };
1361
+ const se_DeleteMessageBatchRequestEntry = (input, context) => {
1362
+ return smithyClient.take(input, {
1363
+ Id: core$1._toStr,
1364
+ ReceiptHandle: core$1._toStr,
1365
+ });
1366
+ };
1367
+ const se_DeleteMessageBatchRequestEntryList = (input, context) => {
1368
+ return input
1369
+ .filter((e) => e != null)
1370
+ .map((entry) => {
1371
+ return se_DeleteMessageBatchRequestEntry(entry);
1372
+ });
1373
+ };
1374
+ const se_DeleteMessageRequest = (input, context) => {
1375
+ return smithyClient.take(input, {
1376
+ QueueUrl: core$1._toStr,
1377
+ ReceiptHandle: core$1._toStr,
1378
+ });
1379
+ };
1380
+ const se_DeleteQueueRequest = (input, context) => {
1381
+ return smithyClient.take(input, {
1382
+ QueueUrl: core$1._toStr,
1383
+ });
1384
+ };
1385
+ const se_GetQueueAttributesRequest = (input, context) => {
1386
+ return smithyClient.take(input, {
1387
+ AttributeNames: (_) => se_AttributeNameList(_),
1388
+ QueueUrl: core$1._toStr,
1389
+ });
1390
+ };
1391
+ const se_GetQueueUrlRequest = (input, context) => {
1392
+ return smithyClient.take(input, {
1393
+ QueueName: core$1._toStr,
1394
+ QueueOwnerAWSAccountId: core$1._toStr,
1395
+ });
1396
+ };
1397
+ const se_ListDeadLetterSourceQueuesRequest = (input, context) => {
1398
+ return smithyClient.take(input, {
1399
+ MaxResults: core$1._toNum,
1400
+ NextToken: core$1._toStr,
1401
+ QueueUrl: core$1._toStr,
1402
+ });
1403
+ };
1404
+ const se_ListMessageMoveTasksRequest = (input, context) => {
1405
+ return smithyClient.take(input, {
1406
+ MaxResults: core$1._toNum,
1407
+ SourceArn: core$1._toStr,
1408
+ });
1409
+ };
1410
+ const se_ListQueuesRequest = (input, context) => {
1411
+ return smithyClient.take(input, {
1412
+ MaxResults: core$1._toNum,
1413
+ NextToken: core$1._toStr,
1414
+ QueueNamePrefix: core$1._toStr,
1415
+ });
1416
+ };
1417
+ const se_ListQueueTagsRequest = (input, context) => {
1418
+ return smithyClient.take(input, {
1419
+ QueueUrl: core$1._toStr,
1420
+ });
1421
+ };
1422
+ const se_MessageAttributeNameList = (input, context) => {
1423
+ return input
1424
+ .filter((e) => e != null)
1425
+ .map((entry) => {
1426
+ return core$1._toStr(entry);
1427
+ });
1428
+ };
1429
+ const se_MessageAttributeValue = (input, context) => {
1430
+ return smithyClient.take(input, {
1431
+ BinaryListValues: (_) => se_BinaryList(_, context),
1432
+ BinaryValue: context.base64Encoder,
1433
+ DataType: core$1._toStr,
1434
+ StringListValues: (_) => se_StringList(_),
1435
+ StringValue: core$1._toStr,
1436
+ });
1437
+ };
1438
+ const se_MessageBodyAttributeMap = (input, context) => {
1439
+ return Object.entries(input).reduce((acc, [key, value]) => {
1440
+ if (value === null) {
1441
+ return acc;
1442
+ }
1443
+ acc[key] = se_MessageAttributeValue(value, context);
1444
+ return acc;
1445
+ }, {});
1446
+ };
1447
+ const se_MessageBodySystemAttributeMap = (input, context) => {
1448
+ return Object.entries(input).reduce((acc, [key, value]) => {
1449
+ if (value === null) {
1450
+ return acc;
1451
+ }
1452
+ acc[key] = se_MessageSystemAttributeValue(value, context);
1453
+ return acc;
1454
+ }, {});
1455
+ };
1456
+ const se_MessageSystemAttributeList = (input, context) => {
1457
+ return input
1458
+ .filter((e) => e != null)
1459
+ .map((entry) => {
1460
+ return core$1._toStr(entry);
1461
+ });
1462
+ };
1463
+ const se_MessageSystemAttributeValue = (input, context) => {
1464
+ return smithyClient.take(input, {
1465
+ BinaryListValues: (_) => se_BinaryList(_, context),
1466
+ BinaryValue: context.base64Encoder,
1467
+ DataType: core$1._toStr,
1468
+ StringListValues: (_) => se_StringList(_),
1469
+ StringValue: core$1._toStr,
1470
+ });
1471
+ };
1472
+ const se_PurgeQueueRequest = (input, context) => {
1473
+ return smithyClient.take(input, {
1474
+ QueueUrl: core$1._toStr,
1475
+ });
1476
+ };
1477
+ const se_QueueAttributeMap = (input, context) => {
1478
+ return Object.entries(input).reduce((acc, [key, value]) => {
1479
+ if (value === null) {
1480
+ return acc;
1481
+ }
1482
+ acc[key] = core$1._toStr(value);
1483
+ return acc;
1484
+ }, {});
1485
+ };
1486
+ const se_ReceiveMessageRequest = (input, context) => {
1487
+ return smithyClient.take(input, {
1488
+ AttributeNames: (_) => se_AttributeNameList(_),
1489
+ MaxNumberOfMessages: core$1._toNum,
1490
+ MessageAttributeNames: (_) => se_MessageAttributeNameList(_),
1491
+ MessageSystemAttributeNames: (_) => se_MessageSystemAttributeList(_),
1492
+ QueueUrl: core$1._toStr,
1493
+ ReceiveRequestAttemptId: core$1._toStr,
1494
+ VisibilityTimeout: core$1._toNum,
1495
+ WaitTimeSeconds: core$1._toNum,
1496
+ });
1497
+ };
1498
+ const se_RemovePermissionRequest = (input, context) => {
1499
+ return smithyClient.take(input, {
1500
+ Label: core$1._toStr,
1501
+ QueueUrl: core$1._toStr,
1502
+ });
1503
+ };
1504
+ const se_SendMessageBatchRequest = (input, context) => {
1505
+ return smithyClient.take(input, {
1506
+ Entries: (_) => se_SendMessageBatchRequestEntryList(_, context),
1507
+ QueueUrl: core$1._toStr,
1508
+ });
1509
+ };
1510
+ const se_SendMessageBatchRequestEntry = (input, context) => {
1511
+ return smithyClient.take(input, {
1512
+ DelaySeconds: core$1._toNum,
1513
+ Id: core$1._toStr,
1514
+ MessageAttributes: (_) => se_MessageBodyAttributeMap(_, context),
1515
+ MessageBody: core$1._toStr,
1516
+ MessageDeduplicationId: core$1._toStr,
1517
+ MessageGroupId: core$1._toStr,
1518
+ MessageSystemAttributes: (_) => se_MessageBodySystemAttributeMap(_, context),
1519
+ });
1520
+ };
1521
+ const se_SendMessageBatchRequestEntryList = (input, context) => {
1522
+ return input
1523
+ .filter((e) => e != null)
1524
+ .map((entry) => {
1525
+ return se_SendMessageBatchRequestEntry(entry, context);
1526
+ });
1527
+ };
1528
+ const se_SendMessageRequest = (input, context) => {
1529
+ return smithyClient.take(input, {
1530
+ DelaySeconds: core$1._toNum,
1531
+ MessageAttributes: (_) => se_MessageBodyAttributeMap(_, context),
1532
+ MessageBody: core$1._toStr,
1533
+ MessageDeduplicationId: core$1._toStr,
1534
+ MessageGroupId: core$1._toStr,
1535
+ MessageSystemAttributes: (_) => se_MessageBodySystemAttributeMap(_, context),
1536
+ QueueUrl: core$1._toStr,
1537
+ });
1538
+ };
1539
+ const se_SetQueueAttributesRequest = (input, context) => {
1540
+ return smithyClient.take(input, {
1541
+ Attributes: (_) => se_QueueAttributeMap(_),
1542
+ QueueUrl: core$1._toStr,
1543
+ });
1544
+ };
1545
+ const se_StartMessageMoveTaskRequest = (input, context) => {
1546
+ return smithyClient.take(input, {
1547
+ DestinationArn: core$1._toStr,
1548
+ MaxNumberOfMessagesPerSecond: core$1._toNum,
1549
+ SourceArn: core$1._toStr,
1550
+ });
1551
+ };
1552
+ const se_StringList = (input, context) => {
1553
+ return input
1554
+ .filter((e) => e != null)
1555
+ .map((entry) => {
1556
+ return core$1._toStr(entry);
1557
+ });
1558
+ };
1559
+ const se_TagKeyList = (input, context) => {
1560
+ return input
1561
+ .filter((e) => e != null)
1562
+ .map((entry) => {
1563
+ return core$1._toStr(entry);
1564
+ });
1565
+ };
1566
+ const se_TagMap = (input, context) => {
1567
+ return Object.entries(input).reduce((acc, [key, value]) => {
1568
+ if (value === null) {
1569
+ return acc;
1570
+ }
1571
+ acc[key] = core$1._toStr(value);
1572
+ return acc;
1573
+ }, {});
1574
+ };
1575
+ const se_TagQueueRequest = (input, context) => {
1576
+ return smithyClient.take(input, {
1577
+ QueueUrl: core$1._toStr,
1578
+ Tags: (_) => se_TagMap(_),
1579
+ });
1580
+ };
1581
+ const se_UntagQueueRequest = (input, context) => {
1582
+ return smithyClient.take(input, {
1583
+ QueueUrl: core$1._toStr,
1584
+ TagKeys: (_) => se_TagKeyList(_),
1585
+ });
1586
+ };
1587
+ const de_BinaryList = (output, context) => {
1588
+ const retVal = (output || [])
1589
+ .filter((e) => e != null)
1590
+ .map((entry) => {
1591
+ return context.base64Decoder(entry);
1592
+ });
1593
+ return retVal;
1594
+ };
1595
+ const de_Message = (output, context) => {
1596
+ return smithyClient.take(output, {
1597
+ Attributes: smithyClient._json,
1598
+ Body: smithyClient.expectString,
1599
+ MD5OfBody: smithyClient.expectString,
1600
+ MD5OfMessageAttributes: smithyClient.expectString,
1601
+ MessageAttributes: (_) => de_MessageBodyAttributeMap(_, context),
1602
+ MessageId: smithyClient.expectString,
1603
+ ReceiptHandle: smithyClient.expectString,
1604
+ });
1605
+ };
1606
+ const de_MessageAttributeValue = (output, context) => {
1607
+ return smithyClient.take(output, {
1608
+ BinaryListValues: (_) => de_BinaryList(_, context),
1609
+ BinaryValue: context.base64Decoder,
1610
+ DataType: smithyClient.expectString,
1611
+ StringListValues: smithyClient._json,
1612
+ StringValue: smithyClient.expectString,
1613
+ });
1614
+ };
1615
+ const de_MessageBodyAttributeMap = (output, context) => {
1616
+ return Object.entries(output).reduce((acc, [key, value]) => {
1617
+ if (value === null) {
1618
+ return acc;
1619
+ }
1620
+ acc[key] = de_MessageAttributeValue(value, context);
1621
+ return acc;
1622
+ }, {});
1623
+ };
1624
+ const de_MessageList = (output, context) => {
1625
+ const retVal = (output || [])
1626
+ .filter((e) => e != null)
1627
+ .map((entry) => {
1628
+ return de_Message(entry, context);
1629
+ });
1630
+ return retVal;
1631
+ };
1632
+ const de_ReceiveMessageResult = (output, context) => {
1633
+ return smithyClient.take(output, {
1634
+ Messages: (_) => de_MessageList(_, context),
1635
+ });
1636
+ };
1637
+ const deserializeMetadata = (output) => ({
1638
+ httpStatusCode: output.statusCode,
1639
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1640
+ extendedRequestId: output.headers["x-amz-id-2"],
1641
+ cfId: output.headers["x-amz-cf-id"],
1642
+ });
1643
+ const throwDefaultError = smithyClient.withBaseException(SQSServiceException);
1644
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1645
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1646
+ const contents = {
1647
+ protocol,
1648
+ hostname,
1649
+ port,
1650
+ method: "POST",
1651
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1652
+ headers,
1653
+ };
1654
+ if (body !== undefined) {
1655
+ contents.body = body;
1656
+ }
1657
+ return new protocolHttp.HttpRequest(contents);
1658
+ };
1659
+ function sharedHeaders(operation) {
1660
+ return {
1661
+ "content-type": "application/x-amz-json-1.0",
1662
+ "x-amz-target": `AmazonSQS.${operation}`,
1663
+ "x-amzn-query-mode": "true",
1664
+ };
1665
+ }
1666
+ const populateBodyWithQueryCompatibility = (parsedOutput, headers) => {
1667
+ const queryErrorHeader = headers["x-amzn-query-error"];
1668
+ if (parsedOutput.body !== undefined && queryErrorHeader != null) {
1669
+ const [Code, Type] = queryErrorHeader.split(";");
1670
+ const entries = Object.entries(parsedOutput.body);
1671
+ const Error = {
1672
+ Type,
1673
+ Code,
1674
+ };
1675
+ Object.assign(parsedOutput.body, Error);
1676
+ for (const [k, v] of entries) {
1677
+ Error[k] = v;
1678
+ }
1679
+ delete Error.__type;
1680
+ parsedOutput.body.Error = Error;
1681
+ }
2240
1682
  };
2241
1683
 
2242
- // src/commands/SendMessageCommand.ts
1684
+ class AddPermissionCommand extends smithyClient.Command
1685
+ .classBuilder()
1686
+ .ep(commonParams)
1687
+ .m(function (Command, cs, config, o) {
1688
+ return [
1689
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1690
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1691
+ ];
1692
+ })
1693
+ .s("AmazonSQS", "AddPermission", {})
1694
+ .n("SQSClient", "AddPermissionCommand")
1695
+ .f(void 0, void 0)
1696
+ .ser(se_AddPermissionCommand)
1697
+ .de(de_AddPermissionCommand)
1698
+ .build() {
1699
+ }
2243
1700
 
1701
+ class CancelMessageMoveTaskCommand extends smithyClient.Command
1702
+ .classBuilder()
1703
+ .ep(commonParams)
1704
+ .m(function (Command, cs, config, o) {
1705
+ return [
1706
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1707
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1708
+ ];
1709
+ })
1710
+ .s("AmazonSQS", "CancelMessageMoveTask", {})
1711
+ .n("SQSClient", "CancelMessageMoveTaskCommand")
1712
+ .f(void 0, void 0)
1713
+ .ser(se_CancelMessageMoveTaskCommand)
1714
+ .de(de_CancelMessageMoveTaskCommand)
1715
+ .build() {
1716
+ }
2244
1717
 
1718
+ class ChangeMessageVisibilityBatchCommand extends smithyClient.Command
1719
+ .classBuilder()
1720
+ .ep(commonParams)
1721
+ .m(function (Command, cs, config, o) {
1722
+ return [
1723
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1724
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1725
+ ];
1726
+ })
1727
+ .s("AmazonSQS", "ChangeMessageVisibilityBatch", {})
1728
+ .n("SQSClient", "ChangeMessageVisibilityBatchCommand")
1729
+ .f(void 0, void 0)
1730
+ .ser(se_ChangeMessageVisibilityBatchCommand)
1731
+ .de(de_ChangeMessageVisibilityBatchCommand)
1732
+ .build() {
1733
+ }
2245
1734
 
1735
+ class ChangeMessageVisibilityCommand extends smithyClient.Command
1736
+ .classBuilder()
1737
+ .ep(commonParams)
1738
+ .m(function (Command, cs, config, o) {
1739
+ return [
1740
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1741
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1742
+ ];
1743
+ })
1744
+ .s("AmazonSQS", "ChangeMessageVisibility", {})
1745
+ .n("SQSClient", "ChangeMessageVisibilityCommand")
1746
+ .f(void 0, void 0)
1747
+ .ser(se_ChangeMessageVisibilityCommand)
1748
+ .de(de_ChangeMessageVisibilityCommand)
1749
+ .build() {
1750
+ }
2246
1751
 
2247
- var SendMessageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2248
- return [
2249
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2250
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
2251
- (0, import_middleware_sdk_sqs.getSendMessagePlugin)(config)
2252
- ];
2253
- }).s("AmazonSQS", "SendMessage", {}).n("SQSClient", "SendMessageCommand").f(void 0, void 0).ser(se_SendMessageCommand).de(de_SendMessageCommand).build() {
2254
- static {
2255
- __name(this, "SendMessageCommand");
2256
- }
2257
- };
1752
+ class CreateQueueCommand extends smithyClient.Command
1753
+ .classBuilder()
1754
+ .ep(commonParams)
1755
+ .m(function (Command, cs, config, o) {
1756
+ return [
1757
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1758
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1759
+ ];
1760
+ })
1761
+ .s("AmazonSQS", "CreateQueue", {})
1762
+ .n("SQSClient", "CreateQueueCommand")
1763
+ .f(void 0, void 0)
1764
+ .ser(se_CreateQueueCommand)
1765
+ .de(de_CreateQueueCommand)
1766
+ .build() {
1767
+ }
2258
1768
 
2259
- // src/commands/SetQueueAttributesCommand.ts
1769
+ class DeleteMessageBatchCommand extends smithyClient.Command
1770
+ .classBuilder()
1771
+ .ep(commonParams)
1772
+ .m(function (Command, cs, config, o) {
1773
+ return [
1774
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1775
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1776
+ ];
1777
+ })
1778
+ .s("AmazonSQS", "DeleteMessageBatch", {})
1779
+ .n("SQSClient", "DeleteMessageBatchCommand")
1780
+ .f(void 0, void 0)
1781
+ .ser(se_DeleteMessageBatchCommand)
1782
+ .de(de_DeleteMessageBatchCommand)
1783
+ .build() {
1784
+ }
2260
1785
 
1786
+ class DeleteMessageCommand extends smithyClient.Command
1787
+ .classBuilder()
1788
+ .ep(commonParams)
1789
+ .m(function (Command, cs, config, o) {
1790
+ return [
1791
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1792
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1793
+ ];
1794
+ })
1795
+ .s("AmazonSQS", "DeleteMessage", {})
1796
+ .n("SQSClient", "DeleteMessageCommand")
1797
+ .f(void 0, void 0)
1798
+ .ser(se_DeleteMessageCommand)
1799
+ .de(de_DeleteMessageCommand)
1800
+ .build() {
1801
+ }
2261
1802
 
1803
+ class DeleteQueueCommand extends smithyClient.Command
1804
+ .classBuilder()
1805
+ .ep(commonParams)
1806
+ .m(function (Command, cs, config, o) {
1807
+ return [
1808
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1809
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1810
+ ];
1811
+ })
1812
+ .s("AmazonSQS", "DeleteQueue", {})
1813
+ .n("SQSClient", "DeleteQueueCommand")
1814
+ .f(void 0, void 0)
1815
+ .ser(se_DeleteQueueCommand)
1816
+ .de(de_DeleteQueueCommand)
1817
+ .build() {
1818
+ }
2262
1819
 
2263
- var SetQueueAttributesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2264
- return [
2265
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2266
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2267
- ];
2268
- }).s("AmazonSQS", "SetQueueAttributes", {}).n("SQSClient", "SetQueueAttributesCommand").f(void 0, void 0).ser(se_SetQueueAttributesCommand).de(de_SetQueueAttributesCommand).build() {
2269
- static {
2270
- __name(this, "SetQueueAttributesCommand");
2271
- }
2272
- };
1820
+ class GetQueueAttributesCommand extends smithyClient.Command
1821
+ .classBuilder()
1822
+ .ep(commonParams)
1823
+ .m(function (Command, cs, config, o) {
1824
+ return [
1825
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1826
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1827
+ ];
1828
+ })
1829
+ .s("AmazonSQS", "GetQueueAttributes", {})
1830
+ .n("SQSClient", "GetQueueAttributesCommand")
1831
+ .f(void 0, void 0)
1832
+ .ser(se_GetQueueAttributesCommand)
1833
+ .de(de_GetQueueAttributesCommand)
1834
+ .build() {
1835
+ }
2273
1836
 
2274
- // src/commands/StartMessageMoveTaskCommand.ts
1837
+ class GetQueueUrlCommand extends smithyClient.Command
1838
+ .classBuilder()
1839
+ .ep(commonParams)
1840
+ .m(function (Command, cs, config, o) {
1841
+ return [
1842
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1843
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1844
+ ];
1845
+ })
1846
+ .s("AmazonSQS", "GetQueueUrl", {})
1847
+ .n("SQSClient", "GetQueueUrlCommand")
1848
+ .f(void 0, void 0)
1849
+ .ser(se_GetQueueUrlCommand)
1850
+ .de(de_GetQueueUrlCommand)
1851
+ .build() {
1852
+ }
2275
1853
 
1854
+ class ListDeadLetterSourceQueuesCommand extends smithyClient.Command
1855
+ .classBuilder()
1856
+ .ep(commonParams)
1857
+ .m(function (Command, cs, config, o) {
1858
+ return [
1859
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1860
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1861
+ ];
1862
+ })
1863
+ .s("AmazonSQS", "ListDeadLetterSourceQueues", {})
1864
+ .n("SQSClient", "ListDeadLetterSourceQueuesCommand")
1865
+ .f(void 0, void 0)
1866
+ .ser(se_ListDeadLetterSourceQueuesCommand)
1867
+ .de(de_ListDeadLetterSourceQueuesCommand)
1868
+ .build() {
1869
+ }
2276
1870
 
1871
+ class ListMessageMoveTasksCommand extends smithyClient.Command
1872
+ .classBuilder()
1873
+ .ep(commonParams)
1874
+ .m(function (Command, cs, config, o) {
1875
+ return [
1876
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1877
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1878
+ ];
1879
+ })
1880
+ .s("AmazonSQS", "ListMessageMoveTasks", {})
1881
+ .n("SQSClient", "ListMessageMoveTasksCommand")
1882
+ .f(void 0, void 0)
1883
+ .ser(se_ListMessageMoveTasksCommand)
1884
+ .de(de_ListMessageMoveTasksCommand)
1885
+ .build() {
1886
+ }
2277
1887
 
2278
- var StartMessageMoveTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2279
- return [
2280
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2281
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2282
- ];
2283
- }).s("AmazonSQS", "StartMessageMoveTask", {}).n("SQSClient", "StartMessageMoveTaskCommand").f(void 0, void 0).ser(se_StartMessageMoveTaskCommand).de(de_StartMessageMoveTaskCommand).build() {
2284
- static {
2285
- __name(this, "StartMessageMoveTaskCommand");
2286
- }
2287
- };
1888
+ class ListQueuesCommand extends smithyClient.Command
1889
+ .classBuilder()
1890
+ .ep(commonParams)
1891
+ .m(function (Command, cs, config, o) {
1892
+ return [
1893
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1894
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1895
+ ];
1896
+ })
1897
+ .s("AmazonSQS", "ListQueues", {})
1898
+ .n("SQSClient", "ListQueuesCommand")
1899
+ .f(void 0, void 0)
1900
+ .ser(se_ListQueuesCommand)
1901
+ .de(de_ListQueuesCommand)
1902
+ .build() {
1903
+ }
2288
1904
 
2289
- // src/commands/TagQueueCommand.ts
1905
+ class ListQueueTagsCommand extends smithyClient.Command
1906
+ .classBuilder()
1907
+ .ep(commonParams)
1908
+ .m(function (Command, cs, config, o) {
1909
+ return [
1910
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1911
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1912
+ ];
1913
+ })
1914
+ .s("AmazonSQS", "ListQueueTags", {})
1915
+ .n("SQSClient", "ListQueueTagsCommand")
1916
+ .f(void 0, void 0)
1917
+ .ser(se_ListQueueTagsCommand)
1918
+ .de(de_ListQueueTagsCommand)
1919
+ .build() {
1920
+ }
2290
1921
 
1922
+ class PurgeQueueCommand extends smithyClient.Command
1923
+ .classBuilder()
1924
+ .ep(commonParams)
1925
+ .m(function (Command, cs, config, o) {
1926
+ return [
1927
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1928
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1929
+ ];
1930
+ })
1931
+ .s("AmazonSQS", "PurgeQueue", {})
1932
+ .n("SQSClient", "PurgeQueueCommand")
1933
+ .f(void 0, void 0)
1934
+ .ser(se_PurgeQueueCommand)
1935
+ .de(de_PurgeQueueCommand)
1936
+ .build() {
1937
+ }
2291
1938
 
1939
+ class ReceiveMessageCommand extends smithyClient.Command
1940
+ .classBuilder()
1941
+ .ep(commonParams)
1942
+ .m(function (Command, cs, config, o) {
1943
+ return [
1944
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1945
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1946
+ middlewareSdkSqs.getReceiveMessagePlugin(config),
1947
+ ];
1948
+ })
1949
+ .s("AmazonSQS", "ReceiveMessage", {})
1950
+ .n("SQSClient", "ReceiveMessageCommand")
1951
+ .f(void 0, void 0)
1952
+ .ser(se_ReceiveMessageCommand)
1953
+ .de(de_ReceiveMessageCommand)
1954
+ .build() {
1955
+ }
2292
1956
 
2293
- var TagQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2294
- return [
2295
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2296
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2297
- ];
2298
- }).s("AmazonSQS", "TagQueue", {}).n("SQSClient", "TagQueueCommand").f(void 0, void 0).ser(se_TagQueueCommand).de(de_TagQueueCommand).build() {
2299
- static {
2300
- __name(this, "TagQueueCommand");
2301
- }
2302
- };
1957
+ class RemovePermissionCommand extends smithyClient.Command
1958
+ .classBuilder()
1959
+ .ep(commonParams)
1960
+ .m(function (Command, cs, config, o) {
1961
+ return [
1962
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1963
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1964
+ ];
1965
+ })
1966
+ .s("AmazonSQS", "RemovePermission", {})
1967
+ .n("SQSClient", "RemovePermissionCommand")
1968
+ .f(void 0, void 0)
1969
+ .ser(se_RemovePermissionCommand)
1970
+ .de(de_RemovePermissionCommand)
1971
+ .build() {
1972
+ }
2303
1973
 
2304
- // src/commands/UntagQueueCommand.ts
1974
+ class SendMessageBatchCommand extends smithyClient.Command
1975
+ .classBuilder()
1976
+ .ep(commonParams)
1977
+ .m(function (Command, cs, config, o) {
1978
+ return [
1979
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1980
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1981
+ middlewareSdkSqs.getSendMessageBatchPlugin(config),
1982
+ ];
1983
+ })
1984
+ .s("AmazonSQS", "SendMessageBatch", {})
1985
+ .n("SQSClient", "SendMessageBatchCommand")
1986
+ .f(void 0, void 0)
1987
+ .ser(se_SendMessageBatchCommand)
1988
+ .de(de_SendMessageBatchCommand)
1989
+ .build() {
1990
+ }
2305
1991
 
1992
+ class SendMessageCommand extends smithyClient.Command
1993
+ .classBuilder()
1994
+ .ep(commonParams)
1995
+ .m(function (Command, cs, config, o) {
1996
+ return [
1997
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1998
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1999
+ middlewareSdkSqs.getSendMessagePlugin(config),
2000
+ ];
2001
+ })
2002
+ .s("AmazonSQS", "SendMessage", {})
2003
+ .n("SQSClient", "SendMessageCommand")
2004
+ .f(void 0, void 0)
2005
+ .ser(se_SendMessageCommand)
2006
+ .de(de_SendMessageCommand)
2007
+ .build() {
2008
+ }
2306
2009
 
2010
+ class SetQueueAttributesCommand extends smithyClient.Command
2011
+ .classBuilder()
2012
+ .ep(commonParams)
2013
+ .m(function (Command, cs, config, o) {
2014
+ return [
2015
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2016
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2017
+ ];
2018
+ })
2019
+ .s("AmazonSQS", "SetQueueAttributes", {})
2020
+ .n("SQSClient", "SetQueueAttributesCommand")
2021
+ .f(void 0, void 0)
2022
+ .ser(se_SetQueueAttributesCommand)
2023
+ .de(de_SetQueueAttributesCommand)
2024
+ .build() {
2025
+ }
2307
2026
 
2308
- var UntagQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2309
- return [
2310
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2311
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2312
- ];
2313
- }).s("AmazonSQS", "UntagQueue", {}).n("SQSClient", "UntagQueueCommand").f(void 0, void 0).ser(se_UntagQueueCommand).de(de_UntagQueueCommand).build() {
2314
- static {
2315
- __name(this, "UntagQueueCommand");
2316
- }
2317
- };
2027
+ class StartMessageMoveTaskCommand extends smithyClient.Command
2028
+ .classBuilder()
2029
+ .ep(commonParams)
2030
+ .m(function (Command, cs, config, o) {
2031
+ return [
2032
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2033
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2034
+ ];
2035
+ })
2036
+ .s("AmazonSQS", "StartMessageMoveTask", {})
2037
+ .n("SQSClient", "StartMessageMoveTaskCommand")
2038
+ .f(void 0, void 0)
2039
+ .ser(se_StartMessageMoveTaskCommand)
2040
+ .de(de_StartMessageMoveTaskCommand)
2041
+ .build() {
2042
+ }
2318
2043
 
2319
- // src/SQS.ts
2320
- var commands = {
2321
- AddPermissionCommand,
2322
- CancelMessageMoveTaskCommand,
2323
- ChangeMessageVisibilityCommand,
2324
- ChangeMessageVisibilityBatchCommand,
2325
- CreateQueueCommand,
2326
- DeleteMessageCommand,
2327
- DeleteMessageBatchCommand,
2328
- DeleteQueueCommand,
2329
- GetQueueAttributesCommand,
2330
- GetQueueUrlCommand,
2331
- ListDeadLetterSourceQueuesCommand,
2332
- ListMessageMoveTasksCommand,
2333
- ListQueuesCommand,
2334
- ListQueueTagsCommand,
2335
- PurgeQueueCommand,
2336
- ReceiveMessageCommand,
2337
- RemovePermissionCommand,
2338
- SendMessageCommand,
2339
- SendMessageBatchCommand,
2340
- SetQueueAttributesCommand,
2341
- StartMessageMoveTaskCommand,
2342
- TagQueueCommand,
2343
- UntagQueueCommand
2344
- };
2345
- var SQS = class extends SQSClient {
2346
- static {
2347
- __name(this, "SQS");
2348
- }
2349
- };
2350
- (0, import_smithy_client.createAggregatedClient)(commands, SQS);
2044
+ class TagQueueCommand extends smithyClient.Command
2045
+ .classBuilder()
2046
+ .ep(commonParams)
2047
+ .m(function (Command, cs, config, o) {
2048
+ return [
2049
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2050
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2051
+ ];
2052
+ })
2053
+ .s("AmazonSQS", "TagQueue", {})
2054
+ .n("SQSClient", "TagQueueCommand")
2055
+ .f(void 0, void 0)
2056
+ .ser(se_TagQueueCommand)
2057
+ .de(de_TagQueueCommand)
2058
+ .build() {
2059
+ }
2351
2060
 
2352
- // src/pagination/ListDeadLetterSourceQueuesPaginator.ts
2061
+ class UntagQueueCommand extends smithyClient.Command
2062
+ .classBuilder()
2063
+ .ep(commonParams)
2064
+ .m(function (Command, cs, config, o) {
2065
+ return [
2066
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2067
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2068
+ ];
2069
+ })
2070
+ .s("AmazonSQS", "UntagQueue", {})
2071
+ .n("SQSClient", "UntagQueueCommand")
2072
+ .f(void 0, void 0)
2073
+ .ser(se_UntagQueueCommand)
2074
+ .de(de_UntagQueueCommand)
2075
+ .build() {
2076
+ }
2353
2077
 
2354
- var paginateListDeadLetterSourceQueues = (0, import_core.createPaginator)(SQSClient, ListDeadLetterSourceQueuesCommand, "NextToken", "NextToken", "MaxResults");
2078
+ const commands = {
2079
+ AddPermissionCommand,
2080
+ CancelMessageMoveTaskCommand,
2081
+ ChangeMessageVisibilityCommand,
2082
+ ChangeMessageVisibilityBatchCommand,
2083
+ CreateQueueCommand,
2084
+ DeleteMessageCommand,
2085
+ DeleteMessageBatchCommand,
2086
+ DeleteQueueCommand,
2087
+ GetQueueAttributesCommand,
2088
+ GetQueueUrlCommand,
2089
+ ListDeadLetterSourceQueuesCommand,
2090
+ ListMessageMoveTasksCommand,
2091
+ ListQueuesCommand,
2092
+ ListQueueTagsCommand,
2093
+ PurgeQueueCommand,
2094
+ ReceiveMessageCommand,
2095
+ RemovePermissionCommand,
2096
+ SendMessageCommand,
2097
+ SendMessageBatchCommand,
2098
+ SetQueueAttributesCommand,
2099
+ StartMessageMoveTaskCommand,
2100
+ TagQueueCommand,
2101
+ UntagQueueCommand,
2102
+ };
2103
+ class SQS extends SQSClient {
2104
+ }
2105
+ smithyClient.createAggregatedClient(commands, SQS);
2355
2106
 
2356
- // src/pagination/ListQueuesPaginator.ts
2107
+ const paginateListDeadLetterSourceQueues = core.createPaginator(SQSClient, ListDeadLetterSourceQueuesCommand, "NextToken", "NextToken", "MaxResults");
2357
2108
 
2358
- var paginateListQueues = (0, import_core.createPaginator)(SQSClient, ListQueuesCommand, "NextToken", "NextToken", "MaxResults");
2359
- // Annotate the CommonJS export names for ESM import in node:
2109
+ const paginateListQueues = core.createPaginator(SQSClient, ListQueuesCommand, "NextToken", "NextToken", "MaxResults");
2360
2110
 
2361
- 0 && (module.exports = {
2362
- SQSServiceException,
2363
- __Client,
2364
- SQSClient,
2365
- SQS,
2366
- $Command,
2367
- AddPermissionCommand,
2368
- CancelMessageMoveTaskCommand,
2369
- ChangeMessageVisibilityBatchCommand,
2370
- ChangeMessageVisibilityCommand,
2371
- CreateQueueCommand,
2372
- DeleteMessageBatchCommand,
2373
- DeleteMessageCommand,
2374
- DeleteQueueCommand,
2375
- GetQueueAttributesCommand,
2376
- GetQueueUrlCommand,
2377
- ListDeadLetterSourceQueuesCommand,
2378
- ListMessageMoveTasksCommand,
2379
- ListQueueTagsCommand,
2380
- ListQueuesCommand,
2381
- PurgeQueueCommand,
2382
- ReceiveMessageCommand,
2383
- RemovePermissionCommand,
2384
- SendMessageBatchCommand,
2385
- SendMessageCommand,
2386
- SetQueueAttributesCommand,
2387
- StartMessageMoveTaskCommand,
2388
- TagQueueCommand,
2389
- UntagQueueCommand,
2390
- paginateListDeadLetterSourceQueues,
2391
- paginateListQueues,
2392
- InvalidAddress,
2393
- InvalidSecurity,
2394
- OverLimit,
2395
- QueueDoesNotExist,
2396
- RequestThrottled,
2397
- UnsupportedOperation,
2398
- ResourceNotFoundException,
2399
- MessageNotInflight,
2400
- ReceiptHandleIsInvalid,
2401
- BatchEntryIdsNotDistinct,
2402
- EmptyBatchRequest,
2403
- InvalidBatchEntryId,
2404
- TooManyEntriesInBatchRequest,
2405
- QueueAttributeName,
2406
- InvalidAttributeName,
2407
- InvalidAttributeValue,
2408
- QueueDeletedRecently,
2409
- QueueNameExists,
2410
- InvalidIdFormat,
2411
- PurgeQueueInProgress,
2412
- KmsAccessDenied,
2413
- KmsDisabled,
2414
- KmsInvalidKeyUsage,
2415
- KmsInvalidState,
2416
- KmsNotFound,
2417
- KmsOptInRequired,
2418
- KmsThrottled,
2419
- MessageSystemAttributeName,
2420
- InvalidMessageContents,
2421
- MessageSystemAttributeNameForSends,
2422
- BatchRequestTooLong
2111
+ Object.defineProperty(exports, "$Command", {
2112
+ enumerable: true,
2113
+ get: function () { return smithyClient.Command; }
2423
2114
  });
2424
-
2115
+ Object.defineProperty(exports, "__Client", {
2116
+ enumerable: true,
2117
+ get: function () { return smithyClient.Client; }
2118
+ });
2119
+ exports.AddPermissionCommand = AddPermissionCommand;
2120
+ exports.BatchEntryIdsNotDistinct = BatchEntryIdsNotDistinct;
2121
+ exports.BatchRequestTooLong = BatchRequestTooLong;
2122
+ exports.CancelMessageMoveTaskCommand = CancelMessageMoveTaskCommand;
2123
+ exports.ChangeMessageVisibilityBatchCommand = ChangeMessageVisibilityBatchCommand;
2124
+ exports.ChangeMessageVisibilityCommand = ChangeMessageVisibilityCommand;
2125
+ exports.CreateQueueCommand = CreateQueueCommand;
2126
+ exports.DeleteMessageBatchCommand = DeleteMessageBatchCommand;
2127
+ exports.DeleteMessageCommand = DeleteMessageCommand;
2128
+ exports.DeleteQueueCommand = DeleteQueueCommand;
2129
+ exports.EmptyBatchRequest = EmptyBatchRequest;
2130
+ exports.GetQueueAttributesCommand = GetQueueAttributesCommand;
2131
+ exports.GetQueueUrlCommand = GetQueueUrlCommand;
2132
+ exports.InvalidAddress = InvalidAddress;
2133
+ exports.InvalidAttributeName = InvalidAttributeName;
2134
+ exports.InvalidAttributeValue = InvalidAttributeValue;
2135
+ exports.InvalidBatchEntryId = InvalidBatchEntryId;
2136
+ exports.InvalidIdFormat = InvalidIdFormat;
2137
+ exports.InvalidMessageContents = InvalidMessageContents;
2138
+ exports.InvalidSecurity = InvalidSecurity;
2139
+ exports.KmsAccessDenied = KmsAccessDenied;
2140
+ exports.KmsDisabled = KmsDisabled;
2141
+ exports.KmsInvalidKeyUsage = KmsInvalidKeyUsage;
2142
+ exports.KmsInvalidState = KmsInvalidState;
2143
+ exports.KmsNotFound = KmsNotFound;
2144
+ exports.KmsOptInRequired = KmsOptInRequired;
2145
+ exports.KmsThrottled = KmsThrottled;
2146
+ exports.ListDeadLetterSourceQueuesCommand = ListDeadLetterSourceQueuesCommand;
2147
+ exports.ListMessageMoveTasksCommand = ListMessageMoveTasksCommand;
2148
+ exports.ListQueueTagsCommand = ListQueueTagsCommand;
2149
+ exports.ListQueuesCommand = ListQueuesCommand;
2150
+ exports.MessageNotInflight = MessageNotInflight;
2151
+ exports.MessageSystemAttributeName = MessageSystemAttributeName;
2152
+ exports.MessageSystemAttributeNameForSends = MessageSystemAttributeNameForSends;
2153
+ exports.OverLimit = OverLimit;
2154
+ exports.PurgeQueueCommand = PurgeQueueCommand;
2155
+ exports.PurgeQueueInProgress = PurgeQueueInProgress;
2156
+ exports.QueueAttributeName = QueueAttributeName;
2157
+ exports.QueueDeletedRecently = QueueDeletedRecently;
2158
+ exports.QueueDoesNotExist = QueueDoesNotExist;
2159
+ exports.QueueNameExists = QueueNameExists;
2160
+ exports.ReceiptHandleIsInvalid = ReceiptHandleIsInvalid;
2161
+ exports.ReceiveMessageCommand = ReceiveMessageCommand;
2162
+ exports.RemovePermissionCommand = RemovePermissionCommand;
2163
+ exports.RequestThrottled = RequestThrottled;
2164
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2165
+ exports.SQS = SQS;
2166
+ exports.SQSClient = SQSClient;
2167
+ exports.SQSServiceException = SQSServiceException;
2168
+ exports.SendMessageBatchCommand = SendMessageBatchCommand;
2169
+ exports.SendMessageCommand = SendMessageCommand;
2170
+ exports.SetQueueAttributesCommand = SetQueueAttributesCommand;
2171
+ exports.StartMessageMoveTaskCommand = StartMessageMoveTaskCommand;
2172
+ exports.TagQueueCommand = TagQueueCommand;
2173
+ exports.TooManyEntriesInBatchRequest = TooManyEntriesInBatchRequest;
2174
+ exports.UnsupportedOperation = UnsupportedOperation;
2175
+ exports.UntagQueueCommand = UntagQueueCommand;
2176
+ exports.paginateListDeadLetterSourceQueues = paginateListDeadLetterSourceQueues;
2177
+ exports.paginateListQueues = paginateListQueues;