Class: AWSCDK::SMSVoice::CfnPhoneNumber::MandatoryKeywordProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SMSVoice::CfnPhoneNumber::MandatoryKeywordProperty
- Defined in:
- sms_voice/cfn_phone_number.rb
Overview
The keywords HELP and STOP are mandatory keywords that each phone number must have.
For more information, see Keywords in the End User Messaging User Guide.
Instance Attribute Summary collapse
-
#message ⇒ String
readonly
The message associated with the keyword.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message:) ⇒ MandatoryKeywordProperty
constructor
A new instance of MandatoryKeywordProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(message:) ⇒ MandatoryKeywordProperty
Returns a new instance of MandatoryKeywordProperty.
684 685 686 687 |
# File 'sms_voice/cfn_phone_number.rb', line 684 def initialize(message:) @message = Jsii::Type.check_type(@message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "message") end |
Instance Attribute Details
#message ⇒ String (readonly)
The message associated with the keyword.
693 694 695 |
# File 'sms_voice/cfn_phone_number.rb', line 693 def @message end |
Class Method Details
.jsii_properties ⇒ Object
695 696 697 698 699 |
# File 'sms_voice/cfn_phone_number.rb', line 695 def self.jsii_properties { :message => "message", } end |
Instance Method Details
#to_jsii ⇒ Object
701 702 703 704 705 706 707 |
# File 'sms_voice/cfn_phone_number.rb', line 701 def to_jsii result = {} result.merge!({ "message" => @message, }) result.compact end |