Class: AWSCDK::Wisdom::CfnMessageTemplate::SmsMessageTemplateContentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnMessageTemplate::SmsMessageTemplateContentProperty
- 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
-
#body ⇒ AWSCDK::IResolvable, AWSCDK::Wisdom::CfnMessageTemplate::SmsMessageTemplateContentBodyProperty
readonly
The body to use in SMS messages.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(body:) ⇒ SmsMessageTemplateContentProperty
constructor
A new instance of SmsMessageTemplateContentProperty.
- #to_jsii ⇒ Object
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 |
Instance Attribute Details
#body ⇒ AWSCDK::IResolvable, AWSCDK::Wisdom::CfnMessageTemplate::SmsMessageTemplateContentBodyProperty (readonly)
The body to use in SMS messages.
1733 1734 1735 |
# File 'wisdom/cfn_message_template.rb', line 1733 def body @body end |
Class Method Details
.jsii_properties ⇒ Object
1735 1736 1737 1738 1739 |
# File 'wisdom/cfn_message_template.rb', line 1735 def self.jsii_properties { :body => "body", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |