Class: AWSCDK::Wisdom::CfnMessageTemplate::EmailMessageTemplateContentProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body:, headers:, subject:) ⇒ EmailMessageTemplateContentProperty

Returns a new instance of EmailMessageTemplateContentProperty.

Parameters:



1395
1396
1397
1398
1399
1400
1401
1402
# File 'wisdom/cfn_message_template.rb', line 1395

def initialize(body:, headers:, subject:)
  @body = body.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnMessageTemplate::EmailMessageTemplateContentBodyProperty.new(**body.transform_keys(&:to_sym)) : body
  Jsii::Type.check_type(@body, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuTWVzc2FnZVRlbXBsYXRlLkVtYWlsTWVzc2FnZVRlbXBsYXRlQ29udGVudEJvZHlQcm9wZXJ0eSJ9XX19")), "body")
  @headers = headers
  Jsii::Type.check_type(@headers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2lzZG9tLkNmbk1lc3NhZ2VUZW1wbGF0ZS5FbWFpbE1lc3NhZ2VUZW1wbGF0ZUhlYWRlclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "headers")
  @subject = subject
  Jsii::Type.check_type(@subject, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subject")
end

Instance Attribute Details

#subjectString (readonly)

The subject line, or title, to use in email messages.



1418
1419
1420
# File 'wisdom/cfn_message_template.rb', line 1418

def subject
  @subject
end

Class Method Details

.jsii_propertiesObject



1420
1421
1422
1423
1424
1425
1426
# File 'wisdom/cfn_message_template.rb', line 1420

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

Instance Method Details

#to_jsiiObject



1428
1429
1430
1431
1432
1433
1434
1435
1436
# File 'wisdom/cfn_message_template.rb', line 1428

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