Class: AWSCDK::SMSVoice::CfnPool::OptionalKeywordProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sms_voice/cfn_pool.rb

Overview

The pool's OptionalKeyword configuration.

For more information, see Keywords in the End User Messaging User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, keyword:, message:) ⇒ OptionalKeywordProperty

Returns a new instance of OptionalKeywordProperty.

Parameters:

  • action (String)

    The action to perform when the keyword is used.

  • keyword (String)

    The new keyword to add.

  • message (String)

    The message associated with the keyword.



751
752
753
754
755
756
757
758
# File 'sms_voice/cfn_pool.rb', line 751

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 = message
  Jsii::Type.check_type(@message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "message")
end

Instance Attribute Details

#actionString (readonly)

The action to perform when the keyword is used.



764
765
766
# File 'sms_voice/cfn_pool.rb', line 764

def action
  @action
end

#keywordString (readonly)

The new keyword to add.



769
770
771
# File 'sms_voice/cfn_pool.rb', line 769

def keyword
  @keyword
end

#messageString (readonly)

The message associated with the keyword.



774
775
776
# File 'sms_voice/cfn_pool.rb', line 774

def message
  @message
end

Class Method Details

.jsii_propertiesObject



776
777
778
779
780
781
782
# File 'sms_voice/cfn_pool.rb', line 776

def self.jsii_properties
  {
    :action => "action",
    :keyword => "keyword",
    :message => "message",
  }
end

Instance Method Details

#to_jsiiObject



784
785
786
787
788
789
790
791
792
# File 'sms_voice/cfn_pool.rb', line 784

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "keyword" => @keyword,
    "message" => @message,
  })
  result.compact
end