11/*
2- * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License").
55 * You may not use this file except in compliance with the License.
@@ -193,6 +193,7 @@ CheckIfPhoneNumberIsOptedOutResult checkIfPhoneNumberIsOptedOut(
193193 * @throws InternalErrorException
194194 * @throws AuthorizationErrorException
195195 * @throws FilterPolicyLimitExceededException
196+ * @throws ReplayLimitExceededException
196197 * @throws AmazonClientException If any internal errors are encountered
197198 * inside the client while attempting to make the request or
198199 * handle the response. For example if a network connection is
@@ -220,51 +221,57 @@ ConfirmSubscriptionResult confirmSubscription(
220221 * <ul>
221222 * <li>
222223 * <p>
223- * For <code>ADM</code>, <code>PlatformPrincipal</code> is
224- * <code>client id</code> and <code>PlatformCredential</code> is
225- * <code>client secret</code>.
224+ * For ADM, <code>PlatformPrincipal</code> is <code>client id</code> and
225+ * <code>PlatformCredential</code> is <code>client secret</code>.
226226 * </p>
227227 * </li>
228228 * <li>
229229 * <p>
230- * For <code>Baidu</code>, <code>PlatformPrincipal </code> is
231- * <code>API key </code> and <code>PlatformCredential </code> is
232- * <code>secret key</code>.
230+ * For APNS and <code>APNS_SANDBOX </code> using certificate credentials,
231+ * <code>PlatformPrincipal </code> is <code>SSL certificate </code> and
232+ * <code>PlatformCredential</code> is <code>private key</code>.
233233 * </p>
234234 * </li>
235235 * <li>
236236 * <p>
237- * For <code>APNS</code> and <code>APNS_SANDBOX</code> using certificate
238- * credentials, <code>PlatformPrincipal</code> is
239- * <code>SSL certificate</code> and <code>PlatformCredential</code> is
240- * <code>private key</code>.
237+ * For APNS and <code>APNS_SANDBOX</code> using token credentials,
238+ * <code>PlatformPrincipal</code> is <code>signing key ID</code> and
239+ * <code>PlatformCredential</code> is <code>signing key</code>.
241240 * </p>
242241 * </li>
243242 * <li>
244243 * <p>
245- * For <code>APNS</code> and <code>APNS_SANDBOX</code> using token
246- * credentials, <code>PlatformPrincipal</code> is
247- * <code>signing key ID</code> and <code>PlatformCredential</code> is
248- * <code>signing key</code>.
244+ * For Baidu, <code>PlatformPrincipal</code> is <code>API key</code> and
245+ * <code>PlatformCredential</code> is <code>secret key</code>.
249246 * </p>
250247 * </li>
251248 * <li>
252249 * <p>
253- * For <code> GCM</code> (Firebase Cloud Messaging), there is no
254- * <code>PlatformPrincipal</code> and the <code>PlatformCredential</code> is
250+ * For GCM (Firebase Cloud Messaging) using key credentials , there is no
251+ * <code>PlatformPrincipal</code>. The <code>PlatformCredential</code> is
255252 * <code>API key</code>.
256253 * </p>
257254 * </li>
258255 * <li>
259256 * <p>
260- * For <code>MPNS</code>, <code>PlatformPrincipal</code> is
261- * <code>TLS certificate</code> and <code>PlatformCredential</code> is
262- * <code>private key</code>.
257+ * For GCM (Firebase Cloud Messaging) using token credentials, there is no
258+ * <code>PlatformPrincipal</code>. The <code>PlatformCredential</code> is a
259+ * JSON formatted private key file. When using the Amazon Web Services CLI,
260+ * the file must be in string format and special characters must be ignored.
261+ * To format the file correctly, Amazon SNS recommends using the following
262+ * command:
263+ * <code>SERVICE_JSON=`jq @json <<< cat service.json`</code>.
264+ * </p>
265+ * </li>
266+ * <li>
267+ * <p>
268+ * For MPNS, <code>PlatformPrincipal</code> is <code>TLS certificate</code>
269+ * and <code>PlatformCredential</code> is <code>private key</code>.
263270 * </p>
264271 * </li>
265272 * <li>
266273 * <p>
267- * For <code> WNS</code> , <code>PlatformPrincipal</code> is
274+ * For WNS, <code>PlatformPrincipal</code> is
268275 * <code>Package Security Identifier</code> and
269276 * <code>PlatformCredential</code> is <code>secret key</code>.
270277 * </p>
@@ -432,7 +439,7 @@ CreateTopicResult createTopic(CreateTopicRequest createTopicRequest)
432439 * </p>
433440 *
434441 * @param deleteEndpointRequest <p>
435- * Input for DeleteEndpoint action.
442+ * Input for <code> DeleteEndpoint</code> action.
436443 * </p>
437444 * @throws InvalidParameterException
438445 * @throws InternalErrorException
@@ -458,7 +465,7 @@ void deleteEndpoint(DeleteEndpointRequest deleteEndpointRequest) throws AmazonCl
458465 * </p>
459466 *
460467 * @param deletePlatformApplicationRequest <p>
461- * Input for DeletePlatformApplication action.
468+ * Input for <code> DeletePlatformApplication</code> action.
462469 * </p>
463470 * @throws InvalidParameterException
464471 * @throws InternalErrorException
@@ -524,6 +531,7 @@ DeleteSMSSandboxPhoneNumberResult deleteSMSSandboxPhoneNumber(
524531 *
525532 * @param deleteTopicRequest
526533 * @throws InvalidParameterException
534+ * @throws InvalidStateException
527535 * @throws InternalErrorException
528536 * @throws AuthorizationErrorException
529537 * @throws NotFoundException
@@ -578,7 +586,7 @@ GetDataProtectionPolicyResult getDataProtectionPolicy(
578586 * </p>
579587 *
580588 * @param getEndpointAttributesRequest <p>
581- * Input for GetEndpointAttributes action.
589+ * Input for <code> GetEndpointAttributes</code> action.
582590 * </p>
583591 * @return getEndpointAttributesResult The response from the
584592 * GetEndpointAttributes service method, as returned by Amazon
@@ -609,7 +617,8 @@ GetEndpointAttributesResult getEndpointAttributes(
609617 * </p>
610618 *
611619 * @param getPlatformApplicationAttributesRequest <p>
612- * Input for GetPlatformApplicationAttributes action.
620+ * Input for <code>GetPlatformApplicationAttributes</code>
621+ * action.
613622 * </p>
614623 * @return getPlatformApplicationAttributesResult The response from the
615624 * GetPlatformApplicationAttributes service method, as returned by
@@ -771,7 +780,8 @@ GetTopicAttributesResult getTopicAttributes(GetTopicAttributesRequest getTopicAt
771780 * </p>
772781 *
773782 * @param listEndpointsByPlatformApplicationRequest <p>
774- * Input for ListEndpointsByPlatformApplication action.
783+ * Input for <code>ListEndpointsByPlatformApplication</code>
784+ * action.
775785 * </p>
776786 * @return listEndpointsByPlatformApplicationResult The response from the
777787 * ListEndpointsByPlatformApplication service method, as returned by
@@ -879,7 +889,7 @@ ListPhoneNumbersOptedOutResult listPhoneNumbersOptedOut(
879889 * </p>
880890 *
881891 * @param listPlatformApplicationsRequest <p>
882- * Input for ListPlatformApplications action.
892+ * Input for <code> ListPlatformApplications</code> action.
883893 * </p>
884894 * @return listPlatformApplicationsResult The response from the
885895 * ListPlatformApplications service method, as returned by Amazon
@@ -1298,7 +1308,7 @@ void removePermission(RemovePermissionRequest removePermissionRequest)
12981308 * </p>
12991309 *
13001310 * @param setEndpointAttributesRequest <p>
1301- * Input for SetEndpointAttributes action.
1311+ * Input for <code> SetEndpointAttributes</code> action.
13021312 * </p>
13031313 * @throws InvalidParameterException
13041314 * @throws InternalErrorException
@@ -1328,7 +1338,8 @@ void setEndpointAttributes(SetEndpointAttributesRequest setEndpointAttributesReq
13281338 * </p>
13291339 *
13301340 * @param setPlatformApplicationAttributesRequest <p>
1331- * Input for SetPlatformApplicationAttributes action.
1341+ * Input for <code>SetPlatformApplicationAttributes</code>
1342+ * action.
13321343 * </p>
13331344 * @throws InvalidParameterException
13341345 * @throws InternalErrorException
@@ -1400,6 +1411,7 @@ SetSMSAttributesResult setSMSAttributes(SetSMSAttributesRequest setSMSAttributes
14001411 * </p>
14011412 * @throws InvalidParameterException
14021413 * @throws FilterPolicyLimitExceededException
1414+ * @throws ReplayLimitExceededException
14031415 * @throws InternalErrorException
14041416 * @throws NotFoundException
14051417 * @throws AuthorizationErrorException
@@ -1455,7 +1467,7 @@ void setTopicAttributes(SetTopicAttributesRequest setTopicAttributesRequest)
14551467 * </p>
14561468 * <p>
14571469 * You call the <code>ConfirmSubscription</code> action with the token from
1458- * the subscription response. Confirmation tokens are valid for three days.
1470+ * the subscription response. Confirmation tokens are valid for two days.
14591471 * </p>
14601472 * <p>
14611473 * This action is throttled at 100 transactions per second (TPS).
@@ -1468,6 +1480,7 @@ void setTopicAttributes(SetTopicAttributesRequest setTopicAttributesRequest)
14681480 * as returned by Amazon Simple Notification Service.
14691481 * @throws SubscriptionLimitExceededException
14701482 * @throws FilterPolicyLimitExceededException
1483+ * @throws ReplayLimitExceededException
14711484 * @throws InvalidParameterException
14721485 * @throws InternalErrorException
14731486 * @throws NotFoundException
@@ -1730,8 +1743,8 @@ VerifySMSSandboxPhoneNumberResult verifySMSSandboxPhoneNumber(
17301743 * </li>
17311744 * </ul>
17321745 * <p>
1733- * The following attribute applies only to Amazon Kinesis Data
1734- * Firehose delivery stream subscriptions:
1746+ * The following attribute applies only to Amazon Data Firehose
1747+ * delivery stream subscriptions:
17351748 * </p>
17361749 * <ul>
17371750 * <li>
@@ -1742,8 +1755,7 @@ VerifySMSSandboxPhoneNumberResult verifySMSSandboxPhoneNumber(
17421755 * <ul>
17431756 * <li>
17441757 * <p>
1745- * Permission to write to the Kinesis Data Firehose delivery
1746- * stream
1758+ * Permission to write to the Firehose delivery stream
17471759 * </p>
17481760 * </li>
17491761 * <li>
@@ -1754,11 +1766,11 @@ VerifySMSSandboxPhoneNumberResult verifySMSSandboxPhoneNumber(
17541766 * </ul>
17551767 * <p>
17561768 * Specifying a valid ARN for this attribute is required for
1757- * Kinesis Data Firehose delivery stream subscriptions. For more
1758- * information, see <a href=
1769+ * Firehose delivery stream subscriptions. For more information,
1770+ * see <a href=
17591771 * "https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html"
1760- * >Fanout to Kinesis Data Firehose delivery streams</a> in the
1761- * <i>Amazon SNS Developer Guide</i>.
1772+ * >Fanout to Firehose delivery streams</a> in the <i>Amazon SNS
1773+ * Developer Guide</i>.
17621774 * </p>
17631775 * </li>
17641776 * </ul>
@@ -1767,6 +1779,7 @@ VerifySMSSandboxPhoneNumberResult verifySMSSandboxPhoneNumber(
17671779 * </p>
17681780 * @throws InvalidParameterException
17691781 * @throws FilterPolicyLimitExceededException
1782+ * @throws ReplayLimitExceededException
17701783 * @throws InternalErrorException
17711784 * @throws NotFoundException
17721785 * @throws AuthorizationErrorException
@@ -1816,7 +1829,7 @@ GetSubscriptionAttributesResult getSubscriptionAttributes(String subscriptionArn
18161829 * </p>
18171830 * <p>
18181831 * You call the <code>ConfirmSubscription</code> action with the token from
1819- * the subscription response. Confirmation tokens are valid for three days.
1832+ * the subscription response. Confirmation tokens are valid for two days.
18201833 * </p>
18211834 * <p>
18221835 * This action is throttled at 100 transactions per second (TPS).
@@ -1947,6 +1960,7 @@ GetSubscriptionAttributesResult getSubscriptionAttributes(String subscriptionArn
19471960 * as returned by Amazon Simple Notification Service.
19481961 * @throws SubscriptionLimitExceededException
19491962 * @throws FilterPolicyLimitExceededException
1963+ * @throws ReplayLimitExceededException
19501964 * @throws InvalidParameterException
19511965 * @throws InternalErrorException
19521966 * @throws NotFoundException
@@ -2167,6 +2181,7 @@ ListTopicsResult listTopics(String nextToken) throws AmazonClientException,
21672181 * @throws InternalErrorException
21682182 * @throws AuthorizationErrorException
21692183 * @throws FilterPolicyLimitExceededException
2184+ * @throws ReplayLimitExceededException
21702185 * @throws AmazonClientException If any internal errors are encountered
21712186 * inside the client while attempting to make the request or
21722187 * handle the response. For example if a network connection is
@@ -2204,6 +2219,7 @@ ConfirmSubscriptionResult confirmSubscription(String topicArn, String token,
22042219 * @throws InternalErrorException
22052220 * @throws AuthorizationErrorException
22062221 * @throws FilterPolicyLimitExceededException
2222+ * @throws ReplayLimitExceededException
22072223 * @throws AmazonClientException If any internal errors are encountered
22082224 * inside the client while attempting to make the request or
22092225 * handle the response. For example if a network connection is
@@ -2592,6 +2608,7 @@ void setTopicAttributes(String topicArn, String attributeName, String attributeV
25922608 * The ARN of the topic you want to delete.
25932609 * </p>
25942610 * @throws InvalidParameterException
2611+ * @throws InvalidStateException
25952612 * @throws InternalErrorException
25962613 * @throws AuthorizationErrorException
25972614 * @throws NotFoundException
@@ -2971,10 +2988,8 @@ PublishResult publish(String topicArn, String message) throws AmazonClientExcept
29712988 * delivered to other endpoints.
29722989 * </p>
29732990 * <p>
2974- * Constraints: Subjects must be ASCII text that begins with a
2975- * letter, number, or punctuation mark; must not include line
2976- * breaks or control characters; and must be less than 100
2977- * characters long.
2991+ * Constraints: Subjects must be UTF-8 text with no line breaks
2992+ * or control characters, and less than 100 characters long.
29782993 * </p>
29792994 * @return publishResult The response from the Publish service method, as
29802995 * returned by Amazon Simple Notification Service.
0 commit comments