Class: AWSCDK::SMSVoice::CfnPhoneNumber::OptionalKeywordProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SMSVoice::CfnPhoneNumber::OptionalKeywordProperty
- Defined in:
- sms_voice/cfn_phone_number.rb
Overview
The OptionalKeyword configuration.
For more information, see Keywords in the End User Messaging User Guide.
Instance Attribute Summary collapse
-
#action ⇒ String
readonly
The action to perform when the keyword is used.
-
#keyword ⇒ String
readonly
The new keyword to add.
-
#message ⇒ String
readonly
The message associated with the keyword.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, keyword:, message:) ⇒ OptionalKeywordProperty
constructor
A new instance of OptionalKeywordProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:, keyword:, message:) ⇒ OptionalKeywordProperty
Returns a new instance of OptionalKeywordProperty.
770 771 772 773 774 775 776 777 |
# File 'sms_voice/cfn_phone_number.rb', line 770 def initialize(action:, keyword:, message:) @action = action Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action") @keyword = keyword Jsii::Type.check_type(@keyword, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyword") @message = Jsii::Type.check_type(@message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "message") end |
Instance Attribute Details
#action ⇒ String (readonly)
The action to perform when the keyword is used.
783 784 785 |
# File 'sms_voice/cfn_phone_number.rb', line 783 def action @action end |
#keyword ⇒ String (readonly)
The new keyword to add.
788 789 790 |
# File 'sms_voice/cfn_phone_number.rb', line 788 def keyword @keyword end |
#message ⇒ String (readonly)
The message associated with the keyword.
793 794 795 |
# File 'sms_voice/cfn_phone_number.rb', line 793 def @message end |
Class Method Details
.jsii_properties ⇒ Object
795 796 797 798 799 800 801 |
# File 'sms_voice/cfn_phone_number.rb', line 795 def self.jsii_properties { :action => "action", :keyword => "keyword", :message => "message", } end |
Instance Method Details
#to_jsii ⇒ Object
803 804 805 806 807 808 809 810 811 |
# File 'sms_voice/cfn_phone_number.rb', line 803 def to_jsii result = {} result.merge!({ "action" => @action, "keyword" => @keyword, "message" => @message, }) result.compact end |