Skip to content

Commit 749eb13

Browse files
author
awstools
committed
docs(client-sns): Amazon SNS support for Amazon SQS fair queues
1 parent 39e204f commit 749eb13

File tree

8 files changed

+213
-83
lines changed

8 files changed

+213
-83
lines changed

clients/client-sns/src/commands/ConfirmSubscriptionCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface ConfirmSubscriptionCommandOutput extends ConfirmSubscriptionRes
6363
*
6464
* @throws {@link FilterPolicyLimitExceededException} (client fault)
6565
* <p>Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. To
66-
* add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web Services Support
66+
* add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web ServicesSupport
6767
* Center.</p>
6868
*
6969
* @throws {@link InternalErrorException} (server fault)

clients/client-sns/src/commands/CreatePlatformApplicationCommand.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ export interface CreatePlatformApplicationCommandOutput extends CreatePlatformAp
6363
* <li>
6464
* <p>For GCM (Firebase Cloud Messaging) using token credentials, there is no
6565
* <code>PlatformPrincipal</code>. The <code>PlatformCredential</code> is a
66-
* JSON formatted private key file. When using the Amazon Web Services CLI, the file must be in
67-
* string format and special characters must be ignored. To format the file
68-
* correctly, Amazon SNS recommends using the following command: <code>SERVICE_JSON=`jq
69-
* @json <<< cat service.json`</code>.</p>
66+
* JSON formatted private key file. When using the Amazon Web Services CLI or Amazon Web Services SDKs, the
67+
* file must be in string format and special characters must be ignored. To format
68+
* the file correctly, Amazon SNS recommends using the following command:
69+
* <code>SERVICE_JSON=$(jq @json < service.json)</code>.</p>
7070
* </li>
7171
* <li>
7272
* <p>For MPNS, <code>PlatformPrincipal</code> is <code>TLS certificate</code> and

clients/client-sns/src/commands/PublishBatchCommand.ts

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,40 @@ export interface PublishBatchCommandInput extends PublishBatchInput {}
2828
export interface PublishBatchCommandOutput extends PublishBatchResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Publishes up to ten messages to the specified topic. This is a batch version of
32-
* <code>Publish</code>. For FIFO topics, multiple messages within a single batch are
33-
* published in the order they are sent, and messages are deduplicated within the batch and
34-
* across batches for 5 minutes.</p>
31+
* <p>Publishes up to 10 messages to the specified topic in a single batch. This is a batch
32+
* version of the <code>Publish</code> API. If you try to send more than 10 messages in a
33+
* single batch request, you will receive a <code>TooManyEntriesInBatchRequest</code>
34+
* exception.</p>
35+
* <p>For FIFO topics, multiple messages within a single batch are published in the order
36+
* they are sent, and messages are deduplicated within the batch and across batches for
37+
* five minutes.</p>
3538
* <p>The result of publishing each message is reported individually in the response.
3639
* Because the batch request can result in a combination of successful and unsuccessful
3740
* actions, you should check for batch errors even when the call returns an HTTP status
38-
* code of <code>200</code>.</p>
39-
* <p>The maximum allowed individual message size and the maximum total payload size (the
40-
* sum of the individual lengths of all of the batched messages) are both 256 KB (262,144
41-
* bytes). </p>
41+
* code of 200.</p>
42+
* <p>The maximum allowed individual message size and the maximum total payload size (the sum
43+
* of the individual lengths of all of the batched messages) are both 256 KB (262,144
44+
* bytes).</p>
45+
* <important>
46+
* <p>The <code>PublishBatch</code> API can send up to 10 messages at a time. If you
47+
* attempt to send more than 10 messages in one request, you will encounter a
48+
* <code>TooManyEntriesInBatchRequest</code> exception. In such cases, split your
49+
* messages into multiple requests, each containing no more than 10 messages.</p>
50+
* </important>
4251
* <p>Some actions take lists of parameters. These lists are specified using the
4352
* <code>param.n</code> notation. Values of <code>n</code> are integers starting from
44-
* 1. For example, a parameter list with two elements looks like this: </p>
45-
* <p>&AttributeName.1=first</p>
46-
* <p>&AttributeName.2=second</p>
53+
* <b>1</b>. For example, a parameter list with two elements
54+
* looks like this:</p>
55+
* <p>
56+
* <code>&AttributeName.1=first</code>
57+
* </p>
58+
* <p>
59+
* <code>&AttributeName.2=second</code>
60+
* </p>
4761
* <p>If you send a batch message to a topic, Amazon SNS publishes the batch message to each
4862
* endpoint that is subscribed to the topic. The format of the batch message depends on the
4963
* notification protocol for each subscribed endpoint.</p>
50-
* <p>When a <code>messageId</code> is returned, the batch message is saved and Amazon SNS
64+
* <p>When a <code>messageId</code> is returned, the batch message is saved, and Amazon SNS
5165
* immediately delivers the message to subscribers.</p>
5266
* @example
5367
* Use a bare-bones client and the command you need to make an API call.
@@ -168,7 +182,7 @@ export interface PublishBatchCommandOutput extends PublishBatchResponse, __Metad
168182
* <p>Exception error indicating platform application disabled.</p>
169183
*
170184
* @throws {@link TooManyEntriesInBatchRequestException} (client fault)
171-
* <p>The batch request contains more entries than permissible.</p>
185+
* <p> The batch request contains more entries than permissible (more than 10).</p>
172186
*
173187
* @throws {@link ValidationException} (client fault)
174188
* <p>Indicates that a parameter in the request is invalid.</p>

clients/client-sns/src/commands/SetSubscriptionAttributesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface SetSubscriptionAttributesCommandOutput extends __MetadataBearer
5858
*
5959
* @throws {@link FilterPolicyLimitExceededException} (client fault)
6060
* <p>Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. To
61-
* add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web Services Support
61+
* add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web ServicesSupport
6262
* Center.</p>
6363
*
6464
* @throws {@link InternalErrorException} (server fault)

clients/client-sns/src/commands/SubscribeCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export interface SubscribeCommandOutput extends SubscribeResponse, __MetadataBea
6868
*
6969
* @throws {@link FilterPolicyLimitExceededException} (client fault)
7070
* <p>Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. To
71-
* add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web Services Support
71+
* add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web ServicesSupport
7272
* Center.</p>
7373
*
7474
* @throws {@link InternalErrorException} (server fault)

clients/client-sns/src/commands/UnsubscribeCommand.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ export interface UnsubscribeCommandOutput extends __MetadataBearer {}
3434
* authentication and the requester is not the subscription owner, a final cancellation
3535
* message is delivered to the endpoint, so that the endpoint owner can easily resubscribe
3636
* to the topic if the <code>Unsubscribe</code> request was unintended.</p>
37-
* <note>
38-
* <p>Amazon SQS queue subscriptions require authentication for deletion. Only the owner of
39-
* the subscription, or the owner of the topic can unsubscribe using the required Amazon Web Services
40-
* signature.</p>
41-
* </note>
4237
* <p>This action is throttled at 100 transactions per second (TPS).</p>
4338
* @example
4439
* Use a bare-bones client and the command you need to make an API call.

0 commit comments

Comments
 (0)