Class: AWSCDK::SMSVoice::CfnPhoneNumber::MandatoryKeywordProperty

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

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.



684
685
686
687
# File 'sms_voice/cfn_phone_number.rb', line 684

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.



693
694
695
# File 'sms_voice/cfn_phone_number.rb', line 693

def message
  @message
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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