Class: AWSCDK::SMSVoice::CfnPool::MandatoryKeywordProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sms_voice/cfn_pool.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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:) ⇒ MandatoryKeywordProperty

Returns a new instance of MandatoryKeywordProperty.

Parameters:

  • message (String)

    The message associated with the keyword.



665
666
667
668
# File 'sms_voice/cfn_pool.rb', line 665

def initialize(message:)
  @message = message
  Jsii::Type.check_type(@message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "message")
end

Instance Attribute Details

#messageString (readonly)

The message associated with the keyword.



674
675
676
# File 'sms_voice/cfn_pool.rb', line 674

def message
  @message
end

Class Method Details

.jsii_propertiesObject



676
677
678
679
680
# File 'sms_voice/cfn_pool.rb', line 676

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

Instance Method Details

#to_jsiiObject



682
683
684
685
686
687
688
# File 'sms_voice/cfn_pool.rb', line 682

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