Skip to content

Commit 516b83a

Browse files
feat(aws-android-sdk-sns): update models to latest (#2714)
Co-authored-by: Divyesh Chitroda <[email protected]>
1 parent c26dfc6 commit 516b83a

File tree

52 files changed

+5823
-691
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+5823
-691
lines changed

aws-android-sdk-sns/src/main/java/com/amazonaws/auth/policy/actions/SNSActions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ public enum SNSActions implements Action {
109109
/** Action for the Publish operation. */
110110
Publish("sns:Publish"),
111111

112+
/** Action for the PublishBatch operation. */
113+
PublishBatch("sns:PublishBatch"),
114+
112115
/** Action for the RemovePermission operation. */
113116
RemovePermission("sns:RemovePermission"),
114117

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

Lines changed: 183 additions & 87 deletions
Large diffs are not rendered by default.

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

Lines changed: 323 additions & 130 deletions
Large diffs are not rendered by default.

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

Lines changed: 341 additions & 130 deletions
Large diffs are not rendered by default.

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

Lines changed: 204 additions & 87 deletions
Large diffs are not rendered by default.

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

Lines changed: 36 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* <p>
2424
* Adds a statement to a topic's access control policy, granting access for the
25-
* specified accounts to the specified actions.
25+
* specified Amazon Web Services accounts to the specified actions.
2626
* </p>
2727
*/
2828
public class AddPermissionRequest extends AmazonWebServiceRequest implements Serializable {
@@ -42,9 +42,9 @@ public class AddPermissionRequest extends AmazonWebServiceRequest implements Ser
4242

4343
/**
4444
* <p>
45-
* The account IDs of the users (principals) who will be given access to the
46-
* specified actions. The users must have account, but do not need to be
47-
* signed up for this service.
45+
* The Amazon Web Services account IDs of the users (principals) who will be
46+
* given access to the specified actions. The users must have Amazon Web
47+
* Services account, but do not need to be signed up for this service.
4848
* </p>
4949
*/
5050
private java.util.List<String> aWSAccountIds = new java.util.ArrayList<String>();
@@ -81,9 +81,10 @@ public AddPermissionRequest() {
8181
* A unique identifier for the new policy statement.
8282
* </p>
8383
* @param aWSAccountIds <p>
84-
* The account IDs of the users (principals) who will be given
85-
* access to the specified actions. The users must have account,
86-
* but do not need to be signed up for this service.
84+
* The Amazon Web Services account IDs of the users (principals)
85+
* who will be given access to the specified actions. The users
86+
* must have Amazon Web Services account, but do not need to be
87+
* signed up for this service.
8788
* </p>
8889
* @param actionNames <p>
8990
* The action you want to allow for the specified principal(s).
@@ -196,15 +197,16 @@ public AddPermissionRequest withLabel(String label) {
196197

197198
/**
198199
* <p>
199-
* The account IDs of the users (principals) who will be given access to the
200-
* specified actions. The users must have account, but do not need to be
201-
* signed up for this service.
200+
* The Amazon Web Services account IDs of the users (principals) who will be
201+
* given access to the specified actions. The users must have Amazon Web
202+
* Services account, but do not need to be signed up for this service.
202203
* </p>
203204
*
204205
* @return <p>
205-
* The account IDs of the users (principals) who will be given
206-
* access to the specified actions. The users must have account, but
207-
* do not need to be signed up for this service.
206+
* The Amazon Web Services account IDs of the users (principals) who
207+
* will be given access to the specified actions. The users must
208+
* have Amazon Web Services account, but do not need to be signed up
209+
* for this service.
208210
* </p>
209211
*/
210212
public java.util.List<String> getAWSAccountIds() {
@@ -213,15 +215,16 @@ public java.util.List<String> getAWSAccountIds() {
213215

214216
/**
215217
* <p>
216-
* The account IDs of the users (principals) who will be given access to the
217-
* specified actions. The users must have account, but do not need to be
218-
* signed up for this service.
218+
* The Amazon Web Services account IDs of the users (principals) who will be
219+
* given access to the specified actions. The users must have Amazon Web
220+
* Services account, but do not need to be signed up for this service.
219221
* </p>
220222
*
221223
* @param aWSAccountIds <p>
222-
* The account IDs of the users (principals) who will be given
223-
* access to the specified actions. The users must have account,
224-
* but do not need to be signed up for this service.
224+
* The Amazon Web Services account IDs of the users (principals)
225+
* who will be given access to the specified actions. The users
226+
* must have Amazon Web Services account, but do not need to be
227+
* signed up for this service.
225228
* </p>
226229
*/
227230
public void setAWSAccountIds(java.util.Collection<String> aWSAccountIds) {
@@ -235,18 +238,19 @@ public void setAWSAccountIds(java.util.Collection<String> aWSAccountIds) {
235238

236239
/**
237240
* <p>
238-
* The account IDs of the users (principals) who will be given access to the
239-
* specified actions. The users must have account, but do not need to be
240-
* signed up for this service.
241+
* The Amazon Web Services account IDs of the users (principals) who will be
242+
* given access to the specified actions. The users must have Amazon Web
243+
* Services account, but do not need to be signed up for this service.
241244
* </p>
242245
* <p>
243246
* Returns a reference to this object so that method calls can be chained
244247
* together.
245248
*
246249
* @param aWSAccountIds <p>
247-
* The account IDs of the users (principals) who will be given
248-
* access to the specified actions. The users must have account,
249-
* but do not need to be signed up for this service.
250+
* The Amazon Web Services account IDs of the users (principals)
251+
* who will be given access to the specified actions. The users
252+
* must have Amazon Web Services account, but do not need to be
253+
* signed up for this service.
250254
* </p>
251255
* @return A reference to this updated object so that method calls can be
252256
* chained together.
@@ -263,18 +267,19 @@ public AddPermissionRequest withAWSAccountIds(String... aWSAccountIds) {
263267

264268
/**
265269
* <p>
266-
* The account IDs of the users (principals) who will be given access to the
267-
* specified actions. The users must have account, but do not need to be
268-
* signed up for this service.
270+
* The Amazon Web Services account IDs of the users (principals) who will be
271+
* given access to the specified actions. The users must have Amazon Web
272+
* Services account, but do not need to be signed up for this service.
269273
* </p>
270274
* <p>
271275
* Returns a reference to this object so that method calls can be chained
272276
* together.
273277
*
274278
* @param aWSAccountIds <p>
275-
* The account IDs of the users (principals) who will be given
276-
* access to the specified actions. The users must have account,
277-
* but do not need to be signed up for this service.
279+
* The Amazon Web Services account IDs of the users (principals)
280+
* who will be given access to the specified actions. The users
281+
* must have Amazon Web Services account, but do not need to be
282+
* signed up for this service.
278283
* </p>
279284
* @return A reference to this updated object so that method calls can be
280285
* chained together.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package com.amazonaws.services.sns.model;
17+
18+
import com.amazonaws.AmazonServiceException;
19+
20+
/**
21+
* <p>
22+
* Two or more batch entries in the request have the same <code>Id</code>.
23+
* </p>
24+
*/
25+
public class BatchEntryIdsNotDistinctException extends AmazonServiceException {
26+
private static final long serialVersionUID = 1L;
27+
28+
/**
29+
* Constructs a new BatchEntryIdsNotDistinctException with the specified
30+
* error message.
31+
*
32+
* @param message Describes the error encountered.
33+
*/
34+
public BatchEntryIdsNotDistinctException(String message) {
35+
super(message);
36+
}
37+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package com.amazonaws.services.sns.model;
17+
18+
import com.amazonaws.AmazonServiceException;
19+
20+
/**
21+
* <p>
22+
* The length of all the batch messages put together is more than the limit.
23+
* </p>
24+
*/
25+
public class BatchRequestTooLongException extends AmazonServiceException {
26+
private static final long serialVersionUID = 1L;
27+
28+
/**
29+
* Constructs a new BatchRequestTooLongException with the specified error
30+
* message.
31+
*
32+
* @param message Describes the error encountered.
33+
*/
34+
public BatchRequestTooLongException(String message) {
35+
super(message);
36+
}
37+
}

0 commit comments

Comments
 (0)