@aws-sdk/client-sns 3.975.0 → 3.980.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/index.js CHANGED
@@ -2080,6 +2080,22 @@ class VerifySMSSandboxPhoneNumberCommand extends smithyClient.Command
2080
2080
  .build() {
2081
2081
  }
2082
2082
 
2083
+ const paginateListEndpointsByPlatformApplication = core.createPaginator(SNSClient, ListEndpointsByPlatformApplicationCommand, "NextToken", "NextToken", "");
2084
+
2085
+ const paginateListOriginationNumbers = core.createPaginator(SNSClient, ListOriginationNumbersCommand, "NextToken", "NextToken", "MaxResults");
2086
+
2087
+ const paginateListPhoneNumbersOptedOut = core.createPaginator(SNSClient, ListPhoneNumbersOptedOutCommand, "nextToken", "nextToken", "");
2088
+
2089
+ const paginateListPlatformApplications = core.createPaginator(SNSClient, ListPlatformApplicationsCommand, "NextToken", "NextToken", "");
2090
+
2091
+ const paginateListSMSSandboxPhoneNumbers = core.createPaginator(SNSClient, ListSMSSandboxPhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
2092
+
2093
+ const paginateListSubscriptionsByTopic = core.createPaginator(SNSClient, ListSubscriptionsByTopicCommand, "NextToken", "NextToken", "");
2094
+
2095
+ const paginateListSubscriptions = core.createPaginator(SNSClient, ListSubscriptionsCommand, "NextToken", "NextToken", "");
2096
+
2097
+ const paginateListTopics = core.createPaginator(SNSClient, ListTopicsCommand, "NextToken", "NextToken", "");
2098
+
2083
2099
  const commands = {
2084
2100
  AddPermissionCommand,
2085
2101
  CheckIfPhoneNumberIsOptedOutCommand,
@@ -2124,25 +2140,19 @@ const commands = {
2124
2140
  UntagResourceCommand,
2125
2141
  VerifySMSSandboxPhoneNumberCommand,
2126
2142
  };
2143
+ const paginators = {
2144
+ paginateListEndpointsByPlatformApplication,
2145
+ paginateListOriginationNumbers,
2146
+ paginateListPhoneNumbersOptedOut,
2147
+ paginateListPlatformApplications,
2148
+ paginateListSMSSandboxPhoneNumbers,
2149
+ paginateListSubscriptions,
2150
+ paginateListSubscriptionsByTopic,
2151
+ paginateListTopics,
2152
+ };
2127
2153
  class SNS extends SNSClient {
2128
2154
  }
2129
- smithyClient.createAggregatedClient(commands, SNS);
2130
-
2131
- const paginateListEndpointsByPlatformApplication = core.createPaginator(SNSClient, ListEndpointsByPlatformApplicationCommand, "NextToken", "NextToken", "");
2132
-
2133
- const paginateListOriginationNumbers = core.createPaginator(SNSClient, ListOriginationNumbersCommand, "NextToken", "NextToken", "MaxResults");
2134
-
2135
- const paginateListPhoneNumbersOptedOut = core.createPaginator(SNSClient, ListPhoneNumbersOptedOutCommand, "nextToken", "nextToken", "");
2136
-
2137
- const paginateListPlatformApplications = core.createPaginator(SNSClient, ListPlatformApplicationsCommand, "NextToken", "NextToken", "");
2138
-
2139
- const paginateListSMSSandboxPhoneNumbers = core.createPaginator(SNSClient, ListSMSSandboxPhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
2140
-
2141
- const paginateListSubscriptions = core.createPaginator(SNSClient, ListSubscriptionsCommand, "NextToken", "NextToken", "");
2142
-
2143
- const paginateListSubscriptionsByTopic = core.createPaginator(SNSClient, ListSubscriptionsByTopicCommand, "NextToken", "NextToken", "");
2144
-
2145
- const paginateListTopics = core.createPaginator(SNSClient, ListTopicsCommand, "NextToken", "NextToken", "");
2155
+ smithyClient.createAggregatedClient(commands, SNS, { paginators });
2146
2156
 
2147
2157
  const LanguageCodeString = {
2148
2158
  de_DE: "de-DE",
package/dist-es/SNS.js CHANGED
@@ -41,6 +41,14 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
41
41
  import { UnsubscribeCommand } from "./commands/UnsubscribeCommand";
42
42
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
43
43
  import { VerifySMSSandboxPhoneNumberCommand, } from "./commands/VerifySMSSandboxPhoneNumberCommand";
44
+ import { paginateListEndpointsByPlatformApplication } from "./pagination/ListEndpointsByPlatformApplicationPaginator";
45
+ import { paginateListOriginationNumbers } from "./pagination/ListOriginationNumbersPaginator";
46
+ import { paginateListPhoneNumbersOptedOut } from "./pagination/ListPhoneNumbersOptedOutPaginator";
47
+ import { paginateListPlatformApplications } from "./pagination/ListPlatformApplicationsPaginator";
48
+ import { paginateListSMSSandboxPhoneNumbers } from "./pagination/ListSMSSandboxPhoneNumbersPaginator";
49
+ import { paginateListSubscriptionsByTopic } from "./pagination/ListSubscriptionsByTopicPaginator";
50
+ import { paginateListSubscriptions } from "./pagination/ListSubscriptionsPaginator";
51
+ import { paginateListTopics } from "./pagination/ListTopicsPaginator";
44
52
  import { SNSClient } from "./SNSClient";
45
53
  const commands = {
46
54
  AddPermissionCommand,
@@ -86,6 +94,16 @@ const commands = {
86
94
  UntagResourceCommand,
87
95
  VerifySMSSandboxPhoneNumberCommand,
88
96
  };
97
+ const paginators = {
98
+ paginateListEndpointsByPlatformApplication,
99
+ paginateListOriginationNumbers,
100
+ paginateListPhoneNumbersOptedOut,
101
+ paginateListPlatformApplications,
102
+ paginateListSMSSandboxPhoneNumbers,
103
+ paginateListSubscriptions,
104
+ paginateListSubscriptionsByTopic,
105
+ paginateListTopics,
106
+ };
89
107
  export class SNS extends SNSClient {
90
108
  }
91
- createAggregatedClient(commands, SNS);
109
+ createAggregatedClient(commands, SNS, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand";
3
3
  import { CheckIfPhoneNumberIsOptedOutCommandInput, CheckIfPhoneNumberIsOptedOutCommandOutput } from "./commands/CheckIfPhoneNumberIsOptedOutCommand";
4
4
  import { ConfirmSubscriptionCommandInput, ConfirmSubscriptionCommandOutput } from "./commands/ConfirmSubscriptionCommand";
@@ -303,6 +303,62 @@ export interface SNS {
303
303
  verifySMSSandboxPhoneNumber(args: VerifySMSSandboxPhoneNumberCommandInput, options?: __HttpHandlerOptions): Promise<VerifySMSSandboxPhoneNumberCommandOutput>;
304
304
  verifySMSSandboxPhoneNumber(args: VerifySMSSandboxPhoneNumberCommandInput, cb: (err: any, data?: VerifySMSSandboxPhoneNumberCommandOutput) => void): void;
305
305
  verifySMSSandboxPhoneNumber(args: VerifySMSSandboxPhoneNumberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifySMSSandboxPhoneNumberCommandOutput) => void): void;
306
+ /**
307
+ * @see {@link ListEndpointsByPlatformApplicationCommand}
308
+ * @param args - command input.
309
+ * @param paginationConfig - optional pagination config.
310
+ * @returns AsyncIterable of {@link ListEndpointsByPlatformApplicationCommandOutput}.
311
+ */
312
+ paginateListEndpointsByPlatformApplication(args: ListEndpointsByPlatformApplicationCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEndpointsByPlatformApplicationCommandOutput>;
313
+ /**
314
+ * @see {@link ListOriginationNumbersCommand}
315
+ * @param args - command input.
316
+ * @param paginationConfig - optional pagination config.
317
+ * @returns AsyncIterable of {@link ListOriginationNumbersCommandOutput}.
318
+ */
319
+ paginateListOriginationNumbers(args?: ListOriginationNumbersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListOriginationNumbersCommandOutput>;
320
+ /**
321
+ * @see {@link ListPhoneNumbersOptedOutCommand}
322
+ * @param args - command input.
323
+ * @param paginationConfig - optional pagination config.
324
+ * @returns AsyncIterable of {@link ListPhoneNumbersOptedOutCommandOutput}.
325
+ */
326
+ paginateListPhoneNumbersOptedOut(args?: ListPhoneNumbersOptedOutCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPhoneNumbersOptedOutCommandOutput>;
327
+ /**
328
+ * @see {@link ListPlatformApplicationsCommand}
329
+ * @param args - command input.
330
+ * @param paginationConfig - optional pagination config.
331
+ * @returns AsyncIterable of {@link ListPlatformApplicationsCommandOutput}.
332
+ */
333
+ paginateListPlatformApplications(args?: ListPlatformApplicationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPlatformApplicationsCommandOutput>;
334
+ /**
335
+ * @see {@link ListSMSSandboxPhoneNumbersCommand}
336
+ * @param args - command input.
337
+ * @param paginationConfig - optional pagination config.
338
+ * @returns AsyncIterable of {@link ListSMSSandboxPhoneNumbersCommandOutput}.
339
+ */
340
+ paginateListSMSSandboxPhoneNumbers(args?: ListSMSSandboxPhoneNumbersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSMSSandboxPhoneNumbersCommandOutput>;
341
+ /**
342
+ * @see {@link ListSubscriptionsCommand}
343
+ * @param args - command input.
344
+ * @param paginationConfig - optional pagination config.
345
+ * @returns AsyncIterable of {@link ListSubscriptionsCommandOutput}.
346
+ */
347
+ paginateListSubscriptions(args?: ListSubscriptionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSubscriptionsCommandOutput>;
348
+ /**
349
+ * @see {@link ListSubscriptionsByTopicCommand}
350
+ * @param args - command input.
351
+ * @param paginationConfig - optional pagination config.
352
+ * @returns AsyncIterable of {@link ListSubscriptionsByTopicCommandOutput}.
353
+ */
354
+ paginateListSubscriptionsByTopic(args: ListSubscriptionsByTopicCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSubscriptionsByTopicCommandOutput>;
355
+ /**
356
+ * @see {@link ListTopicsCommand}
357
+ * @param args - command input.
358
+ * @param paginationConfig - optional pagination config.
359
+ * @returns AsyncIterable of {@link ListTopicsCommandOutput}.
360
+ */
361
+ paginateListTopics(args?: ListTopicsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTopicsCommandOutput>;
306
362
  }
307
363
  /**
308
364
  * <fullname>Amazon Simple Notification Service</fullname>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  AddPermissionCommandInput,
4
8
  AddPermissionCommandOutput,
@@ -729,5 +733,61 @@ export interface SNS {
729
733
  options: __HttpHandlerOptions,
730
734
  cb: (err: any, data?: VerifySMSSandboxPhoneNumberCommandOutput) => void
731
735
  ): void;
736
+ paginateListEndpointsByPlatformApplication(
737
+ args: ListEndpointsByPlatformApplicationCommandInput,
738
+ paginationConfig?: Pick<
739
+ PaginationConfiguration,
740
+ Exclude<keyof PaginationConfiguration, "client">
741
+ >
742
+ ): Paginator<ListEndpointsByPlatformApplicationCommandOutput>;
743
+ paginateListOriginationNumbers(
744
+ args?: ListOriginationNumbersCommandInput,
745
+ paginationConfig?: Pick<
746
+ PaginationConfiguration,
747
+ Exclude<keyof PaginationConfiguration, "client">
748
+ >
749
+ ): Paginator<ListOriginationNumbersCommandOutput>;
750
+ paginateListPhoneNumbersOptedOut(
751
+ args?: ListPhoneNumbersOptedOutCommandInput,
752
+ paginationConfig?: Pick<
753
+ PaginationConfiguration,
754
+ Exclude<keyof PaginationConfiguration, "client">
755
+ >
756
+ ): Paginator<ListPhoneNumbersOptedOutCommandOutput>;
757
+ paginateListPlatformApplications(
758
+ args?: ListPlatformApplicationsCommandInput,
759
+ paginationConfig?: Pick<
760
+ PaginationConfiguration,
761
+ Exclude<keyof PaginationConfiguration, "client">
762
+ >
763
+ ): Paginator<ListPlatformApplicationsCommandOutput>;
764
+ paginateListSMSSandboxPhoneNumbers(
765
+ args?: ListSMSSandboxPhoneNumbersCommandInput,
766
+ paginationConfig?: Pick<
767
+ PaginationConfiguration,
768
+ Exclude<keyof PaginationConfiguration, "client">
769
+ >
770
+ ): Paginator<ListSMSSandboxPhoneNumbersCommandOutput>;
771
+ paginateListSubscriptions(
772
+ args?: ListSubscriptionsCommandInput,
773
+ paginationConfig?: Pick<
774
+ PaginationConfiguration,
775
+ Exclude<keyof PaginationConfiguration, "client">
776
+ >
777
+ ): Paginator<ListSubscriptionsCommandOutput>;
778
+ paginateListSubscriptionsByTopic(
779
+ args: ListSubscriptionsByTopicCommandInput,
780
+ paginationConfig?: Pick<
781
+ PaginationConfiguration,
782
+ Exclude<keyof PaginationConfiguration, "client">
783
+ >
784
+ ): Paginator<ListSubscriptionsByTopicCommandOutput>;
785
+ paginateListTopics(
786
+ args?: ListTopicsCommandInput,
787
+ paginationConfig?: Pick<
788
+ PaginationConfiguration,
789
+ Exclude<keyof PaginationConfiguration, "client">
790
+ >
791
+ ): Paginator<ListTopicsCommandOutput>;
732
792
  }
733
793
  export declare class SNS extends SNSClient implements SNS {}
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.975.0",
4
+ "version": "3.980.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sns",
@@ -23,38 +23,38 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.1",
27
- "@aws-sdk/credential-provider-node": "^3.972.1",
28
- "@aws-sdk/middleware-host-header": "^3.972.1",
29
- "@aws-sdk/middleware-logger": "^3.972.1",
30
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
31
- "@aws-sdk/middleware-user-agent": "^3.972.2",
32
- "@aws-sdk/region-config-resolver": "^3.972.1",
33
- "@aws-sdk/types": "^3.973.0",
34
- "@aws-sdk/util-endpoints": "3.972.0",
35
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
36
- "@aws-sdk/util-user-agent-node": "^3.972.1",
26
+ "@aws-sdk/core": "^3.973.5",
27
+ "@aws-sdk/credential-provider-node": "^3.972.4",
28
+ "@aws-sdk/middleware-host-header": "^3.972.3",
29
+ "@aws-sdk/middleware-logger": "^3.972.3",
30
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
32
+ "@aws-sdk/region-config-resolver": "^3.972.3",
33
+ "@aws-sdk/types": "^3.973.1",
34
+ "@aws-sdk/util-endpoints": "3.980.0",
35
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.21.1",
38
+ "@smithy/core": "^3.22.0",
39
39
  "@smithy/fetch-http-handler": "^5.3.9",
40
40
  "@smithy/hash-node": "^4.2.8",
41
41
  "@smithy/invalid-dependency": "^4.2.8",
42
42
  "@smithy/middleware-content-length": "^4.2.8",
43
- "@smithy/middleware-endpoint": "^4.4.11",
44
- "@smithy/middleware-retry": "^4.4.27",
43
+ "@smithy/middleware-endpoint": "^4.4.12",
44
+ "@smithy/middleware-retry": "^4.4.29",
45
45
  "@smithy/middleware-serde": "^4.2.9",
46
46
  "@smithy/middleware-stack": "^4.2.8",
47
47
  "@smithy/node-config-provider": "^4.3.8",
48
48
  "@smithy/node-http-handler": "^4.4.8",
49
49
  "@smithy/protocol-http": "^5.3.8",
50
- "@smithy/smithy-client": "^4.10.12",
50
+ "@smithy/smithy-client": "^4.11.1",
51
51
  "@smithy/types": "^4.12.0",
52
52
  "@smithy/url-parser": "^4.2.8",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.26",
57
- "@smithy/util-defaults-mode-node": "^4.2.29",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
57
+ "@smithy/util-defaults-mode-node": "^4.2.31",
58
58
  "@smithy/util-endpoints": "^3.2.8",
59
59
  "@smithy/util-middleware": "^4.2.8",
60
60
  "@smithy/util-retry": "^4.2.8",