@aws-sdk/client-sqs 3.1067.0 → 3.1069.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.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +118 -138
- package/dist-cjs/models/SQSServiceException.js +4 -8
- package/dist-cjs/models/errors.js +57 -88
- package/dist-cjs/runtimeConfig.browser.js +24 -28
- package/dist-cjs/runtimeConfig.js +31 -35
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +222 -150
- package/package.json +15 -15
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultSQSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultSQSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultSQSHttpAuthSchemeParametersProvider = defaultSQSHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultSQSHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultSQSHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -49,4 +46,4 @@ const nodes = new Int32Array([
|
|
|
49
46
|
3, r + 1, 14,
|
|
50
47
|
4, r + 2, r + 3,
|
|
51
48
|
]);
|
|
52
|
-
exports.bdd =
|
|
49
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getLongPollPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { resolveQueueUrlConfig, getQueueUrlPlugin, getReceiveMessagePlugin, getSendMessageBatchPlugin, getSendMessagePlugin } = require("@aws-sdk/middleware-sdk-sqs");
|
|
4
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
5
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
6
|
+
exports.$Command = Command;
|
|
7
|
+
exports.__Client = Client;
|
|
8
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
9
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
10
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
11
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
12
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
13
|
+
const { resolveHttpAuthSchemeConfig, defaultSQSHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
14
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
15
|
+
const { AddPermission$, CancelMessageMoveTask$, ChangeMessageVisibilityBatch$, ChangeMessageVisibility$, CreateQueue$, DeleteMessageBatch$, DeleteMessage$, DeleteQueue$, GetQueueAttributes$, GetQueueUrl$, ListDeadLetterSourceQueues$, ListMessageMoveTasks$, ListQueues$, ListQueueTags$, PurgeQueue$, ReceiveMessage$, RemovePermission$, SendMessageBatch$, SendMessage$, SetQueueAttributes$, StartMessageMoveTask$, TagQueue$, UntagQueue$ } = require("./schemas/schemas_0");
|
|
16
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
17
|
+
__exportStar(require("./models/errors"), exports);
|
|
18
|
+
const { SQSServiceException } = require("./models/SQSServiceException");
|
|
19
|
+
exports.SQSServiceException = SQSServiceException;
|
|
17
20
|
|
|
18
21
|
const resolveClientEndpointParameters = (options) => {
|
|
19
22
|
return Object.assign(options, {
|
|
@@ -69,337 +72,337 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
-
const extensionConfiguration = Object.assign(
|
|
75
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
76
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
-
return Object.assign(runtimeConfig,
|
|
77
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
78
|
};
|
|
76
79
|
|
|
77
|
-
class SQSClient extends
|
|
80
|
+
class SQSClient extends Client {
|
|
78
81
|
config;
|
|
79
82
|
constructor(...[configuration]) {
|
|
80
|
-
const _config_0 =
|
|
83
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
81
84
|
super(_config_0);
|
|
82
85
|
this.initConfig = _config_0;
|
|
83
86
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
-
const _config_2 =
|
|
85
|
-
const _config_3 =
|
|
86
|
-
const _config_4 =
|
|
87
|
-
const _config_5 =
|
|
88
|
-
const _config_6 =
|
|
89
|
-
const _config_7 =
|
|
90
|
-
const _config_8 =
|
|
87
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = resolveQueueUrlConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
91
94
|
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
92
95
|
this.config = _config_9;
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
101
|
-
this.middlewareStack.use(
|
|
102
|
-
httpAuthSchemeParametersProvider:
|
|
103
|
-
identityProviderConfigProvider: async (config) => new
|
|
96
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(getQueueUrlPlugin(this.config));
|
|
104
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
105
|
+
httpAuthSchemeParametersProvider: defaultSQSHttpAuthSchemeParametersProvider,
|
|
106
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
104
107
|
"aws.auth#sigv4": config.credentials,
|
|
105
108
|
}),
|
|
106
109
|
}));
|
|
107
|
-
this.middlewareStack.use(
|
|
110
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
108
111
|
}
|
|
109
112
|
destroy() {
|
|
110
113
|
super.destroy();
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
116
|
|
|
114
|
-
class AddPermissionCommand extends
|
|
117
|
+
class AddPermissionCommand extends Command
|
|
115
118
|
.classBuilder()
|
|
116
119
|
.ep(commonParams)
|
|
117
120
|
.m(function (Command, cs, config, o) {
|
|
118
|
-
return [
|
|
121
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
119
122
|
})
|
|
120
123
|
.s("AmazonSQS", "AddPermission", {})
|
|
121
124
|
.n("SQSClient", "AddPermissionCommand")
|
|
122
|
-
.sc(
|
|
125
|
+
.sc(AddPermission$)
|
|
123
126
|
.build() {
|
|
124
127
|
}
|
|
125
128
|
|
|
126
|
-
class CancelMessageMoveTaskCommand extends
|
|
129
|
+
class CancelMessageMoveTaskCommand extends Command
|
|
127
130
|
.classBuilder()
|
|
128
131
|
.ep(commonParams)
|
|
129
132
|
.m(function (Command, cs, config, o) {
|
|
130
|
-
return [
|
|
133
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
131
134
|
})
|
|
132
135
|
.s("AmazonSQS", "CancelMessageMoveTask", {})
|
|
133
136
|
.n("SQSClient", "CancelMessageMoveTaskCommand")
|
|
134
|
-
.sc(
|
|
137
|
+
.sc(CancelMessageMoveTask$)
|
|
135
138
|
.build() {
|
|
136
139
|
}
|
|
137
140
|
|
|
138
|
-
class ChangeMessageVisibilityBatchCommand extends
|
|
141
|
+
class ChangeMessageVisibilityBatchCommand extends Command
|
|
139
142
|
.classBuilder()
|
|
140
143
|
.ep(commonParams)
|
|
141
144
|
.m(function (Command, cs, config, o) {
|
|
142
|
-
return [
|
|
145
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
143
146
|
})
|
|
144
147
|
.s("AmazonSQS", "ChangeMessageVisibilityBatch", {})
|
|
145
148
|
.n("SQSClient", "ChangeMessageVisibilityBatchCommand")
|
|
146
|
-
.sc(
|
|
149
|
+
.sc(ChangeMessageVisibilityBatch$)
|
|
147
150
|
.build() {
|
|
148
151
|
}
|
|
149
152
|
|
|
150
|
-
class ChangeMessageVisibilityCommand extends
|
|
153
|
+
class ChangeMessageVisibilityCommand extends Command
|
|
151
154
|
.classBuilder()
|
|
152
155
|
.ep(commonParams)
|
|
153
156
|
.m(function (Command, cs, config, o) {
|
|
154
|
-
return [
|
|
157
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
155
158
|
})
|
|
156
159
|
.s("AmazonSQS", "ChangeMessageVisibility", {})
|
|
157
160
|
.n("SQSClient", "ChangeMessageVisibilityCommand")
|
|
158
|
-
.sc(
|
|
161
|
+
.sc(ChangeMessageVisibility$)
|
|
159
162
|
.build() {
|
|
160
163
|
}
|
|
161
164
|
|
|
162
|
-
class CreateQueueCommand extends
|
|
165
|
+
class CreateQueueCommand extends Command
|
|
163
166
|
.classBuilder()
|
|
164
167
|
.ep(commonParams)
|
|
165
168
|
.m(function (Command, cs, config, o) {
|
|
166
|
-
return [
|
|
169
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
167
170
|
})
|
|
168
171
|
.s("AmazonSQS", "CreateQueue", {})
|
|
169
172
|
.n("SQSClient", "CreateQueueCommand")
|
|
170
|
-
.sc(
|
|
173
|
+
.sc(CreateQueue$)
|
|
171
174
|
.build() {
|
|
172
175
|
}
|
|
173
176
|
|
|
174
|
-
class DeleteMessageBatchCommand extends
|
|
177
|
+
class DeleteMessageBatchCommand extends Command
|
|
175
178
|
.classBuilder()
|
|
176
179
|
.ep(commonParams)
|
|
177
180
|
.m(function (Command, cs, config, o) {
|
|
178
|
-
return [
|
|
181
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
179
182
|
})
|
|
180
183
|
.s("AmazonSQS", "DeleteMessageBatch", {})
|
|
181
184
|
.n("SQSClient", "DeleteMessageBatchCommand")
|
|
182
|
-
.sc(
|
|
185
|
+
.sc(DeleteMessageBatch$)
|
|
183
186
|
.build() {
|
|
184
187
|
}
|
|
185
188
|
|
|
186
|
-
class DeleteMessageCommand extends
|
|
189
|
+
class DeleteMessageCommand extends Command
|
|
187
190
|
.classBuilder()
|
|
188
191
|
.ep(commonParams)
|
|
189
192
|
.m(function (Command, cs, config, o) {
|
|
190
|
-
return [
|
|
193
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
191
194
|
})
|
|
192
195
|
.s("AmazonSQS", "DeleteMessage", {})
|
|
193
196
|
.n("SQSClient", "DeleteMessageCommand")
|
|
194
|
-
.sc(
|
|
197
|
+
.sc(DeleteMessage$)
|
|
195
198
|
.build() {
|
|
196
199
|
}
|
|
197
200
|
|
|
198
|
-
class DeleteQueueCommand extends
|
|
201
|
+
class DeleteQueueCommand extends Command
|
|
199
202
|
.classBuilder()
|
|
200
203
|
.ep(commonParams)
|
|
201
204
|
.m(function (Command, cs, config, o) {
|
|
202
|
-
return [
|
|
205
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
203
206
|
})
|
|
204
207
|
.s("AmazonSQS", "DeleteQueue", {})
|
|
205
208
|
.n("SQSClient", "DeleteQueueCommand")
|
|
206
|
-
.sc(
|
|
209
|
+
.sc(DeleteQueue$)
|
|
207
210
|
.build() {
|
|
208
211
|
}
|
|
209
212
|
|
|
210
|
-
class GetQueueAttributesCommand extends
|
|
213
|
+
class GetQueueAttributesCommand extends Command
|
|
211
214
|
.classBuilder()
|
|
212
215
|
.ep(commonParams)
|
|
213
216
|
.m(function (Command, cs, config, o) {
|
|
214
|
-
return [
|
|
217
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
215
218
|
})
|
|
216
219
|
.s("AmazonSQS", "GetQueueAttributes", {})
|
|
217
220
|
.n("SQSClient", "GetQueueAttributesCommand")
|
|
218
|
-
.sc(
|
|
221
|
+
.sc(GetQueueAttributes$)
|
|
219
222
|
.build() {
|
|
220
223
|
}
|
|
221
224
|
|
|
222
|
-
class GetQueueUrlCommand extends
|
|
225
|
+
class GetQueueUrlCommand extends Command
|
|
223
226
|
.classBuilder()
|
|
224
227
|
.ep(commonParams)
|
|
225
228
|
.m(function (Command, cs, config, o) {
|
|
226
|
-
return [
|
|
229
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
227
230
|
})
|
|
228
231
|
.s("AmazonSQS", "GetQueueUrl", {})
|
|
229
232
|
.n("SQSClient", "GetQueueUrlCommand")
|
|
230
|
-
.sc(
|
|
233
|
+
.sc(GetQueueUrl$)
|
|
231
234
|
.build() {
|
|
232
235
|
}
|
|
233
236
|
|
|
234
|
-
class ListDeadLetterSourceQueuesCommand extends
|
|
237
|
+
class ListDeadLetterSourceQueuesCommand extends Command
|
|
235
238
|
.classBuilder()
|
|
236
239
|
.ep(commonParams)
|
|
237
240
|
.m(function (Command, cs, config, o) {
|
|
238
|
-
return [
|
|
241
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
239
242
|
})
|
|
240
243
|
.s("AmazonSQS", "ListDeadLetterSourceQueues", {})
|
|
241
244
|
.n("SQSClient", "ListDeadLetterSourceQueuesCommand")
|
|
242
|
-
.sc(
|
|
245
|
+
.sc(ListDeadLetterSourceQueues$)
|
|
243
246
|
.build() {
|
|
244
247
|
}
|
|
245
248
|
|
|
246
|
-
class ListMessageMoveTasksCommand extends
|
|
249
|
+
class ListMessageMoveTasksCommand extends Command
|
|
247
250
|
.classBuilder()
|
|
248
251
|
.ep(commonParams)
|
|
249
252
|
.m(function (Command, cs, config, o) {
|
|
250
|
-
return [
|
|
253
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
251
254
|
})
|
|
252
255
|
.s("AmazonSQS", "ListMessageMoveTasks", {})
|
|
253
256
|
.n("SQSClient", "ListMessageMoveTasksCommand")
|
|
254
|
-
.sc(
|
|
257
|
+
.sc(ListMessageMoveTasks$)
|
|
255
258
|
.build() {
|
|
256
259
|
}
|
|
257
260
|
|
|
258
|
-
class ListQueuesCommand extends
|
|
261
|
+
class ListQueuesCommand extends Command
|
|
259
262
|
.classBuilder()
|
|
260
263
|
.ep(commonParams)
|
|
261
264
|
.m(function (Command, cs, config, o) {
|
|
262
|
-
return [
|
|
265
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
263
266
|
})
|
|
264
267
|
.s("AmazonSQS", "ListQueues", {})
|
|
265
268
|
.n("SQSClient", "ListQueuesCommand")
|
|
266
|
-
.sc(
|
|
269
|
+
.sc(ListQueues$)
|
|
267
270
|
.build() {
|
|
268
271
|
}
|
|
269
272
|
|
|
270
|
-
class ListQueueTagsCommand extends
|
|
273
|
+
class ListQueueTagsCommand extends Command
|
|
271
274
|
.classBuilder()
|
|
272
275
|
.ep(commonParams)
|
|
273
276
|
.m(function (Command, cs, config, o) {
|
|
274
|
-
return [
|
|
277
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
275
278
|
})
|
|
276
279
|
.s("AmazonSQS", "ListQueueTags", {})
|
|
277
280
|
.n("SQSClient", "ListQueueTagsCommand")
|
|
278
|
-
.sc(
|
|
281
|
+
.sc(ListQueueTags$)
|
|
279
282
|
.build() {
|
|
280
283
|
}
|
|
281
284
|
|
|
282
|
-
class PurgeQueueCommand extends
|
|
285
|
+
class PurgeQueueCommand extends Command
|
|
283
286
|
.classBuilder()
|
|
284
287
|
.ep(commonParams)
|
|
285
288
|
.m(function (Command, cs, config, o) {
|
|
286
|
-
return [
|
|
289
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
287
290
|
})
|
|
288
291
|
.s("AmazonSQS", "PurgeQueue", {})
|
|
289
292
|
.n("SQSClient", "PurgeQueueCommand")
|
|
290
|
-
.sc(
|
|
293
|
+
.sc(PurgeQueue$)
|
|
291
294
|
.build() {
|
|
292
295
|
}
|
|
293
296
|
|
|
294
|
-
class ReceiveMessageCommand extends
|
|
297
|
+
class ReceiveMessageCommand extends Command
|
|
295
298
|
.classBuilder()
|
|
296
299
|
.ep(commonParams)
|
|
297
300
|
.m(function (Command, cs, config, o) {
|
|
298
301
|
return [
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
303
|
+
getReceiveMessagePlugin(config),
|
|
304
|
+
getLongPollPlugin(config),
|
|
302
305
|
];
|
|
303
306
|
})
|
|
304
307
|
.s("AmazonSQS", "ReceiveMessage", {})
|
|
305
308
|
.n("SQSClient", "ReceiveMessageCommand")
|
|
306
|
-
.sc(
|
|
309
|
+
.sc(ReceiveMessage$)
|
|
307
310
|
.build() {
|
|
308
311
|
}
|
|
309
312
|
|
|
310
|
-
class RemovePermissionCommand extends
|
|
313
|
+
class RemovePermissionCommand extends Command
|
|
311
314
|
.classBuilder()
|
|
312
315
|
.ep(commonParams)
|
|
313
316
|
.m(function (Command, cs, config, o) {
|
|
314
|
-
return [
|
|
317
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
315
318
|
})
|
|
316
319
|
.s("AmazonSQS", "RemovePermission", {})
|
|
317
320
|
.n("SQSClient", "RemovePermissionCommand")
|
|
318
|
-
.sc(
|
|
321
|
+
.sc(RemovePermission$)
|
|
319
322
|
.build() {
|
|
320
323
|
}
|
|
321
324
|
|
|
322
|
-
class SendMessageBatchCommand extends
|
|
325
|
+
class SendMessageBatchCommand extends Command
|
|
323
326
|
.classBuilder()
|
|
324
327
|
.ep(commonParams)
|
|
325
328
|
.m(function (Command, cs, config, o) {
|
|
326
329
|
return [
|
|
327
|
-
|
|
328
|
-
|
|
330
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
331
|
+
getSendMessageBatchPlugin(config),
|
|
329
332
|
];
|
|
330
333
|
})
|
|
331
334
|
.s("AmazonSQS", "SendMessageBatch", {})
|
|
332
335
|
.n("SQSClient", "SendMessageBatchCommand")
|
|
333
|
-
.sc(
|
|
336
|
+
.sc(SendMessageBatch$)
|
|
334
337
|
.build() {
|
|
335
338
|
}
|
|
336
339
|
|
|
337
|
-
class SendMessageCommand extends
|
|
340
|
+
class SendMessageCommand extends Command
|
|
338
341
|
.classBuilder()
|
|
339
342
|
.ep(commonParams)
|
|
340
343
|
.m(function (Command, cs, config, o) {
|
|
341
344
|
return [
|
|
342
|
-
|
|
343
|
-
|
|
345
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
346
|
+
getSendMessagePlugin(config),
|
|
344
347
|
];
|
|
345
348
|
})
|
|
346
349
|
.s("AmazonSQS", "SendMessage", {})
|
|
347
350
|
.n("SQSClient", "SendMessageCommand")
|
|
348
|
-
.sc(
|
|
351
|
+
.sc(SendMessage$)
|
|
349
352
|
.build() {
|
|
350
353
|
}
|
|
351
354
|
|
|
352
|
-
class SetQueueAttributesCommand extends
|
|
355
|
+
class SetQueueAttributesCommand extends Command
|
|
353
356
|
.classBuilder()
|
|
354
357
|
.ep(commonParams)
|
|
355
358
|
.m(function (Command, cs, config, o) {
|
|
356
|
-
return [
|
|
359
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
357
360
|
})
|
|
358
361
|
.s("AmazonSQS", "SetQueueAttributes", {})
|
|
359
362
|
.n("SQSClient", "SetQueueAttributesCommand")
|
|
360
|
-
.sc(
|
|
363
|
+
.sc(SetQueueAttributes$)
|
|
361
364
|
.build() {
|
|
362
365
|
}
|
|
363
366
|
|
|
364
|
-
class StartMessageMoveTaskCommand extends
|
|
367
|
+
class StartMessageMoveTaskCommand extends Command
|
|
365
368
|
.classBuilder()
|
|
366
369
|
.ep(commonParams)
|
|
367
370
|
.m(function (Command, cs, config, o) {
|
|
368
|
-
return [
|
|
371
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
369
372
|
})
|
|
370
373
|
.s("AmazonSQS", "StartMessageMoveTask", {})
|
|
371
374
|
.n("SQSClient", "StartMessageMoveTaskCommand")
|
|
372
|
-
.sc(
|
|
375
|
+
.sc(StartMessageMoveTask$)
|
|
373
376
|
.build() {
|
|
374
377
|
}
|
|
375
378
|
|
|
376
|
-
class TagQueueCommand extends
|
|
379
|
+
class TagQueueCommand extends Command
|
|
377
380
|
.classBuilder()
|
|
378
381
|
.ep(commonParams)
|
|
379
382
|
.m(function (Command, cs, config, o) {
|
|
380
|
-
return [
|
|
383
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
381
384
|
})
|
|
382
385
|
.s("AmazonSQS", "TagQueue", {})
|
|
383
386
|
.n("SQSClient", "TagQueueCommand")
|
|
384
|
-
.sc(
|
|
387
|
+
.sc(TagQueue$)
|
|
385
388
|
.build() {
|
|
386
389
|
}
|
|
387
390
|
|
|
388
|
-
class UntagQueueCommand extends
|
|
391
|
+
class UntagQueueCommand extends Command
|
|
389
392
|
.classBuilder()
|
|
390
393
|
.ep(commonParams)
|
|
391
394
|
.m(function (Command, cs, config, o) {
|
|
392
|
-
return [
|
|
395
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
393
396
|
})
|
|
394
397
|
.s("AmazonSQS", "UntagQueue", {})
|
|
395
398
|
.n("SQSClient", "UntagQueueCommand")
|
|
396
|
-
.sc(
|
|
399
|
+
.sc(UntagQueue$)
|
|
397
400
|
.build() {
|
|
398
401
|
}
|
|
399
402
|
|
|
400
|
-
const paginateListDeadLetterSourceQueues =
|
|
403
|
+
const paginateListDeadLetterSourceQueues = createPaginator(SQSClient, ListDeadLetterSourceQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
401
404
|
|
|
402
|
-
const paginateListQueues =
|
|
405
|
+
const paginateListQueues = createPaginator(SQSClient, ListQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
403
406
|
|
|
404
407
|
const commands = {
|
|
405
408
|
AddPermissionCommand,
|
|
@@ -432,7 +435,7 @@ const paginators = {
|
|
|
432
435
|
};
|
|
433
436
|
class SQS extends SQSClient {
|
|
434
437
|
}
|
|
435
|
-
|
|
438
|
+
createAggregatedClient(commands, SQS, { paginators });
|
|
436
439
|
|
|
437
440
|
const QueueAttributeName = {
|
|
438
441
|
All: "All",
|
|
@@ -474,9 +477,6 @@ const MessageSystemAttributeNameForSends = {
|
|
|
474
477
|
AWSTraceHeader: "AWSTraceHeader",
|
|
475
478
|
};
|
|
476
479
|
|
|
477
|
-
exports.$Command = client.Command;
|
|
478
|
-
exports.__Client = client.Client;
|
|
479
|
-
exports.SQSServiceException = SQSServiceException.SQSServiceException;
|
|
480
480
|
exports.AddPermissionCommand = AddPermissionCommand;
|
|
481
481
|
exports.CancelMessageMoveTaskCommand = CancelMessageMoveTaskCommand;
|
|
482
482
|
exports.ChangeMessageVisibilityBatchCommand = ChangeMessageVisibilityBatchCommand;
|
|
@@ -507,23 +507,3 @@ exports.TagQueueCommand = TagQueueCommand;
|
|
|
507
507
|
exports.UntagQueueCommand = UntagQueueCommand;
|
|
508
508
|
exports.paginateListDeadLetterSourceQueues = paginateListDeadLetterSourceQueues;
|
|
509
509
|
exports.paginateListQueues = paginateListQueues;
|
|
510
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
511
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
512
|
-
Object.defineProperty(exports, '__proto__', {
|
|
513
|
-
enumerable: true,
|
|
514
|
-
value: schemas_0['__proto__']
|
|
515
|
-
});
|
|
516
|
-
|
|
517
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
518
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
519
|
-
});
|
|
520
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
521
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
522
|
-
Object.defineProperty(exports, '__proto__', {
|
|
523
|
-
enumerable: true,
|
|
524
|
-
value: errors['__proto__']
|
|
525
|
-
});
|
|
526
|
-
|
|
527
|
-
Object.keys(errors).forEach(function (k) {
|
|
528
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
529
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.SQSServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class SQSServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.SQSServiceException = class SQSServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, SQSServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.SQSServiceException = SQSServiceException;
|
|
8
|
+
};
|