Skip to content

Commit 440525c

Browse files
awsmobilesdkraphkim
authored andcommitted
feat(aws-android-sdk-sns): update models to latest (#2204)
1 parent f850e9c commit 440525c

13 files changed

+1672
-37
lines changed

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNS.java

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ CreatePlatformEndpointResult createPlatformEndpoint(
322322
/**
323323
* <p>
324324
* Creates a topic to which notifications can be published. Users can create
325-
* at most 100,000 topics. For more information, see <a
325+
* at most 100,000 standard topics (at most 1,000 FIFO topics). For more
326+
* information, see <a
326327
* href="http://aws.amazon.com/sns/">https://aws.amazon.com/sns</a>. This
327328
* action is idempotent, so if the requester already owns a topic with the
328329
* specified name, that topic's ARN is returned without creating a new
@@ -1010,7 +1011,8 @@ void setPlatformApplicationAttributes(
10101011
* <code>MessageAttributes.entry.N</code> parameter. For more information,
10111012
* see <a href=
10121013
* "https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html"
1013-
* >Sending an SMS Message</a> in the <i>Amazon SNS Developer Guide</i>.
1014+
* >Publishing to a mobile phone</a> in the <i>Amazon SNS Developer
1015+
* Guide</i>.
10141016
* </p>
10151017
*
10161018
* @param setSMSAttributesRequest <p>
@@ -1765,7 +1767,7 @@ ConfirmSubscriptionResult confirmSubscription(String topicArn, String token)
17651767
* <ul>
17661768
* <li>
17671769
* <p>
1768-
* <code>KmsMasterKeyId</code> - The ID of an AWS-managed
1770+
* <code>KmsMasterKeyId</code> The ID of an AWS-managed
17691771
* customer master key (CMK) for Amazon SNS or a custom CMK. For
17701772
* more information, see <a href=
17711773
* "https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms"
@@ -1776,6 +1778,45 @@ ConfirmSubscriptionResult confirmSubscription(String topicArn, String token)
17761778
* </p>
17771779
* </li>
17781780
* </ul>
1781+
* <p>
1782+
* The following attribute applies only to <a href=
1783+
* "https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html"
1784+
* >FIFO topics</a>:
1785+
* </p>
1786+
* <ul>
1787+
* <li>
1788+
* <p>
1789+
* <code>ContentBasedDeduplication</code> – Enables content-based
1790+
* deduplication for FIFO topics.
1791+
* </p>
1792+
* <ul>
1793+
* <li>
1794+
* <p>
1795+
* By default, <code>ContentBasedDeduplication</code> is set to
1796+
* <code>false</code>. If you create a FIFO topic and this
1797+
* attribute is <code>false</code>, you must specify a value for
1798+
* the <code>MessageDeduplicationId</code> parameter for the <a
1799+
* href=
1800+
* "https://docs.aws.amazon.com/sns/latest/api/API_Publish.html"
1801+
* >Publish</a> action.
1802+
* </p>
1803+
* </li>
1804+
* <li>
1805+
* <p>
1806+
* When you set <code>ContentBasedDeduplication</code> to
1807+
* <code>true</code>, Amazon SNS uses a SHA-256 hash to generate
1808+
* the <code>MessageDeduplicationId</code> using the body of the
1809+
* message (but not the attributes of the message).
1810+
* </p>
1811+
* <p>
1812+
* (Optional) To override the generated value, you can specify a
1813+
* value for the the <code>MessageDeduplicationId</code>
1814+
* parameter for the <code>Publish</code> action.
1815+
* </p>
1816+
* </li>
1817+
* </ul>
1818+
* </li>
1819+
* </ul>
17791820
* @param attributeValue <p>
17801821
* The new value for the attribute.
17811822
* </p>
@@ -1798,7 +1839,8 @@ void setTopicAttributes(String topicArn, String attributeName, String attributeV
17981839
/**
17991840
* <p>
18001841
* Creates a topic to which notifications can be published. Users can create
1801-
* at most 100,000 topics. For more information, see <a
1842+
* at most 100,000 standard topics (at most 1,000 FIFO topics). For more
1843+
* information, see <a
18021844
* href="http://aws.amazon.com/sns/">https://aws.amazon.com/sns</a>. This
18031845
* action is idempotent, so if the requester already owns a topic with the
18041846
* specified name, that topic's ARN is returned without creating a new
@@ -1813,6 +1855,10 @@ void setTopicAttributes(String topicArn, String attributeName, String attributeV
18131855
* lowercase ASCII letters, numbers, underscores, and hyphens,
18141856
* and must be between 1 and 256 characters long.
18151857
* </p>
1858+
* <p>
1859+
* For a FIFO (first-in-first-out) topic, the name must end with
1860+
* the <code>.fifo</code> suffix.
1861+
* </p>
18161862
* @return createTopicResult The response from the CreateTopic service
18171863
* method, as returned by Amazon Simple Notification Service.
18181864
* @throws InvalidParameterException

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNSAsync.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,8 @@ Future<CreatePlatformEndpointResult> createPlatformEndpointAsync(
514514
/**
515515
* <p>
516516
* Creates a topic to which notifications can be published. Users can create
517-
* at most 100,000 topics. For more information, see <a
517+
* at most 100,000 standard topics (at most 1,000 FIFO topics). For more
518+
* information, see <a
518519
* href="http://aws.amazon.com/sns/">https://aws.amazon.com/sns</a>. This
519520
* action is idempotent, so if the requester already owns a topic with the
520521
* specified name, that topic's ARN is returned without creating a new
@@ -550,7 +551,8 @@ Future<CreateTopicResult> createTopicAsync(CreateTopicRequest createTopicRequest
550551
/**
551552
* <p>
552553
* Creates a topic to which notifications can be published. Users can create
553-
* at most 100,000 topics. For more information, see <a
554+
* at most 100,000 standard topics (at most 1,000 FIFO topics). For more
555+
* information, see <a
554556
* href="http://aws.amazon.com/sns/">https://aws.amazon.com/sns</a>. This
555557
* action is idempotent, so if the requester already owns a topic with the
556558
* specified name, that topic's ARN is returned without creating a new
@@ -2041,7 +2043,8 @@ Future<Void> setPlatformApplicationAttributesAsync(
20412043
* <code>MessageAttributes.entry.N</code> parameter. For more information,
20422044
* see <a href=
20432045
* "https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html"
2044-
* >Sending an SMS Message</a> in the <i>Amazon SNS Developer Guide</i>.
2046+
* >Publishing to a mobile phone</a> in the <i>Amazon SNS Developer
2047+
* Guide</i>.
20452048
* </p>
20462049
*
20472050
* @param setSMSAttributesRequest <p>
@@ -2077,7 +2080,8 @@ Future<SetSMSAttributesResult> setSMSAttributesAsync(
20772080
* <code>MessageAttributes.entry.N</code> parameter. For more information,
20782081
* see <a href=
20792082
* "https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html"
2080-
* >Sending an SMS Message</a> in the <i>Amazon SNS Developer Guide</i>.
2083+
* >Publishing to a mobile phone</a> in the <i>Amazon SNS Developer
2084+
* Guide</i>.
20812085
* </p>
20822086
*
20832087
* @param setSMSAttributesRequest <p>

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNSAsyncClient.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,8 @@ public CreatePlatformEndpointResult call() throws Exception {
821821
/**
822822
* <p>
823823
* Creates a topic to which notifications can be published. Users can create
824-
* at most 100,000 topics. For more information, see <a
824+
* at most 100,000 standard topics (at most 1,000 FIFO topics). For more
825+
* information, see <a
825826
* href="http://aws.amazon.com/sns/">https://aws.amazon.com/sns</a>. This
826827
* action is idempotent, so if the requester already owns a topic with the
827828
* specified name, that topic's ARN is returned without creating a new
@@ -863,7 +864,8 @@ public CreateTopicResult call() throws Exception {
863864
/**
864865
* <p>
865866
* Creates a topic to which notifications can be published. Users can create
866-
* at most 100,000 topics. For more information, see <a
867+
* at most 100,000 standard topics (at most 1,000 FIFO topics). For more
868+
* information, see <a
867869
* href="http://aws.amazon.com/sns/">https://aws.amazon.com/sns</a>. This
868870
* action is idempotent, so if the requester already owns a topic with the
869871
* specified name, that topic's ARN is returned without creating a new
@@ -2691,7 +2693,8 @@ public Void call() throws Exception {
26912693
* <code>MessageAttributes.entry.N</code> parameter. For more information,
26922694
* see <a href=
26932695
* "https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html"
2694-
* >Sending an SMS Message</a> in the <i>Amazon SNS Developer Guide</i>.
2696+
* >Publishing to a mobile phone</a> in the <i>Amazon SNS Developer
2697+
* Guide</i>.
26952698
* </p>
26962699
*
26972700
* @param setSMSAttributesRequest <p>
@@ -2733,7 +2736,8 @@ public SetSMSAttributesResult call() throws Exception {
27332736
* <code>MessageAttributes.entry.N</code> parameter. For more information,
27342737
* see <a href=
27352738
* "https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html"
2736-
* >Sending an SMS Message</a> in the <i>Amazon SNS Developer Guide</i>.
2739+
* >Publishing to a mobile phone</a> in the <i>Amazon SNS Developer
2740+
* Guide</i>.
27372741
* </p>
27382742
*
27392743
* @param setSMSAttributesRequest <p>

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNSClient.java

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,8 @@ public CreatePlatformEndpointResult createPlatformEndpoint(
691691
/**
692692
* <p>
693693
* Creates a topic to which notifications can be published. Users can create
694-
* at most 100,000 topics. For more information, see <a
694+
* at most 100,000 standard topics (at most 1,000 FIFO topics). For more
695+
* information, see <a
695696
* href="http://aws.amazon.com/sns/">https://aws.amazon.com/sns</a>. This
696697
* action is idempotent, so if the requester already owns a topic with the
697698
* specified name, that topic's ARN is returned without creating a new
@@ -1736,7 +1737,8 @@ public void setPlatformApplicationAttributes(
17361737
* <code>MessageAttributes.entry.N</code> parameter. For more information,
17371738
* see <a href=
17381739
* "https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html"
1739-
* >Sending an SMS Message</a> in the <i>Amazon SNS Developer Guide</i>.
1740+
* >Publishing to a mobile phone</a> in the <i>Amazon SNS Developer
1741+
* Guide</i>.
17401742
* </p>
17411743
*
17421744
* @param setSMSAttributesRequest <p>
@@ -2656,7 +2658,7 @@ public ConfirmSubscriptionResult confirmSubscription(String topicArn, String tok
26562658
* <ul>
26572659
* <li>
26582660
* <p>
2659-
* <code>KmsMasterKeyId</code> - The ID of an AWS-managed
2661+
* <code>KmsMasterKeyId</code> The ID of an AWS-managed
26602662
* customer master key (CMK) for Amazon SNS or a custom CMK. For
26612663
* more information, see <a href=
26622664
* "https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms"
@@ -2667,6 +2669,45 @@ public ConfirmSubscriptionResult confirmSubscription(String topicArn, String tok
26672669
* </p>
26682670
* </li>
26692671
* </ul>
2672+
* <p>
2673+
* The following attribute applies only to <a href=
2674+
* "https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html"
2675+
* >FIFO topics</a>:
2676+
* </p>
2677+
* <ul>
2678+
* <li>
2679+
* <p>
2680+
* <code>ContentBasedDeduplication</code> – Enables content-based
2681+
* deduplication for FIFO topics.
2682+
* </p>
2683+
* <ul>
2684+
* <li>
2685+
* <p>
2686+
* By default, <code>ContentBasedDeduplication</code> is set to
2687+
* <code>false</code>. If you create a FIFO topic and this
2688+
* attribute is <code>false</code>, you must specify a value for
2689+
* the <code>MessageDeduplicationId</code> parameter for the <a
2690+
* href=
2691+
* "https://docs.aws.amazon.com/sns/latest/api/API_Publish.html"
2692+
* >Publish</a> action.
2693+
* </p>
2694+
* </li>
2695+
* <li>
2696+
* <p>
2697+
* When you set <code>ContentBasedDeduplication</code> to
2698+
* <code>true</code>, Amazon SNS uses a SHA-256 hash to generate
2699+
* the <code>MessageDeduplicationId</code> using the body of the
2700+
* message (but not the attributes of the message).
2701+
* </p>
2702+
* <p>
2703+
* (Optional) To override the generated value, you can specify a
2704+
* value for the the <code>MessageDeduplicationId</code>
2705+
* parameter for the <code>Publish</code> action.
2706+
* </p>
2707+
* </li>
2708+
* </ul>
2709+
* </li>
2710+
* </ul>
26702711
* @param attributeValue <p>
26712712
* The new value for the attribute.
26722713
* </p>
@@ -2695,7 +2736,8 @@ public void setTopicAttributes(String topicArn, String attributeName, String att
26952736
/**
26962737
* <p>
26972738
* Creates a topic to which notifications can be published. Users can create
2698-
* at most 100,000 topics. For more information, see <a
2739+
* at most 100,000 standard topics (at most 1,000 FIFO topics). For more
2740+
* information, see <a
26992741
* href="http://aws.amazon.com/sns/">https://aws.amazon.com/sns</a>. This
27002742
* action is idempotent, so if the requester already owns a topic with the
27012743
* specified name, that topic's ARN is returned without creating a new
@@ -2710,6 +2752,10 @@ public void setTopicAttributes(String topicArn, String attributeName, String att
27102752
* lowercase ASCII letters, numbers, underscores, and hyphens,
27112753
* and must be between 1 and 256 characters long.
27122754
* </p>
2755+
* <p>
2756+
* For a FIFO (first-in-first-out) topic, the name must end with
2757+
* the <code>.fifo</code> suffix.
2758+
* </p>
27132759
* @return createTopicResult The response from the CreateTopic service
27142760
* method, as returned by Amazon Simple Notification Service.
27152761
* @throws InvalidParameterException

0 commit comments

Comments
 (0)