Skip to content

Commit d3a10cf

Browse files
feat(aws-android-sdk-sns): update models to latest (#2999)
Co-authored-by: Divyesh Chitroda <[email protected]>
1 parent 3ef36ea commit d3a10cf

13 files changed

+1319
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public enum SNSActions implements Action {
5858
/** Action for the DeleteTopic operation. */
5959
DeleteTopic("sns:DeleteTopic"),
6060

61+
/** Action for the GetDataProtectionPolicy operation. */
62+
GetDataProtectionPolicy("sns:GetDataProtectionPolicy"),
63+
6164
/** Action for the GetEndpointAttributes operation. */
6265
GetEndpointAttributes("sns:GetEndpointAttributes"),
6366

@@ -112,6 +115,9 @@ public enum SNSActions implements Action {
112115
/** Action for the PublishBatch operation. */
113116
PublishBatch("sns:PublishBatch"),
114117

118+
/** Action for the PutDataProtectionPolicy operation. */
119+
PutDataProtectionPolicy("sns:PutDataProtectionPolicy"),
120+
115121
/** Action for the RemovePermission operation. */
116122
RemovePermission("sns:RemovePermission"),
117123

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,33 @@ DeleteSMSSandboxPhoneNumberResult deleteSMSSandboxPhoneNumber(
533533
void deleteTopic(DeleteTopicRequest deleteTopicRequest) throws AmazonClientException,
534534
AmazonServiceException;
535535

536+
/**
537+
* <p>
538+
* Retrieves the specified inline <code>DataProtectionPolicy</code> document
539+
* that is stored in the specified Amazon SNS topic.
540+
* </p>
541+
*
542+
* @param getDataProtectionPolicyRequest
543+
* @return getDataProtectionPolicyResult The response from the
544+
* GetDataProtectionPolicy service method, as returned by Amazon
545+
* Simple Notification Service.
546+
* @throws InvalidParameterException
547+
* @throws InternalErrorException
548+
* @throws NotFoundException
549+
* @throws AuthorizationErrorException
550+
* @throws InvalidSecurityException
551+
* @throws AmazonClientException If any internal errors are encountered
552+
* inside the client while attempting to make the request or
553+
* handle the response. For example if a network connection is
554+
* not available.
555+
* @throws AmazonServiceException If an error response is returned by Amazon
556+
* Simple Notification Service indicating either a problem with
557+
* the data in the request, or a server side issue.
558+
*/
559+
GetDataProtectionPolicyResult getDataProtectionPolicy(
560+
GetDataProtectionPolicyRequest getDataProtectionPolicyRequest)
561+
throws AmazonClientException, AmazonServiceException;
562+
536563
/**
537564
* <p>
538565
* Retrieves the endpoint attributes for a device on one of the supported
@@ -1111,6 +1138,7 @@ OptInPhoneNumberResult optInPhoneNumber(OptInPhoneNumberRequest optInPhoneNumber
11111138
* @throws KMSThrottlingException
11121139
* @throws KMSAccessDeniedException
11131140
* @throws InvalidSecurityException
1141+
* @throws ValidationException
11141142
* @throws AmazonClientException If any internal errors are encountered
11151143
* inside the client while attempting to make the request or
11161144
* handle the response. For example if a network connection is
@@ -1186,6 +1214,7 @@ PublishResult publish(PublishRequest publishRequest) throws AmazonClientExceptio
11861214
* @throws KMSThrottlingException
11871215
* @throws KMSAccessDeniedException
11881216
* @throws InvalidSecurityException
1217+
* @throws ValidationException
11891218
* @throws AmazonClientException If any internal errors are encountered
11901219
* inside the client while attempting to make the request or
11911220
* handle the response. For example if a network connection is
@@ -1197,6 +1226,29 @@ PublishResult publish(PublishRequest publishRequest) throws AmazonClientExceptio
11971226
PublishBatchResult publishBatch(PublishBatchRequest publishBatchRequest)
11981227
throws AmazonClientException, AmazonServiceException;
11991228

1229+
/**
1230+
* <p>
1231+
* Adds or updates an inline policy document that is stored in the specified
1232+
* Amazon SNS topic.
1233+
* </p>
1234+
*
1235+
* @param putDataProtectionPolicyRequest
1236+
* @throws InvalidParameterException
1237+
* @throws InternalErrorException
1238+
* @throws NotFoundException
1239+
* @throws AuthorizationErrorException
1240+
* @throws InvalidSecurityException
1241+
* @throws AmazonClientException If any internal errors are encountered
1242+
* inside the client while attempting to make the request or
1243+
* handle the response. For example if a network connection is
1244+
* not available.
1245+
* @throws AmazonServiceException If an error response is returned by Amazon
1246+
* Simple Notification Service indicating either a problem with
1247+
* the data in the request, or a server side issue.
1248+
*/
1249+
void putDataProtectionPolicy(PutDataProtectionPolicyRequest putDataProtectionPolicyRequest)
1250+
throws AmazonClientException, AmazonServiceException;
1251+
12001252
/**
12011253
* <p>
12021254
* Removes a statement from a topic's access control policy.
@@ -2474,6 +2526,7 @@ void setTopicAttributes(String topicArn, String attributeName, String attributeV
24742526
* @throws KMSThrottlingException
24752527
* @throws KMSAccessDeniedException
24762528
* @throws InvalidSecurityException
2529+
* @throws ValidationException
24772530
* @throws AmazonClientException If any internal errors are encountered
24782531
* inside the client while attempting to make the request or
24792532
* handle the response. For example if a network connection is
@@ -2657,6 +2710,7 @@ PublishResult publish(String topicArn, String message) throws AmazonClientExcept
26572710
* @throws KMSThrottlingException
26582711
* @throws KMSAccessDeniedException
26592712
* @throws InvalidSecurityException
2713+
* @throws ValidationException
26602714
* @throws AmazonClientException If any internal errors are encountered
26612715
* inside the client while attempting to make the request or
26622716
* handle the response. For example if a network connection is

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

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,65 @@ Future<Void> deleteTopicAsync(DeleteTopicRequest deleteTopicRequest,
985985
AsyncHandler<DeleteTopicRequest, Void> asyncHandler) throws AmazonServiceException,
986986
AmazonClientException;
987987

988+
/**
989+
* <p>
990+
* Retrieves the specified inline <code>DataProtectionPolicy</code> document
991+
* that is stored in the specified Amazon SNS topic.
992+
* </p>
993+
*
994+
* @param getDataProtectionPolicyRequest
995+
* @return A Java Future object containing the response from the
996+
* GetDataProtectionPolicy service method, as returned by Amazon
997+
* Simple Notification Service.
998+
* @throws InvalidParameterException
999+
* @throws InternalErrorException
1000+
* @throws NotFoundException
1001+
* @throws AuthorizationErrorException
1002+
* @throws InvalidSecurityException
1003+
* @throws AmazonClientException If any internal errors are encountered
1004+
* inside the client while attempting to make the request or
1005+
* handle the response. For example if a network connection is
1006+
* not available.
1007+
* @throws AmazonServiceException If an error response is returned by Amazon
1008+
* Simple Notification Service indicating either a problem with
1009+
* the data in the request, or a server side issue.
1010+
*/
1011+
Future<GetDataProtectionPolicyResult> getDataProtectionPolicyAsync(
1012+
GetDataProtectionPolicyRequest getDataProtectionPolicyRequest)
1013+
throws AmazonServiceException, AmazonClientException;
1014+
1015+
/**
1016+
* <p>
1017+
* Retrieves the specified inline <code>DataProtectionPolicy</code> document
1018+
* that is stored in the specified Amazon SNS topic.
1019+
* </p>
1020+
*
1021+
* @param getDataProtectionPolicyRequest
1022+
* @param asyncHandler Asynchronous callback handler for events in the
1023+
* life-cycle of the request. Users could provide the
1024+
* implementation of the four callback methods in this interface
1025+
* to process the operation result or handle the exception.
1026+
* @return A Java Future object containing the response from the
1027+
* GetDataProtectionPolicy service method, as returned by Amazon
1028+
* Simple Notification Service.
1029+
* @throws InvalidParameterException
1030+
* @throws InternalErrorException
1031+
* @throws NotFoundException
1032+
* @throws AuthorizationErrorException
1033+
* @throws InvalidSecurityException
1034+
* @throws AmazonClientException If any internal errors are encountered
1035+
* inside the client while attempting to make the request or
1036+
* handle the response. For example if a network connection is
1037+
* not available.
1038+
* @throws AmazonServiceException If an error response is returned by Amazon
1039+
* Simple Notification Service indicating either a problem with
1040+
* the data in the request, or a server side issue.
1041+
*/
1042+
Future<GetDataProtectionPolicyResult> getDataProtectionPolicyAsync(
1043+
GetDataProtectionPolicyRequest getDataProtectionPolicyRequest,
1044+
AsyncHandler<GetDataProtectionPolicyRequest, GetDataProtectionPolicyResult> asyncHandler)
1045+
throws AmazonServiceException, AmazonClientException;
1046+
9881047
/**
9891048
* <p>
9901049
* Retrieves the endpoint attributes for a device on one of the supported
@@ -2178,6 +2237,7 @@ Future<OptInPhoneNumberResult> optInPhoneNumberAsync(
21782237
* @throws KMSThrottlingException
21792238
* @throws KMSAccessDeniedException
21802239
* @throws InvalidSecurityException
2240+
* @throws ValidationException
21812241
* @throws AmazonClientException If any internal errors are encountered
21822242
* inside the client while attempting to make the request or
21832243
* handle the response. For example if a network connection is
@@ -2248,6 +2308,7 @@ Future<PublishResult> publishAsync(PublishRequest publishRequest)
22482308
* @throws KMSThrottlingException
22492309
* @throws KMSAccessDeniedException
22502310
* @throws InvalidSecurityException
2311+
* @throws ValidationException
22512312
* @throws AmazonClientException If any internal errors are encountered
22522313
* inside the client while attempting to make the request or
22532314
* handle the response. For example if a network connection is
@@ -2325,6 +2386,7 @@ Future<PublishResult> publishAsync(PublishRequest publishRequest,
23252386
* @throws KMSThrottlingException
23262387
* @throws KMSAccessDeniedException
23272388
* @throws InvalidSecurityException
2389+
* @throws ValidationException
23282390
* @throws AmazonClientException If any internal errors are encountered
23292391
* inside the client while attempting to make the request or
23302392
* handle the response. For example if a network connection is
@@ -2405,6 +2467,7 @@ Future<PublishBatchResult> publishBatchAsync(PublishBatchRequest publishBatchReq
24052467
* @throws KMSThrottlingException
24062468
* @throws KMSAccessDeniedException
24072469
* @throws InvalidSecurityException
2470+
* @throws ValidationException
24082471
* @throws AmazonClientException If any internal errors are encountered
24092472
* inside the client while attempting to make the request or
24102473
* handle the response. For example if a network connection is
@@ -2417,6 +2480,65 @@ Future<PublishBatchResult> publishBatchAsync(PublishBatchRequest publishBatchReq
24172480
AsyncHandler<PublishBatchRequest, PublishBatchResult> asyncHandler)
24182481
throws AmazonServiceException, AmazonClientException;
24192482

2483+
/**
2484+
* <p>
2485+
* Adds or updates an inline policy document that is stored in the specified
2486+
* Amazon SNS topic.
2487+
* </p>
2488+
*
2489+
* @param putDataProtectionPolicyRequest
2490+
* @return A Java Future object containing the response from the
2491+
* PutDataProtectionPolicy service method, as returned by Amazon
2492+
* Simple Notification Service.
2493+
* @throws InvalidParameterException
2494+
* @throws InternalErrorException
2495+
* @throws NotFoundException
2496+
* @throws AuthorizationErrorException
2497+
* @throws InvalidSecurityException
2498+
* @throws AmazonClientException If any internal errors are encountered
2499+
* inside the client while attempting to make the request or
2500+
* handle the response. For example if a network connection is
2501+
* not available.
2502+
* @throws AmazonServiceException If an error response is returned by Amazon
2503+
* Simple Notification Service indicating either a problem with
2504+
* the data in the request, or a server side issue.
2505+
*/
2506+
Future<Void> putDataProtectionPolicyAsync(
2507+
PutDataProtectionPolicyRequest putDataProtectionPolicyRequest)
2508+
throws AmazonServiceException, AmazonClientException;
2509+
2510+
/**
2511+
* <p>
2512+
* Adds or updates an inline policy document that is stored in the specified
2513+
* Amazon SNS topic.
2514+
* </p>
2515+
*
2516+
* @param putDataProtectionPolicyRequest
2517+
* @param asyncHandler Asynchronous callback handler for events in the
2518+
* life-cycle of the request. Users could provide the
2519+
* implementation of the four callback methods in this interface
2520+
* to process the operation result or handle the exception.
2521+
* @return A Java Future object containing the response from the
2522+
* PutDataProtectionPolicy service method, as returned by Amazon
2523+
* Simple Notification Service.
2524+
* @throws InvalidParameterException
2525+
* @throws InternalErrorException
2526+
* @throws NotFoundException
2527+
* @throws AuthorizationErrorException
2528+
* @throws InvalidSecurityException
2529+
* @throws AmazonClientException If any internal errors are encountered
2530+
* inside the client while attempting to make the request or
2531+
* handle the response. For example if a network connection is
2532+
* not available.
2533+
* @throws AmazonServiceException If an error response is returned by Amazon
2534+
* Simple Notification Service indicating either a problem with
2535+
* the data in the request, or a server side issue.
2536+
*/
2537+
Future<Void> putDataProtectionPolicyAsync(
2538+
PutDataProtectionPolicyRequest putDataProtectionPolicyRequest,
2539+
AsyncHandler<PutDataProtectionPolicyRequest, Void> asyncHandler)
2540+
throws AmazonServiceException, AmazonClientException;
2541+
24202542
/**
24212543
* <p>
24222544
* Removes a statement from a topic's access control policy.

0 commit comments

Comments
 (0)