@aws-sdk/client-sns 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-sns
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-sns
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-sns
@@ -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 SNSClient 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;
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 SNSClient = (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;
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);
@@ -209,9 +209,7 @@ export interface CreatePlatformApplicationInput {
209
209
  /**
210
210
  * <p>For a list of attributes, see <a href="https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html">SetPlatformApplicationAttributes</a>.</p>
211
211
  */
212
- Attributes: {
213
- [key: string]: string;
214
- } | undefined;
212
+ Attributes: Record<string, string> | undefined;
215
213
  }
216
214
  export declare namespace CreatePlatformApplicationInput {
217
215
  /**
@@ -274,9 +272,7 @@ export interface CreatePlatformEndpointInput {
274
272
  /**
275
273
  * <p>For a list of attributes, see <a href="https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html">SetEndpointAttributes</a>.</p>
276
274
  */
277
- Attributes?: {
278
- [key: string]: string;
279
- };
275
+ Attributes?: Record<string, string>;
280
276
  }
281
277
  export declare namespace CreatePlatformEndpointInput {
282
278
  /**
@@ -464,9 +460,7 @@ export interface CreateTopicInput {
464
460
  * </li>
465
461
  * </ul>
466
462
  */
467
- Attributes?: {
468
- [key: string]: string;
469
- };
463
+ Attributes?: Record<string, string>;
470
464
  /**
471
465
  * <p>The list of tags to add to a new topic.</p>
472
466
  * <note>
@@ -677,9 +671,7 @@ export interface GetEndpointAttributesResponse {
677
671
  * </li>
678
672
  * </ul>
679
673
  */
680
- Attributes?: {
681
- [key: string]: string;
682
- };
674
+ Attributes?: Record<string, string>;
683
675
  }
684
676
  export declare namespace GetEndpointAttributesResponse {
685
677
  /**
@@ -744,9 +736,7 @@ export interface GetPlatformApplicationAttributesResponse {
744
736
  * </li>
745
737
  * </ul>
746
738
  */
747
- Attributes?: {
748
- [key: string]: string;
749
- };
739
+ Attributes?: Record<string, string>;
750
740
  }
751
741
  export declare namespace GetPlatformApplicationAttributesResponse {
752
742
  /**
@@ -779,9 +769,7 @@ export interface GetSMSAttributesResponse {
779
769
  /**
780
770
  * <p>The SMS attribute names and their values.</p>
781
771
  */
782
- attributes?: {
783
- [key: string]: string;
784
- };
772
+ attributes?: Record<string, string>;
785
773
  }
786
774
  export declare namespace GetSMSAttributesResponse {
787
775
  /**
@@ -908,9 +896,7 @@ export interface GetSubscriptionAttributesResponse {
908
896
  * </li>
909
897
  * </ul>
910
898
  */
911
- Attributes?: {
912
- [key: string]: string;
913
- };
899
+ Attributes?: Record<string, string>;
914
900
  }
915
901
  export declare namespace GetSubscriptionAttributesResponse {
916
902
  /**
@@ -1029,9 +1015,7 @@ export interface GetTopicAttributesResponse {
1029
1015
  * </li>
1030
1016
  * </ul>
1031
1017
  */
1032
- Attributes?: {
1033
- [key: string]: string;
1034
- };
1018
+ Attributes?: Record<string, string>;
1035
1019
  }
1036
1020
  export declare namespace GetTopicAttributesResponse {
1037
1021
  /**
@@ -1070,9 +1054,7 @@ export interface Endpoint {
1070
1054
  /**
1071
1055
  * <p>Attributes for endpoint.</p>
1072
1056
  */
1073
- Attributes?: {
1074
- [key: string]: string;
1075
- };
1057
+ Attributes?: Record<string, string>;
1076
1058
  }
1077
1059
  export declare namespace Endpoint {
1078
1060
  /**
@@ -1257,9 +1239,7 @@ export interface PlatformApplication {
1257
1239
  /**
1258
1240
  * <p>Attributes for platform application object.</p>
1259
1241
  */
1260
- Attributes?: {
1261
- [key: string]: string;
1262
- };
1242
+ Attributes?: Record<string, string>;
1263
1243
  }
1264
1244
  export declare namespace PlatformApplication {
1265
1245
  /**
@@ -1820,9 +1800,7 @@ export interface PublishInput {
1820
1800
  /**
1821
1801
  * <p>Message attributes for Publish action.</p>
1822
1802
  */
1823
- MessageAttributes?: {
1824
- [key: string]: MessageAttributeValue;
1825
- };
1803
+ MessageAttributes?: Record<string, MessageAttributeValue>;
1826
1804
  /**
1827
1805
  * <p>This parameter applies only to FIFO (first-in-first-out) topics. The
1828
1806
  * <code>MessageDeduplicationId</code> can contain up to 128 alphanumeric characters
@@ -1961,9 +1939,7 @@ export interface PublishBatchRequestEntry {
1961
1939
  /**
1962
1940
  * <p>Each message attribute consists of a <code>Name</code>, <code>Type</code>, and <code>Value</code>. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html">Amazon SNS message attributes</a> in the Amazon SNS Developer Guide.</p>
1963
1941
  */
1964
- MessageAttributes?: {
1965
- [key: string]: MessageAttributeValue;
1966
- };
1942
+ MessageAttributes?: Record<string, MessageAttributeValue>;
1967
1943
  /**
1968
1944
  * <p>This parameter applies only to FIFO (first-in-first-out) topics.</p>
1969
1945
  * <p>The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular <code>MessageDeduplicationId</code> is sent successfully, subsequent messages with the same <code>MessageDeduplicationId</code> are accepted successfully but aren't delivered.</p>
@@ -2175,9 +2151,7 @@ export interface SetEndpointAttributesInput {
2175
2151
  * </li>
2176
2152
  * </ul>
2177
2153
  */
2178
- Attributes: {
2179
- [key: string]: string;
2180
- } | undefined;
2154
+ Attributes: Record<string, string> | undefined;
2181
2155
  }
2182
2156
  export declare namespace SetEndpointAttributesInput {
2183
2157
  /**
@@ -2287,9 +2261,7 @@ export interface SetPlatformApplicationAttributesInput {
2287
2261
  * </li>
2288
2262
  * </ul>
2289
2263
  */
2290
- Attributes: {
2291
- [key: string]: string;
2292
- } | undefined;
2264
+ Attributes: Record<string, string> | undefined;
2293
2265
  }
2294
2266
  export declare namespace SetPlatformApplicationAttributesInput {
2295
2267
  /**
@@ -2388,9 +2360,7 @@ export interface SetSMSAttributesInput {
2388
2360
  * <p>For an example bucket policy and usage report, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sms_stats.html">Monitoring SMS Activity</a> in the
2389
2361
  * <i>Amazon SNS Developer Guide</i>.</p>
2390
2362
  */
2391
- attributes: {
2392
- [key: string]: string;
2393
- } | undefined;
2363
+ attributes: Record<string, string> | undefined;
2394
2364
  }
2395
2365
  export declare namespace SetSMSAttributesInput {
2396
2366
  /**
@@ -2713,9 +2683,7 @@ export interface SubscribeInput {
2713
2683
  * </li>
2714
2684
  * </ul>
2715
2685
  */
2716
- Attributes?: {
2717
- [key: string]: string;
2718
- };
2686
+ Attributes?: Record<string, string>;
2719
2687
  /**
2720
2688
  * <p>Sets whether the response from the <code>Subscribe</code> request includes the
2721
2689
  * subscription ARN, even if the subscription is not yet confirmed.</p>
@@ -110,9 +110,7 @@ export interface CreatePlatformApplicationInput {
110
110
 
111
111
  Platform: string | undefined;
112
112
 
113
- Attributes: {
114
- [key: string]: string;
115
- } | undefined;
113
+ Attributes: Record<string, string> | undefined;
116
114
  }
117
115
  export declare namespace CreatePlatformApplicationInput {
118
116
 
@@ -145,9 +143,7 @@ export interface CreatePlatformEndpointInput {
145
143
 
146
144
  CustomUserData?: string;
147
145
 
148
- Attributes?: {
149
- [key: string]: string;
150
- };
146
+ Attributes?: Record<string, string>;
151
147
  }
152
148
  export declare namespace CreatePlatformEndpointInput {
153
149
 
@@ -221,9 +217,7 @@ export interface CreateTopicInput {
221
217
 
222
218
  Name: string | undefined;
223
219
 
224
- Attributes?: {
225
- [key: string]: string;
226
- };
220
+ Attributes?: Record<string, string>;
227
221
 
228
222
  Tags?: Tag[];
229
223
  }
@@ -334,9 +328,7 @@ export declare namespace GetEndpointAttributesInput {
334
328
 
335
329
  export interface GetEndpointAttributesResponse {
336
330
 
337
- Attributes?: {
338
- [key: string]: string;
339
- };
331
+ Attributes?: Record<string, string>;
340
332
  }
341
333
  export declare namespace GetEndpointAttributesResponse {
342
334
 
@@ -354,9 +346,7 @@ export declare namespace GetPlatformApplicationAttributesInput {
354
346
 
355
347
  export interface GetPlatformApplicationAttributesResponse {
356
348
 
357
- Attributes?: {
358
- [key: string]: string;
359
- };
349
+ Attributes?: Record<string, string>;
360
350
  }
361
351
  export declare namespace GetPlatformApplicationAttributesResponse {
362
352
 
@@ -374,9 +364,7 @@ export declare namespace GetSMSAttributesInput {
374
364
 
375
365
  export interface GetSMSAttributesResponse {
376
366
 
377
- attributes?: {
378
- [key: string]: string;
379
- };
367
+ attributes?: Record<string, string>;
380
368
  }
381
369
  export declare namespace GetSMSAttributesResponse {
382
370
 
@@ -408,9 +396,7 @@ export declare namespace GetSubscriptionAttributesInput {
408
396
 
409
397
  export interface GetSubscriptionAttributesResponse {
410
398
 
411
- Attributes?: {
412
- [key: string]: string;
413
- };
399
+ Attributes?: Record<string, string>;
414
400
  }
415
401
  export declare namespace GetSubscriptionAttributesResponse {
416
402
 
@@ -428,9 +414,7 @@ export declare namespace GetTopicAttributesInput {
428
414
 
429
415
  export interface GetTopicAttributesResponse {
430
416
 
431
- Attributes?: {
432
- [key: string]: string;
433
- };
417
+ Attributes?: Record<string, string>;
434
418
  }
435
419
  export declare namespace GetTopicAttributesResponse {
436
420
 
@@ -452,9 +436,7 @@ export interface Endpoint {
452
436
 
453
437
  EndpointArn?: string;
454
438
 
455
- Attributes?: {
456
- [key: string]: string;
457
- };
439
+ Attributes?: Record<string, string>;
458
440
  }
459
441
  export declare namespace Endpoint {
460
442
 
@@ -562,9 +544,7 @@ export interface PlatformApplication {
562
544
 
563
545
  PlatformApplicationArn?: string;
564
546
 
565
- Attributes?: {
566
- [key: string]: string;
567
- };
547
+ Attributes?: Record<string, string>;
568
548
  }
569
549
  export declare namespace PlatformApplication {
570
550
 
@@ -826,9 +806,7 @@ export interface PublishInput {
826
806
 
827
807
  MessageStructure?: string;
828
808
 
829
- MessageAttributes?: {
830
- [key: string]: MessageAttributeValue;
831
- };
809
+ MessageAttributes?: Record<string, MessageAttributeValue>;
832
810
 
833
811
  MessageDeduplicationId?: string;
834
812
 
@@ -888,9 +866,7 @@ export interface PublishBatchRequestEntry {
888
866
 
889
867
  MessageStructure?: string;
890
868
 
891
- MessageAttributes?: {
892
- [key: string]: MessageAttributeValue;
893
- };
869
+ MessageAttributes?: Record<string, MessageAttributeValue>;
894
870
 
895
871
  MessageDeduplicationId?: string;
896
872
 
@@ -971,9 +947,7 @@ export interface SetEndpointAttributesInput {
971
947
 
972
948
  EndpointArn: string | undefined;
973
949
 
974
- Attributes: {
975
- [key: string]: string;
976
- } | undefined;
950
+ Attributes: Record<string, string> | undefined;
977
951
  }
978
952
  export declare namespace SetEndpointAttributesInput {
979
953
 
@@ -984,9 +958,7 @@ export interface SetPlatformApplicationAttributesInput {
984
958
 
985
959
  PlatformApplicationArn: string | undefined;
986
960
 
987
- Attributes: {
988
- [key: string]: string;
989
- } | undefined;
961
+ Attributes: Record<string, string> | undefined;
990
962
  }
991
963
  export declare namespace SetPlatformApplicationAttributesInput {
992
964
 
@@ -995,9 +967,7 @@ export declare namespace SetPlatformApplicationAttributesInput {
995
967
 
996
968
  export interface SetSMSAttributesInput {
997
969
 
998
- attributes: {
999
- [key: string]: string;
1000
- } | undefined;
970
+ attributes: Record<string, string> | undefined;
1001
971
  }
1002
972
  export declare namespace SetSMSAttributesInput {
1003
973
 
@@ -1045,9 +1015,7 @@ export interface SubscribeInput {
1045
1015
 
1046
1016
  Endpoint?: string;
1047
1017
 
1048
- Attributes?: {
1049
- [key: string]: string;
1050
- };
1018
+ Attributes?: Record<string, string>;
1051
1019
 
1052
1020
  ReturnSubscriptionArn?: boolean;
1053
1021
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sns",
3
3
  "description": "AWS SDK for JavaScript Sns 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,15 +18,16 @@
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",
27
27
  "@aws-sdk/middleware-content-length": "3.78.0",
28
28
  "@aws-sdk/middleware-host-header": "3.78.0",
29
29
  "@aws-sdk/middleware-logger": "3.78.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.105.0",
30
31
  "@aws-sdk/middleware-retry": "3.80.0",
31
32
  "@aws-sdk/middleware-serde": "3.78.0",
32
33
  "@aws-sdk/middleware-signing": "3.78.0",
@@ -35,15 +36,15 @@
35
36
  "@aws-sdk/node-config-provider": "3.80.0",
36
37
  "@aws-sdk/node-http-handler": "3.94.0",
37
38
  "@aws-sdk/protocol-http": "3.78.0",
38
- "@aws-sdk/smithy-client": "3.85.0",
39
+ "@aws-sdk/smithy-client": "3.99.0",
39
40
  "@aws-sdk/types": "3.78.0",
40
41
  "@aws-sdk/url-parser": "3.78.0",
41
42
  "@aws-sdk/util-base64-browser": "3.58.0",
42
43
  "@aws-sdk/util-base64-node": "3.55.0",
43
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
45
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.85.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.85.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.99.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.99.0",
47
48
  "@aws-sdk/util-user-agent-browser": "3.78.0",
48
49
  "@aws-sdk/util-user-agent-node": "3.80.0",
49
50
  "@aws-sdk/util-utf8-browser": "3.55.0",