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"));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.sns.ITopicSubscription
ITopicSubscription.Jsii$Default, ITopicSubscription.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionSmsSubscription
(String phoneNumber) SmsSubscription
(String phoneNumber, SmsSubscriptionProps props) protected
SmsSubscription
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
SmsSubscription
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns a configuration used to subscribe to an SNS topic.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
- Parameters:
phoneNumber
- This parameter is required.
-
-
Method Details
-
bind
Returns a configuration used to subscribe to an SNS topic.- Specified by:
bind
in interfaceITopicSubscription
- Parameters:
_topic
- This parameter is required.
-