Skip to content

Commit 9008be9

Browse files
awsmobilesdktylerjroachtjleing
authored
feat(aws-android-sdk-sns): update models to latest (#3105)
Co-authored-by: Tyler Roach <[email protected]> Co-authored-by: Thomas Leing <[email protected]>
1 parent 4c304b9 commit 9008be9

13 files changed

+1456
-19
lines changed

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

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ public interface AmazonSNS {
113113
* Adds a statement to a topic's access control policy, granting access for
114114
* the specified Amazon Web Services accounts to the specified actions.
115115
* </p>
116+
* <note>
117+
* <p>
118+
* To remove the ability to change topic permissions, you must deny
119+
* permissions to the <code>AddPermission</code>,
120+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
121+
* actions in your IAM policy.
122+
* </p>
123+
* </note>
116124
*
117125
* @param addPermissionRequest
118126
* @throws InvalidParameterException
@@ -1253,6 +1261,14 @@ void putDataProtectionPolicy(PutDataProtectionPolicyRequest putDataProtectionPol
12531261
* <p>
12541262
* Removes a statement from a topic's access control policy.
12551263
* </p>
1264+
* <note>
1265+
* <p>
1266+
* To remove the ability to change topic permissions, you must deny
1267+
* permissions to the <code>AddPermission</code>,
1268+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
1269+
* actions in your IAM policy.
1270+
* </p>
1271+
* </note>
12561272
*
12571273
* @param removePermissionRequest <p>
12581274
* Input for RemovePermission action.
@@ -1402,6 +1418,14 @@ void setSubscriptionAttributes(SetSubscriptionAttributesRequest setSubscriptionA
14021418
* <p>
14031419
* Allows a topic owner to set an attribute of the topic to a new value.
14041420
* </p>
1421+
* <note>
1422+
* <p>
1423+
* To remove the ability to change topic permissions, you must deny
1424+
* permissions to the <code>AddPermission</code>,
1425+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
1426+
* actions in your IAM policy.
1427+
* </p>
1428+
* </note>
14051429
*
14061430
* @param setTopicAttributesRequest <p>
14071431
* Input for SetTopicAttributes action.
@@ -1535,6 +1559,13 @@ TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
15351559
* resubscribe to the topic if the <code>Unsubscribe</code> request was
15361560
* unintended.
15371561
* </p>
1562+
* <note>
1563+
* <p>
1564+
* Amazon SQS queue subscriptions require authentication for deletion. Only
1565+
* the owner of the subscription, or the owner of the topic can unsubscribe
1566+
* using the required Amazon Web Services signature.
1567+
* </p>
1568+
* </note>
15381569
* <p>
15391570
* This action is throttled at 100 transactions per second (TPS).
15401571
* </p>
@@ -1658,6 +1689,27 @@ VerifySMSSandboxPhoneNumberResult verifySMSSandboxPhoneNumber(
16581689
* </li>
16591690
* <li>
16601691
* <p>
1692+
* <code>FilterPolicyScope</code> – This attribute lets you
1693+
* choose the filtering scope by using one of the following
1694+
* string value types:
1695+
* </p>
1696+
* <ul>
1697+
* <li>
1698+
* <p>
1699+
* <code>MessageAttributes</code> (default) – The filter is
1700+
* applied on the message attributes.
1701+
* </p>
1702+
* </li>
1703+
* <li>
1704+
* <p>
1705+
* <code>MessageBody</code> – The filter is applied on the
1706+
* message body.
1707+
* </p>
1708+
* </li>
1709+
* </ul>
1710+
* </li>
1711+
* <li>
1712+
* <p>
16611713
* <code>RawMessageDelivery</code> – When set to
16621714
* <code>true</code>, enables raw message delivery to Amazon SQS
16631715
* or HTTP/S endpoints. This eliminates the need for the
@@ -1916,6 +1968,14 @@ SubscribeResult subscribe(String topicArn, String protocol, String endpoint)
19161968
* Adds a statement to a topic's access control policy, granting access for
19171969
* the specified Amazon Web Services accounts to the specified actions.
19181970
* </p>
1971+
* <note>
1972+
* <p>
1973+
* To remove the ability to change topic permissions, you must deny
1974+
* permissions to the <code>AddPermission</code>,
1975+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
1976+
* actions in your IAM policy.
1977+
* </p>
1978+
* </note>
19191979
*
19201980
* @param topicArn <p>
19211981
* The ARN of the topic whose access control policy you wish to
@@ -1985,6 +2045,14 @@ GetTopicAttributesResult getTopicAttributes(String topicArn) throws AmazonClient
19852045
* <p>
19862046
* Removes a statement from a topic's access control policy.
19872047
* </p>
2048+
* <note>
2049+
* <p>
2050+
* To remove the ability to change topic permissions, you must deny
2051+
* permissions to the <code>AddPermission</code>,
2052+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
2053+
* actions in your IAM policy.
2054+
* </p>
2055+
* </note>
19882056
*
19892057
* @param topicArn <p>
19902058
* The ARN of the topic whose access control policy you wish to
@@ -2151,6 +2219,14 @@ ConfirmSubscriptionResult confirmSubscription(String topicArn, String token)
21512219
* <p>
21522220
* Allows a topic owner to set an attribute of the topic to a new value.
21532221
* </p>
2222+
* <note>
2223+
* <p>
2224+
* To remove the ability to change topic permissions, you must deny
2225+
* permissions to the <code>AddPermission</code>,
2226+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
2227+
* actions in your IAM policy.
2228+
* </p>
2229+
* </note>
21542230
*
21552231
* @param topicArn <p>
21562232
* The ARN of the topic to modify.
@@ -2183,6 +2259,18 @@ ConfirmSubscriptionResult confirmSubscription(String topicArn, String token)
21832259
* subscribe to the topic.
21842260
* </p>
21852261
* </li>
2262+
* <li>
2263+
* <p>
2264+
* <code>TracingConfig</code> – Tracing mode of an Amazon SNS
2265+
* topic. By default <code>TracingConfig</code> is set to
2266+
* <code>PassThrough</code>, and the topic passes through the
2267+
* tracing header it receives from an Amazon SNS publisher to its
2268+
* subscriptions. If set to Active, Amazon SNS will vend X-Ray
2269+
* segment data to topic owner account if the sampled flag in the
2270+
* tracing header is true. This is only supported on standard
2271+
* topics.
2272+
* </p>
2273+
* </li>
21862274
* </ul>
21872275
* <p>
21882276
* The following attribute applies only to <a href=
@@ -2201,6 +2289,14 @@ ConfirmSubscriptionResult confirmSubscription(String topicArn, String token)
22012289
* >KeyId</a> in the <i>Key Management Service API Reference</i>.
22022290
* </p>
22032291
* </li>
2292+
* <li>
2293+
* <p>
2294+
* <code>SignatureVersion</code> – The signature version
2295+
* corresponds to the hashing algorithm used while creating the
2296+
* signature of the notifications, subscription confirmations, or
2297+
* unsubscribe confirmation messages sent by Amazon SNS.
2298+
* </p>
2299+
* </li>
22042300
* </ul>
22052301
* <p>
22062302
* The following attribute applies only to <a href=
@@ -2344,6 +2440,13 @@ void setTopicAttributes(String topicArn, String attributeName, String attributeV
23442440
* resubscribe to the topic if the <code>Unsubscribe</code> request was
23452441
* unintended.
23462442
* </p>
2443+
* <note>
2444+
* <p>
2445+
* Amazon SQS queue subscriptions require authentication for deletion. Only
2446+
* the owner of the subscription, or the owner of the topic can unsubscribe
2447+
* using the required Amazon Web Services signature.
2448+
* </p>
2449+
* </note>
23472450
* <p>
23482451
* This action is throttled at 100 transactions per second (TPS).
23492452
* </p>

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ public interface AmazonSNSAsync extends AmazonSNS {
5757
* Adds a statement to a topic's access control policy, granting access for
5858
* the specified Amazon Web Services accounts to the specified actions.
5959
* </p>
60+
* <note>
61+
* <p>
62+
* To remove the ability to change topic permissions, you must deny
63+
* permissions to the <code>AddPermission</code>,
64+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
65+
* actions in your IAM policy.
66+
* </p>
67+
* </note>
6068
*
6169
* @param addPermissionRequest
6270
* @return A Java Future object containing the response from the
@@ -82,6 +90,14 @@ Future<Void> addPermissionAsync(AddPermissionRequest addPermissionRequest)
8290
* Adds a statement to a topic's access control policy, granting access for
8391
* the specified Amazon Web Services accounts to the specified actions.
8492
* </p>
93+
* <note>
94+
* <p>
95+
* To remove the ability to change topic permissions, you must deny
96+
* permissions to the <code>AddPermission</code>,
97+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
98+
* actions in your IAM policy.
99+
* </p>
100+
* </note>
85101
*
86102
* @param addPermissionRequest
87103
* @param asyncHandler Asynchronous callback handler for events in the
@@ -2543,6 +2559,14 @@ Future<Void> putDataProtectionPolicyAsync(
25432559
* <p>
25442560
* Removes a statement from a topic's access control policy.
25452561
* </p>
2562+
* <note>
2563+
* <p>
2564+
* To remove the ability to change topic permissions, you must deny
2565+
* permissions to the <code>AddPermission</code>,
2566+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
2567+
* actions in your IAM policy.
2568+
* </p>
2569+
* </note>
25462570
*
25472571
* @param removePermissionRequest <p>
25482572
* Input for RemovePermission action.
@@ -2569,6 +2593,14 @@ Future<Void> removePermissionAsync(RemovePermissionRequest removePermissionReque
25692593
* <p>
25702594
* Removes a statement from a topic's access control policy.
25712595
* </p>
2596+
* <note>
2597+
* <p>
2598+
* To remove the ability to change topic permissions, you must deny
2599+
* permissions to the <code>AddPermission</code>,
2600+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
2601+
* actions in your IAM policy.
2602+
* </p>
2603+
* </note>
25722604
*
25732605
* @param removePermissionRequest <p>
25742606
* Input for RemovePermission action.
@@ -2896,6 +2928,14 @@ Future<Void> setSubscriptionAttributesAsync(
28962928
* <p>
28972929
* Allows a topic owner to set an attribute of the topic to a new value.
28982930
* </p>
2931+
* <note>
2932+
* <p>
2933+
* To remove the ability to change topic permissions, you must deny
2934+
* permissions to the <code>AddPermission</code>,
2935+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
2936+
* actions in your IAM policy.
2937+
* </p>
2938+
* </note>
28992939
*
29002940
* @param setTopicAttributesRequest <p>
29012941
* Input for SetTopicAttributes action.
@@ -2923,6 +2963,14 @@ Future<Void> setTopicAttributesAsync(SetTopicAttributesRequest setTopicAttribute
29232963
* <p>
29242964
* Allows a topic owner to set an attribute of the topic to a new value.
29252965
* </p>
2966+
* <note>
2967+
* <p>
2968+
* To remove the ability to change topic permissions, you must deny
2969+
* permissions to the <code>AddPermission</code>,
2970+
* <code>RemovePermission</code>, and <code>SetTopicAttributes</code>
2971+
* actions in your IAM policy.
2972+
* </p>
2973+
* </note>
29262974
*
29272975
* @param setTopicAttributesRequest <p>
29282976
* Input for SetTopicAttributes action.
@@ -3180,6 +3228,13 @@ Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest
31803228
* resubscribe to the topic if the <code>Unsubscribe</code> request was
31813229
* unintended.
31823230
* </p>
3231+
* <note>
3232+
* <p>
3233+
* Amazon SQS queue subscriptions require authentication for deletion. Only
3234+
* the owner of the subscription, or the owner of the topic can unsubscribe
3235+
* using the required Amazon Web Services signature.
3236+
* </p>
3237+
* </note>
31833238
* <p>
31843239
* This action is throttled at 100 transactions per second (TPS).
31853240
* </p>
@@ -3217,6 +3272,13 @@ Future<Void> unsubscribeAsync(UnsubscribeRequest unsubscribeRequest)
32173272
* resubscribe to the topic if the <code>Unsubscribe</code> request was
32183273
* unintended.
32193274
* </p>
3275+
* <note>
3276+
* <p>
3277+
* Amazon SQS queue subscriptions require authentication for deletion. Only
3278+
* the owner of the subscription, or the owner of the topic can unsubscribe
3279+
* using the required Amazon Web Services signature.
3280+
* </p>
3281+
* </note>
32203282
* <p>
32213283
* This action is throttled at 100 transactions per second (TPS).
32223284
* </p>

0 commit comments

Comments
 (0)