Class: AWSCDK::SMSVoice::CfnPhoneNumber::OptionalKeywordProperty

Inherits:
Jsii::Struct
  • Object
show all
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

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.



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 = 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.



783
784
785
# File 'sms_voice/cfn_phone_number.rb', line 783

def action
  @action
end

#keywordString (readonly)

The new keyword to add.



788
789
790
# File 'sms_voice/cfn_phone_number.rb', line 788

def keyword
  @keyword
end

#messageString (readonly)

The message associated with the keyword.



793
794
795
# File 'sms_voice/cfn_phone_number.rb', line 793

def message
  @message
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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