@aws-sdk/client-sqs 3.95.0 → 3.105.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-sqs
20
+
21
+
22
+
23
+
24
+
25
+ # [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-sqs
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-sqs
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
7
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
8
9
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
10
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
11
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
@@ -25,6 +26,7 @@ class SQSClient extends smithy_client_1.Client {
25
26
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
27
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
28
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
28
30
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
31
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
32
  }
@@ -17,8 +17,10 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
+ const smithy_client_2 = require("@aws-sdk/smithy-client");
20
21
  const getRuntimeConfig = (config) => {
21
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
23
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
24
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
26
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var SQSClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
31
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
32
  return _this;
@@ -14,8 +14,10 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
16
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
  export var getRuntimeConfig = function (config) {
18
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
20
+ emitWarningIfUnsupportedVersion(process.version);
19
21
  var defaultsMode = resolveDefaultsModeConfig(config);
20
22
  var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
21
23
  var clientSharedValues = getSharedRuntimeConfig(config);
@@ -321,9 +321,7 @@ export interface CreateQueueRequest {
321
321
  * cross-account permissions to a role and a user name</a> in the <i>Amazon SQS Developer Guide</i>.</p>
322
322
  * </note>
323
323
  */
324
- tags?: {
325
- [key: string]: string;
326
- };
324
+ tags?: Record<string, string>;
327
325
  /**
328
326
  * <p>A map of attributes with their corresponding values.</p>
329
327
  * <p>The following lists the names, descriptions, and values of the special request parameters that the <code>CreateQueue</code> action uses:</p>
@@ -489,9 +487,7 @@ export interface CreateQueueRequest {
489
487
  * see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html">Quotas related to messages</a>
490
488
  * in the <i>Amazon SQS Developer Guide</i>.</p>
491
489
  */
492
- Attributes?: {
493
- [key: string]: string;
494
- };
490
+ Attributes?: Record<string, string>;
495
491
  }
496
492
  export declare namespace CreateQueueRequest {
497
493
  /**
@@ -868,9 +864,7 @@ export interface GetQueueAttributesResult {
868
864
  /**
869
865
  * <p>A map of attributes to their respective values.</p>
870
866
  */
871
- Attributes?: {
872
- [key: string]: string;
873
- };
867
+ Attributes?: Record<string, string>;
874
868
  }
875
869
  export declare namespace GetQueueAttributesResult {
876
870
  /**
@@ -1041,9 +1035,7 @@ export interface ListQueueTagsResult {
1041
1035
  /**
1042
1036
  * <p>The list of all tags added to the specified queue.</p>
1043
1037
  */
1044
- Tags?: {
1045
- [key: string]: string;
1046
- };
1038
+ Tags?: Record<string, string>;
1047
1039
  }
1048
1040
  export declare namespace ListQueueTagsResult {
1049
1041
  /**
@@ -1352,9 +1344,7 @@ export interface Message {
1352
1344
  * <code>ApproximateFirstReceiveTimestamp</code> and <code>SentTimestamp</code> are each returned as an integer representing the
1353
1345
  * <a href="http://en.wikipedia.org/wiki/Unix_time">epoch time</a> in milliseconds.</p>
1354
1346
  */
1355
- Attributes?: {
1356
- [key: string]: string;
1357
- };
1347
+ Attributes?: Record<string, string>;
1358
1348
  /**
1359
1349
  * <p>An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
1360
1350
  */
@@ -1365,9 +1355,7 @@ export interface Message {
1365
1355
  * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon SQS
1366
1356
  * message attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
1367
1357
  */
1368
- MessageAttributes?: {
1369
- [key: string]: MessageAttributeValue;
1370
- };
1358
+ MessageAttributes?: Record<string, MessageAttributeValue>;
1371
1359
  }
1372
1360
  export declare namespace Message {
1373
1361
  /**
@@ -1496,9 +1484,7 @@ export interface SendMessageRequest {
1496
1484
  * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon SQS
1497
1485
  * message attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
1498
1486
  */
1499
- MessageAttributes?: {
1500
- [key: string]: MessageAttributeValue;
1501
- };
1487
+ MessageAttributes?: Record<string, MessageAttributeValue>;
1502
1488
  /**
1503
1489
  * <p>The message system attribute to send. Each message system attribute consists of a <code>Name</code>, <code>Type</code>, and <code>Value</code>.</p>
1504
1490
  * <important>
@@ -1514,9 +1500,7 @@ export interface SendMessageRequest {
1514
1500
  * </ul>
1515
1501
  * </important>
1516
1502
  */
1517
- MessageSystemAttributes?: {
1518
- [key: string]: MessageSystemAttributeValue;
1519
- };
1503
+ MessageSystemAttributes?: Record<string, MessageSystemAttributeValue>;
1520
1504
  /**
1521
1505
  * <p>This parameter applies only to FIFO (first-in-first-out) queues.</p>
1522
1506
  * <p>The token used for deduplication of sent messages. If a message with a particular <code>MessageDeduplicationId</code> is sent successfully, any messages sent with the same <code>MessageDeduplicationId</code>
@@ -1692,9 +1676,7 @@ export interface SendMessageBatchRequestEntry {
1692
1676
  * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon SQS
1693
1677
  * message attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
1694
1678
  */
1695
- MessageAttributes?: {
1696
- [key: string]: MessageAttributeValue;
1697
- };
1679
+ MessageAttributes?: Record<string, MessageAttributeValue>;
1698
1680
  /**
1699
1681
  * <p>The message system attribute to send Each message system attribute consists of a <code>Name</code>, <code>Type</code>, and <code>Value</code>.</p>
1700
1682
  * <important>
@@ -1710,9 +1692,7 @@ export interface SendMessageBatchRequestEntry {
1710
1692
  * </ul>
1711
1693
  * </important>
1712
1694
  */
1713
- MessageSystemAttributes?: {
1714
- [key: string]: MessageSystemAttributeValue;
1715
- };
1695
+ MessageSystemAttributes?: Record<string, MessageSystemAttributeValue>;
1716
1696
  /**
1717
1697
  * <p>This parameter applies only to FIFO (first-in-first-out) queues.</p>
1718
1698
  * <p>The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular
@@ -2055,9 +2035,7 @@ export interface SetQueueAttributesRequest {
2055
2035
  * see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html">Quotas related to messages</a>
2056
2036
  * in the <i>Amazon SQS Developer Guide</i>.</p>
2057
2037
  */
2058
- Attributes: {
2059
- [key: string]: string;
2060
- } | undefined;
2038
+ Attributes: Record<string, string> | undefined;
2061
2039
  }
2062
2040
  export declare namespace SetQueueAttributesRequest {
2063
2041
  /**
@@ -2073,9 +2051,7 @@ export interface TagQueueRequest {
2073
2051
  /**
2074
2052
  * <p>The list of tags to be added to the specified queue.</p>
2075
2053
  */
2076
- Tags: {
2077
- [key: string]: string;
2078
- } | undefined;
2054
+ Tags: Record<string, string> | undefined;
2079
2055
  }
2080
2056
  export declare namespace TagQueueRequest {
2081
2057
  /**
@@ -141,13 +141,9 @@ export interface CreateQueueRequest {
141
141
 
142
142
  QueueName: string | undefined;
143
143
 
144
- tags?: {
145
- [key: string]: string;
146
- };
144
+ tags?: Record<string, string>;
147
145
 
148
- Attributes?: {
149
- [key: string]: string;
150
- };
146
+ Attributes?: Record<string, string>;
151
147
  }
152
148
  export declare namespace CreateQueueRequest {
153
149
 
@@ -259,9 +255,7 @@ export declare namespace GetQueueAttributesRequest {
259
255
 
260
256
  export interface GetQueueAttributesResult {
261
257
 
262
- Attributes?: {
263
- [key: string]: string;
264
- };
258
+ Attributes?: Record<string, string>;
265
259
  }
266
260
  export declare namespace GetQueueAttributesResult {
267
261
 
@@ -359,9 +353,7 @@ export declare namespace ListQueueTagsRequest {
359
353
  }
360
354
  export interface ListQueueTagsResult {
361
355
 
362
- Tags?: {
363
- [key: string]: string;
364
- };
356
+ Tags?: Record<string, string>;
365
357
  }
366
358
  export declare namespace ListQueueTagsResult {
367
359
 
@@ -433,15 +425,11 @@ export interface Message {
433
425
 
434
426
  Body?: string;
435
427
 
436
- Attributes?: {
437
- [key: string]: string;
438
- };
428
+ Attributes?: Record<string, string>;
439
429
 
440
430
  MD5OfMessageAttributes?: string;
441
431
 
442
- MessageAttributes?: {
443
- [key: string]: MessageAttributeValue;
444
- };
432
+ MessageAttributes?: Record<string, MessageAttributeValue>;
445
433
  }
446
434
  export declare namespace Message {
447
435
 
@@ -501,13 +489,9 @@ export interface SendMessageRequest {
501
489
 
502
490
  DelaySeconds?: number;
503
491
 
504
- MessageAttributes?: {
505
- [key: string]: MessageAttributeValue;
506
- };
492
+ MessageAttributes?: Record<string, MessageAttributeValue>;
507
493
 
508
- MessageSystemAttributes?: {
509
- [key: string]: MessageSystemAttributeValue;
510
- };
494
+ MessageSystemAttributes?: Record<string, MessageSystemAttributeValue>;
511
495
 
512
496
  MessageDeduplicationId?: string;
513
497
 
@@ -557,13 +541,9 @@ export interface SendMessageBatchRequestEntry {
557
541
 
558
542
  DelaySeconds?: number;
559
543
 
560
- MessageAttributes?: {
561
- [key: string]: MessageAttributeValue;
562
- };
544
+ MessageAttributes?: Record<string, MessageAttributeValue>;
563
545
 
564
- MessageSystemAttributes?: {
565
- [key: string]: MessageSystemAttributeValue;
566
- };
546
+ MessageSystemAttributes?: Record<string, MessageSystemAttributeValue>;
567
547
 
568
548
  MessageDeduplicationId?: string;
569
549
 
@@ -619,9 +599,7 @@ export interface SetQueueAttributesRequest {
619
599
 
620
600
  QueueUrl: string | undefined;
621
601
 
622
- Attributes: {
623
- [key: string]: string;
624
- } | undefined;
602
+ Attributes: Record<string, string> | undefined;
625
603
  }
626
604
  export declare namespace SetQueueAttributesRequest {
627
605
 
@@ -631,9 +609,7 @@ export interface TagQueueRequest {
631
609
 
632
610
  QueueUrl: string | undefined;
633
611
 
634
- Tags: {
635
- [key: string]: string;
636
- } | undefined;
612
+ Tags: Record<string, string> | undefined;
637
613
  }
638
614
  export declare namespace TagQueueRequest {
639
615
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sqs",
3
3
  "description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
4
- "version": "3.95.0",
4
+ "version": "3.105.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.95.0",
21
+ "@aws-sdk/client-sts": "3.105.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.95.0",
23
+ "@aws-sdk/credential-provider-node": "3.105.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.78.0",
25
25
  "@aws-sdk/hash-node": "3.78.0",
26
26
  "@aws-sdk/invalid-dependency": "3.78.0",
@@ -28,6 +28,7 @@
28
28
  "@aws-sdk/middleware-content-length": "3.78.0",
29
29
  "@aws-sdk/middleware-host-header": "3.78.0",
30
30
  "@aws-sdk/middleware-logger": "3.78.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.105.0",
31
32
  "@aws-sdk/middleware-retry": "3.80.0",
32
33
  "@aws-sdk/middleware-sdk-sqs": "3.78.0",
33
34
  "@aws-sdk/middleware-serde": "3.78.0",
@@ -37,15 +38,15 @@
37
38
  "@aws-sdk/node-config-provider": "3.80.0",
38
39
  "@aws-sdk/node-http-handler": "3.94.0",
39
40
  "@aws-sdk/protocol-http": "3.78.0",
40
- "@aws-sdk/smithy-client": "3.85.0",
41
+ "@aws-sdk/smithy-client": "3.99.0",
41
42
  "@aws-sdk/types": "3.78.0",
42
43
  "@aws-sdk/url-parser": "3.78.0",
43
44
  "@aws-sdk/util-base64-browser": "3.58.0",
44
45
  "@aws-sdk/util-base64-node": "3.55.0",
45
46
  "@aws-sdk/util-body-length-browser": "3.55.0",
46
47
  "@aws-sdk/util-body-length-node": "3.55.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.85.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.85.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.99.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.99.0",
49
50
  "@aws-sdk/util-user-agent-browser": "3.78.0",
50
51
  "@aws-sdk/util-user-agent-node": "3.80.0",
51
52
  "@aws-sdk/util-utf8-browser": "3.55.0",