@aws-sdk/client-sns 3.299.0 → 3.300.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-types/commands/AddPermissionCommand.d.ts +10 -0
- package/dist-types/commands/CheckIfPhoneNumberIsOptedOutCommand.d.ts +3 -0
- package/dist-types/commands/ConfirmSubscriptionCommand.d.ts +5 -0
- package/dist-types/commands/CreatePlatformApplicationCommand.d.ts +7 -0
- package/dist-types/commands/CreatePlatformEndpointCommand.d.ts +8 -0
- package/dist-types/commands/CreateSMSSandboxPhoneNumberCommand.d.ts +4 -0
- package/dist-types/commands/CreateTopicCommand.d.ts +13 -0
- package/dist-types/commands/DeleteEndpointCommand.d.ts +3 -0
- package/dist-types/commands/DeletePlatformApplicationCommand.d.ts +3 -0
- package/dist-types/commands/DeleteSMSSandboxPhoneNumberCommand.d.ts +3 -0
- package/dist-types/commands/DeleteTopicCommand.d.ts +3 -0
- package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +3 -0
- package/dist-types/commands/GetEndpointAttributesCommand.d.ts +3 -0
- package/dist-types/commands/GetPlatformApplicationAttributesCommand.d.ts +3 -0
- package/dist-types/commands/GetSMSAttributesCommand.d.ts +5 -0
- package/dist-types/commands/GetSMSSandboxAccountStatusCommand.d.ts +1 -0
- package/dist-types/commands/GetSubscriptionAttributesCommand.d.ts +3 -0
- package/dist-types/commands/GetTopicAttributesCommand.d.ts +3 -0
- package/dist-types/commands/ListEndpointsByPlatformApplicationCommand.d.ts +4 -0
- package/dist-types/commands/ListOriginationNumbersCommand.d.ts +4 -0
- package/dist-types/commands/ListPhoneNumbersOptedOutCommand.d.ts +3 -0
- package/dist-types/commands/ListPlatformApplicationsCommand.d.ts +3 -0
- package/dist-types/commands/ListSMSSandboxPhoneNumbersCommand.d.ts +4 -0
- package/dist-types/commands/ListSubscriptionsByTopicCommand.d.ts +4 -0
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +3 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/ListTopicsCommand.d.ts +3 -0
- package/dist-types/commands/OptInPhoneNumberCommand.d.ts +3 -0
- package/dist-types/commands/PublishBatchCommand.d.ts +20 -0
- package/dist-types/commands/PublishCommand.d.ts +17 -0
- package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +4 -0
- package/dist-types/commands/RemovePermissionCommand.d.ts +4 -0
- package/dist-types/commands/SetEndpointAttributesCommand.d.ts +6 -0
- package/dist-types/commands/SetPlatformApplicationAttributesCommand.d.ts +6 -0
- package/dist-types/commands/SetSMSAttributesCommand.d.ts +5 -0
- package/dist-types/commands/SetSubscriptionAttributesCommand.d.ts +5 -0
- package/dist-types/commands/SetTopicAttributesCommand.d.ts +5 -0
- package/dist-types/commands/SubscribeCommand.d.ts +9 -0
- package/dist-types/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/commands/UnsubscribeCommand.d.ts +3 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/VerifySMSSandboxPhoneNumberCommand.d.ts +4 -0
- package/package.json +8 -8
|
@@ -32,6 +32,16 @@ export interface AddPermissionCommandOutput extends __MetadataBearer {
|
|
|
32
32
|
* import { SNSClient, AddPermissionCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
33
33
|
* // const { SNSClient, AddPermissionCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
34
34
|
* const client = new SNSClient(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* TopicArn: "STRING_VALUE", // required
|
|
37
|
+
* Label: "STRING_VALUE", // required
|
|
38
|
+
* AWSAccountId: [ // required
|
|
39
|
+
* "STRING_VALUE",
|
|
40
|
+
* ],
|
|
41
|
+
* ActionName: [ // required
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* };
|
|
35
45
|
* const command = new AddPermissionCommand(input);
|
|
36
46
|
* const response = await client.send(command);
|
|
37
47
|
* ```
|
|
@@ -30,6 +30,9 @@ export interface CheckIfPhoneNumberIsOptedOutCommandOutput extends CheckIfPhoneN
|
|
|
30
30
|
* import { SNSClient, CheckIfPhoneNumberIsOptedOutCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
31
31
|
* // const { SNSClient, CheckIfPhoneNumberIsOptedOutCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
32
32
|
* const client = new SNSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* phoneNumber: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
33
36
|
* const command = new CheckIfPhoneNumberIsOptedOutCommand(input);
|
|
34
37
|
* const response = await client.send(command);
|
|
35
38
|
* ```
|
|
@@ -30,6 +30,11 @@ export interface ConfirmSubscriptionCommandOutput extends ConfirmSubscriptionRes
|
|
|
30
30
|
* import { SNSClient, ConfirmSubscriptionCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
31
31
|
* // const { SNSClient, ConfirmSubscriptionCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
32
32
|
* const client = new SNSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* TopicArn: "STRING_VALUE", // required
|
|
35
|
+
* Token: "STRING_VALUE", // required
|
|
36
|
+
* AuthenticateOnUnsubscribe: "STRING_VALUE",
|
|
37
|
+
* };
|
|
33
38
|
* const command = new ConfirmSubscriptionCommand(input);
|
|
34
39
|
* const response = await client.send(command);
|
|
35
40
|
* ```
|
|
@@ -70,6 +70,13 @@ export interface CreatePlatformApplicationCommandOutput extends CreatePlatformAp
|
|
|
70
70
|
* import { SNSClient, CreatePlatformApplicationCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
71
71
|
* // const { SNSClient, CreatePlatformApplicationCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
72
72
|
* const client = new SNSClient(config);
|
|
73
|
+
* const input = {
|
|
74
|
+
* Name: "STRING_VALUE", // required
|
|
75
|
+
* Platform: "STRING_VALUE", // required
|
|
76
|
+
* Attributes: { // required
|
|
77
|
+
* "<keys>": "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* };
|
|
73
80
|
* const command = new CreatePlatformApplicationCommand(input);
|
|
74
81
|
* const response = await client.send(command);
|
|
75
82
|
* ```
|
|
@@ -39,6 +39,14 @@ export interface CreatePlatformEndpointCommandOutput extends CreateEndpointRespo
|
|
|
39
39
|
* import { SNSClient, CreatePlatformEndpointCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
40
40
|
* // const { SNSClient, CreatePlatformEndpointCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
41
41
|
* const client = new SNSClient(config);
|
|
42
|
+
* const input = {
|
|
43
|
+
* PlatformApplicationArn: "STRING_VALUE", // required
|
|
44
|
+
* Token: "STRING_VALUE", // required
|
|
45
|
+
* CustomUserData: "STRING_VALUE",
|
|
46
|
+
* Attributes: {
|
|
47
|
+
* "<keys>": "STRING_VALUE",
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
42
50
|
* const command = new CreatePlatformEndpointCommand(input);
|
|
43
51
|
* const response = await client.send(command);
|
|
44
52
|
* ```
|
|
@@ -35,6 +35,10 @@ export interface CreateSMSSandboxPhoneNumberCommandOutput extends CreateSMSSandb
|
|
|
35
35
|
* import { SNSClient, CreateSMSSandboxPhoneNumberCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
36
36
|
* // const { SNSClient, CreateSMSSandboxPhoneNumberCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
37
37
|
* const client = new SNSClient(config);
|
|
38
|
+
* const input = {
|
|
39
|
+
* PhoneNumber: "STRING_VALUE", // required
|
|
40
|
+
* LanguageCode: "en-US" || "en-GB" || "es-419" || "es-ES" || "de-DE" || "fr-CA" || "fr-FR" || "it-IT" || "ja-JP" || "pt-BR" || "kr-KR" || "zh-CN" || "zh-TW",
|
|
41
|
+
* };
|
|
38
42
|
* const command = new CreateSMSSandboxPhoneNumberCommand(input);
|
|
39
43
|
* const response = await client.send(command);
|
|
40
44
|
* ```
|
|
@@ -30,6 +30,19 @@ export interface CreateTopicCommandOutput extends CreateTopicResponse, __Metadat
|
|
|
30
30
|
* import { SNSClient, CreateTopicCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
31
31
|
* // const { SNSClient, CreateTopicCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
32
32
|
* const client = new SNSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* Name: "STRING_VALUE", // required
|
|
35
|
+
* Attributes: {
|
|
36
|
+
* "<keys>": "STRING_VALUE",
|
|
37
|
+
* },
|
|
38
|
+
* Tags: [
|
|
39
|
+
* {
|
|
40
|
+
* Key: "STRING_VALUE", // required
|
|
41
|
+
* Value: "STRING_VALUE", // required
|
|
42
|
+
* },
|
|
43
|
+
* ],
|
|
44
|
+
* DataProtectionPolicy: "STRING_VALUE",
|
|
45
|
+
* };
|
|
33
46
|
* const command = new CreateTopicCommand(input);
|
|
34
47
|
* const response = await client.send(command);
|
|
35
48
|
* ```
|
|
@@ -30,6 +30,9 @@ export interface DeleteEndpointCommandOutput extends __MetadataBearer {
|
|
|
30
30
|
* import { SNSClient, DeleteEndpointCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
31
31
|
* // const { SNSClient, DeleteEndpointCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
32
32
|
* const client = new SNSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* EndpointArn: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
33
36
|
* const command = new DeleteEndpointCommand(input);
|
|
34
37
|
* const response = await client.send(command);
|
|
35
38
|
* ```
|
|
@@ -29,6 +29,9 @@ export interface DeletePlatformApplicationCommandOutput extends __MetadataBearer
|
|
|
29
29
|
* import { SNSClient, DeletePlatformApplicationCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
30
30
|
* // const { SNSClient, DeletePlatformApplicationCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
31
31
|
* const client = new SNSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* PlatformApplicationArn: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
32
35
|
* const command = new DeletePlatformApplicationCommand(input);
|
|
33
36
|
* const response = await client.send(command);
|
|
34
37
|
* ```
|
|
@@ -35,6 +35,9 @@ export interface DeleteSMSSandboxPhoneNumberCommandOutput extends DeleteSMSSandb
|
|
|
35
35
|
* import { SNSClient, DeleteSMSSandboxPhoneNumberCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
36
36
|
* // const { SNSClient, DeleteSMSSandboxPhoneNumberCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
37
37
|
* const client = new SNSClient(config);
|
|
38
|
+
* const input = {
|
|
39
|
+
* PhoneNumber: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
38
41
|
* const command = new DeleteSMSSandboxPhoneNumberCommand(input);
|
|
39
42
|
* const response = await client.send(command);
|
|
40
43
|
* ```
|
|
@@ -29,6 +29,9 @@ export interface DeleteTopicCommandOutput extends __MetadataBearer {
|
|
|
29
29
|
* import { SNSClient, DeleteTopicCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
30
30
|
* // const { SNSClient, DeleteTopicCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
31
31
|
* const client = new SNSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* TopicArn: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
32
35
|
* const command = new DeleteTopicCommand(input);
|
|
33
36
|
* const response = await client.send(command);
|
|
34
37
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface GetDataProtectionPolicyCommandOutput extends GetDataProtectionP
|
|
|
27
27
|
* import { SNSClient, GetDataProtectionPolicyCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
28
28
|
* // const { SNSClient, GetDataProtectionPolicyCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
29
29
|
* const client = new SNSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new GetDataProtectionPolicyCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -28,6 +28,9 @@ export interface GetEndpointAttributesCommandOutput extends GetEndpointAttribute
|
|
|
28
28
|
* import { SNSClient, GetEndpointAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
29
29
|
* // const { SNSClient, GetEndpointAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
30
30
|
* const client = new SNSClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* EndpointArn: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
31
34
|
* const command = new GetEndpointAttributesCommand(input);
|
|
32
35
|
* const response = await client.send(command);
|
|
33
36
|
* ```
|
|
@@ -28,6 +28,9 @@ export interface GetPlatformApplicationAttributesCommandOutput extends GetPlatfo
|
|
|
28
28
|
* import { SNSClient, GetPlatformApplicationAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
29
29
|
* // const { SNSClient, GetPlatformApplicationAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
30
30
|
* const client = new SNSClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* PlatformApplicationArn: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
31
34
|
* const command = new GetPlatformApplicationAttributesCommand(input);
|
|
32
35
|
* const response = await client.send(command);
|
|
33
36
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface GetSMSAttributesCommandOutput extends GetSMSAttributesResponse,
|
|
|
27
27
|
* import { SNSClient, GetSMSAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
28
28
|
* // const { SNSClient, GetSMSAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
29
29
|
* const client = new SNSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* attributes: [
|
|
32
|
+
* "STRING_VALUE",
|
|
33
|
+
* ],
|
|
34
|
+
* };
|
|
30
35
|
* const command = new GetSMSAttributesCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -35,6 +35,7 @@ export interface GetSMSSandboxAccountStatusCommandOutput extends GetSMSSandboxAc
|
|
|
35
35
|
* import { SNSClient, GetSMSSandboxAccountStatusCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
36
36
|
* // const { SNSClient, GetSMSSandboxAccountStatusCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
37
37
|
* const client = new SNSClient(config);
|
|
38
|
+
* const input = {};
|
|
38
39
|
* const command = new GetSMSSandboxAccountStatusCommand(input);
|
|
39
40
|
* const response = await client.send(command);
|
|
40
41
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface GetSubscriptionAttributesCommandOutput extends GetSubscriptionA
|
|
|
26
26
|
* import { SNSClient, GetSubscriptionAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
27
27
|
* // const { SNSClient, GetSubscriptionAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
28
28
|
* const client = new SNSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* SubscriptionArn: "STRING_VALUE", // required
|
|
31
|
+
* };
|
|
29
32
|
* const command = new GetSubscriptionAttributesCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface GetTopicAttributesCommandOutput extends GetTopicAttributesRespo
|
|
|
27
27
|
* import { SNSClient, GetTopicAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
28
28
|
* // const { SNSClient, GetTopicAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
29
29
|
* const client = new SNSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* TopicArn: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new GetTopicAttributesCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -35,6 +35,10 @@ export interface ListEndpointsByPlatformApplicationCommandOutput extends ListEnd
|
|
|
35
35
|
* import { SNSClient, ListEndpointsByPlatformApplicationCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
36
36
|
* // const { SNSClient, ListEndpointsByPlatformApplicationCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
37
37
|
* const client = new SNSClient(config);
|
|
38
|
+
* const input = {
|
|
39
|
+
* PlatformApplicationArn: "STRING_VALUE", // required
|
|
40
|
+
* NextToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
38
42
|
* const command = new ListEndpointsByPlatformApplicationCommand(input);
|
|
39
43
|
* const response = await client.send(command);
|
|
40
44
|
* ```
|
|
@@ -28,6 +28,10 @@ export interface ListOriginationNumbersCommandOutput extends ListOriginationNumb
|
|
|
28
28
|
* import { SNSClient, ListOriginationNumbersCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
29
29
|
* // const { SNSClient, ListOriginationNumbersCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
30
30
|
* const client = new SNSClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* NextToken: "STRING_VALUE",
|
|
33
|
+
* MaxResults: Number("int"),
|
|
34
|
+
* };
|
|
31
35
|
* const command = new ListOriginationNumbersCommand(input);
|
|
32
36
|
* const response = await client.send(command);
|
|
33
37
|
* ```
|
|
@@ -33,6 +33,9 @@ export interface ListPhoneNumbersOptedOutCommandOutput extends ListPhoneNumbersO
|
|
|
33
33
|
* import { SNSClient, ListPhoneNumbersOptedOutCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
34
34
|
* // const { SNSClient, ListPhoneNumbersOptedOutCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
35
35
|
* const client = new SNSClient(config);
|
|
36
|
+
* const input = {
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* };
|
|
36
39
|
* const command = new ListPhoneNumbersOptedOutCommand(input);
|
|
37
40
|
* const response = await client.send(command);
|
|
38
41
|
* ```
|
|
@@ -35,6 +35,9 @@ export interface ListPlatformApplicationsCommandOutput extends ListPlatformAppli
|
|
|
35
35
|
* import { SNSClient, ListPlatformApplicationsCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
36
36
|
* // const { SNSClient, ListPlatformApplicationsCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
37
37
|
* const client = new SNSClient(config);
|
|
38
|
+
* const input = {
|
|
39
|
+
* NextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
38
41
|
* const command = new ListPlatformApplicationsCommand(input);
|
|
39
42
|
* const response = await client.send(command);
|
|
40
43
|
* ```
|
|
@@ -35,6 +35,10 @@ export interface ListSMSSandboxPhoneNumbersCommandOutput extends ListSMSSandboxP
|
|
|
35
35
|
* import { SNSClient, ListSMSSandboxPhoneNumbersCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
36
36
|
* // const { SNSClient, ListSMSSandboxPhoneNumbersCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
37
37
|
* const client = new SNSClient(config);
|
|
38
|
+
* const input = {
|
|
39
|
+
* NextToken: "STRING_VALUE",
|
|
40
|
+
* MaxResults: Number("int"),
|
|
41
|
+
* };
|
|
38
42
|
* const command = new ListSMSSandboxPhoneNumbersCommand(input);
|
|
39
43
|
* const response = await client.send(command);
|
|
40
44
|
* ```
|
|
@@ -30,6 +30,10 @@ export interface ListSubscriptionsByTopicCommandOutput extends ListSubscriptions
|
|
|
30
30
|
* import { SNSClient, ListSubscriptionsByTopicCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
31
31
|
* // const { SNSClient, ListSubscriptionsByTopicCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
32
32
|
* const client = new SNSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* TopicArn: "STRING_VALUE", // required
|
|
35
|
+
* NextToken: "STRING_VALUE",
|
|
36
|
+
* };
|
|
33
37
|
* const command = new ListSubscriptionsByTopicCommand(input);
|
|
34
38
|
* const response = await client.send(command);
|
|
35
39
|
* ```
|
|
@@ -30,6 +30,9 @@ export interface ListSubscriptionsCommandOutput extends ListSubscriptionsRespons
|
|
|
30
30
|
* import { SNSClient, ListSubscriptionsCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
31
31
|
* // const { SNSClient, ListSubscriptionsCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
32
32
|
* const client = new SNSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* NextToken: "STRING_VALUE",
|
|
35
|
+
* };
|
|
33
36
|
* const command = new ListSubscriptionsCommand(input);
|
|
34
37
|
* const response = await client.send(command);
|
|
35
38
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
27
27
|
* import { SNSClient, ListTagsForResourceCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
28
28
|
* // const { SNSClient, ListTagsForResourceCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
29
29
|
* const client = new SNSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new ListTagsForResourceCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -30,6 +30,9 @@ export interface ListTopicsCommandOutput extends ListTopicsResponse, __MetadataB
|
|
|
30
30
|
* import { SNSClient, ListTopicsCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
31
31
|
* // const { SNSClient, ListTopicsCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
32
32
|
* const client = new SNSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* NextToken: "STRING_VALUE",
|
|
35
|
+
* };
|
|
33
36
|
* const command = new ListTopicsCommand(input);
|
|
34
37
|
* const response = await client.send(command);
|
|
35
38
|
* ```
|
|
@@ -28,6 +28,9 @@ export interface OptInPhoneNumberCommandOutput extends OptInPhoneNumberResponse,
|
|
|
28
28
|
* import { SNSClient, OptInPhoneNumberCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
29
29
|
* // const { SNSClient, OptInPhoneNumberCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
30
30
|
* const client = new SNSClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* phoneNumber: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
31
34
|
* const command = new OptInPhoneNumberCommand(input);
|
|
32
35
|
* const response = await client.send(command);
|
|
33
36
|
* ```
|
|
@@ -46,6 +46,26 @@ export interface PublishBatchCommandOutput extends PublishBatchResponse, __Metad
|
|
|
46
46
|
* import { SNSClient, PublishBatchCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
47
47
|
* // const { SNSClient, PublishBatchCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
48
48
|
* const client = new SNSClient(config);
|
|
49
|
+
* const input = {
|
|
50
|
+
* TopicArn: "STRING_VALUE", // required
|
|
51
|
+
* PublishBatchRequestEntries: [ // required
|
|
52
|
+
* {
|
|
53
|
+
* Id: "STRING_VALUE", // required
|
|
54
|
+
* Message: "STRING_VALUE", // required
|
|
55
|
+
* Subject: "STRING_VALUE",
|
|
56
|
+
* MessageStructure: "STRING_VALUE",
|
|
57
|
+
* MessageAttributes: {
|
|
58
|
+
* "<keys>": {
|
|
59
|
+
* DataType: "STRING_VALUE", // required
|
|
60
|
+
* StringValue: "STRING_VALUE",
|
|
61
|
+
* BinaryValue: "BLOB_VALUE",
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* MessageDeduplicationId: "STRING_VALUE",
|
|
65
|
+
* MessageGroupId: "STRING_VALUE",
|
|
66
|
+
* },
|
|
67
|
+
* ],
|
|
68
|
+
* };
|
|
49
69
|
* const command = new PublishBatchCommand(input);
|
|
50
70
|
* const response = await client.send(command);
|
|
51
71
|
* ```
|
|
@@ -43,6 +43,23 @@ export interface PublishCommandOutput extends PublishResponse, __MetadataBearer
|
|
|
43
43
|
* import { SNSClient, PublishCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
44
44
|
* // const { SNSClient, PublishCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
45
45
|
* const client = new SNSClient(config);
|
|
46
|
+
* const input = {
|
|
47
|
+
* TopicArn: "STRING_VALUE",
|
|
48
|
+
* TargetArn: "STRING_VALUE",
|
|
49
|
+
* PhoneNumber: "STRING_VALUE",
|
|
50
|
+
* Message: "STRING_VALUE", // required
|
|
51
|
+
* Subject: "STRING_VALUE",
|
|
52
|
+
* MessageStructure: "STRING_VALUE",
|
|
53
|
+
* MessageAttributes: {
|
|
54
|
+
* "<keys>": {
|
|
55
|
+
* DataType: "STRING_VALUE", // required
|
|
56
|
+
* StringValue: "STRING_VALUE",
|
|
57
|
+
* BinaryValue: "BLOB_VALUE",
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* MessageDeduplicationId: "STRING_VALUE",
|
|
61
|
+
* MessageGroupId: "STRING_VALUE",
|
|
62
|
+
* };
|
|
46
63
|
* const command = new PublishCommand(input);
|
|
47
64
|
* const response = await client.send(command);
|
|
48
65
|
* ```
|
|
@@ -27,6 +27,10 @@ export interface PutDataProtectionPolicyCommandOutput extends __MetadataBearer {
|
|
|
27
27
|
* import { SNSClient, PutDataProtectionPolicyCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
28
28
|
* // const { SNSClient, PutDataProtectionPolicyCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
29
29
|
* const client = new SNSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
32
|
+
* DataProtectionPolicy: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
30
34
|
* const command = new PutDataProtectionPolicyCommand(input);
|
|
31
35
|
* const response = await client.send(command);
|
|
32
36
|
* ```
|
|
@@ -31,6 +31,10 @@ export interface RemovePermissionCommandOutput extends __MetadataBearer {
|
|
|
31
31
|
* import { SNSClient, RemovePermissionCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
32
32
|
* // const { SNSClient, RemovePermissionCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
33
33
|
* const client = new SNSClient(config);
|
|
34
|
+
* const input = {
|
|
35
|
+
* TopicArn: "STRING_VALUE", // required
|
|
36
|
+
* Label: "STRING_VALUE", // required
|
|
37
|
+
* };
|
|
34
38
|
* const command = new RemovePermissionCommand(input);
|
|
35
39
|
* const response = await client.send(command);
|
|
36
40
|
* ```
|
|
@@ -28,6 +28,12 @@ export interface SetEndpointAttributesCommandOutput extends __MetadataBearer {
|
|
|
28
28
|
* import { SNSClient, SetEndpointAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
29
29
|
* // const { SNSClient, SetEndpointAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
30
30
|
* const client = new SNSClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* EndpointArn: "STRING_VALUE", // required
|
|
33
|
+
* Attributes: { // required
|
|
34
|
+
* "<keys>": "STRING_VALUE",
|
|
35
|
+
* },
|
|
36
|
+
* };
|
|
31
37
|
* const command = new SetEndpointAttributesCommand(input);
|
|
32
38
|
* const response = await client.send(command);
|
|
33
39
|
* ```
|
|
@@ -30,6 +30,12 @@ export interface SetPlatformApplicationAttributesCommandOutput extends __Metadat
|
|
|
30
30
|
* import { SNSClient, SetPlatformApplicationAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
31
31
|
* // const { SNSClient, SetPlatformApplicationAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
32
32
|
* const client = new SNSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* PlatformApplicationArn: "STRING_VALUE", // required
|
|
35
|
+
* Attributes: { // required
|
|
36
|
+
* "<keys>": "STRING_VALUE",
|
|
37
|
+
* },
|
|
38
|
+
* };
|
|
33
39
|
* const command = new SetPlatformApplicationAttributesCommand(input);
|
|
34
40
|
* const response = await client.send(command);
|
|
35
41
|
* ```
|
|
@@ -36,6 +36,11 @@ export interface SetSMSAttributesCommandOutput extends SetSMSAttributesResponse,
|
|
|
36
36
|
* import { SNSClient, SetSMSAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
37
37
|
* // const { SNSClient, SetSMSAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
38
38
|
* const client = new SNSClient(config);
|
|
39
|
+
* const input = {
|
|
40
|
+
* attributes: { // required
|
|
41
|
+
* "<keys>": "STRING_VALUE",
|
|
42
|
+
* },
|
|
43
|
+
* };
|
|
39
44
|
* const command = new SetSMSAttributesCommand(input);
|
|
40
45
|
* const response = await client.send(command);
|
|
41
46
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface SetSubscriptionAttributesCommandOutput extends __MetadataBearer
|
|
|
27
27
|
* import { SNSClient, SetSubscriptionAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
28
28
|
* // const { SNSClient, SetSubscriptionAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
29
29
|
* const client = new SNSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* SubscriptionArn: "STRING_VALUE", // required
|
|
32
|
+
* AttributeName: "STRING_VALUE", // required
|
|
33
|
+
* AttributeValue: "STRING_VALUE",
|
|
34
|
+
* };
|
|
30
35
|
* const command = new SetSubscriptionAttributesCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -31,6 +31,11 @@ export interface SetTopicAttributesCommandOutput extends __MetadataBearer {
|
|
|
31
31
|
* import { SNSClient, SetTopicAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
32
32
|
* // const { SNSClient, SetTopicAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
33
33
|
* const client = new SNSClient(config);
|
|
34
|
+
* const input = {
|
|
35
|
+
* TopicArn: "STRING_VALUE", // required
|
|
36
|
+
* AttributeName: "STRING_VALUE", // required
|
|
37
|
+
* AttributeValue: "STRING_VALUE",
|
|
38
|
+
* };
|
|
34
39
|
* const command = new SetTopicAttributesCommand(input);
|
|
35
40
|
* const response = await client.send(command);
|
|
36
41
|
* ```
|
|
@@ -31,6 +31,15 @@ export interface SubscribeCommandOutput extends SubscribeResponse, __MetadataBea
|
|
|
31
31
|
* import { SNSClient, SubscribeCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
32
32
|
* // const { SNSClient, SubscribeCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
33
33
|
* const client = new SNSClient(config);
|
|
34
|
+
* const input = {
|
|
35
|
+
* TopicArn: "STRING_VALUE", // required
|
|
36
|
+
* Protocol: "STRING_VALUE", // required
|
|
37
|
+
* Endpoint: "STRING_VALUE",
|
|
38
|
+
* Attributes: {
|
|
39
|
+
* "<keys>": "STRING_VALUE",
|
|
40
|
+
* },
|
|
41
|
+
* ReturnSubscriptionArn: true || false,
|
|
42
|
+
* };
|
|
34
43
|
* const command = new SubscribeCommand(input);
|
|
35
44
|
* const response = await client.send(command);
|
|
36
45
|
* ```
|
|
@@ -48,6 +48,15 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
48
48
|
* import { SNSClient, TagResourceCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
49
49
|
* // const { SNSClient, TagResourceCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
50
50
|
* const client = new SNSClient(config);
|
|
51
|
+
* const input = {
|
|
52
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
53
|
+
* Tags: [ // required
|
|
54
|
+
* {
|
|
55
|
+
* Key: "STRING_VALUE", // required
|
|
56
|
+
* Value: "STRING_VALUE", // required
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* };
|
|
51
60
|
* const command = new TagResourceCommand(input);
|
|
52
61
|
* const response = await client.send(command);
|
|
53
62
|
* ```
|
|
@@ -37,6 +37,9 @@ export interface UnsubscribeCommandOutput extends __MetadataBearer {
|
|
|
37
37
|
* import { SNSClient, UnsubscribeCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
38
38
|
* // const { SNSClient, UnsubscribeCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
39
39
|
* const client = new SNSClient(config);
|
|
40
|
+
* const input = {
|
|
41
|
+
* SubscriptionArn: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
40
43
|
* const command = new UnsubscribeCommand(input);
|
|
41
44
|
* const response = await client.send(command);
|
|
42
45
|
* ```
|
|
@@ -27,6 +27,12 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
27
27
|
* import { SNSClient, UntagResourceCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
28
28
|
* // const { SNSClient, UntagResourceCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
29
29
|
* const client = new SNSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
32
|
+
* TagKeys: [ // required
|
|
33
|
+
* "STRING_VALUE",
|
|
34
|
+
* ],
|
|
35
|
+
* };
|
|
30
36
|
* const command = new UntagResourceCommand(input);
|
|
31
37
|
* const response = await client.send(command);
|
|
32
38
|
* ```
|
|
@@ -35,6 +35,10 @@ export interface VerifySMSSandboxPhoneNumberCommandOutput extends VerifySMSSandb
|
|
|
35
35
|
* import { SNSClient, VerifySMSSandboxPhoneNumberCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
36
36
|
* // const { SNSClient, VerifySMSSandboxPhoneNumberCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
37
37
|
* const client = new SNSClient(config);
|
|
38
|
+
* const input = {
|
|
39
|
+
* PhoneNumber: "STRING_VALUE", // required
|
|
40
|
+
* OneTimePassword: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
38
42
|
* const command = new VerifySMSSandboxPhoneNumberCommand(input);
|
|
39
43
|
* const response = await client.send(command);
|
|
40
44
|
* ```
|
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.
|
|
4
|
+
"version": "3.300.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.300.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.300.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.300.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@aws-sdk/middleware-host-header": "3.296.0",
|
|
33
33
|
"@aws-sdk/middleware-logger": "3.296.0",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "3.296.0",
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.300.0",
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.296.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.299.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.296.0",
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.299.0",
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.300.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.296.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.296.0",
|
|
43
43
|
"@aws-sdk/smithy-client": "3.296.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.295.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.295.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-browser": "3.296.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.300.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.296.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.296.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.299.0",
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.300.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.295.0",
|
|
56
56
|
"fast-xml-parser": "4.1.2",
|
|
57
57
|
"tslib": "^2.5.0"
|