Class: AWSCDK::Wisdom::CfnMessageTemplate::SmsMessageTemplateContentProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_message_template.rb

Overview

The content of the message template that applies to the SMS channel subtype.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body:) ⇒ SmsMessageTemplateContentProperty

Returns a new instance of SmsMessageTemplateContentProperty.



1724
1725
1726
1727
# File 'wisdom/cfn_message_template.rb', line 1724

def initialize(body:)
  @body = body.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnMessageTemplate::SmsMessageTemplateContentBodyProperty.new(**body.transform_keys(&:to_sym)) : body
  Jsii::Type.check_type(@body, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuTWVzc2FnZVRlbXBsYXRlLlNtc01lc3NhZ2VUZW1wbGF0ZUNvbnRlbnRCb2R5UHJvcGVydHkifV19fQ==")), "body")
end

Class Method Details

.jsii_propertiesObject



1735
1736
1737
1738
1739
# File 'wisdom/cfn_message_template.rb', line 1735

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

Instance Method Details

#to_jsiiObject



1741
1742
1743
1744
1745
1746
1747
# File 'wisdom/cfn_message_template.rb', line 1741

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