Skip to content

Commit ba5948f

Browse files
feat(aws-android-sdk-sns): update models to latest (#2496)
Co-authored-by: Raphael Kim <[email protected]>
1 parent 3923d83 commit ba5948f

File tree

52 files changed

+6107
-64
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

+6107
-64
lines changed

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public enum SNSActions implements Action {
4040
/** Action for the CreatePlatformEndpoint operation. */
4141
CreatePlatformEndpoint("sns:CreatePlatformEndpoint"),
4242

43+
/** Action for the CreateSMSSandboxPhoneNumber operation. */
44+
CreateSMSSandboxPhoneNumber("sns:CreateSMSSandboxPhoneNumber"),
45+
4346
/** Action for the CreateTopic operation. */
4447
CreateTopic("sns:CreateTopic"),
4548

@@ -49,6 +52,9 @@ public enum SNSActions implements Action {
4952
/** Action for the DeletePlatformApplication operation. */
5053
DeletePlatformApplication("sns:DeletePlatformApplication"),
5154

55+
/** Action for the DeleteSMSSandboxPhoneNumber operation. */
56+
DeleteSMSSandboxPhoneNumber("sns:DeleteSMSSandboxPhoneNumber"),
57+
5258
/** Action for the DeleteTopic operation. */
5359
DeleteTopic("sns:DeleteTopic"),
5460

@@ -61,6 +67,9 @@ public enum SNSActions implements Action {
6167
/** Action for the GetSMSAttributes operation. */
6268
GetSMSAttributes("sns:GetSMSAttributes"),
6369

70+
/** Action for the GetSMSSandboxAccountStatus operation. */
71+
GetSMSSandboxAccountStatus("sns:GetSMSSandboxAccountStatus"),
72+
6473
/** Action for the GetSubscriptionAttributes operation. */
6574
GetSubscriptionAttributes("sns:GetSubscriptionAttributes"),
6675

@@ -70,12 +79,18 @@ public enum SNSActions implements Action {
7079
/** Action for the ListEndpointsByPlatformApplication operation. */
7180
ListEndpointsByPlatformApplication("sns:ListEndpointsByPlatformApplication"),
7281

82+
/** Action for the ListOriginationNumbers operation. */
83+
ListOriginationNumbers("sns:ListOriginationNumbers"),
84+
7385
/** Action for the ListPhoneNumbersOptedOut operation. */
7486
ListPhoneNumbersOptedOut("sns:ListPhoneNumbersOptedOut"),
7587

7688
/** Action for the ListPlatformApplications operation. */
7789
ListPlatformApplications("sns:ListPlatformApplications"),
7890

91+
/** Action for the ListSMSSandboxPhoneNumbers operation. */
92+
ListSMSSandboxPhoneNumbers("sns:ListSMSSandboxPhoneNumbers"),
93+
7994
/** Action for the ListSubscriptions operation. */
8095
ListSubscriptions("sns:ListSubscriptions"),
8196

@@ -122,7 +137,10 @@ public enum SNSActions implements Action {
122137
Unsubscribe("sns:Unsubscribe"),
123138

124139
/** Action for the UntagResource operation. */
125-
UntagResource("sns:UntagResource");
140+
UntagResource("sns:UntagResource"),
141+
142+
/** Action for the VerifySMSSandboxPhoneNumber operation. */
143+
VerifySMSSandboxPhoneNumber("sns:VerifySMSSandboxPhoneNumber");
126144

127145
private final String action;
128146

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

Lines changed: 222 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,45 @@ CreatePlatformEndpointResult createPlatformEndpoint(
325325
CreatePlatformEndpointRequest createPlatformEndpointRequest)
326326
throws AmazonClientException, AmazonServiceException;
327327

328+
/**
329+
* <p>
330+
* Adds a destination phone number to an AWS account in the SMS sandbox and
331+
* sends a one-time password (OTP) to that phone number.
332+
* </p>
333+
* <p>
334+
* When you start using Amazon SNS to send SMS messages, your AWS account is
335+
* in the <i>SMS sandbox</i>. The SMS sandbox provides a safe environment
336+
* for you to try Amazon SNS features without risking your reputation as an
337+
* SMS sender. While your account is in the SMS sandbox, you can use all of
338+
* the features of Amazon SNS. However, you can send SMS messages only to
339+
* verified destination phone numbers. For more information, including how
340+
* to move out of the sandbox to send messages without restrictions, see <a
341+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">SMS
342+
* sandbox</a> in the <i>Amazon SNS Developer Guide</i>.
343+
* </p>
344+
*
345+
* @param createSMSSandboxPhoneNumberRequest
346+
* @return createSMSSandboxPhoneNumberResult The response from the
347+
* CreateSMSSandboxPhoneNumber service method, as returned by Amazon
348+
* Simple Notification Service.
349+
* @throws AuthorizationErrorException
350+
* @throws InternalErrorException
351+
* @throws InvalidParameterException
352+
* @throws OptedOutException
353+
* @throws UserErrorException
354+
* @throws ThrottledException
355+
* @throws AmazonClientException If any internal errors are encountered
356+
* inside the client while attempting to make the request or
357+
* handle the response. For example if a network connection is
358+
* not available.
359+
* @throws AmazonServiceException If an error response is returned by Amazon
360+
* Simple Notification Service indicating either a problem with
361+
* the data in the request, or a server side issue.
362+
*/
363+
CreateSMSSandboxPhoneNumberResult createSMSSandboxPhoneNumber(
364+
CreateSMSSandboxPhoneNumberRequest createSMSSandboxPhoneNumberRequest)
365+
throws AmazonClientException, AmazonServiceException;
366+
328367
/**
329368
* <p>
330369
* Creates a topic to which notifications can be published. Users can create
@@ -416,6 +455,45 @@ void deleteEndpoint(DeleteEndpointRequest deleteEndpointRequest) throws AmazonCl
416455
void deletePlatformApplication(DeletePlatformApplicationRequest deletePlatformApplicationRequest)
417456
throws AmazonClientException, AmazonServiceException;
418457

458+
/**
459+
* <p>
460+
* Deletes an AWS account's verified or pending phone number from the SMS
461+
* sandbox.
462+
* </p>
463+
* <p>
464+
* When you start using Amazon SNS to send SMS messages, your AWS account is
465+
* in the <i>SMS sandbox</i>. The SMS sandbox provides a safe environment
466+
* for you to try Amazon SNS features without risking your reputation as an
467+
* SMS sender. While your account is in the SMS sandbox, you can use all of
468+
* the features of Amazon SNS. However, you can send SMS messages only to
469+
* verified destination phone numbers. For more information, including how
470+
* to move out of the sandbox to send messages without restrictions, see <a
471+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">SMS
472+
* sandbox</a> in the <i>Amazon SNS Developer Guide</i>.
473+
* </p>
474+
*
475+
* @param deleteSMSSandboxPhoneNumberRequest
476+
* @return deleteSMSSandboxPhoneNumberResult The response from the
477+
* DeleteSMSSandboxPhoneNumber service method, as returned by Amazon
478+
* Simple Notification Service.
479+
* @throws AuthorizationErrorException
480+
* @throws InternalErrorException
481+
* @throws InvalidParameterException
482+
* @throws ResourceNotFoundException
483+
* @throws UserErrorException
484+
* @throws ThrottledException
485+
* @throws AmazonClientException If any internal errors are encountered
486+
* inside the client while attempting to make the request or
487+
* handle the response. For example if a network connection is
488+
* not available.
489+
* @throws AmazonServiceException If an error response is returned by Amazon
490+
* Simple Notification Service indicating either a problem with
491+
* the data in the request, or a server side issue.
492+
*/
493+
DeleteSMSSandboxPhoneNumberResult deleteSMSSandboxPhoneNumber(
494+
DeleteSMSSandboxPhoneNumberRequest deleteSMSSandboxPhoneNumberRequest)
495+
throws AmazonClientException, AmazonServiceException;
496+
419497
/**
420498
* <p>
421499
* Deletes a topic and all its subscriptions. Deleting a topic might prevent
@@ -534,6 +612,42 @@ GetPlatformApplicationAttributesResult getPlatformApplicationAttributes(
534612
GetSMSAttributesResult getSMSAttributes(GetSMSAttributesRequest getSMSAttributesRequest)
535613
throws AmazonClientException, AmazonServiceException;
536614

615+
/**
616+
* <p>
617+
* Retrieves the SMS sandbox status for the calling AWS account in the
618+
* target AWS Region.
619+
* </p>
620+
* <p>
621+
* When you start using Amazon SNS to send SMS messages, your AWS account is
622+
* in the <i>SMS sandbox</i>. The SMS sandbox provides a safe environment
623+
* for you to try Amazon SNS features without risking your reputation as an
624+
* SMS sender. While your account is in the SMS sandbox, you can use all of
625+
* the features of Amazon SNS. However, you can send SMS messages only to
626+
* verified destination phone numbers. For more information, including how
627+
* to move out of the sandbox to send messages without restrictions, see <a
628+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">SMS
629+
* sandbox</a> in the <i>Amazon SNS Developer Guide</i>.
630+
* </p>
631+
*
632+
* @param getSMSSandboxAccountStatusRequest
633+
* @return getSMSSandboxAccountStatusResult The response from the
634+
* GetSMSSandboxAccountStatus service method, as returned by Amazon
635+
* Simple Notification Service.
636+
* @throws AuthorizationErrorException
637+
* @throws InternalErrorException
638+
* @throws ThrottledException
639+
* @throws AmazonClientException If any internal errors are encountered
640+
* inside the client while attempting to make the request or
641+
* handle the response. For example if a network connection is
642+
* not available.
643+
* @throws AmazonServiceException If an error response is returned by Amazon
644+
* Simple Notification Service indicating either a problem with
645+
* the data in the request, or a server side issue.
646+
*/
647+
GetSMSSandboxAccountStatusResult getSMSSandboxAccountStatus(
648+
GetSMSSandboxAccountStatusRequest getSMSSandboxAccountStatusRequest)
649+
throws AmazonClientException, AmazonServiceException;
650+
537651
/**
538652
* <p>
539653
* Returns all of the properties of a subscription.
@@ -629,6 +743,35 @@ ListEndpointsByPlatformApplicationResult listEndpointsByPlatformApplication(
629743
ListEndpointsByPlatformApplicationRequest listEndpointsByPlatformApplicationRequest)
630744
throws AmazonClientException, AmazonServiceException;
631745

746+
/**
747+
* <p>
748+
* Lists the calling AWS account's dedicated origination numbers and their
749+
* metadata. For more information about origination numbers, see <a href=
750+
* "https://docs.aws.amazon.com/sns/latest/dg/channels-sms-originating-identities-origination-numbers.html"
751+
* >Origination numbers</a> in the <i>Amazon SNS Developer Guide</i>.
752+
* </p>
753+
*
754+
* @param listOriginationNumbersRequest
755+
* @return listOriginationNumbersResult The response from the
756+
* ListOriginationNumbers service method, as returned by Amazon
757+
* Simple Notification Service.
758+
* @throws InternalErrorException
759+
* @throws AuthorizationErrorException
760+
* @throws ThrottledException
761+
* @throws InvalidParameterException
762+
* @throws ValidationException
763+
* @throws AmazonClientException If any internal errors are encountered
764+
* inside the client while attempting to make the request or
765+
* handle the response. For example if a network connection is
766+
* not available.
767+
* @throws AmazonServiceException If an error response is returned by Amazon
768+
* Simple Notification Service indicating either a problem with
769+
* the data in the request, or a server side issue.
770+
*/
771+
ListOriginationNumbersResult listOriginationNumbers(
772+
ListOriginationNumbersRequest listOriginationNumbersRequest)
773+
throws AmazonClientException, AmazonServiceException;
774+
632775
/**
633776
* <p>
634777
* Returns a list of phone numbers that are opted out, meaning you cannot
@@ -706,6 +849,44 @@ ListPlatformApplicationsResult listPlatformApplications(
706849
ListPlatformApplicationsRequest listPlatformApplicationsRequest)
707850
throws AmazonClientException, AmazonServiceException;
708851

852+
/**
853+
* <p>
854+
* Lists the calling AWS account's current verified and pending destination
855+
* phone numbers in the SMS sandbox.
856+
* </p>
857+
* <p>
858+
* When you start using Amazon SNS to send SMS messages, your AWS account is
859+
* in the <i>SMS sandbox</i>. The SMS sandbox provides a safe environment
860+
* for you to try Amazon SNS features without risking your reputation as an
861+
* SMS sender. While your account is in the SMS sandbox, you can use all of
862+
* the features of Amazon SNS. However, you can send SMS messages only to
863+
* verified destination phone numbers. For more information, including how
864+
* to move out of the sandbox to send messages without restrictions, see <a
865+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">SMS
866+
* sandbox</a> in the <i>Amazon SNS Developer Guide</i>.
867+
* </p>
868+
*
869+
* @param listSMSSandboxPhoneNumbersRequest
870+
* @return listSMSSandboxPhoneNumbersResult The response from the
871+
* ListSMSSandboxPhoneNumbers service method, as returned by Amazon
872+
* Simple Notification Service.
873+
* @throws AuthorizationErrorException
874+
* @throws InternalErrorException
875+
* @throws InvalidParameterException
876+
* @throws ResourceNotFoundException
877+
* @throws ThrottledException
878+
* @throws AmazonClientException If any internal errors are encountered
879+
* inside the client while attempting to make the request or
880+
* handle the response. For example if a network connection is
881+
* not available.
882+
* @throws AmazonServiceException If an error response is returned by Amazon
883+
* Simple Notification Service indicating either a problem with
884+
* the data in the request, or a server side issue.
885+
*/
886+
ListSMSSandboxPhoneNumbersResult listSMSSandboxPhoneNumbers(
887+
ListSMSSandboxPhoneNumbersRequest listSMSSandboxPhoneNumbersRequest)
888+
throws AmazonClientException, AmazonServiceException;
889+
709890
/**
710891
* <p>
711892
* Returns a list of the requester's subscriptions. Each call returns a
@@ -1261,6 +1442,45 @@ void unsubscribe(UnsubscribeRequest unsubscribeRequest) throws AmazonClientExcep
12611442
UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
12621443
throws AmazonClientException, AmazonServiceException;
12631444

1445+
/**
1446+
* <p>
1447+
* Verifies a destination phone number with a one-time password (OTP) for
1448+
* the calling AWS account.
1449+
* </p>
1450+
* <p>
1451+
* When you start using Amazon SNS to send SMS messages, your AWS account is
1452+
* in the <i>SMS sandbox</i>. The SMS sandbox provides a safe environment
1453+
* for you to try Amazon SNS features without risking your reputation as an
1454+
* SMS sender. While your account is in the SMS sandbox, you can use all of
1455+
* the features of Amazon SNS. However, you can send SMS messages only to
1456+
* verified destination phone numbers. For more information, including how
1457+
* to move out of the sandbox to send messages without restrictions, see <a
1458+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">SMS
1459+
* sandbox</a> in the <i>Amazon SNS Developer Guide</i>.
1460+
* </p>
1461+
*
1462+
* @param verifySMSSandboxPhoneNumberRequest
1463+
* @return verifySMSSandboxPhoneNumberResult The response from the
1464+
* VerifySMSSandboxPhoneNumber service method, as returned by Amazon
1465+
* Simple Notification Service.
1466+
* @throws AuthorizationErrorException
1467+
* @throws InternalErrorException
1468+
* @throws InvalidParameterException
1469+
* @throws ResourceNotFoundException
1470+
* @throws VerificationException
1471+
* @throws ThrottledException
1472+
* @throws AmazonClientException If any internal errors are encountered
1473+
* inside the client while attempting to make the request or
1474+
* handle the response. For example if a network connection is
1475+
* not available.
1476+
* @throws AmazonServiceException If an error response is returned by Amazon
1477+
* Simple Notification Service indicating either a problem with
1478+
* the data in the request, or a server side issue.
1479+
*/
1480+
VerifySMSSandboxPhoneNumberResult verifySMSSandboxPhoneNumber(
1481+
VerifySMSSandboxPhoneNumberRequest verifySMSSandboxPhoneNumberRequest)
1482+
throws AmazonClientException, AmazonServiceException;
1483+
12641484
/**
12651485
* <p>
12661486
* Allows a subscription owner to set an attribute of the subscription to a
@@ -1868,8 +2088,8 @@ ConfirmSubscriptionResult confirmSubscription(String topicArn, String token)
18682088
* </p>
18692089
* <p>
18702090
* (Optional) To override the generated value, you can specify a
1871-
* value for the the <code>MessageDeduplicationId</code>
1872-
* parameter for the <code>Publish</code> action.
2091+
* value for the <code>MessageDeduplicationId</code> parameter
2092+
* for the <code>Publish</code> action.
18732093
* </p>
18742094
* </li>
18752095
* </ul>

0 commit comments

Comments
 (0)