Class SmsSubscription

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.sns.subscriptions.SmsSubscription
All Implemented Interfaces:
ITopicSubscription, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:09.917Z") @Stability(Stable) public class SmsSubscription extends software.amazon.jsii.JsiiObject implements ITopicSubscription
Use an sms address as a subscription target.

Example:

 Topic myTopic = new Topic(this, "Topic");
 myTopic.addSubscription(new SmsSubscription("+15551231234"));
 
  • Constructor Details

    • SmsSubscription

      protected SmsSubscription(software.amazon.jsii.JsiiObjectRef objRef)
    • SmsSubscription

      protected SmsSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • SmsSubscription

      @Stability(Stable) public SmsSubscription(@NotNull String phoneNumber, @Nullable SmsSubscriptionProps props)
      Parameters:
      phoneNumber - This parameter is required.
      props -
    • SmsSubscription

      @Stability(Stable) public SmsSubscription(@NotNull String phoneNumber)
      Parameters:
      phoneNumber - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public TopicSubscriptionConfig bind(@NotNull ITopic _topic)
      Returns a configuration used to subscribe to an SNS topic.

      Specified by:
      bind in interface ITopicSubscription
      Parameters:
      _topic - This parameter is required.