Class: AWSCDK::Wisdom::CfnMessageTemplate::MessageTemplateBodyContentProviderProperty

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

Overview

The container of the message template body.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content: nil) ⇒ MessageTemplateBodyContentProviderProperty

Returns a new instance of MessageTemplateBodyContentProviderProperty.

Parameters:

  • content (String, nil) (defaults to: nil)

    The content of the message template.



1658
1659
1660
1661
# File 'wisdom/cfn_message_template.rb', line 1658

def initialize(content: nil)
  @content = content
  Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "content") unless @content.nil?
end

Instance Attribute Details

#contentString? (readonly)

The content of the message template.



1667
1668
1669
# File 'wisdom/cfn_message_template.rb', line 1667

def content
  @content
end

Class Method Details

.jsii_propertiesObject



1669
1670
1671
1672
1673
# File 'wisdom/cfn_message_template.rb', line 1669

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

Instance Method Details

#to_jsiiObject



1675
1676
1677
1678
1679
1680
1681
# File 'wisdom/cfn_message_template.rb', line 1675

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