@@ -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